[android-developers] Re: Call JavaScript functions in the WebKit?

2008-11-25 Thread Mark Murphy
the callback. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Flaky network connections

2008-11-25 Thread Mark Murphy
), but, then again, we aren't going to be able to reproduce your problem with just that snippet. In the end, if we collectively get a reproducible scenario that works, that sample code should serve us well on the issue tracker to make sure this gets looked at. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Intent variable required for onStart function

2008-11-25 Thread Mark Murphy
); player = MediaPlayer.create((Context)this, R.raw.groove_arm); player.start(); } -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You

[android-developers] Re: Querys involving more than one table of Contatcs Content Provider

2008-11-25 Thread Mark Murphy
(), for example), but I see no reason it won't work. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Can't retrieve page with HttpClient

2008-11-26 Thread Mark Murphy
in the paths recorded in the server logs? Maybe the URL is getting munged somehow before you hand it off to the HTTPComponents. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published

[android-developers] Re: Enabling taps in ListView

2008-11-26 Thread Mark Murphy
might have to toggle them on yourself. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Push Notification Techniques: Discuss

2008-11-26 Thread Mark Murphy
gimped our ability to design lots of killer apps and thereby boost the popularity of android. With respect to beefing up the messaging subsystem to support messages-for-apps in additional to regular text messages, that could be addressed by the community, not necessarily Google. -- Mark Murphy

[android-developers] Re: Push Notification Techniques: Discuss

2008-11-26 Thread Mark Murphy
battery in no time flat. You could also use xmpp. This requires a constant Internet connection, which keeps the GSM radio alive all the time, which drains your battery in no time flat. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4

[android-developers] Re: Push Notification Techniques: Discuss

2008-11-26 Thread Mark Murphy
-draw state until the call ends. So, the question is: with an open-but-quiet Internet connection on a carrier data network, how much power draw is there from the GSM radio? There's also the scenario of the device being on WiFi instead of GSM, but that's probably not as frequent. -- Mark Murphy

[android-developers] Re: Push Notification Techniques: Discuss

2008-11-26 Thread Mark Murphy
-traversal systems. But, then again, I've certainly been wrong before... -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: XML-RPC

