[android-beginners] Re: G2 vs G1

2009-07-16 Thread whitemice
The phones are more or less identical to develop on. G1 has crazy small internal memory, G2 has no hardware keyboard, and there are something like 20 odd devices coming out over the coming year. http://phandroid.com/phones/ Pay your money, make your choice.

[android-beginners] Re: Understanding intercepting touch events

2009-07-16 Thread samothx
Solved - onTouch has to return true on ACTION_DOWN otherwise no further events are sent.. On Jul 15, 11:19 am, samothx thomas.ru...@googlemail.com wrote: I am working on a TableLayout which I wantt to be able to exceed the width of the screnn. As I have learned ScrollViews only scroll

[android-beginners] Re: need android source tree 1.1 cupcake branch

2009-07-16 Thread manjunatha
I believe that currently only android source tree 1.5 is available for branches (master,cupcake,donut,release-1.0,cdma-import) can be download using repo init. So, if I want to move android source tree (1.5 cupcake) back to 1.1 cupcake branch, I think it can be done with repo or git command on

[android-beginners] ViewGroup Help

2009-07-16 Thread Arin Ghosh
Hi there, I am relatively new to Android, I was wondering if anyone can show me any demo on how to use ViewGroup. I cant able to find a proper tutorial. Any help would be appreciated! thanks, Arin --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] Re: ViewGroup Help

2009-07-16 Thread Desu Vinod Kumar
Hi In Gallary tutorial u can find about view group it may be useful On Thu, Jul 16, 2009 at 3:29 PM, Arin Ghosh arinv1618b...@gmail.com wrote: Hi there, I am relatively new to Android, I was wondering if anyone can show me any demo on how to use ViewGroup. I cant able to find a proper

[android-beginners] Re: Hello Tutorials - Gallery Example

2009-07-16 Thread Jack Ha
Create a file called attrs.xml and place the following in it: ?xml version=1.0 encoding=utf-8? resources declare-styleable name=default_gallery attr name=android:galleryItemBackground / /declare-styleable /resources Then replace the code in ImageAdapter with the following:

[android-beginners] Re: G2 vs G1

