[android-beginners] Re: auto-enable GPS

2009-09-18 Thread Mark Murphy
GPS, that is the user's right. If the user has GPS enabled, the GPS radio is still normally off, for battery reasons, but it will automatically turn on once you request location updates or something. Similarly, the radio will automatically turn off once you stop using it. -- Mark Murphy

[android-beginners] Re: Development Phone

2009-09-17 Thread Mark Murphy
AngelOD wrote: On Sep 16, 1:31 pm, Mark Murphy mmur...@commonsware.com wrote: I have seen no evidence that HTC makes firmware upgrades available directly. They always handle that through whoever distributed the device (e.g., T-Mobile for the T-Mobile myTouch3G version of the Magic). So

[android-beginners] Re: Terminate call programmatically

2009-09-17 Thread Mark Murphy
Chris Stratton wrote: On Sep 17, 7:12 am, Mark Murphy mmur...@commonsware.com wrote: 2. You cannot hangup/terminate call programmatically from an SDK application. Can you turn off the radio / enter airplane mode? Or will that only pop up a dialog for the user? I think you can

[android-beginners] Re: how to change text in a Button

2009-09-16 Thread Mark Murphy
(R.id.about_button25); -- 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 Beginners group

[android-beginners] Re: Development Phone

2009-09-16 Thread Mark Murphy
Rafa Perfeito wrote: I have an HTC Magic from a carrier. Can i update to 1.6? How? Through the carrier? T-Mobile has not yet announced plans for Android 1.6 for any of their devices. At some point, in all likelihood, they will make such an announcement. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Development Phone

2009-09-16 Thread Mark Murphy
such an upgrade. This is one of the many, many reasons why I hope Android spawns a robust market for devices not tied to a carrier, where you get the device from a device manufacturer and use it with a mobile carrier. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-beginners] Re: Screen orientation

2009-09-16 Thread Mark Murphy
Neilz wrote: How do I test screen orientation on the emulator please? Can I tell it to switch orientation just like you would on the real device? Windows/Linux: Ctrl-F12 Mac with numeric keypad: 5 on the numeric keypad -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Views right of long SingeLine Textviews disappear

2009-09-15 Thread Mark Murphy
android:layout_toLeftOf=..., where ... is the ID of your ImageView. -- 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

[android-beginners] Re: For a project demonstration, any way to clone device screen on a monitor?

2009-09-15 Thread Mark Murphy
deliver Android application development training, for the reasons you seek. I need to do more with it (better UI, handle screen rotations, allow recording, etc.), which I hopefully will get to before year's end. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
, capabilities your app may or may not need. -- 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

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
background processes scrolling by in the log quite often. See above. still looking for an answer. I gave you one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Mark Murphy wrote: There is no reason to use AlarmManager for an activity, and I would not expect AlarmManager to behave very well for an activity. To clarify: if you have a running activity, and you want the activity to do things on a periodic basis, either use Timer/TimerTask (like

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
to trigger code even if the activity is not running, you need a BroadcastReceiver and perhaps some form of service, as per the example I pointed to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
receivers registered this way. There are a few other examples of this technique in the SystemEvents set of projects. If you *do* have your BroadcastReceiver registered via the manifest, though, and you're not getting the alarms, then something else is afoot. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: New to android

2009-09-12 Thread Mark Murphy
) libraries for Java applications. The Android SDK, for creating such applications, requires Java (and, to an extent, XML). -- 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: Basic App -- not working

2009-09-12 Thread Mark Murphy
be that you did not register your activity class in your application's AndroidManifest.xml file. -- 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: Call to activity problem

2009-09-11 Thread Mark Murphy
crashesh as soon as it receives the sms.so please guys help me sort out this.thank you Look at your Java stack trace for the exception (via adb logcat, DDMS, or the DDMS perspective in Eclipse), and it will probably indicate where things are going wrong. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: findViewById bug or documentation problem

2009-09-11 Thread Mark Murphy
. Most of the documentation is correct, AFAICT. You may wish to post this to http://b.android.com if it is not already there. -- 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: preventing Activity from destroying

