Re: [android-beginners] locationManager problems

2010-04-09 Thread Mark Murphy
llPointerException when trying to use the Location. If so, that is because there is no fix, perhaps because you haven't done anything in code to attempt to get GPS to start acquiring fixes, such as call requestLocationUpdates(). If that is not the exception you are getting, then please pos

Re: [android-beginners] Re: Any on-phone help?

2010-04-08 Thread Mark Murphy
Alan Gauld wrote: > "Mark Murphy" wrote > >> There are several books on the market for Android device users. With >> luck, one is available in EPUB. > > Maybe I'm searching with the wrong keywords but I could only find one > user focused book on Amazon.

Re: [android-beginners] Any on-phone help?

2010-04-08 Thread Mark Murphy
hing ... There are several books on the market for Android device users. With luck, one is available in EPUB. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.4 Available! -- You r

Re: [android-beginners] How To find the path and call the intent of a newly installed application..

2010-04-07 Thread Mark Murphy
> I want to record the start and end times of all the applications that were > launched and killed. Is there any event i can listen for. No. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this m

Re: [android-beginners] About Android and Java?

2010-04-07 Thread Mark Murphy
> In Android Phones there's a provision for J2ME applications too so dont > worry. It is possible that some phones ship with a J2ME compatibility layer, but I am not aware of any. Android itself does not have a J2ME compatibility layer built into the system. -- Mark Murphy (a Common

Re: [android-beginners] Ellipsize not working

2010-04-06 Thread Mark Murphy
h-cut ellipsizing yourself (e.g., any message over 16 characters gets truncated at the nearest non-alphanumeric value and ... appended to the end) if you wish. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this messa

Re: [android-beginners] Code efficiency in BroadcastReciever

2010-04-03 Thread Mark Murphy
same. If you are referring to a BroadcastReceiver registered through registerReceiver() (e.g., from an Activity), then you should be choosing your scope more by data visibility more than by GC rules. Bear in mind that broadcast Intents typically cross process boundaries, so the cost of the broadc

Re: [android-beginners] Custom installation

2010-04-02 Thread Mark Murphy
ssue. I am not aware of a way for an application to delete itself. You can remove yourself from the launcher by disabling that activity, but you're still installed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now

Re: [android-beginners] 'on click' listener to app widget

2010-04-02 Thread Mark Murphy
s to my > widget or to some certain view from widget (I found only > setOnClickPendingIntent method from RemoteViews obj. which allows to > start some activity, but this is not what I'm looking for), something > like 'onClickListener'? setOnClickPendingIntent is exactly

Re: [android-beginners] Custom installation

2010-04-02 Thread Mark Murphy
n you will be taking up a *lot* of extra on-board flash space, which will not make you popular. And, the user will still need to go through the screens to review and accept that second installation, and you will still have two entries in the user's "Manage Applications"

Re: [android-beginners] Re: Programing Experience

2010-03-31 Thread Mark Murphy
Kevin Brooks wrote: > I would also Suggest picking up Mark Murphy's book on Android Development. Mark Murphy likes that idea! Thanks! :-) To be fair, though, here's a list of all available English-language Android books that I know of: http://wiki.andmob.org/books Rolling back to

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
read an XML file located in the app's files area, but implementing that is up to you. > I think there's the same read-only restriction to res/layout as to res/ > raw, isn't it ? Yes. Everything in res/ is read-only at runtime. -- Mark Murphy (a Commons Guy) http://commonswar

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
this way. You can only use LayoutInflater via res/layout/ resources. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.x Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "

Re: [android-beginners] Re: List providers - does it work for Android 1.5?

2010-03-31 Thread Mark Murphy
getLastKnownLocation() will start working. Until this point, though, the location provider may not be on and collecting data. Here is a sample application demonstrating obtaining your location via GPS: http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/ -- Mark Murphy (a

Re: [android-beginners] Re: How to save a file to res/raw ?

2010-03-31 Thread Mark Murphy
g., res/raw/) are read-only. Files that you write to are read-write. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups &qu

Re: [android-beginners] I thought you couldn't instantiate interfaces?

2010-03-30 Thread Mark Murphy
aa.notifyDataSetChanged(); myEditText.setText(""); return true; } return false; } }; then call myEditText.setOnKeyListener(onKey) where needed. But that's just m

Re: [android-beginners] Google Maps API: ItemizedOverlay

