[android-developers] Change network operator
Hi, is there a way to change network operator or list available networks from the public API:s? BR, Sven -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] State of a phonecall
Hi, I can see that we can get a phonestate via the PhoneStateListener, /** * The phone state. One of the following: * * IDLE = no phone activity * RINGING = a phone call is ringing or call waiting. * In the latter case, another call is active as well * OFFHOOK = The phone is off hook. At least one call * exists that is dialing, active or holding and no calls are * ringing or waiting. * */ enum State { IDLE, RINGING, OFFHOOK; }; but there is no way of telling the state of the call. OFFHOOK is a number of states combined into one. Is there a particular reason for this? Are we not allowed to see the correct state of a call? BR, SGAdrian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Creating context, how?
So where can ask this question? Could you move this thread to the correct forum? So how can I get hold of a functional Context, if that means I have to go through the ActivityManager? Can I create a Service without an Activity? I dont want anything visible to the user. BR, Sven On 15 Maj, 19:09, Dianne Hackborn wrote: > You are in the wrong group -- this group is for programming against the SDK, > which you are well outside the bounds of. > > That said, you can't really get a functional Context from outside of > processes not launched by the activity manager. You'll notice that the > monkey, am, and pm commands all don't use a Context for this reason. > > > > On Fri, May 15, 2009 at 6:41 AM, SGAdrian wrote: > > > Sorry but I dont get it. > > > I am starting my java program with app_process, i.e I am not running > > any Service or Activity. Just like the Monkey.java program is doing. > > > Ex. > > > public class Main { > >public static void main(String[] args) { > > // How can I get hold of a Context instance here? > > // > > } > > } > > > BR, > > Sven > > > On May 15, 2:50 pm, "Mark Murphy" wrote: > > > > When you are developing on an application level(Services, Activities) > > > > you always get this Context reference automatically. > > > > > But what if I am on a lower level and developing a program started > > > > with app_process, how can I get hold of a Context then? Its a huge > > > > part of the API that need this context. > > > > Have it passed to you via the API to your lower level. In other words, > > > just as the Android API requires you to pass in a Context, your API to > > > your higher levels will require those higher levels to pass in a Context. > > > > > What the proper way to create a Context instance? > > > > AFAIK, you don't create Context instances -- you use the ones created for > > > you by Android (e.g., Activity, Service). > > > > -- > > > Mark Murphy (a Commons Guy)http://commonsware.com > > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Creating context, how?
Sorry but I dont get it. I am starting my java program with app_process, i.e I am not running any Service or Activity. Just like the Monkey.java program is doing. Ex. public class Main { public static void main(String[] args) { // How can I get hold of a Context instance here? // } } BR, Sven On May 15, 2:50 pm, "Mark Murphy" wrote: > > When you are developing on an application level(Services, Activities) > > you always get this Context reference automatically. > > > But what if I am on a lower level and developing a program started > > with app_process, how can I get hold of a Context then? Its a huge > > part of the API that need this context. > > Have it passed to you via the API to your lower level. In other words, > just as the Android API requires you to pass in a Context, your API to > your higher levels will require those higher levels to pass in a Context. > > > What the proper way to create a Context instance? > > AFAIK, you don't create Context instances -- you use the ones created for > you by Android (e.g., Activity, Service). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Creating context, how?
Hi, When you are developing on an application level(Services, Activities) you always get this Context reference automatically. But what if I am on a lower level and developing a program started with app_process, how can I get hold of a Context then? Its a huge part of the API that need this context. What the proper way to create a Context instance? I've tried : ActivityThread main = ActivityThread.systemMain(); Context context = main.getSystemContext(); But when I use this context with the MediaScannerService for example, I get the following error : "Unable to find app for caller android.app.applicationthreadpr...@433f92e8 (pid=1049) when binding service Intent { action=android.media.IMediaScannerService } " BR, Sven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with framebuffer
Hi, I downloaded the complete source and found some code to take a screenshot. But when using it it does not always show the correct image. I found out that the /dev/graphics/fb0 actually contain 2 screens but neither of them contain the data that is actually shown on the screen. Is the framebuffer device supposed to be synched with the memory on the GPU or do I need to manually synch it? In otherwords doing a cat /dev/graphics/fb0 > /data/buffer.raw does not contain the actual screen data. How can I retrieve the correct data? BR, SGAdrian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Trigger functionality from outside Android
Hi, is there a way to trigger functionality from an application living outside Android? If I for example want to setup a voicecall from an application running on windows is that possible? This has always been possible with AT-commands(ATD, ATH etc.) on other platforms. One other nice feature would be to control the UI from an external testapplication, could that be possible? BR, SGAdrian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---