intent

Make activity appear in the 'wallpaper chooser'

I want my activity to appear in the list of activities (gallery. live wallpapers, etc) that you see when you try to choose a wallpaper from the home screen. Im assuming this is done with intents but cant seem to find one that works. The closest one I can find is: <action android:name="android.intent.action.ACTION_SET_WALLPAPER> but t...

Intent definition in Manifest file

I would like to start my own SMS editor when user selects "Send message" from contacts application. How do I define intent in manifest file to allow passing contact details to the editor? Thanks a lot ...

How to launch widget configuration after is been put on screen

My widget launches a configuration screen when chosen to be put on screen. That works fine. I wanted to be able to touch a part of the widget to return to that configuration screen. I have created 2 pending intents in my widget's service but only one works. The code is below: remoteView.setOnClickPendingIntent(R.id.my_image,myWidget.mak...

Close activity hierarchy in Android

How do I close a whole hierarchy of activities and show a new activity not present in the current task? Context Consider a FTP browser that resumes the previous session on launch. Each folder is displayed in its own activity. When I click on a folder, a new activity is started for the folder. If I press the back button, the app returns...

How to go to a specific activity?

How my application is structured... Class A extends Activity { Button cButton = (Button) findViewById(...); Button dButton = (Button) findViewById(...); //invoked when cButton is clicked methodButtonC() { //Here I want to go to the activity of class C and this is how I have tried to solve it... Inten...

android intent to navigate to multiple destinations?

is there any way to navigate to multiple destinations? like you can do on google maps? ...

Android: Permission denial on BroadCast SMS intent

Hello All can my activity broadcast this intent from itself Intent i = new Intent("android.provider.Telephony.SMS_RECEIVED"); sendBroadcast(i); I am able to send this broadcast and receive it back (from a broadcast receiver setup in the application) , but this is not a global broadcast , i.e. it is not received by the defaul...

Calling Android intent from Web page ?

i want to launch an intent from android website what code do i need to add in the HTML , for example how could i launch the dialer intent after the user click on number in the website . i saw some example in the web like when you click download app in website and it launches the android market . thanks ...

Queuing Intent for IntentService from within IntentService

Is it possible, with an IntentService, to send another intent to the IntentService from within the IntentService? For example, say my IntentService is processing an Intent which has it write a bunch of data to the database. During this time, several other Intents to write other data may [or may not] have been queued up in the IntentSer...

How to create list with different elements and actions?

I want to create list with different types of items. They should call different intents or do other things (display a map etc.) . It should act like contact details. Numers of items and actions is predefined. How to achieve this effect elegantly? I don't need exact code but guidelines and information where to look. Any help will be ap...

New activity from default preferences

Hi. I have setup my default android Preferences with the necessary options. The prime reason of the Preferences are to allow users to manage their resources. In the context of my app, they are "Contacts", "Types of projects" and "Currency". The "Currency" section works fine. The display just yet, not the programming. But what I really ...

Cannot figure out the context when launching an Intent from within a thread completion method

I am trying to launch a new intent after I have loaded data. I am using a handler that calls a method when the thread is complete and then in this method I am trying to launch a new Intent but my app is crashing every time. I have narrowed it down to the Context variable in the Intent constructor. Here is my code: /** Called when the...

Showing multiple activities on one screen?

Hi there, I have an interesting problem and I was looking for a solution; Hoping that someone here can help me out. (I did read through related questions on this topic but they have solutions which are not relevant to my situation). Details are: I have two activities. One is a simple list view to list available audio tracks. Another ...

Failed to launch shortcut: Application is not installed on your phone.

Hello all, I am trying to create a desktop shortcut to one of my Activity in Android. I use the code that work in every tuto example i have read: final Intent shortcutIntent = new Intent(Intent.ACTION_MAIN); ComponentName name = new ComponentName(getPackageName(), ".MyActivity"); shortcutIntent.setComponent(name); shor...

Sending information with Intent.putExtra

Hello! I have an array of integers in the activity A: int array[] = {1,2,3}; And i want to send that variable to the activity B, so i create a new intent and use the putExtra method: Intent i = new Intent(A.this, B.class); i.putExtra("numbers", array); startActivity(i); In the activity B i get the info: Bundle extras = getIntent(...

Max duration for capture video on android

Hi all, I have code for capture video: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra("android.intent.extra.durationLimit", 30000); intent.putExtra("EXTRA_VIDEO_QUALITY", 0); startActivityForResult(intent, ActivityRequests.REQUEST_TAKE_VIDEO); This code works good on 2.2 but duration limitnot works on 2....

using android intent to call and receive a result from camera app no matter if it is custom built

hi. here is the problem: i have searched for an answer for this and so far i made it work for the custom camera app that comes with htc phones. i have the folowing protected void onActivityResult(int requestCode, int resultCode, Intent data){ if (requestCode == REQUEST_FROM_CAMERA && resultCode == RESULT_OK) { ...

Can I update a list view in one activity while im in another activity?

Hello. I currently have a tab layout with 2 tabs, one tab with a list view and one with the option make strings so I can add them in the list view. Both tabs have their own activity because this made the code much more structured, and I dont have to repeat my self later. Lets say im in the tab that offer me to create an string, and i p...

how to open gallery via intent without result

Hey guys, I´ve got a small problem im stucked with. I have a kind of an ApplicationLauncher that has to start the build-in gallery. But I dont want to get any result from that gallery... I just want to start it and want my "Launcher" to close after that. What ive tried: Intent intentBrowseFiles = new Intent(Intent.ACTION_GET_CONTEN...

Is there an android equivalent for S60 platform's LandmarkStore

S60 platform's Java environment has a LandmarkStore class which saves Landmarks. A Landmark is just an object that gives a name to a location. Similar to a waypoint in GPS devices. Basic idea in S60 platform is that LandmarkStore is accessible to every application on the device. For instance, I can create a new Landmark on one Java appli...