[android-beginners] Re: How to define intent constructor

2009-08-12 Thread Mark Murphy
the this for an outer class, scope it: new Intent(MyActivityName.this, SubActivity.class) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received

[android-beginners] Re: prting procedure for Android on SMDK2440 board

2009-08-11 Thread Mark Murphy
/android-porting -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: String.xml

2009-08-11 Thread Mark Murphy
to the first i want to start a function... Use SharedPreferences. Or, use an ordinary text file. Or, use a database. Or, use a static public data member. Or, use a service. Or, use a content provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-beginners] Re: Two questions

2009-08-11 Thread Mark Murphy
)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners

[android-beginners] Re: Two questions

2009-08-11 Thread Mark Murphy
; }; } Well, the startActivity() statement seems OK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Two questions

2009-08-11 Thread Mark Murphy
not be there, with your onClick() implementation being moved to the View.OnClickListener you have not set up The Notepad tutorial, linked to above, will demonstrate how to use a Button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS

[android-beginners] Re: Run only when the application in focus

2009-08-10 Thread Mark Murphy
Leo Lou wrote: I have enabled a receiver in AndroidManifest. Can I disable the receiver in run-time? Try PackageManager#setComponentEnabledSetting(). AFAIK, this should work for a manifest-registered receiver, though I have not tried it. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: want some ebboks to download

2009-08-10 Thread Mark Murphy
distributable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: want some ebboks to download

2009-08-10 Thread Mark Murphy
into details, we haven't hit that mark yet but should soon, conceivably before the year is out though probably drifting into early 2010. That will trigger releasing the oldest editions under a Creative Commons non-commercial license. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: RelativeView

