Questions tagged [extras]
113 questions
0
votes
1 answer
Android - getIntent().getStringExtra using SQL Database crashing app
I am new to programming and my app crashes every time I try to get the data from my extras which are stored in SQL.
public class MainActivity extends ListActivity {
public final static String ID_EXTRA="com.pixelcrunch._ID";
Cursor…

Sean Croft
- 375
- 1
- 2
- 8
0
votes
1 answer
Can't get Extras from Intent
I'm trying to get Extras from Intent but it causes an error
08-09 08:01:56.766: ERROR/AndroidRuntime(427): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=15, result=0, data=null} to activity…

Omegamon
- 1
- 3
0
votes
2 answers
Can't get intent extras in android app
I'm trying to put extras (string) in an intent. I use startActivityForResult and onActivityResult to get my extras on the other side.
But I can't get why it doesn't works ! Here's my code :
buttonCamera.setOnClickListener(new OnClickListener()…

beluga
- 193
- 3
- 17
0
votes
5 answers
Passing data between Intents causes app to 'unexpectedly close'
I am trying to transfer an int value between two activities using intents, but my app keeps crashing. When I comment out the transfer of any data and simply use an intent, everything seems to work. I cannot tell what is wrong.
Activity 1…
0
votes
2 answers
android: getting same value from Intent extras
I am doing this to create a Intent.
Intent notificationIntent = new Intent(this, Startup.class);
notificationIntent.putExtra("url", contentUrl);
PendingIntent contentIntent = PendingIntent.getActivity(context, 0, notificationIntent,…

anewbie
- 13
- 1
- 4
0
votes
1 answer
bundle get Serializable / Activity crashes
I have a problem when I try to start my SecondActivity in my app..
I retrieve a list of objects from my FirstActivity but the secondactivity keeps crashing..
FirstActivity:
Intent mainIntent = new Intent(ScanFiltersActivity.this,…

diamond
- 13
- 1
- 6
0
votes
2 answers
Intent Extras.getString() not comparing correctly -- Android
I have an Activity called searchProcedures which allows a user to select from a listview of medical procedures. I navigate to this activity from two other activities called searchHome and describeVisit. I needed a way for searchProcedures to know…

Taylor Barton
- 45
- 2
- 10
0
votes
3 answers
MainActivity puts valid String into Extras for an Intent but the Intent finds null String. What to do?
I am baffled by what's happening.
I put the file name "Help" into the Extras of the Intent that I then immediately start. (There can't be any problems with this first code block. With breakpoint after putExtra, Watch expression…

DSlomer64
- 4,234
- 4
- 53
- 88
0
votes
2 answers
android intent extra data retrieval problem
I have a wierd problem. I have the following code:
if (fbIntent.hasExtra("Link")) {
try{
postData[0]= fbIntent.getStringExtra("Link");
} catch (Exception e) {Log.d("fbIntent error",e.getMessage() );}
…

Brahadeesh
- 2,245
- 8
- 40
- 58
0
votes
1 answer
Pass Provider as extra of Intent
I have a provider that takes a decent number of properties. For example:
public MyProvider(
byte[] image,
String firstName,
String nickName,
String lastName,
String hairColor,
String favoriteFood,
String favoriteColor,
String…

Rbar
- 3,740
- 9
- 39
- 69
0
votes
1 answer
Is there a tutorial that shows how to use tabs and activities to pass values
Is there a way to do this? Is there a way to use a tabhost and activities for each tabs content and pass values via extras. If so can someone post a link how to?

Dean-O
- 1,143
- 4
- 18
- 35
0
votes
2 answers
pip install .[test] not working in python2.7.9 pip version 6.0.7
To the best of my knowledge pip install .[extras_require here] has always worked. I can't find in any documentation when that feature was added, but I've never had any problem even on very old machines.
Is pip definitely the problem here. I could…

Brian
- 987
- 10
- 19
0
votes
2 answers
Read a different .txt depending on what button is pressed in previous activity
I'm trying to read a different .txt file (in a raw folder) in a second activity TextView depending on what button is pressed in MainActivity (the previous activity), but it doesn't work. I'm using the .putextras method and here is my code of the…

onecoin
- 3
- 2
0
votes
3 answers
Transfering int between activities does not work correctly
I need to transfer User and int between 2 activities, this happens when clicked on item in listview,
Activity 1:
Intent intent = new…

Netanel Malichi
- 33
- 3
0
votes
0 answers
GcmTaskService use for batch event tracking
I titled my question this way since many people might be using GcmTaskService for tasks such as event tracking which don't need to happen immediately. Tracking is a great example of a task that can be postponed to when the device is charging, or…

sophia
- 395
- 5
- 13