[android-beginners] intercepting email
Hi frndz How can we intercept incoming and outgoing email in Android?is it possible? Thanx in Advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: intercepting email
How can we intercept incoming and outgoing email in Android?is it possible? You cannot intercept email for either of the built-in email clients. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: intercepting email
Intercepting the actions in the mail client apps, no. But you could use SMTP to periodically query a remote mailbox from a service, and trigger an intent from there. I haven't checked yet, but if it is possible to observe when a particular app/activity starts (in this case the mail client), you could suspend the polling until the mail client app is running, and save battery life. Just an idea. On Sep 25, 2009 7:16 AM, Nemat nemate...@gmail.com wrote: Hi frndz How can we intercept incoming and outgoing email in Android?is it possible? Thanx in Advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] intercepting email
Hi. is it possible to intercept incoming and outgoing emails ,sms and calls in Android? if yes,How can we do this? Thanks in Advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Focus android widget.
Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I make change in Launcher.java or workspace.java??? -- Regards, Manjunatha --~--~-~--~~~---~--~~ 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: Focus android widget.
No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I make change in Launcher.java or workspace.java??? -- Regards, Manjunatha --~--~-~--~~~---~--~~ 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: HELP
cleare me .just user enter the value in first field n calculate calculation create four diff values n juss put one by one in rest of the edit field is it so or anything else? On Fri, Sep 25, 2009 at 4:12 AM, Rc3375 rcobb3...@gmail.com wrote: this is the problem: there are 5 EDITTEXT boxes. the value that the user enters into FIELD1 needs to be retrieved in to a variable called FIELD1_RETRIEVED. if the user enters 135.98, that number is used in the calculation process. once FIELD1 is entered, the CALCULATE button is pressed. WHATEVER those value might be the remaining fields(FIELD2, FIELD3, FIELD4 AND FIELD5) need to take on those values. all the R.id.FIELDX are an INTEGER. so how to do this is getting abit overwhelming, i realize that it isn't all that hard to do, but at this time, very frustrating. anyone who could lend so code samples of how to read what a value is, and put a result into a EDITTEXT field would be appreciated. thanks to all, rc3375 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Focus android widget.
should i make the layout of the widget as focusable? or is there any other way to do that?? On Fri, Sep 25, 2009 at 12:38 PM, Romain Guy romain...@google.com wrote: No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I make change in Launcher.java or workspace.java??? -- Regards, Manjunatha -- Regards, Manjunatha --~--~-~--~~~---~--~~ 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: bring up display setting in my activity
I want to adjust display settings in my activity. Intent intent=new Intent(Settings.ACTION_DISPLAY_SETTINGS); startActivity(intent); got exception: 09-24 21:24:35.901: ERROR/AndroidRuntime(5892): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.settings.DISPLAY_SETTINGS } Per the docs: In some cases, a matching Activity may not exist, so ensure you safeguard against this. You can use methods on PackageManager to try to determine if there is an activity that will respond to your Intent, in case you want to conditionally disable launching that Intent or something. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Something like onEmailReceived?
why dont you just start a activity in broadcast receiver?like sms received proadcast receiver starts after that before finishing just start a new activity in receiver! On Thu, Sep 24, 2009 at 4:42 PM, Yaiza Temprado yaiza.tempr...@gmail.comwrote: Hello all, I'm trying to program an application which performs some actions each time an email is received, but I haven't been able to find how to handle this kind of events (receiving a sms, mms, emails, etc). Any idea? Thank you very much in advance, Yaiza. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Java heap outofmemory during dex
Hi all, I've solve this problem. Since there's someone have ask this question before here. To solve it, just modify dx.bat set the java heap upper, that's ok. On 9月25日, 上午11时31分, whitech whit...@163.com wrote: Hi all, I've met this problem: When using ant to package my program, at the dex step, it crash as below: dex: [echo] Converting compiled files and external libraries into release/classes.dex... [apply] UNEXPECTED TOP-LEVEL ERROR: [apply] java.lang.OutOfMemoryError: Java heap space [apply]at java.util.Arrays.copyOf(Unknown Source) [apply]at java.util.Arrays.copyOf(Unknown Source) [apply]at java.util.ArrayList.ensureCapacity(Unknown Source) [apply]at java.util.ArrayList.add(Unknown Source) [apply]at com.android.dx.ssa.SCCP.addUsersToWorklist (SCCP.java: 106) [apply]at com.android.dx.ssa.SCCP.simulatePhi(SCCP.java:188) [apply]at com.android.dx.ssa.SCCP.simulateBlock(SCCP.java: 199) [apply]at com.android.dx.ssa.SCCP.run(SCCP.java:402) [apply]at com.android.dx.ssa.SCCP.process(SCCP.java:84) [apply]at com.android.dx.ssa.Optimizer.runSsaFormSteps (Optimizer.java:161) [apply]at com.android.dx.ssa.Optimizer.optimize (Optimizer.java: 101) [apply]at com.android.dx.ssa.Optimizer.optimize (Optimizer.java: 74) [apply]at com.android.dx.dex.cf.CfTranslator.processMethods (CfTranslator.java:269) [apply]at com.android.dx.dex.cf.CfTranslator.translate0 (CfTranslator.java:131) [apply]at com.android.dx.dex.cf.CfTranslator.translate (CfTranslator.java:85) [apply]at com.android.dx.command.dexer.Main.processClass (Main.java:297) [apply]at com.android.dx.command.dexer.Main.processFileBytes (Main.java:276) [apply]at com.android.dx.command.dexer.Main.access$100 (Main.java: 56) [apply]at com.android.dx.command.dexer.Main$1.processFileBytes (Main.java:228) [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne (ClassPathOpener.java:134) [apply]at com.android.dx.cf.direct.ClassPathOpener.processDirectory (ClassPathOpener.java:190) [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne (ClassPathOpener.java:122) [apply]at com.android.dx.cf.direct.ClassPathOpener.processDirectory (ClassPathOpener.java:190) [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne (ClassPathOpener.java:122) [apply]at com.android.dx.cf.direct.ClassPathOpener.processDirectory (ClassPathOpener.java:190) [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne (ClassPathOpener.java:122) [apply]at com.android.dx.cf.direct.ClassPathOpener.processDirectory (ClassPathOpener.java:190) [apply]at com.android.dx.cf.direct.ClassPathOpener.processOne (ClassPathOpener.java:122) [apply]at com.android.dx.cf.direct.ClassPathOpener.process (ClassPathOpener.java:108) [apply]at com.android.dx.command.dexer.Main.processOne (Main.java: 245) [apply]at com.android.dx.command.dexer.Main.processAllFiles (Main.java:183) [apply]at com.android.dx.command.dexer.Main.run(Main.java: 139) BUILD FAILED F:\build.xml:30: The following error occurred while executing this line: F:\\android_build.xml:185: apply returned: 3 I'm wondering if the heap of packaging is too small? My program (in .class files) totally about 1m (and use about 1.7m) space. How much is the biggest size of program? Thanks very much --~--~-~--~~~---~--~~ 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: Focus android widget.
Hi Romain, I tried with the following xml. ?xml version=1.0 encoding=utf-8? appwidget-provider xmlns:android= http://schemas.android.com/apk/res/android; android:minWidth=146dp android:minHeight=146dp android:focusable=true android:updatePeriodMillis=8640 android:initialLayout=@layout/widget_new / But no luck.. Could you please help me on this?? On Fri, Sep 25, 2009 at 12:38 PM, Romain Guy romain...@google.com wrote: No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I make change in Launcher.java or workspace.java??? -- Regards, Manjunatha -- Regards, Manjunatha --~--~-~--~~~---~--~~ 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] A problem on displaying Hello Android -application
I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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: A problem on displaying Hello Android -application
It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko matikkaja...@netti.fi wrote: I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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: A problem on displaying Hello Android -application
I found on Settings-Applications-Manage applications-Hello that it is installed on emulator. There is also a button Force stop so it looks like the application is running. However, I can't see the greeting text anywhere. On Sep 25, 1:00 pm, Jaakko matikkaja...@netti.fi wrote: It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko matikkaja...@netti.fi wrote: I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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: A problem on displaying Hello Android -application
so must be fault in your activity you have created in code! just you want to check hows greeting sceen try to just create new project in android project run it with avd.you cna find then chage the text in string for hello world On Fri, Sep 25, 2009 at 3:53 PM, Jaakko matikkaja...@netti.fi wrote: I found on Settings-Applications-Manage applications-Hello that it is installed on emulator. There is also a button Force stop so it looks like the application is running. However, I can't see the greeting text anywhere. On Sep 25, 1:00 pm, Jaakko matikkaja...@netti.fi wrote: It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko matikkaja...@netti.fi wrote: I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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: Strange message during opening stream at InputSource
up On Sep 24, 10:22 am, kiro cih.exe...@gmail.com wrote: -(new InputSource(url.toString)); was with another message InputSource needs either stream or reader On Sep 24, 10:09 am, kiro cih.exe...@gmail.com wrote: Hi! i'm trying to execute next code: [code] //URL url comming from input Document doc; DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); doc = docBuilder.parse(new InputSource(url.openStream())); [/code] and have an exception with message : Permission denied (maybe missed INTERNET permission) As i understand, android doesn't give access to Internet for my app? or something else i must know? note : -android emulator have connection to internet (tested at browser) -(new InputSource(url.toString)); was with another message, but under win-console-compilation it 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 android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: A problem on displaying Hello Android -application
I don't know what is wrong with activity-part of my code. How can I run my code with avd? I run my program by choosing option Android Application as there is no possibility to choose avd. package org.qwerty.com; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld 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); } } On Sep 25, 1:27 pm, kapnk...@gmail.com wrote: so must be fault in your activity you have created in code! just you want to check hows greeting sceen try to just create new project in android project run it with avd.you cna find then chage the text in string for hello world On Fri, Sep 25, 2009 at 3:53 PM, Jaakko matikkaja...@netti.fi wrote: I found on Settings-Applications-Manage applications-Hello that it is installed on emulator. There is also a button Force stop so it looks like the application is running. However, I can't see the greeting text anywhere. On Sep 25, 1:00 pm, Jaakko matikkaja...@netti.fi wrote: It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko matikkaja...@netti.fi wrote: I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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: A problem on displaying Hello Android -application
your emulator is launching means avd is all ready there.just create new AVD.from windows Android AVD manager.create new avd .then right click on your application run configuaration.your select your new avd run it. On Fri, Sep 25, 2009 at 5:05 PM, Jaakko matikkaja...@netti.fi wrote: I don't know what is wrong with activity-part of my code. How can I run my code with avd? I run my program by choosing option Android Application as there is no possibility to choose avd. package org.qwerty.com; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld 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); } } On Sep 25, 1:27 pm, kapnk...@gmail.com wrote: so must be fault in your activity you have created in code! just you want to check hows greeting sceen try to just create new project in android project run it with avd.you cna find then chage the text in string for hello world On Fri, Sep 25, 2009 at 3:53 PM, Jaakko matikkaja...@netti.fi wrote: I found on Settings-Applications-Manage applications-Hello that it is installed on emulator. There is also a button Force stop so it looks like the application is running. However, I can't see the greeting text anywhere. On Sep 25, 1:00 pm, Jaakko matikkaja...@netti.fi wrote: It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko matikkaja...@netti.fi wrote: I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open the screen as I get only an emulator where the hello message is not printed. I tried to click the button on the bottom of the screen to see all applications. There are 16 applications from Alarm Clock to Spare Parts but no application Test. Can anyone explain how can I see the Hello, Android-window? versions: Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832 Java-1.5.0-sun-1.5.0.19 Linux version 2.6.28-15-generic (bui...@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 --~--~-~--~~~---~--~~ 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] is it possible to receive incoming call automatically?
Hi frnds is it possible in Android If call is received from user defined number, it should be picked up automatically with no sign and speaker should be turned on. Its history must be deleted. need urgent help Thanks in advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: No classfiles specified on even hello after installing SDK 1.5
So it seems the problem is Eclipse caching old data. Starting Eclipse with the -clean option solves this. Also eventually it will happen by itself which would explain the other posters reports that it just started working or started working after restarting Eclipse enough times. See: http://www.filsa.net/2009/06/13/re-conversion-to-dalvik-format-failed-with-error-1/ Google should post this information with the updating Android help. --~--~-~--~~~---~--~~ 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] Solved: conversion to dalvik format failed with error 1
So it seems the problem is Eclipse caching old data. Starting Eclipse with the -clean option solves this. Also eventually it will happen by itself -- which would explain the other posters reports that it just started working or started working after restarting Eclipse enough times. See: http://www.filsa.net/2009/06/13/re-conversion-to-dalvik-format-failed... Google should post this information with the updating Android help. --~--~-~--~~~---~--~~ 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] HorizontalScrollView snap to page?
Is there a way to make a HorizontalScrollView snap to a page? Let's say I have a hsv with an overall width of 800 but only 200 viewable. I'd like to have the scroll position snap every 200 pixels so that the resting position is always 200 offset from the origin (thus always displaying a full page). Is there an easy way to do this or do I have to somehow override the gesture interactions? --~--~-~--~~~---~--~~ 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: Can we take pictures without setting a camera preview?
After some more tests, I can call the takePicture method without firing an exception. I don't call the startPreview method before taking the picture. All pictures taken with this method are black, though. Any ideas? On 22 sep, 16:08, Romain Vallet romain.val...@gmail.com wrote: Hi, I'm writing a program that needs to take pictures with the camera, but I don't need a preview. Everything I tried without setting a preview display ended in errors of the type Unable to create media player. Do the camera really need a preview display or is there a way to take pictures without one? Thanks, Romain. --~--~-~--~~~---~--~~ 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: Unable to stop Emulator from commandline in linux
Fedora 9 is already a rather dated version of Fedora, too. Fedora 11 is much more stable. BTW: did you remember to give yourself superuser privileges before the 'kill 9'? You should, for example, if the PID of the emulator process were 3155, issue, su -c 'kill -9 3155'. This assumes, of course, that you started the emulator in the background, e.g, emulator ... . Otherwise ^C should have done the trick. On Sep 24, 7:01 am, Sean Hodges seanhodge...@googlemail.com wrote: On Thu, Sep 24, 2009 at 2:40 PM, Smruti smruti...@gmail.com wrote: [r...@localhost tools]# emulator -avd test_avd unknown option: -avd Android Emulator usage: emulator [options] [-qemu args] options: -system dir read system image from dir -datadir dir write user data into dir Hi Smruti, Your problem may be related to the audio functionality in the emulator:http://www.mail-archive.com/android-beginners@googlegroups.com/msg096 Although this person was able to kill -9 his emulator. Still, it might be different symptoms for the same bug... Is there a particular reason why you're using such an outdated version of the SDK? I'm a tad suspicious of the reliability running a 1.5 AVD against a 1.1 emulator, it might be fine, but if you're having problems it might be worth downloading the latest SDK to eliminate the possibility of compatibility problems. Sean --~--~-~--~~~---~--~~ 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] Handling focus in ExpandableListView
Hi there, I have been tinkering with the ExpandableListView and would like to tweak its behaviour a little bit. Right now you can navigate through the expandable list and when you select an entry (group) it will expand and display its children. However, I would like to expand the group automatically as soon as the group receives the focus (almost like a fisheye list). I managed to overwrite onGroupExpand(int groupPosition) to close all other entries before expanding the selected group. But I cannot find any way to install any focus listeners which gets notified when a group receives focus... Does anyone know how to do this? Regards, Brian --~--~-~--~~~---~--~~ 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: Unable to add Android Plugin to Eclipse-Ganymede 3.4.1
I had the same problem. I could install the plugins but they were not showing up on my Preferences screen. Under my workspace\.metadata directory there was a log file with the same messages you posted earlier. The problem was that I didn't have the Web Developer Tools installed. I installed them from the /release/ganymede site and now I see Android on the Preference screen as well as the project menu, etc. If you do have them installed, maybe an update can help. On Sep 22, 11:38 pm, srinivas srinivas.kotemche...@gmail.com wrote: Hi, I got the similar problem then shifted to Ganymede. Regards Srinivas On Sep 23, 2:14 am, er...@motorola.com ehclonin...@gmail.com wrote: What happens when you use Galileo? -E- 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 android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Cant install ADT plugin for Eclipse
On 2 different machines (with clean galileo installs) the ADT plugin fails to load both remotely and trying to import from the zip archive. The error is as follows: An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ Can anybody point in the right direction? Thanks Stephen --~--~-~--~~~---~--~~ 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 send JSONObject by HttpPost?
I need to send http request with the following view: POST /device/api/login HTTP/1.1 Content-Type: text/json {login:LOGIN,password:PASSWORD} [my code] DefaultHttpClient hClient = new DefaultHttpClient(); HttpPost post = new HttpPost(host + /device/api/login); post.setHeader(Content-Type, text/json); JSONObject jo = new JSONObject(); jo.put(login, login); jo.put(password, password); String joSt = jo.toString(); BasicHttpEntity be = new BasicHttpEntity(); byte bytes[] = joSt.getBytes(); be.setContent(new ByteArrayInputStream(bytes)); post.setEntity(be); HttpResponse response = hClient.execute(post); hClient.getConnectionManager().shutdown(); [/my code] It doesn't work. Could you help me to figure out what's wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ADT plugin for eclipse
I am using Eclipse 3.4 on Windows XP. I downloaded and installed the Android SDK, version 1.6, in accordance with the instructions at http://developer.android.com/sdk/1.6_r1/installing.html. I also installed the Android Developer Tools and Android DDMS plugins. However, when I restart Eclipse to set the Android preferences, no entry for Android appears on the left panel of the screen. Also, I don't see any menu items for Android at all in the work bench of Eclipse. How do I know if my plugin installation succeeded correctly? I see both the development tools and ddms listed under installed applications. Does this mean they installed correctly or are there other indicators? --~--~-~--~~~---~--~~ 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] Question about GoogleSearch.apk and android.process.acore
Hi all, I want to test which packages(packages/apps/) are necessary to run Android on the emulator. I just try to remove GoogleSearch.apk, but the emulator shows The process android.process.acore has stopped unexpectedly. Please try again. I look at the AndroidManifest.xml file and see manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.googlesearch android:sharedUserId=android.uid.shared application android:process=android.process.acore It seems this process is not started by GoogleSearch.apk. I see from the Dev Guide that By default, Android creates a process for an application when the first of its components needs to run. All components then run in that process. The name of the default process matches the package name set by the manifest element. So, I wonder who starts this process and why this process stops only due to GoogleSearch.apk? Thanks for your help. Best wishes, Caixia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: is it possible to receive incoming call automatically?
Intercepting an incoming call is not supported officially from the SDK, which does not mean that folks are not using hacks to do just the same, as many apps on the market will show you. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 25, 5:25 am, Nemat nemate...@gmail.com wrote: Hi frnds is it possible in Android If call is received from user defined number, it should be picked up automatically with no sign and speaker should be turned on. Its history must be deleted. need urgent help Thanks in advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: java.util.prefs.Preferences doesn't work on device?
There is also android.content.SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 24, 2:35 pm, leden leden...@gmail.com wrote: Hi! My simple app needs to permanantly save its state before being destroyed. I use something like this: private static final Preferences prefs = Preferences.userNodeForPackage (WordChoice.class); Now it seems that after experimenting a while on my g1 device, it seems that preferences are sometimes cleared when the application stops, from my experience this happens at random and there is a roughly a 50% chance that preferences will be cleared. This does not happen in the emulator, and certainly should not in the Java world as far as I know since preferences are permanent type of storing data. Is there a way to use java.util.prefs.Preferences on Android platform without risking clearing the prefs every time the app is stopped? I don't want to use a file or database. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to send JSONObject by HttpPost?
Enjoy URL url = new URL(serverURL); // open the conncetion HttpURLConnection connection = (HttpURLConnection)url.openConnection(); // Let the run-time system (RTS) know that we want input. connection.setDoInput(true); // Let the RTS know that we want to do output connection.setDoOutput(true); // No caching, we want the real thing connection.setUseCaches(false); // set the content type property connection.setRequestProperty(Content-type,strContenttype); // set request method connection.setRequestMethod(POST); // create the post body to send String content = credDevPair.toString(); Log.i(Request ... ,content); DataOutputStream printout = new DataOutputStream ( connection.getOutputStream () ); // send the data printout.writeBytes(content); printout.flush(); printout.close(); String output = convertStreamToString(connection.getInputStream()); Log.i(Response 1... ,output); // A Simple JSONObject Creation JSONObject json=new JSONObject(output); Log.i(Praeda,jsonobject\n+json.toString()+\n/jsonobject); // A Simple JSONObject Parsing JSONArray nameArray=json.names(); JSONArray valArray=json.toJSONArray(nameArray); for(int i=0; ivalArray.length() ;i++) { Log.i(Praeda,jsonname+i+\n+nameArray.getString(i)+\n/jsonname+i+\n +jsonvalue+i+\n+valArray.getString(i)+\n/jsonvalue+i+); } //BufferedReader input = new BufferedReader ( new InputStreamReader(connection.getInputStream()) ); }catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); }catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }catch(Exception ex) { } } private static String convertStreamToString(InputStream is) { /* * To convert the InputStream to String we use the BufferedReader.readLine() * method. We iterate until the BufferedReader return null which means * there's no more data to read. Each line will appended to a StringBuilder * and returned as String. */ BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; try { while ((line = reader.readLine()) != null) { sb.append(line + \n); } } catch (IOException e) { e.printStackTrace(); } finally { try { is.close(); } catch (IOException e) { e.printStackTrace(); } } return sb.toString(); } Please put in the requred content type, server url.. Thanks, Alok On Fri, Sep 25, 2009 at 2:01 AM, veen veensmail...@gmail.com wrote: I need to send http request with the following view: POST /device/api/login HTTP/1.1 Content-Type: text/json {login:LOGIN,password:PASSWORD} [my code] DefaultHttpClient hClient = new DefaultHttpClient(); HttpPost post = new HttpPost(host + /device/api/login); post.setHeader(Content-Type, text/json); JSONObject jo = new JSONObject(); jo.put(login, login); jo.put(password, password); String joSt = jo.toString(); BasicHttpEntity be = new BasicHttpEntity(); byte bytes[] = joSt.getBytes(); be.setContent(new ByteArrayInputStream(bytes)); post.setEntity(be); HttpResponse response = hClient.execute(post); hClient.getConnectionManager().shutdown(); [/my code] It doesn't work. Could you help me to figure out what's wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Accessing SharedPreferences from Services and non-Activities
The app context object is not available in the constructor. Try moving that code in the onbind or onStart callback methods. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 23, 7:49 pm, brooke brooke.ma...@gmail.com wrote: I have some shared preferences (user_id, email) that I want to access from services and classes that are not subclassed from Activity. I have been trying to implement this today and keep hitting roadblocks. In particular, when I try to access getSharedPreferences, I get a null pointer exception. My code snippet is posted below. My goal here is to allow read access the shared preferences to objects and (potentially) services that aren't going to be directly exposed to the user. Any suggestions/examples that can help me along? Many thanks, Brooke snip public class MyPrefs extends Service { public static final String PREFS_NAME = MyPrefs; private int user_id; private String user_email; private String user_password; private Editor editor = null; private SharedPreferences settings = null; public MyPrefs () { settings = this.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); } /snip the this.getSharedPreferences line causes a null pointer exception. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ImageView.VISIBLE/INVISIBLE
I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ 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] declaring a service
hello, I am trying to run service example. I declare a service in a project and want to call the service from an activity that exists in another project. in first project, my AndroidManifest.xml looks like this manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.mypackage.service_server application service android:exported=true android:name=.CalculatorService / /application /manifest the CalculatorService class extends the Service class and its onBind method looks like this public IBinder onBind(Intent intent) { if(calculator == null) { calculator = new CalculatorImpl(); } return calculator; } The CalculatorImpl class extends Calculator.Stub class and Calculator.java is generated from Calculator.aidl. in the other project, in the activity onCreate there is a code like this Intent intent = new Intent(Calculator.class.getName()); boolean connected = bindService(intent, connection, BIND_AUTO_CREATE); the method bindService returns false. what is missing in my both projects? note: the Calculator.java file is shared between both projects by a symlink. thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: ImageView.VISIBLE/INVISIBLE
I've got a example with a TextView and EditView where I do this successfully. See http://developer.android.com/reference/android/view/View.html#setVisibility(int)that is where View.VISIBLE is defined. Just noticed View.GONE. that could be helpful. Define TextView and EditText: TextView adminLabel; EditText admin; Assign from Layout: adminLabel = (TextView)findViewById(R.id.AdminLabel); admin = (EditText)findViewById(R.id.Admin); Set to invisible: admin.setVisibility(View.INVISIBLE); adminLabel.setVisibility(View.INVISIBLE); Set to visible: admin.setVisibility(View.VISIBLE); adminLabel.setVisibility(View.VISIBLE); -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Fri, Sep 25, 2009 at 3:49 PM, Kingcrowley kingcrow...@gmail.com wrote: I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ 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: ImageView.VISIBLE/INVISIBLE
I always use VIEW.invisible or VIEW.visible or VIEW.gone (rather than ImageView.invisible etc.) and that works for me in any method other than onCreate where I've tried it.. On Sep 25, 12:49 pm, Kingcrowley kingcrow...@gmail.com wrote: I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ 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: Cant install ADT plugin for Eclipse
Install the Classic version. We are investigating what is going on, but it looks like a problem on Eclipse's update sites. Xav On Thu, Sep 24, 2009 at 8:43 PM, Stephen slubow...@gmail.com wrote: On 2 different machines (with clean galileo installs) the ADT plugin fails to load both remotely and trying to import from the zip archive. The error is as follows: An error occurred while collecting items to be installed session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,org.eclipse.ant.ui, 3.4.1.v20090901_r351 No repository found containing: osgi.bundle,org.eclipse.cvs, 1.0.300.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt, 3.5.1.v200909170800 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.core, 3.3.201.R35x_v20090818-0235 No repository found containing: osgi.bundle,org.eclipse.jdt.apt.pluggable.core, 1.0.201.R35x_v20090818-0225 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.apt,1.0.201.R35x_v20090825-1530 No repository found containing: osgi.bundle,org.eclipse.jdt.compiler.tool,1.0.100.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.core, 3.5.1.v_972_R35x No repository found containing: osgi.bundle,org.eclipse.jdt.debug.ui, 3.4.1.v20090811_r351 No repository found containing: osgi.bundle,org.eclipse.jdt.doc.user, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.junit, 3.5.1.r351_v20090708-0800 No repository found containing: osgi.bundle,org.eclipse.jdt.ui, 3.5.1.r351_v20090821-0800 No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui, 3.3.201.R35x_v20090826-0905 No repository found containing: osgi.bundle,org.eclipse.ui.views.log, 1.0.100.v20090731 No repository found containing: osgi.bundle,org.junit4,4.5.0.v20090824 No repository found containing: org.eclipse.update.feature,org.eclipse.cvs, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: binary,org.eclipse.cvs_root, 1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16 No repository found containing: org.eclipse.update.feature,org.eclipse.jdt, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ No repository found containing: binary,org.eclipse.jdt_root, 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ Can anybody point in the right direction? Thanks Stephen -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ 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: ADT plugin for eclipse
When you try to create a project you should be able to see Android as a new option. -- 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 24, 11:46 am, John Douma douma.j...@gmail.com wrote: I am using Eclipse 3.4 on Windows XP. I downloaded and installed the Android SDK, version 1.6, in accordance with the instructions athttp://developer.android.com/sdk/1.6_r1/installing.html. I also installed the Android Developer Tools and Android DDMS plugins. However, when I restart Eclipse to set the Android preferences, no entry for Android appears on the left panel of the screen. Also, I don't see any menu items for Android at all in the work bench of Eclipse. How do I know if my plugin installation succeeded correctly? I see both the development tools and ddms listed under installed applications. Does this mean they installed correctly or are there other indicators? --~--~-~--~~~---~--~~ 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: ImageView.VISIBLE/INVISIBLE
HI, my code seems similar to yours..but doesn't work..could you copy/paste in yours if it isn't too long? Thanks a lot David On Sep 25, 9:01 pm, Carmen Delessio carmendeles...@gmail.com wrote: I've got a example with a TextView and EditView where I do this successfully. Seehttp://developer.android.com/reference/android/view/View.html#setVisi... is where View.VISIBLE is defined. Just noticed View.GONE. that could be helpful. Define TextView and EditText: TextView adminLabel; EditText admin; Assign from Layout: adminLabel = (TextView)findViewById(R.id.AdminLabel); admin = (EditText)findViewById(R.id.Admin); Set to invisible: admin.setVisibility(View.INVISIBLE); adminLabel.setVisibility(View.INVISIBLE); Set to visible: admin.setVisibility(View.VISIBLE); adminLabel.setVisibility(View.VISIBLE); -- Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhttp://www.facebook.com/BFFPhotohttp://www.twitter.com/DroidDrop On Fri, Sep 25, 2009 at 3:49 PM, Kingcrowley kingcrow...@gmail.com wrote: I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ 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: ImageView.VISIBLE/INVISIBLE
The snippets were taken from my code. I can't post the whole thing. Are you using View.INVISIBLE and View.VISIBLE as the parameter to setVisibility? -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop On Fri, Sep 25, 2009 at 5:30 PM, Kingcrowley kingcrow...@gmail.com wrote: HI, my code seems similar to yours..but doesn't work..could you copy/paste in yours if it isn't too long? Thanks a lot David On Sep 25, 9:01 pm, Carmen Delessio carmendeles...@gmail.com wrote: I've got a example with a TextView and EditView where I do this successfully. Seehttp:// developer.android.com/reference/android/view/View.html#setVisi... is where View.VISIBLE is defined. Just noticed View.GONE. that could be helpful. Define TextView and EditText: TextView adminLabel; EditText admin; Assign from Layout: adminLabel = (TextView)findViewById(R.id.AdminLabel); admin = (EditText)findViewById(R.id.Admin); Set to invisible: admin.setVisibility(View.INVISIBLE); adminLabel.setVisibility(View.INVISIBLE); Set to visible: admin.setVisibility(View.VISIBLE); adminLabel.setVisibility(View.VISIBLE); -- Carmenhttp:// www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhttp://www.facebook.com/BFFPhotohttp://www.twitter.com/DroidDrop On Fri, Sep 25, 2009 at 3:49 PM, Kingcrowley kingcrow...@gmail.com wrote: I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ 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] remote app commands sent via http
I'm developing a remote app that sends commands via http. Normally I type in a link in a browser and the command will work. With Android, I would like it to work with a press of a button. I tried the following code and it didn’t work: URL url = new URL(urlString); URLConnection connection = url.openConnection(); connection.setDoOutput(true); OutputStreamWriter out = new OutputStreamWriter (connection.getOutputStream()); out.write(urlString); out.close(); urlstring is the http command link. Any ideas? Am I on the wrong track? I'm confused because technically I don't need to write anything to the link. I would think it would work if I just open the connection. 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: Empty EditText Causing force closes
Why not do this? if (NumCanShootValue == null || NumCanShootValue.equals()) Of course, that is assuming NumCanShootValue is a String. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 24, 2009 at 1:49 AM, Jeffrey jeffisagen...@gmail.com wrote: Well, I got it working but I'm pretty sure there is an easier way to do it. I basically just add a string variable containing 0, check to make sure the string coming from the EditText isn't equal to 0, and then parseInt the string and divide it by 10 to get the original number. If anyone knows of an easier way to get this done that would be great! On Sep 24, 12:08 am, Jeffrey jeffisagen...@gmail.com wrote: I'm trying to make an error message pop up if the user leaves an entry field blank instead of a force close. Right now I've got this: if (NumCanShootValue == null) { String Failure = Please Fill In required Fields.; Toast.makeText(QuickShoot.this, Failure, Toast.LENGTH_SHORT).show(); } else {blah blah blah} This doesn't work, and I tried a .hasNext() but I don't know what to attach it to. .hasNext() doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to..
Use a real phone... Of course, that would make debugging your app a little difficult... -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Sep 24, 2009 at 2:26 AM, Sourabh Pandit sourabhshyampan...@gmail.com wrote: Hi, I'm writting an application that has to interact with an external hardware using USB. As emulator doesn't support USB port connection. Is there any workaround for this?? Thanks Sourabh Pandit --~--~-~--~~~---~--~~ 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: Handling focus in ExpandableListView
Try implementing the AdapterView.OnItemSelectedListener interface... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Sep 25, 2009 at 3:57 AM, Brian heum...@me.com wrote: Hi there, I have been tinkering with the ExpandableListView and would like to tweak its behaviour a little bit. Right now you can navigate through the expandable list and when you select an entry (group) it will expand and display its children. However, I would like to expand the group automatically as soon as the group receives the focus (almost like a fisheye list). I managed to overwrite onGroupExpand(int groupPosition) to close all other entries before expanding the selected group. But I cannot find any way to install any focus listeners which gets notified when a group receives focus... Does anyone know how to do this? Regards, Brian --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---