Re: [android-developers] Re: motorola cliq sdk 2.0

2009-11-07 Thread Mark Murphy
it looks like 1-2 of these pop up a week right now. -- 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 Developer

Re: [android-developers] Force locale for an application, bug in 2.0?

2009-11-07 Thread Mark Murphy
ersion is relatively new, so you probably want to use the string instead. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Goog

Re: [android-developers] AppWidget update best practices

2009-11-08 Thread Mark Murphy
an see an example of this technique here: http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/TwitterWidget/ 99% of the time, you want to do any sort of "remote queries" on a background thread. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/comm

Re: [android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-08 Thread Mark Murphy
aware that the technique your using was supposed to work. I was under the impression that only the user could change the language. But, this is not an area I have spent tons of time in. If it worked on 1.5 and 1.6, it's probably worth posting to b.android.com. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Problems with Widget

2009-11-08 Thread Mark Murphy
093): at > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2831) > E/AndroidRuntime( 1093): ... 10 more > > any help is welcomed... also i would show more source to an > experienced coder... just i need soon an solution. It would appear there is a flaw in line 22

Re: [android-developers] Re: Problems with Widget

2009-11-08 Thread Mark Murphy
g null, presumably. You are failing on a NullPointerException, and neither of the other two parameters can possibly be null. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- You received this messa

Re: [android-developers] Make two buttons the same width?

2009-11-08 Thread Mark Murphy
have to be comfortable that there will be sufficient space to hold everything. For example, QVGA has only 240px horizontally, so you need short captions to the buttons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://common

Re: [android-developers] Re: The application android has stopped unexpectedly

2009-11-08 Thread Mark Murphy
here is no step #3 In other words, "The application com.myapps. has stopped unexpectedly" is insufficient data for anyone to provide assistance. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -

Re: [android-developers] Re: SQLite OnUpdate() Help!?

2009-11-08 Thread Mark Murphy
the answers to the tutorials. The 15-Perms/LunchList project has a working example of onUpdate() replacing a prior version of a table schema. It's a bit elaborate -- ALTER TABLE would be a better choice here -- but I wanted to demonstrate the use of temp tables. -- Mark Murphy (a Commons G

Re: [android-developers] Re: The application android has stopped unexpectedly

2009-11-08 Thread Mark Murphy
t about Skin and Hardware? > Should i leave them as they are and carry on with default values? That is up to you. You probably should be creating several AVDs to test on different screen sizes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Dev

Re: [android-developers] Hide an app from Droid

2009-11-08 Thread Mark Murphy
t uses different code to handle 1.5 when I really want to use a 1.6 API. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Group

Re: [android-developers] LinearLayout stack overflow, fails on 1.5, ok on 1.6?

2009-11-08 Thread Mark Murphy
al" > android:weightSum="100" What is android:weightSum? I don't see that in the SDK. Try getting rid of it and see if that helps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com

Re: [android-developers] LinearLayout stack overflow, fails on 1.5, ok on 1.6?

2009-11-08 Thread Mark Murphy
Romain Guy wrote: > weightSum has been in the SDK since 1.0. For whatever reason, that attribute does not show up in the documentation for LinearLayout. It does show up in the documentation for R.styleable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commons

Re: [android-developers] Launching appwidget from another application

2009-11-09 Thread Mark Murphy
ot;an appwidget must be launched"? App widgets are not "launched", at least by my use of the term. If you mean that you want an app widget automatically forcibly installed on the user's home screen, then no, that is not supported. -- Mark Murphy (a Commons Guy) http://commonsw

Re: [android-developers] Zoom out on the emulator

2009-11-09 Thread Mark Murphy
scaling details to have the emulator run at a more appropriate size. I assume there's some way to get Eclipse to do the same thing, but that's outside of my jurisdiction... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App D

Re: [android-developers] How do you create a soft Home, Back, and Menu button?

2009-11-09 Thread Mark Murphy
asking that question over on [android-porting]. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] "android create project" & ACTIVITY_NAME

2009-11-09 Thread Mark Murphy
arbles Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

Re: [android-developers] Re: a little help with soft keyboard / InputMethodService

2009-11-09 Thread Mark Murphy
I can’t find any sample code, and it’s a bit >> difficult because I don’t have a text box to bind to – the user is >> simply looking at my SurfaceView running the emulation. I would like >> to capture the text coming from the soft keyboard and process >> accordingly. >&g

