Android: in-app product ID - android

How my in-app product ID should look like?
If my application ID looks like com.example.test, then can I define product ID just as item? Or should it be com.example.test.item?

Ok, I've tested that.
Product ID should be unique within your application. So item can be used. Everywhere it will be reflected as com.example.test:item.

To be clear, you use exactly what you typed when creating the product.
It could be "productname" or "com.company.app.productname" depending on what your typed in. See the image.
http://i.imgur.com/5hKdziE.jpg

Related

Set a subscription default price in Play console one time

I need to add subscription price one time for all countries. like inapp product you can set the price for default currency and it's reflected automatically for all other countries.
I found "Add base plan" in google play console, inside it I can edit price for each country alone.
as in this picture:
Checked this answer but can't be applied , my be it's changed by google play.
Otherwise, I 've to change price for each country, which will take too long time to convert then fill in.
Any idea?
Found it as below:
1- click on set price ( it's dimm, but ok click it).
as highlighted
2-check below highlighted box (all country / region):
3-click on set price again ( below the page).
4-fill in price and hit update as below:

How to set a subscription default price in Play console?

I am pretty sure that in the past there was a field to set a default price for subscriptions (like with in-app-purchases, the default price is used to generate local prices for the app in other countries).
However I can't find this field now.
I really hope that I don't need to set prices for all countries manually...
OK I have found it.
Click on "update prices"->choose all countries->click on "set price"->set the price.
The UI issue is that the button "update prices" doesn't look like a button...
To set one price for multiple regions at once:
Go to: Subscriptions/Edit base plan
Tap "Set price" This is a button but it doesn't look like one!

Android Naming a SKU

For my testing I used:
private static final String SKU_PRO = "android.test.purchased";
Now I want to release my app and create the purchasable item in the developer console. Before releasing the apk I have to know how to name the SKU.
In a tutorial I read they used this:
"com.example.buttonclick"
But my packagename looks like this:
"com.myname.myapp"
My suggestion is:
"com.myname.myapp.purchasedpro"
Is this the correct way?
From developer docs:
Product ID
Product IDs are unique across an app's namespace. A product
ID must start with a lowercase letter or a number and must be composed
of only lowercase letters (a-z), numbers (0-9), underscores (_), and
periods (.). The product ID android.test is reserved, as are all
product IDs that start with android.test.
Note: Be sure to plan your
product ID namespace carefully. You cannot modify an item's product ID
after the item is created, and you cannot reuse a product ID within an
app.

Add Country/State Values in Android App

I want to add the countries and their corresponding States in android application locally, in such a way that when the user clicks on the country a dialog should come up and it should show a list of country names, and when the person selects a country, in the state dialog it should show the corresponding state names.
I have a list( in xml format ) for all the country and their states but i am unable to use them in my android app and also do not know the way how to use them.
Please help
you can do like wheel demo like iphone default spinner,
I have a link which has the same concept like you want. but yes it has not been entered all the list of country and their state. but on that you can find the way how to get it.
http://code.google.com/p/android-wheel/
For Country and it's state detail you have to find out in google that any default methods provides to get all countries and their states or otherwise you have to add it manually add it by country wise I have the link that has list of country and it's states.
http://en.wikipedia.org/wiki/List_of_countries_by_population
hope it will help you.

Android App , add a favorite quote functionality

I have an android app which displays quotes and have navigation to go to next quote and so on. would like to add "Save Quote As favourite" based on users selection of particular quote.
Once user saves Fav quotes and wants to see those quotes only, app should show those quotes.
Currently app reads the quotes from XML file. Let me know if any more information is required to understand the problem.
I would provide every quote with an ID (int). Whenever the user selects a quote to be a favourite, that ID is saved to a Set of integers. Later on if user decides to show favourites, you fetch all quotes with your IDs from the Set and show them in a appropriate view, for example a ListView
If you have a Quote class or something like that, you might as well put them in a collection whenever user decide his favourites, and show them in a ListView with a custom adapter.

Categories

Resources