Re: [android-developers] Simple App Has Stopped Error

2012-06-10 Thread Mark Murphy
clipse or Ant via the USB cable, then you can view LogCat by the same means. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training... At Your Office: http://commonsware.com/training --

Re: [android-developers]

2012-06-08 Thread Mark Murphy
On Fri, Jun 8, 2012 at 9:35 AM, Vijay Krishnan wrote: > what about tesseract? http://en.wikipedia.org/wiki/Tesseract -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training... At Y

Re: [android-developers]

2012-06-08 Thread Mark Murphy
arty solution, most likely an expensive commercial one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training... At Your Office: http://commonsware.com/training -- You received this message be

Re: [android-developers] Printing PDF in Android

2012-06-08 Thread Mark Murphy
To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commo

Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-07 Thread Mark Murphy
> Intent without decompiling the Android app. Please use another minimum of 50 words to explain what you mean by this.  3) I just want the major > Intents to > invokes the deputy apps , e.g., Email, Browser, Camera,  SMS What is a "deputy app"? What is a "major Intent"?

Re: [android-developers] Manifest settings to distinct phones from tablets

2012-06-06 Thread Mark Murphy
vices could take advantage of "install-to-SD" (http://developer.android.com/guide/appendix/install-location.html) for such apps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guid

Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Mark Murphy
uot;send an Intent to invoke Camera app or Email app or Text Message app?"). PackageManager can find out who can *respond* to certain Intent structures. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commo

Re: [android-developers] How to retrieve Intents used by installed apps on the phone

2012-06-05 Thread Mark Murphy
On Tue, Jun 5, 2012 at 5:23 PM, michael wrote: > Is there any way to retrieve the Intents used by intalled apps on the > phone? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Th

Re: [android-developers] Showing Overflow menu button on ICS.

2012-06-05 Thread Mark Murphy
supporting that behavior. What remains to be seen is how many Android devices native to ICS or higher wind up with MENU keys versus the navigation soft keys in the system bar. > If true, I will tell Jennifer not to spend anymore time on this. And be sure to tell Jennifer that we all said "hi

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread Mark Murphy
or WebView, where you normally get things like "Open / > Open in new tab / Copy link"? I am not aware that their changes affect WebView. If I find out otherwise, I'll shout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com

Re: [android-developers] Problems with Linkify in Android 4

2012-06-05 Thread Mark Murphy
opriate value for whatever this activity handles. For example, if you are linking to HTML pages, use android:mimeType="text/html". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The B

Re: [android-developers] Problems with Linkify in Android 4

2012-06-04 Thread Mark Murphy
me to the after-effects of litigation: http://www.theverge.com/2012/5/16/3024889/htc-one-x-evo-4g-lte-custom-android-build-apple-patent-linkify I presume that they just neutered Linkify to ensure compliance across the board. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://

Re: [android-developers] Sending Custom Broadcast received on GB but not on HC or ICS

2012-06-04 Thread Mark Murphy
erflow.com/a/9955247/115145 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- You received this message because you are subscribed t

Re: [android-developers] problem running Monkeyrunner script in ubuntu

2012-06-04 Thread Mark Murphy
ers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Tra

Re: [android-developers] Quick Question About the Creation And Destruction of Activities.

2012-06-04 Thread Mark Murphy
destroyed. > If not, what happens with SomeOtherActivity finishes? Your original activity is started and resumed, then goes back into the foreground. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy

Re: [android-developers] Re: How to monitor UI operation in android from pc?

2012-06-04 Thread Mark Murphy
ration with the above three conditions. No, for obvious security and privacy reasons. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -

Re: [android-developers] Re: Problem in calling sms application in android 3.0 and above

2012-06-04 Thread Mark Murphy
android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonswar

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread Mark Murphy
e direct control over the start/stop of the service itself, with the binding for other communication. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread Mark Murphy
quot; group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread Mark Murphy
y to solve > it? > > On 6月4日, 下午9時20分, Mark Murphy wrote: >> On Mon, Jun 4, 2012 at 9:17 AM, Greenhand wrote: >> > In onDestroy(), I checked whether theActivityis finishing and bound. >> > If so, I unbindService(). >> > if(isFinishing

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread Mark Murphy
ty","Activity: unbindService()"); > } That needs to be getApplicationContext().unbindService(serviceConnection). If you bind using getApplicationContext(), you unbind using getApplicationContext(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy ht

Re: [android-developers] problems implementing fragments in my navigation

2012-06-04 Thread Mark Murphy
ipe-able. > the second problem i Have with fragments is: > i need to show a frame by frame animation [works in an activity], but when I > haven't figured out yet how to place it on my fragment? Apply it to the background of the ViewGroup that is the content of the fragment.

Re: [android-developers] SipWakeLock

2012-06-04 Thread Mark Murphy
On Fri, Jun 1, 2012 at 7:19 AM, Jesús Gumiel wrote: > Hi everybody. Anybody know what is the reason to use the SipWakeLock?. There is no SipWakeLock in the Android SDK. There is one in the firmware, but that is out of scope for this list. -- Mark Murphy (a Commons Guy) http://commonsware.

Re: [android-developers] Google Nexus loses battery while powered off

2012-06-04 Thread Mark Murphy
visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/trainin

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread Mark Murphy
> comes to handling bound service on rotation? It can be, which is why I mentioned it. https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/WeatherFragment -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://t

Re: [android-developers] Adding menus

2012-06-03 Thread Mark Murphy
On Sun, Jun 3, 2012 at 3:25 PM, Mohamed Essam wrote: > How can i add menus to built in android app like contacts and sms messages You can't, other than by building your own contacts and SMS client applications. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://gi

Re: [android-developers] Ethernet cables?

2012-06-03 Thread Mark Murphy
more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training --

Re: [android-developers] android bindservice rotation

2012-06-03 Thread Mark Murphy
commonsware.com/blog/2010/09/29/another-use-getapplicationcontext-binding-rotation.html https://groups.google.com/group/android-developers/browse_frm/thread/35be7c74e43c5dfc/28658862573cb654 A retained fragment, instead of onRetainNonConfigurationInstance(), would be a variation on this pattern.

Re: [android-developers] Getting GPS values without LocationManager's onLocationChanged

2012-06-03 Thread Mark Murphy
re options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/train

Re: [android-developers] Solving Missing R

2012-06-02 Thread Mark Murphy
ted nicely on the command line that I cannot find in any of the various error-reporting places in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.

Re: [android-developers] Theory: how to choose among button press techniques?

2012-06-01 Thread Mark Murphy
exist, or - you want your button clicks to be handled by something other than the hosting activity (e.g., a fragment) > - Are there more ways to handle a button press? That depends on what you mean by a "button press". Those are the two ways of handling a click event on a View.

Re: [android-developers] Check the SMS before send it

2012-06-01 Thread Mark Murphy
ps.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android De

Re: [android-developers] HTML content on AppWidget

2012-06-01 Thread Mark Murphy
pers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl

Re: [android-developers] How is this done? App uses fortran and executable?

2012-06-01 Thread Mark Murphy
> Android application? With some difficulty, and that's not even including dealing with ARM vs. x86 vs. MIPS. > Is that what they are doing? I hope they are not doing B. However, you might consider asking them, via the "send message" link on that Kickstarter page. --

Re: [android-developers] stacksz

2012-06-01 Thread Mark Murphy
r alloc area if not. >     */ >    const RegisterMap* registerMap; > >    /* set if method was called during method profiling */ >    bool            inProfile;}; > > And I want to know what's the equivalent of "stacksz" in dalvik vm? > thank you. > > -- &g

Re: [android-developers] how to get the name of external card

2012-06-01 Thread Mark Murphy
ard. If that is not what Environment.getExternalStorageDirectory() returns, then there is nothing in the Android SDK that will return that path. Whether or not your application can use that path, what goes on at that path (e.g., card ejected), etc. is beyond the SDK. -- Mark Murphy (a Commons Gu

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread Mark Murphy
tion bar will pop up. Correct. > Now if this is the case what code changes do i need to make. None, probably, other than setting your targetSdkVersion to 11 or higher, which you already have done. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://

Re: [android-developers] Menu To Action Bar transition

2012-05-31 Thread Mark Murphy
> is no change for 2.2 and 2.3 whatsoever) You will not get an action bar on Android 1.x/2.x devices by setting targetSdkVersion to any value. If you wish to have an action bar on Android 2.1+ devices, consider ActionBarSherlock. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Application's resource files' protection

2012-05-31 Thread Mark Murphy
do something like capture the framebuffer, or just grab the raw > bytes from the vm (that would, of course, require a rooted device..). Or decompile the APK, find the encryption algorithm and key, and decrypt the images. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github

Re: [android-developers] How to turn off the screen while the service is running in background

2012-05-30 Thread Mark Murphy
you to mess with their settings. > Can anyone please help me to find a solution for this. Leave the screen alone, and it will turn off when the user decided that it should turn off. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

Re: [android-developers] Application's resource files' protection

2012-05-30 Thread Mark Murphy
email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twit

Re: [android-developers] Does java.lang.Runtime.getRuntime().availableProcessors() include all CPUs?

2012-05-29 Thread Mark Murphy
On Tue, May 29, 2012 at 12:42 PM, Shri wrote: > What is the correct way to find the number of cpus on the device in > order to determine which optimizations to enable in my app? I doubt that there is one. I'll be happy to be proven wrong, though. -- Mark Murphy (a Common

Re: [android-developers] what if package is uninstalled while another package holds its Context?

2012-05-29 Thread Mark Murphy
;mon now. If things were easy, they wouldn't be paying you the big bucks to write the code! :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Devel

Re: [android-developers] what if package is uninstalled while another package holds its Context?

2012-05-29 Thread Mark Murphy
eleted immediately upon uninstall but some moments later, and that requests from a package context will succeed in the interim. If you acquired the package context *after* the uninstall... please contact me off-list. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/com

Re: [android-developers] Re: noob developer, application keeps restarting

2012-05-29 Thread Mark Murphy
back > from the dead the next time the app starts up? By definition, to use exit() properly, you have to detect the conditions where exit() is needed. And, if you can detect when exit() is needed, then you do not need to call exit() -- you can reset your app to a well-known good state. -- Mark

Re: [android-developers] multiple_choice with multi text view

2012-05-29 Thread Mark Murphy
roid:paddingRight="6dip" > > /> > how to modify it to support multiple text view  2 text under each other Use a vertical LinearLayout. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commo

Re: [android-developers] Can I have a service run as a seperate process?

2012-05-29 Thread Mark Murphy
On Tue, May 29, 2012 at 7:29 AM, Put_tiMe wrote: > i.e. I don't want to do IPC. Then get rid of your second process, and run your entire app as one process. Your users will thank you for not wasting their RAM and battery by having a second process that you do not really need. -- Mark M

Re: [android-developers] Re: launching an app

2012-05-29 Thread Mark Murphy
ething that itself can be launched. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscr

Re: [android-developers] multiple_choice with multi text view

2012-05-29 Thread Mark Murphy
@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NY

Re: [android-developers] Photo not saving to SD card.

2012-05-29 Thread Mark Murphy
just taken a photo of. It's there but isn't indexed: http://commonsware.com/blog/2011/08/31/mtp-external-storage.html Also, never hardwire /sdcard. Always use Environment.getExternalStorageDirectory() (or, for photos, better yet, Environment.getExternalPublicFilesDirectory()). -- Mark

Re: [android-developers] How to braoadcast keyevent that can be detect by all running application automatically

2012-05-29 Thread Mark Murphy
om > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/

Re: [android-developers] How to get a reference to the stock launcher activity object?

2012-05-28 Thread Mark Murphy
activity object, so I can steal their PIN and transfer all their money to my account in the Caymans". :-) On Mon, May 28, 2012 at 6:47 PM, Daniel wrote: > The main aim of this hack is to study the placement of the shortcuts on the > screens. Take a screenshot. -- Mark Murphy (a

Re: [android-developers] Re: noob developer, application keeps restarting

2012-05-28 Thread Mark Murphy
the data in persistent storage, null out the static data members, and start over, along with launching an activity with FLAG_ACTIVITY_CLEAR_TOP + FLAG_ACTIVITY_SINGLE_TOP to let the user know that you had to wipe out their data. You do not need to terminate your process to achieve any of thi

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Mark Murphy
On Mon, May 28, 2012 at 7:04 AM, Loka Sudharsan wrote: > Do u know any other way to find the DNS server ip and Default gateway ip? Not via the Android SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.

Re: [android-developers] Re: Using NetworkUtils to add a new route

2012-05-28 Thread Mark Murphy
unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http:

Re: [android-developers] Camera preview sizes on Galaxy Nexus (ICS)

2012-05-28 Thread Mark Murphy
izes() is relatively new, so developers were welcome to pass in whatever values they want. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com

Re: [android-developers] Will google plan to fix bug #26446 in next release?

2012-05-28 Thread Mark Murphy
o this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy

Re: [android-developers] android:onClick and fragments

2012-05-28 Thread Mark Murphy
ing up a bit of code that takes ralph:onClick attributes and wires them up to the containing Fragment. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office

Re: [android-developers] Manifest settings to distinct phones from tablets

2012-05-28 Thread Mark Murphy
is. And if it doesn't, it is unlikely to be your fault. And even if it *is* your fault, we'll all be too busy with the resulting apocalypse to notice... :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twi

Re: [android-developers] incompatible issue in google play

2012-05-27 Thread Mark Murphy
bility, which is now a wholly owned subsidiary of Google. I feel rather confident that there are employees in Motorola Mobility who can contact appropriate people in Google regarding Google Play issues. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http:/

Re: [android-developers] What is the official Android 4.0.4 update web page?

2012-05-27 Thread Mark Murphy
oid-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware

Re: [android-developers] Manifest settings to distinct phones from tablets

2012-05-27 Thread Mark Murphy
se you to want one APK versus another, and set up the manifests accordingly (e.g., ). Or, better yet, use a single APK for all devices. Believe it or not, there are people in this world who use their phones in landscape (particularly those with side-slider keyboards) and use tablets in portrai

Re: [android-developers] How to prevent (or handle) Android auto-killing my app on a dedicated-purpose device?

2012-05-27 Thread Mark Murphy
ce-as-electric-sign concept much more viable, as > the device needs to "just work" for months at a time without any hand- > holding from a user. Note that this is not exactly a target market for the core Android team. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] alwaysRetainTaskState doesn't work as expected. Singleton class is losing its state