Re: [android-developers] question on media.audio_policy

2009-11-09 Thread Mark Murphy
io_policy... > ServiceManagerWaiting for sevice media.audio_policy... > > > Any idea what could be wrong? what's the best way for me to debugging > this issue? You will probably have better luck with this sort of question over on [android-porting]. -- Mark Murphy (a Common

Re: [android-developers] Keyboard-less device support

2009-11-09 Thread Mark Murphy
able to bring up my menu using the power button but I'm not > sure it will work. Does anyone have any insight into this? Questions of this nature are much better asked on [android-porting]. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android

Re: [android-developers] Re: SQLite OnUpdate() Help!?

2009-11-09 Thread Mark Murphy
t that sample code is doing that your code is not (or vice versa). Usually, I start with the sample code, slowly modifying it step by step to look like what I need it to. Eventually, I either find where I went wrong originally (in which case I can zip to the end), or I eventually get the sample change

Re: [android-developers] Re: SQLite OnUpdate() Help!?

2009-11-09 Thread Mark Murphy
Moto wrote: > Why would onUpdate be called? What makes this get triggered? SQLiteOpenHelper calls onUpdate(). You can take a look at the source for it -- it's only ~200 lines: http://bit.ly/sqliteopenhelper -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/co

Re: [android-developers] Push Notification

2009-11-10 Thread Mark Murphy
push notification" with respect to Android? -- 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 Developers" group. To post to t

Re: [android-developers] twitter integration for android

2009-11-10 Thread Mark Murphy
having duplicate classes. Otherwise, for me, it works like a champ. -- 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 Developers" group.

Re: [android-developers] Re: The application android has stopped unexpectedly

2009-11-10 Thread Mark Murphy
r: > thread main exiting due to uncaught exception > 11-10 01:43:24.343: ERROR/AndroidRuntime(743): > android.database.CursorIndexOutOfBoundsException: Index 0 requested, > with a size of 0 You appear to be handing something an empty cursor, or the cursor is becoming empty unexpectedly. --

Re: [android-developers] Android 2.0 web capabilities question

2009-11-10 Thread Mark Murphy
ng down the MP3 files, at which point you have any number of options for playback. In your third paragraph, you use the term "streaming". If you truly mean streaming -- playback in tandem with the download -- MediaPlayer should be able to handle it. -- Mark Murphy (a Commons Guy) http://

Re: [android-developers] Can one Activity open another activities' options menu?

2009-11-10 Thread Mark Murphy
really want someone to prove me wrong. It definitely would be a security violation, and I hope it is impossible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this mes

Re: [android-developers] Multiple screen size problems

2009-11-10 Thread Mark Murphy
your users sure will. A 32px square image on a 3" QVGA screen and a 32px square image on a 3.7" WVGA854 screen are very different, particularly if they are something to be tapped upon. The former probably qualifies as "finger-friendly"; the latter size surely does not. -- M

Re: [android-developers] Re: Android 2.0 web capabilities question

2009-11-10 Thread Mark Murphy
roid/tree/master/SystemServices/Alarm/ There's probably an existing app that does scheduled file downloads if you don't want to write it yourself. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/b

Re: [android-developers] add layout in other apk program

2009-11-10 Thread Mark Murphy
rogram region, and right side is my > new add layout region for a button, > this button in the new layout region that can let users back to a.apk > when click on. > > so is it possiable to do for that? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.

Re: [android-developers] ListActivity searching

2009-11-11 Thread Mark Murphy
.String,%20boolean,%20android.os.Bundle,%20boolean) You can see this in action here: http://github.com/commonsguy/cw-advandroid/tree/master/Search/Lorem/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --

Re: [android-developers] Lock Screen?

2009-11-11 Thread Mark Murphy
t; Or would I have to come up with some new code? How do you define "lock an application"? -- 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 y

Re: [android-developers] Re: Links in WebView & context menu?

2009-11-11 Thread Mark Murphy
n try calling getHitTestResult() on the WebView, which may give you the information you seek. I haven't tried this, so I have no idea how well it will work. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/

Re: [android-developers] how can a widget use my own custom View ? for example " com.yulong.launcher.website.LinearLayout "

2009-11-11 Thread Mark Murphy
va:564) > You cannot use custom Views in app widgets. -- 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 D

