RE: [android-beginners] Controlling Camera Settings
If you create your own custom camera activity, you can control most if not all of the settings you list. http://developer.android.com/reference/android/hardware/Camera.Parameters.ht ml -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of rh4games Sent: Monday, August 02, 2010 5:57 PM To: Android Beginners Subject: [android-beginners] Controlling Camera Settings Hi, My app needs to control the camera settings to make over under- exposed pictures, amongst other special effects. Is there a way (and how?) to control the camera's shutter speed, aperture, pseudo-ISO, ..., etc. My device is the HTC EVO 4G, so the question applies both to the front a back facing cameras. Any pointers are much appreciated. Thanks Best Regards R/ -- You received this message because you are subscribed to the Google Groups Android Beginners group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page. Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For more information about this change, please read [http://goo.gl/xkfl] or visit the Group home page. Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
RE: [android-beginners] The application camera has stopped error
First, check your logcat and post the lines generated by the error. Secondly, what version of android are you running it on when you get this error, and what are you trying to do with the camera? The offending code snippet might be helpful also. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Amit Sood Sent: Tuesday, July 20, 2010 2:57 PM To: Android Beginners Subject: [android-beginners] The application camera has stopped error Hello Experts, I am trying to run my camera on my emulator, but every time i try running it i get the following error. the application camera (process com.android.camera) has stopped unexpectedly. please try again Please advice Massive thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
RE: [android-beginners] Re: Programing Experience
That is different for each person. It took me the better part of a year teaching myself out of a couple books, and I'm still learning Java. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Peter.C Sent: Wednesday, March 31, 2010 4:02 PM To: Android Beginners Subject: [android-beginners] Re: Programing Experience How long would it take me, a complete beginner to coding, to learn java and be able to code for andoird? Thanks Peter On Mar 31, 4:47 pm, Kevin Brooks bear35...@gmail.com wrote: Peter, I started with Android with very little knowledge of Java. My C++ background helped a lot. However, if you know Java it would be easier to learn the Android SDK. Kevin On Wed, Mar 31, 2010 at 3:40 PM, Peter.C peterc...@gmail.com wrote: How much programing experience should I have before coding for android? Also what should I learn besides Java? Thanks! -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bu android-beginners+nsubscr i...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en To unsubscribe, reply using remove me as the subject. -- Kevin Proverbs 21:6 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
RE: [android-beginners] Problems installing Dev Kit
What OS are you installing it on? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Subjective Effect Sent: Sunday, February 21, 2010 11:08 AM To: Android Beginners Subject: [android-beginners] Problems installing Dev Kit 2 things. 1. No matter which version of Eclipse I DL when I try to run it I get an error saying it needs java in some /jre/ directory which doesn't exist in the location it states (in the Eclipse directory). NB: I have the latest JDK. 2. The Android SDK set-up program does nothing. A cmd window flashes up and then... nothing. Can anyone help? -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 271.1.1/2676 - Release Date: 02/22/10 19:34:00 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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]
-- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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] subscribe
subscribe -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
RE: [android-beginners] Why cant my activity show on the emulator screen?
Uncomment these three lines: //TextView tv = new TextView(this); //tv.setText(Hello, Android); //setContentView(tv); -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of IceCity Sent: Tuesday, December 15, 2009 5:40 PM To: Android Beginners Subject: [android-beginners] Why cant my activity show on the emulator screen? I use Eclipse as development tool. Here is my hello world code: package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; //import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //TextView tv = new TextView(this); //tv.setText(Hello, Android); //setContentView(tv); } } the Hello, Android just didn't show in the emulator screen, why? I had JDK1.6, SDK2.0, and set the enviroment path and classpath. I don't understand why can't it show in the emulator. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/21/09 19:13:00 -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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
RE: [android-beginners] Re: logcat question
Thank you so much Steve and Mark for your replies. It is helping me understand how to read the logcat output better. :) I put a breakpoint on line 42, but it still crashed when I ran it with the breakpoint. Is that the same as a debug point? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Stephen Abrams Sent: Saturday, December 19, 2009 9:01 PM To: android-beginners@googlegroups.com Subject: Re: [android-beginners] Re: logcat question Hi tinyang, If you're using eclipse, you can put a debug point at line 42 in CameraPreview and see what object is null that you're trying to call a method on. Steve On Sat, Dec 19, 2009 at 3:15 PM, tinyang tiny...@earthlink.net wrote: OK, thanks. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Lance Nanek Sent: Saturday, December 19, 2009 12:26 PM To: Android Beginners Subject: [android-beginners] Re: logcat question You are already seeing them. The more refers to the lines that are just duplicates of the lines that the RuntimeException exception above the NullPointerException has already printed. On Dec 19, 11:44 am, tinyang tiny...@earthlink.net wrote: I'm trying to figure out a java.lang.RuntimeException problem in my app. When I look at the logcat, it will show something like this: 12-19 09:29:38.055: WARN/dalvikvm(716): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 12-19 09:29:38.065: ERROR/AndroidRuntime(716): Uncaught handler: thread main exiting due to uncaught exception 12-19 09:29:38.075: ERROR/AndroidRuntime(716): java.lang.RuntimeException: Unable to start activity ComponentInfo{test.app/test.app.CameraPreview}: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 268) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:22 84) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Handler.dispatchMessage(Handler.java:99) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Looper.loop(Looper.java:123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.main(ActivityThread.java:3948) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invokeNative(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invoke(Method.java:521) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit. java:7 82) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at dalvik.system.NativeStart.main(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): Caused by: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at test.app.CameraPreview.onCreate(CameraPreview.java:42) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 231) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): ... 11 more I want to see the 11 more lines in the error logging. How do I view those? 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/18/09 19:38:00 -- 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http
[android-beginners] logcat question
I'm trying to figure out a java.lang.RuntimeException problem in my app. When I look at the logcat, it will show something like this: 12-19 09:29:38.055: WARN/dalvikvm(716): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 12-19 09:29:38.065: ERROR/AndroidRuntime(716): Uncaught handler: thread main exiting due to uncaught exception 12-19 09:29:38.075: ERROR/AndroidRuntime(716): java.lang.RuntimeException: Unable to start activity ComponentInfo{test.app/test.app.CameraPreview}: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Handler.dispatchMessage(Handler.java:99) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Looper.loop(Looper.java:123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.main(ActivityThread.java:3948) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invokeNative(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invoke(Method.java:521) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:7 82) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at dalvik.system.NativeStart.main(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): Caused by: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at test.app.CameraPreview.onCreate(CameraPreview.java:42) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): ... 11 more I want to see the 11 more lines in the error logging. How do I view those? 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
RE: [android-beginners] Re: logcat question
OK, thanks. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Lance Nanek Sent: Saturday, December 19, 2009 12:26 PM To: Android Beginners Subject: [android-beginners] Re: logcat question You are already seeing them. The more refers to the lines that are just duplicates of the lines that the RuntimeException exception above the NullPointerException has already printed. On Dec 19, 11:44 am, tinyang tiny...@earthlink.net wrote: I'm trying to figure out a java.lang.RuntimeException problem in my app. When I look at the logcat, it will show something like this: 12-19 09:29:38.055: WARN/dalvikvm(716): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 12-19 09:29:38.065: ERROR/AndroidRuntime(716): Uncaught handler: thread main exiting due to uncaught exception 12-19 09:29:38.075: ERROR/AndroidRuntime(716): java.lang.RuntimeException: Unable to start activity ComponentInfo{test.app/test.app.CameraPreview}: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 268) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:22 84) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Handler.dispatchMessage(Handler.java:99) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.os.Looper.loop(Looper.java:123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.main(ActivityThread.java:3948) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invokeNative(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at java.lang.reflect.Method.invoke(Method.java:521) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit. java:7 82) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at dalvik.system.NativeStart.main(Native Method) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): Caused by: java.lang.NullPointerException 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at test.app.CameraPreview.onCreate(CameraPreview.java:42) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 231) 12-19 09:29:38.075: ERROR/AndroidRuntime(716): ... 11 more I want to see the 11 more lines in the error logging. How do I view those? 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/18/09 19:38:00 -- 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] dig code out of apk
Hello. I am working on an app, and I loaded it on my phone, then I made some changes which broke something. The version on my phone is what I would like to go back to, is there any way for me to dig the code from that older version apk file on my phone? 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
RE: [android-beginners] dig code out of apk
You are right, I should be. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TreKing Sent: Thursday, December 17, 2009 9:14 PM To: android-beginners@googlegroups.com Subject: Re: [android-beginners] dig code out of apk Um ... wouldn't it be easier to just undo whatever changes you made? I sincerely hope you're using revision control ... although I'm going to guess you're probably not. You should be. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Thu, Dec 17, 2009 at 8:40 PM, tinyang tiny...@earthlink.net wrote: Hello. I am working on an app, and I loaded it on my phone, then I made some changes which broke something. The version on my phone is what I would like to go back to, is there any way for me to dig the code from that older version apk file on my phone? 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 270.14.89/2539 - Release Date: 12/17/09 19:40:00 -- 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
RE: [android-beginners] Activity Background Wallpaper Size
I designed mine for QVGA (320x240) and used 9patch (see link below) so that my background image would scale well for different resolutions and orientations. http://developer.android.com/guide/developing/tools/draw9patch.html -Original Message- From: Fran Fitzpatrick [mailto:fxfman1...@gmail.com] Sent: Sunday, November 29, 2009 3:28 PM To: Android Beginners Subject: [android-beginners] Activity Background Wallpaper Size Hey everyone, I'm looking to make a background for my very simple test activity. What is the best way to design the wallpaper? Dimension-wise. Thanks, Fran -- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/30/2009 9:05 PM -- 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
RE: [android-beginners] nine patch
To follow up on this post, I had an errant scrollview in the xml. Once I took it out, it lays out correctly now. _ From: tinyang [mailto:tiny...@earthlink.net] Sent: Friday, November 27, 2009 12:39 AM To: android-beginners@googlegroups.com Subject: [android-beginners] nine patch Has anyone noticed that xml gui elements do not display properly on the stretched portion of a ninepatch image? This is what I'm seeing when using a ninepatch image as the background for my app in the emulator. Is there any way of correcting for this? 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/26/2009 7:42 PM -- 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] nine patch
Has anyone noticed that xml gui elements do not display properly on the stretched portion of a ninepatch image? This is what I'm seeing when using a ninepatch image as the background for my app in the emulator. Is there any way of correcting for this? 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
RE: [android-beginners] building GUIs (manually? or with some tool?)
I've messed around with droiddraw. But I have not found anyway to put in a webview or to put in an image as the background. Am I missing something? _ From: ayyappa appana [mailto:ayyapp...@gmail.com] Sent: Saturday, November 21, 2009 11:43 AM To: android-beginners@googlegroups.com Subject: Re: [android-beginners] building GUIs (manually? or with some tool?) Hai friend , I am a android beginner i hav gone through this tool . for me its very helpful -Thanks ayyappa On Sat, Nov 21, 2009 at 5:25 PM, Marton Kodok pentiu...@gmail.com wrote: http://www.droiddraw.org/ 2009/11/21 Esmail ebo...@hotmail.com Do most people developing applications for Android code the XML layouts manually or are they using a tool for to help them with this? The whole XML based interface thing is new to me (I can see the benefits of separating the interface from the code though) Currently I am working under Windows XP with Eclipse. Thanks. Sorry this is cross-posted, I am a beginner but I am also curious what more experienced developers do with regard to this question. -- 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Márton -- 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- ayyappa(9912416054) -- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/22/2009 7:40 PM -- 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] Background image orientation
Hello all - I have a background image in my app which sits by default vertically and looks great in vertical orientation. But when the phone changes screen orientation, it keeps the image in vertical orientation and scales/smushes it horizontally which looks terrible. Is there any way to flip the orientation of the image if the screen orientation flips? 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
RE: [android-beginners] Restore factory settings
On my droid, I can press settings privacy Factory data reset to reset my phone to factory settings. Have you looked at the android source and followed that path or a similar one to find the code that android uses to do a factory reset? -Original Message- From: Nemat [mailto:nemate...@gmail.com] Sent: Saturday, November 21, 2009 6:24 AM To: Android Beginners Subject: [android-beginners] Restore factory settings Hi friends I have to restore factory settings of phone programmatically..Is that possible?if yes,How can we do tht? 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/20/2009 7:43 PM -- 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] Debugging code
I think I am missing something when trying to debug my code in eclipse. I can run/debug code from the run or debug buttons in eclipse, but I remember I used to have some tab on the bottom, logcat I think it was that would scroll a lot of info about everything the emulator phone was doing. I have the logcat tab on the bottom, and I have tried selecting info and verbose logging modes to get all that good info to show up in the logcat whenever I run/debug my app in the emulator, but I'm not having any luck. Can someone suggest what I can do to get this working again? 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
RE: [android-beginners] Debugging code
I fixed this. Not quite sure how, just messed with it until it worked. Frusterating not knowing what made it work, I been spending days trying to get this going! But thanks for reading my thread and considering to help. :) -Original Message- From: tinyang [mailto:tiny...@earthlink.net] Sent: Saturday, November 21, 2009 10:09 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Debugging code I think I am missing something when trying to debug my code in eclipse. I can run/debug code from the run or debug buttons in eclipse, but I remember I used to have some tab on the bottom, logcat I think it was that would scroll a lot of info about everything the emulator phone was doing. I have the logcat tab on the bottom, and I have tried selecting info and verbose logging modes to get all that good info to show up in the logcat whenever I run/debug my app in the emulator, but I'm not having any luck. Can someone suggest what I can do to get this working again? 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/20/2009 7:43 PM -- 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
RE: [android-beginners] Offering App Design Services
I might be interested too, I need help with icons for my app. Do you do graphic design? On Wed, Nov 18, 2009 at 12:43 PM, cromag_rickmanus cromag.rick...@gmail.com wrote: I've found that I enjoy designing user interfaces for websites/apps, and being a new droid owner I thought I would post an offer for my services as designer for your app. I'm just a designer, not a programmer, so all that work would be done by you and you could use my designs as a guide. I'm willing to design for the droid's resolution primarily (seeing as how it's the biggest) and work downward to other models to avoid pixelated artwork, and I'm also willing to email the finished photoshop file to whomever needs it. I'm not looking to get paid, (although a little monetary bonus would be awesome for a paid app) and would never dream of charging design fees for a free app. I want good free apps just like the rest of us. I want to design for apps that will actually see the light of day, not vaporware and/or concept pieces that may never actually make it to the market. I am willing to brainstorm however, but I want to see apps that become real! Anyone interested? I like to design, and just want to help developers polish their apps to make them more appealing. Because let's face it, right now iPhone apps still have the good design badge in general, we should try to narrow that gap. Either post in reply to this, or send me a PM. To see some of my artwork, go to briphotography.com (I designed the entire site), and/or go to http://cromagrickmanus.deviantart.com (haven't updated in a LONG time :P but there's some artwork on there) Happy programming!! D -- 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 mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/18/2009 7:41 PM -- 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
RE: [android-beginners] How to measure download speed ?
http://text.dslreports.com/mspeed I was able to find this on my droid by doing a voice search on bandwidth test. -Original Message- From: joareiss [mailto:joare...@googlemail.com] Sent: Wednesday, November 18, 2009 7:25 AM To: Android Beginners Subject: [android-beginners] How to measure download speed ? Hello, Is there a possibilty to measure how many kb/s get downloaded, when I don't know how big the file is, that I am downloading ? -- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/17/2009 7:26 PM -- 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
RE: [android-beginners] Connecting to ERP Server
What does your logcat say? http://www.linux-mag.com/cache/7491/1.html -Original Message- From: Vaib [mailto:vaibhav@gmail.com] Sent: Monday, November 16, 2009 3:31 PM To: Android Beginners Subject: [android-beginners] Connecting to ERP Server Hi, I'm trying to connect to my backend Server using SAP JCO 3.x and getting a message that my process is stopped unexpectedly. Can somebody help me? Vaib -- 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.14.71/2510 - Release Date: 11/17/2009 7:26 PM -- 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 there a visual guide to Android components?
Try this: http://developer.android.com/guide/topics/ui/index.html -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Brian Sent: Saturday, October 24, 2009 6:43 PM To: Android Beginners Subject: [android-beginners] Is there a visual guide to Android components? Hello As someone who is fairly new to Java I use online documentation and other resources very often to either to jog my memory or to learn something new. As a visual learner and frequent user of Sun's Java tutorials I find a lot of comfort in images and diagrams. Sun has a great section titled A Visual Guide to Swing Components (Java Look and Feel) which can be found here: http://java.sun.com/docs/books/tutorial/ui/features/components.html which names each Swing component and then has an example image of them in action. I found a section similar to this for the Android components in the Dev Guide but I can't seem to find it again. Does anyone know where this is or another resource which provides something similar? No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/24/2009 2:31 PM --~--~-~--~~~---~--~~ 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: Taking a picture
Wonderful, just what I've been looking for! Which section of the forum is the thread in and what is it's title? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of jbrohan Sent: Tuesday, October 20, 2009 5:56 AM To: Android Beginners Subject: [android-beginners] Re: Taking a picture http://www.anddev.org/ Has a big discussion of camera operations. I got my app started using their code! On Oct 19, 4:46 pm, Anders Feder anders.feder...@gmail.com wrote: Hello, I need to take a photo on command (from my app) such that it is stored as 'normal' photo in the Gallery, just like a photo taken with the Camera application. Preferably, the photo should be geotagged, but not necessarily. The application is unattended (i.e. no user interaction when photo is taken), so no preview is needed. Just shoot, and save. Can someone kindly tell me how to do this? Thanks in advance. Best regards, Anders Feder No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/19/2009 2:33 PM --~--~-~--~~~---~--~~ 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: Exception Activity Not Found
Is the activity declared in your manifest? If you are not sure, post the contents of your AndroidManifest for this application. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of mist3r0 Sent: Friday, October 16, 2009 11:00 AM To: Android Beginners Subject: [android-beginners] Exception Activity Not Found Hello boys, I need to activate the synchronization, I'm writing this: try { Intent syn=new Intent(android.provider.Settings.ACTION_SYNC_SETTINGS); startActivity(syn); } catch(Exception ex) {} When I running the application and click on the button, I receive this type of exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.SyncSettings}; have you declared this activity in your AndroidManifest.xml? What is a problem?? Can yuo help me? No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ 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: converting javac to android
Get Eclipse and the latest Android plugin for eclipse. http://developer.android.com/sdk/1.6_r1/index.html -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Nancy Sent: Wednesday, October 14, 2009 1:46 PM To: Android Beginners Subject: [android-beginners] converting javac to android I have a Java program. I use javac to complie when you do java - version it should tell you have installed in your dos prompt. I need to convert this program to ANDROID program. How do i go about? Is there any utiltiy or free utility in internet to do or ahas anyone down or can suggest to help us to do it. Nancy Forbes No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ 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: Error in the project, unable to track
Can you please provide more details, specific wording if possible for the error? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Carl Sent: Friday, October 16, 2009 4:31 AM To: Android Beginners Subject: [android-beginners] Error in the project, unable to track Hi, I have an error somewhere in the code but i don't know were. There is just a cross on the project folder and nowhere else. And when i try to start it tells me to correct the error. The only thing that i see errors in are some wrong spellings according to eclipse. Thanks Calle No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ 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
Try wifi connection if data connection is not available. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of mehdi Sent: Wednesday, October 14, 2009 5:46 PM To: Android Beginners Subject: [android-beginners] hi hello i'm in iran , how can i use gps on my phone(hero) without internet? please help me. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ 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: Open Source Android Apps
Great idea!! I'm trying to do something similar, got about 1/3rd through my app and having serious probs moving forward now. I would fully support your idea. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of jbrohan Sent: Tuesday, September 29, 2009 5:49 AM To: Android Beginners Subject: [android-beginners] Open Source Android Apps Hello It seems to me that along with many people on this list we are often struggling to do the same things, maybe with just a different twist here and there. In my case taking pictures, recording comments and uploading these to a web site. I have found several examples of each of these and they work more or less well. Is there a repository where people could work together on say an Activity to use the camera, or to upload a file to a website. If we have several people working on these issues in a cooperative fashion we will make a lot better apps, maybe you will find my mistakes rather than a user. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/28/2009 5:53 PM --~--~-~--~~~---~--~~ 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 run system cam in Android Simulator in Ubuntu
This is the second post I've seen from you about this, but I'm unclear as to what you want to do. Would this help you? http://www.tomgibara.com/android/camera-source -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Sushant Sent: Monday, September 14, 2009 2:44 PM To: Android Beginners Subject: [android-beginners] How to run system cam in Android Simulator in Ubuntu I am not able to connect my PC camera with Android Simulator camera in ecllipse on Ubuntu Machine. Can somebody suggest me a solution for that.Please help me i was stuck with these problem for long time Sushant No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/16/2009 5:49 PM --~--~-~--~~~---~--~~ 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 connect to the internet behind proxy ?
Can you connect to the internet without the proxy on the emulator? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of rcy Sent: Thursday, September 17, 2009 7:02 AM To: Android Beginners Subject: [android-beginners] How to connect to the internet behind proxy ? Hi All, Not recently I installed the android SDK for the first time. After playing with the emulator I notice that I can’t log in to the internet via the browser application. I looked for a and found the following command : “emulator -avd em15 - http-proxy proxy” For the proxy I copy the prams’ from the browser (Tools à Internet Option à Connection à Lan settings ) but still I can’t see any WebPages via the browser. Any suggestion ? Thanks No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/17/2009 3:55 PM --~--~-~--~~~---~--~~ 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: Android Phone
Yes, it is called the Mogul and it looks like a really nice phone! It will come out on Verizon service in October. That's the android phone I'll be getting since Verizon is my carrier and I've been waiting too long for them to get an Android phone! :)) _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Felipe K. C. Sent: Sunday, September 06, 2009 8:09 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Android Phone Motorola will launch a cellphone with Android, that is what I read on newspaper. 2009/9/6 Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com HTC Hero from Motorola ? I was not aware of that Motorola had money to buy HTC :-) -- Roman Baumgaertner Sr. SW Engineer-OSDC .T. . .Mobile. stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 6, 2:44 am, Maxood maqs...@salsoft.net wrote: Go for the HTC Hero from Motorola...its awesome! Or you can also consider buying a TMobil G1 phone. There are other varieties as well. I'm not sure whether about ATT service though. You may check their websites. Maqsood On Sep 5, 7:31 am, pdelaney delaneymichaelpe...@gmail.com wrote: Hello; I have just begun developing for the Android phone and all of my test have been on the emulator. I realize I need to get a real phone, but I am not sure which one I should get. I have ATT service and they do not have an Android phone to date only iPhone. Could someone recommend a phone that I may purchase that will allow me to test my application while also using it as a phone with my current ATT service? Peter No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/7/2009 6:03 PM --~--~-~--~~~---~--~~ 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: HelloWebView - WebViewClient odd behaviour
Oops. :) I did not look at your lesson. I did however use webview for one of my first activities I built in Android after sucessfully completing the helloandroid lesson, and it worked a charm for me. Here is the code which works fine for me. HTH, Happy coding. Public class webtest extends Activity ( WebView webview; //declare webview variable @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); //link java code to xml gui webview.setWebViewClient(new WebViewClient()); //instantiate new webviewclient webview.getSettings().setJavaScriptEnabled(true); //enable javascript for this new webviewclient webview.loadUrl(http://www.google.com/;); //load web address } } -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Christer Østergaard Sent: Friday, September 04, 2009 2:10 AM To: Android Beginners Subject: [android-beginners] Re: HelloWebView - WebViewClient odd behaviour Hi, Thank you for your reply. Your suggestion actually takes away the point of the HelloWebView tutorial, in which we are shown how to intercept the actions and have more control over the view by creating a sub-class of WebViewClient. Anyways, of course, any input is appreciated, and actually, I do get the same behavior when using WebViewClient!!! This strikes me as very odd, because what we're basically doing is replacing default behaviour with default behavirour, no? Any suggestions? Thanks in advance, Christer On 3 Sep., 21:06, tinyang tiny...@earthlink.net wrote: Hello Christer. Have you tried that line without the Hello? webview.setWebViewClient(new WebViewClient()); No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/3/2009 6:05 PM --~--~-~--~~~---~--~~ 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 getting started
The emulator can be very slow depending on the specs of the machine it's running on. Not bad on my dev pc, it opens and runs my app in less than a minute. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Tiago Becker Sent: Thursday, September 03, 2009 4:09 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: problems getting started On my pc, it took really a looong time to move from the android screen to the home screen on the emulator, the first time i tried (i did kill the process 3 or 4 times before letting it run for like 10 mins) My guess is that your program is ok, its just the emulator that is slow as hell On Thu, Sep 3, 2009 at 6:03 PM, Roman ( T-Mobile USA)roman.baumgaert...@t-mobile.com wrote: When you create your first Android application you normally have not to do anything besides creating an Android project. The Eclipse ADT is going to create all the needed resources for you. Check the following - Your Eclipse: for example Version: 3.4.1 Build id: M20080911-1700 - the Problems-tab in Eclipse editor - make sure that ADT is correctly installed -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 3, 8:49 am, leeuwerik l...@qilium.com wrote: I'm brand new to Android (although not to Eclipse and Java). Yesterday I installed ADT within Eclipse (always latest versions) both on Windows and XP. Then I try creating HelloWorld by following the tutorial. When creatin the android project I get an error on the line setContentView(R.layout.main) == R unknown. I tried ctr-shift-O == import android.R is added but the error remains. Undaunted I follow the tuturial and edit to create a TextView instead == application runs, i.e. I see a mobile terminal image with 'ANDROID' written in the centre. On XP it's strange: after a seemingly long time-out the text font changes and an icon (android) is added after the text. Next I try editing the resource .xml files as suggested in the tutorial in order to change the text. This also implies reintroducing the line with setContentView(R.layout.main) in lieu of the TextView. This time no error reported When inspecting main.xml, the new layout and text look OK. Yet when running the application I keep getting the same mobile picture, i.e. without the new text. It looks like the emulation doesn't work properly. I rebuilt the application from scratch and did another tutorial, with the same negative result. I must say that I'm lost. Can anyone help please No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/3/2009 6:05 PM --~--~-~--~~~---~--~~ 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: startActivity crash
Hello and thanks for the reply. No, the FieldGuide line that is commented out does not cause the crash. To the contrary, it actually works properly when starting that activity in the main app. Below you are looking at the code that causes the crash (the geotest activity). I had all of the below code in another application with other activities, and everytime I tried to start this activity, it would crash. So in an effort to isolate the problem, I made a new Android project and put only the crashing activity in it, and it is still crashing (which allows me to rule out the other activites/code in the main app for causing the problem). I get a nullpointerexception when trying to start the activity (see logcat output below). I'm very curious if someone else copy/paste all the code below into a new project, do they have the same problem? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of htbest2000 Sent: Thursday, September 03, 2009 5:52 AM To: Android Beginners Subject: [android-beginners] Re: startActivity crash //startActivity(new Intent(Geotest.this, FieldGuide.class)); is this line cause crash ? why don't you show your layout file of FieldGuide? On Sep 3, 7:33 am, tinyang tiny...@earthlink.net wrote: Hello. I have an application in which I am trying to start an activity (geotest) in, and the activity crashes upon start of the application. Below is my code and my logcat output. I can't figure out the problem, because I have several other activities I am able to start exactly the same way with no problem. When I compare the code, I can't see what I'm doing wrong with the activity that crashes. Am I missing permissions for something maybe? Can someone please help? Thanks! -- -- -- geotest.java: package net.tinyang.geotest; import android.app.Activity; //import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public classgeotestextends Activity { Button geotagbtn = null; Button next2btn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); geotagbtn = (Button) findViewById(R.id.geotagbtn); geotagbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(MainMenu.this, TakePic.class)); Toast.makeText(geotest.this, Geotag Picture coming soon, 5000).show(); } }); next2btn = (Button) findViewById(R.id.next2btn); next2btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(Geotest.this, FieldGuide.class)); Toast.makeText(geotest.this, Next coming soon, 5000).show(); } }); } } -- -- -- geotag.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/pictitle android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Geotag your Picture / ImageView android:id=@+id/camsurface android:layout_width=wrap_content android:layout_height=wrap_content /ImageView TableLayout android:layout_width=fill_parent android:layout_height=wrap_content TableRow Button android:id=@+id/geotagbtn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/camsurface android:layout_centerHorizontal=true android:text= Geotag / Button android:id=@+id/next2btn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerHorizontal=true android:text= Next / /TableRow /TableLayout /LinearLayout -- -- - manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=net.tinyang.geotest android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CAMERA/ application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.geotest android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=2 / /manifest
[android-beginners] Re: Android Beginner
Hello. It would really help if you posted the errors ou are getting. Is there any logcat output? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 11:42 AM To: Android Beginners Subject: [android-beginners] Android Beginner Hello, I am a new beginner at Android development. I plan to get the HTC Hero coming up soon in the next month and I am excited to use Android on the new mobile device. Anyways, my question I had today was a problem that I've been encountering a lot lately with the SDK/Eclipse part of Android. A tutorial named HelloGridView that is located in the user- documentation of the SDK gives a tutorial on how to make a basic slide- show picture based application. I follow the instructions, but when I place this line of code: File to open: HelloGridView java file in SRC public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); GridView gridview = (GridView) findViewById(R.id.gridview); gridview.setAdapter(new ImageAdapter(this)); } COPY AND PASTED OVER ABOVE LINE OF CODE: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } I get a bunch of underscore red-line errors and I'm not sure about how to go about fixing them. Without fixing them, I can't use the application in Eclipse, and so on and so forth. I'm very new at this stuff and I can't seem to understand why I'm getting these underline- red errors. Any help would be much appreciated. Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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: HelloWebView - WebViewClient odd behaviour
Hello Christer. Have you tried that line without the Hello? webview.setWebViewClient(new WebViewClient()); -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Christer Østergaard Sent: Thursday, September 03, 2009 11:06 AM To: Android Beginners Subject: [android-beginners] HelloWebView - WebViewClient odd behaviour Hi everybody, Have been going through the HelloWebView tutorial. First I did all the coding my self. Went perfectly fine. Loaded the Google address. Then I added the code for HelloWebViewClient. As soon as I added the webview.setWebViewClient(new HelloWebViewClient()); I end up getting nothing but black in the content area. After working a bit with it, I reversed everything, and copied the code from the tutorial. Same behaviour. If I take the aforementioned line of code out, then it works again. Does anyone have a clue to why this is happening? Kind regards, Christer public class HelloWebView extends Activity { /** Called when the activity is first created. */ private WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); webview = (WebView) findViewById(R.id.webview); webview.setWebViewClient(new HelloWebViewClient()); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl(http://www.google.com;); } private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } } No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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: Android Beginner
Hi Tyler. I'm sorry but I did not see a picture at the link you posted. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 2:56 PM To: Android Beginners Subject: [android-beginners] Re: Android Beginner I didn't have any easy way of explaining my issue, so I let the picture do the talking. http://groups.google.com/group/android-beginners/browse_thread/thread/50db00 667bd9c39e Thanks for the help so far, Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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: Android Beginner
OK, seeing the picture does help. On the right is the red line errors. On the left is either a folder with a small red/white X icon on it, or just a larger red/white X icon. If you rest your mouse pointer over the red/white icons on the left side, it will pop up a tool tip and give you the error message. If you hit F2, it will make suggestions for fixing your errors. The F2 feature is called quick fix. If the quick fix doesn't work for all of your errors, then note the verbiage of the error and search google or post here for further help. Happy debugging. :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of TheJediSlayer Sent: Thursday, September 03, 2009 2:56 PM To: Android Beginners Subject: [android-beginners] Re: Android Beginner I didn't have any easy way of explaining my issue, so I let the picture do the talking. http://img269.imageshack.us/img269/3442/gridview.png http://groups.google.com/group/android-beginners/browse_thread/thread/50db00 667bd9c39e Thanks for the help so far, Tyler No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 9/2/2009 6:03 PM --~--~-~--~~~---~--~~ 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] startActivity crash
Hello. I have an application in which I am trying to start an activity (geotest) in, and the activity crashes upon start of the application. Below is my code and my logcat output. I can't figure out the problem, because I have several other activities I am able to start exactly the same way with no problem. When I compare the code, I can't see what I'm doing wrong with the activity that crashes. Am I missing permissions for something maybe? Can someone please help? Thanks! -- geotest.java: package net.tinyang.geotest; import android.app.Activity; //import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class geotest extends Activity { Button geotagbtn = null; Button next2btn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); geotagbtn = (Button) findViewById(R.id.geotagbtn); geotagbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(MainMenu.this, TakePic.class)); Toast.makeText(geotest.this, Geotag Picture coming soon, 5000).show(); } }); next2btn = (Button) findViewById(R.id.next2btn); next2btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //startActivity(new Intent(Geotest.this, FieldGuide.class)); Toast.makeText(geotest.this, Next coming soon, 5000).show(); } }); } } -- geotag.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/pictitle android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Geotag your Picture / ImageView android:id=@+id/camsurface android:layout_width=wrap_content android:layout_height=wrap_content /ImageView TableLayout android:layout_width=fill_parent android:layout_height=wrap_content TableRow Button android:id=@+id/geotagbtn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/camsurface android:layout_centerHorizontal=true android:text= Geotag / Button android:id=@+id/next2btn android:layout_width=wrap_content android:layout_height=wrap_content android:layout_centerHorizontal=true android:text= Next / /TableRow /TableLayout /LinearLayout - manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=net.tinyang.geotest android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CAMERA/ application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.geotest android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=2 / /manifest --- Logcat output: 09-02 23:14:42.623: ERROR/mountd(20): could not read initial mass storage state 09-02 23:14:42.934: ERROR/flash_image(29): can't find recovery partition 09-02 23:14:50.694: ERROR/MemoryHeapBase(52): error opening /dev/pmem: No such file or directory 09-02 23:14:50.694: ERROR/SurfaceFlinger(52): Couldn't open /sys/android_power/wait_for_fb_sleep or /sys/android_power/wait_for_fb_wake 09-02 23:14:50.725: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-02 23:14:50.805: ERROR/GLLogger(52): couldn't load libhgl.so library (Cannot find library) 09-02 23:14:53.533: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/usb/online' 09-02 23:14:53.533: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/battery/batt_vol' 09-02 23:14:53.533: ERROR/BatteryService(52): Could not open '/sys/class/power_supply/battery/batt_temp' 09-02 23:14:53.754: ERROR/EventHub(52): could not get driver version for /dev/input/mouse0, Not a typewriter 09-02 23:14:53.754: ERROR/System(52): Failure starting core service 09-02 23:14:53.754: ERROR/System(52): java.lang.SecurityException 09-02 23:14:53.754: ERROR/System(52): at android.os.BinderProxy.transact(Native Method) 09-02 23:14:53.754: ERROR/System(52): at
[android-beginners] Re: Source not found
Thanks Yusuf for your reply! I do actually have the Tag activity in the manifest, the manifest snipit I posted had a typo (thanks for catching that). What else may cause such a problem? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Yusuf Saib (T-Mobile USA) Sent: Friday, August 28, 2009 12:10 PM To: Android Beginners Subject: [android-beginners] Re: Source not found You may need to add the Tag activity to your AndroidManifest.xml file. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 5:19 pm, tinyang tiny...@earthlink.net wrote: Hello. When I click on a button in my app, I get a Class file editor/source not found message. I'm not sure why this is a problem because I have other buttons that do the same thing (start an activity) and they do not have this problem. If anyone has suggestions, it would be much appreciated! Below is the logcat out put and the code/xml involved: Button code: next1btn = (Button) findViewById(R.id.next1btn); next1btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(TakePic.this, Tag.class)); } }); Button xml: Button android:id=@+id/next1btn android:layout_width=wrap_content android:layout_height=wrap_content android:text= Next / AndroidManifest.xml intent: activity android:name=.Tag android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / /intent-filter /activity Tag.java: package net.tiny.racker; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class Tag extends Activity { Button tagbtn = null; Button next2btn = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Tagbtn = (Button) findViewById(R.id.tagbtn); Tagbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(Tag.this, Tag coming soon, 5000).show(); } }); next2btn = (Button) findViewById(R.id.next2btn); next2btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(Tag.this, Guide.class)); } }); } } Logcat: 08-28 00:03:00.637: INFO/ActivityManager(50): Starting activity: Intent { comp={net.tiny.racker/net.tiny.racker.Tag} } 08-28 00:03:00.678: DEBUG/AndroidRuntime(242): Shutting down VM 08-28 00:03:00.687: WARN/dalvikvm(242): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 08-28 00:03:00.687: ERROR/AndroidRuntime(242): Uncaught handler: thread main exiting due to uncaught exception 08-28 00:03:00.707: ERROR/AndroidRuntime(242): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.tiny.racker/net.tiny.racker.Tag}: java.lang.NullPointerException 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2 141) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:21 57) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.os.Handler.dispatchMessage(Handler.java:88) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.os.Looper.loop(Looper.java:123) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.main(ActivityThread.java:3739) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at java.lang.reflect.Method.invokeNative(Native Method) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at java.lang.reflect.Method.invoke(Method.java:515) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit. java: 7 39) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at dalvik.system.NativeStart.main(Native Method) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): Caused by: java.lang.NullPointerException 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at net.tiny.racker.Tag.onCreate(Tag.java:19) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 08-28 00:03
[android-beginners] Re: 3 icons for one app
That did the trick! Thanks so much! :D _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Liviu Ungureanu Sent: Thursday, August 27, 2009 9:11 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: 3 icons for one app 2009/8/27 Tikoze janderson@gmail.com I very well may be wrong (I am a very new android developer and haven't done something like this yet), but have you tried removing the category android:name=android.intent.category.LAUNCHER / line from the activities you don't want icons for? I think I read somewhere that the recipe for getting a launchable icon is to have both the category LAUNCHER and the action MAIN defined in the intent filter. On Aug 18, 9:45 am, tinyang tiny...@earthlink.net wrote: If I do that, I can't get to those activities. I have a main menu screen with a button for each activity, and the buttons don't work for any activity in which I remove the intent for from the manifest. If I remove those intents from the manifest, how else can I make the buttons open my activities? Here is an example of what I use now: vwpicbtn = (Button) findViewById(R.id.viewpics); vwpicbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(MainMenu.this, ViewPic.class)); } }); Thank you. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Liviu Ungureanu Sent: Tuesday, August 18, 2009 6:30 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: 3 icons for one app Hi! Just remove the intent filter for the others activities less main activity. use it only for main activity Thank you! No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM I tested it and works.. This is my AndroidManifest file..: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.app.lookitup2 android:versionCode=1 android:versionName=1.0 android:icon = @drawable/icon android:windowSoftInputMode=stateVisible uses-permission android:name=android.permission.INTERNET/ uses-permission android:name=android.permission.CALL_PHONE / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.WRITE_CONTACTS/ uses-permission android:name=android.permission.READ_CONTACTS / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / activity android:name=.MainActivity android:label=LookItUp android:windowSoftInputMode=stateVisible|adjustResize intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.ResultsActivity android:label=@string/ResultsTitle intent-filter /intent-filter /activity activity android:name=.ShowItemDetailsActivity android:label=Item Datails intent-filter /intent-filter /activity activity android:name=.ItemMap android:label=Map intent-filter /intent-filter /activity activity android:name=.HistoryActivity android:label=History intent-filter /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / /manifest Maybe will be heplfull. Have a nice day! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/26/2009 12:16 PM --~--~-~--~~~---~--~~ 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: 3 icons for one app
Thanks for your reply, this worked! -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Tikoze Sent: Thursday, August 27, 2009 8:13 AM To: Android Beginners Subject: [android-beginners] Re: 3 icons for one app I very well may be wrong (I am a very new android developer and haven't done something like this yet), but have you tried removing the category android:name=android.intent.category.LAUNCHER / line from the activities you don't want icons for? I think I read somewhere that the recipe for getting a launchable icon is to have both the category LAUNCHER and the action MAIN defined in the intent filter. On Aug 18, 9:45 am, tinyang tiny...@earthlink.net wrote: If I do that, I can't get to those activities. I have a main menu screen with a button for each activity, and the buttons don't work for any activity in which I remove the intent for from the manifest. If I remove those intents from the manifest, how else can I make the buttons open my activities? Here is an example of what I use now: vwpicbtn = (Button) findViewById(R.id.viewpics); vwpicbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(MainMenu.this, ViewPic.class)); } }); Thank you. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Liviu Ungureanu Sent: Tuesday, August 18, 2009 6:30 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: 3 icons for one app Hi! Just remove the intent filter for the others activities less main activity. use it only for main activity Thank you! No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/26/2009 12:16 PM --~--~-~--~~~---~--~~ 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: Upload picture to my php website
Some photo sharing sites can accept picture uploads via email. But I would also think you could just handle this through your website. Maybe make a mobile web page that you could open in a webkit window on the phone, then select the file/picture and upload it through the webpage. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of jbrohan Sent: Thursday, August 27, 2009 12:12 PM To: Android Beginners Subject: [android-beginners] Upload picture to my php website Hello I can now use the camera to take and store a picture with the Android. The next step is to upload it to a website. Is there an implementation of cURL or an example of how to do this? No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/26/2009 12:16 PM --~--~-~--~~~---~--~~ 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] Source not found
Hello. When I click on a button in my app, I get a Class file editor/source not found message. I'm not sure why this is a problem because I have other buttons that do the same thing (start an activity) and they do not have this problem. If anyone has suggestions, it would be much appreciated! Below is the logcat out put and the code/xml involved: Button code: next1btn = (Button) findViewById(R.id.next1btn); next1btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(TakePic.this, Tag.class)); } }); Button xml: Button android:id=@+id/next1btn android:layout_width=wrap_content android:layout_height=wrap_content android:text= Next / AndroidManifest.xml intent: activity android:name=.Geotag android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / /intent-filter /activity Tag.java: package net.tiny.racker; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class Tag extends Activity { Button tagbtn = null; Button next2btn = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Tagbtn = (Button) findViewById(R.id.tagbtn); Tagbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Toast.makeText(Tag.this, Tag coming soon, 5000).show(); } }); next2btn = (Button) findViewById(R.id.next2btn); next2btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(Tag.this, Guide.class)); } }); } } Logcat: 08-28 00:03:00.637: INFO/ActivityManager(50): Starting activity: Intent { comp={net.tiny.racker/net.tiny.racker.Tag} } 08-28 00:03:00.678: DEBUG/AndroidRuntime(242): Shutting down VM 08-28 00:03:00.687: WARN/dalvikvm(242): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 08-28 00:03:00.687: ERROR/AndroidRuntime(242): Uncaught handler: thread main exiting due to uncaught exception 08-28 00:03:00.707: ERROR/AndroidRuntime(242): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.tiny.racker/net.tiny.racker.Tag}: java.lang.NullPointerException 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2141) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.os.Handler.dispatchMessage(Handler.java:88) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.os.Looper.loop(Looper.java:123) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.main(ActivityThread.java:3739) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at java.lang.reflect.Method.invokeNative(Native Method) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at java.lang.reflect.Method.invoke(Method.java:515) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:7 39) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at dalvik.system.NativeStart.main(Native Method) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): Caused by: java.lang.NullPointerException 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at net.tiny.racker.Tag.onCreate(Tag.java:19) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2104) 08-28 00:03:00.707: ERROR/AndroidRuntime(242): ... 11 more -- :-) P Please don't print this e-mail unless you really need to. --~--~-~--~~~---~--~~ 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: Additional Contact Information
Sorry for not being specific enough. I meant to duplicate the code of the existing contacts app and modify it to fit your needs. What you are hitting on here is one of the many wonderful, groundbreaking ideas about Android. Because Android is so Open, 3rd party apps developed by non-google developers are treated exactly the same as apps created by Google. All Android 3rd party apps have access to all the same apis and system resources that the Android Apps created by Google have access to. Android 3rd party apps are treated with the same priority as Android apps created by Google. Then when your modified Contacts app is finished and loaded on your Android phone, you can specify within Android that you want your Contacts app instead of the google contacts app to be used as the default contacts app on the phone through intent receivers. If you choose, you could also remove the default contacts app from the phone after testing yours and making sure it works properly. In comparison, the iPhone for example, it has 3rd party apps, but these 3rd party apps are hobbled in the manner of they are sandboxed away from many of the system resources and apis that are available to Apple developer iPhone apps. They are also treated with a lower priority than the Apple developer iPhone apps. I hope this helps make it clearer. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of King of Camelot Sent: Wednesday, August 26, 2009 6:31 AM To: Android Beginners Subject: [android-beginners] Re: Additional Contact Information Sorry, could you be a bit more specific? By 'modify the current contacts app' do you mean duplicate the code in my application? If so, that sounds kind of like option three. If you mean modify the contacts app by itself, then I'm not sure how this would work in the case of my application. I'm under the assumption that the application which users will download comes as a single APK, and as such couldn't really modify the contacts app, unless it re-directed it to the APK for my application? Unless I'm missing something? Thanks! Sorry if I'm missing something. On Aug 25, 4:36 pm, tinyang tiny...@earthlink.net wrote: Hello Sire :) I'm new to Android too, but it sounds like the first option is certainly do-able. Just modify the current contacts app (assuming it's open source) and replace one of the current spinners (drop down menus) with the Favorite food item spinner you wish to add. Modify the contacts database to add a field for your fav food, link it to your spinner, and you're good to go. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of King of Camelot Sent: Tuesday, August 25, 2009 12:52 PM To: Android Beginners Subject: [android-beginners] Additional Contact Information Hi all. New to Android, so I'm just trying to get a grasp of what's possible for an application and what's not. Let's say for example I wanted to add a 'Favorite Food Type' drop-down box to the contact view UI. This way when you add new contacts, or modify old ones, you can select a favorite food type for that individual, that the application I'm making would then use to display all individuals who like the food type you're currently craving. (Just an example application) And just to clarify, by the contact view UI, I mean the interface you see when you go to contacts and select an individual. In other words, the screen that lets you modify their contact information. Now, would it be possible for an application to insert this drop-down box into the default contact view UI? Or would the application need to show all contacts itself and force the user to do the food type selections in the application? The first options is preferable. If that isn't possible, there's also a third potential option where the application overrides the default contact view UI with it's own. Anybody know which of these is possible, and how to implement? (Although the in-application version need not explanation) Thanks! No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/25/2009 6:07 PM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/25/2009 6:07 PM --~--~-~--~~~---~--~~ 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: Placement of camera preview
Anyone have any instie on this please? If not, maybe I will try the developers group. Thanks. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of tinyang Sent: Saturday, August 22, 2009 4:07 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Placement of camera preview Hello. I just got my camera preview working for my app, but it is not appearing where I want it to appear, and I'm not sure how to get it there. Instead of using the entire screen for the preview, I would like to put it inside a surfaceview in an activity xml gui. What do I need to change? Here is my code: public class TakePic extends Activity { SurfaceView camSurface; Preview camPreview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title camPreview = new Preview(this); //create preview setContentView(R.layout.takepic); setContentView(camPreview); //set preview as activity content camSurface = (SurfaceView) findViewById(R.id.camsurface); } -- :-) P Please don't print this e-mail unless you really need to. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/21/2009 6:06 PM --~--~-~--~~~---~--~~ 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 just for Android beginners
Is there a way to add this app to my emulator? Just to check it out? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Jack Ha Sent: Wednesday, August 26, 2009 10:44 AM To: Android Beginners Subject: [android-beginners] Re: App just for Android beginners Useful app...Thanks! -- Jack Ha 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 21, 12:47 pm, Andrei gml...@gmail.com wrote: Guys, I wrote app for Android phone that can help you to learn Android / plan your next App. It is FREE and searchable app for all Android API documentation. It works off-line, no need for connection. Give it a try. Search for DroiDoc on Market on your phone Thanks No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/25/2009 6:07 PM --~--~-~--~~~---~--~~ 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: Additional Contact Information
Hello Sire :) I'm new to Android too, but it sounds like the first option is certainly do-able. Just modify the current contacts app (assuming it's open source) and replace one of the current spinners (drop down menus) with the Favorite food item spinner you wish to add. Modify the contacts database to add a field for your fav food, link it to your spinner, and you're good to go. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of King of Camelot Sent: Tuesday, August 25, 2009 12:52 PM To: Android Beginners Subject: [android-beginners] Additional Contact Information Hi all. New to Android, so I'm just trying to get a grasp of what's possible for an application and what's not. Let's say for example I wanted to add a 'Favorite Food Type' drop-down box to the contact view UI. This way when you add new contacts, or modify old ones, you can select a favorite food type for that individual, that the application I'm making would then use to display all individuals who like the food type you're currently craving. (Just an example application) And just to clarify, by the contact view UI, I mean the interface you see when you go to contacts and select an individual. In other words, the screen that lets you modify their contact information. Now, would it be possible for an application to insert this drop-down box into the default contact view UI? Or would the application need to show all contacts itself and force the user to do the food type selections in the application? The first options is preferable. If that isn't possible, there's also a third potential option where the application overrides the default contact view UI with it's own. Anybody know which of these is possible, and how to implement? (Although the in-application version need not explanation) Thanks! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/25/2009 6:07 PM --~--~-~--~~~---~--~~ 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] TableLayout in Linear Layout
Hello. I'm trying to use a table layout inside a linear layout. My problem is that everything inside the table layout is not appearing on the screen. My code is below, what do I need to change to make it work? Thanks! ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/pictitle android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginTop=10dip android:text=Take a Picture / SurfaceView android:id=@+id/camsurface android:layout_width=fill_parent android:layout_height=10dip android:layout_weight=1 /SurfaceView TableLayout android:id=@+id/tablelayout android:layout_width=fill_parent android:stretchColumns=* TableRow Button android:id=@+id/snapshot android:layout_width=wrap_content android:layout_height=wrap_content android:text=Snapshot / Button android:id=@+id/next1 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Next / /TableRow /TableLayout /LinearLayout -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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] Placement of camera preview
Hello. I just got my camera preview working for my app, but it is not appearing where I want it to appear, and I'm not sure how to get it there. Instead of using the entire screen for the preview, I would like to put it inside a surfaceview in an activity xml gui. What do I need to change? Here is my code: public class TakePic extends Activity { SurfaceView camSurface; Preview camPreview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title camPreview = new Preview(this); //create preview setContentView(R.layout.takepic); setContentView(camPreview); //set preview as activity content camSurface = (SurfaceView) findViewById(R.id.camsurface); } -- :-) P Please don't print this e-mail unless you really need to. --~--~-~--~~~---~--~~ 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: Android SDK For Beginners?
Hi Azelis and welcome to Android development! :) I'm pretty much new to programming. Android is my first software development experience aside from some relational database stuff I did years ago. I pretty much had to start learning from scratch several months ago. The first recommendation I have for you is to learn Java. I took this free online course: http://www.javapassion.com/javaintro/ I was new to both java and xml, but I found the xml easier to pick up than the java. Your C++ experience will help you learn the java faster I think. I also read this free Android development PDF book: http://andbook.anddev.org/ Which started to fill in a lot of the blanks for me about Android development. And I purchased the Professional Android Application Development paperback after browsing Android coding books at the local book store (so far it's my fav Android coding book). I still have lots more to learn, but I am on my 3rd or 4th app and I'm really enjoying developing for Android. I also made good use of this group, so I encourage you to also. Good luck! -- tinyang -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Azelis DeLano Sent: Friday, August 21, 2009 3:22 AM To: Android Beginners Subject: [android-beginners] Android SDK For Beginners? Hello, my name is Zack but I go by Azelis. Introduction's out of the way, let's get down to it. From my history of programming, I know that languages based on other languages only make sense if you have extensive background. For example when I started learning NQC for the Mindstorms Invention System it was recommended that I take some C++ tutorials first. However most of these provided me with information I would never need to know (system speciffic stuff). That brings me to where I find myself. Within a week I will be receiving my G1 and I am very interested in programming for it. I have a great amount of programming experience as follows (in chronological order): AppleSoft Integer Basic QBASIC JavaScript Visual Basic Visual C++ TI89 Basic PHP Linden Scripting Language and recently a bit of ASM Basically, with my use of JS and PHP, I am no stranger to the DOM. However I found even the Hello Android tutorial a little difficult to follow, using data types, methods, models, and terms I was unfamiliar with (not to mention that I've never worked with XML, only style sheets). While I was able to kind of understand what was going on, by the time I got to the notepad example I was completely lost. Let me also qualify that I tried learning Java once before to create website applets (yeah, back in those olden days) and most tutorials I found convered very speciffic information that I really didn't need to know. So given my experience with outside tutorials that are only of peripheral interest to me and the knowledge that Android doesn't use the everyday flavor Java VM, is there a Java for Android for Beginners style reference anywhere? Barring that, is there a tutorial/set of tutorials anyone else who was in my position can recommend? Android may very well be the first place solo programmers like myself have a chance to create mainstream popular mobile applications so if such a reference doesn't exist I may well have to spearhead it. - Azelis the White Wolf No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/20/2009 6:06 PM --~--~-~--~~~---~--~~ 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: 3 icons for one app
Sure. Here is my manifest file: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=net.tinyang.birdtracker android:versionCode=1 android:versionName=1.0 uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CAMERA/ application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.MainMenu android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.FieldGuide android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:name=.TakePic android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=2 / /manifest -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Sean Hodges Sent: Tuesday, August 18, 2009 3:17 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: 3 icons for one app Can you post up your manifest file? On Tue, Aug 18, 2009 at 2:41 AM, tinyangtiny...@earthlink.net wrote: I am developing an app and so far it has 3 complete acticities. For some reason, everytime I install it and run it in my emulator, it creates an icon for each activity instead of creating only one activity for the app. Is this because I have intents in my manifest for each activity? Can anyone advise me as to why this is happening and how to fix it? Thanks. -- J P Please don't print this e-mail unless you really need to. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM --~--~-~--~~~---~--~~ 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: 3 icons for one app
If I do that, I can't get to those activities. I have a main menu screen with a button for each activity, and the buttons don't work for any activity in which I remove the intent for from the manifest. If I remove those intents from the manifest, how else can I make the buttons open my activities? Here is an example of what I use now: vwpicbtn = (Button) findViewById(R.id.viewpics); vwpicbtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { startActivity(new Intent(MainMenu.this, ViewPic.class)); } }); Thank you. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Liviu Ungureanu Sent: Tuesday, August 18, 2009 6:30 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: 3 icons for one app Hi! Just remove the intent filter for the others activities less main activity. use it only for main activity Thank you! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM --~--~-~--~~~---~--~~ 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: Custom spinner widget
Thanks for the reply! I was able to get this working using onItemSelected(). -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of midtoad Sent: Tuesday, August 18, 2009 9:58 AM To: Android Beginners Subject: [android-beginners] Re: Custom spinner widget What is it you are trying to accomplish? Select an item from a spinner widget? If so, take a look at the Spinner Demo example from commonsware.com (source code from Hello, Android). On Aug 14, 11:23 am, tinyang tiny...@earthlink.net wrote: I read in another post that the spinner widget does not support onItemClickListener (and upon checking the developer site, that seems to still be the case). Could I use the suggestion in The Basic Way section at the link below to fix that?http://developer.android.com/guide/topics/ui/custom-components.html#b.. . If this won't work, I'm open to other suggestions to get a spinner that supports onItemClickListener. Thanks. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM --~--~-~--~~~---~--~~ 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] 3 icons for one app
I am developing an app and so far it has 3 complete acticities. For some reason, everytime I install it and run it in my emulator, it creates an icon for each activity instead of creating only one activity for the app. Is this because I have intents in my manifest for each activity? Can anyone advise me as to why this is happening and how to fix it? Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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 change text color of all child TextViews ?
Have you looked into themes? http://developer.android.com/guide/topics/ui/themes.html -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Atif Sent: Monday, August 17, 2009 10:34 PM To: Android Beginners Subject: [android-beginners] Is it possible to change text color of all child TextViews ? Is it possible to change text color of all child TextViews? Actually I want to change text color of all columns(TextViews) of a TableRow when it is clicked. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/17/2009 6:04 PM --~--~-~--~~~---~--~~ 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: Q) Adjusting textView font size.
You can control textview text size with styles/themes through an xml file. See the following link: http://developer.android.com/guide/topics/ui/themes.html -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of daum3...@yahoo.com Sent: Saturday, August 15, 2009 11:16 PM To: Android Beginners Subject: [android-beginners] Q) Adjusting textView font size. Hello all, I'm printing strings into a textView. It works well, but the font size is very small to read. Can I adjust the font size to be bigger? Thank you for you help in advance. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/15/2009 6:10 PM --~--~-~--~~~---~--~~ 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] surfaceview in a frame layout
I followed the code sample at http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/ apis/graphics/CameraPreview.html but I'm wondering how I tie the camera preview surfaceview into my xml layout gui. Can anyone point me in the right direction for that? Thanks. -- :-) P Please don't print this e-mail unless you really need to. --~--~-~--~~~---~--~~ 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] Custom spinner widget
I read in another post that the spinner widget does not support onItemClickListener (and upon checking the developer site, that seems to still be the case). Could I use the suggestion in The Basic Way section at the link below to fix that? http://developer.android.com/guide/topics/ui/custom-components.html#basic If this won't work, I'm open to other suggestions to get a spinner that supports onItemClickListener. Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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] Populate spinner
Is the only way to populate a spinner to use an array, or can something like the menu.add() be used? -- :-) P Please don't print this e-mail unless you really need to. --~--~-~--~~~---~--~~ 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: Populate spinner
Here is a webpage with a menu.add() example: http://www.brighthub.com/mobile/google-android/articles/28673.aspx This example is what I am referring to with menu.add(). -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Jack Ha Sent: Thursday, August 13, 2009 2:32 PM To: Android Beginners Subject: [android-beginners] Re: Populate spinner Can you be more specific on what you mean menu.add()? -- Jack Ha 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, 11:55 am, tinyang tiny...@earthlink.net wrote: Is the only way to populate a spinner to use an array, or can something like the menu.add() be used? -- :-) P Please don't print this e-mail unless you really need to. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/12/2009 6:12 PM --~--~-~--~~~---~--~~ 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] How to define intent constructor
I'm getting the error: The constructor Intent(new View.OnClickListener(){}, ClassSubActivity) is undefined On this line in my code: startActivity(new Intent(this, SubActivity.class)); But I was advised that since I am trying to start a subactivity with this line, I should not need to put an intent construct in the manifest? Can someone please help me understand the problem? Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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 define intent constructor
OIC, now I get it! In retrospect, it almost seems like a dumb question. But thanks for your patient answers Mark, I'm learning a lot and my button works now. :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Wednesday, August 12, 2009 10:43 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: How to define intent constructor tinyang wrote: I'm getting the error: The constructor Intent(new View.OnClickListener(){}, ClassSubActivity) is undefined On this line in my code: startActivity(*_new_*___ Intent(*this*, SubActivity.*class*)_); But I was advised that since I am trying to start a subactivity with this line, I should not need to put an intent construct in the manifest? Can someone please help me understand the problem? Thanks. This is a Java question. You are presumably calling new Intent() from an inner class. Hence, this represents the instance of the inner class. To reference the this for an outer class, scope it: new Intent(MyActivityName.this, SubActivity.class) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/11/2009 6:27 PM --~--~-~--~~~---~--~~ 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] Parent style elements
I am trying to find a list of style parent and child elements for applying styles to elements in your GUI. I'm not having any luck doing internet search or searching the Android Developers site. Are they the same as CSS, or is there a reference page for them? Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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] Two questions
Hello, This will sound like a dumb question, but what is the return type for Button? Second question is If I have an Application with one main activity and multiple sub-activities, The intent I have in the manifest for the main activity is: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=android.intent.category.LAUNCHER / /intent-filter Thanks for any help. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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: Two questions
Thanks Mark. So is this similar to how I should start my subActivity? public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 4:47 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: This will sound like a dumb question, but what is the return type for Button? Button is a class. Classes do not have return types, methods do. But what is the correct intent to have for a sub-activity when you want it to launch on a specific event (such as onClick)?: intent-filter category android:name=/android.intent.category.LAUNCHER/ / /intent-filter Generally, you do not need an IntentFilter for that situation. Just reference the class directly when building the Intent you pass to startActivity(): startActivity(new Intent(this, MyNextActivity.class)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/10/2009 6:19 PM --~--~-~--~~~---~--~~ 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: Two questions
Well my problem now is that I am trying to start the SubActivity on the button click, but when I run it in the emulator, it does not Launch the SubActivity, and I can't figure out why. Here is all of my code: public class MainMenu extends Activity { /** Called when the activity is first created. */ Button guidebtn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //xml file that has the layout needed guidebtn = (Button) findViewById(R.id.guide); //find the button from the xml layout } public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } } What am I missing? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 5:41 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: Thanks Mark. So is this similar to how I should start my subActivity? public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } Well, the startActivity() statement seems OK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/11/2009 6:27 PM --~--~-~--~~~---~--~~ 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: Two questions
Wonderful! Thanks a million :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Tuesday, August 11, 2009 5:59 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Two questions tinyang wrote: Well my problem now is that I am trying to start the SubActivity on the button click, but when I run it in the emulator, it does not Launch the SubActivity, and I can't figure out why. Here is all of my code: public class MainMenu extends Activity { /** Called when the activity is first created. */ Button guidebtn = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //xml file that has the layout needed guidebtn = (Button) findViewById(R.id.guide); //find the button from the xml layout } public class guide extends Activity { public Button onClick(View guide){ startActivity(new Intent(this, SubActivity.class)); return guidebtn; }; } } What am I missing? I think you need to spend some more time with some tutorials, such as: http://developer.android.com/guide/tutorials/notepad/index.html 1. You have not connected a View.OnClickListener to your Button 2. Your guide class is unused, and probably should not be there, with your onClick() implementation being moved to the View.OnClickListener you have not set up The Notepad tutorial, linked to above, will demonstrate how to use a Button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/11/2009 6:27 PM --~--~-~--~~~---~--~~ 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: RelativeView
Thanks for the reply Mark! I did make the changes you suggested, but it has not changed the layout. I also corrected an id line that should have had a +. Any other suggestions? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Monday, August 10, 2009 1:18 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: RelativeView tinyang wrote: Button android:id=/@id/guide/ android:layout_width=/wrap_content/ android:layout_height=/wrap_content/ android:layout_below=/@+id/title/ Only use the + sign when declaring an ID via android:id. In your layout_below, remove the + sign. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009 6:10 PM --~--~-~--~~~---~--~~ 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: RelativeView
Makes sense Andrei. Thanks for the reply. So I made the change you suggested and it still has not changed the layout. Any other suggestions? Here is my current xml code after these suggested changes: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/#FF android:padding=10px android:orientation=vertical TextView android:id=@+id/title android:layout_width=wrap_content android:layout_height=wrap_content android:layout_above=@id/guide android:layout_centerHorizontal=true android:text=BirdTracker Main Menu / Button android:id=@id/guide android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/title android:layout_centerHorizontal=true android:text=Field Guide / Button android:id=@+id/takepic android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@id/guide android:layout_centerHorizontal=true android:text=Take Picture / /RelativeLayout _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Andrei Bucur Sent: Monday, August 10, 2009 1:33 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: RelativeView I guess that your title has no relative position to anyone so the dependence tree cannot be parsed. Align the TextView below the parent and see if it works. On Mon, Aug 10, 2009 at 9:30 PM, tinyang tiny...@earthlink.net wrote: Thanks for the reply Mark! I did make the changes you suggested, but it has not changed the layout. I also corrected an id line that should have had a +. Any other suggestions? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Monday, August 10, 2009 1:18 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: RelativeView tinyang wrote: Button android:id=/@id/guide/ android:layout_width=/wrap_content/ android:layout_height=/wrap_content/ android:layout_below=/@+id/title/ Only use the + sign when declaring an ID via android:id. In your layout_below, remove the + sign. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009 6:10 PM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009 6:10 PM --~--~-~--~~~---~--~~ 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: RelativeView
I finally sussed it! I couldn't have done it without everyone's help, much appreciated! :) -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Romain Guy Sent: Monday, August 10, 2009 2:54 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: RelativeView Note that Donut will fix the declarations ordering problem. You will be able to declare the dependencies in any order you want (and circular dependencies will be ignored.) On Mon, Aug 10, 2009 at 12:47 PM, Andrei Bucurandrei.bu...@gmail.com wrote: TextView must be declared relative to the parent. If you say that A (guide) is under B (title) and B is above A all you have is a circular dependency. You must use a fixed View for the TextBox, which is the parent. Use these type of attributes for it instead of layout_above (align_ParentTop is the best choice if you'd ask me): android:layout_alignParentBottom If true, makes the bottom edge of this view match the bottom edge of the parent. android:layout_alignParentLeft If true, makes the left edge of this view match the left edge of the parent. android:layout_alignParentRight If true, makes the right edge of this view match the right edge of the parent. android:layout_alignParentTop If true, makes the top edge of this view match the top edge of the parent. Also, listen to what Mark says about ID's and take a look at the layout examples in the APIDemos. On Mon, Aug 10, 2009 at 9:54 PM, Mark Murphy mmur...@commonsware.com wrote: tinyang wrote: Makes sense Andrei. Thanks for the reply. So I made the change you suggested and it still has not changed the layout. Any other suggestions? Here is my current xml code after these suggested changes: This should not even build. TextView android:id=/@+id/title/ android:layout_width=/wrap_content/ android:layout_height=/wrap_content/ android:layout_above=/@id/guide/ android:layout_centerHorizontal=/true/ android:text=/BirdTracker Main Menu/ You cannot reference @id/guide here, because that widget has not been declared yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/9/2009 6:10 PM --~--~-~--~~~---~--~~ 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] Android general question
For each class/activity created in an application, does a separate xml file need to be created for the gui layout? -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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: Android general question
Thanks Mark for the reply. Does that then mean that FindViewById searches all xml files to find the correct view? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Sunday, August 09, 2009 2:34 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Android general question tinyang wrote: For each class/activity created in an application, does a separate xml file need to be created for the gui layout? Not necessarily. Multiple activities can share a layout if they all look the same. One activity might use many layout files (one for the overall screen, one for rows in a ListView, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 8/8/2009 6:17 PM --~--~-~--~~~---~--~~ 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] Center an element
Hi, when formatting the layout in xml, how do I center an element? I looked in Declaring layout section of the dev guide, but I only saw ways to define an absolute postion. Is there a way to center an element so that if the orientation is changes or the activity is viewed on a different sized screen/device, it can auto center itself? -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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] Pictures and EXIF data
I was wondering what needs to be done if you would like a picture taken by your G1 phone to be geotagged? I am designing an app that will allow you to take a picture with the camera and geotag it. Are there any code examples one might recommend for taking a picture with your app (calling the camera library?) and the geotagging the picture and put it as part of the EXIF data? Also, is there any good info on how to form your own EXIF data? Thanks! -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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: Pictures and EXIF data
Thanks Mark, looks good! Is it possible to incorporate purely java/non-android libraries into an android app? Does the G1 not have a built-in option for geotagging a picture taken with the camera already? Also, Are there any code examples one might recommend for taking a picture with your app/calling the camera library? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Saturday, August 08, 2009 4:18 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Pictures and EXIF data tinyang wrote: I was wondering what needs to be done if you would like a picture taken by your G1 phone to be geotagged? I am designing an app that will allow you to take a picture with the camera and geotag it. Are there any code examples one might recommend for taking a picture with your app (calling the camera library?) and the geotagging the picture and put it as part of the EXIF data? Also, is there any good info on how to form your own EXIF data? Thanks! Somebody inquired about this a month or two ago. There are open source Java libraries for manipulating EXIF tags, such as Sanselan: http://incubator.apache.org/sanselan/site/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 8/7/2009 6:37 PM --~--~-~--~~~---~--~~ 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: Change an app
Thank you for all replies so far. Does this mean I can put all of my activities for the application in the same .java file and just use a different xml file for each activity screen? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Balwinder Kaur (T-Mobile) Sent: Friday, July 31, 2009 9:35 AM To: Android Beginners Subject: [android-beginners] Re: Change an app It should be just fine to create a separate Activity for each screen and use Intents to invoke each Activity. From the official documentation http://developer.android.com/guide/topics/fundamentals.html : An activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity is independent of the others. Each one is implemented as a subclass of the Activity base class. 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 Jul 30, 9:03 pm, Michael Leung michaelchi...@gmail.com wrote: I am a new to Android as well, but as far as I know, changing the view is lighter than an activity. On Fri, Jul 31, 2009 at 12:41 PM, tinyang tiny...@earthlink.net wrote: Well, I was hoping to make the only existing activity one of many activities the user could choose from the main menu screen eventually. That is why I was thinking to add a main menu screen from which I could use buttond to add sccess to the other activity choices for the app. I'm open to suggestions though. -- *From:* android-beginners@googlegroups.com [mailto: android-beginn...@googlegroups.com] *On Behalf Of *Michael Leung *Sent:* Thursday, July 30, 2009 9:29 PM *To:* android-beginners@googlegroups.com *Subject:* [android-beginners] Re: Change an app should you change the view? instead of changing to another activity On Fri, Jul 31, 2009 at 11:51 AM, tinyang tiny...@earthlink.net wrote: I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- J P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM --~--~-~--~~~---~--~~ 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: Change an app
Ah! Great, more is becoming clear to this newb. :) I apologize if this is more of an Eclipse question, but what are the mechanics of adding more than one .java file (assuming this is the same as a java class) to the same android project in Eclipse? I've never done that before. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Balwinder Kaur (T-Mobile) Sent: Friday, July 31, 2009 1:50 PM To: Android Beginners Subject: [android-beginners] Re: Change an app No it means you create a new java class for each Activity subclassing the Activity Class. 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 Jul 31, 11:08 am, tinyang tiny...@earthlink.net wrote: Thank you for all replies so far. Does this mean I can put all of my activities for the application in the same .java file and just use a different xml file for each activity screen? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Balwinder Kaur (T-Mobile) Sent: Friday, July 31, 2009 9:35 AM To: Android Beginners Subject: [android-beginners] Re: Change an app It should be just fine to create a separate Activity for each screen and use Intents to invoke each Activity. From the official documentationhttp://developer.android.com/guide/topics/fundamentals.ht ml : An activity presents a visual user interface for one focused endeavor the user can undertake. For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions. A text messaging application might have one activity that shows a list of contacts to send messages to, a second activity to write the message to the chosen contact, and other activities to review old messages or change settings. Though they work together to form a cohesive user interface, each activity is independent of the others. Each one is implemented as a subclass of the Activity base class. 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 Jul 30, 9:03 pm, Michael Leung michaelchi...@gmail.com wrote: I am a new to Android as well, but as far as I know, changing the view is lighter than an activity. On Fri, Jul 31, 2009 at 12:41 PM, tinyang tiny...@earthlink.net wrote: Well, I was hoping to make the only existing activity one of many activities the user could choose from the main menu screen eventually. That is why I was thinking to add a main menu screen from which I could use buttond to add sccess to the other activity choices for the app. I'm open to suggestions though. -- *From:* android-beginners@googlegroups.com [mailto: android-beginn...@googlegroups.com] *On Behalf Of *Michael Leung *Sent:* Thursday, July 30, 2009 9:29 PM *To:* android-beginners@googlegroups.com *Subject:* [android-beginners] Re: Change an app should you change the view? instead of changing to another activity On Fri, Jul 31, 2009 at 11:51 AM, tinyang tiny...@earthlink.net wrote: I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- J P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM --~--~-~--~~~---~--~~ 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
[android-beginners] Change an app
I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah --~--~-~--~~~---~--~~ 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: Change an app
Well, I was hoping to make the only existing activity one of many activities the user could choose from the main menu screen eventually. That is why I was thinking to add a main menu screen from which I could use buttond to add sccess to the other activity choices for the app. I'm open to suggestions though. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Michael Leung Sent: Thursday, July 30, 2009 9:29 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Change an app should you change the view? instead of changing to another activity On Fri, Jul 31, 2009 at 11:51 AM, tinyang tiny...@earthlink.net wrote: I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- :-) P Please don't print this e-mail unless you really need to. http://www.crossloop.com/Teenah -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.24/2255 - Release Date: 7/30/2009 6:09 PM --~--~-~--~~~---~--~~ 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] Center on webpage
Hello. I've written an app for android from webkit which loads a specific website. But I would like to have the app center on the webpage, and I'm having difficulty figuring out the best way to implement that. Is there a method in the webkit library I should use, or can this be accomplished with XML, or would javascript be better? Looking forward to your replies. --~--~-~--~~~---~--~~ 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] Upload pics from emulator
Hi all, I am trying to take a picture with the emulator and upload the pic through email as a test to picasaweb. I have an account in picasaweb, I went into the settings and enabled 'upload photos by email' and saved settings. But when I take a picture with the emulator and choose 'share' and put in my picasaweb email, the picture appears to send properly from the emulator, but the pic never shows up in my picasa account. I can send a photo from my computer via email to my picasaweb though. Shouldn't the emulator be able to do this? It says at the website below that it can do everything but make and receive actual calls. http://developer.android.com/guide/developing/tools/emulator.html The Android emulator mimics all of the typical hardware and software features of a typical mobile device, except that it can not receive or place actual phone calls. Any suggestions are appreciated. 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: Activity is required
Yes you can create a service which does not require a GUI: http://developer.android.com/reference/android/app/Service.html _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Victor Perticarrari Sent: Tuesday, March 17, 2009 1:51 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Activity is required Sorry for the empty email :) I'm new in Android development. And I want to know if for creating an application the Activity is required? Or we can create an application that is build only using services? Thanks in advance... Victor Emanuel 2009/3/17 Victor Perticarrari victor.perticarr...@gmail.com Hi, -- Victor Emanuel God gave rock and roll to you Put it in the soul of everyone -- Victor Emanuel God gave rock and roll to you Put it in the soul of everyone --~--~-~--~~~---~--~~ 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: Instructions for installing Web Tools Project?
http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of jkk...@gmail.com Sent: Wednesday, March 18, 2009 2:13 AM To: Android Beginners Subject: [android-beginners] Instructions for installing Web Tools Project? I am setting up my Eclipse environment so I can try programming for Android. I need to install the WST plugin, part of the WTP, so I can use Android Editors. I can't find instructions on how to install it. Any help appreciated. Thanks Jim --~--~-~--~~~---~--~~ 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: Seems questioins here are rarely answered? Better place to post them?
While YMMV, I find all of my questions here get replied to if not fully answered, and my perception is that most questions posted get replies. I find this group a very beneficial place to bring my questions and get feedback. It's very community oriented. :) OTOH, there are many forums on websites also about Android where you can post questions: http://www.google.com/search?hl=enq=android+forumscts=aq=0oq=android+for um -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of jkk...@gmail.com Sent: Wednesday, March 18, 2009 12:41 PM To: Android Beginners Subject: [android-beginners] Seems questioins here are rarely answered? Better place to post them? A quick persual reveals most questions here receive no replies. Is anybody at Google or anywhere monitoring this group? Jim --~--~-~--~~~---~--~~ 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: Style Attributes
Great, thanks! :)) _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of ??? Sent: Monday, March 16, 2009 6:49 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Style Attributes in this case , MyView method is a constructor~ Constructor is always the same as class name . public MyView(Context context, AttributeSet attrs, int defStyle) { . . . . . } --~--~-~--~~~---~--~~ 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: Style Attributes
Thanks for the reply! The reason I asked for an example is because I am just learning java and I'm not clear on what a construct is. I was hoping I could visually identify it if the code was posted, but I'm afraid I can't. So where is the construct? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of ??? Sent: Monday, March 16, 2009 3:56 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Style Attributes Here is sample codes In main.Xml = for the view ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:app=http://schemas.android.com/apk/res/com.android.demo.customattribu te android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent com.android.demo.customattribute.MyView android:layout_width=fill_parent android:layout_height=wrap_content app:textSet=@string/t1 app:textSetClicked=@string/t2 android:id=@+id/myButton/ /LinearLayout Declare your own styles!!! /values/attrs.xml ?xml version=1.0 encoding=utf-8? resources declare-styleable name=MyView attr name = textSet format=string/ attr name = textSetClicked format=string/ /declare-styleable /resources In View class public MyView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mContext = context; mAttrs = attrs; setFocusable(true); init(context, attrs); } private void init(Context context,AttributeSet attrs){ TypedArray a; CharSequence s; a = context.obtainStyledAttributes(attrs, R.styleable.MyView); s = a.getString(R.styleable.MyView_textSet); if(s != null){ setText(s.toString()); } } --~--~-~--~~~---~--~~ 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: Android beginners
I don't know you are not seeing your posts, but I see this post as your third post. You need to tell us the error message if you are likely to get any help here. :) _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of MMC2 Sent: Tuesday, March 17, 2009 1:38 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Android beginners I am new to this. I have just tried twice to post a question but it does not appear anywhere that I can find it. I have done the Hiullo World tutorial. Then I did the Notepadv1 tutorial but it came up with an error, and I can't work out what it is. When I load the Notepadv1Solution app, which is supposed to be be the correct answer, it comes up with the same error. Can anyone help me please? Regards Michael J McLean --~--~-~--~~~---~--~~ 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: Style Attributes
Can you or someone give an example please? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of ??? Sent: Friday, March 13, 2009 12:28 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Style Attributes Hy. As far as I can remember , The name of attributes are defined by developer ,which mean that u can specify attributes and read the value of attributes in Code (in constructor) --~--~-~--~~~---~--~~ 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: Checkout source code
Are you saying you were able to checkout apps-for-android on linux and instead of giving you the message it gave me, it worked? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Saturday, February 14, 2009 11:20 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code No idea, sorry. I run Linux. It Just Works. Try creating the destination directory apps-for-android-read-only first? On Sat, Feb 14, 2009 at 9:48 PM, tinyang tiny...@earthlink.net wrote: Thanks for the quick reply. I did follow the instructions and my subversion client says the http://apps-for-android.googlecode.com/svn/trunk/ apps-for-android-read-only path doesn't exist. Does anyone know why this might be? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Saturday, February 14, 2009 7:57 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code Click on the Source tag on the page you linked to. There you will find the instructions to check out the source code via Subversion. You may need to install Subversion on your Windows machine. On Sat, Feb 14, 2009 at 8:46 PM, tinyang tiny...@earthlink.net wrote: Hello. I'd like to check out the WebViewDemo source code from Google at the link below with Eclipse. Can anyone help me on how to do that? Googling has not helped me find instructions on how to do this. http://code.google.com/p/apps-for-android/source/browse/trunk/WebViewDemo/?r =58 I'm running Ganymede on Windows XP with SDK 1.0 r1. On another note, I was also wondering if there is any documentation for the WebViewDemo? Thanks! -- Faber Fedor Linux New Jersey http://linuxnj.com -- Faber Fedor Linux New Jersey http://linuxnj.com --~--~-~--~~~---~--~~ 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: Checkout source code
OK, good to know. Thanks Faber for your assitance this far. _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Sunday, February 15, 2009 7:55 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code Yes, it worked for me. On Sun, Feb 15, 2009 at 8:48 PM, tinyang tiny...@earthlink.net wrote: Are you saying you were able to checkout apps-for-android on linux and instead of giving you the message it gave me, it worked? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Saturday, February 14, 2009 11:20 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code No idea, sorry. I run Linux. It Just Works. Try creating the destination directory apps-for-android-read-only first? On Sat, Feb 14, 2009 at 9:48 PM, tinyang tiny...@earthlink.net wrote: Thanks for the quick reply. I did follow the instructions and my subversion client says the http://apps-for-android.googlecode.com/svn/trunk/ apps-for-android-read-only path doesn't exist. Does anyone know why this might be? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Saturday, February 14, 2009 7:57 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code Click on the Source tag on the page you linked to. There you will find the instructions to check out the source code via Subversion. You may need to install Subversion on your Windows machine. On Sat, Feb 14, 2009 at 8:46 PM, tinyang tiny...@earthlink.net wrote: Hello. I'd like to check out the WebViewDemo source code from Google at the link below with Eclipse. Can anyone help me on how to do that? Googling has not helped me find instructions on how to do this. http://code.google.com/p/apps-for-android/source/browse/trunk/WebViewDemo/?r =58 I'm running Ganymede on Windows XP with SDK 1.0 r1. On another note, I was also wondering if there is any documentation for the WebViewDemo? Thanks! -- Faber Fedor Linux New Jersey http://linuxnj.com -- Faber Fedor Linux New Jersey http://linuxnj.com -- Faber Fedor Linux New Jersey http://linuxnj.com --~--~-~--~~~---~--~~ 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] Checkout source code
Hello. I'd like to check out the WebViewDemo source code from Google at the link below with Eclipse. Can anyone help me on how to do that? Googling has not helped me find instructions on how to do this. http://code.google.com/p/apps-for-android/source/browse/trunk/WebViewDemo/?r =58 I'm running Ganymede on Windows XP with SDK 1.0 r1. On another note, I was also wondering if there is any documentation for the WebViewDemo? 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: Checkout source code
Thanks for the quick reply. I did follow the instructions and my subversion client says the http://apps-for-android.googlecode.com/svn/trunk/ apps-for-android-read-only path doesn't exist. Does anyone know why this might be? _ From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Faber Fedor Sent: Saturday, February 14, 2009 7:57 PM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Checkout source code Click on the Source tag on the page you linked to. There you will find the instructions to check out the source code via Subversion. You may need to install Subversion on your Windows machine. On Sat, Feb 14, 2009 at 8:46 PM, tinyang tiny...@earthlink.net wrote: Hello. I'd like to check out the WebViewDemo source code from Google at the link below with Eclipse. Can anyone help me on how to do that? Googling has not helped me find instructions on how to do this. http://code.google.com/p/apps-for-android/source/browse/trunk/WebViewDemo/?r =58 I'm running Ganymede on Windows XP with SDK 1.0 r1. On another note, I was also wondering if there is any documentation for the WebViewDemo? Thanks! -- Faber Fedor Linux New Jersey http://linuxnj.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---