2010-03-30 Thread Mark Murphy
s this the only scope of ItemizedOverlay? Can't be, what's the reason > then despite of having events on the items? Such a boring class if it > is so... Here is a sample project from one of my books that demonstrates having multiple icons in a single overlay: http://github.com/commonsgu

Re: [android-beginners] How to use setText() in class that extends TextView?

2010-03-29 Thread Mark Murphy
tView mtv = new myTextView(this); > mtv.setText("this is my text view"); > mtv.set Yes, though I would never recommend this technique. You are hopefully setting up your TextView properties in layout XML. If you have several TextViews sharing common properties, you can address t

Re: [android-beginners] Which version of Java is used in Android?

2010-03-27 Thread Mark Murphy
runtime? If it compiles from source with JDK 5 or JDK 6, it should work without issue on Android when that code is cross-compiled into Dalvik VM bytecodes by the rest of the build chain. Hence, the only warnings you will typically see come from the JDK javac compiler. -- Mark Murphy (a Co

Re: [android-beginners] Multi markers in MapActivity

2010-03-26 Thread Mark Murphy
ous one, because they come from some of my books. If by "differentiate several markers" you just want to distinguish their taps, the first project demonstrates that. If by "differentiate several markers" you want different icons per marker, the ILuvNooYawk (4th) project demon

Re: [android-beginners] external input device

2010-03-26 Thread Mark Murphy
USB hosts, and so would not be able to work with an external USB keyboard. Sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | 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] I need javax.microedition.io in android, what can I do ?

2010-03-26 Thread Mark Murphy
.io to use standard JavaSE-style I/O. Or: Step #2: There are supposed to be some JavaME compatibility layers available for Android, but I do not know their names or sites off the top of my head. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App De

Re: [android-beginners] What am I doing wrong?

2010-03-26 Thread Mark Murphy
Column); > //int row = qCursor.getInt(idColumn); > qTV.setText(qString); > } > > > > > } > > } > > > > When I try to run this in the emulator, it tells me

Re: [android-beginners] Changing the background color of a list row

2010-03-25 Thread Mark Murphy
(); > } > } > > It works great except some on the rows in the list have a black > background instead of the transparent. Can anybody help? Thanks. Unless there is something behind the ListView, transparent *is* black, because it is showing the overall activity bla

Re: [android-beginners] listview item get invisible

2010-03-24 Thread Mark Murphy
ayAdapter). When you bind new data to the row, you know the old data is no longer on the screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to t

Re: [android-beginners] Re: Add calendar item through Intent?

2010-03-23 Thread Mark Murphy
's Google Calendar, there's a Google Web service API for that: http://code.google.com/apis/calendar/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you ar

Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?

2010-03-23 Thread Mark Murphy
.mp4 and see what happens. If this works much more quickly for you, then there's something afoot with the Web server you're downloading from. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You recei

Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?

2010-03-23 Thread Mark Murphy
B? I wouldn't expect it to. But, since I'm not an Eclipse user and don't set that flag, I'm certainly not an expert on the subject. :-) Some other things to consider: -- You're on WiFi, right? -- Does the Browser application behave similarly sluggishly? -- Have you

Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?

2010-03-23 Thread Mark Murphy
I'm still not clear on how > the response handler would fit my needs. From the example in the > tutorial it seems like it returns a byte array, but that's not > practical in my situation as the entity content would be ~6.5MB, > better to write that to my file as I receive it.

Re: [android-beginners] Re: Download a file from a URL extremely slow, am I doing it right?

2010-03-23 Thread Mark Murphy
tent would be ~6.5MB, > better to write that to my file as I receive it. Agreed. Still, something seems strange. Let me know if droppin' the debuggah helps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Ava

Re: [android-beginners] Re: Regarding Database setup

2010-03-23 Thread Mark Murphy
oid-application-with-a-database http://stackoverflow.com/questions/1894984/use-sqlite-database-from-android-app-resources -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Online Training: 26-30 April 2010: http://onlc.com -- You received this message because you

Re: [android-beginners] Download a file from a URL extremely slow, am I doing it right?

2010-03-22 Thread Mark Murphy
of all system resources httpclient.getConnectionManager().shutdown(); } } You'd need to create a BinaryResponseHandler class that gave you a byte[] of data. I did this once for a consulting client -- it was an extremely short class IIRC. Or, skip the ResponseHandler pattern, ca

Re: [android-beginners] Re: layout-land with onConfigurationChanged

