Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to send simple data between two phones. For example: When I press a button on device A on device B an action gets executed, for example, a sound gets played. How can I do this? Which methods would work well?
Thank you in advance.
You need a notification service, and google has something like that for us...
How does this works??
Take a look at the image posted over,
you need to register your android app in the google service, and your web interface will need an id, so every time you want to push something to the android, your web interface instead will push it to the google server with the Id of the app, then google (no matter how) will localize your app, and even if its not running, they will get the notification,
behind the scenes there is a couple of thing that you must do, bu nothing like launching rockets from the NASA.
I will suggest to take a look to some tutorials
in order to start with the registration of your app, get the API key etc etc..
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
my app is an app for nightlife events. It's going to have two type of users:
user 1 is the normal user who looks at event
user 2 is the owner of a bar or a promoter.
These users don't have the same privilege, and can't do the same things. So the layout and functionalities won't be the same,
When the person logs in, I'm able to know which account he owns (thanks to my database). More precisely, user 1 has a keyAccess =0, user 2 has a keyAccess =1
I'm thinking of the code design of my app. What is the best way to handle this multi-account ?
I've thought of creating each time 2 types of activities, and check the value of the keyAccess before launching the intent. Is it good? do you have a better idea ?
Thanks a lot
Welcome to SO. A note - a good question shouldn't be opinion based, you need to ask a concrete question.
Plenty of bar app's exist and in my time working in the field I even saw some tutorials on just this. The simplest option is to create two separate apps or at least separate Activities, particularly as the only thing these two things share is the database (This applies whether you've set up as a web service or it's all on a single in-house device)
If you insist on a single app then just change the fragment or layout shown based on that boolean. There are really so many easy options available that it is impossible to give a more decisive answer to your question.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have made an android app for someone else. The app has a gallery option that should show various photos. The person I am giving this app to has no programming knowledge. I would like to have a common place where the person can upload pics and they show automatically in the app and get updated for all the app users. And by "common place" I mean a site like google photos or something. I would not want users to have to authenticate or anything. Whenever they open the app, the photos should get downloaded from the site. Which web service allows me to do this?
I would think a lot of photo sites would allow you to do this. I've done it in the past with Flickr and PHP, so I imagine it could be done using Android/Java.
Having said that, there's likely to be a lot more you need to consider. Photo sites have various terms of service, copyright agreements, and other important things you'll want to tell your client about before blindly deciding on a service just because it allows you to accomplish this task.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In the Android application, I am developing a one functionality that sends sms messages to given numbers automatically when the application is running. That function is working properly but after the messages is sent the cost for that messages prompts on a alert box.
Normally when I send a message that alert box prompts. But in my application I want to disable it because it disturbs to my application. How can I achieve that.
If you have any Idea then Please Guide me.
Thanks,
Reena
These pop-ups are flash messages that are generated by SIMCARD network provider. There is nothing you can do about it from your app end to put an end to them. But, you can stop it by disabling SIMCARD Services settings.
For disabling flash message you may check the link:
http://www.imobileandroid.com/disable-pop-flash-message-vodafone-android/
It has a process mentioned. So if you can have your all customers devices with you, sure you can stop it, otherwise NO.
Authors Note : Better stop worrying about it ;)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
i be wondering How to game calculate the time for completion of work?
e.x:clash of clans find something update are done.
i believe someone want say get the time by server.but even i be offline can receive notification which say done.even i do change clock of phone nothing change in game if i change time of phone.
The time that is used to determine the yield from objects existing in clash of clans is maintained from a centralized server.
If you wanted to build an app that would calculate the times required to do things in game I think the rout to go would be to
A) ask the developers for the code (unlikely to be fruitful)
B) reverse compile the code. (potentially illegal)
C) Hand document the times required for in game events to happen (game w/notes)
D) Do a literature review to find data on the game
From this Data you may be able to craft a sort of clash of clans advisory app, but I doubt it will be easy to dupe such a consistently maintained app with hacks as simple as changing you're clock.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello I am trying to implement an feature in one of my app so that it can be installed only on one device i guess trying with Device ID is one method Or are there any other methods to do so.......
If you are putting this on the Play store, users can always download any paid software again, as long as any device is linked with the same Google account used to purchase the app. This is designed to stop people losing apps should they get a new device etc and paying for it multiple times.
After reading your comments I believe what you wish the app to do potentially breaks Google Play TOC's. That said, you have not really described what you want to do well enough.
You could require the user to register with an email address before using the app. Maintain a database of emails that have been used to register the app and if an email has already been used, block them.
Note that while this is technically a solution to the question you asked, setting a limit like this is just going to irritate your users and is more likely to cause sales to go down (the few who buy will leave negative reviews, causing others to not buy), not up.