1

I'm trying to make a android system app (for me and friends), to let me control my android phone over my server. Actually I've problem to enable/disable data connection. When I search, I found topic that said there is no possibility, or giving a no longer supported way (by using breach). This was exactly the same for GPS controle, but I found a way because my app is a system app.

So I want to know if someone know a way to enable and disable data connection without user consent on a system app. I didn't find anything on the api.

Thanks !

Alabate
  • 74
  • 1
  • 3
  • 12
  • 1
    Take a look at my post here : http://stackoverflow.com/questions/11555366/enable-disable-data-connection-in-android-programmatically/11555457#11555457 – Tobias Moe Thorstensen Mar 16 '13 at 16:27
  • Thank for your answer, I see it before, but when I try, it didn't work. I try again and I ask you after if i've still problem to use it. – Alabate Mar 16 '13 at 16:35
  • Remember, as I said in that post, you have to run gingerbread and higher. 18 other people have succeeded using this method. – Tobias Moe Thorstensen Mar 16 '13 at 16:38
  • 1
    It work ! I was importing the wrong "field", but on the doc, i read that the good one is "java.lang.reflect.Field". And I need to add a try/catch, and finally at the end I forgot (like an idiot) to add the permission.. Thank for your help :) – Alabate Mar 16 '13 at 17:16
  • Sorry, I can't : i've not enough reputation – Alabate Mar 19 '13 at 21:00

0 Answers0