[android-beginners] Cannot select a row in SimpleCursorAdapter with custom layout

2009-10-14 Thread jax
When I use the following layout in a SimpleCursorAdapter I cannot select any rows. In face the setOnItemClickListener methods does not even run at all. ?xml version=1.0 encoding=utf-8? LinearLayout android:orientation=horizontal android:layout_width=fill_parent

[android-beginners] YouTube Android

2009-10-14 Thread Maxood
Does android support youtube videos? If yes then, can someone provide me an example code Thanks, Maxood --~--~-~--~~~---~--~~ 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] Re: How to make a child activity?

2009-10-14 Thread vchris80
thank for your reply, but I still have some troubles: now I have my main activiy been a ActivityGroup and the child activity been a simple Activity. I start the child with this code: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class);

[android-beginners] Re: using servlet in mobile with Android platform

2009-10-14 Thread Anais
Sorry, but I don't understand exactly this class. I think that it could be use when you want to display existent web pages. My purpose is to build an application on the mobile which will call the servlet to retrieve the informations (on our Database for login, password etc... or on the IMAP

[android-beginners] Re: How to add a view to application layout programmatically

2009-10-14 Thread Sven
Hi Justin, my main.xml looks as follows: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView

[android-beginners] Re: Question about app widgets

2009-10-14 Thread Vapor Trail
Thanks you Mark, It worked. Regards Carl On Wed, Oct 14, 2009 at 8:27 AM, Mark Murphy mmur...@commonsware.comwrote: Carl wrote: I would like to ask if it is possible to put 2 widgets in the same application. In other words, having one project, with one manifest.xml file and making 2

[android-beginners] How to clean intermediary build files

2009-10-14 Thread Carl
Hello all, When I was building some source code there was an error with resource files. I fixed the problem, but when I try to build again the source code using the command line, the same error shows up. I presume the builder is using the same intermediary files, made in the previous build, so

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread Smelly Eddie
I may be mistaken, but if you run a clean on the project it should regenerate all the generated java files, namely R. On Oct 13, 11:57 pm, jax jackma...@gmail.com wrote: I have notices that R.java sometimes noes not refresh when I edit (and save) an XML file.  The only way I have been able

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread jax
how to you run a clean? On Oct 14, 6:41 pm, Smelly Eddie ollit...@gmail.com wrote: I may be mistaken, but if you run a clean on the project it should regenerate all the generated java files, namely R. On Oct 13, 11:57 pm, jax jackma...@gmail.com wrote: I have notices that R.java sometimes

[android-beginners] Re: Intent-Filter for custom protocols

2009-10-14 Thread Konstantin Burov
Hello, I have the same problem. Did you figure out how to deal with it? Regards. --~--~-~--~~~---~--~~ 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] Configuring widgets

2009-10-14 Thread android learner
Hello, I have 2 questions related to configuring widgets. I'd really appreciate any help/pointers. 1) I use AppWidget Configuration Activity to get the user preferences and when the user clicks 'Done', I add the widget on to the home screen. Now when the user clicks on the widget, I want to

[android-beginners] Re: How to add a view to application layout programmatically

2009-10-14 Thread Alan Cassar
Title: Alan Cassar, Software Developer | Tel: +356 21334457 | Fax: +356 21 334156 The mistake is in the following lines of code: LinearLayout main = (LinearLayout) AndroidTest.this.findViewById(R.layout.main); Your layout is not called R.layout.main, that is a reference to the whole

[android-beginners] why use onCreateDialog?

2009-10-14 Thread Jeffrey Blattman
i've been wondering this. why would i implement Activity.onCreateDialog()? why wouldn't i just create a new instance of the dialog i want, and call .show() on it? usually a dialog will close itself, but if i doesn't, i just keep a handle to it in a member field and call .dismiss(). --

[android-beginners] Re: Intent is not sending extras data when using getIntent()

2009-10-14 Thread jax
Solved, had to use getLongExtra instead of getIntExtra On Oct 14, 6:53 pm, jax jackma...@gmail.com wrote: I am having a problem with an intent.  I open an activity using the following on a ListView.         public static final String LIST_ID = com.example.myprogram.ListId;        

[android-beginners] Re: Reading/Decoding bar code stored in resources

2009-10-14 Thread Abhishek
Wahib.. sorry for the mistake in your name. Thanks for pointing out. 3 phases of my app 1) Scan picture(bar code) from camera store 2) Decode the barcode 3.) Search the product information and display. I am done with Part 2.. I think you are also working on same application if I am not wrong.

[android-beginners] Re: why use onCreateDialog?

2009-10-14 Thread Balwinder Kaur (T-Mobile USA)
The answer to your question is part of the documentation :) Read under the topic Showing a Dialog http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread Balwinder Kaur (T-Mobile USA)
In Eclipse, under the Project menu, is an option build automatically. That would help you build the R.java file everytime modifications are made. The Clean... option is also there under Project. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and

[android-beginners] Binding data to a View object