2010-03-21 Thread Mark Murphy
'm looking for the method >> that is called somewhere between onCreate and onResume that tells the >> program which xml documents to use. First, whatever it is, it is not called between onCreate() and onResume(), since you can use resources in onCreate(). Second, whatever it

Re: [android-beginners] selection random string from strings.xml

2010-03-20 Thread Mark Murphy
critical > information. Here are some sample database projects from some books written by some balding guy: http://github.com/commonsguy/cw-android/tree/master/Database/Constants/ http://github.com/commonsguy/cw-andtutorials/tree/master/11-Database/ -- Mark Murphy (a Commons Guy) http://commonsw

Re: [android-beginners] Re: How to know the size of a file in adb shell prompt

2010-03-19 Thread Mark Murphy
"adb shell cd /data/app"); > $filename = "abc.txt"; > $size_of_file = -s $filename; > print "The file Size is ". $size_of_file." Bytes"."\n";* > > but in o/p i am getting blank... > > The file Size is Bytes > can anybody suggest

Re: [android-beginners] Android sounds

2010-03-18 Thread Mark Murphy
e code that uses it. Use Google Code Search and search on: package:android ToneGenerator -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the

Re: [android-beginners] sort order for sqlite query

2010-03-17 Thread Mark Murphy
ere for, say, an ascending sort of the "modified" column? Thanks! You put in "modified". Or "modified ASC", if you want, but ascending order is the default, IIRC. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in

Re: [android-beginners] using java classes

2010-03-17 Thread Mark Murphy
application. I have imported > java.util.* and java.text.DateFormat, but I get an error that, for > example: > date=new Date(); > cannot find variable date > > Does android not like java classes? Thanks. Unless you have defined Date date elsewhere, that should be: Date date=new Da

Re: [android-beginners] Email Accounts

2010-03-17 Thread Mark Murphy
Ali Asghar wrote: > Is there any way that i can access the email accounts that are saved > in the default email client of android. The email applications are not part of the official SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Andro

Re: [android-beginners] Long Press on Options Key - v 2.1

2010-03-16 Thread Mark Murphy
ly, since it's a user feature, not a class or method or programming utility. So, for example, it is documented in a card that accompanies the Nexus One. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bi

Re: [android-beginners] Re: AVD issue with Android 1.1

2010-03-16 Thread Mark Murphy
e a way to create a 1.1 AVD -- I don't have an option to install components for API 2. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are su

Re: [android-beginners] Confused about application context

2010-03-15 Thread Mark Murphy
Service(serviceIntent, mConnection, Context.BIND_AUTO_CREATE); You can just use new Intent(this), where this is your Activity. There is no value here in using getApplicationContext(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books,

Re: [android-beginners] Re: easy way to embed a button in a mapview?

2010-03-14 Thread Mark Murphy
skink wrote: > > On Mar 13, 2:18 pm, Mark Murphy wrote: >> Far from dumb -- this is a fine upstanding technique. RelativeLayout >> supports Z-axis ordering just for this sort of purpose. >> > > isn't FrameLayout better for that? > > you just put in o

Re: [android-beginners] How to define XML attributes for custom control/component/view

2010-03-14 Thread Mark Murphy
where they define the attributes that wind up being used in the app: namespace. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Googl

Re: [android-beginners] Re: easy way to embed a button in a mapview?

2010-03-13 Thread Mark Murphy
. I'd > imagine you would want to be careful not to obscure the Google logo > and zoom controls.. Far from dumb -- this is a fine upstanding technique. RelativeLayout supports Z-axis ordering just for this sort of purpose. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twi

Re: [android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread Mark Murphy
quently" is a far cry from what your current implementation was trying to do. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Group

Re: [android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread Mark Murphy
Bundle extras) {} > }; > > Log.d("TAG","gets here"); > > lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, > (float) 0.001, locationListener); You cannot do that here. If you look at your logcat, y

Re: [android-beginners] onTap/mapView question

2010-03-11 Thread Mark Murphy
int. > I guess I could do some kind of ugly lat/lon compare in a list.. > > If I have both of those onTaps ... only the first one is ever called. Make sure the onTap(GeoPoint p, MapView mapView) chains to the superclass -- that may solve your problem of getting the second one called

Re: [android-beginners] Context menu from button