Re: [android-developers] Re: Android keyevent keycodes and scancodes

2009-11-11 Thread Mark Murphy
hem. This would take very little time for you to do, possibly less than it took you to write this email. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message becaus

Re: [android-developers] how to write multiple-version compatible code...

2009-11-11 Thread Mark Murphy
. If you are on 1.6+, use reflection to get at the value. If you are on 1.5, return "unknown". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you

Re: [android-developers] Re: how to write multiple-version compatible code...

2009-11-11 Thread Mark Murphy
ing up when you execute that statement -- you are blowing up when the class is being loaded, because it tries to resolve that field and fails. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this

Re: [android-developers] Re: how to write multiple-version compatible code...

2009-11-11 Thread Mark Murphy
problem. On the plus side, you can do the reflection work itself in a static context, so you only go through the reflection once. > also, I don't think a try/catch will work - the java pre-verifier will > choke before it gets to running it... eh? Yup! -- Mark Murphy (a Commons Guy) ht

Re: [android-developers] Re: Analytics for Android Apps - issue getting the SDK

2009-11-11 Thread Mark Murphy
/code.google.com/apis/analytics/ >>> docs/tracking/mobileAppsTracking.html) but when I try to get the SDK >>> for it fromhttp://code.google.com/p/gaformobileapps/Iget a 403 >>> Forbidden - anyone else getting this issue? >>> As I see it I'm looking

Re: [android-developers] Phone to phone/emulator comminication

2009-11-11 Thread Mark Murphy
her emulator. http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking -- 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 G

Re: [android-developers] Re: Async thread aborted after catching (all?) exceptions

2009-11-11 Thread Mark Murphy
nfused as the best way to exit my background task > gracefully if my get() method raises an exception, at the moment > getting anything but a force close just isn't happening Without a stack trace, it will be difficult for anyone to give you advice on this issue. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Re: Async thread aborted after catching (all?) exceptions

2009-11-11 Thread Mark Murphy
e done is held onto the Exception object in the AsyncTask instance, then used it in onPostExecute(), when it is safe to update the UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! -- You received this m

Re: [android-developers] Problem with listening to a PhoneStateListener in a service

2009-11-11 Thread Mark Murphy
n my service > attempts to tell my TelephonyManager to listen. > > Any one have any ideas? If you get a "Force Close", look at the Java stack trace to tell you where your code is failing. You can get at the stack trace via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- M

Re: [android-developers] How to launch the browser

2009-11-11 Thread Mark Murphy
: startActivity(new Intent(ACTION_VIEW, Uri.parse("http://www.cnn.com";))); In your case, though, you're creating an app widget, which makes things a wee bit different: Intent i=new Intent(ACTION_VIEW, Uri.parse("http://www.cnn.com";)); PendingIntent pendingIntent=Pendin

Re: [android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread Mark Murphy
lei wrote: > I find the file that path to Environment.getExternalStorageDirectory() > is not writable, how could I change it? Make sure your app has the WRITE_EXTERNAL_STORAGE permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Train

Re: [android-developers] Sending raw query or SQLitedatabase.query to a database that only is reachable through ContentResolver

2009-11-12 Thread Mark Murphy
atabases/contacts.db) with > SQLiteDatabase.openDatabase() also throws an exeception. > > Any ideas? You do not have rights to access that database. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $

Re: [android-developers] Post custom widget source?

2009-11-12 Thread Mark Murphy
en post a link here and ask for feedback. Attachments don't work that well on lists like this, and a bunch of email-formatted code is difficult to grok. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --

Re: [android-developers] Preference change notifying the main Activity

2009-11-13 Thread Mark Murphy
x27;Clear cache' > button, so I would like the data to be deleted when the user requests > it and no later! Attach a preference listener: http://developer.android.com/reference/android/content/SharedPreferences.html#registerOnSharedPreferenceChangeListener(android.content.SharedPreferenc

Re: [android-developers] Please Suggest, Where can we buy Android phones.

2009-11-13 Thread Mark Murphy
the ARCHOS 5 Android tablet. Or, Expansys has some unlocked Android devices. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You received this message because you are subscribed to the G

Re: [android-developers] Is Android 2.0 Support Hebrew ???