2009-09-11 Thread Mark Murphy
://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/ -- 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: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
activity is destroyed and started in that case. The Bundle value in onCreate is null (perhaps because onSaveInstanceState was not called when Back was clicked. More accurately, the Bundle is null because the application is starting from scratch. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
Mark Murphy wrote: If you wish to save something when the activity is being destroyed, implement onDestroy() and save it. Where you save it (flat file, SharedPreferences, database, the Internet) is up to you. Bear in mind that onDestroy() may also be called in the case of a screen rotation

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
. The BACK button's job is to destroy the current activity and return control to the previous activity on the stack. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
() to set the result, and use onActivityResult() to retrieve the result. -- 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: how to read sms from inbox

2009-09-10 Thread Mark Murphy
and unsupported. -- 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: Empty list

2009-09-10 Thread Mark Murphy
an associated TextView be visible. Use FrameLayout (or RelativeLayout) so they can take up the same space in the GUI, just one or the other being visible. -- 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: How Can I Block Unwanted Calls.

2009-09-10 Thread Mark Murphy
incoming calls, or random incoming calls, or something. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: JSON help

2009-09-09 Thread Mark Murphy
-of-java -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: extracting service values from activity?

2009-09-09 Thread Mark Murphy
, or -- create a binding in the service and use bindService() to get a handle to the binding, and use that to get your hands on the service object -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html

[android-beginners] Re: How to open application program AlarmClock in Eclipse IDE

2009-09-09 Thread Mark Murphy
APIs not available in the SDK. You can download the whole firmware and there are ways to get all of its code available in Eclipse, though I am not familiar with the specifics. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http

[android-beginners] Re: preventing Activity from destroying

2009-09-09 Thread Mark Murphy
to occur: 1. You are destroying it yourself via finish(). 2. You are leaking memory at a tremendous rate and Android needs to close it to reclaim memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado

[android-beginners] Re: How Can I Block Unwanted Calls.

2009-09-08 Thread Mark Murphy
Can any one tell me how i can block unwanted calls through my application? There is no officially supported way to do this. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: listview orientation

2009-09-08 Thread Mark Murphy
How to orient listview items horizontal. ListView does not work horizontally. You may be able to use HorizontalScrollView with something else (e.g., a horizontal LinearLayout) and some extra code to achieve a similar look. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App

[android-beginners] Re: directions intent?

2009-09-08 Thread Mark Murphy
Jeffrey Blattman wrote: i'm fairly certain the answer to this is no, but i was wondering if there's an intent to open up the google maps get directions activity. that sure would be useful. something like, geo:lat,long?dest=lat,long There is not one documented, at least. -- Mark Murphy

[android-beginners] Re: How to Call Browser Activity

2009-09-07 Thread Mark Murphy
to authUrl, e.g. open a web browser and note the PIN code // ... Intent webLogin = new Intent(this,NetApi.class); startActivityForResult(webLogin,ACTION_VIEW); startActivity(new Intent(ACTION_VIEW, Uri.parse(authUrl))); -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: remove apllication from emulator prob

2009-09-04 Thread Mark Murphy
or emulator that way. You can use the Settings application to manage applications on the emulator the same way as you do on the device. Or, you can use the adb uninstall command: adb uninstall your.package.name.here -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books

[android-beginners] Re: remove apllication from emulator prob

2009-09-04 Thread Mark Murphy
that is fine but why this default commands are not finding my packages? I do not understand the question. does my applications are on another location how to get that is there any command? I do not understand this question either. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: Application to intercept a dialed number an call another number instead

2009-09-04 Thread Mark Murphy
Completely new to Android. I do not know where to start to make a type Console application that will redirect a call to another number. That is not possible except via changes to the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http

[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item

2009-09-01 Thread Mark Murphy
example where i can have a Contact name and number ,on two lines of single list item. I want to add image as well.. Please help me out! You can find instructions here: http://commonsware.com/Android/excerpt.pdf -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: Progress bar for upload / doenload

2009-09-01 Thread Mark Murphy
-count loop is done. If you want Android to draw things, you have to let the UI thread go (e.g., return from onCreate()). -- 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: ListView Add an image as well as 2 line text to a single list item

2009-09-01 Thread Mark Murphy
. If you have a 200px high image, the row will be 200px high at minimum. If you want shorter rows, design shorter row layouts, and use them per the PDF I linked to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http

[android-beginners] Re: problems with aidl

2009-09-01 Thread Mark Murphy
://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax the second is that apparently i cannot have two methods with different parameters, such as as get(in String par) and get (in String par, in String part2) What happens when you try those sorts of declarations in your AIDL? -- Mark Murphy

[android-beginners] Re: problems with aidl

2009-09-01 Thread Mark Murphy
Guilherme Melo wrote: On Sep 1, 1:46 pm, Mark Murphy mmur...@commonsware.com wrote: Guilherme Melo wrote: Hello all, i am creating a service and i am having two big problems with my aidl, first, i cannot import any Java types(Enumeration , Date, etc) that i get an error (couldn't find

[android-beginners] Re: Add an image over an image

2009-08-31 Thread Mark Murphy
in the XML are higher in the Z axis, meaning they appear to be on top of widgets defined earlier in the XML. -- 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: Very simple question about the HTC phones with trackballs (like the G1)

2009-08-31 Thread Mark Murphy
Steeler wrote: Can you click the trackball, or is there some other button that generates DPAD_CENTER key events? You can click the trackball on the G1 and Google Ion (HTC Magic). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide

[android-beginners] Re: Very simple question about the HTC phones with trackballs (like the G1)

2009-08-31 Thread Mark Murphy
Steeler wrote: And that shows up as DPAD_CENTER? It should. -- 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: Mediaplay Problem

2009-08-30 Thread Mark Murphy
(the multimedia engine) seems to have a tendency to log errors at warning level and not raise them all the way up to where we in Java code can catch them. If you see PV... messages around the time it stops, those are probably related. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Playing multiple sounds at once?

2009-08-30 Thread Mark Murphy
Steeler wrote: I tried using multiple MediaPlayer objects, but they block each other out. Is there any way to play more than one sound at the same time? Use SoundPool. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http

[android-beginners] Re: Android / SQLite and Java Serialization

2009-08-30 Thread Mark Murphy
/java/io/ObjectOutputStream.html You can probably arrange a way to have the stream dump to a byte[] and store that in a BLOB column. Or, don't use SQLite -- I seem to recall there is at least one object database for Android available. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Invalid apk file

2009-08-30 Thread Mark Murphy
it mean that the file is corrupted ? Probably. Try renaming it to HelloAndroid.zip and see if Windows can open it, or if it too complains. -- 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: Invalid apk file

2009-08-30 Thread Mark Murphy
Ivan wrote: I renamed the file to .zip, seems that Windows could not open it. Any idea ? Check out: http://groups.google.com/group/android-beginners/browse_thread/thread/705cc102073c4987 and see if it explains what you are seeing. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: TotallyLost

2009-08-30 Thread Mark Murphy
project (bearing in mind Eclipse won't try to keep your build.xml file up to date). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received

[android-beginners] Re: access resource strings from non-android classes?

2009-08-29 Thread Mark Murphy
accessor for resource strings? Not that I am aware of. You need the Context to know where the resources live, AFAIK. You can pass in the Resources object from getResources() if you don't want to pass in the Context for some reason. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread Mark Murphy
, it was probably signed with your production key. -- 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

[android-beginners] Re: Receiving text from a remote source and pasting into the current application

2009-08-28 Thread Mark Murphy
applications can use to fetch the text (though they would need to paste it themselves). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: Triggering options list

2009-08-28 Thread Mark Murphy
to trigger different operations. Any pointers, links, examples on how it can be done AFAIK, that cannot be done without modifying the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: LocationManager.getLastKnownLocation(gps) returns null instead of location object

2009-08-28 Thread Mark Murphy
/latitude to the emulator. Your LocationListener's onLocationChange() method will be called with the Location corresponding to your fix. Be sure to eventually call removeUpdates() to turn off the location update calls. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books

[android-beginners] Re: zip files in resources

2009-08-28 Thread Mark Murphy
. -- 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 Groups Android Beginners group. To post to this group, send

[android-beginners] Re: backgroundservice

2009-08-26 Thread Mark Murphy
-Communication? No. Have your activity call startService() to start up the service to do the HTTP operation. Then, when the service is done with the HTTP, have it call stopSelf() to shut itself down. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http

[android-beginners] Re: Detect running in Android and access to Command Line parameters

2009-08-26 Thread Mark Murphy
rely upon them, as they are undocumented and subject to change in future Android releases. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because

[android-beginners] Re: Equivalent of MS Windows PostMessage?

2009-08-26 Thread Mark Murphy
. Can we back up a step or two and discuss what your actual objective is? PostMessage() is a means to an end -- if you can describe the end, we may be better able to give you an Android-flavored means. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http

[android-beginners] Re: ListView item stay selected

2009-08-25 Thread Mark Murphy
of the background colors. A widget background is usually some form of ColorStateList. You can supply a simple color to setBackgroundColor(), but that only works if you do not intend to allow the item to be selected, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App

[android-beginners] Re: confusion about bluetooth

2009-08-24 Thread Mark Murphy
into the firmware have access to bluez. -- 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 Groups Android Beginners group

[android-beginners] Re: Please help in creating simple text file

2009-08-22 Thread Mark Murphy
Where are you getting the Context from? If it is your Activity instance, this code should work. If you are somehow creating your own Context object, then that might be the source of your problem -- use a Context given to you by Android, such as an Activity or Service object. -- Mark Murphy

[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread Mark Murphy
the error. The Java stack trace can be obtained through 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

[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread Mark Murphy
nitin wrote: thanks for quick response, I am new to android and self learner. how to see the adb logcat or in Eclipse. http://developer.android.com/guide/developing/tools/ddms.html http://developer.android.com/guide/developing/tools/adb.html -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Android SDK For Beginners?

2009-08-21 Thread Mark Murphy
applications so if such a reference doesn't exist I may well have to spearhead it. Sounds great! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You

[android-beginners] Re: Breaking up Activity classes

2009-08-21 Thread Mark Murphy
anonymous inner classes: private View.OnClickListener onButton=new View.OnClickListener() { public void onClick(View thingThatWentClick) { // something almost intelligent here } }; (then use button.setOnClickListener(onButton); in onCreate() or something) -- Mark Murphy

[android-beginners] Re: why the alertdialog could not display ?

2009-08-19 Thread Mark Murphy
. If you look at adb logcat, DDMS, or the DDMS perspective in Eclipse, you may see a stack trace that will give you more clues. You may need to use Activity#runOnUiThread() or View#post() or a Handler or something to arrange to display the dialog from the UI thread. -- Mark Murphy (a Commons Guy

[android-beginners] Re: Does getLocationFromName actually work??

2009-08-19 Thread Mark Murphy
Jose Ayerdis wrote: I've been trying to search university around a location but does not work as i though can somebody help out here??? A search of the Android SDK documentation does not turn up getLocationFromName(). Where do you see this method? -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Does getLocationFromName actually work??

2009-08-19 Thread Mark Murphy
the requirements to make it work, other than I am sure it needs the INTERNET permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Barcode scanning?

2009-08-19 Thread Mark Murphy
://code.google.com/p/zxing/ -- 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-beginners] Re: Can't locate com.android.settings activity

2009-08-19 Thread Mark Murphy
Jean-Sebastien Stoezel wrote: Any input on this issue? Try new Intent(Settings.ACTION_SECURITY_SETTINGS) instead, unless I am misunderstanding what activity you are trying to open. Settings is in android.provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: getting the pictures taken with my program to appear in gallery

2009-08-19 Thread Mark Murphy
://developer.android.com/reference/android/provider/MediaStore.html However, I haven't used it. In terms of emails, if you are referring to sending the emails yourself programmatically, this should work: http://stackoverflow.com/questions/587917/trying-to-attach-a-file-from-sd-card-to-email -- Mark

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Bluefish wrote: Hello, i am a User of an HTC Hero device with Android 2.0(Donut) 1. Donut is not Android 2.0. 2. AFAIK, HTC Hero shipped with Android 1.5, plus extra HTC proprietary components, such as the HTC Sense UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Rafa Perfeito wrote: 1. Donut is not Android 2.0. So what is 2.0? Eclair? What is the version correspondent to Donut then? Neither Donut nor Eclair have been released, so there are no version numbers yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Andrés G. Aragoneses wrote: Is Flash a proprietary component as well or is the plugin also included in Android? Flash is rather proprietary. It is not in the Android open source project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning

[android-beginners] Re: Linking with a custom View class

2009-08-18 Thread Mark Murphy
with it. -- 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

[android-beginners] Re: Linking with a custom View class

2009-08-18 Thread Mark Murphy
. Surprisingly, it requires no cryptographic signature (of any kind). It should, at least for consumer devices. I haven't played with modifying firmware, so I don't know what the rules are vis a vis emulator images and such. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: Load progressive ListView

2009-08-17 Thread Mark Murphy
of these days, I will cobble together enough time to add more documentation and a blog post about this... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You

[android-beginners] Re: Linking with a custom View class

2009-08-17 Thread Mark Murphy
file, or upload the whole thing to github. You can take a look at some of my CWAC components for examples of this process: https://github.com/commonsguy -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available

[android-beginners] Re: Linking with a custom View class

2009-08-17 Thread Mark Murphy
in Eclipse to tell it about another JAR to link to. How do I make sure it has access to the code during run time? Android's build process handles this. A regular JAR has .class files, which need translation before they can run on Dalvik. Android's build process handles this. -- Mark Murphy

[android-beginners] Re: startActivity() crash...

2009-08-17 Thread Mark Murphy
Tikoze wrote: I do not know how to get the logcat trace of the crash, but will gladly post it if you can tell me how to get it. adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer

[android-beginners] Re: Removing ListItems

2009-08-16 Thread Mark Murphy
Matt wrote: On 16 Aug., 03:07, Mark Murphy mmur...@commonsware.com wrote: You gave it an array. To be able to modify it at runtime, you need to give it an ArrayList. Alright, that did work. But why? Why is there an ArrayAdapter with a method called remove that you cannot use to remove

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-16 Thread Mark Murphy
cannot move a widget that is outside the list into the list in the fashion you are trying to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Does the camera app work on the emulator?

2009-08-15 Thread Mark Murphy
experimentation purposes, working completely off the emulator may be OK. But distributing an app without trying it on a real device is like building a car and never test-driving it before selling it because you didn't buy tires. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com

[android-beginners] Re: ADC2 submit page URL?

2009-08-15 Thread Mark Murphy
site. -- 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 Beginners

[android-beginners] Re: Removing ListItems

2009-08-15 Thread Mark Murphy
remove it from the data source underlying the list. -- ArrayAdapter? Remove it straight from the adapter. -- CursorAdapter? Remove it from the database or content provider, then requery(). -- Other adapter? U...it should have similar stuff. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: Removing ListItems

2009-08-15 Thread Mark Murphy
Matt wrote: On 16 Aug., 01:23, Mark Murphy mmur...@commonsware.com wrote: You don't remove it from the list. You remove it from the data source underlying the list. -- ArrayAdapter? Remove it straight from the adapter. -- CursorAdapter? Remove it from the database or content provider

[android-beginners] Re: Reducing application size by exporting some files to SD card

2009-08-14 Thread Mark Murphy
the device, and cannot be modified once there. That includes deleting portions of its contents. Or would I have to set up a system where they install the bare bones and then download the rest from a server and have those put on the SD card? That would work. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Using SQLLite with Android

2009-08-14 Thread Mark Murphy
) On a real world device, once the database gets created it will automatically be stored in the memory of the device? That depends on where you create it. By default, it will be created in a private databases/ directory associated with your application, in the on-board flash of the device. -- Mark

[android-beginners] Re: Using SQLLite with Android

2009-08-14 Thread Mark Murphy
will be gone. -- 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

[android-beginners] Re: Printed Material

2009-08-14 Thread Mark Murphy
that the documentation ships with the SDK and is available on your hard drive. -- 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

[android-beginners] Re: simplecursoradapter updatining the listview

2009-08-13 Thread Mark Murphy
' again but can't seem to get it to work. Help please? requery() should work. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Procedure to obtain Google Maps API key

2009-08-13 Thread Mark Murphy
Maxood wrote: Could someone guide me step by step on how to obtain a Google Maps API key. I am developing a simple Google Maps app for the first time. The full instructions are here: http://code.google.com/android/add-ons/google-apis/mapkey.html -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: create table and lots of inserts

2009-08-13 Thread Mark Murphy
that database as an asset or raw resource, then copy it (via streams) from there to the proper spot in the filesystem. -- 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: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
phil wrote: then i tried copying it to the SD card, that worked, but then I couldn't figure out how to actually install it once I had it on there. You would need a file manager app from the Market to install off the SD card. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
phil wrote: okay, thx. any ideas why i can't download the file from a web server? You need the MIME type set up properly on the Web server to serve it as application/vnd.android.package-archive. Beyond that, I have no idea. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

[android-beginners] Re: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
of the built-in Android apps, and most third-party apps, allow the users to be rather oblivious to details like where things get downloaded to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.0

[android-beginners] Re: Block when animation is running

2009-08-13 Thread Mark Murphy
. Can I do it? Blocking the UI thread will cause Android to force-close your activity after several seconds, and will confuse and irritate your users up until that point when they can't figure out why the application is not responding to them. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: How to display icon in status pane.

2009-08-12 Thread Mark Murphy
]. -- 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 Beginners group. To post

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