2009-08-10 Thread Mark Murphy
tinyang wrote: Button android:id=/@id/guide/ android:layout_width=/wrap_content/ android:layout_height=/wrap_content/ android:layout_below=/@+id/title/ Only use the + sign when declaring an ID via android:id. In your layout_below, remove the + sign. -- Mark Murphy (a Commons Guy

[android-beginners] Re: RelativeView

2009-08-10 Thread Mark Murphy
/ android:layout_width=/wrap_content/ android:layout_height=/wrap_content/ android:layout_above=/@id/guide/ android:layout_centerHorizontal=/true/ android:text=/BirdTracker Main Menu/ You cannot reference @id/guide here, because that widget has not been declared yet. -- Mark Murphy (a Commons

[android-beginners] Re: Android MySQL Database

2009-08-10 Thread Mark Murphy
/tutorials/notepad/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: Android projects only in Java ?

2009-08-10 Thread Mark Murphy
, and it is designed to add native libraries to an application, not for writing applications. The Android API is only in Java, right ? The SDK is only in Java. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http

[android-beginners] Re: Rename NotePad project

2009-08-10 Thread Mark Murphy
can get to LogCat via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Pictures and EXIF data

2009-08-09 Thread Mark Murphy
, it will not work without modification. With open source third-party libraries, all problems like this are solvable, given sufficient time and Red Bull. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
, the smaller widgets in the column will expand to fill the space set aside by the largest widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.0 Available

[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
for rows in a ListView, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
tinyang wrote: Thanks Mark for the reply. Does that then mean that FindViewById searches all xml files to find the correct view? No, calling findViewById() on an Activity searches the layout you provided in setContentView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Center an element

2009-08-09 Thread Mark Murphy
on a different sized screen/device, it can auto center itself? Put it inside a RelativeLayout and use android:layout_centerInParent=true. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
on the right edge of the screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
Stefan wrote: thanks for the fast answer again. i work with the 1.5r3 version, too. but in eclipse, if i switch in the Layout tab, all widget are in one row. I'd trust the emulator over the Layout tab. But, then again, I don't use Eclipse... -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Pictures and EXIF data

2009-08-08 Thread Mark Murphy
, such as Sanselan: http://incubator.apache.org/sanselan/site/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: Pictures and EXIF data

2009-08-08 Thread Mark Murphy
taken with the camera already? I have not seen one; then again, I have not really looked. Also, Are there any code examples one might recommend for taking a picture with your app/calling the camera library? The SDK ships with some camera examples. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Share Code

2009-08-07 Thread Mark Murphy
language and some sort of HTTP-based exchange via some rented Web host, at least for the prototype of your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org

[android-beginners] Re: Sample Code missing

2009-08-07 Thread Mark Murphy
, the samples are in: $SDK_ROOT/platforms/android-1.5/samples/ where $SDK_ROOT is whatever directory you installed the SDK to. Unless they changed the 1.5r3 SDK since I downloaded it, the ZIP file definitely contains the samples. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Why XML to define layouts/components?

2009-08-07 Thread Mark Murphy
is available and valid. I use it sometimes myself, though not terribly often. Choose the approach that you like. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: I am developing an app using Bluetooth on my G2 phone (Tmobile's HTC MyTouch 3G) but am unable to find any documentation on Bluetooth classes in Android 1.5. Need help around that!! There are no Bluetooth classes in the SDK at this time. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: What about WiFi? Use Java sockets. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: How do I see so many Bluetooth Apps around? Presumably, they are using undocumented APIs that are subject to breakage in future Android releases. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org

[android-beginners] Re: Displaying Decimals with ListView

2009-08-05 Thread Mark Murphy
are implicitly relying upon something like Float#toString() to display the numeric data. If you want control over the formatting, you will need to use something like setViewText() or a ViewBinder with your SimpleCursorAdapter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: Extending Activity Class

2009-08-05 Thread Mark Murphy
to learn Java and Android at the same time may prove confusing. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: Doing a periodical task. Counter?

2009-08-04 Thread Mark Murphy
that uses SystemClock.sleep() and a Handler. Option #7: Use AsyncTask, where you sleep() for a bit in doInBackground() and check the mic/schedule the next task in onPostExecute(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-03 Thread Mark Murphy
to: That is a very poor/disappointing decision by OS designers that really limits the possibilities of the phone That is, IMHO, a completely over-the-top depiction of the situation. That being said, I apologize for any condescension. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
erykthege...@googlemail.com wrote: does anyone have any thoughts as to why this isn't working, or suggestions for workarounds? Without any code, in this case, it is difficult to provide you with advice. If possible, please post the activity that is giving you trouble. -- Mark Murphy

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
: @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0,1,0, Set Fav Dir); menu.add(0,2,0,Change Layout); return(super.onCreateOptionsMenu(menu); } and see if that helps. Or, define your menus in XML and use MenuInflater. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
it out and the menu displays perfectly... So I guess that method is stopping it detecting my menu key press. You need to return(super.onKeyDown()) if you don't handle the KeyEvent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-01 Thread Mark Murphy
are certainly welcome to your opinion, just as I am welcome to my opinion that your expectations are unrealistic, even for the most open source of projects. Is there anywhere to request changes and/or bugs? http://b.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer

[android-beginners] Re: Command for exit froma an application

2009-08-01 Thread Mark Murphy
(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group

[android-beginners] Re: Follow up on my Acitivty Lifecycle Question

2009-08-01 Thread Mark Murphy
dubious. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group

[android-beginners] Re: Command for exit froma an application

2009-07-31 Thread Mark Murphy
to close up that activity, and if you do that from the first activity, it will return the user to the home screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado

[android-beginners] Re: OnItemClickListener

2009-07-31 Thread Mark Murphy
suggestions about what I might be doing wrong? What does your Java stack trace tell you? You can get this via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http

[android-beginners] Re: Audio/Video User Interface

2009-07-31 Thread Mark Murphy
with a MediaPlayer: https://github.com/commonsguy/vidtry/tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: Port AbsoluteLayout to any other Layout to draw at x,y position

2009-07-31 Thread Mark Murphy
such a tutorial is available, though, I would just stick with AbsoluteLayout for now. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-07-31 Thread Mark Murphy
., PhoneWindowManager) and is not replaceable by SDK applications, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: numeric datatype in sqlite, and display problem.

2009-07-30 Thread Mark Murphy
into the database, it is difficult to determine the source of your problem. It may be you are using float/Float where you need to be using double/Double. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org

[android-beginners] Re: Using Android icon artwork as basis of icon for a paid app - acceptable?

2009-07-30 Thread Mark Murphy
is required under the terms of the Creative Commons Attribution license. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message

[android-beginners] Re: Encoding for G1 using ffmpeg

2009-07-30 Thread Mark Murphy
/f7f1600cc7e85f2c/6853876731ff2ae9?lnk=raotpli=1 http://groups.google.com/group/android-developers/browse_thread/thread/7a3a4cce5b840f5f -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

[android-beginners] Re: GridView example

2009-07-29 Thread Mark Murphy
Jens Vegeby wrote: Well, I personaly like the books at http://www.commonsware.com They are cheap too. Thanks! Though I like to think of them as competitively priced... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training

[android-beginners] Re: Programmatically Adding a LinearLayout Error

2009-07-28 Thread Mark Murphy
. Here is the stack: That is not a complete stack trace. That is Eclipse telling you it has suspended execution of your program. In particular, you have lost the information about that RuntimeException, which would be really useful for you to figure out what your problem is. -- Mark Murphy

[android-beginners] Re: Getting started

2009-07-27 Thread Mark Murphy
can I build the equivalent of a jar file from the command-line? ant debug or ant release. http://developer.android.com/guide/developing/other-ide.html http://developer.android.com/guide/tutorials/hello-world.html#noeclipse -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Getting started

2009-07-27 Thread Mark Murphy
changes and is a megabyte in size, would anything prevent me from doing that, or impose difficulty? Well, it still is a phone, so you're not exactly flush with RAM and storage space. A 1MB data structure shouldn't pose a problem, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Failed to find provider info for com.google.settings

2009-07-27 Thread Mark Murphy
it is generating a NullPointerException. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: Telling another activity which item was clicked.

2009-07-27 Thread Mark Murphy
the popup activity which item is clicked? i don't understand :) Use putExtra() on the Intent you use with startActivity(), and get...Extra() in the activity to be started, to pass over enough information to allow the second activity to perform its job. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
and whatnot. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
added to projects. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
, but you are running quite the risk. http://code.google.com/p/android/issues/detail?id=2329 If you are successfully adding javax.* classes to your SDK application, perhaps from Apache Harmony, count your blessings, and consider letting us know which ones work! -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: TicTacToe et al

2009-07-26 Thread Mark Murphy
). But, then again, I haven't given that a lot of thought. Generally speaking, you will get better results on this list if you ask focused, tactical questions. I have some advice I posted on getting assistance with Android up on AndroidGuys: http://androidguys.com/?p=5738 -- Mark Murphy (a Commons Guy

[android-beginners] Re: Switching layouts

2009-07-25 Thread Mark Murphy
() methods to retrieve the value in the started activity. -- 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

[android-beginners] Re: [android-begginers] Does android 1.5 work on ubuntu 9.04?

2009-07-25 Thread Mark Murphy
emulator from command line (just the emulator, not the hello world application), but it's very very slowly. All I can tell you is, it works for me, and there have been others on these lists who have indicated they have similar environments. -- Mark Murphy (a Commons Guy) http://commonsware.com Android

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-25 Thread Mark Murphy
Off ebay, I had to ship it to my mom's house [no can do to Japan]. Then she died. Will be there the week after next to pick it and her things up. Good news is I called her to ask her if she'd forward my dev phone to me. It was the last time we talked... I am sorry for your loss. -- Mark

[android-beginners] Re: intent using parameter getting error

2009-07-25 Thread Mark Murphy
responses. Look at your LogCat to see what the exception is via the Java stack trace, then fix it. You can access LogCat via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-24 Thread Mark Murphy
, for such updates. Hence, your questions need to be directed to the mobile phone carriers serving your area. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available

[android-beginners] Re: Help with threading and UI changes

2009-07-24 Thread Mark Murphy
, it is difficult to help you. For your scenario, consider using AsyncTask rather than your own Handler. You can start your activity in onPostExecute(), update your original activity in onPublishProgress(), etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-24 Thread Mark Murphy
. This is not an appropriate list for this discussion, as this list is for QA with beginners in using the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado

Re: Automatic Updates - iphone vastly superior (Was Re: [android-beginners] Re: Availability of Developer Phone.)

2009-07-24 Thread Mark Murphy
the device manufacturer. I take it from your statement then from a technical point of view that the SDK can not be used to allow users any choice as when to update if it is being pushed from a carrier. Correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: playing a video stream created by vlc on android?

2009-07-24 Thread Mark Murphy
in his application. There may be other problems with his scenario, but java.io.IOException: Prepare failed.: status=0x on an rtsp:// URL feels like a missing INTERNET permission to me. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming

[android-beginners] Re: Can I put a custom view in a alert dialog box?

2009-07-24 Thread Mark Murphy
Oliver Rennfort wrote: Hi is it posible to put a custom view in a alert dialog box? Try setView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

[android-beginners] Re: [android-begginers] Does android 1.5 work on ubuntu 9.04?

2009-07-24 Thread Mark Murphy
the emulator outside of Eclipse and see what happens. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: AlertDialog text input problem

2009-07-24 Thread Mark Murphy
(R.id.search_edit). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: How to pass a string into a new activity via intent

2009-07-23 Thread Mark Murphy
Hi I need to pass 1 or 2 string var to a new activity when I start them via a intent How do I pass them in from activity 1 and then how do igrab them in my activity2? Use putExtra() and getStringExtra() on Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App

[android-beginners] Re: plz tell me what is pendingIntent where is using in android

2009-07-23 Thread Mark Murphy
http://developer.android.com/reference/android/app/PendingIntent.html An Intent is something that is used right now; a PendingIntent is something that may create an Intent in the future. You will use a PendingIntent with Notifications, AlarmManager, etc. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Mark Murphy
(list of objects) ) before app exits. Save your data in onPause() or onStop(). Both of those will be called when: -- the user presses Home -- a call comes in and the user takes the call -- the user responds to a Notification -- etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Bug error in source code from book android development 2.1

2009-07-21 Thread Mark Murphy
, a better group is: http://groups.google.com/group/cw-android So, if the emulator provides a similar crash, post a stack trace over on that group, and we can take a look at it. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: Using system.out on the andriod

2009-07-21 Thread Mark Murphy
automerc wrote: This is of the parts where i'm using system.out. Use android.util.Log, and look at the output of LogCat (via adb logcat, DDMS, or the DDMS perspective in Eclipse). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your

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

2009-07-20 Thread Mark Murphy
almost all topic in it what you coud need and also easy to follow source code .. Thank you to the writer mark muphy here from the forum. Have a look at his webpage for more details. Www.commonssware.com http://Www.commonssware.com Glad you like 'em! -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: book questions..

2009-07-20 Thread Mark Murphy
) and _Hello, Android_, it is unclear if any of the others are Cupcake-ready. The O'Reilly one might, since it came out around the time the Cupcake preview did, but I haven't read it. second, i'm a little confused by the fact that mark murphy appears to have two books recently published: 'beginning

