Re: [android-beginners] How to set location information permanently in the emulator

2010-08-09 Thread Mark Murphy
, it says waiting for location details. Correct. You need to simulate another GPS fix. Can someone advice me what is wrong. Nothing is wrong. The emulator emulates GPS fixes, which are transient events. I am not clear how to setup location permanently. You can't -- sorry. -- Mark Murphy

Re: [android-beginners] Howto integrate 3rd party app to tabhost

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 7:59 AM, daph...@googlemail.com daph...@googlemail.com wrote: I using android 2.2 and I want to integrate a third party application into the tabulator. Is that possible and how can I do that? It is not possible, sorry. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] Opening the preferences.xml file

2010-08-07 Thread Mark Murphy
, 0, 0, 0, 8, 1, 0, 0, 26, 1, 0, 0, 114, 1, 0, 0] Any idea what might be wrong? 1. XML resources are converted into a binary XML format as part of the build process. 2. XML resources are not raw resources. Use getXml(), not getRawResource(). -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] Re: Google map tiles missing with adb install

2010-08-04 Thread Mark Murphy
keys? I don't know how else to explain your map symptoms. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received

Re: [android-beginners] Re: Problem sending variable to java activity.

2010-08-03 Thread Mark Murphy
(ImagePosition, -1); If I create the variable in this activity and blank those lines out it works, but I need the variable bringing accross. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your error. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] ATTENTION: Android-Beginners will be permanently disabled on August 9 2010

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 1:59 PM, Kevin Brooks bear35...@gmail.com wrote: I just joined the new group.  Hopefully Mark Murphy will decide to join as well an Volunteer to be a Moderator. Personally, I would recommend people use StackOverflow. For those who find StackOverflow to be ineffective

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
anymore. BTW, since you're one who is decrying the shutdown of this list -- IMHO, this is nowhere remotely near a beginner question. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Development Wiki

Re: [android-beginners] Changing WiFi network login

2010-08-03 Thread Mark Murphy
multiple configurations, one per user, regardless of what your device expects. Similarly, most households and businesses do not have one WiFi access point per user. I don't know where your other accounts are going to come from. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Google map tiles missing with adb install

2010-08-03 Thread Mark Murphy
, and have not recently looked out the window to notice that the world around you is now a gray grid, and that in the distance the theme music to The Twilight Zone is playing softly :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog

Re: [android-beginners] Closing the activity completely

2010-08-02 Thread Mark Murphy
effect? Just call finish(), please. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed

Re: [android-beginners] Problem launching another java file from app.

2010-08-02 Thread Mark Murphy
On Mon, Aug 2, 2010 at 6:06 AM, Justin justinbrett1...@gmail.com wrote: Which loads up the new page fine, but then causes a error and forces close. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your force close. -- Mark Murphy

Re: [android-beginners] Re: Plug for Beginning Android 2

2010-08-02 Thread Mark Murphy
behind on that specific title). BTW, if anyone has questions on these books, the [cw-android] Google Group is a better spot than here for them: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com

Re: [android-beginners] Re: custom listview add button above listeview

2010-08-01 Thread Mark Murphy
. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android

Re: [android-beginners] Re: Pre-loading an SQLite database

2010-08-01 Thread Mark Murphy
back to rolling the REST yourself with HttpClient. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you

Re: [android-beginners] Plug for Beginning Android 2

2010-08-01 Thread Mark Murphy
On Sun, Aug 1, 2010 at 1:05 PM, Doug Gordon gordo...@gmail.com wrote: For that purpose, I would highly recommend Beginning Android 2 by some guy named Mark Murphy who shows up in these forums on occasion :-). I dunno. I hear he's balding. Can you really trust a book from a guy who can't keep

Re: [android-beginners] Re: Launching an About screen from Preferences

2010-07-30 Thread Mark Murphy
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Groups Android Beginners group

Re: [android-beginners] Re: Launching an About screen from Preferences

2010-07-30 Thread Mark Murphy
a documentation patch and see if it gets approved. Or implement the capability using a documented means -- Kostya's suggestion of setOnPreferenceClickListener() is probably simplest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http

Re: [android-beginners] Re: Launching an About screen from Preferences