2012-05-27 Thread Mark Murphy
singleton alive? No, sorry. The OS, or the user, can get rid of your process whenever they wish. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware

Re: [android-developers] flashboot

2012-05-27 Thread Mark Murphy
l to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/co

Re: [android-developers] drawable-xhdpi-v9 ?

2012-05-26 Thread Mark Murphy
onable. > Now, I haven't tested this, but I suppose that using drawable-xhdpi-v9 will > stop froyo from seeing those resources at all and so give > better-than-nothing runtime exceptions (which in most cases would show up > pretty quickly). Correct. -- Mark Murphy (a Commons Guy)

Re: [android-developers] drawable-xhdpi-v9 ?

2012-05-26 Thread Mark Murphy
-vNN resource set when you need *different* resources for a given API level (or higher). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ --

Re: [android-developers] permission to access another apk's assets/ directory

2012-05-26 Thread Mark Murphy
orage when your app runs, but you cannot remove the assets, as the APKs are read-only at runtime, and you'd break the digital signature if you modified the APK anyway. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http:

Re: [android-developers] why make -j4 failed

2012-05-26 Thread Mark Murphy
up, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter

Re: [android-developers] permission to access another apk's assets/ directory

2012-05-26 Thread Mark Murphy
I too was surprised. I have now made it through the "seven stages of WTF?" and am now on "acceptance". :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in