[android-beginners] Re: book questions..

2009-07-20 Thread Mark Murphy
. :-) To be clear, that's ~1,100 split over three volumes (Android, Advanced Android, Android Programming Tutorials), but you get all three on the Warescription. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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

2009-07-19 Thread Mark Murphy
initializing a new Image view based on a condition and then attaching an onClickListener for each view. But the getId() returning a -1 everytime. Why so? Perhaps you are using an ArrayAdapter, which does not have IDs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: How to set the activity as Main ?

2009-07-18 Thread Mark Murphy
from all other activities. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-beginners] Re: Timeout executing service - how to avoid this?

2009-07-18 Thread Mark Murphy
com.kaloersoftware.flickrwall/.FlickrWallService} Something in your service (onCreate() or onStart(), most likely) is taking too long. Can it help if I do the xml parsing in a thread? Yes. Use AsyncTask or something to move the XML parsing off the thread used for the callback. -- Mark Murphy

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

2009-07-17 Thread Mark Murphy
and the working stuff, and slowly morph your code to look more like mine, until yours begins to work as well. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year

[android-beginners] Re: liste activity, selected item not shown

2009-07-17 Thread Mark Murphy
that option, you may wish to use a selector drawable XML file instead of a plain color, so you can specify different values for normal versus selected. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_

