Android :: How To Open Another Activity Within Application?
May 27, 2010
I understand how to use intents and startActivity() when opening another activity within my own app, but how do you start a different app? specifically:
- How do you determine if the user has the needed app installed on their device?
- How do you start that app?
- How do you pass parameters to that app?
- How do you find all this info out for a specific app (say Adobe reader, or google maps)?
View 2 Replies
Aug 20, 2010
I was trying to open an Activity of an other applicatoin by using an implicit Intent. It doesn't work, I thought it is possible to start an Activity of an other Application by using implicit Intent. Or do I missunderstand it?
I added following intent-filter to the AndroidManifest of Application A:
CODE:..............
And called the Intent in Application B by using folloing code:
CODE:.............
All I get ist, the error message that Application A was stoped unexpectedly.
View 5 Replies
View Related
Jul 19, 2010
Im writing a program that offers a quick reply dialog upon receipt of an SMS.
However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application)
I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the user was doing before.
The 'floating' activity:
CODE:.........
The call to the activity inside an onReceive()
CODE:..............
The Manifest:
CODE:.................
View 1 Replies
View Related
Jul 3, 2010
I want to open other apk from my activity. is there any way similar to new Intent(...)?
View 4 Replies
View Related
Sep 11, 2009
Is there a way to open up the Messaging Activity on android with a specify SMS?
View 2 Replies
View Related
Aug 10, 2010
Wondering if anyone knows the most optimized way to handle opening an URL in android. Here is how I am doing it:
String tempUrl = helper.getUrl(tempString);
Intent i = new Intent("android.intent.action.VIEW", Uri.parse("http://"+tempUrl));
startActivity(i);
Must you start a new activity in order to open a URL?
View 1 Replies
View Related
Sep 17, 2009
How to open .png or .doc file in Android in new Activity.
View 1 Replies
View Related
Oct 2, 2010
How to open activity from view.i am develop a game if game is over i need to move user to main menu activity.Please help me its very urgent to me.
View 2 Replies
View Related
Nov 3, 2010
I am creating like timer application and when I start timer I have option to go to android Home or start any other activity .When I start timer I set a notification bar icon and if i use some other application (mean go from started timer activity) and now I need to go to back to my previously started timer activity by clicking on notification icon?When I click I am starting a new instance timer activity , not the previously started timer activity and if I then click back button it show me a previously timer activity .Question is: How to call previously started activity trough notification bar , not to start new instance of that activity?
View 2 Replies
View Related
Nov 1, 2010
Is there a way to open a translucent or transparent activity so that you can still see the old activity behind it on the screen?
View 1 Replies
View Related
Sep 23, 2012
I'm doing that sample: [URL] ....
I want to change at this line
public void onClick(View v) {layout.setVisibility(GONE);}
to
public void onClick(View v) {
Intent myIntentopen = new Intent(MainActivityold.class, MainActivitynew.class);
startActivity(myIntentopen);
}
but it dosn't work.
View 2 Replies
View Related
May 26, 2010
I have activities A and B. The A is the one with LAUNCHER intent-filter (i.e. the activity that is started when we click the app icon on home screen). A launches B using start Activity(new Intent(A.this, B.class)). When the user has the B activity open, and then put my application into the background, and later my application's process is killed, when the user starts my application again, B is opened instead of A. This caused a force close in my app, because A is the activity that initializes the resources my app needs, and when B tried to access the uninitialized resources, B crashes.
View 1 Replies
View Related
Nov 10, 2009
Can Activity "A" open the options menu of a view in Activity "B"? In this case I am building Activity A but Activity B can be any other running activity. I think this is an impossible security violation but I really want someone to prove me wrong.
View 2 Replies
View Related
Nov 8, 2010
I want to open new child activity in the parent LinearLayout. Just similar like Tabs.
View 1 Replies
View Related
Jun 1, 2010
I want to write an application to List the Gmail message. In the list, if user click one of the message item, it shall link out Gmail App to see more detail information. Currently I can read the Gmail db with Gmail.java. There are some problems while I want to open Gmail Activity. In general, we can open Activity with Action and parameters. But Gmail App has not release code base. We do not know what Action set to Gmail Activity and what parameter shall we put the extras. I only know that the Activity of View detail Message is named "HtmlConversationActivity." And the Package is under "com.google.android.gm.
View 1 Replies
View Related
Mar 14, 2010
Is it possible to configure an android app so that if a user has opened your app, launched numerous activities, then returns to the home screen and relaunches your app again, instead of going to the main activity they will instead be taken to the activity highest on the stack (the most recent activity in your app)?
View 2 Replies
View Related
Apr 8, 2010
I am trying to make an exit button for my application. Anyhow I am able to track all the instance of activity in my application and then finish them all. But still some activity remain alive in some cases. Dont know how. Is there any method to kill a particular application in android. Or any other way can I exit from my application.
View 1 Replies
View Related
Jan 13, 2010
I'm trying from main Activity (MainFile.java) to open a Map as a new intent through a menu. Something like this...
CODE:..............
And I already have set up thing on my manifest.xml with access to...
CODE:........
It worked fine with other File.class, but with the Map.class doesn't seem to be working.
View 1 Replies
View Related
Jul 28, 2009
I have fixed the activity screen orientation to portrait on AndroidManifest.xml file. When I open or close the keyboard the activity gets restarted. How to avoid this restart?
View 4 Replies
View Related
Jun 14, 2010
I recently added an activity to one of my apps, and made it the starting activity for the application and published an update. The update worked perfectly with no problems on my N1, but I'm getting emails from users telling me that the only way they can open my app is from their Downloads page in the Android Market app. I have no clue what could be causing this behavior.
View 2 Replies
View Related
Mar 8, 2010
I am just getting started with the Android SDK and I had a quick question. I am trying to set up a ListView with a rectangle of color on the left and then a bit of text for each row. I also want to make it so I can click each entry in the list and open a new activity to display some information (similar to the contact list).
View 3 Replies
View Related
Feb 24, 2009
I have one application which is based on OPEN GL in java. Now i want to make same application in android then i just need to port this code to android or i will have to make whole android application from scratch.
View 2 Replies
View Related
Jul 27, 2010
From my application i have to open a another one application.Is there any possibility to open like this?
View 2 Replies
View Related
Sep 23, 2012
I'm doing that sample:
http:[url].....
I want to change at this line
public void onClick(View v) {layout.setVisibility(GONE);}
to
public void onClick(View v) {
Intent myIntentopen = new Intent(MainActivityold.class, MainActivitynew.class);
startActivity(myIntentopen);
}
but it dosn't work.
View 4 Replies
View Related
Jun 9, 2010
I have seen the below log message when navigating to the Account & sync settings screen but I am confused as to how to create an Intent to navigate there.I dont seem to have access to the ManageAccountsSettings for development.I just wanted to create an Intent such as below, but I cant call out ManageAccountsSettings.
View 1 Replies
View Related
Jul 27, 2009
Is it possible to attach Menu to an application rather than each activity in the application? I have 20-23 activities in my application and it doesn't make sense me to add same menu to all the activities.
View 5 Replies
View Related
May 6, 2010
I know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email for example)
I need to know how I can create an Intent to open MyTracks or any other application that I don't know what intents they listen to.
I got this info from DDMS, but I havn't been succesful in turning this to an Intent I can use. This is taken from when opening MyTracks manually.
View 2 Replies
View Related
Jun 14, 2010
Is there any one know how to open an App when the Android OS start up, I have to do it in an embedded system?
View 4 Replies
View Related
Aug 24, 2010
From this article:
http://developer.android.com/guide/publishing/publishing.html#marketintent
Android Market could be invoked by an ACTION_VIEW intent with URL like
http://market.android.com/details?id=<packagename>
How does it work? Is the market.android.com return some info to browser to help it open the Android Market application? or just the browser locally does the trick? Is it possible to set up an open URL who could do the same thing? For example, I have an app called MyBooks(com.mybooks.app) and a site like:
http://www.mybooks.com
an url could be
http://www.myboos.com/details?id=0001
And when Browser opens this url, the site will return some kind of pre-defined response, which might contains an Intent action string, like "com.myboos.app.action.VIEW" and the queried id 0001.
Browser could then try to start an Activity using that action
"com.mybooks.app.action.View",
if there is an Activity for that, start it and pass the id in. If not, it tries to connect another URL like
http://www.myboos.com/details?id=0001&installed=false
Is this possible to work on any version of the Android?
View 2 Replies
View Related
Oct 7, 2010
I am wondering if it is possible to intercept an open application call, for any (most of the) installed application. Or at least for opening the Activity having the intent-filter's action set to Main (if it exists for an app).
View 1 Replies
View Related