2009-10-14 Thread andy17null
Hi, I have an instance variable declared at the top of my Activity: MtgCounter counterOne; MtgCounter has a method getLife that returns an int. I want to display the current value of counterOne.getLife() on a clickable button. This value will change sometimes, including when you click the

[android-beginners] Re: Can't get the altitude from Location.getAltitude()

2009-10-14 Thread cedcox
Same issue. does android manage altitude information ? did someone try on a real phone ? thx Cédric On 12 sep, 22:48, Ken Bradshaw kbrad...@gmail.com wrote: Hi,   Any clue as to the solution on this?  I am having the same issue, though my method of sending the location information is

[android-beginners] listview

2009-10-14 Thread frederic glouzon
hello, I am looking for --~--~-~--~~~---~--~~ 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] Best Hello World Map Tutorial/Application?

2009-10-14 Thread Kent Borg
Still stuck in the mud with trying to do a map application, but I am not very invested so far. I am willing to start over from scratch... Any suggestions for the best tutorial and sample code for doing a map application? Looking around I see http://www.devx.com/wireless/Article/39101/0/page/1

[android-beginners] GridView Problems.

2009-10-14 Thread seabook
Hi all guys, I tried to get the pics from internet and display all the results in the Gridview with a dynamic updated. However it doesn't work properly. I did some research on the internet and using AsyncTask class to avoid the block of the UI Thread. But I just can't get the Gridview Dynamiclly

[android-beginners] listview

2009-10-14 Thread frederic glouzon
hello, I am looking for a way to display the 200+ images of the countries of my listview. The problem is that my listview datas come from a sqlite database with the name of the countries and the name of the images files of the countries flags. I have an issue to get the ressources for the images

[android-beginners] Stuck in Mud Over GWT?

2009-10-14 Thread Kent Borg
Newbie here... I have used Eclipse to get a HelloAndroid to work and now I am trying to get a most basic MapActivity to work. In my source file I have a: import com.google.android.maps.MapActivity; And Eclipse complains Import com.google cannot be resolved. OK, so I Google around and it

[android-beginners] headphone intent receiving

2009-10-14 Thread Richard Thompson
Hi there, I've been working on an application to detect when the headset is plugged in. My application can successfully receive broadcast intents such as airplane mode but when I plug my headphones in nothing happens with my app. If I triger the headset plugged intent in another app then my

[android-beginners] Listening for key press of incoming call

2009-10-14 Thread Ernesto Vance
Hello all, I want to write an application where my application can call a number and have someone on the other end press a sequence of numbers on the keypad of their phone and validate the numbers that where entered from my phone. Basically, my application will call a number, someone pushes some

[android-beginners] How to customize the Android

2009-10-14 Thread Freeman Zhang
HI, I wanna use Android on PMP device, is there has some resource to teach me how to customize the Android System? Such as, cut off the GSM/WCDMA support, cut off camera, etc., to develop the driver to fit the new hardware? How to disable the original Android interface? And how to run my

[android-beginners] Re: Can we develop android apps in C or C++?

2009-10-14 Thread jaffachief
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I believe all apps have to be written in Java. - From the dev guide: All applications are written using the Java programming language. Regards, Magnus Morton -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (MingW32)

[android-beginners] seriously, how can I unsubscribe?

2009-10-14 Thread David Meyer
android-beginners-unsubscr...@googlegroups.com bounces and the list owners aren't responding. Thnx, Dave --~--~-~--~~~---~--~~ 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] Re: seriously, how can I unsubscribe?

2009-10-14 Thread Mark Murphy
David Meyer wrote: android-beginners-unsubscr...@googlegroups.com mailto:android-beginners-unsubscr...@googlegroups.com bounces and the list owners aren't responding. From every email's sig: For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

[android-beginners] Re: How to clean intermediary build files

2009-10-14 Thread Mark Murphy
Carl wrote: Hello all, When I was building some source code there was an error with resource files. I fixed the problem, but when I try to build again the source code using the command line, the same error shows up. I presume the builder is using the same intermediary files, made in the

[android-beginners] linked text view?

2009-10-14 Thread Jeffrey Blattman
i would like to have a textview that is hyperlinked, but not to web resources. i would like the link click to invoke an "on click". is this possible? it strikes me that i could style the text to look hyperlink (color, underline), and then just add an on click listener, but i was hoping there

[android-beginners] Re: linked text view?

2009-10-14 Thread Jeffrey Blattman
continuing on my possible solution ... it appears that android won't let me underline text (hint, hint: maybe i shouldn't be doing this). it looks like i can set the link mask to everything, get the associated URL spans, and set the on click listeners for those. On 10/14/09 10:53 AM, Jeffrey

[android-beginners] Re: Stuck in Mud Over GWT?

2009-10-14 Thread Lance Nanek
A cannot be resolved error for those classes usually means you have the wrong build target set for the project. Right-click on the project in Eclipse, choose the Properties option, then the Android option from the list on the left of the Properties dialog, then make sure the checked build target

[android-beginners] Re: listview