[android-beginners] Re: liste activity, selected item not shown

2009-07-17 Thread Mark Murphy
Hybris wrote: On 17 Lug, 12:36, Mark Murphy mmur...@commonsware.com wrote: If you do not like that option, you may wish to use a selector drawable XML file instead of a plain color, so you can specify different values for normal versus selected. this is the solution i'm exploring now

[android-beginners] Re: liste activity, selected item not shown

2009-07-17 Thread Mark Murphy
of a row, not the ListView. Have two selector drawables, one per color scheme. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message

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

2009-07-17 Thread Mark Murphy
permanently simplify your UI. I have some stuff written up about this issue here: http://androidguys.com/?p=4688 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: android developers challenge II

2009-07-17 Thread Mark Murphy
. Right now, you can read the terms and conditions and work on building your application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

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

2009-07-17 Thread Mark Murphy
., sensors, camera, real GPS, application interop), the more likely it is you will need a piece of actual hardware. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

[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

[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
into smaller parcels via some sort of a work queue (e.g., clone AsyncTask and give it an unbounded work queue, or use your own LinkedBlockingQueue). That gives you finer granularity to stop the background threads (e.g., via an AtomicBoolean flag that gets checked). -- Mark Murphy (a Commons Guy) http

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

2009-07-16 Thread Mark Murphy
intents. What is a user intent? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

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

2009-07-16 Thread Mark Murphy
. SharedPreferences.OnSharedPreferenceChangeListener handles that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you

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

2009-07-16 Thread Mark Murphy
advice as to how to get steps 3 and 4 working? Questions about building and using the open source code are better asked on a list that pertains to those issues: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking

[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

[android-beginners] Re: API for the Android Market?

2009-07-15 Thread Mark Murphy
Android wrote: Is there an API for the Android Market? Not officially, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received

[android-beginners] Re: ContextMenu for ListView

2009-07-15 Thread Mark Murphy
= (AdapterView.AdapterContextMenuInfo)item.getMenuInfo(); delete(info.id); return(true); } return(super.onOptionsItemSelected(item)); } -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http

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

2009-07-15 Thread Mark Murphy
-rw-r--r-- 1 root root 234 2009-04-14 18:04 95-udev-late.rules Gadzooks, you have a lot of rules! I have a total of five rules files. With all of those, you may need to try other numbers than 50- or 51-. I think I heard somebody was using 70- as a prefix. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: How to programatically launch an installed app?

2009-07-10 Thread Mark Murphy
documented, they are likely to break in future releases of Android (or of whatever 3rd party app you attempt to launch). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado

[android-beginners] Re: How to programatically launch an installed app?

2009-07-10 Thread Mark Murphy
ways -- use PackageManager, watch messages in LogCat, examine the source code -- but any of those techniques may result in you creating something that will be unsupported over time. So, no, you do not necessarily need the source code, though it helps. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: SQL Lite question, can you insert negative numbers

2009-07-10 Thread Mark Murphy
* from foo; -1.0 sqlite .exit Inside of Android, you should be able to just put a negative number into your ContentValues that you supply to your insert() call with SQLiteDatabase. Can you provide any source code and the syntax errors you are getting? -- Mark Murphy (a Commons Guy) http

<    1   2   3   4   5   6   7   8   9   10   >