Android :: Licensing Application Programmatically?

Jun 3, 2009

If i wish to attach an evaluation license to my android application, how can that be achieved ? As for example, i may want to provide an evaluation license based application that expires in one of the following ways:

1. Time based (30 days etc)
2. Usage based ( 100 invocations of the application).

Once the application's license expires, i need to restrict access to it from the user.

Android :: Licensing application Programmatically?


Android :: Licensing - Setting Server Response Values Per Application

Aug 5, 2010

So I've just published my first paid app to the Market and I used the new LVL with the default ServerManagedPolicy. On working through the docs and getting it set up I noted the references to the server response extras VT, GT, GR & UT, and the impression I got from quotes such as "a typical value would be 5 or more days.", "a typical value would be "10" or higher." etc., was that we would have some way of setting these server response values per app when we upload them to the Market. Either I'm missing something, or there does not seem to be a way to set these in the Developer Console that I can see? If we can't set these, it's not really a 'managed' policy at all, but a random 'whatever the server decides to respond with' policy, particularly given the vagueness of the documentation.

I really hate phone home licensing, and am only using it because it seems to be the only option to combat Android piracy. Ideally I want to just check once when the app is first launched, once a day or two later to check they didn't return it, then cache that for 6 months (forever?) to minimize disruption to my users. Is this kind of thing possible with the ServerManagedPolicy or do I have the wrong end of the stick about the 'management' features and have to roll my own? On a side note, if I can't buy my own app, how can I test my licensing is working in the wild? I got several 'NOT_LICENSED' responses in testing even when I set it to return 'LICENSED' in the console, so I'm not 100% convinced of its stability and want to actually see how well it works outside the testing environment, but apparently can't buy my own app to do so!

View 4 Replies View Related

Android : Startup One Application Programmatically From Other Application

Jul 15, 2010

Say I have app A, in app A i want to set a schedule to startup the app B and C at specific time?

Is it possible to do that? if yes how?

Just need to know the code to fire the outside app.

View 4 Replies View Related

Android :: Programmatically Pause Application?

Jun 15, 2010

How can i simulate pressing the HOME key to put my application in pause mode? Currently i call finish() but it destroys the application.

View 4 Replies View Related

Android :: Starting Market Application Programmatically

Jun 28, 2010

Is this possible? I have a free and a paid version of an application. From the FREE version I want to provide the ability to for the user to "PURCHASE" the paid version. I want to make it as simple as possible. I am thinking of Starting the market app and passing the identification of the PAID so that the Market app will take them right there. I am trying to make it as easy as posible. No searching etc. No I have no intent of doing the purchasing from within my app. I want to have them press [Get Paid Now] button and then I start the Market app which would then take them to my Paid Application in the store.

View 4 Replies View Related

Android :: Closing Application Window Programmatically

Aug 3, 2010

I am doing small project "Location Finder" in android.In that i have used different menu items,which include Close menu.On click of that menu i want to close the application.i have tried it with finish(),but it just the finish the current activity.

View 3 Replies View Related

Android :: Remove Application From Launcher Programmatically

Jun 9, 2009

Is there a way of removing an activity from the home launcher by itself at runtime? I mean removing Intent.CATEGORY_LAUNCHER from it's properties or something similar.

View 2 Replies View Related

Android :: Programmatically Determine If Application Is MarketPlace Version

Oct 7, 2010

I have an application that's offered in and outside of the MarketPlace.Is there a way of determining from within the code where the application came from? I've got a few indirect methods

1) I could simply infer from whether they have "Allow installation of non-Market applications" ticked.

2) Or I could just make separate builds and make it explicit in the code.

View 3 Replies View Related

Android :: Programmatically Launch A Specific Application In Droid?

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

Android :: Programmatically Connect To A Bluetooth Headset From An Application

Feb 4, 2010

I am looking for a way to initiate the audio connection between the Android phone and my headset within my application. The idea is to simplify the connection process in such a way that the user doesn't have to go through the different settings menus anymore (Apps -> Settings -> Wireless & Networs -> Bluetooth settings).

Both devices are supposed to be already paired and the Bluetooth address of the headset to be known.

As far as I learned, the Bluetooth capabilities (available since version 2.0 of the Android SDK) are restricted to Bluetooth discovery and the connection of RFComm channels (host/client) between the Android phone and a Bluetooth device. Is there another way to request Bluetooth profiles on the Android system to initiate a connection to a known device from an app or is this impossible?

View 1 Replies View Related

Android :: Programmatically Display An Hourglass In Droid Application?

Jan 26, 2010

How can I programmatically display an hourglass in an Android application ?

View 1 Replies View Related

Programmatically Configure Orientation In Android Application At Runtime?

Mar 13, 2014

is there a way to programmatically configure orientation in android application at runtime ?

(I want to allow portrait in phones and portrait/landscape in tablets)

View 1 Replies View Related

Android :: Clear Cache Memory When Application Exits Programmatically?

Aug 31, 2010