2009-11-13 Thread Mark Murphy
Tom Chen wrote: > It does not. It only has support for english and spanish right now. I'm > hoping for simplified chinese support. While Android 2.0 does not have Hebrew support, it has more than English and Spanish: http://developer.android.com/sdk/android-2.0.html#locs -- Mar

Re: [android-developers] Parsing results of XmlEncoder on server

2009-11-13 Thread Mark Murphy
d approach to process this XML stream in Android? Not knowing the actual XML structure of your document, I would vote SAX. Faster-performing than DOM, more standard than the XmlPullParser. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder&#

Re: [android-developers] Re: How to enable Fingerpainting (i.e. API demo example) on a surface, but not only with finger touch

2009-11-13 Thread Mark Murphy
software. So, the *results* on the screen may be whatever you wish to draw with your finger, but the drawing still needs to be done by a finger. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.8 Availa

Re: [android-developers] Re: How to enable Fingerpainting (i.e. API demo example) on a surface, but not only with finger touch

2009-11-13 Thread Mark Murphy
Disconnect wrote: > What android devices have resistive screens? HTC Tattoo and ARCHOS 5 Android tablet, that I know of. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received t

Re: [android-developers] Can we create folders under /data directory

2009-11-13 Thread Mark Murphy
e: -- files in your app-local storage area (e.g., getFilesDir()) -- files on the external storage, like the SD card (i.e., Environment.getExternalStorageDirectory()) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://common

Re: [android-developers] HTC Hero Contacts ACTION_INSERT intent returns no result

2009-11-13 Thread Mark Murphy
try to get some attention paid to the Hero app icon issue that's been discussed a lot recently, and that may have some trickle-down effects to get other Hero-specific issues investigated. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Thre

Re: [android-developers] Strategy for installing large apps on Archos 5 tablet

2009-11-14 Thread Mark Murphy
e will have less need to use an external SD card... I haven't tried that yet, though I will make a point to do so next week. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training -- You re

Re: [android-developers] Barcode

2009-11-14 Thread Mark Murphy
densities. And, you have that same problem with scenario #1. -- 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 De

Re: [android-developers] Barcode

2009-11-14 Thread Mark Murphy
e few freely available fonts. I recall trying to figure out how to add USPS delivery barcodes to mailing labels and giving up in frustration. But, again, that was a few years ago, and something new may have arisen since then. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.co

Re: [android-developers] Debugging on HTC Tattoo

2009-11-14 Thread Mark Murphy
how to do that? I can tell you that my unlocked HTC Tattoo is picked up by adb and DDMS fine on Ubuntu. All I had to do was enable USB debugging (Settings > Applications > Development). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Develop

Re: [android-developers] Is there a list of standard Intent specifications?

2009-11-14 Thread Mark Murphy
MrChaz wrote: > I'm looking into getting my application to show up when the user tries > to 'share' a picture via the Gallery application I can't, however, > find any information about how exactly to go about this. I'd try supporting ACTION_SEND and see if that g

Re: [android-developers] Pause game

2009-11-14 Thread Mark Murphy
/reference/java/util/concurrent/Semaphore.html -- 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 Developers" group. To pos

Re: [android-developers] JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
tle":"madonna 118", > "Summary":"Picture 118 of 184", > "Url":"http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/ > madonna\/madonna-118.jpg", > } > } > ] > } > } I don't know about

Re: [android-developers] Re: Is there a list of standard Intent specifications?

2009-11-15 Thread Mark Murphy
roid android.intent.action.SEND (though that will also bring up a bunch of SENDTO entries as well) -- 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 subscri

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Mark Murphy
example of this for receiving ACTION_BATTERY_CHANGED broadcast Intents here: http://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBattery/ The same techniques should work for you for your media button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Androi

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
ONObject. However, that is for a status update -- starting in Tutorial #18, I dump manual Twitter HTTP stuff like a bad habit and switch to using JTwitter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/bo

Re: [android-developers] Orientation change of gsm re-initializes the application

2009-11-15 Thread Mark Murphy
to prevent the re-intantiation of > the app and how I can keep the application in portrait even when the > gsm is in landscape orientation? Add android:screenOrientation="portrait" to the element of the AndroidManifest.xml file, and that activity will stay locked in portrait mode. --

Re: [android-developers] Re: JSONObject text must begin with '{' at character 1

