Hi there.
I have one question - I'm starting to learn android development and I want to know one thing - can I write app that will adapt to phone on which is installed? I mean - for example - app will use wifi, gps and ringtone to give me location of a phone. If phone has gps - it will use gps. If not - it will switch to wifi. If phone is old and has no wifi or gps it will ring. I want detect it automaticaly beacuse app will be installed on different models and by users that know nothing about device so it must be done inside of app and not by user.
xorg23 said:
Hi there.
I have one question - I'm starting to learn android development and I want to know one thing - can I write app that will adapt to phone on which is installed? I mean - for example - app will use wifi, gps and ringtone to give me location of a phone. If phone has gps - it will use gps. If not - it will switch to wifi. If phone is old and has no wifi or gps it will ring. I want detect it automaticaly beacuse app will be installed on different models and by users that know nothing about device so it must be done inside of app and not by user.
Click to expand...
Click to collapse
Yes it is possible. but I dont remember any phone without WiFi,gps .every device have them
Sent from my GT-S5570 using XDA Premium 4 mobile app
arpitkh96 said:
Yes it is possible. but I dont remember any phone without WiFi,gps .every device have them
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
That was example. I need to write an app that will switch from one option of communication to another is one of them is not avaible (no signal or simply is not supported) or simply to conserve battery.
xorg23 said:
That was example. I need to write an app that will switch from one option of communication to another is one of them is not avaible (no signal or simply is not supported) or simply to conserve battery.
Click to expand...
Click to collapse
Again yes its possible .Google maps do this.it prompts to switch on WiFi or GPS etc for location accuracy
Sent from my GT-S5570 using XDA Premium 4 mobile app
Yes! That is possible and most apps are designed in this fashion.
Sent from my GT-N7100 using XDA Premium 4 mobile app
This: http://developer.android.com/refere...anager.html#hasSystemFeature(java.lang.String) is what you want to use, amd here are the possible features you can pass/ask for: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#features-reference . Keep in mind that you still need to have the matching permission.
Gesendet von meinem SM-N9005 mit Tapatalk
Related
Just wondering if its possible to disable the voice software on my phone... Dont use it and I'm sure its taking a fair chuck of ram in the background...
Sent from my GT-N7000 using xda premium
TheSteeples said:
Just wondering if its possible to disable the voice software on my phone... Dont use it and I'm sure its taking a fair chuck of ram in the background...
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
you could:
1. turn it off in settings
2. try Autorun Manager to prevent it's autostart (or of any other unnecessary app)
3. check the thread on Note apps safe to remove
Appreciate it thanks.... Been a while since I used Android, still playing catchup....
Sent from my GT-N7000 using xda premium
Friends
Good afternoon
I need some information.
I'm thinking of buying the Mini Defy XT321, it has the android system and also allows to install two chips. I need to know if I can set the system every time it uses the data network (3G) over to a particular chip and when to make calls using normal use another chip. I wonder if this administration can be done automatically by the system or smartphne (hardware). Someone tell me?
Questions go in the Q&A section
Im interested on this one too
SidGBF said:
Im interested on this one too
Click to expand...
Click to collapse
bought it, it rocks.
Limitation: limited storage for apps.
Btw: it switches the sims automatically. When dialing you havê tão buttons to pick what sim to use.
Sent from my MZ601 using xda app-developers app
Have two buttons, I mean
Sent from my MZ601 using xda app-developers app
Siri Proxy allows you to control additional devices with a Siri device. So I thought there must be something similar available for Android.:fingers-crossed:So we can also control our garages with Android devices
http://www.youtube.com/watch?v=NUJ5z76Xv5o
http://arstechnica.com/information-...ons-that-show-how-amazing-the-tiny-pc-can-be/
https://github.com/plamoni/SiriProxy
So many views but no reply ?
Sent from my GT-I9100 using Tapatalk 2
Can't this be done with Google Now? Seems like it would be a feature.
Sent from my YP-G70 using xda app-developers app
damnyouwaffles said:
Can't this be done with Google Now? Seems like it would be a feature.
Sent from my YP-G70 using xda app-developers app
Click to expand...
Click to collapse
Yes, something has to be done with Google now
Sent from my GT-I9100 using Tapatalk 2
I'll look into it.
Sent from my YP-G70 using xda app-developers app
look on "utter" in playstore with tasker you can put event on it - you down't need to be online.
meo said:
look on "utter" in playstore with tasker you can put event on it - you down't need to be online.
Click to expand...
Click to collapse
It is all in beta.
Sent from my GT-I9100 using Tapatalk 2
I have been wanting something like this as well.
To have an application to do this though, you would have to have two parts two it.
First part would be an app on your Android device, and the other part would be something that runs on a computer @ the house.
Reason for this is because you would want a secure connection between your phone and the app. Otherwise, anyone/everyone would be able to access your home automation system.
If there is anything like this, that would be awesome, but I don't think there is
The closest thing you can get to it is HomeSeer, but it isn't voice activated. It's only buttons.
If anyone knows of a program that would do voice activation home automation, please let me know!
Hi
I have a serious problem ...
My GPS is off in location settings but on battery stats graph its on all frigging day!!! Any ideas how to find out what and how ?
This is something new . never had this before no new apps installed (only regular updates ) I'm only assuming its app like Facebook or something but no idea really
Sent from my Nexus 4 using xda premium
MattSkeet said:
Hi
I have a serious problem ...
My GPS is off in location settings but on battery stats graph its on all frigging day!!! Any ideas how to find out what and how ?
This is something new . never had this before no new apps installed (only regular updates ) I'm only assuming its app like Facebook or something but no idea really
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Do you have location access enabled in any apps, widgets, weather news or facebook/twitter, google now?
Have you installed lookout app? This app(recent update, no problem before) get the gprs on no matter location service is off or not.
Sent from my Nexus 4 using xda app-developers app
clockcycle said:
Do you have location access enabled in any apps, widgets, weather news or facebook/twitter, google now?
Click to expand...
Click to collapse
I have location access on but GPS off. And it should not turn it on. Like I've said no new apps installed, I have all the same stuff since release of the phone. this started recently ....
I use Google now but this has never affected my phone
Sent from my Nexus 4 using xda premium
Hi I want to start my service after it is killed by the user or the system.
I thought about creating a second app and monitor if the service is running and if not then start it.
The problem I have with that is
- I need two apps
- It drains more battery
I hope you can help me find the best solution for my problem
Yeah, I think if you override the onDestroy method on your service class, and then you can send a broadcast from there.
In your broadcast receiver you can start the service again.
Though i have never tried it myself, i think this should work.
Tell me how it goes
Happy coding!! :thumbup:
Sent from my GT-P3100 using XDA Free mobile app
hiphop12ism said:
Yeah, I think if you override the onDestroy method on your service class, and then you can send a broadcast from there.
In your broadcast receiver you can start the service again.
Though i have never tried it myself, i think this should work.
Tell me how it goes
Happy coding!! :thumbup:
Sent from my GT-P3100 using XDA Free mobile app
Click to expand...
Click to collapse
I thought about that too but unfortunately when the app is stopped by the user the onDestroy methode is not called...
Sent from my SM-N9005 using XDA Premium 4 mobile app
If yu are using android version less than 4.4.2 then returning start sticky should do it
Sent from my GT-P3100 using XDA Free mobile app
hiphop12ism said:
If yu are using android version less than 4.4.2 then returning start sticky should work
Sent from my GT-P3100 using XDA Free mobile app
Click to expand...
Click to collapse
That is only if the system stops the service not if the user does....
Sent from my SM-N9005 using XDA Premium 4 mobile app
Rick Clephas said:
That is only if the system stops the service not if the user does....
Click to expand...
Click to collapse
I believe there is no such way... otherwise android would be very insecure for malware that just does this . You can only restart your service once the user restarts your activity, there should not be another way (and START_STICKY for the system of course). And please don't do two apps which listen for each other, if the user willingly kills your service they usually have a reason and expect that your app is not working right until they restart it.
SimplicityApks said:
I believe there is no such way... otherwise android would be very insecure for malware that just does this . You can only restart your service once the user restarts your activity, there should not be another way (and START_STICKY for the system of course). And please don't do two apps which listen for each other, if the user willingly kills your service they usually have a reason and expect that your app is not working right until they restart it.
Click to expand...
Click to collapse
I have heard that a lot but does that mean that all the security apps available on the play store can be killed by the user? :what:
Sent from my SM-N9005 using XDA Premium 4 mobile app
Rick Clephas said:
I have heard that a lot but does that mean that all the security apps available on the play store can be killed by the user? :what:
Click to expand...
Click to collapse
Sure, why not? I could uninstall my firewall on my PC if I wasn't using Ubuntu and thus don't really need one
SimplicityApks said:
Sure, why not? I could uninstall my firewall on my PC if I wasn't using Ubuntu and thus don't really need one
Click to expand...
Click to collapse
Well that is a pitty. I really thought I had seen an app that could do that...
Sent from my SM-N9005 using XDA Premium 4 mobile app
Look this app says it can't be killed by task managers https://play.google.com/store/apps/details?id=com.domobile.applock
Sent from my SM-N9005 using XDA Premium 4 mobile app
Rick Clephas said:
Look this app says it can't be killed by task managers https://play.google.com/store/apps/details?id=com.domobile.applock
Click to expand...
Click to collapse
Just an idea, it might be possible when your app is a Device Admin with the APIs that you get with that. Though you have to read it yourself, I have no clue about how it works.
SimplicityApks said:
Just an idea, it might be possible when your app is a Device Admin with the APIs that you get with that. Though you have to read it yourself, I have no clue about how it works.
Click to expand...
Click to collapse
Thanks I will look at that. Most people have my app as Device Admin because that way it can't be uninstalled
Sent from my SM-N9005 using XDA Premium 4 mobile app
Well I found the solution.
When device admin is enabled the app can't be force-stopped or uninstalled. Then the user can only stop the service and then the onDestroy methode is called so then I can restart the service again. Tanks guys :thumbup:
Sent from my SM-N9005 using XDA Premium 4 mobile app