Yes, there is a way to do this

You basically create a class called Config.

Then you put a static boolean in there like so:

public static boolean ON_GOOGLE_PLAY_STORE = true;

Then you make two APKs - one for the Play Store and one for everywhere 
else.  You set the boolean accordingly.  

To check, you simply look at the boolean.

Thanks.



On Wednesday, April 24, 2013 5:42:19 AM UTC-5, Perry168 wrote:
>
> Hi TreKing,
>
>    I hope to check user is download my apps from google play store or from 
> other place. But I don't know how to write the program.
>
>
> TreKing於 2013年4月24日星期三UTC+8上午9時14分54秒寫道:
>>
>>
>> On Tue, Apr 23, 2013 at 5:46 PM, Perry168 <[email protected]> wrote:
>>
>>> I need to add a function to check the apps installed/downloaded from 
>>> google play store or not.
>>
>>
>> Your question is not very clear.
>>
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
>> transit tracking app for Android-powered devices
>>  
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to