2009-07-16 Thread Mike Wolfson
The lack of a physical keyboard was a problem for me on the Magic (some of my applications - like Teminal wouldn't work). There are workarounds, but require some advanced techniques, or downloading alternative applications. The lack of a physical keyboard also made flashing a new ROM more

[android-beginners] Kill a background thread onStop()?

2009-07-16 Thread Anna PS
Hi all, This is probably more of a Java question than an Android question really, but here goes: My app is force closing when I flip the keyboard out, because it's got a background thread running that doesn't get killed during onStop(), and that then goes on to throw a NullPointerException.

[android-beginners] Re: [android-beginners]

2009-07-16 Thread Rafa Perfeito
Thanks man. By G2 i meant the hardware setup found on HTC Magic... That aint too cool...I'm sure the OTG support will be available sooner or later...but sooner would be nice... By the way, what about Bluetooth? Has anyone seen interaction with external devices based on that tech? Or any

[android-beginners] Re: Can't run emulator on MacOS :: newly created AVD not found

2009-07-16 Thread Pawel Veselov
On Thu, Jul 16, 2009 at 1:51 PM, Pawelpawel.vese...@gmail.com wrote: Hi ! Ok, not a good start with MacOS: [...@e03077]~/Android/sdk/android-sdk-mac_x86-1.5_r2$ mksdcard 50M ~/ SDCARD.1 [...@e03077]~/Android/sdk/android-sdk-mac_x86-1.5_r2$ android create avd -n pawel -t 2 -c ~/SDCARD.1

[android-beginners] Re: Can't run emulator on MacOS :: newly created AVD not found

2009-07-16 Thread Pawel Veselov
Ok... It seems that on MacOS, when $ANDROID_SDK_HOME is set, some of the tools will use $ANDROID_SDK_HOME/.android (android, apkbuilder), while others will use $HOME/.android (emulator). Grrr. On Thu, Jul 16, 2009 at 1:53 PM, Pawel Veselov pawel.vese...@gmail.com wrote: On Thu, Jul 16, 2009 at

[android-beginners] Re: Eclipse issues

2009-07-16 Thread Mamsik
here is a nice video tutorial for eclipse: http://eclipsetutorial.sourceforge.net/ Good Luck :-) On 15 Jul., 18:41, stephen rigg stevie...@gmail.com wrote: I just now finished creatin my avd, and wondering how to continue developing the hello world app, I wud use the android developer site

[android-beginners] print on a bluetooth printer

2009-07-16 Thread MrShark
Hi to all. We need to print on a bluetooth printer... let me explain: we already have a program on windows mobile platform that sends commands and data via bluetooth to a Zebra RW 420 printer ( http://www.zebra.com/id/zebra/na/en/index/products/printers/mobile/rw420.html ), using the Zebra

[android-beginners] Text color problem in Multi Choise dialog

2009-07-16 Thread Garrison
I got a text color problem when diaplaying a multi choise dialog. The Theme of my app is set like this: application android:icon=@drawable/icon android:label=@string/ app_name android:theme=@android:style/Theme.Light /application When I pop up a dialog using AlertDialog, text's color in

[android-beginners] Re: ERROR Resource entry main is already defined.

2009-07-16 Thread Bjarne Kjær
Got the same problem when trying to do the LinearLayout tutorial. As Michael said run your program from java. I needed to remove the extra xml file it had generated, not the main.xml, but main.out.xml, main.out.out.xml etc. On Jul 7, 1:18 am, Michael Dorin bsddo...@gmail.com wrote: I think I

[android-beginners] Best practices - looking for application design advice for a location aware app.

2009-07-16 Thread Andrew
I am working on my first android application and am looking for some advice on design decisions. The main goal of the application is to display trails (like cycling/ hiking trails) near the users current location. The user will first be presented with a mapview with markers indicating the

[android-beginners] Re: Creating an avd?

2009-07-16 Thread Elena Schnizer
I would suggest you this one: http://eclipsetutorial.sourceforge.net/ Good luck :-) Elena 2009/7/15 stephen rigg stevie...@gmail.com Thank yu sooo much for yur assistance. Everything went smoothly. One last request cn yu snd me a link of a website, that can show me how to use eclipse bcuz

[android-beginners] Can't run emulator on MacOS :: newly created AVD not found

2009-07-16 Thread Pawel
Hi ! Ok, not a good start with MacOS: [...@e03077]~/Android/sdk/android-sdk-mac_x86-1.5_r2$ mksdcard 50M ~/ SDCARD.1 [...@e03077]~/Android/sdk/android-sdk-mac_x86-1.5_r2$ android create avd -n pawel -t 2 -c ~/SDCARD.1 Android 1.5 is a basic Android platform. Do you wish to create a custom

[android-beginners] Re: Creating an avd?

2009-07-16 Thread Yusuf T. Mobile
Sure, depending on what floats your boat, here is a useful set of video tutorials: http://eclipsetutorial.sourceforge.net/totalbeginner.html and here is the screenshot flava: https://eclipse-tutorial.dev.java.net/eclipse-tutorial/part1.html Yusuf Saib Android ·T· · ·Mobile· stick together The

[android-beginners] Re: Jad Parameter Equilent in Android

2009-07-16 Thread Yusuf T. Mobile
There is no direct equivalent, such as in the Android manifest, afaik. But you may benefit from looking into http://netmite.com/android/index.html , which claims it lets you convert existing j2mes into apk upload to Android Market. Yusuf Saib Android ·T· · ·Mobile· stick together The views,

[android-beginners] Communication API/mechanism to talk between emulator-desktop?

2009-07-16 Thread Yasser
Hi, Is there is any way to send a message from device/emulator to the desktop. Any API available in Android for this? Thanks Yasser --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to

[android-beginners] Re: Problem connecting G1 to Ubuntu 9.0.4

2009-07-16 Thread rch
Mark: No luck so far I tried couple of combinations You think the format is ok ? SUBSYSTEM==usb, SYSFSHigh Tech Computer Corp.==0bb4, MODE=0666 Does it need to be {High Tech Computer Corp.}? Thanks On Jul 15, 7:52 pm, Mark Murphy mmur...@commonsware.com wrote: rch wrote: Step 2 I added

[android-beginners] Re: Problem connecting G1 to Ubuntu 9.0.4

2009-07-16 Thread Mark Murphy
rch wrote: Mark: No luck so far I tried couple of combinations You think the format is ok ? SUBSYSTEM==usb, SYSFSHigh Tech Computer Corp.==0bb4, MODE=0666 Does it need to be {High Tech Computer Corp.}? On my machine, it is {idVendor}. I mean that literally. -- Mark Murphy (a

[android-beginners] Re: Communication API/mechanism to talk between emulator-desktop?

2009-07-16 Thread Mark Murphy
Yasser wrote: Is there is any way to send a message from device/emulator to the desktop. Any API available in Android for this? URLConnection and HttpClient, if the desktop has a Web server running. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-beginners] Re: Kill a background thread onStop()?

2009-07-16 Thread Mark Murphy
Anna PS wrote: This is probably more of a Java question than an Android question really, but here goes: My app is force closing when I flip the keyboard out, because it's got a background thread running that doesn't get killed during onStop(), and that then goes on to throw a

[android-beginners] how to separate system custom intents

2009-07-16 Thread az9702
How can I distinguish between intents supplied by Android intents created by my application ? I can query the contents of the intents. But is there a more efficient way to separate the two types of intents (e.g. checking a flag) ? This may be useful in onCreate where Activity can be started

[android-beginners] Re: how to separate system custom intents

2009-07-16 Thread Mark Murphy
az9702 wrote: How can I distinguish between intents supplied by Android intents created by my application ? Use a namespace in the action (e.g., com.commonsware.android.HEAD_FOR_THE_HILLS). Bear in mind that there are more Intent sources than merely Android and your application: -- Android,

[android-beginners] Re: how to separate system custom intents

2009-07-16 Thread az9702
Mark, Thanks for the quick reply. user intent in this case is an intent supplied by the application e.g. intent created for startActivityForResult/onActivityResult. The question is prompted by this scenario: My main activity has preferences that are set by a separate PreferenceActivity. The

[android-beginners] Re: how to separate system custom intents

2009-07-16 Thread Mark Murphy
az9702 wrote: user intent in this case is an intent supplied by the application e.g. intent created for startActivityForResult/onActivityResult. OK. The question is prompted by this scenario: My main activity has preferences that are set by a separate PreferenceActivity. The latter

[android-beginners] Re: Hello Tutorials - Gallery Example

2009-07-16 Thread Neilz
Hi Jack, thanks for your response. It still doesn't compile... what is the method obtainStyledAttributes ()? This doesn't resolve. On Jul 16, 4:15 pm, Jack Ha jack...@t-mobile.com wrote: Create a file called attrs.xml and place the following in it: ?xml version=1.0 encoding=utf-8? resources

[android-beginners] How to run the latest version of the OS

2009-07-16 Thread mjlissner
Hi, I'm trying to do some work on the location framework, but I can't figure out how to install and view my changes. I've tried looking this up, but I get the impression I don't know the right terminology. Essentially, what I'd like to do is this: 1. Download the donut source 2. make changes to

[android-beginners] Re: How to run the latest version of the OS

2009-07-16 Thread Mark Murphy
mjlissner wrote: Hi, I'm trying to do some work on the location framework, but I can't figure out how to install and view my changes. I've tried looking this up, but I get the impression I don't know the right terminology. Essentially, what I'd like to do is this: 1. Download the donut

[android-beginners] Re: How to run the latest version of the OS

2009-07-16 Thread Mike Lissner
OK, thanks. I've reposted this message here: http://groups.google.com/group/android-framework/browse_thread/thread/4b66d07bec8aca6a M On Jul 16, 3:15 pm, Mark Murphy mmur...@commonsware.com wrote: mjlissner wrote: Hi, I'm trying to do some work on the location framework, but I can't figure

[android-beginners] Menu Force Close Issues

2009-07-16 Thread erykthege...@googlemail.com
Hi, I'm having some troubles with the menu I just added to my app. I'm using a basic Java: @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuItem item = menu.add(0,1,0,Bookmark); item = menu.add(0,2,0,Remove Bookmark);

[android-beginners] Re: Menu Force Close Issues

2009-07-16 Thread Mark Murphy
erykthege...@googlemail.com wrote: 07-16 18:11:42.991: ERROR/AndroidRuntime(21831): android.view.InflateException: Binary XML file line #17: Error inflating class java.lang.reflect.Constructor Can you post the layout file corresponding to this error? What is on line #17? -- Mark Murphy (a

[android-beginners] Re: how to separate system custom intents

2009-07-16 Thread az9702
Mark, Action with namespace works. Thanks. Here is how the application works now. Main activity is controlled by SharedPreference changes: * Main activity displays a list of thingies of Type X * User selects the Type from a ListPreference in a PreferenceActivity with its own separate screen.

[android-beginners] Rooting?

2009-07-16 Thread stephen rigg
Haven't researched it : ( Jus have a few specific questions wich do feel a little obvious. Can rooting cause a potential harm to my g1? If so it it reversable? What are my risks? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-beginners] Re: How to log test results in a file? - logcat error

2009-07-16 Thread Brett Chabot
On Wed, Jul 15, 2009 at 3:35 PM, Yasseryassersiddi...@gmail.com wrote: Thanks Brett, that helped.. The log messages I write in the test code are not included in the output using -r option? to get those i need to run logcat. Thats correct. Also is there a mechanism to send messages from

[android-beginners] Why won't it start here?

2009-07-16 Thread dapaintballer331
Is there any problem with launching a service via an Alarm's BroadcastReceiver's onReceive? My service never has it's onCreate or onStart method called. My Alarm's receiver gets a wakelock, calls context.startService(new Intent(context, FmiDaemon.class)); (context given via onRecieve parameter),

[android-beginners] Re: WebView with on onTouchEvent

2009-07-16 Thread balaji duddukuri
HI, Please use this url http://www.geonet.org.nz/ and try to access the controls in explorer and in WebView(enable javascript))/Android browser. please let me know if any one of you can use the controls in that page. (onmouseoverslider) in Android. for more info :

[android-beginners] Re: Rooting?

2009-07-16 Thread Roman
Hi, Here is a pretty good description of how to root your G1 phone. http://androidandme.com/2009/05/guides/beginners-guide-for-rooting-your-android-g1-to-install-cupcake/ Of course there is always a risk that during rooting something goes wrong. Make sure that you charge your battery before