2009-11-15 Thread Mark Murphy
gt; "notLink": "http:// > jsonview.com is great"} Well, the stuff before the opening { is definitely not legal JSON. I'm no UTF-8 expert, but I'll be somewhat surprised if there's an encoding that justifies a bunch of extra characters like that at the front of

Re: [android-developers] ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
when running on my G1. Is it supposed to be > returning a valid number, or am I accessing it wrong? I don't want to > use the telephony device ID because that requires more permissions. No, that should not return null AFAIK, except on the emulator. Is your device rooted or anything?

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
cationContext(), near as I can tell, is tantamount to useless as a Context. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.2 Available! -- You received this message because you are subscri

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
6), Ion (1.5), and Hero (1.5), and they all work. -- 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 Develo

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
erify! Yeah, methinks your G1 is messed up. ANDROID_ID is stored, AFAIK, in a system SQLite database. It is conceivable, though scary, that this database got whacked somewhere along the line. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Dev

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-15 Thread Mark Murphy
from Telephony, but the concern (beyond the permission) is what those IDs might be on non-phones. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com -- You received this message because y

Re: [android-developers] Writing to file Assets folder

2009-11-16 Thread Mark Murphy
Mohammad Siddiqui wrote: > can any one give the code to read and write to a file in the Android > assets foler You can't, at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy App Widgets Deep Dive Seminar, 27 January 2010: http://bit.

Re: [android-developers] Re: ANDROID_ID returns null on my G1 ?

2009-11-16 Thread Mark Murphy
String wrote: > On Nov 16, 2:25 am, Mark Murphy wrote: > >> You can get device IDs from Telephony, but the concern (beyond the >> permission) is what those IDs might be on non-phones. > > Mark, have you had a chance to test either ANDROID_ID or IMEI on your > Archos 5

Re: [android-developers] Custom List View.

2009-11-16 Thread Mark Murphy
://github.com/commonsguy/cw-android/tree/master/FancyLists/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy App Widgets Deep Dive Seminar, 27 January 2010: http://bit.ly/deepdive -- You received this message because you are subscribed to the Google Groups &qu

Re: [android-developers] what is baseline

2009-11-16 Thread Mark Murphy
ce, the letters sit on the baseline, with the q, j, y, and g descenders dropping below the baseline. http://en.wikipedia.org/wiki/Baseline_(typography) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy App Widgets Deep Dive Seminar, 27 January 2010: http:

Re: [android-developers] WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
x27;m having is that there are images in the HTML with > relative URLs like: > > > > and instead of loading from assets/ContentRoot/Photos/image.jpg it's > trying to load them from assets/Photos/image.jpg. Well, in your second scenario, it's loading them from where you to

Re: [android-developers] Re: How do I get informed whenever an application is started/created?

2009-11-17 Thread Mark Murphy
Moritzz wrote: > I'd like my application to get informed whenever an > application is started! You can't, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
ls with the same package? I recommend reflection. -- 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 Developers" gro

Re: [android-developers] Re: WebView not loading Assets correctly... help?

2009-11-17 Thread Mark Murphy
e... Other than switching away from relative URLs, I don't have any other suggestions -- sorry! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.8 Available! -- You received this message bec

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
port more of the 2.0 apis (e.g > AccountManager/ContactsContract). Indubitably. I'll be looking at the new Contact APIs tomorrow, and I'll try to run some experiments with your proposed technique. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

Re: [android-developers] Targeting multiple OS versions

2009-11-17 Thread Mark Murphy
he OS dependent stuff. this breaks the > loader class chain and ensures that classes are only loaded by an OS > which does in fact have them. I knew there was something in the vicinity of this, but thanks for spelling it out! -- Mark Murphy (a Commons Guy) http://commonsware.com | ht

Re: [android-developers] weird issues with resources on Verizon Eris.

2009-11-17 Thread Mark Murphy
.google.com/group/android-developers/browse_frm/thread/554f72f397a8539f -- 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 &

Re: [android-developers] Stop an SMS from being sent from default SMS client.

2009-11-18 Thread Mark Murphy
re > being sent then plz guide me that way. I sincerely hope that it is impossible without firmware modifications. I certainly no of know way to achieve what you are seeking. And what little you have achieved is outside of the public SDK and therefore is likely to break in the future and on OEM-cu

Re: [android-developers] Ruby for Android