Re: [android-developers] permission to access another apk's assets/ directory

2012-05-25 Thread Mark Murphy
ecurity docs when they refer to "application data" - does that > mean stuff in assets/ or res/, or just anything an application writes > to the SD card (should I say "external storage")? Neither -- see above. > Also, does it mean anybody can read my assets/ if they kno

Re: [android-developers] Re: noob developer, application keeps restarting

2012-05-25 Thread Mark Murphy
. Hackborn) tell you not to do something, you would be well advised to heed their warnings. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/t

Re: [android-developers] getting problem while dealing with maps..........

2012-05-25 Thread Mark Murphy
king maps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.7 Available! -- You received this message because you are subscribed to the

Re: [android-developers] Help on Extracting a string from View in Android coding

2012-05-25 Thread Mark Murphy
e strings. If the view is a TextView, call getText(). If the view is something else (e.g., ImageView), there is no string to extract. Besides, since you were the one who put the string in the View in the first place, you should be able to get at the string by other means. -- Mark Murphy (a Com

Re: [android-developers] Why the CTS Resutls are different with same devices, same android source code and different Wireless AP

2012-05-25 Thread Mark Murphy
gt; To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy htt

Re: [android-developers] added wrong permission but android didn't complain

2012-05-23 Thread Mark Murphy
his leads me that he is silently ignoring permissions that he doesn't > handle. How can i make android compiler/builder warn me about them? I doubt that you can, as valid permissions are not knowable at compile time. There is nothing stopping a third-party app from defining the permi

Re: [android-developers] Re: "factory data reset" in source code?

2012-05-23 Thread Mark Murphy
d." I think that is just a poorly-phrased JavaDoc entry. I believe that this really means "ask the OS to wipe the user data", not "prompt the user to ask them if they would like their data wiped". After all, wipeData() is designed for lost devices and the like. -- Mark

Re: [android-developers] Re: "factory data reset" in source code?

2012-05-23 Thread Mark Murphy
permissions involved, but the user has to specifically activate the device admin app through Settings, IIRC. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://comm

Re: [android-developers] Force close of service using a password

2012-05-22 Thread Mark Murphy
vice. > > Is this possible? Fortunately, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because

Re: [android-developers] Android

2012-05-21 Thread Mark Murphy
this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! --

Re: [android-developers] Content Providers

2012-05-21 Thread Mark Murphy
deprecated in 4.0.3, so now before writing this app I need to be sure > whether these features will remain as is and the content that content > providers provide will be the same across all android phones. They are not going to be "the same across all android phones". -- Mark M

Re: [android-developers] TimePicker question

2012-05-20 Thread Mark Murphy
minutes -- any that had seconds was a custom dialog. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message b

Re: [android-developers] Re: Alarm BroadcastReceiver fog

2012-05-19 Thread Mark Murphy
ut for a sufficiently popular app, some percentage will still do it. An architecture that does not assume that it needs to run continuously (e.g., does polling via AlarmManager) will be more resilient in the face of such user behavior. -- Mark Murphy (a Commons Guy) http://commonsware.com | http

Re: [android-developers] Alarm BroadcastReceiver fog

2012-05-19 Thread Mark Murphy
same action string (e.g., new Intent("this.is.my.action.string")), not a component. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Deve

Re: [android-developers] BroadcastReceiver: Is it safe to use setOrderedHint method in my code?

2012-05-17 Thread Mark Murphy
ceiver and use a forked edition with LocalBroadcastManager and ordered-broadcast support, or - abandon LocalBroadcastManager entirely and create a workalike that supports ordered "pseudocasts" or some such Certainly, I am up for other suggestions. Thanks! -- Mark Murphy (a Commons Guy) http://commo

Re: [android-developers] Re: SecurityException: Given caller package com.android.settings is not running in process ProcessRecord

2012-05-17 Thread Mark Murphy
On Thu, May 17, 2012 at 11:30 AM, wrote: > But I can do this on Android 2.3.3 Not really. It *looks* like it is there, but if you actually try modifying any settings, the changes do not take effect, at least for any settings that you do not have the permission to modify. -- Mark Murphy

Re: : [android-developers] Weather List Widget sample app: WTF?

2012-05-17 Thread Mark Murphy
eem to be better approaches, assuming you want to use the observer pattern at all. I'd just push the app widget updates when updating the content provider and be done with the matter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog

Re: : [android-developers] Weather List Widget sample app: WTF?

2012-05-17 Thread Mark Murphy
"poof", with presumably some negative impacts on getting updates. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- Yo

[android-developers] Weather List Widget sample app: WTF?

2012-05-17 Thread Mark Murphy
I see it: -- this code is leaking a thread, as the HandlerThread is not being managed by any component -- this code is unreliable, as once the process is terminated, the ContentObserver is gone Has anyone seen this pattern used in production code? Thanks! -- Mark Murphy (a Commons Guy) http

Re: [android-developers] Multiple IntentServices for one Intent

2012-05-17 Thread Mark Murphy
ther have one IntentService, or if the issue is multiple threads, have one Service with your own thread pool. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android De

Re: [android-developers] Launch app based on available metadata

2012-05-16 Thread Mark Murphy
roups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http:

Re: [android-developers] Public Intents for Everybody

2012-05-16 Thread Mark Murphy
re) and without copyright violations, it has to be opt-in, anyway. It is entirely possible that Google could create this database. Ms. Hackborn hinted as much in a post here a couple of years back. I am not holding my breath waiting for it, though. -- Mark Murphy (a Commons Guy) http://commonsware.c

