[android-beginners] Re: support SensorListener in SDK 1.5_r3?

2009-07-20 Thread prihei
Hi, i have no problem with the sensor listener. First you register your sensors: Sample: mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); mSensorManager.registerListener(deviceSensor, mSensorManager.getDefaultSensor

[android-beginners] Re: problem with getId()

2009-07-20 Thread kartheek karthikeya
may be you forgot to setclickble(true) to that image view On Sun, Jul 19, 2009 at 5:49 PM, Mark Murphy mmur...@commonsware.comwrote: arin wrote: Hi Everyone, I have the following code Java: imageView.setImageResource(mThumbIds[position]);

[android-beginners] Re: Question

2009-07-20 Thread Yusuf T. Mobile
Oh, that id. So I believe you are referring to the function onListItemClick: protected void onListItemClick(ListView l, View v, int position, long id) Android calls this function when the user clicks on a list item, and sets the id value. Under the hood, when the user clicks on a spot in

[android-beginners] android webservice

2009-07-20 Thread saurabh sinha
I am android beginner I need a complete example of android webservice --~--~-~--~~~---~--~~ 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

[android-beginners] Re: How Do I Install Market Apps on the Emulator, and other questions about Intents

2009-07-20 Thread Sean Hodges
In addition to option #2, you could write a small application that listens on the intent contexts and acts as a stub for the radar app you want to target. Just accept the data being passed in and send back some static dummy responses. You can then deploy this dummy app on your emulator. This

[android-beginners] Re: StackOverflowError on a compound view

2009-07-20 Thread Zied Hamdi
Hi Mark, Thanks for your reply. I forgot t to mention that the ui works if I create it programatically. I understand that StackOverflow errors are hard to debug. That's why I think there should be a conf setting for the maximum allowed depth to isolate normal StackOverflow errors from the ones

[android-beginners] Hello MapView tutorial

2009-07-20 Thread Neilz
Hi all. I've worked my way through all the tutorials, and the Maps one is now the only one I can't get working. http://developer.android.com/guide/tutorials/views/hello-mapview.html I've followed the instructions, but when the application starts up I get the following message: Sorry! The

[android-beginners] Great books worth the 35$

2009-07-20 Thread Oliver Rennfort
Hi all I have now several books for android. And had to find out that most of them are not great due to the fackt that they all handle 1 or 2 projects to cover some info. But now my last purchase was a hit. And for the price of 35$ you get uptodate pdf books what have almost all topic in it what

[android-beginners] Re: Hello MapView tutorial

2009-07-20 Thread Jack Ha
Did you obtain the Maps Api key and insert that in android:apiKey in the layout file? Also make sure that your application has requested the INTERNET permission. -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of

[android-beginners] Re: Great books worth the 35$

2009-07-20 Thread Mark Murphy
Oliver Rennfort wrote: Hi all I have now several books for android. And had to find out that most of them are not great due to the fackt that they all handle 1 or 2 projects to cover some info. But now my last purchase was a hit. And for the price of 35$ you get uptodate pdf books what have

[android-beginners] Re: Rooting?

2009-07-20 Thread Roman
If you follow the instructions you should be fine. In case of you messed up one of the steps you could start from a previous step if you know what you did wrong. If not you might have to start from the beginning of the procedure. The procedure is reversible if you have the original image files.

[android-beginners] Re: Hello MapView tutorial

2009-07-20 Thread Neilz
Yes, everything is in place as specified in the tutorial. On Jul 20, 4:34 pm, Jack Ha jack...@t-mobile.com wrote: Did you obtain the Maps Api key and insert that in android:apiKey in the layout file? Also make sure that your application has requested the INTERNET permission. --

[android-beginners] XML Parser

2009-07-20 Thread Victor Pantoja
Hi I'm using SAX for parsing some XML files. I was wondering if there is a better way to do this like DOM. What do you guys use? Regards, Victor 2009/7/20, Oliver Rennfort anubis...@gmail.com: Hi all I have now several books for android. And had to find out that most of them are not great

[android-beginners] Re: XML Parser

2009-07-20 Thread Dave Bordoley
XML Pull Parser is great. See http://developer.android.com/reference/org/xmlpull/v1/package-summary.html. Gives you the streaming benefits of SAX but is much easier to work with imo. Dave On Mon, Jul 20, 2009 at 11:32 AM, Victor Pantojavictor.pant...@gmail.com wrote: Hi I'm using SAX for

[android-beginners] Draw multi circle with different color

2009-07-20 Thread patpat
I am trying to draw multi circle with different color by using the same Paint but change the paint color I am using for loop to this in ondraw However, it doesnt work. can anyone tell me wut am i doing wrong? public class theGamev2 extends Activity { final static int POINTER = 0x102;

[android-beginners] Is it possible to override Android's green and red buttons?

2009-07-20 Thread szantaii
Hi, My question is that is it possible to override the physical green and red buttons on Android which by default are used to accept and end calls. For example, in my own activity those buttons won't serve as accept call, deny call or end call but they can function for something other. Is this

[android-beginners] how to start wap app

2009-07-20 Thread Neha
Hii all I am very new in android , can any one help me how can i start app in wap . I want to create a wap app for andrioid . What is technical requirements for this and also how to test it ? Thanks - Neha --~--~-~--~~~---~--~~ You received this message because

[android-beginners] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-20 Thread Olaf Geibig
We are disussing this issues in several threads already. let's please focus and switch to the thread at the android developers froup: http://groups.google.com/group/android-developers/browse_thread/thread/726ea864e89985ec On 17 Jul., 22:41, ludovic.perrier barbapa...@gmail.com wrote: Hello I

[android-beginners] Loading an image from remote server

2009-07-20 Thread santu
Hi , I have an issue when loading an image from remote location. For this I am using UrlConnection to connect and getting the InputStream . my code snippet is as follows: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ImageView i =

[android-beginners] Converting class files to dex format at runtime

2009-07-20 Thread tarzan
Hi, is there a way to convert class files to the dex format on the fly on android? i'm starting to build an application which relies heavily on reflection for loading classes which are not known at build time. I don't suppose there is functionality for this since Sun might deny this sort of

[android-beginners] fillpolygon for Canvas?

2009-07-20 Thread monsoon
It seems a bit odd to me that there is no fillpolygon(...) method in the Canvas class? I'm a bit new to graphics on Android, but it seems I must be missing something here? I.e. The best I can make out is that I'll have to write my own version of a fillpolygon (which is a very standard sort of

[android-beginners] Problems with combined scrollview and tablelayout

2009-07-20 Thread robbidog
Hi, I'm trying out the SDK and am attempting to combine a ScrollView with table layout and GridView. For each row of the table I want a list of TextView's stored in GridView. With my current layout, all of the text views in the grid end up overlaying each other. Can anyone tell me how to

[android-beginners] Re: trouble getting HelloGallery example for android sdk 1.5 to work

2009-07-20 Thread 单单
Thanks for htbest2000, your solution works well. On Jul 6, 3:58 pm, htbest2000 htbest2...@gmail.com wrote: you can take the following 2 step: step 1. append file attars.xml in res/values with content: resources     declare-styleable name=Gallery         attr

[android-beginners] Re: trouble getting HelloGallery example for android sdk 1.5 to work

2009-07-20 Thread 单单
Thanks for htbest2000, your solution works well. On Jul 6, 3:58 pm, htbest2000 htbest2...@gmail.com wrote: you can take the following 2 step: step 1. append file attars.xml in res/values with content: resources     declare-styleable name=Gallery         attr

[android-beginners] File Association

2009-07-20 Thread kurious oranj
I was thinking about writing a csv viewer so that when I clicked a .csv file in the browser, it would open up the file in my application. Is it possible to associate a file extension with an application or just a mime type? --~--~-~--~~~---~--~~ You received this

[android-beginners] populate a database

2009-07-20 Thread Eduardo Nunes Pereira
I'm trying to populate a database when install the app, but my method read only the first line of table, anyone knows a best method to populate the database with sql statement at first app run. private static class ChordDbHelper extends SQLiteOpenHelper { private String

[android-beginners] Basic java threading problems, code inside

2009-07-20 Thread Kevin Grant
I understand the concept of threads, and it almost seems like I understand how to implement them. This code executes properly until I press the back button (to close), and then gives a This application has stopped unexpectedly. Please try again. Well duh, I closed it! Heres the code Im using:

[android-beginners] Re: problem with getId()

2009-07-20 Thread arin
Thanks for ur interest kartheek. I solved it. I was doing a mistake, I sould've call gridview.setItemOnClick() instead! happy coding On Jul 20, 1:22 pm, kartheek karthikeya kartheek@gmail.com wrote: may be you forgot to setclickble(true)  to that image view On Sun, Jul 19, 2009 at 5:49

[android-beginners] Internet sharing on MAC with G1 Android

2009-07-20 Thread lawrencegoodman
I have seen this problem posted on numerous places on the web with no one able to solve it. I thought someone here might be able to help: I enable Internet Sharing on my Mac which means the computer itself sends out a wireless signal. Every handheld device I have ever had connected easily to the

[android-beginners] Re: Is it possible to override Android's green and red buttons?

2009-07-20 Thread Romain Guy
No you cannot. On Jul 20, 2009 12:52 PM, szantaii szant...@gmail.com wrote: Hi, My question is that is it possible to override the physical green and red buttons on Android which by default are used to accept and end calls. For example, in my own activity those buttons won't serve as accept

[android-beginners] Re: trouble getting HelloGallery example for android sdk 1.5 to work

2009-07-20 Thread 单单
Thanks for htbest2000, your solution works well. On Jul 6, 3:58 pm, htbest2000 htbest2...@gmail.com wrote: you can take the following 2 step: step 1. append file attars.xml in res/values with content: resources     declare-styleable name=Gallery         attr

[android-beginners] Re: doing the tutorial for HelloDatePicker

2009-07-20 Thread The Bear
Hi Yushun, Watch your spelling - it's Calendar not Calender. On Jul 17, 4:42 am, yushun he sonnyhe2...@gmail.com wrote: hi, i'm doing the datepicker tutorial. I finished putting the codes HelloDatePicker.java the only thing wrong is the words Calender and updateDisplay are underlined red.

[android-beginners] hebrew font

2009-07-20 Thread nik
how to install in htc g1 hebrew fonts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group,

[android-beginners] Re: Hello MapView tutorial

2009-07-20 Thread Jack Ha
Did you see any errors in logcat? Make sure you have the following line in the manifest file: uses-library android:name=com.google.android.maps / Can you post your source file and manifest file here? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views,

[android-beginners] PendingIntent ProximityAlert problem

2009-07-20 Thread Stefan
Hi, I have a problem with the proximityAlert function. I develop a navigation software, which reads some gps data out of a gpx file. Then I write the first gps point in the addProximityAlert function. When I get near this point, I want to raise an index to get the next position from the gpx file

[android-beginners] XML Documentatin?

2009-07-20 Thread Micah
When working with android XML files there are a bunch of tags available such as TextView, shape, alpha, set, menu, LinearLayout, etc. Where can I find a list of all of the tags available along with (ideally) documentation on what they are used for and what attributes are available for them?

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Micah
The documentation at http://developer.android.com/guide/topics/resources/available-resources.html appears to be what I'm looking for except it's incomplete. It doesn't contain information about the shape tag, and I'm not sure what else is missing. :( On Jul 20, 1:36 pm, Micah mic...@gmail.com

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Micah
Another page that contains some information is http://developer.android.com/reference/android/R.attr.html which appears to list all XML attributes for all elements. Unfortunately, this list doesn't include any information about which elements the attribute goes with. Thickness attribute, for

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Micah
More Googling has turned up this post: http://groups.google.com/group/android-beginners/msg/3a9744adda7d98d9 (I'm not sure if Google group thread links are reliable long term, if not search for a post titled XML Layout Language in the android- beginners group). It would appear that somewhere

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Micah
I apologize to anyone who has this mailing list set to e-mail me every new post. My last statement turns out to be inaccurate regarding being able to look up a Java class and know what XML element to use for it. An example is ShapeDrawable which defines XML attributes to be used with it but

[android-beginners] Re: Basic java threading problems, code inside

2009-07-20 Thread fadden
On Jul 17, 4:29 pm, Kevin Grant kevingra...@gmail.com wrote: *So what I need to know is why is it crashing, and how can I fix it?* What information is printed in the log file when it crashes? --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] Re: Converting class files to dex format at runtime

2009-07-20 Thread fadden
On Jul 20, 7:32 am, tarzan stephan.heu...@gmail.com wrote: is there a way to convert class files to the dex format on the fly on android? i'm starting to build an application which relies heavily on reflection for loading classes which are not known at build time. There is currently no

[android-beginners] book questions..

2009-07-20 Thread eitan
of the books on android that are in print at the moment, can anyone list which ones cover cupcake? i know the prags book has recently been updated for cupcake. second, i'm a little confused by the fact that mark murphy appears to have two books recently published: 'beginning android' via

[android-beginners] Re: book questions..

2009-07-20 Thread Mark Murphy
eitan wrote: of the books on android that are in print at the moment, can anyone list which ones cover cupcake? i know the prags book has recently been updated for cupcake. The digital edition of _Hello, Android_ (PDF, EPUB, Kindle) has Cupcake material. Other than my book (see below) and

[android-beginners] Re: XML Documentatin?

2009-07-20 Thread Jack Ha
Try http://developer.android.com/reference/android/R.styleable.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-beginners] Re: book questions..

2009-07-20 Thread Eitan Suez
thanks for the detailed description/comparison. i've already read the first edition of the prags' book, and am looking for something complementary to it, but up to date as well. so perhaps a more detailed treatment like a 1100-page book might fit the bill. :-) / eitan On Mon, Jul 20, 2009 at

[android-beginners] Re: book questions..

2009-07-20 Thread Mark Murphy
Eitan Suez wrote: thanks for the detailed description/comparison. i've already read the first edition of the prags' book, and am looking for something complementary to it, but up to date as well. so perhaps a more detailed treatment like a 1100-page book might fit the bill. :-) To be