2009-11-18 Thread Mark Murphy
TCBlues wrote: > Is there any way to develop applications on Ruby for Android? There has been some preliminary work to get JRuby running on Android. It is a long way from being able to create full applications, though. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.

Re: [android-developers] Is status bar an activity?

2009-11-18 Thread Mark Murphy
s are not themselves an activity, but rather are displayed by other activities (e.g., home screen). >Thus can i assume status bar as an activity . Because user can > see it. No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder'

Re: [android-developers] Sub Acivity fly-in direction?

2009-11-18 Thread Mark Murphy
2.0 to be a ScaleAnimation (e.g., zoom out from center on open). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.2 Available! -- You received this message because you are subscribed to t

Re: [android-developers] image to text

2009-11-18 Thread Mark Murphy
d on Android. -- 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 Developers" group. To post to this group,

[android-developers] Re: "android create project" & ACTIVITY_NAME

2009-11-18 Thread Mark Murphy
Hearing no response, I've taken the liberty of filing this as a bug: http://code.google.com/p/android/issues/detail?id=4889 But if anyone has any thoughts, I'd love to hear them! Mark Murphy wrote: > Once upon a time (Android 1.5 and earlier), when you would create a new > p

Re: [android-developers] Re: WebView not loading Assets correctly... help?

2009-11-18 Thread Mark Murphy
Jeremy Logan wrote: > Thanks for the suggestion, but if I could alter the HTML I'd just use > absolute URLs instead or relative. Well, by definition, you can alter the HTML. You are packaging it in your app. It's not like it is being downloaded from some server that you cannot

Re: [android-developers] Re: Developing Android Developers in the US

2009-11-18 Thread Mark Murphy
outside of most Web app frameworks). Note that all of this assumes you are looking for Android application developers. Firmware developers are a whole 'nuther kettle of fish. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: htt

Re: [android-developers] Re: Is status bar an activity?

2009-11-18 Thread Mark Murphy
pink 444 wrote: > Because status bar is belong to home screen , Your evidence of this is...what, exactly? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- You received this mess

Re: [android-developers] Re: Is status bar an activity?

2009-11-18 Thread Mark Murphy
Mark Murphy wrote: > pink 444 wrote: >> Because status bar is belong to home screen , > > Your evidence of this is...what, exactly? To be more specific, I see nothing that indicates that the status bar is part of the home screen. It is part of Android, but not necessarily any

Re: [android-developers] Re: Sub Acivity fly-in direction?

2009-11-18 Thread Mark Murphy
d and its definitely flying in right-to- > left. :: experiments more with his DROID :: Ah, I see. There are two separate animations: to/from the home screen is a ScaleAnimation, other transitions appear to be the classic slide-in effect. -- Mark Murphy (a Commons Guy) http://commonswar

Re: [android-developers] Re: How do I backup my application signing key?

2009-11-18 Thread Mark Murphy
signing key. You created a keystore file when you created your application signing key. AFAIK, all you need to do is back up that keystore file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/co

Re: [android-developers] Re: WebView not loading Assets correctly... help?

2009-11-18 Thread Mark Murphy
at I meant is that in the future I won't have full > control over what the HTML looks like and it'd be nice if I could > allow them to use the same code as they're currently using for their > iPhone app. Double ah. Which brings up a point: you might want to take a peek at ho

Re: [android-developers] Re: Sub Acivity fly-in direction?

2009-11-18 Thread Mark Murphy
O_ANIMATION Oh, excellent! Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.8 Available! -- You received this message because you are subscribed to the Google Groups "Android Developer

Re: [android-developers] building to support both contacts 1.6 and 2.0 apis

2009-11-18 Thread Mark Murphy
ng. BTW, many many thanks for your work in marshaling information about the contacts APIs! -- 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 subsc

Re: [android-developers] startForeground

2009-11-18 Thread Mark Murphy
method. Conversely, when you call stopNotification(), the Notification is canceled. -- 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 subsc

Re: [android-developers] question about mapview "data"

2009-11-18 Thread Mark Murphy
2) is not necessary. 3) is where you tell Android, "Yo, dawg! I gots you a new overlay, yo!" In particular, do not confuse Overlay (representing a layer on a map) and an OverlayItem (representing a point to render in an ItemizedOverlay in a layer on a map). -- Mark Murphy (a Commons

  1   2   3   4   5   6   7   8   9   10   >