Re: [android-developers] Public Intents for Everybody

2012-05-16 Thread Mark Murphy
Recevier() call or IntentFilter to say "please, I only want local broadcasts". On the plus side, with LocalBroadcastManager, we can start moving away from using registerReceiver() for purely private stuff. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github

Re: [android-developers] Add Widget to Homscreen from activity Android

2012-05-15 Thread Mark Murphy
On Tue, May 15, 2012 at 2:59 PM, Jose_GD wrote: > Hi Mark, then is it possible to send an intent to the homescreen app to do > the widget adding for our application? You would have to ask the author of the home screen in question. There is no standard Intent for this AFAIK. -- Mark Mur

Re: [android-developers] Showing two simultaneously Activities (one smaller), the bigger one doesn't listen to finger events

2012-05-15 Thread Mark Murphy
bigger > activity stops listening for finger events (touch on the screen). > > It is possible to solve this? > > I need that the two activities can listen to touch events. This is not supported, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commo

Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Mark Murphy
ything at runtime on a device or emulator. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because y

Re: [android-developers] supports-screen doesnt work?

2012-05-15 Thread Mark Murphy
". Your app would be filtered out of the Play Store, but it can still be installed, by my reading of the docs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: h

Re: [android-developers] Record a call in android

2012-05-15 Thread Mark Murphy
s" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Blob

2012-05-15 Thread Mark Murphy
s byte arrays. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the

Re: [android-developers] Android build tool and compilation time library

2012-05-15 Thread Mark Murphy
roup, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://t

<    4   5   6   7   8   9   10   11   12   13   >