Intent values ​​are not displayed

I don't know what I did wrong over here. I have followed the tutorial but my values end up being empty. Passsing values to the Intent ListView lvItems = (ListView) view.findViewById(; lvItems.setOnItemClickListener(new Adapt

PendingIntent does not work with FCM notification

i want to open Detail activity on notification click event. Here is the PendingIntent and Notification set class. I added addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) also added PendingIntent.FLAG_UPDATE_CURRENT. I searched all topics on site i found thi

Android How to getLat () and get Long ()

Im trying to mail a user my long and lat and im getting nullPointerException: Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference I guess that the method getLastKnownLocation() returns null bec

Convert the image URL to a drawable resource ID in android

I'm using the KenBurnsView library with this code: mHeaderPicture.setResourceIds(R.drawable.picture0, R.drawable.picture1); As you can see it takes drawable resource ids. What I want to do is covert all photos URLS to drawable resource ids. Photo url

Android: How to start an activity in the device settings?

How can I start an activity which is in device settings? I need to start a settings page with intent.These are the activities the default settings app exposes to you so that you can create an intent with the appropriate action set in it and launch th

I want to send listview data to another activity in android

package com.example.selflistview; import; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org

java.lang.ClassCastException: android.widget.EditText

Here is my JAVA Code. When I run my app it crashes and i get following errors in my log 11-21 00:21:48.828: E/AndroidRuntime(349): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.geekosoft.contactsonline/com.geekosoft.contactso

Result null in & ldquo; getStringExtra & rdquo;

I am working on this code, and get an error, the variable "textoviejo" is returned as null, I would like to know what is wrong here. Thank you Activity 1 EditText input = (EditText) findViewById(; startActivityForResult(new Intent(thi

ActivityNotFoundException always called for PDF Viewer

I'm having this problem where I'm trying to open a PDF file in my app, if there are no PDF viewers on the device it redirects to the Play Store to download Adobe Reader. However I already downloaded Adobe Reader, it still catches ActivityNotFoundExce

Refresh the current activity without delay

I am new to android development.So I want to refresh the current activity when Radio button clicked.When I clicked the radio button I want to change the language and refresh the current Activity without any delay.Now I click the button the current la

send data from one activity to another without starting it

If I have two activities Activity1 and Activity2 and I want to send data from Activity1 to Activity2 without Start Activity2 I know if I want to start Activity2 I use this code in Intent intent ; Bundle bundle = new Bundle(); bundle.pu

How can I add another button intent next to the previous one?

Here is my code: it contains a button named as button1A and when I click on it, It opens a list named as list1. How can I put a code for my another button named as button2A which open a list as List2. import android.os.Bundle; import

Use of intent in a public service

I've a method which is making a huge calculation and then calls an intent as follows public void sampleMethod(final Context cont) { . . (huge calculation [50-80 lines]) . . Intent intent = new Intent(cont, TimesheetMain.class); finish(); startActivit

How to get data from an activity in this case?

Activity_A: { //calling Activity B where i find the user current location lat and lng Intent intent = new Intent(Activity_A.this, Activity_B.class); startActivity(intent); } Activity_B { //after getting user lat and lng, use them in Activity_C to sho

Android countdown to date

I am trying to make a countdown timer for a game/date in android. I want to create a timer that displays the days, hours, minutes, and seconds to a date I specify with a final variable. The timer then sets text views to show the days, hours, minutes,

Could not save the activity in the manifest?

Before I ask my question I saw android intent filter? and Android: Activity not registered in the manifest also I searched this ,but I could not find my answer. In my App,I have to start Activty1 form IntentFilterActivity(both are Activities) with im

Intention does not work, blocks application

I am building this app and I can't make it work. Here is the code and if you find the problem please post the solution. This is the Main Activity package in.isuru.caf; //imports imported here. removed to simplify the code. public class MainList exten

How to save camera data to a disc using MediaStore on Android?

For my application, I'd been using my own Camera class for taking images and my own database but soon enough I couldn't really keep up with changes and I decided to use the built in camera application in Android to do the job, but I can't seem to get