I have set of images fetched from internet and set it on gridview,here i have option to click here to view more,below the grid view and it fetches images and set it on grid with prevoius set of images,when i exit the application and run it again,the previous set of images remain in cache and grid shows images from cache,here i need to clear my application cache memory,when i exited my application.how can i get it.

View 1 Replies View Related

Android :: LVL Licensing And Versioning ?

Sep 24, 2010

Using the licensing technique described here http://developer.android.com/guide/publishing/licensing.html I'm trying to test what happens when: - I would upgrade my LVL protected app to a new version - Some user hasn't upgraded yet Will the user with the old version still be able to continue? Will the licensing server return LICENSED_OLD_KEY as I expect it to, and thus allow access?

The scenario I used to test this: - uploaded to market a signed version 1.0.0 (did not publish it) of my app which has never been published nor uploaded before - setup test account and let the test response be LICENSED - on Nexus1 tested and verified that when using the apk (so the one in <project>/bin), LICENSED is returned. - increased versionCode and versionName to 1.0.1, signed and uploaded that version to market (didn't publish) - on N1 installed the new apk (again the newly compiled one from <project>/bin). LVL returns NOT_MARKET_MANAGED so indicating that it's not available in the market. But I expected LICENSED_OLD_KEY to be returned.

Am I trying something that's not possible to test? From other posts like this one: [url] and this one: [url]is suggested that the above scenario should work...

If this is not possible to test before publishing an app, did anybody try this out in the field: will LICENSED_OLD_KEY be returned for older versions that previously got LICENSED as an answer?

View 5 Replies View Related

Android :: Predefined Licensing Models

Oct 25, 2010

As I understand, currently there exist two of them, to relieve devs from implementing their own ones, which are -strict -servermanagedpolicy However, I'm missing a predefined policy that actually is the counterpart to the soon deprecated "copy protection mode", ie one that will check once, and then keeps silent for weeks or even months, instead of harassing users to make an online connection. So, I'd like to request to please add a third predefined policy to cater to our laziness. A policy that is the counterpart to the actual old 'copy protection' thingy. Apart from this I don't really see why an app that has been correctly installed by the market with device-based signature checks and all really needs to be checked every 5 days? Wouldn't that only make sense if the app is sort of subscription-based?

View 2 Replies View Related

Android :: How To Implement Licensing For 30 Days Using DLL?

Nov 8, 2010

I have created an application and would like to provide a 30 days trial period for the same using licensing dll provided by android
(http://developer.android.com/guide/publishing/licensing.html#support)
But I cannot find how to restrict this licensing to 30 days from date of installation.

View 2 Replies View Related

Android :: Proguard And The Licensing Server

Sep 23, 2010

Just read the latest Android Developer blog post. http://android-developers.blogspot.com/2010/09/proguard-android-and-l... Quite the beast. And Proguard cannot even be used with confidence ("it's still possible that in edge cases you'll end up seeing something like a ClassNotFoundException").

Is it just me getting irritated where this seems to be going? In my more active days developing, pretty graphic slang was applies to efforts like this: "Turd layering". Meaning: More dependencies, more procedure, more sources of error, and it doesn't even work "right". In of itself, adding innocent looking steps to a release procedure (for some relatively obscure benefit) might be marginally worthwhile, but in the bigger picture, releasing an app increasingly becomes a burden. Dare you miss a step. Or try to teach somebody else how to go through a release and verify it. Or you want to go and rebuild a development environment. Or lose the ominous reference file (mapping.txt)...

View 1 Replies View Related

Get Mobile Internet Speed In Application Programmatically?

Mar 30, 2012

i am developing one small app, in that i have to find out whether device is connected to wifi or mobile network internet(GPRS/3G/HDSPA) and after that i have to find speed of the internet.

if it is connected to wifi we can easily get the speed of the net.but for mobile network internet (GPRS/3G/HDSPA) i am not getting how to find the speed of internet

View 5 Replies View Related

Android :: Market Licensing Sample To Work

Sep 28, 2010

I downloaded the sdk and added the library to my workspace, then the sample for market licensing. The sample app seems to force close somewhere after/during the instantiation of LicenseChecker. I tried running on the emulator with Google API 8 and on a droid x with froyo and it force closes. The stack shows PerformLaunchActivity as the top item. Both emulator and phone had a registered gmail account. how to get this to work?

View 1 Replies View Related

Android :: Market Licensing Intermittently Fails

Oct 26, 2010

I included the Android Market licensing (LVL) in my application and is currently using it to block invalid users. However users are emailing me that they are legit and include proof that they indeed bought the application. In looking at the errors generated during authentication, I get something along the line of "failed to reach server 505 error" which basically means that the Android Market server isn't responding and authenticating the users correctly.

In my personal experience when I encountered this once in my testing (I was hoping it was unique but it's not), I had to wait 30 mins before it finally worked. My phone was using wireless and clearly had no network issues. Ultimately the Android Market server is glitch and faulty (which is nothing new) and was just not responding and authenticating for around 30 mins. This leads to an extremely crappy experience for my users.

Other than dropping using this licensing scheme, I don't know what else to do. Android market connection is just too faulty for everyday usage. Do other developers have a better experience? Others using LVL at all? Others with similar experience?

View 3 Replies View Related

Android :: Check Licensing Permission Of Other Applications?

Aug 2, 2010

I have a free application that has a number of paid-for upgrade applications you can buy for it. The base game is free and remains the application that the user always launches, it detects the presence of the other applications and unlocks various upgrade features as appropriate.

I wanted to use the new licensing service to detect whether the bought applications were licensed, and pass the name of the package to the licensing service to verify if it is authorised (and blindly following the sample I stupidly assumed that passing in the package name to the obfuscator meant that the package name was passed to the licensing server - oops). However I've just realised how dumb that was, and in any case I have hit a brick wall: "If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the licensing permission)".

So, a two-part question: is there any plan to implement what I'm looking for: to check from inside a free application whether any of my other paid published applications are licensed?

If not, then what would be the best way of achieving what I'm seeking? I'm thinking of maybe sending an intent to each of the installed upgrades, getting them to perform the licensing check, and then getting the upgrades to pass the response back into my base application.

View 1 Replies View Related

Android :: How Licensing Work In Transitioning From Free App To Paid?

Feb 11, 2009

Here's the scenario: The app is on the market for free. The publisher then decides to make it a pay app and changes the status. I'm assuming you can just do that, but my questions are:
1) Will the publishing console require us to upload a new version if it is to be a pay app, or can we just change it on-the-fly? 2) If we can change it on-the-fly, how will that affect users that have downloaded the free version? Do they get the license to the paid one as well (so they can delete but reinstall the app for free, get updates, etc?) I've finished a game but I've been just waiting for the paid apps to come on line before publishing it. I'm now thinking that I wouldn't mind a 1 week free period before going paid but something felt like the users who download it for free would never have to pay even after I change it to paid and add some sort of desirable update that makes them want to download the new version (and pay then to get it if they have to).

View 5 Replies View Related

Android :: Licensing Verification Library & Apps Solely For Unlocking/Removing Ads

Aug 31, 2010

There's a large chunk of apps on the market that are free, with ads. Users can pay for an "unlocker" app to remove ads in the "free" app, presumably by doing a check on whether or not the unlocker app package is installed.

If LVL is verified intermittently on a paid app, is it useless for these unlocker apps? Presumably a user would never run the unlocker app, so how would LVL even check the authenticity?

View 10 Replies View Related

Android :: Change An Application Icon Programmatically In Android

Jul 9, 2009

Is it possible to change an application icon directly from the program? I mean, change icon.png in the resdrawable folder. I would like to let users to change application's icon from the program so next time they would see the previously selected icon in the launcher.

View 2 Replies View Related

Google Licensing API - How To Get Public Key From Keystore

Sep 4, 2012

i have finished an app and would like to publish, but all of a sudden, i spotted this Google Licensing API and thought that it would be pretty cool to incorporate it into the code.anyway, in the sample code Google put in... there's this String

Code:
private static final String BASE64_PUBLIC_KEY = "REPLACE THIS WITH YOUR PUBLIC KEY";

how do i get the public key from the keystore that i created with Eclipse?

View 1 Replies View Related

Android :: Android ProGuard Settings Use With App - Uses Licensing Server To Not Force Close

Oct 2, 2010

I've seemingly tried every setting in various articles on the internet including excluding all of my classes through -keep public class.

What settings should be used to not force close? At this point if I could get obfuscation with nothing else would be fine.

Below are sample configurations I've tried and my app still force closes.

I followed this article as well as others: http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html. Still no luck.

CODE:................

View 1 Replies View Related

Android :: Android Market Licensing Check During OnCreate Or OnResume?

Aug 21, 2010

In the included LVL sample app, the license check is triggered during onCreate. This means that when I click "Buy App" to launch the market, then immediately hit the back button to return to the app, the dialog is gone and another check isn't performed, leaving me with a perfectly usable app (at least until the activity is killed and the process starts over again).Would triggering the license check during onResume() be bad form, even though it would fix this issue? Is there a better solution?

View 2 Replies View Related

Android :: Any Way To Enable GPS Programmatically?

Jul 22, 2009

I was wondering if there is a way of enabling the GPS programmatically through an application without going to the menu Settings > Security & location > Enable GPS satellites. Please let me know if there is a way, I've seen this asked a million times in this group but there are never any replies.

View 2 Replies View Related

Android :: Programmatically Get Off The Set Alarm?

Nov 21, 2010

i'm currently setting the alarm via the following.. //set the alarm alarm.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingintent); i don't seem to see an AlarmManager method that allows me to get the time of that set alarm... Is there a way to do it from somewhere else in my app?

View 1 Replies View Related

Android :: Set Styles Programmatically

Feb 3, 2009

Given a widget and a int that references a style (defined in my res/ values/style.xml), what is the 'correct' way to programmatically apply the style to the widget?

Up until now I've been hacking this by...

CODE:..................

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved