[android-beginners] Re: storing values of an array

2009-05-19 Thread Mark Murphy
> is there anyway that these two arrays can be stored on the device and > accessed later? the option of using SQL seemed a little to extensive > since the data is just a simple array. You can write them to a file using standard Java I/O. If you use XML or JSON as your data format, Android has bui

[android-beginners] storing values of an array

2009-05-19 Thread ayush
i'm designing a simple board game, where the positions and states of pieces are stored in two separate (single dimension) int arrays. i want to give the user the option to save the game and reload the same at a future time. is there anyway that these two arrays can be stored on the device and acce

[android-beginners] Re: findViewById returns NULL (RadioButton/RadioGroup)

2009-05-19 Thread Vignesh
Sean, dialog.findViewById got it working. Thank you for your time. protected Dialog onCreateDialog(int id) { Dialog d = new Dialog(screen1.this); // On the new dialog, I set the above layout d.setContentView(R.layout.when_options); // finding the button with id ok_when B

[android-beginners] Re: findViewById returns NULL (RadioButton/RadioGroup)

2009-05-19 Thread Vignesh
As feared, even in onPrepareDialog(...), findViewById returns NULL. :( Request help. -vignesh On Wed, May 20, 2009 at 8:12 AM, Vignesh wrote: > Sean, > > Thanks for your email. > > The layout contains a radiogroup with 3 radiobuttons and a > button(okButton). I have a onclicklistener for th

[android-beginners] Re: findViewById returns NULL (RadioButton/RadioGroup)

2009-05-19 Thread Vignesh
Sean, Thanks for your email. The layout contains a radiogroup with 3 radiobuttons and a button(okButton). I have a onclicklistener for the button and when onClickListener is triggered, I try to do findViewById(). Isn't the dialog still not available?. Meanwhile, I shall try accesssing them in

[android-beginners] Re: Where is source code for Dev Tools?

2009-05-19 Thread Raphael
On Mon, May 18, 2009 at 2:53 PM, Lewis Z. wrote: > > Raphael, thanks for the link. > > Quickly browsing through the code, I didn't see code for Sync and > Terminal Emulator tools. Are these tools deprecated? Sorry I don't know. Do the same than I did: download the git repos and grep the various

[android-beginners] Re: How to start android emulator in landscape mode?

2009-05-19 Thread Raphael
Create an AVD with landscape skin. $ android create avd --name somename --skin HVGA-L (or use the AVD Manager in Eclise ADT 0.9.1) If you omit the parameter, --skin will display the valid choices. R/ On Tue, May 19, 2009 at 5:33 PM, lucius wrote: > > I find this thread about switching to la

[android-beginners] Re: Notification without firing any Intent

2009-05-19 Thread Kent Yip
Hi Tessarolli, You can take a look at here for different kind of notifications you can choose from: http://developer.android.com/guide/topics/ui/notifiers/index.html You can click on the one of those notification for example code. Hope that help On May 11, 2009 10:41 AM, "Tessarolli" wrote:

[android-beginners] How to start android emulator in landscape mode?

2009-05-19 Thread lucius
I find this thread about switching to landscape mode: http://groups.google.com/group/android-beginners/browse_thread/thread/197be6ee6e7485af But how can I start in landscape mode without switching it from portrait? --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread John Burton
On vista you don't seem to be able to delete the keys at all. In the end I ran the device manager, clicked "View / Show Hidden Devices" and then deleted anything that looked like it was related to the phone in any way. When I plugged my phone back in it worked correctly. (Although I had also dele

[android-beginners] How to install my application on a device with NFS mount?

2009-05-19 Thread Lewis Z.
I was able to boot a device through NFS mount. I thought I could run my application if I copied it to /data/app. Even though I saw my application in shell, I couldn't find it in the application window. What steps did I miss? Thanks in advance. --~--~-~--~~~---~--~

[android-beginners] Re: Is there an easy way to make EditText look like TextView but still behave like EditText?

2009-05-19 Thread n5r11
Okay, this is the third time I'm sending this.. I hope it will finally deliver. On 17 мај, 14:39, Nikola Radosavljevic wrote: > Hello there, > > I want an EditText to look like TextView but still behave like > EditText. I've tried applying TextView style to my EditText in my > layout.xml file, l

[android-beginners] How to solve "G1/HTC Magic not recognized by ADB under Windows"

2009-05-19 Thread Raphael
If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home > Settings > Applications > Development > USB debugging on your G1 or HTC

[android-beginners] Re: How selective are the Android Marketplace "police" in allowing our apps to be published?

2009-05-19 Thread Disconnect
There is no filter other than the terms of service (fairly standard, except you can't gather money outside the market, or charge for updates. Give them a read though..) On Mon, May 18, 2009 at 5:51 PM, Amir Memon wrote: > > Hi, > > I have a fairly simple iphone app (2 quizzes with a global high

[android-beginners] Android Silicon Valley MeetUp Ju ne 16th – Hosted by Motodev

2009-05-19 Thread DroidDevMgr
Join us to discuss and encourage innovation on the Android platform. Get the opportunity to explore how Android can be harnessed to build new, enjoyable, and useful applications by exploiting the platform's openness. Anyone from the curious to hardcore developers are welcome to participate. This

[android-beginners] Synopsis of SearchManager

2009-05-19 Thread jtaylor
Would anyone like to give me a Synopsis of SearchManager? Of the page below? SearchManager http://developer.android.com/reference/android/app/SearchManager.html + Juan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[android-beginners] Re: Use PreferenceCategory in a normal Activity?

2009-05-19 Thread twan
I managed to solve this one by using a arrayadapter in a listview and overriding getView() and returning a custom view that looked like a PreferenceCategory. Hacky ;-) Cheers, Twan On May 19, 1:52 pm, twan wrote: > Hello, > > I was wondering how one would create a view like available on the > M

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-05-19 Thread Mike
I suspect you need to update the Toast (which is a UI widget) on the UI thread. You do this by creating a Handler and posting a Runnable with the code you are using to update the Toast. If you don't, you run the risk of deadlock. - Mike On May 7, 2:52 pm, Patricio Echague wrote: > Hi all, my

[android-beginners] Re: Moving files to phone

2009-05-19 Thread jknox
Finally... I hate to keep following up my own posts, but maybe it will save someone else a bunch of hassle. For me the secret turns out to be the following (using ADB): The data files for the app are stored in "/data/data// files". However, to push new files into there, you must first change p

[android-beginners] Android Silicon Valley MeetUp Ju ne 16th – Hosted by Motodev

2009-05-19 Thread DroidDevMgr
Join us to discuss and encourage innovation on the Android platform. Get the opportunity to explore how Android can be harnessed to build new, enjoyable, and useful applications by exploiting the platform's openness. Anyone from the curious to hardcore developers are welcome to participate. This

[android-beginners] How selective are the Android Marketplace "police" in allowing our apps to be published?

2009-05-19 Thread Amir Memon
Hi, I have a fairly simple iphone app (2 quizzes with a global high score functionality), and would like to port it over to android. I'm selling it for $1 on the iphone app store, i'd do the same on android mktplc... my only question is how high do the android marketplace admins set the quality

[android-beginners] Re: Problem with TimerTask

2009-05-19 Thread Jocelyn Pelletier
Hi, I answered myself: http://android-developers.blogspot.com/2007/11/stitch-in-time.html I'll use the Handler instead. a+ On Mon, May 18, 2009 at 5:51 PM, Jocelyn Pelletier wrote: > Hi, > > I'm trying to do a really simple thing: > >1. The user click on the button -> show a pressed button

[android-beginners] Creating a custom Calendar desktop widget - problems running default calendar projects

2009-05-19 Thread Peter Boughton
Hello. I want to extend the default Calendar desktop widget, to make it more flexible. I have 1.5 SDK downloaded, and (after assorted problems) I have Eclipse updated with ADT 0.9.1 I have tried to git-clone on the two calendar projects within the repository: git://android.git.kernel.org/platfo

[android-beginners] Re: To Do List Example Crashed Eclipse

2009-05-19 Thread dylander...@gmail.com
I think what you need to try is plugging in your G1 and setting Android target to MANUAL and running the APK on your G1. Try that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to

[android-beginners] Errors on Hello Android

2009-05-19 Thread AISFox
I completely new at this and have had errors that I dont understand. Up to the part of compile I receive these errors: [2009-05-18 19:43:55 - helloandroid] no classfiles specified [2009-05-18 19:43:55 - helloandroid] Conversion to Dalvik format failed with error 1 When I try and run it I get the P

[android-beginners] Re: browser application..

2009-05-19 Thread Kasmoori Bindu
Hi Vineeth, I found that source code for every application exists at http://www.netmite.com/android/mydroid/packages/apps/ Hope this is helpful. Best Regards, Bindu On Tue, May 19, 2009 at 6:36 PM, vineeth Desai wrote: > Hi All, > I have got some working knowledge on android platfotm. I am a

[android-beginners] Multiple buttons with the same onclick listener

2009-05-19 Thread GMaker0507
In my app, i have around 4 different layouts, and on them i have a total of like 10 different buttons, and maybe more to come in the future I want them to all have the same onclicklistener, which is a single instance class i created, that would basically do whatever was needed depenindg on the id

[android-beginners] Use PreferenceCategory in a normal Activity?

2009-05-19 Thread twan
Hello, I was wondering how one would create a view like available on the Market application. I mean the screen that displays the Program name (which stays always at the top of the screen, even when you scroll) and the Install button at the bottom. The middle section is a collection of controls li

android-beginners@googlegroups.com

2009-05-19 Thread Nils
It seems to be impossible to show checkmarks in the optionsmenu. If that is the case, then I have to change the menu item text dynamically to reflect the current state, right? Comments, please! On 2 Apr, 07:00, zhoubo shi wrote: > please, say error message! > > 2009/4/2 Glen Humphrey > > > > >

[android-beginners] Re: Spinner hint

2009-05-19 Thread Pieter Kuijpers
I asked the same question on StackOverflow recently: http://stackoverflow.com/questions/867518/how-to-make-an-android-spinner-with-initial-text-select-one Regards, Pieter. On 17 mei, 21:29, krzysiek wrote: > Hello, > > I want do have spinner with initially selected "Select one" item, but > this

[android-beginners] Dynamically change ListView doesn't work

2009-05-19 Thread Krzysztof Grajek
Hello Guys, I should write in the title instead of 'doesn't work' something like 'I don't know how to do it' but the first version feels better :). What I am trying to do is the following: 1. Download the xml from the web, parse it and create ArrayList of some objects (done and working) 2. Displa

[android-beginners] Listview with multiple coulmns

2009-05-19 Thread uttampawar
Hi, I'm completely new to the android development or mobile programming for that matter. I do not have any gui building experience. I did try 'HelloAndroid' example and understand the directory layout very well. But I'm not able to get the following to work... I'm trying to build one applicatio

[android-beginners] getting device offline when trying to debug on my phone

2009-05-19 Thread LeonMcD
My app runs on the emulator. I've installed the adb usb drivers and I can see my phone using adb devices but the status is offline. I cannot adb install my app and the emulator will not try to use my phone. I've enable unknown sources and turned on usb debugging. Any ideas what is wrong? --~-

[android-beginners] Problem with TimerTask

2009-05-19 Thread Jocelyn Pelletier
Hi, I'm trying to do a really simple thing: 1. The user click on the button -> show a pressed button image 2. Wait 2 seconds 3. Restore the button image Here is my actual code: private OnTouchListener onTouchClickListener = new OnTouchListener() { @Override public

[android-beginners] Re: Missing setListAdapter() Method?

2009-05-19 Thread uttampawar
setListAdapter comes from android.app.ListActivity I've tried that example and it works for me. void android.app.ListActivity.setListAdapter(ListAdapter adapter) Utta On May 17, 11:54 am, TJO wrote: > I am working through the Notepad tutorial and notice that my project > will not compile on a

[android-beginners] Using the kernel with the emulator

2009-05-19 Thread asim
Hi, I have a simple query. Is the emulator included with the SDK only for applications? I was wondering if one can make changes to the kernel and observe the changes in the kernel. This is for educational purposes. Regards, Asim --~--~-~--~~~---~--~~ You received

[android-beginners] Cupcake (1.5) and Maps

2009-05-19 Thread Lil' Brudder
I am having a major issue migrating my map-based application from Android 1.1 to 1.5. Ever other android app I have -- the do not use the maps -- has been upgraded. Does any have a simple tutorial, tip, or blog post about getting maps to work with 1.5. Thanks Ted --~--~-~--~~-

[android-beginners] More about "Conversion to Dalvik format failed with error 1"

2009-05-19 Thread Dahai Guo
I am new to Android. To create and run the HelloWorld project, I installed Eclipse 3.4, Android SDK, and ADT. Right after the project was created, I got two error messages: "no classfiles specified" and "Conversion to Dalvik format failed with error 1". Then I tried to build and run the project.

[android-beginners] Re: Where is source code for Dev Tools?

2009-05-19 Thread sync prod
Test On May 18, 2009 1:57 PM, "Raphael" wrote: On Mon, May 18, 2009 at 11:39 AM, Lewis Z. wrote: > > Could someone please tell ... iirc it's apps/Development in development.git http://android.git.kernel.org/?p=platform/development.git;a=tree;f=apps/Development;h=90aa0d214eacca5410e0b5170e0b65d

[android-beginners] Re: [android-beginners]'system.out.println' dumpage

2009-05-19 Thread Rafa Perfeito
Nevermind...found the debugger...already using it.. Thanks for the help On Tue, May 19, 2009 at 1:00 PM, Rafa Perfeito wrote: > Thank you all. > But...where is that log file? 'cause in cant find it anywhere... > > > On Mon, May 18, 2009 at 9:31 PM, fadden wrote: > >> >> On May 18, 10:35 am, Rap

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread Nicholas Radford
Tried in safe mode as well? On May 19, 2009 6:55 PM, "John Burton" wrote: On May 19, 11:37 am, Nicholas Radford wrote: > Note: if regedit doesn't allow you to delete a key (folder) then > right click it, go to ... It won't let me delete the key or change the permissions on it. I tri

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread John Burton
On May 19, 11:37 am, Nicholas Radford wrote: >          Note: if regedit doesn't allow you to delete a key (folder) then > right click it, go to permissions >                   and give "everyone" full control, apply and ok, then > delete the key (folder) > It won't let me delete the key or cha

[android-beginners] Re: Problem with tutorials.

2009-05-19 Thread Gabriel A. Zorrilla
Now i'm working on Linux and after having the same initial problems with W7, managed to correct them by updating ADT and fixing some routes. I'm too lazy to do this on W7, but should work. On 18 mayo, 09:04, Michael Dorin wrote: > Hola Gabriel, > > I was/am having the same problem. > > Xavier ga

[android-beginners] Re: Java Swing/AWT class on Android

2009-05-19 Thread Vaidya
Thanks.. Is it possible to integrate the Android package in Java, so that the application I write for Android can be used on Ubuntu also? Can I optimize the JVM accordingly? Regards, Vaidya On Mon, May 18, 2009 at 10:26 PM, Romain Guy wrote: > > Swing requires a lot of native code that Android

[android-beginners] Re: findViewById returns NULL (RadioButton/RadioGroup)

2009-05-19 Thread Sean Hodges
Hello Vignesh, onCreateDialog() is invoked before the dialog is populated, so the RadioGroup widget has not yet been created. You probably want to override onPrepareDialog(). See these sections in the API: http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int%29 h

[android-beginners] findViewById returns NULL (RadioButton/RadioGroup)

2009-05-19 Thread Vignesh
Hi, I am throwing up a dialog on a Buttonpress in my application. This dialog sets the content from an xml layout and the layout has three radio buttons within a radiogroup and then two buttons (Ok/Cancel). My intent is to know the radiobutton choosen by the user at the time of pressing "Ok". L

[android-beginners] Re: Moving files to phone

2009-05-19 Thread jknox
Okay, with ADB, I can see the file that my app creates. If I go into super user mode, then it's in: /data/data/trisoft.XXX/files However: >ADB push myfile.txt /data/data/trisoft.XXX/files gives me a "permission denied." error. I'm REAL close, people... just missing some detail. Anyon

[android-beginners] Re: browser application..

2009-05-19 Thread Sean Hodges
How about you put the games on a website? You get the flexibility of using regular HTML/CSS for designing the site, and people will be able to access it from the Web browser on either their phones or their computers. I guess if you really want to build a client app for this, you could do so using

[android-beginners] browser application..

2009-05-19 Thread vineeth Desai
Hi All, I have got some working knowledge on android platfotm. I am able to develop some game applications. Now I have a task to write a browser for my site. It should be like android market website. So that I can put my own games on that site. User can access the games through my site on androi

[android-beginners] Re: SQLite + Cursor + getDate()

2009-05-19 Thread n5r11
There is another way.. and read/write date as milliseconds from/to the database. Here are the methods to work with that value: Date date = new Date(); //or new Date(long millis); date.setTime(millis); //for now, use: System.currentTimeMillis() int millis = date.getTime(); DateFormat df = DateFor

[android-beginners] Re: [android-beginners]'system.out.println' dumpage

2009-05-19 Thread Rafa Perfeito
Thank you all. But...where is that log file? 'cause in cant find it anywhere... On Mon, May 18, 2009 at 9:31 PM, fadden wrote: > > On May 18, 10:35 am, Raphael wrote: > > On Mon, May 18, 2009 at 10:17 AM, Rafa Perfeito > wrote: > > > Here's a real beginner question: > > > Im using Eclipse IDE

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread Nicholas Radford
Oh and thank you Rapheal, Your help has been much appreciated. Thanks for your hard work in figuring this out. On Tue, May 19, 2009 at 11:37 AM, Nicholas Radford < nikradf...@googlemail.com> wrote: > This has worked for me, full elaboration of steps for Johns sake and anyone > who happens across

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread Nicholas Radford
This has worked for me, full elaboration of steps for Johns sake and anyone who happens across this post. i) Plugin phone ii) Uninstall any drivers that mention "HTC Android USB Device" iii) Unplug phone and restart (I restarted into safe mode, but it turned out to be unneccisary)

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-05-19 Thread Pablo
Curiously I have tried your code and I get the same problem as you. It only works for the first two GPS data that i send. The code seems to be ok as it is the same as the tutorial on devx.com page... I have no clue about what's happening. Thanks, Pablo On May 14, 12:25 pm, Pablo wrote: > Hi,

[android-beginners] Re: HTC Magic - Can't install driver on development PCs

2009-05-19 Thread John Burton
On May 19, 3:28 am, Raphael wrote: > b) Use regedit to find the string "vid_0bb4&pid_0c02" in keys or > values. If you find in a value, delete the whole registry folder. > Repeat till you find none. Then do step (a). That sounds like it should work, thank you for the replies. I tried this but w

[android-beginners] How to determine if application is running on the emulator?

2009-05-19 Thread Sean Hodges
Hey all, I'm working on an application which requires a Wifi service. To ensure it does not start attempting to resolve addresses over the cell network, the app automatically starts the Wifi service when it is not available, and determines that connection has been established by polling for an IP

[android-beginners] SQLite + Cursor + getDate()

2009-05-19 Thread Markus
Hello, I start to developed a SQLite based Android application. So I insert some test data so see how android and sqlite work. But when I get the data from the Cursor Object, there is not getter for a Date or Timestamp field. The only way is to get String and parse this with SimpleDateFormat, bu