2010-03-10 Thread Mark Murphy
) in your Activity to define the menu Step #3: Implement onContextItemSelected() in your Activity to get control on a menu choice http://github.com/commonsguy/cw-android/tree/master/Database/Constants/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy An

Re: [android-beginners] App running on dev phone creates a log??

2010-03-10 Thread Mark Murphy
BobG wrote: > Is there a log file on the phone? Someone tell me how to look at it? adb logcat, DDMS, or the DDMS perspective in Eclipse, with the device connected to the computer via the USB cable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Andr

Re: [android-beginners] add text to a drawable? (maps question)

2010-03-10 Thread Mark Murphy
ation tagged. You can certainly have different Drawables per pin at runtime: http://github.com/commonsguy/cw-advandroid/tree/master/Maps/ILuvNooYawk/ I haven't tried creating a custom Drawable, rendered from a Canvas or something, so I don't know much about that aspect. -- Mark Mur

Re: [android-beginners] Re: Start My Next Activity

2010-03-09 Thread Mark Murphy
oidManifest.xml tab in the eclipse editor to see the source code > directly). Then edit the file as follows: > " > > But it makes no difference. I'm still getting the same error. > > Hm??? Use adb logcat, DDMS, or the DDMS perspective in Eclipse to learn what th

Re: [android-beginners] Re: Start My Next Activity

2010-03-07 Thread Mark Murphy
ter. And the user will have to have both applications installed (the one with your first activity and the one with the second activity). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version

Re: [android-beginners] Re: Start My Next Activity

2010-03-07 Thread Mark Murphy
listed in there. For example: http://github.com/commonsguy/cw-andtutorials/blob/master/12-Activities/LunchList/AndroidManifest.xml -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Available! -

Re: [android-beginners] Start My Next Activity

2010-03-07 Thread Mark Murphy
on (e.g., android-2.1). Also, the Notepad tutorial has multiple activities: http://developer.android.com/resources/tutorials/notepad/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You recei

Re: [android-beginners] How to get the keys from ContentValues?

2010-03-05 Thread Mark Murphy
get-the-keys-from-contentvalues You even got two answers there. Please give the questions a little time in one forum before cross-posting elsewhere. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3

Re: [android-beginners] Dev phone messes up laptop boot

2010-03-04 Thread Mark Murphy
eing reborn. Hope this > helps someone? Your PC probably sees the phone as a USB device and tries booting from it, just like it might boot off of a USB thumb drive or external hard drive. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App

Re: [android-beginners] Re: life-cycle clarification help

2010-03-03 Thread Mark Murphy
ACK button destroys an activity). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try

Re: [android-beginners] Re: Looking for a file system overview

2010-03-03 Thread Mark Murphy
and drag-and-drop. The rules of thumb I tell my students in class are: -- If it is small and needs to stay reasonably private, use app-local storage -- If it is small or large but can be public, use the SD card -- If it is large and needs to stay reasonably private, you're screwed :-) --

Re: [android-beginners] Looking for a file system overview

2010-03-03 Thread Mark Murphy
s that can be "public", yes. > 2) Is Context.openFileOutput() the only guaranteed place where I can > store files? Yes, though I tend to prefer to use getFilesDir() (returns a File object pointing to the root of your app-local file store). -- Mark Murphy (a Commons Guy) http://comm

Re: [android-beginners] Re: Library Class Method

2010-03-02 Thread Mark Murphy
n to anyone new to Java. IIRC, you said your background was C++, not Java, which is why I make the recommendation here. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.3 Availabl

Re: [android-beginners] Re: Library Class Method

2010-03-02 Thread Mark Murphy
ce classes and methods available in the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Beg

Re: [android-beginners] Re: Library Class Method

2010-03-01 Thread Mark Murphy
drawn in chicken blood, to get Eclipse to do that. :-) Outside of Eclipse, using Ant, it's about a 15 second operation once you have the pattern in hand. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commons

Re: [android-beginners] SSLiteDatabase.openDatabase()

2010-02-25 Thread Mark Murphy
3084/how-to-ship-an-android-application-with-a-database -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups &q

Re: [android-beginners] Re: Trying to start the Hello World tutorial - can't create an AVD. Help!

2010-02-24 Thread Mark Murphy
Subjective Effect wrote: > How do I do this? Through the Control Panel. Search your favorite search engine for how to modify your PATH environment variable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version

Re: [android-beginners] Re: Webview

2010-02-24 Thread Mark Murphy
g widget, not a full Web browser. -- 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" group. NE