2008-11-27 Thread Mark Murphy
check_writer wrote: Thanks for the REST suggestion, are we able to accomplish the same set of functionality (i.e. custom objects being serialized) etc? XML-RPC takes data, encodes it, and sends it over HTTP. REST takes data, encodes it, and sends it over HTTP. -- Mark Murphy (a Commons Guy

[android-developers] Re: Intent extras modified

2008-11-27 Thread Mark Murphy
URL-encoding the # sign? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Mobile web and Android app integration

2008-11-27 Thread Mark Murphy
to be aware that they might be running on Android and know to call those Javascript functions if they are available. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: Screen orientation woes

2008-11-27 Thread Mark Murphy
, it will rotate based on movement alone. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Keeping ListView rows clickable

2008-11-27 Thread Mark Murphy
/browse_thread/thread/1fde30269b97f998/8f982b5c68febcf5 Upshot: can you use a context menu instead? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received

[android-developers] Re: URL to packaged resource?

2008-11-28 Thread Mark Murphy
it (Web page not available .. requested file was not found). If you want to use /android_asset/* as a URL, the assets you want to access must be in the assets/ folder of your project, not res/raw/. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: How does the Java code connect to the C code

2008-11-28 Thread Mark Murphy
-- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group

[android-developers] Re: Hiding view elements

2008-11-28 Thread Mark Murphy
of the invisible element, which is exactly what I want to avoid. Try setVisibility(View.GONE) -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: Can i write android code without activity (just with service)

2008-11-28 Thread Mark Murphy
a UI. Even if you do not ship the UI with the application, you will need the UI for testing purposes. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: launch one application from another application

2008-11-28 Thread Mark Murphy
-- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: ★★★ how to tell in which of Debug/Release modes my app is running? ★★★

2008-11-28 Thread Mark Murphy
in android.os.Build (e.g., MODEL) will be null on the emulator and non-null on the G1. -- android.provider.Settings.System.ANDROID_ID is null on the emulator and a unique non-null value on the G1 -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: screen orientation question

2008-11-29 Thread Mark Murphy
+forcesx=0y=0 -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Location API and JSR-179/OpenLAPI

2008-11-29 Thread Mark Murphy
there: http://source.android.com/discuss Or, submit an enhancement issue on the issue tracker: http://code.google.com/p/android/issues/list Or, possibly, just contribute a patch through the patch process: http://source.android.com/submit-patches -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-29 Thread Mark Murphy
zLarry wrote: Like android bundled contact applicaiton. When I long press a contact, then a sub menu pops up - to let me 'edit','remove' ... how to implement that? I was confused for a long time! Use Menu#addSubMenu(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android

[android-developers] Re: Problems with ListView using buttons on each row

2008-11-30 Thread Mark Murphy
of the Button you can click on both the row and the rating bar independently and they all work correctly as expected. I suspect RatingBar may not be focusable, which would explain the discrepancy. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http

[android-developers] Re: (Service == Process)?

2008-12-01 Thread Mark Murphy
by using a new process I assume, that a service is actually a new process Only if you set it up that way in AndroidManifest.xml. And, again, this is discouraged. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com

[android-developers] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Mark Murphy
, not an attribute, despite appearing in R.attr. Try adding style=?android:attr/ratingBarStyleSmall to your RatingBar in the XML. You can see an example of this in ApiDemos/res/layout/ratingbar_1.xml, in the samples/ folder of your SDK installation. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Mark Murphy
Xavier Mathews wrote: When using the rating bar do you have to register certain sites for it to rate or is it automatic? RatingBar is a widget, like Button or EditText or ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: Retrieve phone number for given contact

2008-12-02 Thread Mark Murphy
. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: flash player

2008-12-02 Thread Mark Murphy
bryan wrote: How do I get a flash player on this phone it never let's me download one There is no Flash player as yet, though apparently one is in the works. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: Music file format supported by Android

2008-12-02 Thread Mark Murphy
Jatin wrote: Hello, Can u please let me know the list of the Music file format supported by Android and the Music Player supported by Android. MP3 and OGG, perhaps others. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9

[android-developers] Re: Including SQLite database with application

2008-12-03 Thread Mark Murphy
, somebody will have the itch for this sort of thing and will scratch it, whether that somebody is on the core Android team or working outside of it. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: XML parsing prob

2008-12-03 Thread Mark Murphy
on the first job, two thumbnails on the second job, three thumbnails on the third job, etc. So, I'm guessing perhaps the exception is occurring somewhere inside setThumbnail(). But that's just a guess. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16

[android-developers] Re: Does Android support any XML Database??

2008-12-03 Thread Mark Murphy
of Apache XML JARs, some of which (e.g., Xerces-J) people have tried using on Android and have reported problems. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You

[android-developers] Re: Neeeeeed HELP......How to get the text's length after TextView.setText()?

2008-12-03 Thread Mark Murphy
are calling test(). Either delay your call to test() until the views are laid out (e.g., onResume() might be late enough), or manually request a layout() of your root view. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http

[android-developers] Re: creating and writing files

2008-12-03 Thread Mark Murphy
to a mounted /sdcard. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: How to replicate GUI of Android settings menu

2008-12-04 Thread Mark Murphy
some of the differences between the M5 SDK and the newer SDKs in this area. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-04 Thread Mark Murphy
. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: ContentProvider/SQLiteDatabase.delete() Docs

2008-12-04 Thread Mark Murphy
parameters, but I suspect most will also treat them as a WHERE clause and ? parameters. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to launch browser activity?

2008-12-04 Thread Mark Murphy
junker37 wrote: I have been unable to find out how to launch the browser activity in 1.0_r1. startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http://...;))); should do it, I think. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: Is it possible for C to talk to Java if necessary.

2008-12-05 Thread Mark Murphy
lists: http://source.android.com/discuss My strong recommendation is that, for the time being, you stick with Java. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: getSharedPreferences

2008-12-05 Thread Mark Murphy
PreferencesManager.getDefaultSharedPreferences() instead. This will return the SharedPreferences object that lines up with the preference screen system. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: ::CPU usage

2008-12-06 Thread Mark Murphy
utilization on a device. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Dynamic class loading

2008-12-07 Thread Mark Murphy
, but it is difficult to recommend any without more details of the problem you are trying to solve. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: How to get Programmatically Get Application Name

2008-12-07 Thread Mark Murphy
. Any pointers would be appreciated. Can you use PackageManager#getApplicationInfo()? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-07 Thread Mark Murphy
[EMAIL PROTECTED] wrote: Dumb question... where's the appropriate place to send the bug reports? http://code.google.com/p/android/issues/list -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread Mark Murphy
of documentation is correct, you may be able to use android:process in your manifest to force your secondary activity to run in another process. See the Processes section in the page linked to above. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16

[android-developers] Re: Android Date Picker

2008-12-08 Thread Mark Murphy
. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Android Date Picker

2008-12-08 Thread Mark Murphy
Muthu Kumar K. wrote: Can any you give me some example, because i am new to Android. ApiDemos/src/com/example/android/apis/view/DateWidgets1.java That example of DatePickerDialog can be found in the samples/ directory of your SDK installation. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread Mark Murphy
, not activities. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: ListView + SimpleCursorAdapter = NullPointerException

2008-12-08 Thread Mark Murphy
, but Android ignores case in the R.java generation, which may cause confusion. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-08 Thread Mark Murphy
, particularly if you were looking to deploy via a market, but it's possible it is the best way for you to get two stable MapViews under your control. If it were me, I'd try very very hard to get by with one map, somehow. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread Mark Murphy
is if you need something that can be run independently as an activity *and* appear as a tab in another activity...but that can be solved just by separating those smarts out into a separate Java class and reusing the logic in both spots. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: Creating a TabHost with Tabs containing Activities WITHOUT extending TabActivity

2008-12-08 Thread Mark Murphy
to MyNeatoWebViewWrapper, and use the same widget ID in the TabSpec. There are probably other patterns here as well; this is just one off the top of my head. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: How to send email programmatically?

2008-12-09 Thread Mark Murphy
. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-09 Thread Mark Murphy
() { public void run() { helloEditText.setText(Hello world + (++seq)); } }); } -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published

[android-developers] Re: changing string resources

2008-12-09 Thread Mark Murphy
be, but I suspect it would be for the phone as a whole, not for an individual activity. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Anyone else seeing problems with the browser Google Sites?

2008-12-10 Thread Mark Murphy
a Web page not available on the G1. Feels like some browser sniffing gone awry. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Mark Murphy
_orifile_ = openFileInput(/data//_samplefile_._txt_); openFileInput() accepts relative paths only. No leading slashes are allowed. openFileInput() represents files stored in an application-specific storage area. getFilesDir() will tell you where this is, IIRC. -- Mark Murphy (a Commons Guy

[android-developers] Re: The problem of installing Repo

2008-12-10 Thread Mark Murphy
Morris wrote: When I follow the steps of installing repo, I face the below errors. This mailing list is for application developers. Questions regarding the Android open source project are best asked on lists for the Android open source project: http://source.android.com/discuss -- Mark

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Mark Murphy
places, and it has never caused a problem. openFileInput() gives you a storage spot unique to your application in the on-board flash. It is not for use for, say, accessing /sdcard. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-10 Thread Mark Murphy
that value. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-10 Thread Mark Murphy
BobW wrote: Mark, Great book. I recommend it to all. I like the subscription model also. Very cool. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: Anyone else seeing problems with the browser Google Sites?

2008-12-10 Thread Mark Murphy
Bill Napier wrote: Have you tried accessing it on Wifi vs. cell data? Could also be a t-mobile data issue. My test was WiFi, FWIW. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: how to access file system

2008-12-10 Thread Mark Murphy
EvgenyV wrote: Can I install any external file xml or text file next to apk like .config file? If your program downloads or creates data, it can store the data on the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http

[android-developers] Re: Allocation too large for this process

2008-12-10 Thread Mark Murphy
to show the whole image via some sort of panning mechanism, consider splitting the image up into discrete tiles, akin to what Google Maps does. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] startActivity(), Browser, and windows

2008-12-10 Thread Mark Murphy
a FLAG_ACTIVITY_*, or combination of same, with my Intent to stop this behavior. However, I've tried a few, and nothing has worked. Any thoughts? Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: startActivity(), Browser, and windows

2008-12-10 Thread Mark Murphy
time that activity receives a new intent, to create a new window for it. Thought that might be the case, but I figured it was worth asking... Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com

[android-developers] Re: Incoming Emails - Incoming SMS - What is the way to catch them?

2008-12-11 Thread Mark Murphy
on every Android device. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Getting GPS Location in Android 1.0 SDK

2008-12-11 Thread Mark Murphy
examples both use locations. They go a little overboard on the permissions, as I too had frustrations with the location stuff, during the M5-0.9-1.0 SDK shifts. They definitely work under 1.0r1. I'll be trying them on 1.0r2 before the year's out. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Keeping service alive - What is the right way to to go for my app?

2008-12-11 Thread Mark Murphy
a Notification...though I'm not sure if that will survive the service closing down. 2. You can't even be assured onDestroy() is called -- the process might just be terminated outright in extreme cases. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: How to use built in email application to send email from my application?

2008-12-12 Thread Mark Murphy
am waiting for u people to reply. Thanks Peli has saved our bacon yet again: http://www.openintents.org/en/node/121 -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: Developing on device(? is it possible)

2008-12-12 Thread Mark Murphy
to make Android happy. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: 2 or more tabs in xml

2008-12-12 Thread Mark Murphy
is samples/ApiDemos/src/com/example/android/apis/view/Tabs1.java. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: How to use built in email application to send email from my application?

2008-12-13 Thread Mark Murphy
dileep singh wrote: hey please check this link.http://androidguys.com/?p=3100#comment-5168 once again mark has proved himself that he is always dere to help android guys. Thank Peli, not me -- I just added some more words around the research he and the OpenIntents team did. -- Mark Murphy

[android-developers] Re: Querys involving more than one table of Contatcs Content Provider

2008-12-14 Thread Mark Murphy
can't guarantee a timetable, though. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Have WebView default to horizontal orientation

2008-12-15 Thread Mark Murphy
it to be landscape. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Can we write Android code in C++

2008-12-15 Thread Mark Murphy
Mr Construction wrote: Can we write this Android code in C++ ? Applications, no. Changes to the firmware, possibly -- see http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available

[android-developers] Re: How to send email programmatically?

2008-12-15 Thread Mark Murphy
or, presumably, the Android Dev Phone 1. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: how to reload libwebcore.so

2008-12-15 Thread Mark Murphy
to modifying the firmware: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: dynamically attaching Views

2008-12-15 Thread Mark Murphy
to use addView() on the LinearLayout to add each of the checkboxes in turn. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Have WebView default to horizontal orientation

2008-12-15 Thread Mark Murphy
-logged messages. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] Re: Menu Icons

2008-12-15 Thread Mark Murphy
Jamie L wrote: If there are more than 6 menu items, the more menu item will appear, and the rest of the items go to a popup menu. Can we set icons to those menu items? Nope, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009

[android-developers] Re: How Can I Remove Top Title Bar from an Application? Or Add things to it...

2008-12-15 Thread Mark Murphy
(Window.FEATURE_NO_TITLE); from your activity, perhaps in onCreate(). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Bluetooth in Android How to enable bccmd

2008-12-15 Thread Mark Murphy
is located in externel/bluez. How can I reconfigure it and add enable-bccmd options. Questions about modifying the Android firmware are best asked on a discussion list pertaining to modifying the Android firmware: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Keeping an activity running all the time

2008-12-16 Thread Mark Murphy
to stay running all the time. Why not a service with an activity front-end? Services are meant to be long-lived (or, at least, longer-lived) operations; activities are meant to be disposable. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_

[android-developers] Re: input configuration changed (when keyboard revealed or hidden)

2008-12-17 Thread Mark Murphy
be used to determine how else to manage your UI modifications upon an orientation change. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-17 Thread Mark Murphy
the defualt Menu and have the dialoge show and dismiss in the same manner as the default menu? Step 1: don't create a menu Step 2: use onKeyDown() to detect the [MENU] press, and do what you want If I am misinterpreting your question, I apologize. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Inflate a view and retrieve widget

2008-12-18 Thread Mark Murphy
inflate to work with my new view? inflate() returns a View. That is the View containing R.id.txtViewName. View inflated=inflate(context, R.layout.myadaptercontact, null); ((TextView)inflated.findViewById(R.id.txtViewName)).setText(contact.name); -- Mark Murphy (a Commons Guy) http

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
of the reason they added in getViewTypeCount() and getItemViewType(int position), to help them be more efficient about the recycling process, to increase the odds that the convertView passed into getView() is one you *can* recycle. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
at all? I guess either a better explanation and docs are in order or a new API that makes sense to non-smokers. If you are going to continue insulting us in the community, it is unclear why you expect to get help. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
(if practical) or replace (if not). I have seven blog posts on this and related topics over on AndroidGuys: http://androidguys.com/?s=fancy+listviewsx=0y=0 Note that most are for the M5 SDK, so the literal code may not work properly without adjustment in some cases. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: How To Eliminate Preferences Values Database?

2008-12-18 Thread Mark Murphy
my_value ? Manually, you can reset it by deleting the preferences data in your emulator -- it's an XML file found in: /data/data/your.package.name.here/shared_preferences You can use adb shell, DDMS's File Explorer, or the like to get rid of the file. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-18 Thread Mark Murphy
of pretending to go through the normal menu system when you're not planning on actually presenting a real menu. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml

[android-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
. For example, the Lenovo oPhone may not have a physical keyboard, based on the leaked pictures to date. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received

[android-developers] Re: Web Service

2008-12-19 Thread Mark Murphy
uses a REST-style API, HttpURLConnection or the HTTPClient (org.apache.http.*) will work. Or, if you wish to build a Web service client, and the Web service uses XML-RPC, somebody else on this list posted a link to their XML-RPC implementation for Android. -- Mark Murphy (a Commons Guy) http

[android-developers] Re: How can we use sqlite3 for database purpose

2008-12-19 Thread Mark Murphy
part. Use SQLiteDatabase. Use rawQuery() or query() to get a Cursor. Use getString(), getInt(), etc. to get column values, after using moveTo() or moveToNext() to get to the proper row. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version

[android-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
be the trackball would have to be inset to make that work... Adjusting one's hands to go constantly back and forth between the keyboard and the trackball is difficult unless you physically put the device down on a table. On the other hand, FWIW, I haven't found this to be a problem. -- Mark Murphy

[android-developers] Re: Replacing default Menu with a Dialog

2008-12-19 Thread Mark Murphy
to an example? I'm guessing it would be via onCreatePanelView(), but that's not used in the SDK samples AFAICT. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You

[android-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
trackball's horizontally, right? Of course, now that I have some caffeine in me, I see that my comments don't address the point you were making in your posting nearly as well as I thought they did, so, um, never mind, and sorry for bothering you. -- Mark Murphy (a Commons Guy) http://commonsware.com

  1   2   3   4   5   6   7   8   9   10   >