2010-07-30 Thread Mark Murphy
., dedicated IntentPreference class). In fact, if you wanted to be super-safe, implementing an IntentPreference class may not be that difficult, and you then aren't dependent on an undocumented feature. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
inside the  listview no matter what i do although yours came close to doing what i want.i want a button outside the listview and doesn't get highlighted by the list viewthankyou for your time. Which is precisely what Nick and Kostya have supplied in the answers. -- Mark Murphy (a Commons

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
no matter what way you format the XML the button gets displayed multiple times not 1 time multiple times The XML that was supplied is not for the *row*. It is for the *container around the ListView*. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Re: custom listview add button above listeview

2010-07-30 Thread Mark Murphy
/commonsguy/cw-android/tree/master/FancyLists/Recycling/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you

Re: [android-beginners] how to self-close an Activity

2010-07-29 Thread Mark Murphy
To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog

Re: [android-beginners] read flat file from resources

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 6:33 PM, Droid rod...@gmail.com wrote: I want to read words from a flat text file in res. Is that possible - snippet of code please? getResources().openRawResource(R.raw.your_file_name) Also, can I write to a similar file in resources. No, sorry. -- Mark Murphy

Re: [android-beginners] Re: Launching an About screen from Preferences

2010-07-29 Thread Mark Murphy
://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http

Re: [android-beginners] Re: Launching an About screen from Preferences

2010-07-29 Thread Mark Murphy
better luck. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Groups Android

Re: [android-beginners] need help validating if application works on specific devices

2010-07-28 Thread Mark Murphy
undocumented unsupported APIs, you will have problems. Do not use undocumented or unsupported APIs, and you will have better luck. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_

Re: [android-beginners] Directory names

2010-07-28 Thread Mark Murphy
, .src. Is there a restriction on dir names (other than the common rules that apply on most OSs)? You can create them. You can't see them. Directories with leading periods are normally suppressed from directory listings. This has been standard Linux behavior for a very long time. -- Mark Murphy

