[android-developers] App for Storing Waypoints and Waytracks.......
can anybody tel me . App for Storing Waypoints and Waytracks... This application involves the user can track thier waypoints in a compass or an map if anybody knows pls let me know where i can get these details --~--~-~--~~~---~--~~ 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: [IME]avoiding softinput in one activity
Long press is a back-door for the user to bring up the keyboard outside of the app's control. It isn't really intended to be turned off. On Mon, Sep 28, 2009 at 9:22 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi All, I want to avoid softinput specifically in one activty in a very specific case. When i *long press menu button *softkeypad is coming irrespective of the activty. How can i avoid this? i have tried stateAlwaysHidden etc for that activity. But didit work. Al other cases ok. Just this case* long press menu button*. Thanks -- 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: [IME]avoiding softinput in one activity
Hi Dianne, I understand, i have many activities and just for one i need remove it. i was able to remove as well by returning true on KEYCODE_MENU. But i do have an options menu (without long press). :( Thanks On Tue, Sep 29, 2009 at 12:03 PM, Dianne Hackborn hack...@android.comwrote: Long press is a back-door for the user to bring up the keyboard outside of the app's control. It isn't really intended to be turned off. On Mon, Sep 28, 2009 at 9:22 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi All, I want to avoid softinput specifically in one activty in a very specific case. When i *long press menu button *softkeypad is coming irrespective of the activty. How can i avoid this? i have tried stateAlwaysHidden etc for that activity. But didit work. Al other cases ok. Just this case* long press menu button*. Thanks -- 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: Take an action when soft keyboard is launched
check the following link http://developer.android.com/reference/android/view/View.html#onSizeChanged%28int,%20int,%20int,%20int%29 hope this helps you. Thanks, AJ On Sep 29, 10:34 am, Gulfam gulfa...@gmail.com wrote: Hi All, I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. Gulfam On Sep 29, 12:32 am, Thomas perd...@gmail.com wrote: Hi All, Does Nobody know that? thanks again Tomás On Fri, Sep 25, 2009 at 11:07 AM, Thomas perd...@gmail.com wrote: Hi All, I'd like to take an action always when soft keyboard is shown or hidden. In my activity there is a menu that I want to hide when soft keyboard is launched and this menu needs to be shown when soft keyboard is hidden. Does anyone have an idea about how to do that? Thanks all Thomas --~--~-~--~~~---~--~~ 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: How to prematurely stop a long-running SQLite query?
Ok. Can you describe more about your set of words. Are they all single words? how many distinct words are there? what is the distribution of word lengths? or are they phrases rather than words? Will the size of this list change? -broc On Sep 28, 11:17 pm, mjc147 westmead...@yahoo.co.uk wrote: On Sep 28, 6:02 am, Broc Seib broc.s...@gmail.com wrote: Perhaps aTriedata structure? I can see how that would be useful when searching on prefixes, but what about when doing free text search? Also, by mechanism I was thinking more along the lines of database, flat file (like a CSV) etc rather than logical data structure. --~--~-~--~~~---~--~~ 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: ProgressDialog with a second thread - Screen Orientation and back button. How to restore progress dialog?
hi! first of all, i have to admit that i was wrong. when you set Dialog#setCancelable(false), hit home button, rerun your app, then your progress dialog does not always work. so i'm still stuck :/ @Broc Seib: thank you for your response! you said that you terminate your thread when gui thread is dead. however i just want to do the opposite - i want my thread to be alive while gui is gone. and when gui is restarted, it should still be able to receive messages from running thread. do know if that can be achieved without creating service with thread and binding to it? On Sep 28, 4:43 am, Broc Seib broc.s...@gmail.com wrote: I have built progress bars where I hay d a background thread that updated my Activity via callbacks (to do GUI updates in the UI thread). I ended up using a WeakReference object to hold the callback pointer to my Activity. I have made the assumption (right or wrong) that my UI thread may be gone while my background thread still exists. I was experiencing some funky exceptions while testing my app -- I was rudely interrupting my application by pressing the back or home button in the middle of my background thread doing some non-GUI work. So when it is time for my background thread to report to my UI thread, if my WeakReference returns null, then I just silently exit my thread in the background, knowing my UI thread is gone. Below is a canonical example demonstrating what I am doing. There may be more suitable solutions that I have not learned yet. -broc package foo.example; import java.lang.ref.WeakReference; public class BackgroundThreadExample extends Thread { public interface Callback { public void onSomeBadEventUpdateGuiThread(Object stuff); public void onSomeGoodEventUpdateGuiThread(Object things); } private WeakReferenceCallback weakCallback; private Object stuffYouCareAbout; public BackgroundThreadExample(Callback callback, Object stuffYouCareAbout) { super(myThreadName); this.weakCallback = new WeakReferenceCallback(callback); this.stuffYouCareAbout = stuffYouCareAbout;} �...@override public void run() { // do background stuff boolean isGood = doStuff(this.stuffYouCareAbout); try { // inform our UI via callback. if ( isGood ) { getCallback().onSomeGoodEventUpdateGuiThread(was good);} else { getCallback().onSomeBadEventUpdateGuiThread(was bad);} } catch (MyWeakRefException e) { // our UI thread object is gone. bummer. // silently fall thru to exit this thread. } } private boolean doStuff(Object stuffYouCareAbout) { // some useful stuff might go here. return true;} private Callback getCallback() throws MyWeakRefException { Callback callback = weakCallback.get(); if ( callback == null ) { throw new MyWeakRefException(); } else { return callback; } } } On Sat, Sep 26, 2009 at 8:17 PM, Kacper86 cpph...@gmail.com wrote: Thank you for your response! It works great - now I can change the orientation and the ProgressDialog works. And do have any ideas how to solve the problem with user hitting back or home button? I found that you may set your Dialog with Dialog#setCancelable(false). Then, the user can only hit home button, and when he launches the app again, ProgressDialog is still there! However, what should be done if I want Dialog that can be cancelable? So that the user can cancel ProgressDialog, set something in the app settings, hit home button, run sth else, and then relaunch my app to check the progress? On Sep 26, 11:36 am, manoj manojkumar.m...@gmail.com wrote: You need to implement the method public void onConfigurationChanged(Configuration arg0) { super.onConfigurationChanged(arg0); } in your activity. and in manifest file, you have to the statement android:configChanges=keyboardHidden|orientation for that activity. so when your screen orientation is changed, it wont call the onCreate () method again. On Sep 26, 1:21 pm, Kacper86 cpph...@gmail.com wrote: Hi! I've created ProgressDialog with a second thread according to the DevGuide: http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog It works great till user: 1) changes screen orientation or 2) hits the back button twice (first to hide the dialog, second to hide the app) to hide the application and run the app again after a while. Then, onCreate() is called (for the second time), and progress bar stops responding properly. My thread may work for a few minutes and I want to give the user possibility to hide it and do sth else. After a while he might want to run the app again in order to check the progress. I found a few articles concerning this topic, but I couldn't find the exact solution I should chose for this problem. So, could you tell mi what is the proper way to handle this? Should i save the handler and dialog state with onRetainNonConfigurationInstance()? If so, how to
[android-developers] Re: [IME]avoiding softinput in one activity
Again it's really not intended to be. Consider long press on menu to be the same as the user opening the lid on a device with a hardware keyboard. On Mon, Sep 28, 2009 at 11:48 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi Dianne, I understand, i have many activities and just for one i need remove it. i was able to remove as well by returning true on KEYCODE_MENU. But i do have an options menu (without long press). :( Thanks On Tue, Sep 29, 2009 at 12:03 PM, Dianne Hackborn hack...@android.comwrote: Long press is a back-door for the user to bring up the keyboard outside of the app's control. It isn't really intended to be turned off. On Mon, Sep 28, 2009 at 9:22 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi All, I want to avoid softinput specifically in one activty in a very specific case. When i *long press menu button *softkeypad is coming irrespective of the activty. How can i avoid this? i have tried stateAlwaysHidden etc for that activity. But didit work. Al other cases ok. Just this case* long press menu button*. Thanks -- 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. -- 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: [IME]avoiding softinput in one activity
:( i dotn want to change the frameworks behavior , can i override someway !! just only for my super nasty activity :D On Tue, Sep 29, 2009 at 12:47 PM, Dianne Hackborn hack...@android.comwrote: Again it's really not intended to be. Consider long press on menu to be the same as the user opening the lid on a device with a hardware keyboard. On Mon, Sep 28, 2009 at 11:48 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi Dianne, I understand, i have many activities and just for one i need remove it. i was able to remove as well by returning true on KEYCODE_MENU. But i do have an options menu (without long press). :( Thanks On Tue, Sep 29, 2009 at 12:03 PM, Dianne Hackborn hack...@android.comwrote: Long press is a back-door for the user to bring up the keyboard outside of the app's control. It isn't really intended to be turned off. On Mon, Sep 28, 2009 at 9:22 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: Hi All, I want to avoid softinput specifically in one activty in a very specific case. When i *long press menu button *softkeypad is coming irrespective of the activty. How can i avoid this? i have tried stateAlwaysHidden etc for that activity. But didit work. Al other cases ok. Just this case* long press menu button*. Thanks -- 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. -- 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: change key width runtime
Sorry, It should have been key height On Sep 29, 12:45 pm, Long long...@gmail.com wrote: Hi, I want to change the key width in keyboard at runtime. The constructor of class Keyboard only accepts the layout resource ID. I tried setHeight method, but it didn't work obviously when I checked the code of Keyboard. Any solution? Do I have to implement my own Keyboard Thanks a lot Cheers Long --~--~-~--~~~---~--~~ 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: Application using service in different project
Thanks you very much! Evgeny On Mon, Sep 28, 2009 at 11:30 PM, Mark Murphy mmur...@commonsware.comwrote: Evgeny V wrote: Hi! I have some similar question. APK1 (not service) has public class A. How should I write class A or APK container to make it visble and importable from some other APK? In other words I need to use my first APK as library. Please advise. The closest thing to what you are asking is to export an interface via AIDL: http://developer.android.com/guide/developing/tools/aidl.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ 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: Can't i call a service function in activity's onStart/onCreate?
Yes, ServiceConnection is the callback, and it won't happen until you return to your message loop (which will be after returning from onResume()). 2009/9/28 bear tung beart...@gmail.com Thanks. I want to know when the the service connection is connected. It seems like won't connected before the ui show up. The thing i what to do is show the UI based on the servie's some function's return value. There is something like callback function when the connection done? On Tue, Sep 29, 2009 at 12:14 AM, Marco Nelissen marc...@android.comwrote: You need to wait until you actually receive the service connection callback before you do anything with the service. You can't simply assume that the callback has already happened when you reach your onStart. On Mon, Sep 28, 2009 at 7:36 AM, bear tung beart...@gmail.com wrote: My activity bind a service. I want to call the service's function in actitity's onStart/onCreate function, but it doesn't work. The service started suncess but the connection is null. When I just call the service's function in other function (onClick for example), it works well. thanks for help. here is my code: public class AidlTest extends Activity { private static final String TAG = AidlTest; IAidlService mService; private OnClickListener mCorkyListener = new OnClickListener() { public void onClick(View v) { test(); } }; private ServiceConnection mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder service) { mService = IAidlService.Stub.asInterface(service); } public void onServiceDisconnected(ComponentName className) { mService = null; } }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView v = new TextView(this); setContentView(v); v.setOnClickListener(mCorkyListener); Log.v(TAG, IAidlService.class.getName().toString()); Intent intent = new Intent(IAidlService.class.getName()); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); } @Override public void onStart(){ super.onStart(); Log.d(TAG, onStart); test(); } } public void test(){ if (mService == null){ Log.d(TAG, mService is NULL); } try { mService.test(); }catch (RemoteException e){ Log.d(TAG, e.toString()); } } } Bear -- 董利明(Bear) 软件工程师 Software Engineer Douban Inc. office: +86 8479 9008 Mobile: 1358 1725 230 No.14 Jiuxianqiao Road, Area 51 A1-1-2106, Beijing 100016 , China 北京市酒仙桥路14号51楼A1区1门2016,100016 -- 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] ApplicationContext.java and Activity.java. Is ApplicationContext not used ?
hi, I was going through the code for Activity.java and ApplicationContext. Both these classes define many functions of Context Interface. Take for example startActivity.java Activity Class has its own implementation of startActivity ApplicationContext class also has an implemenetaion of startActivity. Now there are 2 observations... Observation 1: Regarding ApplicationContext.java /** * Common implementation of Context API, which Activity and other application * classes inherit. */ @SuppressWarnings({EmptyCatchBlock}) class ApplicationContext extends Context { === So the comments imply that Activity class should actually use ApplicaitonContext.java. Infact Activity Class should inherit ApplicationContext class. Observation 2: Regarding Activity.java But if you look at class Hierarchy of Activity class, it goes as: Context == ContextWrapper == ContextThemeWrapper == Activity So nowhere do I find ApplicationContext. Questions: 1. Who uses ApplicationContext class? 2. Does Activity class ever deal with ApplicationContext class (as given in the javadoc comments of ApplicationContext.java). Thanks, Amit --~--~-~--~~~---~--~~ 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: How to save a canvas to disk
Thanks! After experiementing, seems to work. I think all I need to do is to do the view.draw(canvas) prior to have the canvas filled with what's drawn on screen. I am still exactly sure what's happening though, as basically I just do everything as it is, and create a new bitmap and a new canvas associate with it, and prior to saving, pass the new canvas to the view. About view.draw(canvas): http://developer.android.com/reference/android/view/View.html#draw(android.graphics.Canvas) Anyway, I am happy! --~--~-~--~~~---~--~~ 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: Hmm... at last ADC2 is out of our way ... tell about your app and experience
cloudList Productivity/Tools http://cloudlist.quarterstaf.com Hello fellow developers, cloudList is our submission to the Android Developers Challenge 2. As the name suggests, it's a list-making app integrated with the concept of cloud computing. The twist is that not only can you access your lists from anywhere in the cloud, you can also share your cloudlists with friends. Updates you or your friends make are instantaneously distributed across your network and help you keep track of what items are being accomplished, changed, or otherwise updated in real time. We have since released a new market version with a different package name that is significantly better than the ADC2 version (bug fixes, UI clean-up, and the like). Just search for cloudlist on market and you should be able to find it. You can also access our web app via the provided URL above. Hopefully you'll find our app useful; if you have any comments or feedback please send them to feedb...@cloudlist.quarterstaf.com. To talk a little bit more about our experience, my team consists of four people. One working on design, one on the web app, and two of us on the phone. We are all first time Android developers so even a seemingly simple app took us quite a bit of time. We had an original ambitious app idea, but we had to discard it due to technical difficulties that would not provide that user experience we wanted. I think we spent about five weeks to develop cloudList. We literally made changes up until 10 min before the deadline; Without a doubt our app for ADC2 is buggy. As I mentioned above, we've released a market version which I am proud to say works quite well. We'll be releasing an update within the next few days to add some more functionality and tweak the UI. Also, follow us on twitter.com/quarterstaf if you want to be kept up to date on cloudList or any future apps we have in production! Good luck to everyone in Round 1 of the Judging phase! Best, Andrew quarterStaf --~--~-~--~~~---~--~~ 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: Change IMSI on Emulator?
Any one know this ? On Sep 24, 10:51 am, Jimmy Huang huan...@gmail.com wrote: Dear All, Does anyont know how to changeIMSIon Emulator? Thanks --~--~-~--~~~---~--~~ 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] ListView With Checkbox
I m Having ListView With Checkboxes ...but if i Click the Checkbox ther is no response can u tel me what to add to my code. Thanks in advance, Raghav.S Her is My Code: final String[] options1 = new String[] {My Wedding To Do List,Categories,My Wedding Day ,Organizer,My Wedding}; setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_ item_multiple_choice,s)); getListView().setTextFilterEnabled(true); final ListView list=getListView(); list.setItemsCanFocus(false); list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); --~--~-~--~~~---~--~~ 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: Simulating Drag/Slide actions
Thanks. That was useful! And it worked well. But, it does not have the following: -Slide keyboard out -Slide keyboard in I need to find how to simulate these actions. If there is a method to rotate the screen by 90 degrees, I could obtain the same result. On Sep 22, 8:45 am, Brett Chabot brettcha...@android.com wrote: The TouchUtils class sounds like it may be useful to you. http://developer.android.com/reference/android/test/TouchUtils.html On Wed, Sep 16, 2009 at 3:05 AM,ArulDeepak deepak.sundara...@gmail.com wrote: I am building a test automation suite using Instrumentation. I could not find the key definitions for the following actions in android.view.KeyEvent class: -Drag screen to right. -Drag app tab up. -Drag status bar down. -Slide keyboard out. -Slide keyboard in. Is there a method for generating these actions as key events? Is there any other method of simulating these actions in the program? I am using android.test.InstrumentationTestCase.sendKeys(int... keys) function.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: ListView With Checkbox
u need to set onItemClickListener for the listview or onClickListeners for the checkboxes (individually). Regards, Saurav Mukherjee. On Tue, Sep 29, 2009 at 2:25 PM, ragavendran s sraghav.ra...@gmail.comwrote: I m Having ListView With Checkboxes ...but if i Click the Checkbox ther is no response can u tel me what to add to my code. Thanks in advance, Raghav.S Her is My Code: final String[] options1 = new String[] {My Wedding To Do List,Categories,My Wedding Day ,Organizer,My Wedding}; setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_ item_multiple_choice,s)); getListView().setTextFilterEnabled(true); final ListView list=getListView(); list.setItemsCanFocus(false); list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); --~--~-~--~~~---~--~~ 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: Take an action when soft keyboard is launched
Gulfam wrote: I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. There are no such events, short of detecting a window resize (and, off the top of my head, I don't know how to do that). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Cannot write SharedPreferences after update!! Help!
Sheado wrote: So if I test by installing and upgrading via the browser only instead of the browser/market combination then things work out ok - I don't get the mismatched uid error: com.my.application.package.path has mismatched uid: 10031 on disk, 10046 in settings; read messages: If you are getting this with an ordinary application on an ordinary (non-rooted/normal firmware) phone, that feels like a bug. In that case, I would recommend writing up the problem over at http://b.android.com. Speaking of which, how are uid's generated - are we (as developers) supposed to know or care at this layer of abstraction? UIDs are generated by the system. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Build APK file from command line...
Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository account). Can I send the apk files to you by email ??? On Sep 29, 12:01 pm, Xavier Ducrohet x...@android.com wrote: zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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] Using custom collection of words to be used as SoftKeyboard candidates
Hello all! Is there a way to use custom list of words as SoftKeyboard candidates? Not to add them to user dictionary but to specify them specifically for this application. Would appreciate any help! Thanks, Martin --~--~-~--~~~---~--~~ 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: Take an action when soft keyboard is launched
If your class is extending from an Activity then I don't know how to get that event. But if your app has some class which is extending from View, then onSizeChanged() gets the control when ever your view gets shortened. Like:- WebView get in Browser app Thanks, AJ On Sep 29, 2:34 pm, Mark Murphy mmur...@commonsware.com wrote: Gulfam wrote: I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. There are no such events, short of detecting a window resize (and, off the top of my head, I don't know how to do that). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] Extensible Apps with Scripting or Bytecode Downloading
Hi, I'm looking into a solution that needs apps to be dynamically extensible. One way could be an extension language or scripting engine. I've seen the Android Scripting Environment, but this needs the actual C scripting engine (Python or Lua) running as a separate process. I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). Another way is to download Java code dynamically. But, Android does not support jar downloading and dynamic classloading, since these bytecode class files are not used directly. So far there seems to be no solution - your thoughts? Thanks! --~--~-~--~~~---~--~~ 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: ExpatReader: DTD handlers aren't supported.
Hi, I'm getting the same error. Could you fix the issue. Thanks, Pablo On 20 sep, 12:47, Maksim mxx...@gmail.com wrote: The same here. I'm trying to read XML from sd card. Did you find a solution so far? On Aug 31, 6:14 pm, synfo...@googlemail.com synfo...@googlemail.com wrote: I seem to be having a weird issue when parsing XML from a server. In LogCat the following warning is displayed: 08-31 12:05:28.870: WARN/ExpatReader(2031):DTDhandlersaren't supported. The parser then seems to stop. I can't figure out what is causing this problem, my approach doesn't seem any different in this instance with regard to parsing XML. Does anyone have any recommendations to fixing this issue? Any help would be greatly appreciated. --~--~-~--~~~---~--~~ 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: Anyone used performHapticFeedback()?
Thanks Lee and Dianne. That works fine, although the vibrate is noticeably lower than that when you type using Hero keyboard. Still, it works fine. I was debating about leaving it in the OnClickListener(), as that sort of seemed more appropriate, it would be a notification that you had clicked the button, but on second thoughts it is supposed to let you know you have actually touched the screen, so the I'm now calling it in the ACTION_DOWN event caught by OnTouch(). This now emulates the feedback behaviour of the Hero soft keyboard. Dianne, I appreciate the UI consideration and have indeed made it optional. However, the docs say that although they only provide built in actions for the long press, it can be used for your own widgets also, so is adding it to my own UI button presses really such a bad thing? In my case I have some purely icon like image buttons, which have transparent backgrounds and blend nicely in to the screen background, so they dont look like normal grey buttons. I have already given them some nice images dependent on the pressed/focused/unpressed state, so it is clear that they are pressable buttons, the haptic is just icing on the cake really. Regards James 2009/9/29 Dianne Hackborn hack...@android.com Currently there is only a definition for long press, so this API isn't all that useful. (This is also why the preference is hidden away in SpareParts, it's not really ready for prime time.) If you are giving feedback for a long press, then you may want to use it... but if you also feel the need to have it ignore the preference, then please consider having your own preference in your app since some users really dislike this stuff. On Mon, Sep 28, 2009 at 8:44 AM, Lee lee.wil...@googlemail.com wrote: This one works for me: performHapticFeedback( HapticFeedbackConstants.LONG_PRESS, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING ); I remember having trouble getting other things to work. Fortunately I only use Haptic Feedback with a long press, otherwise the Code Cops might come calling. If really want to be hauled in front of a judge you can use the Vibrator service directly. Lee On Sep 28, 2:33 pm, James W jpbwebs...@gmail.com wrote: I want to invoke the haptic feedback buzz when my ImageButton is pressed, but I am not sure the best way to do it. I first checked that my button was enabled for that, and isHapticFeedbackEnabled() returns true. Then I am calling performHapticFeedback() with the constant FLAG_IGNORE_GLOBAL_SETTING, as the docs indicate that will be used to override any global settings. The doc is a little ambiguous, but it does imply that this is something I can call at any time, so I am calling it in the OnClickListener(): final ImageButton mybutton= (ImageButton) findViewById (R.id.mybutton); mybutton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mybutton.performHapticFeedback (HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING); // The rest of my code } } ); I appreciate that it would be better to call it when the finger first touches the button rather than on the Click event, but I wanted to get it working to start with, before refining it. Am I barking completely up the wrong tree, or should the above work when I click on the button, because nothing happens? -- 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] Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?
Hi, I am currently using HTC Magic G2 H/W with Android 1.5 Cupcake; I am planning to upgrade it to 1.6 Donut. Is it possible? if so, what is the procedure to upgrade. I need this information urgently. Could anyone please respond. Thanks Regards, Bindu --~--~-~--~~~---~--~~ 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] conference call
Hi, is it possible to add an incoming call with current call to make it as a conference call programmatically? Thanks in advance Nemat --~--~-~--~~~---~--~~ 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: How to dismiss Spinner's Dialog automatically
same problem here On Aug 30, 12:26 pm, star double doublestar...@gmail.com wrote: Hi , guy you can add below code in your AndroidManifest.xml to ignore the change of orientation . activity android:name=List android:configChanges=orientation android:label=@string/ist hope it can help you . 2009/8/30 dweebo dwe...@gmail.com Yes same problem here, figure it out yet? -Peter On Jul 30, 8:56 am, Gery gelin...@gmail.com wrote: Hi group, I am sure that everybody can easily recur the problem I am facing. There is a Spinner in the view, which includes a few entries. When I cllick the Spinner, it pops up a dialog so user can choose an entry. All these are very normal and you can find such things in SDK's API demo. The problem is: when the dialog is still on focus, if you change the phone's orientation, an exception will be thrown. Something like this: 07-30 20:46:03.727: ERROR/WindowManager(416): Activity com.client.CommandList has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43116318 that was originally added here 07-30 20:46:03.727: ERROR/WindowManager(416): android.view.WindowLeaked: Activity com.client.CommandList has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43116318 that was originally added here 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewRoot.init(ViewRoot.java:214) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.Window$LocalWindowManager.addView(Window.java:392) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.Dialog.show(Dialog.java:231) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.widget.Spinner.performClick(Spinner.java:247) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.View.onTouchEvent(View.java:3828) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.View.dispatchTouchEvent(View.java:3368) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1197) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.Activity.dispatchTouchEvent(Activity.java:1993) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.os.Handler.dispatchMessage(Handler.java:99) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.os.Looper.loop(Looper.java:123) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-30 20:46:03.727: ERROR/WindowManager(416): at java.lang.reflect.Method.invokeNative(Native Method) 07-30 20:46:03.727: ERROR/WindowManager(416): at java.lang.reflect.Method.invoke(Method.java:521) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-30 20:46:03.727: ERROR/WindowManager(416): at dalvik.system.NativeStart.main(Native Method) Can anybody help me out? Urgent. Thanks a million. Gery --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,
[android-developers] Re: How to play music album?
Anyone? On Sep 28, 12:07 pm, extrapedestrian extra.pedestr...@gmail.com wrote: I have album id, how can I start activity to play album? I tried this: Uri album = ContentUris.withAppendedId (MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, id); Intent playalbum = new Intent(Intent.ACTION_VIEW, album); startActivity(playalbum); but its not working... --~--~-~--~~~---~--~~ 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: Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?
At some point, when 1.6 is finished, the update will be pushed to your phone and it will ask you if you want to update. Otherwise I think you can either flash your phone or apply the update manually. On Sep 29, 1:09 pm, Kasmoori Bindu bindukasmo...@gmail.com wrote: Hi, I am currently using HTC Magic G2 H/W with Android 1.5 Cupcake; I am planning to upgrade it to 1.6 Donut. Is it possible? if so, what is the procedure to upgrade. I need this information urgently. Could anyone please respond. Thanks Regards, Bindu --~--~-~--~~~---~--~~ 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] 1.6 images for the ADP1 from HTC!
Maybe it has been announced already and I missed it, but just in case: = http://developer.htc.com/adp.html ! BoD --~--~-~--~~~---~--~~ 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] help with rawQuery statement
Hi, I have a very simple statement like below return conn.rawQuery(select date, sum(amount) from entries where (date='+start+' and date='+end+') group by date,null); This statement works flawlessly in sqlite3 command line. However, it returns nothing if I use it within rawQuery method. Is it a bug or I am misusing rawQuery? Thanks. --~--~-~--~~~---~--~~ 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] set transparent background of an imageview in android
hello... i am using a web view in which i am adding a image view..now i want to set the background of this image view transparent.i hv tried setting mImageview.setBackgroundResource(R.color.trans); [where trans = color name=trans# / color ] plz help thanks in advance... --~--~-~--~~~---~--~~ 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: zipalign and Proguard
Thanks On Sep 28, 3:55 pm, Xavier Ducrohet x...@android.com wrote: It's completely different. The only thing that zipalign does is align the location of the uncompressed zip entries on 4 bytes by adding padding before them (using the extra field of a zip entry). The content of the files inside the zip archive is not changed in anyway (otherwise the signature would fail) Xav On Mon, Sep 28, 2009 at 1:28 PM, Fred Grott(Android Expert) fred.gr...@gmail.com wrote: As you mightknow new to SDK 1.6 is the zipalign to align data resources for better and optimized performance and it gets used after apk is signed. My question is how does this affect those who may be obfuscating their classes by using Proguard? Will I stil be able to obfuscate the classes using Proguard? Thanks -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ 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: zipalign and Eclipse: Does Eclipse do this automatically?
Sorry, i did not read carefull enough. It's right there in the ADT section. I was scanning for the word 'Eclipse'. On Sep 29, 12:54 am, Xavier Ducrohet x...@android.com wrote: Yes, in ADT 0.9.3. it's all explained here:http://android-developers.blogspot.com/2009/09/zipalign-easy-optimiza... Xav On Mon, Sep 28, 2009 at 9:42 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Question: Does Eclipse automatically zipalign? In other words: If you use the Android 1.6 SDK, having it installed in Eclipse, and use Eclipse to sign your apk (right-click: Android Tools -- Export Signed Application Package), will your apk be zipaligned? -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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] UI background task
Here's scenario: 1. Client makes remote call to the service (returns void) and provides a callback object 2. Service executes some long running logic on the background thread and then uses callback object to trigger ether success or failure which (since these manipulate visual elements) execute in Activity#runOnUiThread block The scenario runs fine. The question is - can I use AsyncTask to make code less verbose (how?) and would be there any advantages in doing it that way? Or should I just get away from client callbacks alltogether and execute remote service calls retrofitted to return some value within AsyncTask#doInBackground? --~--~-~--~~~---~--~~ 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: 1.6 images for the ADP1 from HTC!
Hi I updated my ADP1 using recovery image. The update process was succeeded. But an error message has been displayed when system rebooted. LogCat messages are below. 06-21 09:53:35.347: ERROR/DatabaseUtils(152): java.lang.SecurityException: Permission Denial: writing com.google.android.providers.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=219, uid=10050 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:276) 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at android.content.ContentProvider$Transport.insert(ContentProvider.java:139) 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:125) 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at android.os.Binder.execTransact(Binder.java:287) 06-21 09:53:35.347: ERROR/DatabaseUtils(152): at dalvik.system.NativeStart.run(Native Method) After all, I did factory reset. This problem was solved. That's strange... Anyone have same situation? -- Keiji Ariyama BoD wrote: Maybe it has been announced already and I missed it, but just in case: = http://developer.htc.com/adp.html ! BoD -- Keiji, ml_andr...@c-lis.co.jp --~--~-~--~~~---~--~~ 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: Is it possible to upgrade HTC Magic G2 from 1.5-Cupcake to 1.6-Donut ?
Of course you can On Sep 29, 8:09 pm, Kasmoori Bindu bindukasmo...@gmail.com wrote: Hi, I am currently using HTC Magic G2 H/W with Android 1.5 Cupcake; I am planning to upgrade it to 1.6 Donut. Is it possible? if so, what is the procedure to upgrade. I need this information urgently. Could anyone please respond. Thanks Regards, Bindu --~--~-~--~~~---~--~~ 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] currently running applications
Is it possible to query, which applications are currently running on a device and especially which application the user is currently using? --~--~-~--~~~---~--~~ 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] Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
Hi, I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: - Run Eclipse - Update every Eclipse components from the update manager (this updated ADT to version 0.9.3) - Restart Eclipse (Everything works fine) - Untar the Android SDK 1.6r1 - In Eclipse preference-Android, I selected the newly uncompressed folder containing Android SDK 1.6r1 - Click on OK - Eclipse runs some tasks and crashes After this, whenever I try to run Eclipse again it brings an empty windows on screen and does nothing else. Is there a way to come back to the old SDK without starting Eclipse, with config files for instance? Other suggestions? Thanks --~--~-~--~~~---~--~~ 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: Is it possible to update a widget from an Activity?
Thank you all, I have gotten this to work. Mark, I apologize, I didn't quite understand what you were saying, but now I do. I was able to get it working easily once I understood this. You can also update the app widget from any class in your application, like so: AppWidgetManager appWidgetManager = AppWidgetManager.getInstance (context); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.main); // Perform updates on the view appWidgetManager.updateAppWidget(new ComponentName(context, TheWidgetProvider.class), views); This was probably obvious, but I didn't understand it right away. You can call this from anywhere, assuming you have a context. Thank you all for helping me better understand something so simple. -John On Sep 27, 4:55 pm, Al alcapw...@googlemail.com wrote: I update my widget from within my app, when I delete/add entries to a list. To do this, I have a method (updateWidget) and a static String (UPDATE_ACTION). My updateWidget() method sends a broadcast which is received by the widget class and then calls onUpdate() with the appropriate params: private void updateWidget() { Intent i = new Intent(this, TVWidget.class); i.setAction(TVWidget.UPDATE_ACTION); sendBroadcast(i); } In TVWidget class: @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action != null action.equals(UPDATE_ACTION)) { final AppWidgetManager manager = AppWidgetManager.getInstance (context); onUpdate(context, manager, manager.getAppWidgetIds(new ComponentName( context, TVWidget.class) ) ); } else { super.onReceive(context, intent); } } This seems to work fine. --~--~-~--~~~---~--~~ 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: Now ADC2 judging has begun.
On Sep 27, 1:35 pm, dka d...@dka-edv.net wrote: applications to review that just crashed - so what to do about it? I then just skipped it, because I cannot really say, if its specific to me. Other bad ratings will do it and - even if all do think like me, and act the same - latest q-gate that it will not pass is the 2nd round. So my personal proposal just ignore and SKIP. --~--~-~--~~~---~--~~ 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: Now ADC2 judging has begun.
Good to read this, On Sep 25, 5:27 pm, Sheenmue sheenmu...@gmail.com wrote: Several times I had to go back toADC2app because the app to review wasn't downloading, other times the app was downloaded but wasn't installed and in several occasionsdownloadprogress stopped at 0% and I had tocanceland start again several times. I never had this kind of problems with Android Market. as it shows me i am not the only one. I found something in the help, but it doesn't really solve it (instructinos to cancel goto market/my downloaded apps, and resart). Can Google see how many % are affected? An ADC2 judging app update would be _very_ helpful to get a solid base for judges. I posess a G, too and during my reviews I had only 2% working from the first time, 50% with 2 to 6 attempts and remaining ~48% with far too many cancel/download/cancel/download iterations, that really stops me from judging better. Short POLL: Do you face this issue, too [or not?] ? --~--~-~--~~~---~--~~ 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: invoking the dialer multiple time
Anyone has solved? This is a bad limitation... On Jul 31, 11:09 pm, flohier floh...@gmail.com wrote: I was told to suggested to import the ITelephony.aidl file from the kernel and invoke thecall() (or answerRingingCall() directly - which is not elegant but seems to be an option. The problem I have trying this is to get a pointer to telephony service form my activity: ITelephony sPhone = ITelephony.Stub.asInterface (ServiceManager.checkService(phone)); ITelephony phoneServ = getPhoneInterface(); This code does not work betcause the ServiceManager is not exposed by the SDK so I don't know how to bind the aidl interface of ITelephony I imported from the kernel. On Jul 29, 12:20 am, Ola stens...@gmail.com wrote: So my question is: does anyone know how I could programmatically exit thecalllog activity as ways to be able to submit another ACTION_CALL intent ? I am also interested in this same thing. I would like to programmatically exit the DialtactsActivity from my service and return to the home screen. BR, //Ola On Jul 26, 3:45 pm,flohierfloh...@gmail.com wrote: Dear All, I wrote an app that places an outgoingcallvia the ACTION_CALL intent. After thecallis placed, the dialer enters thecalllog window and at that point, my application cannot re-submit an outgoingcallwithout having the user exit thecalllog activity. From the kernel source, InCallScreen.java shows implements the delayedCleanupAfterDisconnect() method where one can read: . // If this is acallthat was initiated by the user, and // we're *not* in emergency mode, finish thecallby // taking the user to theCallLog. // Otherwise we simplycallfinish(), which will take us // back to wherever we came from. if (mShowCallLogAfterDisconnect ! isPhoneStateRestricted()) { if (VDBG) log(- ShowCallLog after disconnect...); final Intent intent = PhoneApp.createCallLogIntent (); startActivity(intent); // Even in this case we stillcallfinish() (below), // to make sure we don't stay in the activity history. } finish(); The mShowCallLogAfterDisconnect is a boolean also in InCallScreen.java that reads: // Flag indicating whether or not we should bring up theCallLog when // exiting the in-callUI due to the Phone becoming idle. (This is // true if the most recently disconnectedCallwas initiated by the // user, or false if it was an incomingcall.) // This flag is used by delayedCleanupAfterDisconnect(), and is set by // onDisconnect() (which is the only place that either posts a // DELAYED_CLEANUP_AFTER_DISCONNECT event *or* calls // delayedCleanupAfterDisconnect() directly.) private boolean mShowCallLogAfterDisconnect; If I trust the comment properly, the dialer will enter thecalllog activity unless we had an incomingcalltriggering InCallScreen. I presume that by callwas initiaited by the user also means other activity invoking ACTION_CALL. So my question is: does anyone know how I could programmatically exit thecalllog activity as ways to be able to submit another ACTION_CALL intent ? Thanks for any pointers or suggestions here.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Inject audio to microphone source during a call
Is possible to inject audio such as mp3 in the output of microphone streaming? I've found an application : spoofApp that change the voice during a call. How is possible? Please if it is possible paste some piece of code...thank you --~--~-~--~~~---~--~~ 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: Extensible Apps with Scripting or Bytecode Downloading
Have you tried jRuby? JRuby 1.2 RC1 Released, Initial support for Android: http://www.infoq.com/news/2009/02/jruby12rc1-android-support On Sep 29, 8:14 am, Miguel Paraz mpa...@gmail.com wrote: Hi, I'm looking into a solution that needs apps to be dynamically extensible. One way could be an extension language or scripting engine. I've seen the Android Scripting Environment, but this needs the actual C scripting engine (Python or Lua) running as a separate process. I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). Another way is to download Java code dynamically. But, Android does not support jar downloading and dynamic classloading, since these bytecode class files are not used directly. So far there seems to be no solution - your thoughts? Thanks! --~--~-~--~~~---~--~~ 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: Now ADC2 judging has begun.
Short POLL: Do you face this issue, too [or not?] ? I've got a Google ION (Magic sort of) and so far, 90% have downloaded directly out of the app. Perhaps a little more patience is in order. One thing that may affect my success. I usually do the judging app after business hours, so the market might be less busy. As for interest in judging, it seems to be waning. Here's the breakdown of hits on my 3 ADC2 entries: Day Hits 09/24 14 09/25 32 09/26 37 09/27 36 09/28 26 Sort of a classic bell curve, interest in judging seems to be in the decline with the height around day 3. Of course, it might just be my apps, they are US specific or the weekend. Time will tell. Any other results from the field? -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ 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: Now ADC2 judging has begun.
Short POLL: Do you face this issue, too [or not?] ? I've done about 40 app reviews - never a single problem for me. It does take a few minutes to install though after the download completes. I'm using the stock OS, latest update on my T-mobile G1. Could those with the problem post details about their phone (ie. stock OS or modified, amount of free space available, exact phone, etc) as well? My guess off-hand is that the judging app makes sure an old program doesn't exist before allowing a download - so it might be it doesn't always work if one uses an OS that does SD-card app loading? --~--~-~--~~~---~--~~ 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: Now ADC2 judging has begun.
No problem here using Cyanogen with Apps2SD. Done probably 20-30 reviews. - Dan On Tue, Sep 29, 2009 at 12:43 PM, ander...@phdgaming.com ander...@phdgaming.com wrote: Short POLL: Do you face this issue, too [or not?] ? I've done about 40 app reviews - never a single problem for me. It does take a few minutes to install though after the download completes. I'm using the stock OS, latest update on my T-mobile G1. Could those with the problem post details about their phone (ie. stock OS or modified, amount of free space available, exact phone, etc) as well? My guess off-hand is that the judging app makes sure an old program doesn't exist before allowing a download - so it might be it doesn't always work if one uses an OS that does SD-card app loading? --~--~-~--~~~---~--~~ 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: Inject audio to microphone source during a call
On Sep 29, 12:32 pm, fritzZz franzi...@gmail.com wrote: Is possible to inject audio such as mp3 in the output of microphone streaming? Supposedly no, not even with platform changes, as the call audio doesn't go through the linux part of the system but stays on the radio side of the fence. I've found an application : spoofApp that change the voice during a call. How is possible? Have you personally tested it? And verified that it is making a direct phone call, and not going through someone's server somewhere? --~--~-~--~~~---~--~~ 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: Inject audio to microphone source during a call
I'm not 100% here, but pretty sure SpoofApp also allows for callerID Spoofing, which I would guess is VOIP to their hubs, and out from there... - Dan On Tue, Sep 29, 2009 at 12:54 PM, Chris Stratton cs07...@gmail.com wrote: On Sep 29, 12:32 pm, fritzZz franzi...@gmail.com wrote: Is possible to inject audio such as mp3 in the output of microphone streaming? Supposedly no, not even with platform changes, as the call audio doesn't go through the linux part of the system but stays on the radio side of the fence. I've found an application : spoofApp that change the voice during a call. How is possible? Have you personally tested it? And verified that it is making a direct phone call, and not going through someone's server somewhere? --~--~-~--~~~---~--~~ 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: conference call
I haven't seen any Android SDK APIs which are supporting supplementary services. For being able to support such a functionality APIs like -- hold -- join -- switch have to be available. This functionality is supported on the lower level of the telephony support (look in the Android source frameworks/base/telephony...). That's why the current phone app is able to offer this functionality. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 29, 5:27 am, Nemat nemate...@gmail.com wrote: Hi, is it possible to add an incoming call with current call to make it as a conference call programmatically? Thanks in advance Nemat --~--~-~--~~~---~--~~ 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: Build APK file from command line...
just send me the unsigned one by email. On Tue, Sep 29, 2009 at 3:12 AM, Babyboo handsomebo...@gmail.com wrote: Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository account). Can I send the apk files to you by email ??? On Sep 29, 12:01 pm, Xavier Ducrohet x...@android.com wrote: zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... -- Xavier Ducrohet Android SDK Tech Lead Google Inc. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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: Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
can you post (or send me) the content of the Eclipse log file? It's located inside your eclipse workspace (.metadata/.log) thanks Xav On Tue, Sep 29, 2009 at 8:48 AM, JMichel jmbouff...@gmail.com wrote: Hi, I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: - Run Eclipse - Update every Eclipse components from the update manager (this updated ADT to version 0.9.3) - Restart Eclipse (Everything works fine) - Untar the Android SDK 1.6r1 - In Eclipse preference-Android, I selected the newly uncompressed folder containing Android SDK 1.6r1 - Click on OK - Eclipse runs some tasks and crashes After this, whenever I try to run Eclipse again it brings an empty windows on screen and does nothing else. Is there a way to come back to the old SDK without starting Eclipse, with config files for instance? Other suggestions? Thanks -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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: How to play music album?
There is no intent for playing an album On Tue, Sep 29, 2009 at 5:43 AM, extrapedestrian extra.pedestr...@gmail.com wrote: Anyone? On Sep 28, 12:07 pm, extrapedestrian extra.pedestr...@gmail.com wrote: I have album id, how can I start activity to play album? I tried this: Uri album = ContentUris.withAppendedId (MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, id); Intent playalbum = new Intent(Intent.ACTION_VIEW, album); startActivity(playalbum); but its not working... --~--~-~--~~~---~--~~ 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] taking pictures without seeing the preview on screen
is it possible? I know that if I won't make the call to camera.StartPreview() it won't work... but is there anyway I can hide the preview? or at least make the phone show a blank screen? an example will be appreciated... Thanks! --~--~-~--~~~---~--~~ 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: Soft Keyboard
On the HTC Hero, long-pressing-menu brings up an app switcher with the last six apps. This works in almost all applications and provides an alternative way to multi-task which is always available and quite convenient. Fragmentation, indeed! Ordinary HTC users would probably consider other phones broken if this functionality is missing. Personally, I develop on a Hero and have to keep reminding myself that this is not available to users on other phones. On 25 Sep, 10:18, tauntz tau...@gmail.com wrote: The problem with long-pressing-menu not working is this: HTC Hero. It just does NOT work there with the default keyboard. I got also reports about people being not able to open the virtual keyboard on their phones - I suggested them to try long-clicking the menu (following Romain Guys suggestions) and I thought that everything is fine - till I got my hands on HTC Hero - you can long-press the menu for 2 days in a row - it still does not open the virtual keyboard there. The bottom line is that due to platform fragmentation there's no standard way to bring up the keyboard - different platform implementations use a totally different concept for it. If you want to support such devices, you could detect if a device is a HTC Hero/(or some other device that does not use long-menu-press) and if it is, then use a different layout in your app (eg display a button that brings up the virtual keyboard). Or do some other ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) Tauno On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman ewcarma...@gmail.com wrote: Thank you both for your response. If the application is written for Android 1.1, does this change anything in regards to and there is a keyboard selected and it allows this? I would think that in such an app, since it doesn't know about soft keyboards, the system soft keyboard would be selected and would allow this. But perhaps there is more to this. Are you possibly suggesting that they've installed one of the alternate keyboards? That would be interesting. Again, this works on an emulator which I've defined to have no keyboard, so that is encouraging. At least I think it helps to rule out the caveat where the app isn't consuming the event, but I will check this out to be sure as I do catch key events - just not long- press menu ones, at least not intentionally. I guess now I would need to know what to tell the user to look for on their device such that they can get this functionality to work. Assuming I can get them to contact me or bother to read my web site. Would the keyboard selected refer to the Settings | Locale Date | Keyboard [Checked] option? And then I guess I could refer them to the keyboard settings option below that to investigate further. Best Regards, Eric On Sep 24, 1:14 pm, Dianne Hackborn hack...@android.com wrote: Long press menu forces the keyboard to be displayed, as long as the app doesn't completely consume that key event, and there is a keyboard selected and it allows this (the default behavior is to allow it). -- 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] Android kernel
Hi list, I would like to know if we can use the kernel.org kernels to update the android OS kernel for e.G. to 2.6.32-RC1 directly or if i need any custom android kernel patches to get the kernel running for android? Greeetings Cronix --~--~-~--~~~---~--~~ 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] How to do some init operation immediately after install
There is a big database(15M) in my application, it is too big to download the apk if I publish the source database in myapp.apk. So I encode the db to binary files(300k). But the new problem is I should decode binary files and create the database(with data), this procedure take about several minutes, so I can NOT do this in SQLiteOpenHelper.onCreate(), this is too slow for user experience(though it is a one time procedure, it is still unacceptable). My application has NO main activity entry in launcher, the main entry is BroadcastReceiver.onReceive, the infomation should display to user immediately when receiving the broadcast, so I have no chance to display a several minutes Initializing, please waiting... UI. The best chance to create database and init data immediately after install, but how to do this, is there any broadcast? or is there any AndroidManifest attribute? pls help! --~--~-~--~~~---~--~~ 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: Soft Keyboard
On HTC Hero, long-pressing-menu has a completely different default behavior: it brings up an app switcher with the last six apps. This is available in almost all applications and makes multitasking very convenient. I develop on a Hero now and have to remind myself this is a non- standard HTC thing. Fragmentation, indeed! Ordinary HTC users are probably so used to this behavior they would consider Android phones without it as broken. :-) On 25 Sep, 10:18, tauntz tau...@gmail.com wrote: The problem with long-pressing-menu not working is this: HTC Hero. It just does NOT work there with the default keyboard. I got also reports about people being not able to open the virtual keyboard on their phones - I suggested them to try long-clicking the menu (following Romain Guys suggestions) and I thought that everything is fine - till I got my hands on HTC Hero - you can long-press the menu for 2 days in a row - it still does not open the virtual keyboard there. The bottom line is that due to platform fragmentation there's no standard way to bring up the keyboard - different platform implementations use a totally different concept for it. If you want to support such devices, you could detect if a device is a HTC Hero/(or some other device that does not use long-menu-press) and if it is, then use a different layout in your app (eg display a button that brings up the virtual keyboard). Or do some other ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) Tauno On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman ewcarma...@gmail.com wrote: Thank you both for your response. If the application is written for Android 1.1, does this change anything in regards to and there is a keyboard selected and it allows this? I would think that in such an app, since it doesn't know about soft keyboards, the system soft keyboard would be selected and would allow this. But perhaps there is more to this. Are you possibly suggesting that they've installed one of the alternate keyboards? That would be interesting. Again, this works on an emulator which I've defined to have no keyboard, so that is encouraging. At least I think it helps to rule out the caveat where the app isn't consuming the event, but I will check this out to be sure as I do catch key events - just not long- press menu ones, at least not intentionally. I guess now I would need to know what to tell the user to look for on their device such that they can get this functionality to work. Assuming I can get them to contact me or bother to read my web site. Would the keyboard selected refer to the Settings | Locale Date | Keyboard [Checked] option? And then I guess I could refer them to the keyboard settings option below that to investigate further. Best Regards, Eric On Sep 24, 1:14 pm, Dianne Hackborn hack...@android.com wrote: Long press menu forces the keyboard to be displayed, as long as the app doesn't completely consume that key event, and there is a keyboard selected and it allows this (the default behavior is to allow it). -- 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: Using custom collection of words to be used as SoftKeyboard candidates
Did you consider to use MultiAutoCompleteView or AutoCompleteView ? Regards jim On 29 sep, 12:17, LambergaR martin.s...@gmail.com wrote: Hello all! Is there a way to use custom list of words as SoftKeyboard candidates? Not to add them to user dictionary but to specify them specifically for this application. Would appreciate any help! Thanks, Martin --~--~-~--~~~---~--~~ 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] Mobile Developer Roles in Toronto
Android Developer role available in Downtown Toronto. Description: - Knowledge and experience of Google Android is essential - Knowledge of other contemporary mobile platforms such as Symbian, Windows Mobile (CE), Linux-mobile, BREW, or equivalent are also highly desirable - Very strong design and abstraction skills – as it relates to programming, development of re-usable components etc. - Experience in Multimedia / Wireless / Mobile Content / Mobile Gaming areas is also highly desirable William Coleman Technical Resource Specialist, TAL Technology TAL Group Inc. 69 Yonge Street, Suite 1100 Toronto, Ontario M5E 1K3 Tel:416 599 1825 ext. 257 Toll Free: 1-877-503-2464 ext. 257 Fax: 416-599-8251 E-mail: colem...@talgroup.net --~--~-~--~~~---~--~~ 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] How to display list of images in ListView in android?
Hi All, I am new to android. I want to display the list of images using the ListView. The images which are displayed are decided at runtime according to server response. and also i want to embedd some text on this image(like match scoring chip). the number of images are not fix. Can anybody help me here? - Jitu --~--~-~--~~~---~--~~ 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] download layoutlib.jar
Hi, I cannot find IWindowManager class which is used to simulate keyEvent. I searched google which says you need to import layoutlib.jar. I have tried to search the package in windows 1.5 SDK but could not find it. From where can I download the package ? Thanks --~--~-~--~~~---~--~~ 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] Accelerometer: Fixed Sample Rate Requirements
Hi there, I require the following in order to get my accelerometer based application to work: 1. a reliable sample rate of ~20Hz (can be faster - I can sub-sample) 2. a guarantee of service even when the phone goes to sleep I have coded up a background service to test the performance of the accelerometer. I use the SensorEventListener interface and record the timestamps of sensor events in the onSensorChanged() handler. I have noticed the following: - if I use a PARTIAL_WAKE_LOCK the device stops calling onSensorChanged() whenever the screen goes to sleep - if I use any other wake-lock the device stops calling onSensorChanged() when I press the power button - when the device is awake and onSensorChanged() is being called, I see a varied sample rate for SENSOR_DELAY_FASTEST (and this is without doing anything in the onSensorChanged() function, apart from setting a time-between-calls variable, i.e. no I/O) I should mention that my test device is an HTC Hero. So, my question: is it possible to achieve my requirements? Have I missed something? For example, is it possible to poll the sensor, waking up reliably using the AlarmManager? Many thanks in advance! --~--~-~--~~~---~--~~ 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] htc tattoo
How do I get the HTC Tattoo phone? --~--~-~--~~~---~--~~ 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] How to properly use PreferenceActivity.addPreferencesFromIntent(Intent)
Hi all! Does anyone know how to properly use the PreferenceActivity.addPreferencesFromIntent(Intent) method?! Android reference (http://developer.android.com/reference/android/ preference/PreferenceActivity.html) says: To specify an Intent to query Activities that each have preferences, use addPreferencesFromIntent(Intent). Each Activity can specify meta-data in the manifest (via the key METADATA_KEY_PREFERENCES) that points to an XML resource. These XML resources will be inflated into a single preference hierarchy and shown by this activity So I created a PreferenceActivity overriding onCreate() as follow: protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); addPreferencesFromIntent(new Intent(mypackage.MYKEY)); } Then, I added the following lines into the AndroidManifest file: activity android:name=.AnotherActivity ... intent-filter action android:name=mypackage.MYKEY / /intent-filter meta-data android:name=android.preference android:resource=@xml/ settings / /activity and xml/settings.xml contains ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/ android android:key=settings CheckBoxPreference android:key=1-check-box android:title=1. Check Box / EditTextPreference android:key=2-edit-text android:title=2. Edit Text / /PreferenceScreen Now, all is showed and the CheckBoxPreference works fine but when I click to the EditTextPrefence the following exception occurs: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application ... It seems to be related to the dialog that should appear but that is never shown. Any ideas?! Thanks in advance, Francesco --~--~-~--~~~---~--~~ 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] Run the same applications that are running J2ME
A helping hand, I have an Android G2 and would like to run the same applications that are running J2ME on my other cell E62. Is it possible? What is the procedure? -- Ray da Costa The best way to predict the future is to invent it. Alan Kay --~--~-~--~~~---~--~~ 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] Launch date/time settings from widget
Hi I'm trying to open the date/time settings in responds to a click event in an app widget. My code looks like this: Intent AlarmClockIntent = new Intent (android.provider.Settings.ACTION_DATE_SETTINGS); AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, AlarmClockIntent, 0); views.setOnClickPendingIntent(R.id.clockimage, pendingIntent); Unfortunately it doesn't work. But I have no problems opening the general settings with the almost identical code shown below: Intent AlarmClockIntent = new Intent (android.provider.Settings.ACTION_SETTINGS); AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, AlarmClockIntent, 0); views.setOnClickPendingIntent(R.id.clockimage, pendingIntent); I would be happy if somebody could help me out and tell what i'm doing wrong :-) Thanks in advanced Best Regards, Martin --~--~-~--~~~---~--~~ 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: download layoutlib.jar
layoutlib.jar is used by the Eclipse plug-ins and should NOT be used by application developers. Xav On Tue, Sep 29, 2009 at 7:23 AM, Safy sarfarazmad...@gmail.com wrote: Hi, I cannot find IWindowManager class which is used to simulate keyEvent. I searched google which says you need to import layoutlib.jar. I have tried to search the package in windows 1.5 SDK but could not find it. From where can I download the package ? Thanks -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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: htc tattoo
The-Shadow wrote: How do I get the HTC Tattoo phone? The HTC Tattoo will be available in Europe first at the beginning of October, and will roll out in markets around the world in the following months. http://www.htc.com/www/press.aspx?id=110136lang=1033 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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: help with rawQuery statement
jerryfan2000 wrote: Hi, I have a very simple statement like below return conn.rawQuery(select date, sum(amount) from entries where (date='+start+' and date='+end+') group by date,null); This statement works flawlessly in sqlite3 command line. However, it returns nothing if I use it within rawQuery method. Is it a bug or I am misusing rawQuery? Thanks. Try: conn.rawQuery(select date, sum(amount) from entries where (date=? and date=?) group by date, args); where args is a String[] containing your start and end values. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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: Extensible Apps with Scripting or Bytecode Downloading
Miguel Paraz wrote: Hi, I'm looking into a solution that needs apps to be dynamically extensible. One way could be an extension language or scripting engine. I've seen the Android Scripting Environment, but this needs the actual C scripting engine (Python or Lua) running as a separate process. Only for those two languages, AFAIK, FWIW. I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). So, use Rhino. Or Beanshell. With some classes added to Android 1.5, I suspect Rhino will build from source without issues. Beanshell, at least the language core, builds from source without issues. I use it in a few book examples. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ 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: Soft Keyboard
That's very interesting. Its the first I've heard of a feature being tied to the long-press menu on a Hero. I don't have so I can't test it, but no one else had mentioned that it had an alternate behavior - just that it didn't bring up the keyboard. Is it possible that this feature is the result of an installed app or service on your phone? Is there a customization feature - perhaps in Settings | Locale Date? I'm just curious at this point. --~--~-~--~~~---~--~~ 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: Soft Keyboard
Jonas, that Hero app switcher comes not from long pressing the menu key, but from long pressing the *Home* key. Long pressing the Menu key does nothing, as others have noted. 2009/9/29 Jonas Beckman jonas.beck...@gmail.com On HTC Hero, long-pressing-menu has a completely different default behavior: it brings up an app switcher with the last six apps. This is available in almost all applications and makes multitasking very convenient. I develop on a Hero now and have to remind myself this is a non- standard HTC thing. Fragmentation, indeed! Ordinary HTC users are probably so used to this behavior they would consider Android phones without it as broken. :-) On 25 Sep, 10:18, tauntz tau...@gmail.com wrote: The problem with long-pressing-menu not working is this: HTC Hero. It just does NOT work there with the default keyboard. I got also reports about people being not able to open the virtual keyboard on their phones - I suggested them to try long-clicking the menu (following Romain Guys suggestions) and I thought that everything is fine - till I got my hands on HTC Hero - you can long-press the menu for 2 days in a row - it still does not open the virtual keyboard there. The bottom line is that due to platform fragmentation there's no standard way to bring up the keyboard - different platform implementations use a totally different concept for it. If you want to support such devices, you could detect if a device is a HTC Hero/(or some other device that does not use long-menu-press) and if it is, then use a different layout in your app (eg display a button that brings up the virtual keyboard). Or do some other ugly ugly hacks (I'll burn in hell for suggesting this, right?:P) Tauno On Thu, Sep 24, 2009 at 10:40 PM, Eric Carman ewcarma...@gmail.com wrote: Thank you both for your response. If the application is written for Android 1.1, does this change anything in regards to and there is a keyboard selected and it allows this? I would think that in such an app, since it doesn't know about soft keyboards, the system soft keyboard would be selected and would allow this. But perhaps there is more to this. Are you possibly suggesting that they've installed one of the alternate keyboards? That would be interesting. Again, this works on an emulator which I've defined to have no keyboard, so that is encouraging. At least I think it helps to rule out the caveat where the app isn't consuming the event, but I will check this out to be sure as I do catch key events - just not long- press menu ones, at least not intentionally. I guess now I would need to know what to tell the user to look for on their device such that they can get this functionality to work. Assuming I can get them to contact me or bother to read my web site. Would the keyboard selected refer to the Settings | Locale Date | Keyboard [Checked] option? And then I guess I could refer them to the keyboard settings option below that to investigate further. Best Regards, Eric On Sep 24, 1:14 pm, Dianne Hackborn hack...@android.com wrote: Long press menu forces the keyboard to be displayed, as long as the app doesn't completely consume that key event, and there is a keyboard selected and it allows this (the default behavior is to allow it). -- 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: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?
ApplicationContext is private implementation. Activity takes care of the startActivity implementation for itself, since it wants the starting activity to be associated with the original activity (and ApplicationContext is just the most generic context, which doesn't know that it is an activity). On Tue, Sep 29, 2009 at 12:49 AM, amit amitkee...@gmail.com wrote: hi, I was going through the code for Activity.java and ApplicationContext. Both these classes define many functions of Context Interface. Take for example startActivity.java Activity Class has its own implementation of startActivity ApplicationContext class also has an implemenetaion of startActivity. Now there are 2 observations... Observation 1: Regarding ApplicationContext.java /** * Common implementation of Context API, which Activity and other application * classes inherit. */ @SuppressWarnings({EmptyCatchBlock}) class ApplicationContext extends Context { === So the comments imply that Activity class should actually use ApplicaitonContext.java. Infact Activity Class should inherit ApplicationContext class. Observation 2: Regarding Activity.java But if you look at class Hierarchy of Activity class, it goes as: Context == ContextWrapper == ContextThemeWrapper == Activity So nowhere do I find ApplicationContext. Questions: 1. Who uses ApplicationContext class? 2. Does Activity class ever deal with ApplicationContext class (as given in the javadoc comments of ApplicationContext.java). Thanks, Amit -- 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: Anyone used performHapticFeedback()?
On Tue, Sep 29, 2009 at 4:49 AM, James Webster jpbwebs...@gmail.com wrote: That works fine, although the vibrate is noticeably lower than that when you type using Hero keyboard. Still, it works fine. It is probably using the vibrator API directly with its own vibration pattern. I was debating about leaving it in the OnClickListener(), as that sort of seemed more appropriate, it would be a notification that you had clicked the button, but on second thoughts it is supposed to let you know you have actually touched the screen, so the I'm now calling it in the ACTION_DOWN event caught by OnTouch(). This now emulates the feedback behaviour of the Hero soft keyboard. Dianne, I appreciate the UI consideration and have indeed made it optional. However, the docs say that although they only provide built in actions for the long press, it can be used for your own widgets also, so is adding it to my own UI button presses really such a bad thing? If you are not giving feedback for a long press, I would not use it, since that is currently the only kind of feedback it supports. Instead just use the vibration API directly. This is what the standard soft keyboard does. (We really need to add more types of feedback and move things to using this API, but haven't had time yet.) -- 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: Soft Keyboard
As an update to the the code I showed above, I'm currently working with the following code. This seems to be behaving the way I would want it to. On a phone with a physical keyboard: - if keyboard is not hidden don't bring up the soft keyboard. - if the keyboard is hidden, need to do the SHOW_FORCED option which is handled in the ResultReceiver class. - depending on how you exit, it may leave the keyboard up - not desirable, so I might try to address this. On a phone without a physical keyboard: - SHOW_IMPLICIT seems to work nicely and the keyboard doesn't stay up when you exit the application. View.OnLongClickListener mLongClickListener = new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { softKeyboardResults rr = new softKeyboardResults(); Configuration config = MyView.this.getResources().getConfiguration (); if (config.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES) { InputMethodManager imm = (InputMethodManager) MyView.this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(MyView.this, InputMethodManager.SHOW_IMPLICIT, rr); } return false; } }; class softKeyboardResults extends ResultReceiver { public softKeyboardResults() { super(getHandler()); } @Override protected void onReceiveResult(int resultCode, Bundle resultData) { super.onReceiveResult(resultCode, resultData); switch (resultCode) { case InputMethodManager.RESULT_HIDDEN: case InputMethodManager.RESULT_SHOWN: case InputMethodManager.RESULT_UNCHANGED_SHOWN: break; case InputMethodManager.RESULT_UNCHANGED_HIDDEN: InputMethodManager imm = (InputMethodManager) MyView.this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(MyView.this, InputMethodManager.SHOW_FORCED); break; default: break; } } } Still testing Best Regards, Eric --~--~-~--~~~---~--~~ 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] More accessibility API questions
Hi, all. Still a bit confused about some things and am hoping to get a bit of help. As a brief reminder, I'm both new to Android development and totally blind. While it would make sense as a new developer to start simple, if the phone itself isn't accessible then Hello, world is fairly useless. :) So, unfortunately, I've had to dive into the deeper end and start writing a screen reader. Talkback was unfortunately too basic, and I think that what I've done so far is already better, but I may have run up against the limits of the API. Currently I've written a screen reader that lets me navigate the UI fairly well. Is there any more accessibility functionality than a stream of events to the accessibility service? And, if so, how would I use such a stream to accomplish the following use case? I enter the email application. The accessibility events my app receives provide me with a great deal of context, but not enough in some instances. For instance, when I'm setting up my IMAP account, I land on a field with the text 143. *I* know that this refers to the port number, but I don't see a way for my application to make this discoverable. There needs to be one of two things. Maybe either or bothh of these exist and I'm just missing them. 1. An AccessibilityEvent needs to dump the entire screen/window content to my application such that I can snag it and make it available to the user for review. I thought that was waat events with fullScreen=true were, but these only seem to contain window titles. 2. There needs to be a mechanism for accessing the widget hierarchy, complete with contents. I understand this is a security risk, but I'm not sure how to implement compelling acccessibility otherwise. Am I just missing something? Next, while most apps provide fairly useful AccessibilityEvents, WebKit falls down completely. That is, none of the events I receive have text, or are from classes other than WebView, WebDialog or something similar. Is this a known issue? Based on the debug logs of events I'm getting, I don't see how to make the browseer or any other WebKit apps accessible. Finally, I'm running into performance issues. Ideally, keystrokes should terminate speech such that typing isn't painfully slow. When typing into text areas, I can easily get 10-15 characters ahead of TTS. What I need is to install a listener that listens for keyboard input and flushes the TTS queue on any keypress. This will also allow for speech interruption, a feature available in most speech-based access solutions. Is it possible to do this, and if so, can someone point me to the relevant classes/interfaces? I'd also like to implement screen reader commands for reading statistics such as battery level/signal strength/message count, which requires implementing global hotkeys. As a new developer jumping in over his head by necessity, it isn't immediately obvious where to look for this. :) Thanks a bunch. --~--~-~--~~~---~--~~ 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: Anyone used performHapticFeedback()?
Got it, thanks Dianne, I will look into that API. 2009/9/30 Dianne Hackborn hack...@android.com If you are not giving feedback for a long press, I would not use it, since that is currently the only kind of feedback it supports. Instead just use the vibration API directly. This is what the standard soft keyboard does. (We really need to add more types of feedback and move things to using this API, but haven't had time yet.) -- 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: 1.6 images for the ADP1 from HTC!
Hi - my experinces: Keiji Ariyama wrote: I updated my ADP1 using recovery image. The update process was succeeded. But an error message has been displayed when system rebooted. LogCat messages are below. [...] 06-21 09:53:35.347: ERROR/DatabaseUtils(152): java.lang.SecurityException: Permission Denial: writing com.google.android.providers.settings.GoogleSettingsProvider uri After all, I did factory reset. This problem was solved. That's strange... Anyone have same situation? Not at all. My upgrade was exceedingly smooth. In fact, in retrospect I wasted a LOT of time making duplicate backups of all my data for no use: The upgrade (although it took a while) kept all my data and apps intact as far as I've been able to tell. Quick summary: The phone feels a lot snappier to use. Quite a few things look nicer (though I'm not convinced about the green stuff in Market). Even the bluetooth apps using undocumented APIs seem to work as before. So: it seems like an excellent improvement in my trusty old ADP1. Keep up the good work! / Jonas PS. There were a number of warning style messages in logcat with '...yaddayadda.trout.so' not found and similar, but as everything seems to work I assume they were not harmful. --~--~-~--~~~---~--~~ 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: put() in ResponseCache invoked with a wrong URI?
I will give it a try! Thanks Matt On Sep 19, 5:12 am, Matt Kanninen mathias...@gmail.com wrote: To answer the question of how to get the full url, my work around was to use conn.getURL() instead of the passed URI. So it would be: public CacheRequest put(URI uri, URLConnection conn) throws IOException { // TODO Auto-generated method stub Log.i(DataLoader, Put() + conn.getURL); return null; } On Sep 18, 5:43 pm, Matt Kanninen mathias...@gmail.com wrote: I am seeing the same thing. On Aug 3, 12:27 am, Guitou drumsensati...@gmail.com wrote: Hi, I extended ResponseCache as follow : public class DataLoader extends ResponseCache { @Override public CacheResponse get(URI uri, String arg1, MapString, ListString arg2) throws IOException { // TODO Auto-generated method stub Log.i(DataLoader, Get() + uri); return null; } @Override public CacheRequest put(URI uri, URLConnection conn) throws IOException { // TODO Auto-generated method stub Log.i(DataLoader, Put() + uri); return null; } } I use this code to retrieve datas : ResponseCache.setDefault(new DataLoader()); URI uri; HttpURLConnection conn; try { uri = new URI(http://www.google.com/intl/en_ALL/images/logo.gif;); conn = (HttpURLConnection)uri.toURL().openConnection(); InputStream inputStream; inputStream = conn.getInputStream(); inputStream.close(); } catch (MalformedURLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (URISyntaxException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } But when I look to my logs, the URI sent to the get() method is good (http://www.google.com/intl/en_ALL/images/logo.gif) but in the put() it does not give me the same URI but onlyhttp://www.google.com Is that normal? How to get the full url in put() ? Thanks for your help! --~--~-~--~~~---~--~~ 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: Run the same applications that are running J2ME
http://www.netmite.com/android/ I don't know how well this MIDP runner works, but it's worth a try :-) On Sep 29, 1:21 pm, Ray da Costa raydaco...@gmail.com wrote: A helping hand, I have an Android G2 and would like to run the same applications that are running J2ME on my other cell E62. Is it possible? What is the procedure? -- Ray da Costa The best way to predict the future is to invent it. Alan Kay --~--~-~--~~~---~--~~ 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 using ksoap2 in Android
I've written a webservice client which uses ksoap2. When I run a test program from outside of Android everything works without a problem, however when I issue the SOAP requests from within Android then every 2nd request seems to fail, throwing the following error (copied from the Dalvik Debug Monitor): 09-29 18:35:22.116: ERROR/class com.garethwestern.android.SoapTest (790): unexpected type (position:END_DOCUMENT n...@1:0 in java.io.inputstreamrea...@437e73a8) When I step through the code from within the IDE everything seems to run ok until ksoap2 tries to parse the response, at which point the aforementioned error is thrown because the HTTP response is empty. Unfortunately the webservice is over HTTPS so I am unable to easily use something like fiddler or wireshark to check the exact responses and requests, but as mentioned it works without a problem outside Android, and every 2nd request without fail from within. Does anyone have any suggestions as to how I can debug this further? Thanks, Gareth --~--~-~--~~~---~--~~ 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: Android kernel
Android 1.6 upgrades the Linux kernel from 2.6.27 to 2.6.29, FWIW. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 29, 3:27 am, Cronix bigl...@googlemail.com wrote: Hi list, I would like to know if we can use the kernel.org kernels to update the android OS kernel for e.G. to 2.6.32-RC1 directly or if i need any custom android kernel patches to get the kernel running for android? Greeetings Cronix --~--~-~--~~~---~--~~ 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: Eclipse crashing after update to ADT 0.9.3 and SDK 1.6
Here is the log file content: http://pastebin.ca/1584740 On Sep 29, 1:19 pm, Xavier Ducrohet x...@android.com wrote: can you post (or send me) the content of the Eclipse log file? It's located inside your eclipse workspace (.metadata/.log) thanks Xav On Tue, Sep 29, 2009 at 8:48 AM, JMichel jmbouff...@gmail.com wrote: Hi, I'm running Eclipse Ganymede on Ubuntu 9.04. I wanted to update to the newest Android SDK 1.6r1 from 1.5r3. The procedure that I followed is: - Run Eclipse - Update every Eclipse components from the update manager (this updated ADT to version 0.9.3) - Restart Eclipse (Everything works fine) - Untar the Android SDK 1.6r1 - In Eclipse preference-Android, I selected the newly uncompressed folder containing Android SDK 1.6r1 - Click on OK - Eclipse runs some tasks and crashes After this, whenever I try to run Eclipse again it brings an empty windows on screen and does nothing else. Is there a way to come back to the old SDK without starting Eclipse, with config files for instance? Other suggestions? Thanks -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ 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] Android on HTC Tattoo and FM receiver
I was looking at the specs of the new Android phone from HTC, the Tattoo, and it seems it will feature an FM radio receiver. I don't believe there is any API in the Android SDK to control and access the audio from such a receiver. Is there a way to develop an application that would use, play or record the FM stream? Thanks. --~--~-~--~~~---~--~~ 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: jsonarray as listview source
Ok, I don't get a BaseAdapter logic, I assume because I am not used to java. I found tons of examples on net (mostly for drawing pictures etc) but it make no sense to me. For example, list4 from sdk do something similar, but...where are they binding data? I see where data is set to custom class, but what actually returns data from BaseAdapter? GetView? Thanks for any clarification Adam On Sep 28, 8:15 pm, Mark Muphy mmur...@commonsware.com wrote: vorcigernix wrote: Hello, I made my application from various examples and sources, so now I have filled jsonarray and prepared listview (with custom rows formatting). Now I need to replace ListAdapter myAdapter =(new ArrayAdapterString (this,R.layout.rowlayout, R.id.TextView01, values)); with my json array based adapter. All I found is some technique to iterate through all json records and construct string array. It sound like perverse to me, is it really necessary? Create your own adapter class from BaseAdapter, and you can traverse your JSON however you want. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need Android talent? Ask on HADO!http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: How do I resize my application to a smaller one placing it on top left?
Sounds like crazy idea to me. On Sep 29, 6:41 am, Karthik P karthi...@gmail.com wrote: Is there any way for me to resize an app to make it smaller and placing it top left? I understand that there is a theme - Dialog its possible to make the window size smaller but is it possible for me to dictate the x, y, dx, and dy where the dialog has to be placed? Karthik --~--~-~--~~~---~--~~ 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] filtering items in a view based on a value selected in a spinner
Hi all, I have a quick question: I am trying to change the items in a list view based on a value that gets selected in a spinner that is in the same activity. Is there a quick way to do filtering on the list adapter data based on that value, or should I go the long way of changing my adapter implementation for easy filtering? Any suggestions are greatly appreciated. Thanks, Mihai --~--~-~--~~~---~--~~ 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: Update all the contacts belonging to one group
Dear Mark, your solution sounds really great but I discovered that it is just ... impossible to make some bulk operation on contacts (at least until release r3). I then optimized my code to update just what has to be updated. Thanks you by the way for your answer. C. On 28 sep, 14:19, Mark Murphy mmur...@commonsware.com wrote: cyril.at...@gmail.com wrote: I have an application that updates all the contacts belonging to a group, I currently do the following : - Get the group id - Get all the contacts id inside this group - For each of them I am doing an update on thecontact= This is really heavy and seems to take time in real phones while I expect it to be instantaneous. I am wondering if we can, in the ContentResolver.update() method specify a kind of join. For instance I'd like to do something like : UPDATE people SET people.name=new name FROM People p, GroupsMemberships gm WHERE p.person_id=gm.person_id and gm.group_id=my_group_id Does anyone know if it's possible or not? Not that I am aware of. Bear in mind that not all content providers will be using a SQL database as the place of data storage. Since the contacts content provider does appear to use SQLite, rather than iterating over your contacts, though, you could try the IN syntax in the WHERE-style constraint: [WHERE] person_id IN (...) where ... is a comma-delimited set of values, or possibly even a sub-select to get the IDs of the contacts to update. http://sqlite.org/lang_expr.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: activity is destroyed when press home key
Hi, I just replied to the bug, but should say something here as well -- This is intentional behavior, since launching a single task activity means bringing it to the foreground, the stack is cleared so it can always receive the new intent. So for example Browser, which is one of the few single task activities -- if it is launched from somewhere with a new URI the root activity needs to be brought foreground to display it. The solution is simple: don't use single task. There are very very few places where this is actually appropriate, and those few cases are for this kind of special case behavior for the browser. On Mon, Sep 28, 2009 at 6:52 AM, Johan Schöring scho...@gmail.com wrote: That's what the documentation says, but that's not what the ActivityManager does. From what I can see, the problem lies in the following code: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/ActivityManagerService.java;h=a473db2740abe124b7867d0ea6313eb8c0ca7a7d;hb=5550ef48739a7bb16f80aa6b10e9c151b1438163#l The if-statement on line causes the activity stack to be cleared if the launch mode is singleTask, regardless of the state of FLAG_ACTIVITY_CLEAR_TOP... In my opinion, this is a bug, as the documentation you quoted clearly says that the stack should be preserved on a singleTask activity. I'm going to submit a patch for this, but I'm writing here so others who find this thread know that this behaviour is not their fault but a bug. // Johan On Sep 24, 10:02 pm, Justin (Google Employee) j...@google.com wrote: Fromhttp://developer.android.com/guide/topics/fundamentals.html#acttask As noted above, there's never more than one instance of a singleTask or singleInstance activity, so that instance is expected to handle all new intents. A singleInstance activity is always at the top of the stack (since it is the only activity in the task), so it is always in position to handle the intent. However, a singleTask activity may or may not have other activities above it in the stack. If it does, it is not in position to handle the intent, and the intent is dropped. (Even though the intent is dropped, its arrival would have caused the task to come to the foreground, where it would remain.) Cheers, Justin Android Team @ Google On Sep 24, 11:45 am, justinh henderson.jus...@gmail.com wrote: When users press on your icon again to come back they are launching your activity, not the settings activity. Where do you start the settings activity in your code? If it's outside of the onCreate/ onStart/onResume methods then the user will have to repeat that action to get back there. On Sep 24, 2:58 am, play_net tiandiji...@gmail.com wrote: My manifest: activity android:label=@string/app_name android:name=MainUI android:screenOrientation=landscape android:configChanges=orientation|keyboardHidden android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:label=@string/settings_label android:name=.view.Settings android:configChanges=orientation| keyboardHidden /activity I press program's icon to start my program,and then open the Settings activity through startActivityForResult(intent, SETTINGS). Now i press the home key and start my program through program's icon, at this time the Settings actitity will run OnDestroy() and be destroyed. I can't understand why Settings activity is be destroyed automatically? How can I make Settings activity still focus when users come back. Thank all. -- 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] AudioTrack question
I have some questions about the AudioTrack class that I can't seem to answer by reading the class documentation. Is it possible to use the android.media.AudioTrack class in a non- blocking way? If so, what conditions must be true to ensure that the write() method doesnt block? How do the position marker notifications work? They seem to be measured in frames, what is a frame? Where can I find documentation on frames? When the marker notification occurs, is the callback made from a thread that called write() or from some other thread? -Tim --~--~-~--~~~---~--~~ 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] Contact Photo in LiveFolder
I was hoping to include the photo for each contact in a live folder. I am using People.loadContactPhoto() to get a bitmap and am placing it into the content provider's result column for LiveFolders.ICON_BITMAP but I keep getting a NullPointerException. Any ideas? Should I not be doing this? --~--~-~--~~~---~--~~ 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] TimerTasks getting suspended when the phone is plugged in.
I have an application running TimerTasks. The TimerTask takes a long time to run (up to 20 minutes). If the phone is plugged in or unplugged during that time, the timer task gets suspended for about 10 minutes, or sometimes longer. Has anyone see this, and is this intended behavior on the Android? Thanks. Richard Schilling Mobile Operating Systems Engineer Root Wireless --~--~-~--~~~---~--~~ 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: Start the CallLog Activity via Intent
I am really desperate right now. Does nobody know what I am doing wrong? On 28 Sep., 23:58, Matt reisc...@googlemail.com wrote: So it obviously cannot find an activity that can handle the Intent. Does somebody know why? Wrong URI? Wrong action? On 28 Sep., 02:04, Matt reisc...@googlemail.com wrote: unfortunately that did not work either. On 28 Sep., 00:29, iPaul Pro mr.paulbu...@gmail.com wrote: Intent i = new Intent(); i.setAction(Intent.ACTION_CALL_BUTTON); startActivity(i); Paul On Sep 25, 7:43 pm, Matt reisc...@googlemail.com wrote: Hi, I have the following code in my application: Intent i = new Intent(); i.setAction(Intent.ACTION_VIEW); i.setData(android.provider.CallLog.CONTENT_URI); startActivity(i); I want to bring up the CallLog activity, but when I run my application I get an error, that the application has stopped unexpectedly. Why does this happen and how can I display the CallLog? Using i.setData(android.provider.CallLog.Calls.CONTENT_URI); does not give me an error, but brings up the dialer - not exactly what I want. ;-) I tried displaying the Contacts with i.setData(android.provider.Contacts.People.CONTENT_URI); and that works flawlessly. Any help is highly appreciated! Best wishes, Matt --~--~-~--~~~---~--~~ 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: Take an action when soft keyboard is launched
Hi Thanks all for your answers. I put a code in the onSizeChanged(), but when this method is called always when the view resizes. I'd like to know how I can discover using this method if the virtual keyboard is opened or not. I saw the InputMethodManager, but I didn't find how to use this class for my purpose. Anyone can help me? Thanks again On Tue, Sep 29, 2009 at 7:51 AM, AJ ajeet.invinci...@gmail.com wrote: If your class is extending from an Activity then I don't know how to get that event. But if your app has some class which is extending from View, then onSizeChanged() gets the control when ever your view gets shortened. Like:- WebView get in Browser app Thanks, AJ On Sep 29, 2:34 pm, Mark Murphy mmur...@commonsware.com wrote: Gulfam wrote: I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. There are no such events, short of detecting a window resize (and, off the top of my head, I don't know how to do that). -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: How to build the aidl tool
Follow the regular directions for building the platform, which will also build the tools. Please post any further questions to android-porting. On Tue, Sep 29, 2009 at 4:10 PM, n179911 n179...@gmail.com wrote: Hi, I get the android source. How can I build the aidl too that is part of android (the one which generates java file from an aidl file)? -- 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] ADC2 submissions and Android 1.6 (Donut)
Hi All, Have a question about ADC2 submissions and Android 1.6 (Donut) We rigorously tested our submission (CubeWorks, http://www.cubeworksmobile.com) with Android 1.5 but it crashes on startup with 1.6 If the rumors are true and Donut does become available next week won't that make judging unfair since some judges may be using 1.6 The 1.6 SDK was made available on Sept 15 and the ADC2 submissions closed Aug 30th. Our trouble is being caused by the android.opengl.GLU.gluUnProject() method but I am sure there are other minor incompatibilities between the two versions. 09-17 01:52:04.569: ERROR/AndroidRuntime(796): java.lang.IllegalArgumentException: length - offset n 09-17 01:52:04.569: ERROR/AndroidRuntime(796): at android.opengl.Matrix.multiplyMV(Native Method) 09-17 01:52:04.569: ERROR/AndroidRuntime(796): at android.opengl.GLU.gluUnProject(GLU.java:285) Any insight would be greatly appreciated. Regards, --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---