Android :: Launching An Application Using Browser
Oct 13, 2010I want to launch an application in the phone by clicking its link in the browser..
View 2 RepliesI want to launch an application in the phone by clicking its link in the browser..
View 2 RepliesHere is my question: Is it possible to launch a browser on Android and don't give the option to change page?For instance, if I launch a browser to stackoverflow.com, i want the user to navigate on the site, but don't give the ability to go to another site.
View 1 Replies View RelatedI want to List Item in Preference activity. and I want to launch a Browser with a URL which can change dynamically, When I click on that Item. Can anyone let me know how can i Achieve?
View 4 Replies View RelatedOn the Google Products page, from an Android device, there is a "scan barcode" button that launches a 3rd party barcode scanning app, which returns results back to the browser. 1) How did they do this? 2) Is this available for any web developer to do, or a Google -> Google api only?
View 5 Replies View RelatedIs there a setting to keep the browser from launching the phone dialer if I click a string of numbers by mistake?
View 2 Replies View RelatedI would like to know if there is a way of preventing a duplicate launch of browser/activity, while the user is already focused on it.mybe there is a way to detect before if the user's current screen is already focused on the same activity/browser i intent to launch?
View 2 Replies View RelatedI am able to launch browser and open site "google.com" and from my App successfully. I have a requirement that when the browser is launched from my application, I have to hide the address bar visible at top for that browser session. So can think of that I dont want the address that I am trying to open to be visible to users.Please let me if this is possible and and if yes how.
View 5 Replies View RelatedInstead of launching a UI I was wondering if I could have a process monitor the execution of a javascript in the emulator's browser and read in the output data. Is it possible to execute a local javascript file using the phone's browser?
View 10 Replies View RelatedAnyone know why, when I launch the browser (the droid is not rooted or modified in anyway) I get the GPS icon in my notification bar? Then sometimes it will not do this or the icon will go away after a minute or so.
View 6 Replies View RelatedI want to launch another application through the current application.
In RIM there is a "ApplicationManager.getApplicationManager().launch("String path")" method that launches directly RIM application mentioned in "String path".
Is there any method like this in android or any other way to solve this problem ?
Say I have developed 4 applications. Is it possible to group these applications, so that I can access and launch these from one location?
Can the below flow work? Start an Application|Display launchers(icons) for 4 different applications|On click of the icon start the respective application.
I have written an application which calls native methods through JNI. In the native library 4 threads are started. On USB removal, the application is to be closed including the native threads. Upon receiving the USB removal event, we are trying to kill the threads (pthread_kill() ) and then finish (using finish()) the activity. After reconnecting the USB, the application is not launching due to memory corruption. In DDMS, it shows the threads are still attached to bionic. As the threads are not closed, I feel the resources were not released properly. If I reconnect again then application launches and works fine and the same repeats on every launch.
To solve this problem Can I use System.gc() ? Can I use pthread_exit() 1st and then pthread_join instead of pthread_kill ? Whats the procedure in Android to kill the native threads and also the application ? After the application is closed, will it not be listed in DDMS ?
I want to launch my application in market. I ahd go to http://market.android.com/publish/signup but there they are asking for Website URL. But i don't have any website then what should I enter there? or is it necessary to have our own website to launch application in market?
View 6 Replies View RelatedMy app has 4 activities on the stack A->B->C->D (top)
If you press home and re-enter the application, another instance of A is started, so the stack is A->B->C->D->A (top). I know this because when I press BACK, A is popped off and I now see D (instead of going to the Home screen).
What I want is that when the user re-enters the app, they re-enter on the same activity they were in before (D).
CODE:................
Is it possible to re-use all the instances of Activities and Services when an application is launched twice. For instance: 1/ I start my application APP1. Some activities are launched and a service is started. 2/ I click "Home" device button 3/ I can see the icon the launch again my application APP1 4/ I click on it and the APP1 is launched twice
I would like to re-use the existing the instances of Activities and Services from the first launch. I guess it is related to "SingleTop" or "SingleTask" but it doesn't seem to work.
Is it possible to launch an app widget from another application.
For example, I have a button in an application. When I click on that button, an appwidget must be launched.
I would like to launch an app the user selects from within my application. However, I'm not sure how I'd go about doing this. I've tried this:
Intent intent = new Intent();
intent.setAction(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
startActivity(intent);
But this seems to throw an error and force close my application. I also tried adding:
<action android:name="Contacts.Intents.SHOW_OR_CREATE_CONTACT"/>
in the AndroidManifest file, but to no avail.
A look at Logcat shows that it's an "IOexception - no such file or directory". A couple of questions arise from this. I read through the Android docs and noticed that the Contact.Intents class is deprecated. However, it's successor, ContactContracts is aimed at API level 5 whereas I'm targeting API level 3. Could this be the problem? Also, I've hardcoded this application into the code. Is there a way to retrieve the intents of any application the user selects so that they can be launched?
I am trying to launch another application from my Activity. Something weird happens when I am running this code :
Intent myIntent = new Intent( Intent.ACTION_MAIN, null );
myIntent.addCategory( Intent.CATEGORY_LAUNCHER );
myIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED );
ComponentName compName=new ComponentName(myArray[i][0], myArray[i] [1] );
// String[][] myArray myIntent.setComponent( compName ); startActivity( myIntent );
I have this error :
android.content.ActivityNotFoundException: Unable to find explicit activity class { com.android.settings/com.android.settings.Settings};
Have you declared this activity in your AndroidManifest.xml?
But when I replace this line
// myArray[i][0] = "com.android.settings" // myArray[i][1] = "com.android.settings.Settings" ComponentName compName=new ComponentName(myArray[i][0], myArray[i] [1] );
with ComponentName compName=new ComponentName("com.android.settings","com.android.settings.Settings");
And without any modification in my manifest, it works!
I am looking for a way to launch my application(few Activities, Services, Receivers) from the Setting menu.
In other words I am interested to know:
1. I this a trivial task ?
2. Did someone has done such task before ?
3. What APIs and application's code should I learn
1 . can we get any event when user tap/touch native application(i.e. messaging,contacts).
2 . i know that any application launch by intent in android, there is any way to know which application launch with launch of application.
I am launching Google map application from my application, using
Uri.parse("geo:" + "13.042206" + "," + "80.17000?z=10");
and its working fine. But I want to show direction between two latitudes and longitudes, for that I tried using this uri,
Uri.parse("geo:" + "13.042206" + "," + "80.17000" + "geo:" + "9.580000" + "," + "78.100000?z=10");
But I am getting a Toast telling "Unable to load the url".
Is it possible to launch other apps from my app like the application launcher or home screen do? I don't want to try a home replacement app. At least would a widget on home screen be able to launch other applications? Also can a widget on the (default) home screen receive swipe events (before a touch event)?
View 7 Replies View RelatedI'm testing a simple hello app and it's not launching on the emulator. There's no errors and the console is this:
[2010-11-16 21:26:06 - Hello World] ------------------------------
[2010-11-16 21:26:06 - Hello World] Android Launch!
[2010-11-16 21:26:06 - Hello World] adb is running normally.
[2010-11-16 21:26:06 - Hello World] Performing com.hello.HelloWorld.HelloWorld activity launch
[2010-11-16 21:26:09 - Hello World] Launching a new emulator with Virtual Device 'VirtualDevice2.2'
The emulator launches and the screen appears with the lock and my app doesn't start. Tried to unlock and go to launcher to look for my app and it's not there. Anyone can help me on this one?.......
I want to launch Twitter in my application. I want to know that, Is it possible to launch twitter in my app using any API? If it's possible, please post the code snippet. I should be able to see the real twitter homepage (not directly invoking the "url").
View 11 Replies View RelatedExample: I have a button which starts an activity with GET_CONTENT audio/* I have a menu with choices: Music Track or Sound Recorder and a checkbox. I check the box, it tells me that I can clear the setting in Application -> Manage Applications. I launch the Music Track with the box checked. I go to the application settings, but the "clear defaults" button is always enabled. It was already the case with 1.1 SDK, 1.5 does not help (tested on emulator 1.5 AND ADP1 with 1.5 recovery image). I also tested the allowClearUserData flag but it seems we cannot clear anything but the cache (for the webview ?)
View 8 Replies View RelatedI got a null pointer exception in an Activity onCreate() while trying to access my Application object (extended from android.app.Application).This exception occurred very rarely and i have no way to reproduce this again.My App starts a service on BOOT_COMPLETED intent and the null pointer exception seems to have occurred during boot up. Can somebody please throw some light on this issue? Application should have been created before creating any activities.
View 2 Replies View RelatedI have an android application which allows the user to open up google maps or navigator to show a certain address. This functionality was working in the past, but now I get the following error and the app crashes:
ERROR/AndroidRuntime(2165):
android.content.ActivityNotFoundException:
No Activity found to handle Intent { act=android.intent.action.VIEW
dat=google.navigation:q=MCNAMARA+TERMINAL+ROMULUS+MI+48174 }
The two intents I'm using are-
1) For Map:
String uri = "geo:0,0?q=MCNAMARA+TERMINAL+ROMULUS+MI+48174";
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(i);
2) For Navigator:
String uri = "google.navigation:q=MCNAMARA+TERMINAL+ROMULUS+MI+48174";
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(i);
I have one application in android when I run that application it shows that exception
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: arbitrarily rejecting large method (regs=132 count=21332)
09-13 16:38:25.049: WARN/dalvikvm(269): VFY: rejected Lcom/ExtraCharge/Calc;.onClick (Landroid/view/View;)V
09-13 16:38:25.059: WARN/dalvikvm(269): Verifier rejected class Lcom/ExtraCharge/Calc;
09-13 16:38:25.059: WARN/dalvikvm(269): Class init failed in newInstance call (Lcom/ExtraCharge/Calc;)
09-13 16:38:34.883: WARN/ActivityManager(64): Launch timeout has expired, giving up wake lock!
09-13 16:38:34.999: WARN/ActivityManager(64): Activity idle timeout for HistoryRecord{43f8da58 com.ExtraCharge/.Calc}
I have made a game with just one activity.. I just replace the views when I want to change screen. The game runs fine for a really long time inspite of what ever I do within the game.
But once I close the main game, by calling finish on the only activity in the application, and then when I start again, within the next 30 secs it crashes telling VM budget exceeded..
When I don't have a dispose() or a delete method in JAVA.. how the, am I supposed to remove the objects used in memory.. moreover I have android:launchMode="singleInstance" in my manifest
Although I have seen several threads and tutorials on this topic, I guess I still have some confusion on how an application can be chosen from a list of applications to display a file.
I have a Activity which has a list view in it. This list view is bound with file paths (so a file browser of sorts). When we click on a specific file type, I need a list of applications that can open that file.
So far this is what I have in the OnItemClick for the list item:
CODE:............
When I run this on my phone, the error is:
No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] dat=file:///
When I do the same in a file browser application (downloaded from the marketplace), I get two options (QuickOffice and Word to Go), both of which I have installed on my phone.
Could someone guide me as to what else is needed here? Things I have tried besides the above:
Add the following entries to the manifest:
CODE:................