Re: [android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Mark Murphy
On Wed, Jul 28, 2010 at 7:24 PM, Brad Taylor djlm...@gmail.com wrote: I new to the SDK and have intermediate Java skills and I am having an issue with adding an AlertDialog to a Receiver I have created. Try using a dialog-themed Activity and startActivity() instead. -- Mark Murphy (a Commons

Re: [android-beginners] Problems using AlertDialog in a onReceive() method

2010-07-28 Thread Mark Murphy
attribute to your activity element in the manifest: android:theme=@android:style/Theme.Dialog http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme Then in my receiver class call the startActivity()? Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Google Image on Google map

2010-07-28 Thread Mark Murphy
properly for that tile sometime in the future. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message because you

Re: [android-beginners] OutputStream on assets file

2010-07-28 Thread Mark Murphy
crashes, because assets are not modifiable. Pick your poison. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received this message

Re: [android-beginners] Re: Language change to Hindi

2010-07-27 Thread Mark Murphy
://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com

Re: [android-beginners] Contents of dex

2010-07-27 Thread Mark Murphy
On Tue, Jul 27, 2010 at 11:50 PM, kypriakos demet...@ece.neu.edu wrote: is there a way to view what is enclosed (file list) in the dex file? http://dedexer.sourceforge.net/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http

Re: [android-beginners] Showing a screen from a preference selection

2010-07-23 Thread Mark Murphy
when the Show About menu item is selected? Any sample xml code around like that? No, but you can add the relevant options menu methods to your PreferenceActivity subclass, as with any other activity, then load that layout into a dialog or separate activity. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] Re: Showing a screen from a preference selection

2010-07-23 Thread Mark Murphy
for a Preference that launches another activity, there isn't one in the SDK. You would have to write your own, or possibly see if the Settings application has one that you can mooch from the Android open source code. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-beginners] Re: null intent returned in onActivityResult

2010-07-22 Thread Mark Murphy
. However, my home base is in Pennsylvania. I get out to Silicon Valley a few times a year. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1

Re: [android-beginners] Calling back function

2010-07-21 Thread Mark Murphy
Call finish(). On Wed, Jul 21, 2010 at 7:14 AM, Bhaban N and...@gmail.com wrote: How can I go to the previous activity by pressing some button programmatically instead of pressing default back button on phone. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Spinners identical in XML but look different when run

2010-07-21 Thread Mark Murphy
that appears when the user presses the drop-arrow. How can I make them look the same Use the same layouts in your adapters. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide

Re: [android-beginners] null intent returned in onActivityResult

2010-07-21 Thread Mark Murphy
in calling Activity:       �...@override        protected void onActivityResult(int requestCode, int resultCode, Intent data) {                // data is coming back as null.        } -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog

Re: [android-beginners] Source code

2010-07-20 Thread Mark Murphy
year. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google

Re: [android-beginners] Re: Calling an AlertDialog from inside onOptionsItemSelected

2010-07-20 Thread Mark Murphy
cases where that is the right method to use, I can't think of any of them off the top of my head. Certainly if you're trying to do anything with the GUI, getApplicationContext() is lobotomized -- your Activity is a far better Context for methods that need one. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] Re: Including libraries in project

2010-07-18 Thread Mark Murphy
and build your APK and you're done...assuming the JAR is Android-friendly. For example, here is a sample project using a re-compiled edition of the BeanShell interpreter: http://github.com/commonsguy/cw-android/tree/master/Java/AndShell/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http

Re: [android-beginners] Re: Including libraries in project

2010-07-18 Thread Mark Murphy
it in the assets dir I can see it being wrapped inside the apk. I suspect having it there will be useless. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version

Re: [android-beginners] using intent to switch between a simple activity and a tab activity

2010-07-18 Thread Mark Murphy
back to A but the app crashes , how ever if i go from B to a normal activity ,it  works perfectly well , so the problem is in A being a tab activity , please help Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your crash. -- Mark Murphy

Re: [android-beginners] Re: ActivityNotFoundException and txt files

2010-07-16 Thread Mark Murphy
text editor, contact the author to see how to integrate your code with theirs. There is no text editor built into Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide

Re: [android-beginners] RTC vs RTC_WAKEUP

2010-07-15 Thread Mark Murphy
is asleep, it will not be delivered until the next time the device wakes up. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.9 Available! -- You received

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
work. If just this is insufficient, then the class reference needs to be whatever Context class this code is in, such as the name of the activity. http://en.wikibooks.org/wiki/Java_Programming/Nested_Classes -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 6:05 PM, Raul Martinez raul5...@gmail.com wrote: do i have to modify the android manifest file as well to add the activity? Your Category activity needs to be in the manifest file. Your current activity presumably already is there. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
On Thu, Jul 15, 2010 at 6:57 PM, Raul Martinez raul5...@gmail.com wrote: Ok thanks but what do I use instead of MAIN You do not need an intent-filter if you are starting the activity via the class (Category.class) in your Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

Re: [android-beginners] onItemSelectListener or onItemClickListener, both or none???

2010-07-15 Thread Mark Murphy
/articles/touch-mode.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed

Re: [android-beginners] onItemSelectListener or onItemClickListener, both or none???

2010-07-15 Thread Mark Murphy
used to open the menu with, to an email? If this is possible how would I best do that?? http://stackoverflow.com/questions/1247983/problem-sending-an-email-with-an-attachment-programmatically -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] onItemSelectListener or onItemClickListener, both or none???

2010-07-15 Thread Mark Murphy
adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your force close error. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide

Re: [android-beginners] intents

2010-07-15 Thread Mark Murphy
://en.wikibooks.org/wiki/Java_Programming/Nested_Classes In the future, use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine the Java stack trace associated with your force close. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Re: Keep accelerometer active

2010-07-15 Thread Mark Murphy
. This is the weirdest thing yet - an object just disappearing like that. Any ideas? FWIW, take a look at my WakefulIntentService to see if it gives you any ideas: http://github.com/commonsguy/cwac-wakeful -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] onItemSelectListener or onItemClickListener, both or none???

2010-07-15 Thread Mark Murphy
to this mail. You are missing some key pieces of information, like the thing to send. http://www.androidguys.com/2009/11/02/a-call-to-action-action_send-that-is/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com

Re: [android-beginners] Map Overlay Image refresh

2010-07-14 Thread Mark Murphy
of your OverlayItems. I have not combined MyLocationOverlay with invalidate() before, so I do not know what other options there might be. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's

Re: [android-beginners] Re: I/O

2010-07-14 Thread Mark Murphy
to arbitrary paths on hardware. Please use getFilesDir() to find a safe spot to write files on the on-board flash for your application, or Environment.getExternalFilesDir() for the root of the external storage (SD card). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Re: I/O

2010-07-14 Thread Mark Murphy
), and you need the WRITE_EXTERNAL_STORAGE permission. What package carries the getFilesDir()? That is a method on Context, and therefore is available to all subclasses of Context, like Activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Re: I/O

2010-07-14 Thread Mark Murphy
, so long as you get more Android knowledge in bulk form, rather than asking a whole bunch of questions that take time for us to answer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy

