I am about to release a paid app on the market and have used licensing to help secure it. I am currently testing with the white-list and have found that if I set it to licenced it works fine, no problems. If I then turn off wireless and data on my mobile I can only open the app once without it saying that it is not licenced.
So basically, the second time I open my app after turning off all internet access to my phone, it is treated as unlicensed. I thought that using the ServerManagedPolicy you could open the app quite a few times with no internet access? What is going on here?
You get such behavior because you test it using a developer or test account. When you publish it and users buy it license validity period and retry count will increase.
Related
Android system now gives users the decision to give or restrict internet access to selected apps. This is very detrimental to developers, especially for developers that use AdMob and other advertisement services. How to know that users don't give internet access to our app so i can give them warnings?
This is what i mean "Android system now gives users the decision to give or restrict internet access to selected apps":
Internet permission is normal permission in android 12(Which is least preview version of android) too. I don't know what is your problem but if you want to check user's network status, see this document https://developer.android.com/training/basics/network-ops/managing
EDIT
In your case, if turning off switch, android will block network in background. This document will help you https://developer.android.com/training/basics/network-ops/data-saver?hl=en
Forground access will works fine. You're able to access internet switch has been disabled also.
i have bought new android 10 just some days ago . i was using android nought for a long time . i was looking in the setting and i found that i can restrict particular application for using mobile data .
i tried and turned off mobile data for many application and i found that , restricted apps were not able to access interent and my battery life has become much more longer .
i am android developer and i had created an application like Alarm manager which notifies user on battery charging on specific percentage than had added something like battery saver , which basically does nothign except showing ad. so i decided that how can i add this mobile data restriction feature to my app .
i tried to google it but found nothing , i guess i need to make my application Admin , i don't have much idea about admin but i know that i would be able to make as many changes as i want in my application .
is any body has idea what can i do in this situation . i have not seen any simliar app on play store as well . but it could be possible that i would have missed those apps .
I don't think you can toggle connectivity for other apps from your own app, doesn't seem like the system would allow that. You COULD look into a VPN app that can inspect network connectivity, and block requests from specific apps. But I'm not sure how much battery that would save you.
I have distributed my app through posting the link from google drive where the users can download the .apk file.Now that I haven't published my app in google play how to know how many installs or how many people have installed my application.Is there a way I can increase the count variable in the server or something like that?
Unless you went through the App Store or integrated some third party analytics tool like Fabric you would need to have implemented this in the application with a request to a server with a unique identifier to keep track.
Is there a way I can increase the count variable in the server or something like that?
Well that seems a bit shady. You don't want to lie to people, do you?
When you release an app on the Play Store, Google will keep track of how many users download your app, and update it accordingly. So if people use your app, then your downloads (listed on the Play Store) will reflect that.
To see your current downloads, you should be able to find that information on the "Google Play Developer Console." (I would imagine; I currently don't have access to the dashboard myself.)
I am developing an app that implements the google play games turn based multiplayer api.App works fine in my phone while I was developing and I could sign into multiplayer. But when I tested my app in another phone with same features and configurations, it shows error:
Failed to sign in. Please check your network connection and try again.
I am not positive if this has anything to do with my phone using my gmail account which is the developer account and the second phone using another gmail that is listed as a testing account for the app. I have the app in the alpha stage of testing but to put the app on the second phone I just physically hooked it up to my laptop like I did with my own phone.
I have made sure that I am connected to the wifi and I am able to navigate just fine. There is no issue with my connection.
Please let me know if you think you need more information. I appreciate the help.
Thanks.
You can give a try by setting correct date time
If they are set to Automatic, set them manually.
If you still face same issue after doing this, follow this.
Reference Link : Google Play says there's no connection
Hope it helps ツ
Just add your email id too in 'Add Testers' field and wait for 2-3 minutes.
Go to 'Google Play Developer Console', Click on 'Testing' and add email ids of all tester including developers.
Idea: create a remote control for your android phone.
Why: I like listening music on my phone in a dock station with speakers connected. Now sometimes I want to turn the volume up/down, change the song, etc. So I need to unlock the phone, locate app that is playing music (Music player, internet radio app, etc.). Sometimes I manage to undock the phone or just mess something up and generally this s*cks.
So I would like to control my phone (on a data connection, not wifi) from the laptop (on wifi).
I had investigated couple of approaches and would like to get some recommendations on them:
Use XMPP. This is nice as there a lots of free XMPP services I can use. Two libraries (both based on smack) that I tried work just fine (Flow aSmack port and Beem smack port). I could automatically create new user on device and present some id/password combination that I (user) would enter on a desktop side to link both devices.
Use JXTA. Should be the next real deal but could be an overkill. I would imagine running a rendezvous&relay server somewhere (need to get hosting to work around firewall/NAT) and creating a peer group protected with password. Use device unique id and password (withing group) to link to the desktop application. (A great eBook explaining p2p and JXTA can be downloaded from here).
Use C2DM. Could be the answer, but notification delivery sometimes can take more then couple of seconds to deliver and there would be no feedback mechanism.
So far first solutions looks like a lot easier choice. Create custom extension or just create chat between both endpoints and use that for relaying commands/messages. But I wonder if I would be abusing XMPP system?
JXTA sounds great, but from all the reading I done it is apparent that it is designed for group communication and service sharing and not a solution for connecting two endpoints.
What do you guys think? I welcome all suggestions too.
UPDATE I do not want to remote to a phone and interactively control it. I want to establish a connection (socket connection) between laptop and phone even if both of them are on different networks secured behind firewalls, routers. With this I could define a protocol to issue commands to the phone (lower volume, mute, start app, etc.).
UPDATE 2 I'm giving JXTA a shot. It is a nice solution but lack of documentation is a bit of a downer. Got VPS FreeBSD server to test RDV/relay side of things. I keep updating this question further as it may be helpful for others.
UPDATE 3 Some more reading:
How to make two android devices to communicate through TCP
Connection between two computers without opening ports using a third computer
UPDATE 4
So far I did not have enough time to further continue my project. I did find an interesting project. At the moment project owners are re-writing their library, you can track their progress here.
why do not you try installing VNC server on machine and then use VNC client on laptop to access mobile
Mobile Shell (Mosh) maybe just the tool you are looking for. I have been looking for a good project to use Mosh, your idea seems pretty interesting :)