[android-beginners] Re: can't launch intent + debug problem, Source not found
What version of Android are using and what hardware platform are you running on ? Balwinder Kaur 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 Nov 30, 11:00 am, Marton Kodok pentiu...@gmail.com wrote: 11-30 20:05:04.604: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-30 20:05:28.518: ERROR/MemoryHeapBase(567): error opening /dev/pmem: No such file or directory 11-30 20:05:28.524: ERROR/SurfaceFlinger(567): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake 11-30 20:05:28.724: ERROR/libEGL(567): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-30 20:05:30.284: ERROR/libEGL(582): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-30 20:05:38.354: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/usb/online' 11-30 20:05:38.374: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/battery/batt_vol' 11-30 20:05:38.374: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/battery/batt_temp' 11-30 20:05:39.214: ERROR/EventHub(567): could not get driver version for /dev/input/mouse0, Not a typewriter 11-30 20:05:39.244: ERROR/EventHub(567): could not get driver version for /dev/input/mice, Not a typewriter 11-30 20:05:39.434: ERROR/System(567): Failure starting core service 11-30 20:05:39.434: ERROR/System(567): java.lang.SecurityException 11-30 20:05:39.434: ERROR/System(567): at android.os.BinderProxy.transact(Native Method) 11-30 20:05:39.434: ERROR/System(567): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146) 11-30 20:05:39.434: ERROR/System(567): at android.os.ServiceManager.addService(ServiceManager.java:72) 11-30 20:05:39.434: ERROR/System(567): at com.android.server.ServerThread.run(SystemServer.java:162) 11-30 20:05:39.444: ERROR/AndroidRuntime(567): Crash logging skipped, no checkin service 11-30 20:05:41.914: ERROR/LockPatternKeyguardView(567): Failed to bind to GLS while checking for account 11-30 20:05:44.674: ERROR/jdwp(612): Failed sending req to debugger: Broken pipe (-1 of 27) 11-30 20:05:44.744: ERROR/jdwp(612): Failed sending req to debugger: Broken pipe (-1 of 27) 11-30 20:05:44.816: ERROR/jdwp(612): Failed sending reply to debugger: Broken pipe 11-30 20:05:55.213: ERROR/ActivityThread(615): Failed to find provider info for com.google.settings 11-30 20:05:55.273: ERROR/ActivityThread(615): Failed to find provider info for com.google.settings 11-30 20:05:57.863: ERROR/vold(538): Cannot start volume '/sdcard' (volume is not bound) 11-30 20:06:00.934: ERROR/ApplicationContext(567): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml 11-30 20:06:08.003: ERROR/AndroidRuntime(637): Uncaught handler: thread main exiting due to uncaught exception 11-30 20:06:08.003: ERROR/AndroidRuntime(637): *** EXCEPTION IN SYSTEM PROCESS. System will crash. 11-30 20:06:08.234: ERROR/AndroidRuntime(637): java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000 cmp=com.test1/.Boot } from null (pid=-1, uid=-1) requires null 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.os.Parcel.readException(Parcel.java:1218) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.os.Parcel.readException(Parcel.java:1206) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1149) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.commands.am.Am.runStart(Am.java:202) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.commands.am.Am.run(Am.java:76) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.commands.am.Am.main(Am.java:54) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.internal.os.RuntimeInit.finishInit(Native Method) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:186) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at dalvik.system.NativeStart.main(Native Method) 11-30 20:06:08.503: ERROR/JavaBinder(637): Unknown binder error code. 0xfff7 11-30 20:06:08.503: ERROR/AndroidRuntime(637): Crash logging skipped, no checkin service 11-30 20:06:11.884:
[android-beginners] Re: can't launch intent + debug problem, Source not found
The problem you are seeing has to do with the x86 version. Try the porting forums. http://groups.google.com/group/android-porting Balwinder Kaur 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 Dec 1, 7:34 am, Marton Kodok pentiu...@gmail.com wrote: android 2.0 windows 7 on 64 bit, with Java Android setup for 32 bit 2009/12/1 Balwinder Kaur (T-Mobile USA) balwinder.k...@t-mobile.com What version of Android are using and what hardware platform are you running on ? Balwinder Kaur 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 Nov 30, 11:00 am, Marton Kodok pentiu...@gmail.com wrote: 11-30 20:05:04.604: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test2' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error opening switch name path '/sys/class/switch/test' (No such file or directory) 11-30 20:05:04.604: ERROR/vold(538): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory) 11-30 20:05:28.518: ERROR/MemoryHeapBase(567): error opening /dev/pmem: No such file or directory 11-30 20:05:28.524: ERROR/SurfaceFlinger(567): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake 11-30 20:05:28.724: ERROR/libEGL(567): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-30 20:05:30.284: ERROR/libEGL(582): couldn't load libhgl.so library (Cannot load library: load_library[984]: Library 'libhgl.so' not found) 11-30 20:05:38.354: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/usb/online' 11-30 20:05:38.374: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/battery/batt_vol' 11-30 20:05:38.374: ERROR/BatteryService(567): Could not open '/sys/class/power_supply/battery/batt_temp' 11-30 20:05:39.214: ERROR/EventHub(567): could not get driver version for /dev/input/mouse0, Not a typewriter 11-30 20:05:39.244: ERROR/EventHub(567): could not get driver version for /dev/input/mice, Not a typewriter 11-30 20:05:39.434: ERROR/System(567): Failure starting core service 11-30 20:05:39.434: ERROR/System(567): java.lang.SecurityException 11-30 20:05:39.434: ERROR/System(567): at android.os.BinderProxy.transact(Native Method) 11-30 20:05:39.434: ERROR/System(567): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146) 11-30 20:05:39.434: ERROR/System(567): at android.os.ServiceManager.addService(ServiceManager.java:72) 11-30 20:05:39.434: ERROR/System(567): at com.android.server.ServerThread.run(SystemServer.java:162) 11-30 20:05:39.444: ERROR/AndroidRuntime(567): Crash logging skipped, no checkin service 11-30 20:05:41.914: ERROR/LockPatternKeyguardView(567): Failed to bind to GLS while checking for account 11-30 20:05:44.674: ERROR/jdwp(612): Failed sending req to debugger: Broken pipe (-1 of 27) 11-30 20:05:44.744: ERROR/jdwp(612): Failed sending req to debugger: Broken pipe (-1 of 27) 11-30 20:05:44.816: ERROR/jdwp(612): Failed sending reply to debugger: Broken pipe 11-30 20:05:55.213: ERROR/ActivityThread(615): Failed to find provider info for com.google.settings 11-30 20:05:55.273: ERROR/ActivityThread(615): Failed to find provider info for com.google.settings 11-30 20:05:57.863: ERROR/vold(538): Cannot start volume '/sdcard' (volume is not bound) 11-30 20:06:00.934: ERROR/ApplicationContext(567): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml 11-30 20:06:08.003: ERROR/AndroidRuntime(637): Uncaught handler: thread main exiting due to uncaught exception 11-30 20:06:08.003: ERROR/AndroidRuntime(637): *** EXCEPTION IN SYSTEM PROCESS. System will crash. 11-30 20:06:08.234: ERROR/AndroidRuntime(637): java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1000 cmp=com.test1/.Boot } from null (pid=-1, uid=-1) requires null 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.os.Parcel.readException(Parcel.java:1218) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.os.Parcel.readException(Parcel.java:1206) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1149) 11-30 20:06:08.234: ERROR/AndroidRuntime(637): at com.android.commands.am.Am.runStart(Am.java:202) 11-30 20:06
[android-beginners] Re: Update 1.6
This is a developer forum for Android SDK issues. However, to assist you, your options are: 1. Contact Vodafone Tech support, if you want the official update. This is the safe, official, and probably easiest way. If you want to have some hacking fun and can live with the thrill/risk of having a bricked phone then there are other options like 2. You can root the phone and flash an image from the HTC site http://developer.htc.com/google-io-device.html [The Google-IO-Device is not the same as HTC Magic, so check the versions of the s/w, bootloader etc. It may or may not be compatible. I have flashed the HTC Dream image on a G1, but not the Google ION on a HTC Magic. A thorough research and fully charged battery is always advisable in this matter.] 3. Or even more fun and more thrill is using a third party distro of Android (where some of your favorite apps may not be available). Balwinder Kaur Senior Mobile Software Engineer ·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 Oct 23, 2:59 am, tlascp00 tlasc...@gmail.com wrote: Dear, we have 2 HTC Magic (Vodafone), one of them has done the upgrade to 1.6, but the seconde do not do the upgrade, when i choose System updates, the message your system is currently up to date. They are Vodafone branded, so there is no possibility to update with a PC. Is there a possibility to send a push or onther way to force the update? BV 65.50S.20.17U_2.22.1926I KV 2.6.27-00393-g6607056 s...@sandroid #1 Build Number CRC1 Thanks in adavnce for your help and information Best regards Patrice Schwab ___ Specialiste Telecom Technical Support Unit Téléphone 0800 55 64 64 Fax 021 344 85 39 patrice.sch...@swisscom.com ___ Swisscom SA Technical Customer Unit Technical Support Unit Rue des Bergières 42 1004 Lausannewww.swisscom.ch Adresse postale: Case postale 8002 1000 Lausanne 22 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: I Need Help Setting Up My ADB On MY Mac
do which adb to see if it is on your path. If not you may have to specify it. Balwinder Kaur Senior Mobile Software Engineer ·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 Oct 20, 9:13 pm, kevin.hooke kevin.ho...@gmail.com wrote: This might be a stupid question, but did you replace sdkfolder with the full path to where you installed the SDK? On Oct 20, 12:23 am, AlbertDroid albertle...@gmail.com wrote: These are the instructions I followed: - Download the Android SDK for Macintosh at:http://developer.android.com/sdk/ - Extract it - Download Fastboot for OSX (If not included with SDK) - Extract fastboot and place it in your /tools folder. - Open up a terminal window - type: pico .bash_profile (this will create a .bash_profile) - type the following in the new screen: export PATH=$ {PATH}:sdkfolder/tools - Hit CNTRL + X - Hit Y (for yes to save) - It will return you to the terminal screen… type: exit - Restart terminal. Now when i go into terminal i type adb and it says -bash: adb: command not found what did i do wrong --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Listner for Click and Touch events:
So you want to capture touch and click events that are not meant for your application ? I don't believe that is possible using the SDK. Balwinder Kaur Mobile.Software.Development ·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 Oct 20, 4:25 am, Prabakar prabhu_mp...@yahoo.com wrote: Please note i want to listen touch and click events from my application even when the user is outside of my application. --- On Tue, 10/20/09, Prabakar prabhu_mp...@yahoo.com wrote: From: Prabakar prabhu_mp...@yahoo.com Subject: [android-beginners] Listner for Click and Touch events: To: android-beginners@googlegroups.com Date: Tuesday, October 20, 2009, 4:24 PM Hi, I want to listen touch and click events happening anywhere on the device screens from my application. What should i register for this and how can i listen from my application? Is there any sample or help provided? Can some one suggest please? Thanks. Martin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Dialogbox title doesn't allow other controls to go up
It is requestWindowFeature (Window.FEATURE_NO_TITLE) this snippet will do the trick... @Override protected Dialog onCreateDialog(int id) { Dialog d = new Dialog(this); d.requestWindowFeature(Window.FEATURE_NO_TITLE); d.setTitle(You shouldn't see this); // whatever else your dialog should be doing return d; } Balwinder Kaur Mobile.Software.Development ·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 Oct 18, 11:51 pm, Prabakar prabhu_mp...@yahoo.com wrote: Anyone please? --- On Mon, 10/19/09, Prabakar prabhu_mp...@yahoo.com wrote: From: Prabakar prabhu_mp...@yahoo.com Subject: [android-beginners] Dialogbox title doesn't allow other controls to go up To: android-beginners@googlegroups.com Date: Monday, October 19, 2009, 5:42 AM Hello All, I have developed a dialog box and put two controls there. One is Volume icon and the Close button. But both the controls are not showing completely top corners of dialog. I want both should be in top corners of Dialog box. Please see the attached image for reference. The problem now is, there is big space for Dialog box title. You can see the attached picture, which will show how the volume icon couldn't be able to go to top corner, instead struck at the big space(right side space) provided for dialogbox title, so it's getting hidden a bit. I want to remove this title space for dialog, so that i think i'll be able to put my two controls on top corners. I tried already tried this - requestWindowFeature(Window.FEATURE_PROGRESS); but it is throwing error for dialogbox. Suggestions please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Dynamic text movement
You can use methods like setGravity. You may have to create an onKeyListener and override the onKey method. Balwinder Kaur Mobile.Software.Development ·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 Oct 18, 5:13 am, vamsee y.vamseekris...@gmail.com wrote: hai all, I am developing an application which would look like microsoft power point application. I had a problem while writing and moving the text dynamically. I have tried with edit text box, but was not able to move it and can not resize it. Can any one help me. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Controlling who and when can access for a Service and Waiting for Android Threads to finish
One solution for question 1 is : Maintain a state machine internal to your Service. If your service is not in ready state, calls to bindService can return false and calls to startService can ignore the request. Balwinder Kaur ·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 Oct 19, 3:45 am, jbrohan jbro...@gmail.com wrote: startActivityForResult(...) and then you receive the return through onActivitResult(). It's hard at first but you quickly get used to it and it works fine.. John On Oct 18, 9:00 am, jax jackma...@gmail.com wrote: A couple of questions 1. I have a service that needs to restrict access to it's methods at certain times. What is the best way to implement this. My activity binds to the service initially. 2. I am using the TTS (Text to Speech) library but I have noticed that is takes a little while to load and appears to do so in another Thread. I need my activity to wait until this is fully loaded, how do I do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems with WakeLock
Ok. I was able to reproduce the problem, but it happened only twice ( I must have tried it about 12~15 times). I also found this discussion thread . http://groups.google.com/group/android-developers/browse_thread/thread/a9c4c2fd37f8f6a6 I assume you have a reference to mWakeLock object, I do in my test program. Seems like a timing issue. The GC kicks in before the PowerManagerService is able to service the release of the WakeLock. Maybe one of the Android Framework Engineers would like to reply to this one :) Balwinder Kaur Mobile.Software.Development ·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 Oct 16, 1:43 am, Chris themaninthesuitc...@googlemail.com wrote: Occurs on both emu (the 1.6 one) and a HTC Hero (running latest rom which is a 1.5 one). SDK is the latest using the 1.5 API. The finish is in a onClick handler (allowTapToClose is a private member) public void onClick(View v) { if (allowTapToClose) { setResult(RESULT_OK); finish(); } } out side of the calls posted it doesn't really do very much it's just a display;ay at the moment. On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Could you please post the rest of your code - or at least the portion where you call finish. I can't reproduce your problem with the information that is present. Also, what version of the SDK are you using and where are you seeing this problem..on a device (which one) or the emulator (which platform) ? Thanks, Balwinder Kaur Mobile.Software.Development ·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 Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote: I am using a PowerManager.WakeLock to lock to stop the screen auto diming after a period of non use. This works fine up until I try to release the lock. private void aquireBacklightLock() { PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); mWakeLock = pm.newWakeLock (PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag); mWakeLock.acquire(); } private void releaseBacklightLock() { if (mWakeLock != null) { mWakeLock.release(); } } The aquireBacklightLock is called when the activity is created or resumed. releaseBacklightLock is called in the onPause. However, if I exit the app (I call finish) I get a force close a few seconds later. The logcat is saying WakeLock finalized while still held. Where am I going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems with WakeLock
Could you please post the rest of your code - or at least the portion where you call finish. I can't reproduce your problem with the information that is present. Also, what version of the SDK are you using and where are you seeing this problem..on a device (which one) or the emulator (which platform) ? Thanks, Balwinder Kaur Mobile.Software.Development ·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 Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote: I am using a PowerManager.WakeLock to lock to stop the screen auto diming after a period of non use. This works fine up until I try to release the lock. private void aquireBacklightLock() { PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); mWakeLock = pm.newWakeLock (PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag); mWakeLock.acquire(); } private void releaseBacklightLock() { if (mWakeLock != null) { mWakeLock.release(); } } The aquireBacklightLock is called when the activity is created or resumed. releaseBacklightLock is called in the onPause. However, if I exit the app (I call finish) I get a force close a few seconds later. The logcat is saying WakeLock finalized while still held. Where am I going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why use onCreateDialog?
The answer to your question is part of the documentation :) Read under the topic Showing a Dialog http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog Balwinder Kaur Mobile.Software.Development ·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 Oct 14, 7:22 am, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: i've been wondering this. why would i implement Activity.onCreateDialog()? why wouldn't i just create a new instance of the dialog i want, and call .show() on it? usually a dialog will close itself, but if i doesn't, i just keep a handle to it in a member field and call .dismiss(). -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse
In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project. Balwinder Kaur Mobile.Software.Development ·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 Oct 14, 4:43 am, jax jackma...@gmail.com wrote: how to you run a clean? On Oct 14, 6:41 pm, Smelly Eddie ollit...@gmail.com wrote: I may be mistaken, but if you run a clean on the project it should regenerate all the generated java files, namely R. On Oct 13, 11:57 pm, jax jackma...@gmail.com wrote: I have notices that R.java sometimes noes not refresh when I edit (and save) an XML file. The only way I have been able to get around this is to attempt to run the project, this seems to fix it. This is however kind of annoying, does anyone know a better way around this problem? An eclipse shortcut key etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: View id names for native android layouts
You can check out the source code file that gives you insights into the layout file for simple_list_item_checked http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/layout/simple_list_item_checked.xml;h=95612f63f3144703913aee3f0d06e032074b8f0b;hb=HEAD It uses the CheckedTextView as its View. The two attributes that you can use for the CheckedTextView are checkMark and checked. CheckedTextView xmlns:android=http://schemas.android.com/apk/res/ android android:id=@android:id/text1 android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:textAppearance=?android:attr/textAppearanceLarge android:gravity=center_vertical android:checkMark=?android:attr/textCheckMark android:paddingLeft=6dip android:paddingRight=6dip / Hope this helps, Balwinder Kaur Mobile.Software.Development ·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 Oct 13, 8:16 am, jax jackma...@gmail.com wrote: I have been stuck on this for hours and cant find any information about it. I am trying to use the following layout with a SimpleCursorAdapter android.R.layout.simple_list_item_checked The problem is I don't know what the checkbox field is called in this layout. By experimentation the text field is called android.R.id.text1 I tried android.R.id.checkbox but it did not work. How do I find this information? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Log.d() show same log twice in logcat
What's your development environment setup like ? Do you have two devices/emulators talking to each other and running the same app ? Are you using DDMS ? I have seen something like this when I had two phones connected via USB to my laptop and was using DDMS/logcat to view the output. Balwinder Kaur Mobile.Software.Development ·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 Oct 12, 11:42 pm, Yichuan yichuan1...@gmail.com wrote: Hi all, Every time I use Log.d(), there are two duplicated entries in the logcat, and sometimes the timestamp are different... Any ideas please? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ContentURI cannot be resolved HELP ME ............
1. Class name is ContentUris, not ContentURI 2. Package name for ContentUris is android.content.ContentUris 3. Try using android.net.Uri or the android.net.Uri.Builder; ContentUris are for those Uris that have a scheme of content Balwinder Kaur Mobile.Software.Development ·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 Oct 13, 10:07 am, GreenRiver thong.dom...@gmail.com wrote: I can't use import android.net.ContentURI; because It's not compatible with my current version of Android SDK (1.5) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Build android middleware code for emulator
The instructions for building android source code is available at source.android.com and the forum for discussing problems related to those are http://groups.google.com/group/android-platform Balwinder Kaur Mobile.Software.Development ·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 Oct 13, 5:59 am, bdg biswaru...@gmail.com wrote: Hi, Please let me know how can I build the android middleware code (for e.g audioflinger) for emulator on Fedora linux pc. Basically I want to put some logs in the code and see them in logcat using DDMS. Thanks in advance --bdg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to get resource path?
getResources().openRawResourceFd(int id) Get the FileDescriptor for the file and use MediaPlayer.setDataSource (FileDescriptor fd) method. Balwinder Kaur Mobile.Software.Development ·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 Oct 8, 12:55 am, abhi rkabhi1...@gmail.com wrote: Hi, I have included three MP3 file in the R.raw folder. Now I am able to get the file name of the MP3 file, but I need to find out the complete path of the file in order to play the file using MediaPlayer. I am using MediaPlayer.setDataSource(String path) to set the path to the file. When I set the path as just the file name, the MediaPlayer does not play it. Is there any way to get the full path of the MP3 file in resources? Or else, can I use some other implementation of MediaPlayer.setDataSource ()? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Doubt
or is it the classic OO Parking lot design problem that needs to be done in Android :) ? http://stackoverflow.com/questions/764933/amazon-interview-question-design-an-oo-parking-lot You will find plenty of solutions online if you search for it. If there is help you need with Android, please feel free to post specific questions about it. Balwinder Kaur Mobile.Software.Development ·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 Oct 7, 5:33 am, jbrohan jbro...@gmail.com wrote: This is a really interesting app. How do you know if a parking spot is taken? I guess you could work with a photo from a high building and check from that, or the security cameras. In this case the photo itself, or a transformation of it would show the location of free spaces. Be sure to record where the car is actually parked, as some people forget. On Oct 5, 2:06 pm, kruti shah kruti...@gmail.com wrote: how do i show a blueprint of a parking lot which has got empty as well as occupied places.How do we show whther tht parking spot is occupied or no?And when the driver gets the info abt a vacant parking spot he selects and when he selects the route from the driver to tht location has to get highlighted .how do we do tht? -- Kruti Kumar Shah Graduate Student MS CS Georgia Institute of Technology +1-(201)-668-0249 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: how to load the related Bitmap according to input
int rid = getResources().getIdentifier(pic_ + input, drawable, your_package_name); Drawable d = getResources().getDrawable(rid); You may check out the file MBellishClipartSelector.java from http://codecamp.pbworks.com/EmbellishYourPictures-BuildanApplicationforanAndroidPhone-2009 Balwinder Kaur Mobile.Software.Development ·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 Oct 7, 4:14 am, I82Much nicholas.c.d...@gmail.com wrote: I suppose you could also do something like int[] iconRefs = { R.drawable.pic_1, ... R.drawable.pic_n } if (input = 0 input n) { // Account for 0 based indexing return iconRefs[input - 1]; } This code gets the reference out (I might be wrong in how you reference it, maybe R.res.drawable, don't have my eclipse handy); you'd have to use the standard way of actually getting that drawable image. On Oct 5, 11:08 pm, wine lzlzj...@163.com wrote: hi, I have met an issue. There are some pics in the res/drawable named as pic_1.png, pic_2.png, pic_3.png, pic_4.png I want to load someone according to the input. For instance, if I input 2, I want to load pic_2.png. If input 3, will load the pic_3.png How to achieve? Need your expert help here... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: problem in services
Service is a faceless UI-less application component. You need a trigger to start it, either from an Activity which then may go away or in response to a broadcast intent from a BroadcastReceiver that may call the Service's startService method. (Note, you can't bind to the service from a broadcast Receiver, you can only call the startService method.). Hope this helps, Balwinder Kaur Mobile.Software.Development ·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 Oct 6, 5:29 am, Nemat nemate...@gmail.com wrote: Hello frnds. I am presently working on services.I have read many articles related to services.But one thing I dont understand is if we want our application to run in background how can we implement services without using Activities... Urgent help needed Thanks Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: is it possible to receive incoming call automatically?
Intercepting an incoming call is not supported officially from the SDK, which does not mean that folks are not using hacks to do just the same, as many apps on the market will show you. Balwinder Kaur Mobile.Software.Development ·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 25, 5:25 am, Nemat nemate...@gmail.com wrote: Hi frnds is it possible in Android If call is received from user defined number, it should be picked up automatically with no sign and speaker should be turned on. Its history must be deleted. need urgent help Thanks in advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: java.util.prefs.Preferences doesn't work on device?
There is also android.content.SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Balwinder Kaur Mobile.Software.Development ·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 24, 2:35 pm, leden leden...@gmail.com wrote: Hi! My simple app needs to permanantly save its state before being destroyed. I use something like this: private static final Preferences prefs = Preferences.userNodeForPackage (WordChoice.class); Now it seems that after experimenting a while on my g1 device, it seems that preferences are sometimes cleared when the application stops, from my experience this happens at random and there is a roughly a 50% chance that preferences will be cleared. This does not happen in the emulator, and certainly should not in the Java world as far as I know since preferences are permanent type of storing data. Is there a way to use java.util.prefs.Preferences on Android platform without risking clearing the prefs every time the app is stopped? I don't want to use a file or database. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Accessing SharedPreferences from Services and non-Activities
The app context object is not available in the constructor. Try moving that code in the onbind or onStart callback methods. Balwinder Kaur Mobile.Software.Development ·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 23, 7:49 pm, brooke brooke.ma...@gmail.com wrote: I have some shared preferences (user_id, email) that I want to access from services and classes that are not subclassed from Activity. I have been trying to implement this today and keep hitting roadblocks. In particular, when I try to access getSharedPreferences, I get a null pointer exception. My code snippet is posted below. My goal here is to allow read access the shared preferences to objects and (potentially) services that aren't going to be directly exposed to the user. Any suggestions/examples that can help me along? Many thanks, Brooke snip public class MyPrefs extends Service { public static final String PREFS_NAME = MyPrefs; private int user_id; private String user_email; private String user_password; private Editor editor = null; private SharedPreferences settings = null; public MyPrefs () { settings = this.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); } /snip the this.getSharedPreferences line causes a null pointer exception. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: onKeyboardActionListener vs onKeylistener
Another thought. How are you copying and pasting from A to B ? I was able to do it using this snippet. CharSequence c = ((EditText)v).getText(); edittext2.setText(c); Balwinder Kaur ·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 23, 9:54 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: hmm..I don't know what is going in your environment. For me (using SDK 1.5) Your code as is, works too. When I hit the back button on the emulator, the virtual keyboard exits, HELLO gets copied to the EditTextA. Balwinder Kaur ·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 23, 1:10 pm, Android_n00b nikhil...@gmail.com wrote: I apologize about the last part of that message. I meant that I read online about KeyboardView.OnKeyboardActionListener, but do not know how it works. On Sep 23, 4:08 pm, Android_n00b nikhil...@gmail.com wrote: Thanks for the reply. If I type HELLO and hit the back button, only O gets copied into box B. It's weird. Here is the relevant part of my code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.virtualkeyboard); final EditText boxA= (EditText) findViewById(R.id.boxA); final EditText boxB= (EditText) findViewById(R.id.boxB); boxA.setOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(event.getAction() == KeyEvent.ACTION_UP) { //copy text from box A to B } return false; } }); Now just to repeat my problem, the above code works perfectly when I use a physical keyboard, or the emulators hard keyboard. It is only when I use the virtual(soft) keyboard does it not work. I saw some posts online about using setOnKeyListener instead. But I do not know how that works since it is not a method for EditText. On Sep 23, 3:54 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Did you try hitting the backbutton on the emulator ( that would remove virtual keyboard) and see if EditBox B gets updated or not ? I think it should. If not, please past your code here, so folks can take a look at it. Thanks, Balwinder Kaur Open Source Development Center ·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 23, 11:13 am, Android_n00b nikhil...@gmail.com wrote: Hi, I am new to Android, and am writing an app which has 2 EditTexts (Let's call them A and B) and whenever I hit any key in A, it is automatically copied to B. For example, if I type HELLO in A, it will copy each letter into B. I managed to get this to work perfectly with the setOnKeyListener(). However, in the emulator I found that the virtual keyboard did not respond to this listener the same way. For some weird reason, the number keys in the Virtual Keyboard (0-9) responded to the onKeyListener but none of the others did. After doing a Google search of my issue, I found some people with similar problems, but no real solution. I realized there is a KeyboardView.OnKeyboardActionListener which listens for inputs from the virtual keyboard. However, I have no idea how to use this in my edittext field. I would appreciate some sort of help with this matter. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Syntax error with function
Then probably you are not using 1.6 SDK, because invalidateAllKeys() is a level 4 API. I suggest you check Eclipse-Preferences-Android- SDK Location. Balwinder Kaur Open Source Development Center ·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 23, 10:32 am, Nitin67 nitin6...@gmail.com wrote: Hello, I am working with the softkeyboard example in the SDK and I can't get past an error. I want to use 2 public functions in the KeyboardView class. It finds getKeyboard(), but invalidateAllKeys(). I created the code below to show the problem. I am using 1.6 SDK. Any suggestions would be helpful. package com.example.android.softkeyboard; import android.content.Context; import android.inputmethodservice.Keyboard; import android.inputmethodservice.KeyboardView; import android.inputmethodservice.Keyboard.Key; import android.util.AttributeSet; public class LatinKeyboardView extends KeyboardView { public LatinKeyboardView(Context context, AttributeSet attrs) { super(context, attrs); getKeyboard(); //found invalidateAllKeys(); //Not found } ... Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: EditText
Can you post the code you used to programmatically create an EditText ? The following code snippet in an activity does what you want it to do. EditText e = new EditText(this); ViewGroup.LayoutParams vw = new ViewGroup.LayoutParams (ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); addContentView(e, vw); Hope this helps, Balwinder Kaur Open Source Development Center ·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 23, 3:58 am, Sven Mutscher sven.mutsc...@gmx.de wrote: Hello, I have a problem using EditText. What I do is creating an instance using new (no xml configuration) and then draw it to my Canvas. What I do not understand is that nothing happens when clicking into the text box. Normally the focus is on the text box, I get a cursor and the virtual keyboard appears, I can make text input etc... ! Creating the EditText element in a layout xml everything works fine. But this is not what I want in that case. Any ideas ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Sense UI
You can check out differences from 1.6 and 1.5 http://developer.android.com/sdk/api_diff/4/changes.html The platform highlights are here: http://developer.android.com/sdk/android-1.6-highlights.html Balwinder Kaur Open Source Development Center ·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 23, 12:48 pm, jpntiger wave jpntiger.w...@gmail.com wrote: I was able to download and build a 1.6 version of Android. But the UI seems to be same as 1.5.I heard about Sense UI. Where do i get that UI?? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Battery Usage Indicator API - JDK 1.6
I assume you mean Android SDK 1.6, not JDK 1.6. Thanks for sharing the information and you can check out a presentation made at Google I/O this year on Battery Life http://code.google.com/events/io/sessions/CodingLifeBatteryLife.html Balwinder Kaur Open Source Development Center ·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 22, 2:50 pm, SagarH attitude.unleas...@gmail.com wrote: I am getting started with Android. The JDK1.6 features highlights a new addition - Battery Usage Indicator - which gives a breakdown of how much battery is being consumed by each application. I found that the os.battery returns the battery status (charging, full, via USB, etc). Sagar Hatekar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to call built-in camera application from my app??
There are a lot of good tutorials/examples on the web on using Intents. If you post your code using Intents, someone will help you get started. If you are using Android, you should be familiar with Intents. Thanks, Balwinder Kaur Open Source Development Center ·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 23, 11:18 am, wahib wahib.t...@gmail.com wrote: Hi !! I am a newbie and thinking about doing barcode scanning thing a little different way. I have tested a code which decode a stored image in res folder using zxing library. I am thinking to first call built- in camera app from my app in start, once the image of barcode is taken and stored in gallery ... my app will then read the latest added image and will run the decode function on it. I know it look a little old- fashioned plan of action though i can use intents. But i was just wondering if i can do this way. Coz i was finding difficulty doing it with intent way as i dont have a phone and doing it with emulator is little confusing rite now :S Any guidance is appreciated. Regards, wahib --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: onKeyboardActionListener vs onKeylistener
hmm..I don't know what is going in your environment. For me (using SDK 1.5) Your code as is, works too. When I hit the back button on the emulator, the virtual keyboard exits, HELLO gets copied to the EditTextA. Balwinder Kaur ·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 23, 1:10 pm, Android_n00b nikhil...@gmail.com wrote: I apologize about the last part of that message. I meant that I read online about KeyboardView.OnKeyboardActionListener, but do not know how it works. On Sep 23, 4:08 pm, Android_n00b nikhil...@gmail.com wrote: Thanks for the reply. If I type HELLO and hit the back button, only O gets copied into box B. It's weird. Here is the relevant part of my code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.virtualkeyboard); final EditText boxA= (EditText) findViewById(R.id.boxA); final EditText boxB= (EditText) findViewById(R.id.boxB); boxA.setOnKeyListener(new OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { // TODO Auto-generated method stub if(event.getAction() == KeyEvent.ACTION_UP) { //copy text from box A to B } return false; } }); Now just to repeat my problem, the above code works perfectly when I use a physical keyboard, or the emulators hard keyboard. It is only when I use the virtual(soft) keyboard does it not work. I saw some posts online about using setOnKeyListener instead. But I do not know how that works since it is not a method for EditText. On Sep 23, 3:54 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Did you try hitting the backbutton on the emulator ( that would remove virtual keyboard) and see if EditBox B gets updated or not ? I think it should. If not, please past your code here, so folks can take a look at it. Thanks, Balwinder Kaur Open Source Development Center ·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 23, 11:13 am, Android_n00b nikhil...@gmail.com wrote: Hi, I am new to Android, and am writing an app which has 2 EditTexts (Let's call them A and B) and whenever I hit any key in A, it is automatically copied to B. For example, if I type HELLO in A, it will copy each letter into B. I managed to get this to work perfectly with the setOnKeyListener(). However, in the emulator I found that the virtual keyboard did not respond to this listener the same way. For some weird reason, the number keys in the Virtual Keyboard (0-9) responded to the onKeyListener but none of the others did. After doing a Google search of my issue, I found some people with similar problems, but no real solution. I realized there is a KeyboardView.OnKeyboardActionListener which listens for inputs from the virtual keyboard. However, I have no idea how to use this in my edittext field. I would appreciate some sort of help with this matter. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Scroll image like a WebView
You are right. ScrollView only supports vertical scrolling and HoriontalScrollView supports horizontal scrolling. Since WebView scrolls like you want to it, why don't use it ? WebView w = (WebView)findViewById(R.id.webkit); w.loadUrl(http://www.android.com/goodies/android_vector.jpg;); Use the url of the image, not a web page. Balwinder Kaur Open Source Development Center ·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 22, 5:05 am, jsera gall.blad...@gmail.com wrote: I have a large image, and I'd like to scroll around it like you'd scroll around inside a WebView. This means horizontal, and vertical scrollbars. Since ScrollView and HorizontalScrollView only have vertical, and horizontal scrollbars respectively, neither of these will do what I want. Sticking a HorizontalScrollView inside a ScrollView doesn't work, because the horizontal scroll bar disappears when you scroll up. WebView scrolls exactly like what I want, but I don't want to display a web page, just an image created dynamically. There has to be some way of doing this without writing an entirely new class. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Have anyone used mediaplayer to run rtsp streaming successfully either on the emulator or on the HTC device?
Here is a related thread http://groups.google.com/group/android-developers/browse_thread/thread/0dcefbbd59ac638d This piece of code works on a HTC device. public class AMLRTSTPStreaming extends Activity implements MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener, MediaPlayer.OnCompletionListener{ /** Called when the activity is first created. */ private static VideoView mVideoView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mVideoView = (VideoView) findViewById(R.id.MainVideoView); mVideoView.setVideoURI(Uri.parse(rtsp://video2.americafree.tv/ AFTVHorrorH26496.sdp)); mVideoView.setOnPreparedListener(this); mVideoView.setOnErrorListener(this); mVideoView.setOnCompletionListener(this); mVideoView.setMediaController(new MediaController(this)); mVideoView.requestFocus(); } public void onPrepared(MediaPlayer mp) { mp.start(); } public boolean onError(MediaPlayer mp, int what, int extra) { Toast.makeText(this, Sorry, can't play video. Error =+ what, Toast.LENGTH_LONG).show(); return false; } public void onCompletion(MediaPlayer mp) { Toast.makeText(this, Done. Completed. Finito!, Toast.LENGTH_LONG).show(); } } It works on a HTC device, but not the standard HTC Android 1.5 image. I have a Google ION flashed with the cyanogenmod build. http://forum.xda-developers.com/showthread.php?t=537204 For the Android 1.5 build I have the following errors E/PlayerDriver( 35): Command PLAYER_INIT completed with an error or info PVMFFailure E/MediaPlayer( 538): error (1, -1) E/MediaPlayer( 538): Error (1,-1) D/VideoView( 538): Error: 1,-1 Does this help :) ? Balwinder Kaur Open Source Development Center ·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 16, 9:02 am, yjshi shiyaju...@gmail.com wrote: Have anyone used mediaplayer to run rtsp streaming successfully either on the emulator or on the HTC device? Could anyone give me an example to play the rtsp streaming successfully? I tried it too many times ,but always failed. Could anyone tell me some suggestions? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: When does one start to develop for 1.6?
Now would be a time as good as any to start developing apps with the SDK 1.6 and new Level 4 APIs. As per the Google official blog, devices with 1.6 will start appearing in October. http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here.html. Balwinder Kaur Open Source Development Center ·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 16, 5:27 am, MrChaz mrchazmob...@googlemail.com wrote: It takes them a while to push the update to peoples phone so there is no need to rush anything out. It's a good idea to try your apps out on an 1.6 version of the emulator to make sure everything works smoothly though. On Sep 16, 1:12 pm, Michael Dorin bsddo...@gmail.com wrote: I see 1.6 has been released...when is the right time to upgrade to it? -Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to use MediaStore to get content URI of audio file saved in sdcard ?
Environment.getExternalStorageDirectory() to get a File. And Uri.fromFile(File f) to get the Uri. Balwinder Kaur Open Source Development Center ·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 15, 12:35 pm, Harshit Mapara hnmap...@gmail.com wrote: Hi All, I searched this , but can't find any related info. Here is what I want to do: In /sdcard/downloads folder, there is a xyz.mp3 file. I want to save the content URI of xyz.mp3 file into my database. xyz.mp3 is huge, so it can't be saved in database, but I want to save it's URI in database with other records in row. So always I can get the URI string and using content resolver I can get the xyz.mp3 file by providing its content URI. ( I guess using openOuputStream method of contentResolver) So the question is, how do I do this?? how can I get content URI of xyz.mp3 ? I guess it can be done using MediaStore, but I don't get enough help from documentation to accomplish this. Please help Thanks Harshit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to send uppercase letter using InstrumentationTestCase.sendKeys() ?
Did you try KEYCODE_SHIFT_LEFT or KEYCODE_SHIFT_RIGHT ? Balwinder Kaur Open Source Development Center ·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 1, 7:57 pm, Yasser yassersiddi...@gmail.com wrote: Hi, Using the sendKeys() function I am able to send small letters like sendKeys(A B C). How to send capital letters? I didn't find any key event for them in KeyEvent class. Is there any separate event that I have to send prior to sending a letter, in order to make it uppercase? Thanks Yasser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: virtual keyboard
http://android.git.kernel.org/?p=platform/development.git;a=tree;f=samples/SoftKeyboard;hb=cupcake Balwinder Kaur Open Source Development Center ·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 Aug 31, 9:53 am, Gigi guillerm...@gmail.com wrote: I have made a couple of functional Android Apps and now I want to make my own virtual keyboard, to substitute the default keyboard (similar to TouchPal). I have found absolutely no information to guide me in this process. The reference documentation does seem to be in order and useful (Keyboard, KeyboardView, ...) but my main question is: Do I start just like any other app? Is it an Activity? TouchPal for example doesn't appear in my applications menu, it has to be activated in locale preferences and then selected when introducing text. How do I do that? Is there any open source virtual keyboard I can check out? Thanks for any help! Guille --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: virtual keyboard
And in case you haven't seen this : http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html is a good read on IME/IMF Balwinder Kaur Open Source Development Center ·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 1, 2:48 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: http://android.git.kernel.org/?p=platform/development.git;a=tree;f=sa... Balwinder Kaur Open Source Development Center ·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 Aug 31, 9:53 am, Gigi guillerm...@gmail.com wrote: I have made a couple of functional Android Apps and now I want to make my own virtual keyboard, to substitute the default keyboard (similar to TouchPal). I have found absolutely no information to guide me in this process. The reference documentation does seem to be in order and useful (Keyboard, KeyboardView, ...) but my main question is: Do I start just like any other app? Is it an Activity? TouchPal for example doesn't appear in my applications menu, it has to be activated in locale preferences and then selected when introducing text. How do I do that? Is there any open source virtual keyboard I can check out? Thanks for any help! Guille --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: OverLookingSomething??
No, you are not. A build.xml does not show up in your Eclipse Android project. You can use the instructions at http://developer.android.com/guide/developing/eclipse-adt.html#RunningAnApplication to run your app. Balwinder Kaur Open Source Development Center ·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 Aug 29, 4:31 pm, Rc3375 rcobb3...@gmail.com wrote: Hi All, I'm wondering if I'm overlooking something. I too am new with Android. Finally got all software installed and the paths fixed. Problem now is ECLIPSE(?) Is not generating the BUILD.xml file. Am I overlooking anything??? Thank you for your help..RC3375 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why I can't use movieview to play the movie came from the internet?
It may not be a good idea to use Classes from the com.android.camera package since that is not part of the SDK. The MovieView is an internal class are classes used by the Camera app. Did you try using the VideoView class, with the setVideoURI (rtsp://... ) method? http://developer.android.com/reference/android/widget/VideoView.html#setVideoURI(android.net.Uri) You can check out sample code for the VideoView at http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html. If problems still persist, please post your code here. Balwinder Kaur Open Source Development Center ·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 Aug 25, 8:05 pm, yjshi shiyaju...@gmail.com wrote: The code is in the following. Uri uri=Uri.parse(url); Intent intent =new Intent(); intent.setDataAndType(uri, video/*); intent.setClassName(com.android.camera, com.android.camera.MovieView); intent.setAction(Intent.ACTION_VIEW); startActivity(intent); url is a internet address begin with http://; orrtsp://. _ On Aug 25, 11:26 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: You have not setup the MediaPlayer properly that is why you have an error. Could you please post your code ? Also, I guess you mean VideoView not MovieView (although I do some references to a MovieView in the documentation for MediaStore) Balwinder Kaur Open Source Development Center ·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 Aug 25, 3:57 am, yjshi shiyaju...@gmail.com wrote: I use the movieview.java to playback the movie comes from the internet.In a activity ,I wrote a Intent that jump to the movieview and pass the movieview a url.But after several seconds,It is closed because something is wrong. W/InputManagerService( 1075): Starting input on non-focused client com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0 (uid=10003 pid=1305) W/IInputConnectionWrapper( 1305): showStatusIcon on inactive InputConnection I/ActivityManager( 1075): Displayed activity com.android.stk/.StkDialogActivity: 439 ms (total 439 ms) V/VideoView( 1305): reset duration to -1 in openVideo W/IInputConnectionWrapper( 1119): showStatusIcon on inactive InputConnection E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error or info PVMFFailure W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete E/MediaPlayer( 1305): error (1, -1) E/MediaPlayer( 1305): Error (1,-1) D/VideoView( 1305): Error: 1,-1 E/MediaPlayer( 1305): stop called in state 0 E/MediaPlayer( 1305): error (-38, 0) W/MediaPlayer( 1305): mediaplayer went away with unhandled events --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: why I can't use movieview to play the movie came from the internet?
You have not setup the MediaPlayer properly that is why you have an error. Could you please post your code ? Also, I guess you mean VideoView not MovieView (although I do some references to a MovieView in the documentation for MediaStore) Balwinder Kaur Open Source Development Center ·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 Aug 25, 3:57 am, yjshi shiyaju...@gmail.com wrote: I use the movieview.java to playback the movie comes from the internet.In a activity ,I wrote a Intent that jump to the movieview and pass the movieview a url.But after several seconds,It is closed because something is wrong. W/InputManagerService( 1075): Starting input on non-focused client com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0 (uid=10003 pid=1305) W/IInputConnectionWrapper( 1305): showStatusIcon on inactive InputConnection I/ActivityManager( 1075): Displayed activity com.android.stk/.StkDialogActivity: 439 ms (total 439 ms) V/VideoView( 1305): reset duration to -1 in openVideo W/IInputConnectionWrapper( 1119): showStatusIcon on inactive InputConnection E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error or info PVMFFailure W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete E/MediaPlayer( 1305): error (1, -1) E/MediaPlayer( 1305): Error (1,-1) D/VideoView( 1305): Error: 1,-1 E/MediaPlayer( 1305): stop called in state 0 E/MediaPlayer( 1305): error (-38, 0) W/MediaPlayer( 1305): mediaplayer went away with unhandled events --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: The application XXXX(process com.example.XXXX) has stopped unexpectedly
Please check your logcat output. It would give you the pointers. Balwinder Kaur Open Source Development Center ·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 Aug 18, 6:09 am, eldo iameldoja...@gmail.com wrote: Hi all, I have a problem when my application runs on the emulator . while trying to run the application it throws a message The application (process com.example.) has stopped unexpectedly .I do not get the output on screen . Could you give me pointers as to why this occurs . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: font file change
You can add it to the folder : assets-fonts You can access it with the getAssets() method. You can create a font using the Typeface.createFromAsset(..) method. Balwinder Kaur Open Source Development Center ·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 Aug 13, 10:46 pm, yogi bhavya...@gmail.com wrote: Hi All, Kindly let me know how to change/add the font file in android platform. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Reference Guide
There are many discussion threads on this topic. Here is one that was recently discussed. http://groups.google.com/group/android-beginners/browse_thread/thread/167917e69eae4544/0ba18a9811a0474f?lnk=gstq=book#0ba18a9811a0474f Balwinder Kaur Open Source Development Center ·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 Aug 13, 6:58 am, Rc3375 rcobb3...@gmail.com wrote: Does anyone know of a good REFERENCE BOOK that includes and has examples and explanations of the ANDROID LANGUAGE(functions) such as the following: * android * android.app * android.appwidget * android.content * android.content.pm * android.content.res * android.database * android.database.sqlite Even though these are the web, is it time consuming to go to each category and print it out. A REFERENCE MANUAL would be great. Thank you, rc3...@gmail.com (if anyone knows of one, you could email me the title,author and publisherthanks again) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Less than beginner ... completely clueless questions :)
Android Porting would be the correct group. http://groups.google.com/group/android-porting Balwinder Kaur Open Source Development Center ·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 Aug 13, 6:06 am, sigmax enri...@avalle.net wrote: Hello! I've been looking around for some info about android for any phone, other the T-mobile and HTC developer platform. I have a linux based phone, the yujua Inid, sold in spain as Funker f901 and in Thayland (Where I got it) as i-mobile 904. IT has an Intel PXA270 processor at 400mhz, 64mb RAM and 128mb Flash NAND ram, touchscreen, 2mpx autofocus camera with light. It seems to cope ok with minimum requirements for android phone. The process to get its nand flash rewritten is suspiciously similar to that of HTC android enabled phones. I got to press and hold a button in the cel, plug it in the usb port, and it is recognized as a serial port. I have an utility on the PC that allows me to load different libraries and files, and they get into the phone, in order to get it actualized. The utility reads either a large .bin file (which as I coud see, is comprised of the different libraries and files, all packed inside) or each file separately. Mi linux and phone development knowledge is close tu null. So please excuse me if I am just writing obvious things. The individual files that this phone upgrading thingy loads and burns into the phone need to be loaded under the following titles: Kernel, root FS, Program FS, User Data FS, User Local, Tat, Grps2121, patch, SysParm_Ind, SysParm_Dep. OR else I just select a huge BIN file wich seems to have inside 7 files packed in it, that get stuffed (it takes 30 minutes) into the phone. Can anyone tell me if they recognize any useful information from this ? Is there a way I can install android on this phone ? What kind of info is needed (I can search!) ... anyone is willing to help me ? :) Is this the correct group ? Regards, Enrique. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problem with istallation Android on Eclipse
Try Window-Open Perspective-Java Browsing. Balwinder Kaur Open Source Development Center ·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 Aug 13, 3:43 am, mist3r0 giuseppe.brando...@gmail.com wrote: Hello guys, i'm an Android beginner. I've install Eclipse, and i've following the guide to installa Android SDK. The installation is OK, bat when I create a new Android Project, the project into the workspace was create, bat Eclipse Remains in the initial screen and the project is not open. Can You Help me? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: hi help me
A good place to start : http://developer.android.com/guide/index.html The classic Hello World Android App is available at http://developer.android.com/guide/tutorials/hello-world.html Good Luck Androiding ! Balwinder Kaur Open Source Development Center ·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 Aug 12, 11:08 pm, pankaj reliablepan...@gmail.com wrote: helo i m newbie want to learn android. from where i can start studyin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Dev 1 Phone Update..
The correct forum for this question would be : http://groups.google.com/group/Android-DevPhone-Updating And yes, the links work. I have successfully updated my ADP1 to 1.5 using the link you referred to. Good Luck ! Balwinder Kaur Open Source Development Center ·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 Aug 13, 8:18 am, sommeralex alexander.som...@gmail.com wrote: Hello, Do the firmeware download links provided in the following page work for you?http://www.htc.com/www/support/android/adp.html#s3 could someone check this please!? For me, they dont work.. but i need to update my DEV1 HTC Phone to 1.5 RC3 thanks.. alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Keypad helpers
If you add the line android:singleLine=True to you XML declaration. If you do that, the soft keyboard will show a Done button. If you don't want to do that, you can exit the keyboard using the backbutton key. Hope this helps, Balwinder Kaur Open Source Development Center ·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 Aug 13, 5:07 am, Neilz neilhorn...@googlemail.com wrote: Hi all. I have an EditText widget which is described as follows: EditText android:id=@+id/xcord android:numeric=decimal android:layout_width=fill_parent android:layout_height=wrap_content / When my EditText receives focus, the keypad helper pops up (in my emulator). Then when a button is clicked, I do stuff with the value (in this case, I just display the value in a Toast). However the keypad helper remains there and doesn't disappear, obscuring the main part of the screen. How do I make the helper go away once I know the user has finished typing? Many thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Create Android background Service
Here is one way of doing it. Create an Activity - lets call it MyDialog. If you want it look like a Dialog, add android:theme=@android:style/Theme.Dialog to your activity tab in the AndroidManifest.xml file. Send periodic Intents from your service class using code something like Intent i = new Intent(getApplicationContext(), MyDialog.class); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // you can add Extras to your Intent if needed startActivity(i); Balwinder Kaur Open Source Development Center ·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 Aug 12, 10:30 am, Marouene hannachi.marou...@gmail.com wrote: Hello; I want to create my first Android Service running in the background. So i create an android project under Eclipse. I create the class ServiceName extends Service like this: package subpackagename.pack; import java.util.Timer; import java.util.TimerTask; import android.app.AlertDialog; import android.app.Service; import android.content.DialogInterface; import android.content.Intent; import android.os.IBinder; public class ServiceName extends Service { private static final long INTERVAL = 2000; private Timer timer = new Timer(); public void onCreate() { super.onCreate(); startservice(); } private void startservice() { timer.scheduleAtFixedRate( new TimerTask() { public void run() { alert(); } }, 0, INTERVAL); ; } @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } public void alert(){ AlertDialog.Builder editDialog = new AlertDialog.Builder (this); editDialog.setTitle(Mylink); editDialog.setMessage(salu); editDialog.setPositiveButton(Ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } } ); editDialog.setNeutralButton(Cancel, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } } ); editDialog.show(); } private void stopservice() { if (timer != null){ timer.cancel(); } } } I want to display an alert every 2 second (Interval=2000) but the alert dosen't display. I added a permission in the AndroidManifest.xml but nothing happened. My AndroidManifest.xml is like this: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=subpackagename.pack android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.ACCESS_BACKGROUND_SERVICE / application android:icon=@drawable/icon android:label=@string/ app_name service android:name=.ServiceName /service /application uses-sdk android:minSdkVersion=2 / /manifest Thank you for your Help Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: setting wallpaper..plz help.
You can set android:configChanges=orientation for your activity in the AndroidManifest.xml file. In your activity, override the onConfigurationChanged method. You can scale your image according to the orientation and set it accordingly. Balwinder Kaur Open Source Development Center ·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 Aug 12, 9:23 pm, sagar.indianic sagar.india...@gmail.com wrote: Hi, I just used setWallpaper() method. It is working fine for portrait mode. But when orientation changes image gets cropped. So how can I provide landscape version of the image?? Is there any way to provide landscape version of the wallpaper?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Controlling the ProgressBar
There was a similar problem discussed a few days back, except that a TextView was to be updated. Check out the source code here. http://groups.google.com/group/android-beginners/browse_thread/thread/2e614021697d15e/ec3bc0bce37cb3ef?q=handler#ec3bc0bce37cb3ef If you still have problems, post your specific question here. Balwinder Kaur Open Source Development Center ·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 Aug 12, 3:54 pm, chinchin nchinn...@googlemail.com wrote: Hello, I have created a MediaPlayer and will play a sound file. There is also a ProgressBar which I've configured to be a Horizontal Progress Bar. The problem I'm having is getting the progress bar to update as the song plays, i.e. when the song is half way played I want the progress bar to be half way filled. I can see that the trick is to use some sort of sleeping thread that wakes up and then performs the ProgressBar.setProgress (MediaPlayer.getCurrentPosition()) code but I cannot factor in the threading code. Would someone please take a look at a simple version of my code that uses a button to manually update the progress bar and please help to set me on the right course. Threads have never been my strong suit :( Thanks in advance guys. public class musicPlayer extends Activity { private Button buttonPlay; private MediaPlayer mp = new MediaPlayer(); private ProgressBar progressMusic; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); initialiseSong(); //Create Play Button buttonPlay = (Button) findViewById(R.id.buttonPlay); buttonPlay.setOnClickListener(new OnClickListener(){ public void onClick(View v){ playSong(); } }); progressMusic = (ProgressBar) findViewById (R.id.progressMusic); progressMusic.setProgress(0); progressMusic.setMax(mp.getDuration()); final Button buttonIndex = (Button) findViewById (R.id.buttonIndex); buttonIndex.setOnClickListener(new OnClickListener(){ public void onClick(View v){ progressMusic.setProgress(mp.getCurrentPosition()); } }); } //Creates the player with a default song selected. private void initialiseSong(){ mp = MediaPlayer.create(this, R.raw.cake); } private void playSong(){ if(mp.isPlaying()){ mp.pause(); buttonPlay.setText(Resume); }else{ mp.start(); buttonPlay.setText(Pause); } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Keypad helpers
My comments were based on device behavior (ADP1 and Google ION). You are right, the emulator does not reflect it, at least not to my knowledge :) Balwinder Kaur Open Source Development Center ·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 Aug 13, 4:06 pm, Neilz neilhorn...@googlemail.com wrote: Thanks. How does the emulator mirror the actions of a real life device? Would this not be an issue in this instance? On Aug 13, 4:30 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: If you add the line android:singleLine=True to you XML declaration. If you do that, the soft keyboard will show a Done button. If you don't want to do that, you can exit the keyboard using the backbutton key. Hope this helps, Balwinder Kaur Open Source Development Center ·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 Aug 13, 5:07 am, Neilz neilhorn...@googlemail.com wrote: Hi all. I have an EditText widget which is described as follows: EditText android:id=@+id/xcord android:numeric=decimal android:layout_width=fill_parent android:layout_height=wrap_content / When my EditText receives focus, the keypad helper pops up (in my emulator). Then when a button is clicked, I do stuff with the value (in this case, I just display the value in a Toast). However the keypad helper remains there and doesn't disappear, obscuring the main part of the screen. How do I make the helper go away once I know the user has finished typing? Many thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How can I use methods from an activity in other activities
Hamed3d, Nowhere in your code that you pasted do you have the final field hsudoku. If you mean htest instead of hsudoku, then you have not instantiated htest in the code you have pasted. If you create public static methods, it would work. Balwinder Kaur Open Source Development Center ·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 Aug 12, 1:38 am, Hamed3d hamed.sa...@gmail.com wrote: Basically, I have two different Activities, one of them has 2 member functions which I want to use them in other activities. so here in Splash class activity, I referenced to Htest class: private final Htest htest; htest.setNoTitle(); but I get this error: The blank final field hsudoku may not have been initialized Please look at the following code and u will see what I mean. here is the activity which has two member functions public class Htest extends Activity implements OnClickListener{ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setNoTitle(); //no Title setFullscreen(); //Full screen setContentView(R.layout.main); } } public void setFullscreen() { getWindow().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } public void setNoTitle() { requestWindowFeature(Window.FEATURE_NO_TITLE); } } now here is another activity which I want to reference to those member functions public class Splash extends Activity { private final Htest htest; //reference to Htest class private Splash_view splashview; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); htest.setNoTitle(); // this gives me this error: The blank final field hsudoku may not have been initialized //splashview splashview = new Splash_view(this); setContentView(splashview); splashview.requestFocus(); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: App crashes when creating UI
What are you trying to accomplish here? If you are trying to create a UI for your Main Activity, there is really no need to create another Activity (BasicUI). I suggest you stick with the standard Android App programming paradigm and create one Activity for each User focused activity that you perceive. If you are trying to do something else, kindly provide more details. adb logcat would be the right place to start looking for crashes. Balwinder Kaur Open Source Development Center ·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. You could start with some examples. The ApiDemos are useful On Aug 11, 4:27 pm, kch etyl...@googlemail.com wrote: Hi there. I'm just starting out with android and have two questions: 1) I'm trying to invoke a UI using the following method: public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); new BasicUI( ).myView( ); } } public class BasicUI extends Activity { public void myView( ) { setContentView(R.layout.main); // etc... } } but it crashes with: Application has stopped unexpectedly. What am I doing wrong? 2) How do I debug problems like this. I've tried the adb logcat but there weren't any standard Java stack traces from the app crash. I guess android does something different, what should I be doing or looking for? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---