[android-beginners] Re: book questions..

2009-07-20 Thread Oliver Rennfort
I just can say it again, mark's 3books are great and up to date. And with the subscribtion, you get updates. And since cupcake will be soon lod when donut comes. So get the 3 pdf books for 35$. Android Apps Developer On Jul 20, 2009 6:53 PM, Mark Murphy mmur...@commonsware.com wrote: Eitan

[android-beginners] Re: Question

2009-07-20 Thread Jose Ayerdis
yes thanks 2009/7/20 Yusuf T. Mobile yusuf.s...@t-mobile.com Oh, that id. So I believe you are referring to the function onListItemClick: protected void onListItemClick(ListView l, View v, int position, long id) Android calls this function when the user clicks on a list item, and

[android-beginners] Re: Basic java threading problems, code inside

2009-07-20 Thread vladimir kroz
Try to remove synchronized from stopThread() and startThread() On Jul 17, 6:29 pm, Kevin Grant kevingra...@gmail.com wrote: I understand the concept of threads, and it almost seems like I understand how to implement them.  This code executes properly until I press the back button (to close),

[android-beginners] Re: book questions..

2009-07-20 Thread janardhan
Hi this is janardhan, Can u send hello android book for me also. I am waiting for u reply. Thanks Regards janardhan On Jul 21, 3:34 am, Mark Murphy mmur...@commonsware.com wrote: eitan wrote: of the books on android that are in print at the moment, can anyone list which ones cover

[android-beginners] How to test activity integration using the test framework?

2009-07-20 Thread Yasser
Hi, My application under test has multiple activities. Example Scenario: - The first activity has a text box and a search button. - After entering some text and clicking the search button, the results are displayed on a separate activity. With ActivityInstrumentationTestCase for the first

[android-beginners] Re: android webservice

2009-07-20 Thread Desu Vinod Kumar
HI Which Webservice u were using. On Mon, Jul 20, 2009 at 6:20 PM, saurabh sinha saurso...@gmail.com wrote: I am android beginner I need a complete example of android webservice -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09176147148