intent

How to restore content in the same Activity based on the calling Intent?

Hi everyone, here's my scenario: I start an Activity A via an AppWidget. The AppWidget displays (inter alia) 3 buttons. Each of them has its own intent. They are designed to provide information to the Activity via a class called AppWidgetReceiver. In latter I create an intent like this: Intent i = new Intent(context, CreateNoteActivity...

Problem with custom Dialog Android

Hi, I have a custom Dialog on my app and I have a problem to do what I would like. I explain. My Dialog have had 4 Buttons. (Back, Valid, Modify and Restore) When user click on Modify or Valid I would like to call another activity. So I use Intent but it crash. The error Log : 05-19 13:29:21.495: ERROR/DEBUGTAG(974): java.lan...

Calling different layers from the same class

Hi, I am here to seek some help with my code which i am facing a dead end road with. I'm trying to pass values from screen1.java using Intent to screen2.java. Passing the values is fine and I managed to get through it; however, when I check using if statement the program crash down. Here are my files, plzzzzzzzzzzz help screen1.java p...

SecurityException: Permission Denial requires null

Hi all, I would like to launch the market from a preference screen but when I try to do this I obain a java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.action.test/.ui.activities.Test } from ProcessRecord{44db1300 3697:com.pippo.pluto/10067} (pid=3697, uid=10067) requires null. This is my code: startActivity(n...

Fortran intent(inout) v's no intent

Good practice dictates that subroutine arguments in Fortran should each have a specified intent (i.e. intent(in), intent(out) or intent(inout) as described this question): subroutine bar (a, b) real, intent(in) :: a real, intent(inout) :: b b = b + a ... However, not specifying an intent is valid Fortran: subroutine b...

getExtra from Intent launched from a pendingIntent

Hi. I am trying to make some alarms after the user selects something with a time from a list and create a notification for it at the given time. My problem is that the "showname" that a putExtra on my Intent cant be received at the broadcast receiver. It always get null value. This is the way I do it for most of my intents but I think th...

How to hide the Intent Chooser window in android?

when i click the button i start a activity for youtube video like this: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/watch?v=cxLG2wtE7TM"))); if i use this its redirect to the intent chooser to open that video url on browser or youtube app. how to select the default app as youtube programmatically? ...

How do I handle the browser's "share page" intent in android?

I read here ( http://androidlittle.blogspot.com/2009/08/intent-filter-for-share-link.html ) what intent-filter is required to handle the "share link" intent that the android web browser sends. I have placed this inside an block in my AndroidManifest.xml like so: <activity android:name=".ShareLink"> <intent-filter> ...

How to launch the market intent in 'Give Feedback' mode on android.

Hi There, I have just written a game for the Android market and would like to remind my customers to leave feeback on the market for the application (especially the demo version.) Is there any way to launch the market intent in a mode that will take the user to the feedback / comments section of the page? I already use this approach fo...

Intent that opens "new calendar event" activity

In my app, I want a functionality to create calendar event. I open "new calendar event" activity like this: Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("title", "Some title"); intent.putExtra("description", "Some description"); intent.putExtra("beginTime", eventStartIn...

Activity ignore intent's extra fields

For example, In an ActivityA there's a button to create an Intent that will start ActivityB in a new task, like this: Intent i = new Intent(this, ActivityB.class); i.setData(Uri.parse("http://www.google.com")); long timestamp = System.currentTimeMillis(); i.putExtra("ts", timestamp); i.addFlag(Intent.FLAG_ACTIVITY_NEW_TASK); Log.d(TAG,...

Error running helloworldtest from the tutorial

I'm getting the following error whenever I try to run a test. I have also tried to load some of the samples and test them, but I get the same error. This is generated following the tutorials found here Thanks for any help java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN flg=0x1000000...

Using intent.getStringExtra from within an activity

I am relatively new to android. I have two applications A and B. I have an activity in A, lets name it x, that would launch the application B. Now the intent sent by x contains StringExtra that I want the Starting activity in B to use. Is there a way for the activity in B to do that? Thanks! ...

Starting an activity from Broadcast receiver in android

I am trying to launch the Main Activity from a broadcast receiver. Can anyone guide me as to how I can do it? I always get "Process is Bad" message. Thanks ...

android use local service to refresh map UI

I don't need a strict code related answer I just need somebody to tell me what I am missing. My application has to retrieve from a web service (xmlrpc) the positions of some users I know and update their position on a MapView. So I decided to use a Service and an Activity extending MapActivity to show results. I thought about two solutio...

Logging broadcast Intents and manually trigger them (Android)

Hey guys, during my development in android I've missed a function that can log every broadcast intent that occur. Sometimes it had been very useful to have a function like that... I'm also wondering how to trigger those broadcast intents manually on the emulator. Is there an entire overview of available broadcast intents? Would be gre...

Android - sendOrderedBroadcast help

I am trying to use a sendOrderedBroadcast in my Android app. I want to be able to send the Intent from one of my applications to another and I then want to get data back from the Application that recieves the Intent, in this case a boolean true or false. Here is the current code: Intent i = new Intent(); i.setAction(GlobalData...

Android TabHost: update tabs from tab's activity

I have a TabActivity and am going to have 3 or 4 tabs. In TabA, I would like to have an ExpandableListView, which will list products. I would like TabC to act as a sort of "shopping cart", probably with a ListView of itself. So, my question is: is there a way to interact with the TabHost from the Activity? I would like to be able to cl...

Launch intent viewer to display image from url

I have the url of an image. What i need to do is launch the default image viewer for images using an intent. I tried launching it by using: Uri uri = Uri.parse("http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"); Intent it = new Intent(Intent.ACTION_VIEW); it.setDataAndType(uri, "image/*") startActivity(it); But it doesn't ...

Problem passing Data within Activity

Intent intent = new Intent(this,AnotherClass.class); intent.putExtra("Name", "foo"); setResult(RESULT_OK, null); super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case (1): { TextView textView = (TextView) findViewById(R.id.TextView01); if (resultCode == Activity.RESULT_OK) { ...