2009-10-14 Thread James Yum
Hi, You can try getIdentifier: http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) However, note this note: Note: use of this function is discouraged. It is much more efficient to retrieve resources by

[android-beginners] Re: why use onCreateDialog?

2009-10-14 Thread James Yum
Hi, Use those if you want the activity to manage the saving and restoring dialogs for you, even after an orientation change. Cheers, James On Wed, Oct 14, 2009 at 7:22 AM, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: i've been wondering this. why would i implement

[android-beginners] Re: How to make a child activity?

2009-10-14 Thread James Yum
Hi, I'm still not sure what you're trying to achieve. Are you really trying to embed an activity within another? You can look at the TabActivity source for a pretty clean example:

[android-beginners]

2009-10-14 Thread saurabh sinha
difference between intent and pending intent --~--~-~--~~~---~--~~ 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

[android-beginners]

2009-10-14 Thread saurabh sinha
what is intent -filter in android --~--~-~--~~~---~--~~ 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

[android-beginners] parcelable encountered class not found?

2009-10-14 Thread Jeffrey Blattman
i have an activity and an intent service. i create a pending intent to call the intent service, and put a serializable object as extra data. when i get the alarm manage, and call setRepeating(), i see the trace below. any ideas? everything is in the same process and the same app, so i'm at a

[android-beginners] Re: Best Hello World Map Tutorial/Application?

2009-10-14 Thread Wayne Wenthin
http://developer.android.com/guide/tutorials/views/hello-mapview.html would be a good start. It is what finally gelled all the other knowledge together for me. On Wed, Oct 14, 2009 at 7:02 AM, Kent Borg kentb...@borg.org wrote: Still stuck in the mud with trying to do a map application, but

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

2009-10-14 Thread James Yum
http://developer.android.com/guide/topics/intents/intents-filters.html http://developer.android.com/guide/topics/intents/intents-filters.html Cheers, James On Wed, Oct 14, 2009 at 12:23 PM, saurabh sinha saurso...@gmail.com wrote: what is intent -filter in android

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread Xavier Ducrohet
Did you uncheck Project Build Automatically? Launching the project forces a compile so that may be what is happening. Xav On Tue, Oct 13, 2009 at 8:57 PM, jax jackma...@gmail.com wrote: I have notices that R.java sometimes noes not refresh when I edit (and save) an XML file. The only way I

[android-beginners] Re: Can't get the altitude from Location.getAltitude()

2009-10-14 Thread RichardC
public void onGpsStatusChanged(int event) { double altitude = 0.0; switch (event) { case GpsStatus.GPS_EVENT_FIRST_FIX: { Location location = locationManager.getLastKnownLocation (locationManager.GPS_PROVIDER); altitude = location.getAltitude(); } break; .

[android-beginners] Re: Stuck in Mud Over GWT?

2009-10-14 Thread Kent Borg
Lance Nanek wrote: You can see instructions about using the Maps API on Android here: http://code.google.com/android/add-ons/google-apis/maps-overview.html I think I have seen that page in my travels...but I am going to keep this page handy at least until I get out the other side on this.

[android-beginners] Re: Reading/Decoding bar code stored in resources

2009-10-14 Thread wahib haq
feels good to see your reply. Its just an assignment for me. yes i am stuck with part 1. In the start i tried a lot with camera stuff and searched for source codes to display camera preview and take snap. I was successful with getting camera preview but either the image was not saved or the image

[android-beginners] how to call a function after taking snap from camera?? plz help

2009-10-14 Thread wahib
Hi!! I am stuck with this issue. When i press a button in my custom app the built-in camera app executes but after taking snap i want to run my code on the image taken but the camera preview doesnt vanishes:S I just want to exit the preview and run my code. Being a newbie i am really confused how

[android-beginners] Re: Can we develop android apps in C or C++?

2009-10-14 Thread Indicator Veritatis
And pay special attention to the line at that link that says: The NDK will not benefit most applications. So the implication is that trying to use the NDK as a means to write your entire application in C/C++ instead of Java should not be expected to work well, if it works at all. On Oct 13,

[android-beginners] Re: R.java sometimes doen not refresh itself in eclipse

2009-10-14 Thread jax
Brilliant I Build Automatically was unchecked. On Oct 15, 5:07 am, Xavier Ducrohet x...@android.com wrote: Did you uncheck Project Build Automatically? Launching the project forces a compile so that may be what is happening. Xav On Tue, Oct 13, 2009 at 8:57 PM, jax jackma...@gmail.com

[android-beginners] Re: Cannot select a row in SimpleCursorAdapter with custom layout

2009-10-14 Thread jax
solved Had to set Clickable and Focussable to false for all items including layouts. On Oct 14, 1:29 pm, jax jackma...@gmail.com wrote: When I use the following layout in a SimpleCursorAdapter I cannot select any rows.  In face the setOnItemClickListener methods does not even run at all.

[android-beginners] happy diwali

2009-10-14 Thread saurabh sinha
Wish u very happy diwali to android developer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this