Re: [android-beginners]

2010-07-14 Thread Mark Murphy
telling me R.layout.main cannot be resolved, any ideas what might be wrong? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available

Re: [android-beginners] buttons

2010-07-14 Thread Mark Murphy
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed

Re: [android-beginners] downloadable tutorial resources?

2010-07-13 Thread Mark Murphy
client (formerly a Twitter client), so that may limit its usefulness while you are on your flight. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com

Re: [android-beginners] Error when adding gdata jar library to Android

2010-07-13 Thread Mark Murphy
. The possibly-tolerable answer: on some server, convert the Word document to HTML, and try rendering the HTML in WebView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http

Re: [android-beginners] downloadable tutorial resources?

2010-07-13 Thread Mark Murphy
Google Group, as I don't want to clutter this list with too much CommonsWare-specific stuff: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2

Re: [android-beginners] Re: Emulator

2010-07-13 Thread Mark Murphy
On Tue, Jul 13, 2010 at 12:44 PM, kypriakos demet...@ece.neu.edu wrote: You can?? That's super - where can I find documentation on that? Or is it straight forward? You just run the app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Application monitoring

2010-07-13 Thread Mark Murphy
be? You can access LogCat via adb logcat, DDMS, or the DDMS perspective in Eclipse. Or, just Eclipse's debugger. Etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http

Re: [android-beginners] MapController.setCenter misbehaving

2010-07-13 Thread Mark Murphy
? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android

Re: [android-beginners] Emulator

2010-07-12 Thread Mark Murphy
restarting it, though. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google

Re: [android-beginners] Re: Calling localhost web service from emulator

2010-07-12 Thread Mark Murphy
On Sat, Jul 10, 2010 at 6:17 AM, NIK nikolaos.katsa...@gmail.com wrote: So, the only way of calling a localhost web service from the emulator is by using the actual network IP address? http://developer.android.com/guide/developing/tools/emulator.html#networkaddresses -- Mark Murphy (a Commons

Re: [android-beginners] add view programmatically - crash

2010-07-12 Thread Mark Murphy
, in this case, is that course_main is null, since you did not assign any value to it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You

Re: [android-beginners] is doable with android 2.1 and upper ?

2010-07-12 Thread Mark Murphy
program, one that lets you configure the notification sound. There are a few email programs on the Market (e.g., K-9). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http

Re: [android-beginners] Re: add view programmatically - crash

2010-07-12 Thread Mark Murphy
dialog saying your application has crashed, then LogCat will have a Java stack trace. Please check again. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http

Re: [android-beginners] Gallery

2010-07-12 Thread Mark Murphy
://developer.android.com/reference/android/widget/Gallery.html you will see that there is no android:orientation attribute available. A Gallery can only be horizontal, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http

Re: [android-beginners] Error when adding gdata jar library to Android

2010-07-12 Thread Mark Murphy
project. Is there another way to upload and display a .doc document in Android? Upload it...where? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com

Re: [android-beginners] Tabacitivty

2010-07-11 Thread Mark Murphy
at least one tab. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google

Re: [android-beginners] Restricting the input in an edit text

2010-07-11 Thread Mark Murphy
On Sat, Jul 10, 2010 at 10:54 PM, Emmen Farooq farooq.em...@gmail.com wrote: How do I a ) Restrict special characters from being entered into an edit text ? I have no idea what special characters are. Take a look at android:inputType and setKeyListener(). -- Mark Murphy (a Commons Guy) http

Re: [android-beginners]

2010-07-10 Thread Mark Murphy
startActivity() to start up your activity with the next ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You

Re: [android-beginners] Consolidating two SharedPreferences issues.

2010-07-09 Thread Mark Murphy
if there is a defaultValue set. AFAIK, you cannot have a ListPreference of an integer-array. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available

Re: [android-beginners] Re: Consolidating two SharedPreferences issues.

2010-07-09 Thread Mark Murphy
string-array On Fri, Jul 9, 2010 at 2:37 PM, Bret Foreman bret.fore...@gmail.com wrote: If not an integer-array, what should be the type of the parallel array for the ListPreference? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com

Re: [android-beginners] changing the shape of buttons

2010-07-09 Thread Mark Murphy
to be the background that is changed, to make it appear non-rectangular. Since the background is a StateListDrawable defined via an XML drawable resource, this is eminently doable, but not something you can do in five minutes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] framelay out

