Android :: Using Intent To View Specific Application In Android Market
Jul 8, 2009
I've seen a few other threads on this subject, but none that addresses my need which is to not only find the app in the market via the market uri, but display it as if the user had navigated to it. The closest anyone has gotten to this answer is to show how to bring up the Android Market app and browse for the app you want which shows the single result in a list that the user must still select to get to the screen I want to display.
Here's my existing code that does exactly that:
private static final String MY_MARKET_APP = "com.some.silly.name";
Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://search?q=pname:" + MY_MARKET_APP));
startActivity(marketLaunch);
I don't want to have to force the user to select this single item from the list - just bypass that and bring up the next screen.
View 11 Replies
Jul 21, 2009
Use case goes like this:
1) Dev puts game for sale on Android market hoping to make lots of $$ $.
2) Dev makes $50 in a month, cries a little, realizes his game is languishing in the ratings so makes it free.
3) Game does really well and gets > 50,000 downloads.
4) Dev still wants to make some $$$ off his game, so adds a "donate" feature to app which points users to another app dev has created in the marketplace where they can donate by buying the app.
5) Dev wants to reward those who have donated by providing new features only to them.
How do I go about determining if any given user has purchased either my original app, or my "donate" app so that I can unlock functionality? I'd like to determine this even if the user no longer has the app installed on their phone. Then android market app seems to know this which is how it knows not to charge the user again for the same app they've already paid for.
View 6 Replies
View Related
Sep 29, 2010
I have a user's twitter handle. Right now I'm opening it through a web page like:
String url = "http://www.twitter.com/" + "example_handle";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
If the user has the Twitter android app installed, is there a different intent I can use which gives the user the option to view that user's twitter feed in the Twitter app, instead of forcing them directly to a browser? I'm not sure if the author's of the Twitter app have exposed any such intent.
View 2 Replies
View Related
Mar 25, 2010
I am creating an application that checks the installation of a package and exits after launching the market-place with its id.
When I try to launch market place with id of an application say com.mybrowser.android by throwing an intent android.intent.action.VIEW with url: market://details?id=com.mybrowser.android, the market place application does launches but crashes after launch.
The application com.mybrowser.android doesn't exist on the market- place.
MyApplication is my application.
CODE:....................
However, when I try to launch the market place for a package that exists in the market place say com.opera.mini.android, everything works. Here is the log of this case:
CODE:.....................
View 6 Replies
View Related
Feb 26, 2010
I want to do something very similar (in terms of appearance) to the app details activity of the Market app. It looks like a cross between linear layout (not all rows the same), list (scrolling nature), preferences (headings). My guess is its a linear layout in a scroll view (ignoring activity header/footer) and the headings are just hard coded.
View 9 Replies
View Related
Dec 30, 2009
Is there any way to any way to allow the user to only view a certain <div> with WebView?
View 1 Replies
View Related
Jun 13, 2010
I've been searching a way to implement an intent so when a user clicks on a notification, an specific method from an activity is executed (or an specific behavior happens). Right now I'm thinking about using broadcast but I don't know if this is the best way to implement this functionality. How would you implement it?
View 6 Replies
View Related
Feb 3, 2010
I want to set up a BroadcastReceiver to handle PACKAGE_REPLACED, but I only want to be notified when my package is replaced. It works fine if I specify a data tag with scheme="package" but then I get notified when any application is reinstalled or upgraded. I can't figure out how I'm supposed to specify the package name which is in the scheme specific part -- that is, when my BroadcastReceiver gets the intent in onRecieve(), if I do intent.getData().getSchemeSpecificPart(), that's the package name, but is there any way I can filter for only that in my intent-filter?
View 1 Replies
View Related
Nov 16, 2009
I'd like to show a png or jpg I downloaded from the next in an image viewer intent, but can't get it to work.
Bitmap bmp = getImageBitmap(jpg);
String path = getFilesDir().getAbsolutePath() + "/test.png";
File file = new File(path);
FileOutputStream fos = new FileOutputStream(file);
bmp.compress( CompressFormat.PNG, 100, fos );
fos.close();
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(path)), "image/png");
startActivity(intent);
I know the bitmap is downloaded ok (use the same routine for supplying it my ImageView instances elsewhere in my app) - I think it wrote to file ok, I can see it on disk and the file size is correct. The intent is launched but an exception is thrown: then the new activity just sits there, blank. How does this work?
View 1 Replies
View Related
Jul 30, 2010
PDF, docx, xls, ppt. Is there an application on the market that allows me to view all these types of files? I have seen a few, but they all get crappy reviews. Anyone have one that works for them? Also, is it free or paid?
View 3 Replies
View Related
Jul 30, 2010
I have a custom View that I'd like to specify the layout of in an XML file rather than through code, is there anyway I can take an Android XML layout file and use it to flush out my custom View's content? I know it can be done in an Activity via the setContentView method, but there doesn't seem to be a similar method for Views.
View 1 Replies
View Related
Feb 11, 2009
I'm looking for a simple method to search a ViewGroup for a specific view given the id. This ViewGroup could have nested ViewGroups as well, so it needs to be recursive. Anyone know if Android as some type of view iterator? I can't seem to find anything.
View 4 Replies
View Related
Aug 13, 2010
I want to dynamically add some views to a LinearLayout that is already defined in XML.
I'm able to add views to the screen but they are not being placed 'inside' the right LinearLayout.
How can I get a reference to this specific Layout from code, similar to getting a View by using findViewById()?
View 2 Replies
View Related
Oct 28, 2010
I read here: http://www.androidguys.com/2009/10/11/developers-can-now-target-by-carrier-in-android-market/ that it can be done if you go to the Android Market, and go to your app, then go to Publishing Options -> Locations, but I don't see anything to select a specific carrier there, only specific countries. Is this something that Google changed? Can this still be done, or is it done automatically? Can't the carrier be detected from the device?
View 1 Replies
View Related
Jun 3, 2009
Here's my scenario, I have about 6 layouts that all have a TextView with the ID "title". I'm theming my app right now and I'd like to have it so that every instance of title gets a specific style applied. Is this possible? I don't want to use a default text style because normal text will have a different size, etc.
View 3 Replies
View Related
Apr 5, 2010
I have a custom component which consists of 2 text view and 4 toggle buttons. I want to draw this view at some specific position on the screen. How is that possible?
View 1 Replies
View Related
Aug 27, 2010
Just curious to know android Graphical components (View) have their own specific renderer or they are using something like AWT, Swing or?
View 1 Replies
View Related
Mar 7, 2012
I have an HTC Desire HD on Orange UK. In the market I have only ever seen apps & books. I have never seen movies or music listed. I have, until now, assumed that these were probably only available in certain countries because of licensing agreements.
I was discussing the rebranding to Google Play with a colleague, only to find out that they have, and have done for a while, a section in their Market /Play Store for movies. They have an HTC Desire S on T Mobile UK.
Why would I not have movies available via my market? I'm guessing that it wouldn't be handset compatibility, so would it be that Orange are blocking this for some reason? Who else, in the UK, has the movies option, and who doesn't? What is the common ground between each group?
They do not have music as a Market section, so I guess that I was right about this, and it is not available to the UK at all?
View 4 Replies
View Related
Mar 24, 2010
i'm trying to find out what extra's there are for a specific intent.in the eclipse debug window i can see it has extra's , but i can''t find a list of those extra's. I also can't find a function to get all extra's into a human readable format.
View 4 Replies
View Related
Jun 11, 2010
I'm using Eclipse and have an emulator running Android 2.1 and my IntentService. I'd like to step through my onHandleIntent() overridden function. I've put in a breakpoint on the first statement of the function, which is Context context = getBaseContext();. When the intent is called the program just fails and does not go to debug view in Eclipse.
View 1 Replies
View Related
Aug 15, 2010
Is this even possible without calling a specific package? I have found countless examples of sending email via intent, but I can find nothing about simply opening the default email client on the device via button press (preferably with a chooser dialog in case the user has multiple clients).
View 1 Replies
View Related
Oct 11, 2010
I'm looking for a notepad app that, well, looks like an actual notepad. I'm currently using AK Notepad cu z I like how the notes are written on note looking paper, but when you open up the application, all the titles of your notes are just displayed in a black screen. I'm kinda looking for an app, like let's say I put: "stuff to buy," I want the title to also be written on notepad paper, and then when I click on it, the info of my notes will also be written on notepad paper.
View 4 Replies
View Related
May 7, 2010
I'm creating a mobile website that will include a page from which people can download relevant apps that we recommend. I've found instructions for creating the links to launch the Market but this assumes that you are the developer of the app in question and know the exact package name.
Is there any way to get the package name, other than just contacting the developers and asking?
Also, it turns out that those instructions don't really work for creating web hyperlinks. They only give you a URI to reference in a string of Java code in another Android app. Our site is in Drupal, so Java is not going to work.
For the iPhone, I found easy instructions for getting the URL/link style I need from the iTunes store, so I'm looking for info like that.
View 2 Replies
View Related
May 23, 2010
I have just written a game for the Android market and would like to remind my customers to leave feeback on the market for the application (especially the demo version.) Is there any way to launch the market intent in a mode that will take the user to the feedback / comments section of the page?I already use this approach for linking my demo to the paid app.
Is there a best practice that any Android devs out there might know of?Additionally, is there any way to track referalls from my demo app so that I can try to calculate some kind of a conversion rate? (i.e. how effective the demo app is at generating sales.)
View 2 Replies
View Related
Oct 20, 2010
I want to center the application title/label in my android app but I can't find a lot of documentation on how to set that property. I have found a couple of posts saying that I can create a custom title bar and change the theme in my manifest but I just can help think there is a simpler way to just center the title.
View 2 Replies
View Related
Jun 9, 2010
Applications can have any number of launchable activities. I know how to get the list of these activities via PackageManager.
Is there a way to determine which activities can be launched via startActivity?
For example, the Documents To Go app has different activities that will start Word, Excel, Powerpoint, PDF, etc... I am able to launch all o these just fine.
However, it also contains some activities that I am not able to launch with startActivity... If I attempt to do this I get a SecurityException.
I want to be able to determine which activities I can safely launch and which I cannot so I only present the user with a list of activities that I can safely launch from within my application...
View 1 Replies
View Related
Jun 24, 2010
I currently use Timeriffic, which has been great at managing settings for different times of the day. What I am looking for, however, is an application similar to that where I can define the sound behavior for one specific application.
What I am trying to do is make it so all notifications are at 10% volume during the night, but Id like to make notifications from Google Talk louder, like at 50%. I haven't been able to find anything that would allow a rule like that, but thought Id ask since you guys seem to know everything!
View 2 Replies
View Related
Jul 27, 2010
I want to launch a specif application.
I know how to do Intents but I want to avoid the selection menu if there are multiple apps that can handle the intent, i want to go directly to a particular app. Hope this makes sense.
View 1 Replies
View Related
Apr 2, 2009
I want to send a message to only specific application in other device but i dont want SMS client to pick that. How is it possible?
View 2 Replies
View Related
Aug 4, 2010
I am working on an application where I need to display some locations on a map and in a list view where the user should be able to toggle between these views(activities?). I want the toggle button(s) to be in my custom titlebar like in the images (if they are attached). What is the best practice for this? Tab view seems like a solution but can I customize the tab buttons? Should the map and list be in different activities or the same? Now I have two different activities one extending MapActivity and one extending ListActivity but no way to toggle between them. Is it possible to load activities into a FrameLayout?
list.jpg
49K
Download
map.jpg
67K
Download
View 2 Replies
View Related