[android-beginners] Re: [Help] About URLConnection
Have u put use-permission code into Manifesto.xml ? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Setup Intent for viewing photo
I believe you need to put some code into Manifest.xml like uses-permission android:name=android.permission.READ_OWNER_DATA/uses-permission I'm not sure. ;;; --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Doubt in Andriods!
Hi all, There are many OS available in the market for Mobile devices eg: Winmobile ,Symbion,Mac OS,iPhone OS etc... My question is will Andriods Aupport all the OS ... Thanks in hope Regards, Jayakumar Natarajan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Doubt in Andriods!
Well, I think you have this idea wrong, Android is both a alliance of hardware manufacturers, carriers, and google, along with some other software companies I believe, as well as an OS into itself. So in a way, no. On Sep 25, 2:01 am, Jayakumar Natarajan [EMAIL PROTECTED] wrote: Hi all, There are many OS available in the market for Mobile devices eg: Winmobile ,Symbion,Mac OS,iPhone OS etc... My question is will Andriods Aupport all the OS ... Thanks in hope Regards, Jayakumar Natarajan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: : Help Needed
I think maybe he means between two Android phones On Sep 19, 2:14 am, Imran [EMAIL PROTECTED] wrote: Hi All...!!! Hey i want to write a application in which i can know the location of my friend when he is calling me and the distance between us To write this kind application do i require any other extra Configuration to be done (or) any extra plugins...( such as any kind server, (or) GPS settings... etc ) Thanks in Advance for any Replays Mohd Imran Budding Android Developer --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: [Help] About URLConnection
o ~~ I haven't ~~ now it works !! thx On Sep 25, 5:02 pm, 김병주 [EMAIL PROTECTED] wrote: Have u put use-permission code into Manifesto.xml ? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: HTTP
sarika india wrote: i am working on HTTP conntection for android, but i have not yet worked on HTTP connection code for any language, does anybody know how to do HTTP connection in android? Use URLConnection, or the Apache HTTPComponents (org.apache.http) built into Android. URLConnection is covered in many Java tutorials. HTTPComponents are documented on http://hc.apache.org. In particular, there are examples in the HTTPClient area: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Terminal Emulation
Matt wrote: I've searched all the SDK help pages the group messages, all I find about Telnet are posts about telnetting to the phone emulator. Anyone know if it's possible to use Telnet on Android? Depends. Do you know of a JAR that implements the Telnet protocol? I've seen SSH JARs, but I haven't ever looked for Telnet. I am not aware of Android containing a Telnet implementation natively. Specifically, I'd like to be able to open a Telnet session to an IBM AS/400 (or iSeries or IBMi or whatever they're calling them this month). Then I'd like to be able to show a 25x80 screen with some F- keys, Reset, Field Exit, etc around it. I just can't find any way to open the Telnet. It could be as simple as telnet://ip.address but that hasn't worked for me. Any help would be greatly appreciated. http://code.google.com/p/connectbot/ They appear to be aiming at SSH, but you might be able to join the project and add Telnet support. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: a Strange thing about List, array and ArrayAdapter
Lists.asList(String[]) creates a read-only List :( On Thu, Sep 25, 2008 at 4:14 AM, AndreAgosto [EMAIL PROTECTED] wrote: hi, why this code doesn't work? String[] cols = getResources().getStringArray(R.array.colors); ListString colsAsList = Arrays.asList(cols); Spinner s1 = (Spinner) findViewById(R.id.spinner_1); ArrayAdapterString ad = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, colsAsList ); ad.add(onother color); // !!! here a java.lang.UnsupportedOperationException threw s1.setAdapter(ad); If a build by myself the List, works fine, but with Arrays.asList doesn't work. -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: What is adb.exe?
That's the android debug bridge, a tool that deals with the emulator/ device. Android Debug Bridge http://code.google.com/android/reference/adb.html The ADT plugin provides a trasparent integration of adb into the Eclipse IDE. - Juan T. On Sep 24, 10:56 pm, planetshine [EMAIL PROTECTED] wrote: What is adb.exe and must it run in the background during development in Eclipse IDE? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] phone 2 phone game
I'm just getting interested in doing some Android development. But I tripped at the first hurdle. I'm used to doing nio socket comms in Java, and would like to do something similar between 2 phones for a simple game. I have a few requirements and not sure which API(s) would work best, or are suitable for what I'm trying to do? 1. I want the app to run in the background and auto-detect when another player(phone running same app) comes into range. BT? Wifi? Common server roundtripping with GPS location (yuk!) Something else I haven't thought of? 2. Once two phones have discovered each other, I want to start a TCP socket to socket comms session between the devices (it's fine, if not better, if the user has to confirm this connecion). ie 1 device will assume server role, and the other will be a connecting client. Possible? Supported? Any tips or pointers would be really appreciated. So far I'm only finding info relating to GTalk or XMPP (deprecated?). --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to create Custom Toast.
Group ! How to create Custom Toast. My code: Toast t = new Toast(this); t.setView(findViewById(R.layout.customtoast)); t.setDuration(1); t.show(); ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/customtoast android:text=This is a Custom Toast /TextView My application crashes all the time. What am I doing wrong? Logcate output: 09-25 17:45:51.633: INFO/ActivityManager(46): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.foxconn.Alert_Toast/com.foxconn.Alert_Toast.alert_toast} } 09-25 17:45:51.743: INFO/ActivityManager(46): Start proc com.foxconn.Alert_Toast for activity com.foxconn.Alert_Toast/.alert_toast: pid=9449 uid=10017 gids={} 09-25 17:45:51.793: INFO/jdwp(9449): received file descriptor 10 from ADB 09-25 17:45:52.103: INFO/ActivityManager(46): Displayed activity com.foxconn.Alert_Toast/.alert_toast: 470 ms 09-25 17:45:57.013: DEBUG/AndroidRuntime(9449): Shutting down VM 09-25 17:45:57.013: WARN/dalvikvm(9449): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 09-25 17:45:57.013: ERROR/AndroidRuntime(9449): Uncaught handler: thread main exiting due to uncaught exception 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): java.lang.RuntimeException: setView must have been called 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.widget.Toast.show(Toast.java:97) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.foxconn.Alert_Toast.alert_toast.onClick(alert_toast.java:55) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.performClick(View.java:2109) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.onTouchEvent(View.java:3523) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.widget.TextView.onTouchEvent(TextView.java:4410) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.dispatchTouchEvent(View.java:3178) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1085) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.os.Handler.dispatchMessage(Handler.java:88) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.os.Looper.loop(Looper.java:123) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.app.ActivityThread.main(ActivityThread.java:3742) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at java.lang.reflect.Method.invokeNative(Native Method) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at java.lang.reflect.Method.invoke(Method.java:515) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at dalvik.system.NativeStart.main(Native Method) 09-25 17:45:57.043: INFO/Process(46): Sending signal. PID: 9449 SIG: 3 09-25 17:45:57.063: INFO/dalvikvm(9449): threadid=7: reacting to signal 3 09-25 17:45:57.103: INFO/dalvikvm(9449): Wrote stack trace to '/data/ anr/traces.txt' 09-25 17:45:57.233: DEBUG/dalvikvm(91): GC freed 145 objects / 6624 bytes in 116ms 09-25 17:45:59.173: INFO/Process(9449): Sending signal. PID: 9449 SIG: 9 09-25 17:45:59.183: INFO/WindowManager(46): WIN DEATH: Window{434de030 com.foxconn.Alert_Toast/com.foxconn.Alert_Toast.alert_toast} 09-25 17:45:59.193: INFO/ActivityManager(46): Process com.foxconn.Alert_Toast (pid 9449) has died. --~--~-~--~~~---~--~~ 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,
[android-beginners] Re: Could Not Find HelloAndroid.apk!
This means that the .apk class is not being created which leads to a number of possible problems. Can you post any build errors? On Sep 24, 11:08 pm, Kevin M [EMAIL PROTECTED] wrote: I am getting this error when trying to run my programs... I see other threads about this but none have clear answers. I'm using Eclipse 3.4 on Ubuntu 8.04. Any info you need me to post I will be happy to supply. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Terminal Emulation
A terminal is essential!, it's hard to believe that a usable shell hasn't been released yet... I'm sure something good will come out. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ok the android developer challenger is over how can one still get into the android app market
ok the android developer challenger is over how can one still get into the android app market how the market place works --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Building HelloWorld App problem java.lang.OutOfMemoryError: Java heap
I could do so but it appears to be a problem with my SDK. I tried running Keytool on its own had the same error. C:\Users\Gavc:\Program Files\Java\jdk1.6.0_07\bin\keytool -genkey - alias and oiddebugkey -keyalg RSA -validity 365 -keypass android -keystore debug.keystore -storepass android What is your first and last name? [Unknown]: a What is the name of your organizational unit? [Unknown]: b What is the name of your organization? [Unknown]: c What is the name of your City or Locality? [Unknown]: d What is the name of your State or Province? [Unknown]: e What is the two-letter country code for this unit? [Unknown]: fs Is CN=a, OU=b, O=c, L=d, ST=e, C=fs correct? [no]: yes Exception in thread main java.lang.OutOfMemoryError: Java heap space at java.io.WinNTFileSystem.list(Native Method) at java.io.File.list(File.java:973) at sun.security.provider.SeedGenerator $1.run(SeedGenerator.java:166) at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.SeedGenerator.getSystemEntropy(SeedGenerator.j va:146) at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java 170) at java.security.SecureRandom.nextBytes(SecureRandom.java:433) at java.math.BigInteger.randomBits(BigInteger.java:475) at java.math.BigInteger.init(BigInteger.java:464) at java.math.BigInteger.largePrime(BigInteger.java:596) at java.math.BigInteger.probablePrime(BigInteger.java:538) at sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(RSAKeyPairGener tor.java:105) at java.security.KeyPairGenerator $Delegate.generateKeyPair(KeyPairGener tor.java:656) at sun.security.x509.CertAndKeyGen.generate(CertAndKeyGen.java: 131) at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1156) at sun.security.tools.KeyTool.doCommands(KeyTool.java:786) at sun.security.tools.KeyTool.run(KeyTool.java:172) at sun.security.tools.KeyTool.main(KeyTool.java:166) I have tried re-installs of jdk's 1.5 and 1.6 with the same error. I posted on the Sun forums but also have had no luck. On Sep 21, 1:42 pm, hongqing huang [EMAIL PROTECTED] wrote: Do you mind post you Code here?Or you tried to build the SDK's example named helloWorld ? 2008/9/19 Gav [EMAIL PROTECTED] Thanks for the reply. I am not sure I understand how this limit could affect the signing of my application. 1. The app I am building is a new android project(through eclispe). And is extremely small not above a 16m limit 2. The error occurs as I am building the project and not during the installation/running. In vain un-installed and re-installed all my the sdks, jres and eclipse with no success. Anyone have any other idea's to what might cause this? On Sep 18, 4:52 am, akin [EMAIL PROTECTED] wrote: hi, the Android use the MAX memory is 16m,so check your application and object if anything exceed this limit.Hope this may helpful. On 9月18日, 下午12时56分, Gav [EMAIL PROTECTED] wrote: Hello, I am using Vista with jdk 1.6.7 with Eclipse and ADT and am having the following error message when I try to build Android apps. It looks like the keytool is generating the following error. Any Ideas? [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: Exception in thread main java.lang.OutOfMemoryError: Java heap space [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.io.WinNTFileSystem.list(Native Method) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.io.File.list(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at sun.security.provider.SeedGenerator$1.run(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.security.AccessController.doPrivileged(Native Method) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.security.SecureRandom.nextBytes(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.math.BigInteger.randomBits(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.math.BigInteger.init(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.math.BigInteger.largePrime(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at java.math.BigInteger.probablePrime(Unknown Source) [2008-09-18 00:45:45 - HelloAndroid] Signing Key Creation: at sun.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
[android-beginners] Re: both sdks
Thanks! On Sep 23, 10:58 pm, Sudha [EMAIL PROTECTED] wrote: I am using eclipse 3.3 for older sdk and 3.4 for 0.9 in my case its working fine On Sep 23, 8:56 pm, steelerfan [EMAIL PROTECTED] wrote: Before I mess something uphave you done this or what makes you so sure. Its not possible that something in the Registry will be overwritten or elsewhere. i.e. Java libraries Thanks! On Sep 23, 7:02 am, Sudha [EMAIL PROTECTED] wrote: Yes..sure On Sep 23, 2:05 am, Greg Molnar [EMAIL PROTECTED] wrote: I have the previous version of the sdk installed. I would like to keep that and also install the new version. I want to be able to still use code created under the old version. Is that possible? Would it work if I installed eclipse again in a separate directory and then install the new sdk. Thanks, Greg- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android 1.0 SDK Released
Seems like the new version breaks the Eclipse plugin :( At least Eclipse wouldn't let me set the new directory as the SDK home. On Sep 23, 6:09 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: EditText multiline
how i can use EditText with multiline??? Put android:singleLine=false in your layout XML, or use the equivalent method on the EditText object. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Terminal Emulation
A terminal is essential!, it's hard to believe that a usable shell hasn't been released yet... I'm sure something good will come out. http://code.google.com/p/connectbot/ -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.2 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to create Custom Toast.
Never mind. I found my mistake. setView takes View not int. On Thu, Sep 25, 2008 at 1:46 PM, Dipen [EMAIL PROTECTED] wrote: Group ! How to create Custom Toast. My code: Toast t = new Toast(this); t.setView(findViewById(R.layout.customtoast)); t.setDuration(1); t.show(); ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/customtoast android:text=This is a Custom Toast /TextView My application crashes all the time. What am I doing wrong? Logcate output: 09-25 17:45:51.633: INFO/ActivityManager(46): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x1020 comp={com.foxconn.Alert_Toast/com.foxconn.Alert_Toast.alert_toast} } 09-25 17:45:51.743: INFO/ActivityManager(46): Start proc com.foxconn.Alert_Toast for activity com.foxconn.Alert_Toast/.alert_toast: pid=9449 uid=10017 gids={} 09-25 17:45:51.793: INFO/jdwp(9449): received file descriptor 10 from ADB 09-25 17:45:52.103: INFO/ActivityManager(46): Displayed activity com.foxconn.Alert_Toast/.alert_toast: 470 ms 09-25 17:45:57.013: DEBUG/AndroidRuntime(9449): Shutting down VM 09-25 17:45:57.013: WARN/dalvikvm(9449): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 09-25 17:45:57.013: ERROR/AndroidRuntime(9449): Uncaught handler: thread main exiting due to uncaught exception 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): java.lang.RuntimeException: setView must have been called 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.widget.Toast.show(Toast.java:97) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.foxconn.Alert_Toast.alert_toast.onClick(alert_toast.java:55) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.performClick(View.java:2109) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.onTouchEvent(View.java:3523) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.widget.TextView.onTouchEvent(TextView.java:4410) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.View.dispatchTouchEvent(View.java:3178) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1085) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.os.Handler.dispatchMessage(Handler.java:88) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.os.Looper.loop(Looper.java:123) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at android.app.ActivityThread.main(ActivityThread.java:3742) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at java.lang.reflect.Method.invokeNative(Native Method) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at java.lang.reflect.Method.invoke(Method.java:515) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 09-25 17:45:57.033: ERROR/AndroidRuntime(9449): at dalvik.system.NativeStart.main(Native Method) 09-25 17:45:57.043: INFO/Process(46): Sending signal. PID: 9449 SIG: 3 09-25 17:45:57.063: INFO/dalvikvm(9449): threadid=7: reacting to signal 3 09-25 17:45:57.103: INFO/dalvikvm(9449): Wrote stack trace to '/data/ anr/traces.txt' 09-25 17:45:57.233: DEBUG/dalvikvm(91): GC freed 145 objects / 6624 bytes in 116ms 09-25 17:45:59.173: INFO/Process(9449): Sending signal. PID: 9449 SIG: 9 09-25 17:45:59.183: INFO/WindowManager(46): WIN DEATH: Window{434de030 com.foxconn.Alert_Toast/com.foxconn.Alert_Toast.alert_toast} 09-25 17:45:59.193: INFO/ActivityManager(46): Process com.foxconn.Alert_Toast (pid 9449) has died.
[android-beginners] Re: Android 1.0 SDK Released
You need the new plugin (0.8.0) to go with the new SDK. The older plugin (0.7.1) only works with the 0.9 SDK. Xav On Thu, Sep 25, 2008 at 11:01 AM, Mitechka [EMAIL PROTECTED] wrote: Seems like the new version breaks the Eclipse plugin :( At least Eclipse wouldn't let me set the new directory as the SDK home. On Sep 23, 6:09 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] is gps raw observables available?
Hi, It seems Android SDK provides only the position fix from GPS instead of the raw GPS observables (distance from the receiver to GPS satellites)? If I am wrong, how can I get these info? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: a Strange thing about List, array and ArrayAdapter
oh, i didn't know it, :( Thank you! On Sep 25, 11:32 am, Romain Guy [EMAIL PROTECTED] wrote: Lists.asList(String[]) creates a read-only List :( On Thu, Sep 25, 2008 at 4:14 AM, AndreAgosto [EMAIL PROTECTED] wrote: hi, why this code doesn't work? String[] cols = getResources().getStringArray(R.array.colors); ListString colsAsList = Arrays.asList(cols); Spinner s1 = (Spinner) findViewById(R.id.spinner_1); ArrayAdapterString ad = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, colsAsList ); ad.add(onother color); // !!! here a java.lang.UnsupportedOperationException threw s1.setAdapter(ad); If a build by myself the List, works fine, but with Arrays.asList doesn't work. -- Romain Guywww.curious-creature.orgh --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Android 1.0 SDK Released
Seems like the new version breaks the Eclipse plugin :( At least Eclipse wouldn't let me set the new directory as the SDK home. On Thu, Sep 25, 2008 at 5:24 PM, Dmitriy Kropivnitskiy [EMAIL PROTECTED] wrote: Fixed with the new version of the plugin. For some reason it wouldn't update, I had to uninstall and reinstall both Android plugins. On Thu, Sep 25, 2008 at 2:01 PM, Mitechka [EMAIL PROTECTED] wrote: Seems like the new version breaks the Eclipse plugin :( At least Eclipse wouldn't let me set the new directory as the SDK home. On Sep 23, 6:09 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Could Not Find HelloAndroid.apk!
[2008-09-25 17:17:21 - HelloAndroid] Android Launch! [2008-09-25 17:17:21 - HelloAndroid] adb is running normally. [2008-09-25 17:17:21 - HelloAndroid] Could not find HelloAndroid.apk! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---