2010-07-09 Thread Mark Murphy
/hello-tabwidget.html , thanks in advance for any help -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received

Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-08 Thread Mark Murphy
or using some other data type instead of String. Possibly in the CommonTempLogic(); Place CommonTempLogic in the try catch block and see. Caused by: java.lang.ClassCastException: java.lang.String -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http

Re: [android-beginners] Access to Download Manager?

2010-07-08 Thread Mark Murphy
On Wed, Jul 7, 2010 at 6:07 PM, Florp sgoff...@gmail.com wrote: The Market and Web-Browser apps seem to share a nice download manager; is there a way to use that in my own Apps? No, sorry, that is not part of the Android SDK at this time. -- Mark Murphy (a Commons Guy) http://commonsware.com

Re: [android-beginners] Screen problem

2010-07-08 Thread Mark Murphy
your data from the old activity to the newly-created one in the new orientation. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You

Re: [android-beginners] Relationship between bindService and onServiceConnected

2010-07-07 Thread Mark Murphy
called even after some time has passed. Any ideas on where I should look for the problem? Look for LogCat messages in adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http

Re: [android-beginners] Exception when using a BroadcastReceiver for battery-change events

2010-07-07 Thread Mark Murphy
and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Mark Murphy

Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-07 Thread Mark Murphy
cause. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 Available! -- You received this message because you are subscribed to the Google Groups Android

Re: [android-beginners] UI Question - ListView and Relative View

2010-07-06 Thread Mark Murphy
holds everything else, including the ListView. You use RelativeLayout rules (e.g., android:layout_alignParentTop, android:layout_below) to position the widgets relative to each other and the bounds of the RelativeLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Designing a UI, need help

2010-07-06 Thread Mark Murphy
be...? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 Available! -- You received this message because you are subscribed to the Google Groups Android

Re: [android-beginners] Application not scrolling

2010-07-05 Thread Mark Murphy
everything in a ScrollView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups

Re: [android-beginners] Re: Application still consumes battery even tough it is closed

2010-07-04 Thread Mark Murphy
to. It has behaved this way for over two years. If you are unable to replicate this, there is a problem in your development environment. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android

Re: [android-beginners] Re: Application still consumes battery even tough it is closed

2010-07-04 Thread Mark Murphy
onBackPressed(), so such behavior will not be hidden too often. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Consulting: http://commonsware.com/consulting -- You received this message because

Re: [android-beginners] Re: Unable to start service

2010-07-03 Thread Mark Murphy
are attempting to do something there that cannot be done in a constructor or initializer. Move that code to onCreate() of your service, and you should be in better shape. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com

Re: [android-beginners] How to install and run Python on Adroid?

2010-07-03 Thread Mark Murphy
On Sat, Jul 3, 2010 at 12:31 PM, Rick Liu totoroliu1...@gmail.com wrote: I have a software application written in Python. How to install Python interpreter and run Python program on Android? See the Android Scripting Environment: http://code.google.com/p/android-scripting/ -- Mark Murphy

Re: [android-beginners] back button when in ListActivity causes runtime exception

2010-07-02 Thread Mark Murphy
being called. What should be my next debugging step? Continue reading your stack trace. Look for the Caused by: line to find out the actual exception. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy

Re: [android-beginners] Unable to start service

2010-07-02 Thread Mark Murphy
[native method] That is not an exception. It is a stack trace. You are missing the exception part, and the Caused by: portion. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your

Re: [android-beginners] SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Mark Murphy
But getWritableDatabase is not calling the SQLiteOpenHelper.onCreate method which is where the DB gets created. Then you already have a database. How can I cause onCreate to be called? Delete the existing database (e.g., using DDMS's File Manager). Then call getWritableDatabase(). -- Mark

Re: [android-beginners] Re: Unable to start service

2010-07-02 Thread Mark Murphy
. If you continue execution past this point, your exception, with a full exception message and two-tier stack trace, will be written to logcat. This will be accessible from Eclipse via the DDMS perspective, in the LogCat tab, in red. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

Re: [android-beginners] Re: back button when in ListActivity causes runtime exception

2010-07-02 Thread Mark Murphy
://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com

Re: [android-beginners] Re: SQLiteOpenHelper.getWritableDatabase ambiguous documentation

2010-07-02 Thread Mark Murphy
your.package.name is the package you gave your application in the manifest, and your.database.name is the name you gave the database. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office

  1   2   3   4   5   6   7   8   9   10   >