Android :: Intent To Open Users Preferred Browser
Jun 28, 2010
I've been trying to find out how to create an intent that will open the user's preferred browser without specifying the URL. I know how to open it by giving a specific URL like this:Intent intent = new Intent();intent.setAction(Intent.ACTION_VIEW); intent.setData (android.net.Uri.parse ("http://www.google.com")) ;context.startActivity (intent);I don't want to open the browser to any page in particular, just the set homepage or whatever page the user was on last. I've thought about looking up the homepage set within the app but you can't do it with the default Browser app because it is private. Does anybody know of a way to do this?
View 1 Replies
Apr 16, 2010
Okay I am using the Sprint Hero and am looking for a different browser. I currently use Dolphin, and I like it, but my main complaint is that if I save a bookmark with it, it doesn't go to the same bookmark list as my widget. That is one feature I would like the browser to have, though that may only be on the default one. I do like that you can download Youtube videos with Dolphin. I know there are a few others, such as Opera and Steel. Which do you suggest, knowing the things I like to do with my browser?
View 40 Replies
View Related
May 10, 2010
I am currently using Skyfire and.....eh.
View 9 Replies
View Related
Sep 17, 2010
I have upload some apps in android market. Now I want to show or redirect users to my other apps. They can easily see and download other apps. Please how to open other apps or how to redirect my app in application. If any sample code that is good for me.swan
View 1 Replies
View Related
Nov 3, 2010
So does anyone know if there is a program that will allow me to track how many times my app is opened daily?
I'm not looking to track the users behavior or anything, I just what stats on the average use of my app.
View 2 Replies
View Related
Jun 25, 2010
Is there any way that a webpage can make a request for the users location from the android / iphone device ? Since all I need is the users location, I am trying to figure out if there is anyway I can bypass developing a native app and use some nifty html5 call to just get the users location so all a user would need to do is visit my webpage and provide permission to access his/her location?
View 2 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
Sep 13, 2010
Forgive me if this is a topic that has already been discussed, but I've searched for hours and can't seem to find the answer I'm looking for. I'm trying to cut my teeth on Android programming with a simple file manager app and currently have most all functions working, but I can't seem to open a selected file with the appropriate app.
Here is my current code:
CODE:..................
View 2 Replies
View Related
Oct 5, 2010
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:
CODE:................
But it doestn even work with this flag... as soon as I click on a pic in the gallery, it closes and returns to my "Launcher". Is there any way to achieve what i want to do?
View 3 Replies
View Related
Nov 8, 2010
I don't want to store said file on the sdcard in this case. The file also cannot be storage directly in the apps local files directory. It needs to be in a subdirectory, so it cannot write the file using openFileOutput() and MODE_WORLD_READABLE.
The app may download files small files like pdfs and store them locally in a subdirectory. I would like to be able to have the user open these files if they have an app that can open them.
For example here is an intent for sending a pdf:
CODE:..............
path being something like: /data/data/packagename/files/subdir/example.pdf
That intent will open a pdf viewer, but the viewer is unable to open the file. I assume this is a permissions issue. I tried Mark Murphy's suggestion here: http://groups.google.com/group/android-developers/browse_thread/thread/4e55d869213483a9/b7270078ac1a2744?lnk=raot of using Runtime.getRuntime().exec("chmod 755 " + fileName); but it didn't make any difference. He also suggested a Content Provider but I would like to avoid it if I can because it seems like a lot just to get this file over to another app.
If the content provider is the only option, do I have to save the file to the content provider or can I just use the content provider as a pass through to get it to the other app when I need to?
View 2 Replies
View Related
Nov 9, 2010
Does anyone know of an intent I can use to open a raw mp4 resource in the phone's video player?
I tried this code:
CODE:..............
This threw an ActivityNotFoundException, however this has worked for me when the URI was the sdcard and the video was located there. Does anyone know how I can use the above code with a resource file in my app?
View 1 Replies
View Related
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
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
Apr 12, 2009
Can anyone post me the intent for opening the Browser on the URL specified.?
View 2 Replies
View Related
Oct 6, 2010
I want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd.I've gotten plain URLs to open to the browser. I just can't figure out what action or category to specify,
View 1 Replies
View Related
Jun 3, 2009
is it possible to start a call from the android browser, let's say by clicking a link in an html file or with javascript after a button click? maybe with help of the gears api? i'd appreciate any hints, maybe an example of how to embed the intent in the html-file/in javascript.
View 3 Replies
View Related
Feb 18, 2010
I have application in landscape orientation, I set it as <android:screen Orientation="landscape"> in Android Manifest.xml. But when my app starts another activity - default internet browser - it starts in portrait orientation.
View 9 Replies
View Related
Sep 15, 2010
I have saved a cookie in android. Now I want to pass it into my browser intent. Look at my current code:
Intent browser = new Intent("android.intent.action.VIEW",
Uri.parse("http://mypage.php/memberpagethatrequireacookie.php"));
//putExtra cannot take these arguments -> browser.putExtra("org.apache.http.cookie.Cookie", cookie);
startActivity(browser);
I want it to store temporarily in my browser so my member page loads successfully.
My cookie are successfully created from the HTTP request and I assign it to a List<Cookie> cookie;
Tell me if I should provide some more code.
View 1 Replies
View Related
Oct 17, 2010
I am trying to load BROWSER VIEW intent in android within onTouchEvent. Basically i have create a live wallpaper and if i click on it then i want to open BROWSER VIEW intent with a specified uri. i have tried following code inside onTouchEvent Uri uri = Uri.parse("http://www.google.com"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); but i am getting following error I am trying to load BROWSER VIEW intent in android within onTouchEvent. Basically i have create a live wallpaper and if i click on it then i want to open BROWSER VIEW intent with a specified uri. Code...
View 1 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
Aug 31, 2009
My open source application needs to browse local HTML files on the SD card, and WebView is not enough because I need history and bookmarks. I wrote the following code. It correctly opens the browser, but fails to reach catalog.html and in fact it just opens whatever page was last browsed:
Uri uri = Uri.parse("content://com.android.htmlfileprovider/sdcard/ myapp/catalog.html");
Intent intent = new Intent(); intent.setData(uri); intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); startActivity(intent);
View 2 Replies
View Related
Jul 25, 2010
I want to specifically run the default Android browser for a given URL. I'm using this code: I also tried adding <uses-library android:name="com.google.android.browser" /> to the manifest. Am I missing something here? PS: I'm not interested in using startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"))) as it will list all the choices for the browsing Intent.
View 3 Replies
View Related
Jun 6, 2010
I have a button in my app. When it is pressed I call the onSearchRequested() method. When this is called the stock search box comes up so the user can type some junk in there. When they press "Go" I need the results returned back to my application but instead the stock browser is opened and a google search is performed. How can I tell it to return the results to my application instead.
I've tried these items in my manifest.xml file:
CODE:.....................
View 1 Replies
View Related
Feb 4, 2010
How to open an URL from code in the built-in web browser rather than within my application? I tried this:
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL));
startActivity(myIntent);
But I got an Exception: "No activity found to handle Intent
{action=android.intent.action.VIEW data =www.google.com"
View 1 Replies
View Related
Dec 1, 2009
Is there a setting anywhere in the browser (Either default or on Dolphin) which would keep the browser from opening up a new tab every time I try to open the browser? It gets very annoying closing 30 tabs a day. 90% of which are the home page.
View 4 Replies
View Related
Aug 17, 2010
I want to make something like hyperlink. Right now, I created button, which opens new Activity with WebView. But I want to open a "globally" default web browser at specified URL. How can I do this ?
View 2 Replies
View Related
Oct 2, 2010
Short question that i cannot get my finger on, I'd like to launch a new browser from my WebView after people click a Hyperlink. But how can i set that target of that link to escape the WebViewClient? code...
View 2 Replies
View Related
Aug 16, 2010
Is the browser application on android open source if yes can u please help me finding the source code.
View 1 Replies
View Related
Oct 13, 2010
I am trying to open up http://www.google.com in my emulator default browser. But it is not to open it. My computer is connected with Internet and emulator is also display the 3G symbol on status bar. So why could I not to open up website in emulator. It is return Web Page not Available message.
View 2 Replies
View Related
Jan 24, 2010
When a user clicks the "about" button in my app's menu I want it to open the browser and go to a specific webpage. Is there like a one - liner out there somewhere to do this? Seems simple but Google is not being helpful right now - or I'm just searching the wrong thing.
View 5 Replies
View Related