[android-developers] Re: Getting Julian Date in Android

2009-09-08 Thread Mark Murphy
Construct a Time object in the default timezone. The time is initialized to Jan 1, 1970. " So, it is behaving as documented. You will need to use other static methods or set() or something to fill in the date. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/com

[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Mark Murphy
Mawg wrote: > The answer is probably yes, so I guess that what I am asking is if the > official HDK makes life (significantly) easier for me. Only if you are modifying the firmware. For ordinary application (SDK-level) development, I would use any phone *other* than the ADP1. -- Mark Mur

[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Mark Murphy
roid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/AdvServices -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this messag

[android-developers] Re: porting android

2009-09-09 Thread Mark Murphy
tica wrote: > If I want to porting Android to a new hardware platform, Is there any > basic reqirments of the hardware? The [android-porting] Google Group is probably a better place for questions about porting: http://source.android.com/discuss -- Mark Murphy (a Commons Guy

[android-developers] Re: Running Application as Service

2009-09-09 Thread Mark Murphy
e.g., low memory conditions) or by the user (e.g., Force Close button in Manage Applications). You can roll your own firmware and create daemons and such that are not subject to being killed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for you

[android-developers] Re: Using Broadcast Receivers

2009-09-09 Thread Mark Murphy
t;. Depending on the nature of your application, this may or may not be acceptable to you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~--

[android-developers] Re: Hero SDK

2009-09-09 Thread Mark Murphy
t access the underlying database? > how do we identify the hero sdk from the cupcake 1.5?? Tactically, Build.MODEL will hopefully distinguish a Hero from other devices. I do not have a Hero, so I do not know what Build.MODEL reports. -- Mark Murphy (a Commons Guy) http://commonsware.com | htt

[android-developers] Re: Popup list (similar to Spinner)

2009-09-09 Thread Mark Murphy
on and a ListView, the latter of which has visibility of GONE until the button is clicked. Use a RelativeLayout or FrameLayout to allow the ListView to float over top other widgets in the activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android

[android-developers] Re: Probing for an already set Alarm?

2009-09-09 Thread Mark Murphy
emory, you are taking up one process' worth of RAM. If you could explain to us what the effect is you are trying to achieve (versus low-level technical statements, like "not to overwrite an existing alarm with a new one"), we might be able to suggest alternative patterns.

[android-developers] Re: Problem in horizontal scroll in android

2009-09-09 Thread Mark Murphy
dy tried android:scrollbars = "horizontal". > > i hv read on some forums that in cupcake update horizontal scroll is > possible in andorid. > > please help..am i doing sumthing wrong.. or is there any other way > round to it?? http://stackoverflow.com/questions/1399605/p

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Mark Murphy
Dianne Hackborn wrote: > For socket-level > communication, you will wake up when you are receiving data. Doesn't the WiFi radio get turned off, though, when the device is asleep? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder

[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Mark Murphy
an you have to. The media player is a rather unusual case. I wrote up a post about this just a couple of hours ago: http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Devel

[android-developers] Re: how do real-time monitor the state of SD card

2009-09-09 Thread Mark Murphy
dvandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/SystemEvents -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message b

[android-developers] Re: Get Device Name

2009-09-09 Thread Mark Murphy
Greivin Lopez wrote: > > I tried using this: "Settings.System.getString > (this.getContentResolver(), "ro.product.device");" but it returns > null. > Somebody knows how to get the device name programatically??? Try android.os.Build.DEVICE or android.

[android-developers] Re: Does Android 1.5 ( Cupcake ) support wma decoder?

2009-09-09 Thread Mark Murphy
der in PV OMX. > How does this happened? WMA is a proprietary codec owned by Microsoft. It is available to Android device manufacturers. So, the T-Mobile G1 can play WMA files, but that is because HTC licensed the codec. http://developer.android.com/guide/appendix/media-formats.html -- Mark

[android-developers] Re: So I'm new to Android...

2009-09-09 Thread Mark Murphy
f none of this covered what you were interested in, write back! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Mark Murphy
y. Making Ms. Hackborn angry. ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Re: what services are available at the API level?

2009-09-09 Thread Mark Murphy
I suspect you've already been there, so I think I don't understand what you're asking. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~---

[android-developers] Re: Best practices for handling passwords/keys in open source projects?

2009-09-09 Thread Mark Murphy
tep #4: Possibly have your Ant target turn around and call some other target (e.g., the debug target). Side benefit of this: you can have two targets and two property files, one for debug and one for production. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Mark Murphy
vely runs all the time is a bad idea. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[android-developers] Re: font android

2009-09-09 Thread Mark Murphy
arroyopablobenjamin wrote: > i want used the font of android in gimp or inkscape...where i can > download? > how this: > http://img.xataka.com/2007/12/Android_Logo.jpg http://www.android.com/branding.html "Android Custom Typeface: The custom typeface may not be used." S

[android-developers] Re: About intercept api calls

2009-09-09 Thread Mark Murphy
hope it is impossible, as it would represent a security hole big enough to swallow Mt. Everest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~-

[android-developers] Re: Help with Spinner

2009-09-09 Thread Mark Murphy
pdate to my Advanced Android book. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How i can create usable android project's library

2009-09-09 Thread Mark Murphy
"com.googlecode.chartdroid.intent.action.PLOT" /> > > > > When I launch the .jar'd activity from the second activity with an > implicit intent, it appears to work fine. The layout resources that > the .jar'd activity uses exist only within the

[android-developers] Re: Voice 2 text help

2009-09-09 Thread Mark Murphy
Abhi wrote: > Is there no one who could help me on this? Mark Murphy? Uh, hi! Sorry, I have not played with voice-to-text yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Availa

[android-developers] Re: Setting empty text on listView that does not have @+android:list as its ID?

2009-09-09 Thread Mark Murphy
e FrameLayout (or RelativeLayout) so they can take up the same space in the GUI, just one or the other being visible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~--

[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
hile detached from Android, will live until the thread terminates, or until Android force-closes your process due to lack of memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~--

[android-developers] Re: Deep sleep behaviour

2009-09-10 Thread Mark Murphy
your case. Remember: just because something is technically possible does not mean it is intrinsically efficient, or even practical. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~--

[android-developers] Re: Native code is being called successfully but not executed properly

2009-09-10 Thread Mark Murphy
e page: http://developer.android.com/sdk/ndk/1.5_r1/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: Check for internet connection

2009-09-10 Thread Mark Murphy
here is some form of data connectivity presently available. What you do with that information is up to you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---

[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
ith the Context.BIND_AUTO_CREATE flag. Once neither of these situations hold, the service's onDestroy() method is called and the service is effectively terminated. All cleanup (stopping threads, unregistering receivers) should be complete upon returning from onDestroy(). " (from http://developer

[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
sdphil wrote: > by the way, is there any way to know when Android is about to "force- > close" your process / service? Not really. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki

[android-developers] Re: Deep sleep behaviour

2009-09-10 Thread Mark Murphy
econds, whether you have data connectivity. However, if that is not the true business goal, then you may be expending a whole lot of effort fighting Android where it is not needed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development

[android-developers] Re: Deep sleep behaviour

2009-09-10 Thread Mark Murphy
battery. If, on the other hand, you need to monitor the connectivity state all the time, battery life will suffer, but a SIP client is at least a decent justification for it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/comm

[android-developers] Re: How to change width of a SeekBar?

2009-09-10 Thread Mark Murphy
layout_width > attribute. android:layout_width="fill_parent" doesn't work? I'm also not quite sure what you're gaining by the single-row, single-column TableLayout -- if that is all that will be in the layout, you are better served using just a horizontal LinearLayou

[android-developers] Re: How to change width of a SeekBar?

2009-09-10 Thread Mark Murphy
a layout where I have a ProgressBar use android:layout_weight="1" in a LinearLayout to take up all space not used by an ImageButton: http://github.com/commonsguy/vidtry/blob/e62625b82227c837a984aedb435545ee1f626486/res/layout/main.xml It is conceivable that SeekBar behaves different

[android-developers] Re: About Donut and Eclair

2009-09-10 Thread Mark Murphy
> Please tell me it about Donut and Eclair as follows. > When are Donut and Eclair released? > What is the main features of Donut and Eclair? Nothing has been announced about either update at this time. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Bo

[android-developers] Re: Help with Spinner

2009-09-10 Thread Mark Murphy
disappeared. > Who would have thought. Yeah, it boggled my mind the first time I encountered it, and my case wasn't even as dramatic as your missing Spinner drop-down arrow. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany

[android-developers] Re: Changing TabHost font size

2009-09-10 Thread Mark Murphy
resent the tab labels, and change their font sizes. The following link shows this technique, in this case changing the size of the tabs: http://wiki.andmob.org/faq-tabsize However, this code will likely break in future Android releases, so you will need to be prepared to make changes going forw

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
m with devices) over on the MOTODEV forums: http://community.developer.motorola.com/mtrl/board/message?board.id=Android_Events&message.id=9&jump=true#M9 Keep an eye on that thread -- we're more likely to get answers there than here, as I don't recall seeing a Motorola person comment here. -- Mark

[android-developers] Re: Is there any Android Handset which CDMA based?

2009-09-11 Thread Mark Murphy
javame_android wrote: > I would like to know whether Android handsets support CDMA network > also. In the US, Sprint reportedly will have the HTC Hero later this year. Sprint is a CDMA network. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy A

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Mark Murphy
at the same time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Webview foreground and background colors?

2009-09-11 Thread Mark Murphy
dpackham wrote: > I cant find anywhere how to change the Text COLOR in a webview. I can > change the background color but not the Text. Modify the HTML you are displaying in the WebView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning An

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Mark Murphy
singleton class instance if the configuration is not user-managed, SharedPreferences otherwise. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ Y

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Mark Murphy
Alex Tang wrote: > SystemProperties.get("status.battery.level_raw") > > can get battery status instantly! Like typing #getprop > status.battery.level_raw in adb shell This is not part of the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.c

[android-developers] Re: How to have a horizontal scroll view with multiple buttons?

2009-09-11 Thread Mark Murphy
> android:layout_height="50dp" > > android:layout_toLeftOf="@id/Button_3" > > android:scrollHorizontally=&q

[android-developers] Re: how to use commons-net-2.0 lib in the emulator

2009-09-11 Thread Mark Murphy
checked logcat for a Java exception that might have been handled by commons-net? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You

[android-developers] Re: Change Text in Text View

2009-09-11 Thread Mark Murphy
mInfo = ((TextView) findViewById(R.string.infomation)); Widgets are identified as R.id.*, not R.string.*. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---

[android-developers] Re: ListView special case

2009-09-11 Thread Mark Murphy
that I can't do something like > "findViewById(R.id.test)" because all the items in the listview have > the same id. How can I get just the first item? getView() (or bindView()) knows the position. The first item is position 0. -- Mark Murphy (a Commons Guy) http://commonsw

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
ucket, as I am sure there are some. That's part of the reason why we need to get the word out about what specific things developers need to consider for maximum compatibility. We'll go through the same thing once the first non-HVGA device (or ready-for-prime-time AVD) hits the streets (

[android-developers] Re: New Screen

2009-09-11 Thread Mark Murphy
st > android:label="com.example.easychef.Ingredients"> > > The program just crashes as i select an item in the list. Please can > someone tell me what im doing wrong. What is the exception? You can get a stack trace via adb logcat, DDMS, or the DDMS perspective in Eclipse

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
tp://community.developer.motorola.com/mtrl/rss/board?board.id=Android_Events http://community.developer.motorola.com/mtrl/rss/board?board.id=Studio_Android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~

[android-developers] Re: How to Develop a Custom Soft Keyboard

2009-09-11 Thread Mark Murphy
in your SDK's android-1.5/ area. I don't know if there is more documentation than what is in there, though. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~---

[android-developers] Re: locked up my Android device...

2009-09-11 Thread Mark Murphy
nstant. If you give it a whirl and run into problems, ping me on the cw-android Google Group, and I may be able to help: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org

[android-developers] Re: Is there any Android Handset which CDMA based?

2009-09-12 Thread Mark Murphy
s no good way to know. You are welcome to putter around the Android open source repository to try to find an answer (http://source.android.com). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/b

[android-developers] Re: Android App with Analytics like Flurry

2009-09-12 Thread Mark Murphy
onditions in what appears to be an AlertDialog on the first run of the program. If the user declines, the app closes. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~

[android-developers] Re: Development on the MyTouch 3G

2009-09-12 Thread Mark Murphy
s can use regular consumer devices purchased at retail to test and use their apps". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this me

[android-developers] Re: HTC Magic as dev phone

2009-09-12 Thread Mark Murphy
lease contact your mobile provider for details regarding device updates. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received thi

[android-developers] Re: noob Question button functions

2009-09-12 Thread Mark Murphy
vity. If you implemented a context menu, override onContextItemSelected() in your activity. If you implemented one or more Button widgets, not a menu, call setOnClickListener() on the widget and supply a listener object to be notified when the button is clicked. -- Mark Murphy (a Commons

[android-developers] Re: Context Menu

2009-09-12 Thread Mark Murphy
u do not need a menu for that. The user can click the BACK button to exit your activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~-

[android-developers] Re: ListView and OnItemSelectedListener and clicking/touching

2009-09-13 Thread Mark Murphy
ommonsguy/cw-advandroid/tree/master/ListView/Selector At some point, I'll write up the /StateListDrawable approach as well. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~

[android-developers] Re: unique phone id....

2009-09-13 Thread Mark Murphy
sdphil wrote: > is there a unique phone id (not the phone number -- since that can > obviously change). > > on other phones it's called the "PIN" code. android.os.TelephonyManager has getDeviceId(), which returns the IMEI for GSM devices, and who knows what right now

[android-developers] Re: ListView progres

2009-09-13 Thread Mark Murphy
elp illustrate how to use it) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-13 Thread Mark Murphy
ns. Implement shouldOverrideUrlLoading() in WebViewClient to do whatever you want, based on the supplied URL. > Is this a limitation of Android's WebKit? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Availab

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Mark Murphy
return true means the host application handles the url, while return false means the current WebView handles the url." Your "else return true" line is telling Android "hey, I am going to handle external links (by not doing anything)". You may wish to call startActivity()

[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread Mark Murphy
s and a patched adb that may work for you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: WebView and javascript problem

2009-09-14 Thread Mark Murphy
he javascript correctly. > What could be the difference? Are there any different settings for > running javascript? Javascript is disabled by default. Call getSettings().setJavaScriptEnabled(true) on your WebView to enable it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twit

[android-developers] Re: data in onPictureTaken always null for raw picture

2009-09-14 Thread Mark Murphy
Timothy F wrote: > I'm attempting to obtain raw picture data from the camera. According > to the Javadocs it can be obtained via the callback passed to > camera.takePicture(null, callback, null). RAW is not available: http://osdir.com/ml/AndroidDevelopers/2009-02/msg01493.html -

[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Mark Murphy
ifficult to give you specific advice. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread Mark Murphy
ly, though I have not used them and do not know any by name. Beyond that, I suspect you will have to wait for Android 1.6 and official support for the Galaxy. Fortunately, given the large donut that appeared recently at the Googleplex, I hope you will not have to wait long. -- Mark Murphy

[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Mark Murphy
rebuild it from the pieces. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Mark Murphy
Photics wrote: > I tried > to understand what you and Mark Murphy posted about Intents and > Activities, but I wasn't able to get it working. startActivity(new Intent(Intent.ACTION_VIEW, "http://thisismydomain.com";)); Replace the hardwired URL in the above snippet w

[android-developers] Re: Service Binding Problems - ServiceConnection.onServiceConnected not being called

2009-09-14 Thread Mark Murphy
eConnected() is not being called because of what your TextView shows, bear in mind that bindService() is asynchronous. AFAIK, it won't even *start* connecting until you exit onCreate(). You are better served updating your TextView as a result of onServiceConnected(), not at the bottom

[android-developers] Re: How to create a View from an external XML source?

2009-09-14 Thread Mark Murphy
Argy wrote: > What if I have this XML layout online (on a website) and I want to > create the layout on runtime? > Is there any way to do this? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0

[android-developers] Re: Managing Large Graphic Set

2009-09-14 Thread Mark Murphy
l not scan inside there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[android-developers] Re: Android WVGA support

2009-09-15 Thread Mark Murphy
size, and leave those manifest elements out of it. Again, this is an educated guess, based upon what we had been told for the last ~15 months on this issue, and it could be they have a whole 'nuther system in mind now. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.

[android-developers] Re: Android WVGA support

2009-09-15 Thread Mark Murphy
erhaps also to deal with screen density and such. The details of how all that works has not been discussed much beyond this thread, and presumably is the meat of Ms. Hackborn's upcoming blog post. Like you, I'm awaiting more details. -- Mark Murphy (a Commons Guy) htt

[android-developers] Re: Make a call without dial in background

2009-09-15 Thread Mark Murphy
> Is possible to make a call programaticaly without the dial? I want to > make an app that in background make a call, but i need that don't show > the Dial app, only my own app. > > Anyone can help me? Use the ACTION_CALL Intent. You will need the associated permission (CA

[android-developers] Re: tabs iphone style

2009-09-15 Thread Mark Murphy
be done any number of ways, though I would start with a ViewFlipper. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Deep sleep behaviour

2009-09-15 Thread Mark Murphy
o deep sleep? There is no notification when the CPU shuts down. >> I want to do some >> task before my application be killed by the system. When the CPU shuts down, your application is not killed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: HttpURLConnection headers

2009-09-15 Thread Mark Murphy
fy-the-header-of-a-httpurlconnection -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Is there a way to determine which phone I'm running on?

2009-09-15 Thread Mark Murphy
junker37 wrote: > Is there a way to get the phone type? For example, can I determine if > the phone is a G1, or myTouch, etc? android.os.Build.MODEL is probably what you want. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android

[android-developers] Re: How To Programmatically Reboot The Phone

2009-09-15 Thread Mark Murphy
google.com/group/android-developers/browse_thread/thread/5a97467ef5b4bf47/a1fe9379d4f5e30f -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~

[android-developers] Re: Android/Donut TTS - does it work in the emulator?

2009-09-16 Thread Mark Murphy
inconvenience." So, try downloading a fresh SDK and see if that clears up your problem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received

[android-developers] Re: Deep sleep behaviour

2009-09-16 Thread Mark Murphy
pect that you have no guarantees on how long the device will stay awake. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message becaus

[android-developers] Re: Viewing Requests Made by Another App

2009-09-16 Thread Mark Murphy
nd of ensure a third party app does what > it is saying, and isn't sending data elsewhere. You can try Wireshark, which is the standard tool people seem to use for this sort of analysis. It may be easier if you can get the app installed on an emulator. -- Mark Murphy (a Commons Guy) h

[android-developers] Re: Make a call without dial in background

2009-09-16 Thread Mark Murphy
ated permission (CALL_PHONE). > I think that is impossible. If your goal is to place a phone call without the user knowing *at all* -- not only skipping the dialer, but skipping the in-call screen -- that is impossible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twit

[android-developers] Re: Make a call without dial in background

2009-09-16 Thread Mark Murphy
Efor18 wrote: > And is possible to stop a call, for example, 10 second after the call > start? I am not aware of a way to do that through the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andm

[android-developers] Re: mmap fails

2009-09-16 Thread Mark Murphy
the [android-porting] list. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[android-developers] Re: Emulator won't finish booting...

2009-09-16 Thread Mark Murphy
r than to improve system performance, either through hardware (e.g., more RAM) or software (e.g., less stuff running). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 J

[android-developers] Re: Running big chunks of SQL

2009-09-16 Thread Mark Murphy
sqlite3 command and run the batch that way, but sqlite3 could get dumped in some future Android release to save firmware space, so I would not rely upon it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany,

[android-developers] Re: Track web browsing and web browsing ralated activities on android

2009-09-16 Thread Mark Murphy
r expert comments and help as > early as possible. This is not possible for any existing browser application (thank goodness). You are welcome to write your own Web browser application that records this information. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitte

[android-developers] Re: Widget and views

2009-09-16 Thread Mark Murphy
t;wrap_content" > android:layout_height="wrap_content" /> > > > > With this layout, how can I access my "myTxt" object ? > > Thank you for your help > > ColletJb > > PS : In an Activity, the equivalent is "findVie

[android-developers] Re: 1.6 SDK Arrow keys (dpad/trackball) dir not changing with orientation?

2009-09-16 Thread Mark Murphy
Xavier Ducrohet wrote: > That's a really stupid bug... > *sigh* On the plus side, it means Mr. Green and I aren't crazy. Well, OK, it means Mr. Green isn't crazy, and this incident is insufficient proof that I am crazy. ;-) -- Mark Murphy (a Commons Guy) http://c

[android-developers] Re: 1.6 SDK Arrow keys (dpad/trackball) dir not changing with orientation?

2009-09-16 Thread Mark Murphy
test games :/ I can definitely reproduce this. I have opened an issue on it, to better track what's going on: http://code.google.com/p/android/issues/detail?id=3916 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS

[android-developers] Re: Hello

2009-09-16 Thread Mark Murphy
suzanne.alexandra wrote: > I'm Suzanne Alexandra, and I work with Android at Motorola. I'm a real > human and will be posting here from time to time. Hi, Suzanne! Welcome to the funhouse! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commons

[android-developers] Re: Where does com.google.common.DataRequestListener come from?

2009-09-16 Thread Mark Murphy
ideas? > > btw: I found some documentation on this > http://www.androidjavadoc.com/m5-rc15/com/google/common/DataRequestListener.html. That class is very very old and was removed prior to Android 0.9 shipping, IIRC. The application will need to be updated to a newer version of the Android API

[android-developers] Re: question about the conference

2009-09-16 Thread Mark Murphy
anyone involved in MWC actually follows this list... http://www.mobileworldcongress.com And, of course, I am looking forward to Google I/O 2010, so I can pick up more LEGO bricks. ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App D

[android-developers] Re: Where does com.google.common.DataRequestListener come from?

2009-09-16 Thread Mark Murphy
aRequestDispatcher, nor does it appear in the Android source code. MapActivity does not have a public createMap() method, either. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~--

[android-developers] Re: How to pass a variable to a new activity via intent ?

2009-09-16 Thread Mark Murphy
; hold of the Intent which I created in the old Activity ? Any suggestions ? Call getIntent(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You r

<    7   8   9   10   11   12   13   14   15   16   >