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

2008-12-15 Thread Mark Murphy
ame principle should hold to force 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

[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 A

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

2008-12-15 Thread Mark Murphy
ld not be getting this error on a G1 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 bec

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

2008-12-15 Thread Mark Murphy
on a Google Group that pertains 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

[android-developers] Re: dynamically attaching Views

2008-12-15 Thread Mark Murphy
files. If you insist upon doing this in Java (e.g., you were attacked by an XML file as a young child), you'll want 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 De

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

2008-12-15 Thread Mark Murphy
owed by a periodic flood of back-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 G

[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

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

2008-12-15 Thread Mark Murphy
stFeature(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

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

2008-12-15 Thread Mark Murphy
ow that the bluez-libs 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 -

[android-developers] Re: hiding the title bar

2008-12-16 Thread Mark Murphy
ow.FEATURE_NO_TITLE); Or, as Andrew Stadler pointed out, you can use this in your in your manifest: android:theme="@android:style/Theme.NoTitleBar" Note that these remove the title bar. They do not remove the status bar (where the signal strength and battery level indicators lie).

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

2008-12-16 Thread Mark Murphy
, so I need the activity 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&

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

2008-12-17 Thread Mark Murphy
ndent res/layout xml files" scenario, the same events can 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

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

2008-12-17 Thread Mark Murphy
does one > override 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. -

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

2008-12-18 Thread Mark Murphy
txtViewName, as if the layout > was not loaded. > > What I need to put more after 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(

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
e a bit different in their layout. That's part 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. -- Ma

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
ocation why bother with convertView 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://comm

[android-developers] Re: BaseAdapter getView question

2008-12-18 Thread Mark Murphy
. When getView() is called, you are handed a candidate View out of that pool, to repopulate (if practical) or replace (if not). I have seven blog posts on this and related topics over on AndroidGuys: http://androidguys.com/?s=fancy+listviews&x=0&y=0 Note that most are for the M5 SDK, so the

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

2008-12-18 Thread Mark Murphy
rted, I have an exception. > > How can I reset "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

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

2008-12-18 Thread Mark Murphy
There might be side-effects 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.bigner

[android-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
d of 2009. 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! --~--~-~--~~-

[android-developers] Re: Web Service

2008-12-19 Thread Mark Murphy
ce client, and the Web service 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

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

2008-12-19 Thread Mark Murphy
opulate in user interface 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-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
ot;center" D-pad button). It may 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

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

2008-12-19 Thread Mark Murphy
int us 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 Developmen

[android-developers] Re: Web Service

2008-12-19 Thread Mark Murphy
lient library. HttpURLConnection can be found in standard Java, so there should be many tutorials online. Here is a page full of examples using HTTPClient: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-developers] Re: Detect TAB key?

2008-12-19 Thread Mark Murphy
is desired when the the user 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 y

[android-developers] Re: Where, exactly, are Context data files?

2008-12-19 Thread Mark Murphy
drive plugged into a > computer by USB, where are the files I created from my program and > saved to the program's data storage? /data/data/your.application.package.here/files Note that this may not be browsable on a G1 due to security restrictions. -- Mark Murphy (a Commons Guy) ht

[android-developers] Re: Web Service

2008-12-19 Thread Mark Murphy
orm! Out of curiosity, have you tried this? I wasn't sure if the Dalvik VM might use a different serialization structure than would "regular" Java, causing cross-environment compatibility problems. If it works, though, great! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Bu

[android-developers] Re: k850i

2008-12-20 Thread Mark Murphy
ve you ported? > where can i download android and install android on my k850i The Android source code is at http://source.android.com. Questions regarding porting Android are best asked at: http://groups.google.com/group/android-porting -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: Where, exactly, are Context data files?

2008-12-20 Thread Mark Murphy
Keith Wiley wrote: > ...so how do I transfer data saved by my app off the phone? adb pull works, if you have the full path to the file in question. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 P

[android-developers] Re: html parsing and libraries

2008-12-20 Thread Mark Murphy
x27;s contents are used depends upon whether you reference them in your code. > Anyone know of the easiest way to parse HTML. http://java-source.net/open-source/html-parsers -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Develop

[android-developers] Re: WebView failing on G1

2008-12-20 Thread Mark Murphy
roblem limited to your own site? Do the logs (adb logcat, etc.) show any errors? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this message becaus

[android-developers] Re: Issue reagrding check out from SVN

2008-12-20 Thread Mark Murphy
lem. Just recompile (e.g., run ant) and R.java will be generated and the APK will be rebuilt. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~ You received this m

[android-developers] Re: How can we change image after a specific interval of time.

2008-12-20 Thread Mark Murphy
call to setImageResource() (or whatever) on your ImageView at the stated times. -- 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

[android-developers] Re: WebView failing on G1

2008-12-20 Thread Mark Murphy
e it, not disable it outright It's disabled by default. A point which I should probably make a wee bit more forcefully in my book... Given a WebView named wv, to enable Javascript: wv.getSettings().setJavaScriptEnabled(true); -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Cod

[android-developers] Re: WebView failing on G1

2008-12-20 Thread Mark Murphy
> I ran (from your example on Page 160, modified for my application): You're trying to use the browser object before you set it. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version

[android-developers] Re: Locking Down Root Access - Same Sh.., Different Vendor

2008-12-20 Thread Mark Murphy
ers can do what they wish within the confines of that license. If you want to complain about locked-down phones, complain to carriers and device makers. Hope that some innovative device makers make devices that are not locked down, and that the market rewards them for it. -- Mark Murphy (a Comm

[android-developers] Re: How to import an already setup Layout in code?

2008-12-21 Thread Mark Murphy
s.com/?s=fancy+listviews Most of the earlier ones in the series are for the older M5 SDK, but the concepts still hold. Also, forgive the formatting -- AndroidGuys updated their WordPress theme and my older posts are a bit malformed as a result. -- Mark Murphy (

[android-developers] Re: openFileOutput and global files

2008-12-21 Thread Mark Murphy
nging for your ContentProvider to be there for an application whether it was already there or not. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received t

[android-developers] DDMS and Ubuntu 8.10 64-bit

2008-12-21 Thread Mark Murphy
any tips? Thanks in advance! -- 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: Smack API and Android

2008-12-21 Thread Mark Murphy
DEBUG/--EARL--(229): -- caused by: > java.net.SocketException: unknown error One cause of "unknown socket error -1" is because you don't have the INTERNET permission in your AndroidManifest.xml file. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder

[android-developers] Re: Can't get threaded progress bars to work

2008-12-21 Thread Mark Murphy
m the background thread. Since this probably has an impact on the UI, you probably cannot call this safely from a background thread. Instead, arrange to call it on the UI thread, either via a Handler, Activity#runOnUiThread(), View#post(), etc. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: Identifying GUI items of the IM chat dialog

2008-12-21 Thread Mark Murphy
ackground image on the ListView. > 5. Blue background, is it some kind of 'group' object or a rectangle > object? That is probably the horizontal LinearLayout, with a blue background. > 6. Top bar, no clue how its called or how I can set the text. That is your activity'

[android-developers] Re: Change Text color in listview

2008-12-22 Thread Mark Murphy
rows: http://androidguys.com/?p=633 (forgive the formatting problems with the post) -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this messag

[android-developers] Re: warning The opening audio output failed

2008-12-22 Thread Mark Murphy
cause the PC the emulator is on is slow, or that you are trying to do other things at the same time. For example, I get this error when starting the emulator on a Pentium-M 1.6GHz notebook if I'm trying to do other work while the emulator launches. -- Mark Murphy (a Commons Guy) http://comm

[android-developers] Re: Embeded APK?

2008-12-22 Thread Mark Murphy
gt; as Embeded APK which 3rd party can install it with their APK without > user more actions? I do not believe this is possible. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~-

[android-developers] Re: SQlite and Foreign Keys

2008-12-22 Thread Mark Murphy
do you join them? Joining does not require foreign key relationships. All foreign key relationships do is enforce referential integrity. So, you join tables in SQLite the same way you do in any other SQL-based database. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's

[android-developers] Re: Regarding Opencore Codec Integration

2008-12-22 Thread Mark Murphy
scs wrote: > I see in Pv_Omxdefs.h file as like Questions on the Android open source project are best asked on one of the Android open source project discussion lists: http://source.android.com/discuss -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to

[android-developers] Re: DDMS and Ubuntu 8.10 64-bit

2008-12-22 Thread Mark Murphy
Mark Murphy wrote: > Environment: > -- Ubuntu 8.10 Intrepid Ibex 2.6.27-9-generic x86_64 GNU/Linux > -- Sun Java 6 JDK > java version "1.6.0_10" > Java(TM) SE Runtime Environment (build 1.6.0_10-b33) > Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15

[android-developers] Re: Problems running telnetd on adp1

2008-12-22 Thread Mark Murphy
onlythoughtwo...@googlemail.com wrote: > Thanks, is there another way then telnet to access the phones console > from my pc. SSH? adb shell, using the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.

[android-developers] Re: Apostrophe question

2008-12-24 Thread Mark Murphy
Dummy info > > > Same result. Have you tried ' instead? http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-

[android-developers] Re: Questions Around Phone Conversations??

2008-12-24 Thread Mark Murphy
"voice" is just going over a data channel anyway. I'm not sure if SIP or IAX offer such a facility, and I'm not aware of any SIP or IAX endpoints on Android (though I'll be stunned if there aren't a few under development). -- Mark Murphy (a Commons Guy) http:

[android-developers] Re: SQLite data type

2008-12-24 Thread Mark Murphy
Muthu Kumar K. wrote: > Hi, > I am trying to insert byte data in my application DataBase(SQLite). So > which data type will fit in to that. Byte or byte[] is usually used for byte data. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Androi

[android-developers] Re: How to add ShadowColor to TextView

2008-12-25 Thread Mark Murphy
oid:text="meetMe" > android:textSize = "40px" > android:textColor="#FFCD" > android:shadowColor = "#FF00" > android:shadowDx = "1.2" > android:shadowDy = "1.2"/> > Try adding a shadowRadius: android:shado

[android-developers] Re: Tab Issue:

2008-12-25 Thread Mark Murphy
diya blore wrote: > Can i implement this in single activity.? Yes. > As above process code has two avtivity.. can it be in single activity? > is it possible? Yes. Instead of an Intent, give the tab a View. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder&#

[android-developers] Re: Detecting if an Activity is being displayed or not

2008-12-26 Thread Mark Murphy
aise a Notification instead, so the user can control when the activity appears. -- 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 y

[android-developers] Re: managedQuery() terminating the application.

2008-12-26 Thread Mark Murphy
Sarath Kamisetty wrote: > How do I start debugging this ? Look at your error logs, using adb logcat, DDMS, etc. My guess is that you do not have permission to read contacts (READ_CONTACTS), but that is just a guess. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-developers] Re: managedQuery() terminating the application.

2008-12-26 Thread Mark Murphy
anifest, and you should be set. -- 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 "An

[android-developers] Re: 2 ListViews vertically and auto growing/shrinking

2008-12-26 Thread Mark Murphy
posts on this subject: http://androidguys.com/?s=fancy+listviews Note that the older ones are for the M5 SDK and may require some changes to work on Android 1.0r2. Also, forgive the formatting flaws, stemming from an AndroidGuys site overhaul. -- Mark Murphy (a Commons Guy) http://commonsware.

[android-developers] Re: Why the webkit just send to plugin 20 bytes through NPP_Write

2008-12-26 Thread Mark Murphy
development: 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 to the Google Grou

[android-developers] Re: Confusion over source compatibility of 1.0 release with latest SDK

2008-12-26 Thread Mark Murphy
> > Im a bit confused, as I thought that the SDK was current to 1.0 as run > on my phone, and the application was taken directly from the 1.0 head. Some of the shipping applications use APIs that are not yet ready for public consumption, as I understand it. -- Mark Murphy (a Commons Guy)

[android-developers] Re: Need help...........

2008-12-26 Thread Mark Murphy
tput using adb logcat, DDMS, etc. -- 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 "And

[android-developers] Re: How to reference another GUI xml from within a GUI xml?

2008-12-26 Thread Mark Murphy
how > can I re-use this description in the email_full.xml to prevent > duplication? I think or will work, though I haven't experimented with either as yet. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder'

[android-developers] Re: onSaveInstanceState() & onConfigurationChanged()

2008-12-26 Thread Mark Murphy
orces The first and third in the series cover your specific question. -- 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 su

[android-developers] Re: saving EditText state before device goes to sleep

2008-12-26 Thread Mark Murphy
j wrote: > When device goes to sleep, any text entered into the EditText is gone > when device awakes. How do I save/restore the text? Implement onSaveInstanceState() and save whatever state you want in the Bundle. You will get that Bundle back in onCreate(). -- Mark Murphy (a Commo

[android-developers] Re: dealing with multiple activities

2008-12-27 Thread Mark Murphy
: ./ApiDemos/src/com/example/android/apis/app/ReceiveResult.java ./ApiDemos/src/com/example/android/apis/app/LaunchingPreferences.java ./ApiDemos/src/com/example/android/apis/app/RedirectMain.java -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Androi

[android-developers] Re: Can one not use @+id with ArrayAdapter layout XML file?

2008-12-28 Thread Mark Murphy
quot;@+id/fu". In the documentation for the ArrayAdapter constructor you're using, the second parameter is described as: "The resource ID for a layout file containing a TextView to use when instantiating views." Hence, it is exp

[android-developers] Re: managedQuery() terminating the application.

2008-12-28 Thread Mark Murphy
pon your query to return only mobile numbers. I haven't played around with the Contacts content provider enough yet to provide exact source code. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--

[android-developers] Re: Service will not stay running

2008-12-28 Thread Mark Murphy
bparker wrote: > I just noticed that the Logcat app itself was just killed as well, > after not even running for 10 minutes... with the screen off and no > other activities running. U...how are you determining that there are no other activities running? -- Mark Murphy (a Commons

[android-developers] Re: Service will not stay running

2008-12-28 Thread Mark Murphy
Mark Murphy wrote: > bparker wrote: >> I just noticed that the Logcat app itself was just killed as well, >> after not even running for 10 minutes... with the screen off and no >> other activities running. > > U...how are you determining that there are no other ac

[android-developers] Re: Updating other Activity screen

2008-12-29 Thread Mark Murphy
ld onto the Cursor and call requery() on it in your ListActivity's onResume(). That will refresh the Cursor's contents based on the current database contents and update the UI to match. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's G

[android-developers] Re: Tab Issue:

2008-12-29 Thread Mark Murphy
not answered by the existing samples and documentation, though, feel free to ask! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Re: How to place a call from an application

2008-12-29 Thread Mark Murphy
etFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > startActivity(intent); Why ACTION_CALL_PRIVILEGED instead of ACTION_CALL? -- 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: New SDK release

2008-12-29 Thread Mark Murphy
cheefrocke...@googlemail.com wrote: > Hi guys, > > when does the many bugfixes were fixed? What are the plans for the > next 2-6 Month? The only official information is: http://source.android.com/roadmap -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training

[android-developers] Re: Stack overflow - 32 deep class hierarchy

2008-12-29 Thread Mark Murphy
thesquib wrote: > I just wanted to add that I am interested in finding a way around > this, or just to find out if it is a limitation which will not go > away. I'd focus instead on getting rid of 20+ classes in the hierarchy. -- Mark Murphy (a Commons Guy) http://commonswar

[android-developers] Re: Strange Toast error

2008-12-29 Thread Mark Murphy
is in the foreground? IMHO, services should not be directly affecting the UI. And if I misunderstood your comment, my apologies. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.big

[android-developers] Re: Android google groups web page -- is it broken?

2008-12-29 Thread Mark Murphy
erface and replying by email, though that could be the distinguishing factor. You might try posting a few by email and see if they work better. If that helps, then your "don't use google groups web page" advice may be sound... -- Mark Murphy (a Commons Guy) http://co

[android-developers] Re: service with a UI

2008-12-29 Thread Mark Murphy
this approach my app should be running in the background as soon as > phone is booted up. Everybody thinks that. Then people wonder why their phones are so slow. :-( I really encourage you to think through whether your application absolutely positively must run automatically without user inter

[android-developers] Re: Save data between onDestory/onCreate cycles

2008-12-29 Thread Mark Murphy
the formatting between open/close > keyboard cycle is appreciated. Don't use the Bundle, at least for rotations. There are plenty of alternative approaches, such as using onRetainNonConfigurationInstance(). I have a five-post series on AndroidGuys that covers this area: http://androidguys.

[android-developers] Re: restricting EditText to certain number of characters

2008-12-29 Thread Mark Murphy
pixels and other stuff > but not in terms of characters. How about android:maxLength? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You r

[android-developers] Re: Process has died during onDestroy() of my Activity. Why?

2008-12-29 Thread Mark Murphy
I notice my onDestroy implementation takes up to 7 seconds to > complete ... is that why the process was killed? Very possibly. Can you arrange to do more of the work sooner? -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerd

[android-developers] Re: What is the best way for storing binary content(buffer)

2008-12-30 Thread Mark Murphy
s nearly enough criteria to say what is "best". If the binary content is large, please please please please store it on the SD card (/sdcard), probably as a file. Overall, storing it in a file is probably more efficient for most use cases. -- Mark Murphy (a Commons Guy) http://commonsware.co

[android-developers] Re: Customizing ListAdapter

2008-12-31 Thread Mark Murphy
listviews Forgive the formatting, and be aware that the older posts are for the M5 SDK and so need some tweaking to work on the current SDK. -- 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: Problems with Radio Group

2008-12-31 Thread Mark Murphy
e child of RadioGroup for the mutual-exclusion to work, not inside some other layout (e.g., your TableLayout). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~-~--~~~---~--~~

[android-developers] Re: service with a UI

2008-12-31 Thread Mark Murphy
ervice ran into that problem, I suspect -- updating a TextView for an activity other than the right one. So, while it may be easier to initially write the software this way, there is a good chance you will regret it later. AIDL and Intents are two means that Android offers that better decouple the acti

[android-developers] Re: Device id

2008-12-31 Thread Mark Murphy
e device id of the user, this is strictly for licensing and >> restricting the use of app. >> >> Any ideas? -- 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: Device id

2008-12-31 Thread Mark Murphy
be handled by ANDROID_ID: check for null. -- 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 Group

[android-developers] Re: Device id

2008-12-31 Thread Mark Murphy
null, it's an emulator. If ANDROID_ID is non-null, it's a device, and the value is a unique value for that device. Hopefully, for your sake, a unique permanent value per device is somehow sufficient for your needs. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy C

[android-developers] Re: Inserting a contact / Android architecture

2008-12-31 Thread Mark Murphy
you see when Rubyists and Javanauts square off. Strong typing has definite benefits, in terms of compile-time validations and potential for optimization. However, strong typing can also "get in the way", which is why some folk prefer weakly-typed or type-inferred languages. Anyway, that's

[android-developers] Re: Should be able to launch an Activity from the browser (not a WebView)

2009-01-04 Thread Mark Murphy
y would a mobile browser be any different? > Am I the only one to whom this seems like this might be useful? IMHO, properly implemented, it would certainly be useful. The key would be a proper implementation that isn't too intrusive yet doesn't cause security issues. -- Mar

[android-developers] Re: Detecting if an Activity is being displayed or not

2009-01-04 Thread Mark Murphy
However, if in the middle of my phone call/browsing session/ebook/game/whatever, your app would take control of my phone, and I didn't have an option of disabling this behavior, your app would be uninstalled. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Gui

[android-developers] Re: Remapping Key Functions

2009-01-05 Thread Mark Murphy
a application Implement onKeyDown() or similar methods in your activities. -- 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: Reporting Exceptions

2009-01-05 Thread Mark Murphy
t already have one, a common component for doing this sort of error reporting would definitely be a slick addition to Android developers' arsenals. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedul

[android-developers] Re: How do I set proper date and time on emulator?

2009-01-05 Thread Mark Murphy
Sarath Kamisetty wrote: > I see that the date and time on my emulator are incorrect. How do I > set the correct date and time ? You need to tell the emulator your proper timezone via -timezone , where is your timezone in zoneinfo format (e.g., "America/New_York"). -- Mark M

[android-developers] Re: getLastKnownLocation is not working.

2009-01-05 Thread Mark Murphy
, ACCESS_FINE_LOCATION) in your AndroidManifest.xml file. Note that location tracking changed fairly substantially between the M5 SDK from this summer and the current SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published!

[android-developers] Re: Strange error for signed .apk

2009-01-05 Thread Mark Murphy
make >> sense to me at all. >> >> As more changes being added into the app, the error appeared again. >> >> Has anybody else encountered this problem? Does this sound like a bug >> in Android? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder

[android-developers] Re: Orientation within orientation

2009-01-05 Thread Mark Murphy
ximum vertical screen real > estate. But I need the ability to display a TextView that is rotated > 90 degrees so as to appear normal in a horizontal layout. Can this be > done, short of using an animation? > Why not just get rid of the title bar? getWindow().requestFeature(Window.FEA

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-05 Thread Mark Murphy
all apt_name") will not work -- adb is not an installed executable on the device, and I'm not sure there is a working system() call that would execute it. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.c

[android-developers] Re: Name of a widget

2009-01-05 Thread Mark Murphy
t repository: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/com/android/internal/widget/SlidingDrawer.java (or http://tinyurl.com/a3x6fe if that URL is too long for your mail client). -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder

[android-developers] Re: button response is slow on GPhone

2009-01-05 Thread Mark Murphy
ttons in other applications, applications you did not write? If you do, perhaps there is some software that is causing your G1 to behave poorly, such as Locale. If you do not, then we know your hardware is fine and it is something with your application. -- Mark Murphy (a Commons Guy) http://commonswar

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