I have a working TabView in Android, and would like to have a few more items available by pushing the menu button. I currently have a menu there, and can start new activities, but the content makes the TabView disapear rather than putting the content in the TabView. Is there any way for me to force / allow new Activities to open in the t...
I have created an app that sends an email with a recording, When the intent is fired and email is chosen as the app to send the attachment, you can see that there is an attachement but the attachment is not delivered.
Intent sendIntent = new Intent(Intent.ACTION_SEND);
//Mime type of the attachment (or) u can use sendIntent.setT...
Let's assume the following:
Activity A calls Search Manager
User searches, and search results are displayed in Activity B
User clicks on a list item in Activity B
App switches back to Activity A
I am unable to handle this callback from Activity B to Activity A because I don't have the Search Manager intent (i think?).
Call Search Ma...
So I've always been under the assumption that you can't pass arrays between activities with extras. But I was just going through the Bundle class docs and saw putStringArray(String key, String[] value) and public String[] getStringArray (String key). Are these new? They both say since API lvl 1, but I don't remember being able to pass ar...
I want to pass an object from Activity B to Activity A.
Scenario:
- Activity A calls Activity B
- User selects item in Activity B
- Activity B passes an object to Activity A
How do I accomplish this? And in which method do I read in the passed object in Activity A?
...
How can I create a startActivityForResult() for a Search Manager? Search is usually invoked by:
onSearchRequested();
My app will display search results in Activity B, which will pass back data to Activity A. I want to handle this data in onActivityResult() but this will never get called because I never started an activity for search....
Hello all,
I am using the wikitude API within my app. For those who may not know, wikitude is an Augmented Reality app that displays poi's (points of interest) via the phones camera. Within the wikitude API, on selecting a poi, the user is presented with a pre-developed dialog window that consists of a text view & two buttons. The acti...
Hi.
Is there any differences between M100S and M110S?
My app uses camera component. codes are as follows
{
ComponentName compName = new ComponentName
("com.android.camera", "com.android.camera.Camera");
Intent camIntent = new Intent(Intent.ACTION_MAIN);
actIntent.addCategory(Intent.CATEGORY_LAUNCHER);
actIntent.setComponent...
I have been watching the Google I/O presentation by Virgil Dobjanschi on the correct way to implement REST on Android with services and content providers. http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html
Based on the video I'm doing things the wrong way, which is not surprising given how hard the righ...
I have a widget with a button and a text field. when the user clicks on the button I'd like to copy the text from the textfield to the cliboard.
As this is a widget I have to used remoteviews and pending intent. Does anybody has a simple way to do it ?
...
Not sure how to figure out which android project on android.git.kernel.org corresponds to the classes extended in some of the app examples in the SDK such as Activity, Intent, and ContentProvider.
...
Hi
I've added this intent filter
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
My app shows up as a target for the intent in the chooser for many apps but no...
I have 3 activities in my app:
Activity1 -> Activity2 -> Activity3
Inside Activity3, if the user presses Back, I would like to return to Activity2. In Activity3's onPause event, I added a finish() statement. That's probably not even necessary, but I wanted to make sure this Activity gets cleaned up. This works fine.
However, while ...
I have the following code:
Intent myIntent = new Intent(Intent.ACTION_VIEW,
ContentURI.create(arAdapter.getItem(position).getUrl()));
startActivity(myIntent);
But I get the compile time error:
ContentURI cannot be resolved.
How can I fix this? or is there a different way to launch the android browser?
...
I have a widget class and a service class updating the widget.
I have added in the widget class in onUpdate() the following code:
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.countdownwidget);
Intent Intent1 = new Intent(Intent.ACTION_MAIN);
Intent1.addCategory(Intent.CATEGORY_LAUNCHER);
PendingIntent ...
Hi,
my HTC has a nice cut & paste function that allows me to mark text with two green sliders and then perform either a search on it, push the text to the clipboard or send it to an app.
The apps shown in the menu are: Friend Stream, Mail, Nachricht (SMS message), Peep (all HTC)
I want to have my app appear here - but don't know how.
...
Hi
I'm trying to pass an array of Address objects to another Activity through an Intent object.
As the Address class implements the Parcelable interface I try to do the following. I got a List Address object from a Geocoder object, which I convert into a array of Address objects. Then I put this array into the Intent and call the acti...
When my android app is removed, I would like to also remove files the app has created on the SD card, as these can consume many megabytes and are only of use to my app.
It seems that receiving the PACKAGE REMOVED intent would be the place to do this.
However, my broadcast receiver is never called--it seems to have been deleted before th...
We can view an image with code:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File("/sdcard/test.jpg");
intent.setDataAndType(Uri.fromFile(file), "image/*");
startActivity(intent);
What if we have some images? How can we put the extras to let the viewer know we have
/sdcard/a...
Hi,
can anyone know what is the intent for missed call. Actually i want to send sms on missed call and incomming call in my application.
...