Re: [android-beginners] Re: Proximity alert for location already in.

2010-02-23 Thread Mark Murphy
-do-i-calculate-distance-between-two-latitude-longitude-points -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.9 Available! -- You received this message because you are subscribed to the Google Group

Re: [android-beginners] Proximity alert for location already in.

2010-02-23 Thread Mark Murphy
cation before you register your proximity alert. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Beginners&qu

Re: [android-beginners] Re: Default Map Not Showing Up During Tutorial

2010-02-22 Thread Mark Murphy
or figuring out where we're approaching things differently. If it doesn't work, your API key is messed up for some reason. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- You received

Re: [android-beginners] Default Map Not Showing Up During Tutorial

2010-02-22 Thread Mark Murphy
map to stay in gridline mode: -- The apiKey is not actually in there properly (hint: if it has colons, that's not the API key) -- The emulator or device does not have Internet access, such as lacking the INTERNET permission in the project -- Mark Murphy (a Commons Guy) http://commonswar

Re: [android-beginners] GPS Can't get onLocationChanged to hit

2010-02-22 Thread Mark Murphy
usy loop. Furthermore, a tight busy loop like that is going to chew up the CPU enough that it will make anything else difficult to run. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 26-30 April 2010: http://onlc.com -- You receive

Re: [android-beginners] LinearLayout Questions

2010-02-21 Thread Mark Murphy
ed. Somebody asked a closely related question not that long ago on StackOverflow: http://stackoverflow.com/questions/2307655/align-layout-to-the-right-in-a-listview-row -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Ava

Re: [android-beginners] EditText

2010-02-21 Thread Mark Murphy
André wrote: > Hello, > > I have a EditText window that fills up most of the screen. But when I > start typing in it always starts on the left side in the middle. I > want it to start top left corner. How do I do this? Set the gravity of the EditText widget to left|top. --

Re: [android-beginners] Alarm not triggered after restart.

2010-02-14 Thread Mark Murphy
mServices/Alarm/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackover

Re: [android-beginners] how to draw a popup rectangle on google map .. plz help

2010-02-13 Thread Mark Murphy
actly above the marker" may be difficult, as I am not sure how you can find out the pixel location of the marker. -- 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 t

Re: [android-beginners] Re: Hello, Stack Overflow!

2010-02-12 Thread Mark Murphy
gt; 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 >> > > -- > You received this message because you are subscribe

Re: [android-beginners] How to implement asking questions before uninstalling the apk

2010-02-11 Thread Mark Murphy
et control when they are being uninstalled. -- 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. NEW! Try asking and

Re: [android-beginners] Re: List of classes and methods?

2010-02-09 Thread Mark Murphy
> On Feb 8, 4:09 pm, "Mark Murphy" wrote: >> The documentation is included in the SDK for offline reading. > == > Thanks for the response Mark, but I cant see anything about > downloading documentation anywhere on th

Re: [android-beginners] List of classes and methods?

2010-02-08 Thread Mark Murphy
> Is there a downloadable file with the android java subset classes and > methods that an old c programmer could study offline? The reference > search box at android developers is giving me a lot of 'not founds'. The documentation is included in the SDK for offline reading.

Re: [android-beginners] Re: Confusion with Preferences

2010-02-06 Thread Mark Murphy
f you can determine where the differences are. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 8-12 February 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups "Android Beginners&qu

Re: [android-beginners] API that reads text

2010-02-03 Thread Mark Murphy
> I wonder if the Android has some api that reads text and I can hear > through > headphones. Look at the TextToSpeech class. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received this message becaus

Re: [android-beginners] how to identify the views part of the current screen

2010-02-03 Thread Mark Murphy
ework for testing like that. -- 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. NEW! Try asking and tagging yo

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

2010-01-30 Thread Mark Murphy
f shit from > happening, who do I talk to? You might consider just switching to use StackOverflow: http://android-developers.blogspot.com/2009/12/hello-stack-overflow.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programmi

Re: [android-beginners] Proportion of userbase by Android version?

2010-01-29 Thread Mark Murphy
> Where can one find a pie chart showing how many Android users are > running (say): 1.5 vs 1.6 vs 2.x ? http://developer.android.com/intl/fr/resources/dashboard/platform-versions.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonswa

Re: [android-beginners] Spacing inbetween Views

2010-01-29 Thread Mark Murphy
ut that seems to be > the spacing between the actual content of a View and the boundaries of > the View itself... Use margins instead (android:layout_marginTop, etc.). Those provide whitespace outside the boundaries of the View. -- Mark Murphy (a Commons Guy) http://commonsware.com An

Re: [android-beginners] Book for learning Android

2010-01-27 Thread Mark Murphy
> Or this link: > http://www.ebookee.com/Google-Android-Ebooks-Pack_387146.html Please be advised that these books are being distributed in violation of their copyright. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/book

Re: [android-beginners] add shadow to imageview

2010-01-26 Thread Mark Murphy
n (e.g., later child elements in the layout XML) will appear above earlier children. -- 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

Re: [android-beginners] Multi activity app

2010-01-22 Thread Mark Murphy
ill increase to 10 or more (and there will be some backgroud > logic). The number of activity classes in your application should not impact how quickly they start up. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You received

Re: [android-beginners] Multi activity app

2010-01-22 Thread Mark Murphy
ty(intent); > > It works fine, but in this case, every time I want to show one > activity from another an new instance of activity will be created. > It's not a very good situation :( Why not? That's the way most Android applications work. -- Mark Murphy (a Commons Guy) http

Re: [android-beginners] Re: passing arbitrary data types to a sub activity

2010-01-21 Thread Mark Murphy
Intents are converted into raw memory buffers (think byte arrays) for passing across process boundaries. You cannot do that safely with an ordinary Object. You must implement some sort of serialization to do that, and Android elected to create the Parcelable system for that role. -- Mark Murphy (a Commo

Re: [android-beginners] XML Layout ... proving difficult to make work

2010-01-20 Thread Mark Murphy
yout_width="wrap_content" > android:layout_height="wrap_content" > /> > > > tone You say you want a "progress wheel with text to its right", but you are using a vertical LinearLayo

Re: [android-beginners] Extra SDK and NDK ability + couple questions

2010-01-20 Thread Mark Murphy
issues? Questions regarding the NDK need to go to a list that actually pertains to the NDK, such as the [android-ndk] Google Group: http://groups.google.com/group/android-ndk -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --

Re: [android-beginners] Failed while creating activity to handle Intent

2010-01-18 Thread Mark Murphy
; Intent { action=android.intent.action.PICK type=v > nd.example.greeting/vnd.example.greeting-text } You do not have an activity that knows how to handle ACTION_PICK of vnd.example.greeting/vnd.example.greeting-text. Perhaps the activity is not properly registered in the AndroidManifest.xml

Re: [android-beginners] services and process started

2010-01-13 Thread Mark Murphy
vaibhav mital wrote: > so how can we stop or control any other application from running? You can't. > Is there any way to control other applications? No. That would be a security hole. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android

Re: [android-beginners] services and process started

2010-01-13 Thread Mark Murphy
vaibhav mital wrote: > what are the services and processes which start running in thebackground > automatically when we start any activity? By default, there are no "services and processes which start running in thebackground [sic] automatically when we start any activity". --

Re: [android-beginners] alarm manager question

2010-01-13 Thread Mark Murphy
uld start my app which schedules an > alarm, and then kill off any related app / service / receiver processes. > the alarm should still be delivered. > > is this correct? Generally. If the device is rebooted, the alarm vanishes. -- Mark Murphy (a Commons Guy) http://commonsware.c

Re: [android-beginners] adb prob

2010-01-12 Thread Mark Murphy
equirements.html You also might try working outside of Eclipse at first. Some error messages that adb spits out might mean something to use, but ADT simply treats it as a generic failure or ignores the messages. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/comm

Re: [android-beginners] webview on widget

2010-01-08 Thread Mark Murphy
dolly wrote: > Hi, > > I am trying to display a webpage as part of a widget, but I am not > able to do so since Remote views do not support adding webview to it. > Can this be done in any other way ? Not really, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | htt

Re: [android-beginners] How can I make a vew show up really, really fast?

2010-01-06 Thread Mark Murphy
o I don't have the delay? Delay the extra work you have in onCreate() to a later point. For example, use Handler#postDelayed() to have that work be done after 200ms, to allow Android to draw your layout. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:

Re: [android-beginners] Font Set

2010-01-04 Thread Mark Murphy
> Is it posible to define a new font set in android? You can embed TrueType fonts into your application and use them, via the Typeface class. However, you cannot define new fonts for use by all applications. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Bo

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