[android-beginners] Re: Selecting a city & location

2009-09-24 Thread Mark Murphy
nts for anything, let alone getting latitude and longitude of a city from a list. I am not aware of anything built into Android that offers such an Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-

[android-beginners] Re: Please Help Urgent: Get active context dynamically of an application

2009-09-24 Thread Mark Murphy
09/06/22/youve-got-questions-thats-understandable/ If you do not think your questions are getting sufficient attention here, try StackOverflow, for example. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsw

[android-beginners] Re: Please Help Urgent: Get active context dynamically of an application

2009-09-24 Thread Mark Murphy
The user might have exited your activity, for example. I am not aware of a 100% reliable way to raise a dialog triggered asynchronously, such as in onPostExecute(). One approximate answer is to have the activity register a listener object with the service (e.g., in onCreate()) and unregister itself

[android-beginners] Re: Sense UI

2009-09-24 Thread Mark Murphy
> 'Where do i get the sense UI theme? Is it opensourced?" It is not open source, and AFAIK the theme is not distributed to third parties. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.c

[android-beginners] Re: Scroll image like a WebView

2009-09-23 Thread Mark Murphy
droid_ covers this API, albeit for a Sudoku game rather than something like Nethack. One of these days, I'll have to learn this stuff myself... -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~-

[android-beginners] Re: Phone call, recording

2009-09-23 Thread Mark Murphy
> And how about NDK? That would be a good question to ask on the [android-ndk] Google Group. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this mess

[android-beginners] Re: Phone call, recording

2009-09-23 Thread Mark Murphy
> Did Android SDK 1.6 provide api to work with call stream? (incomming/ > outcomming) Not that I have seen. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You re

[android-beginners] Re: Possible to send object via intent extras?

2009-09-23 Thread Mark Murphy
to expose some sort of stream, you will need to wrap the stream in some API that you expose to other applications via AIDL. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ Yo

[android-beginners] Re: NDk c File operation

2009-09-22 Thread Mark Murphy
> if yes please let me know how to do that . Please post NDK questions to the [android-ndk] Google Group: http://groups.google.com/group/android-ndk -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsw

[android-beginners] Re: Active and deactivate the Wifi Radio

2009-09-21 Thread Mark Murphy
eateWifiLock() if you truly need a WifiLock. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

[android-beginners] Re: Communicate between two threads

2009-09-21 Thread Mark Murphy
postDelayed(), also available on all subclasses of View) to get around this. But, then again, I code in Ruby when I am not doing Android development, so I am used to the quasi-closure structure you get with Runnable objects. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App De

[android-beginners] Re: Communicate between two threads

2009-09-21 Thread Mark Murphy
s a whole, not just within your application. Ordinarily, I would have suggested AsyncTask, but I believe the threading model the OP needs for the ServerSocket will not work well with the AsyncTask framework. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Bo

[android-beginners] Re: Communicate between two threads

2009-09-21 Thread Mark Murphy
n the UI thread. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To

[android-beginners] Re: RUN App problem

2009-09-20 Thread Mark Murphy
suggestions...will be most welcomed. Look at your Java stack trace via adb logcat, DDMS, or the DDMS perspective in Eclipse. It will tell you where you are going wrong. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http:/

[android-beginners] Re: make my own libraries

2009-09-19 Thread Mark Murphy
to use those components still needs to declare those components in its manifest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this messag

[android-beginners] Re: auto-enable GPS

2009-09-19 Thread Mark Murphy
at the act of rooting a device, or at least via whatever techniques you used, means you are allowed to install applications that request android.permission.WRITE_SECURE_SETTINGS. If you have a non-rooted device, try it, and let me know if it still works for you. -- Mark Murphy (a Commons Guy) http:/

[android-beginners] Re: Unable to reference custom class in xml

2009-09-19 Thread Mark Murphy
ing your $ with a . and see if that works. $ notation is used in things like stack traces, but in Java code, the dot is the separator (think LinearLayout.LayoutParams and Settings.Secure). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitte

[android-beginners] Re: auto-enable GPS

2009-09-19 Thread Mark Murphy
e". Actually, I was under the impression that it as much, if not more, an issue of privacy as it was battery. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~

[android-beginners] Re: auto-enable GPS

2009-09-18 Thread Mark Murphy
app, but am surprised to see this. If the user disables GPS, that is the user's right. If the user has GPS enabled, the GPS radio is still normally off, for battery reasons, but it will automatically turn on once you request location updates or something. Similarly, the radio will automatic

[android-beginners] Re: SecurityException for Browser activity in TabWidget

2009-09-18 Thread Mark Murphy
one of the built-in > content choices for TabActivity tabs (either views or intents). No, but you can add a listener to find out when tabs are selected. > It > would take some kind of trick to call startActivity() when the tab is > clicked. Try setOnTabChangedListener() on TabHost.

[android-beginners] Re: SecurityException for Browser activity in TabWidget

2009-09-18 Thread Mark Murphy
rather strange user experience. > What can you do with an Intent other than call startActivity()? You can broadcast it. You can find activities that support it via PackageManager. You can start services with it. And so on. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twit

[android-beginners] Re: SecurityException for Browser activity in TabWidget

2009-09-18 Thread Mark Murphy
s the whole RemoteViews framework to allow applications to define lightweight UIs that serve as app widgets -- that UI has to be run in the home screen's process. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need he

[android-beginners] Re: SecurityException for Browser activity in TabWidget

2009-09-18 Thread Mark Murphy
ed third party activities into your tabs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subsc

[android-beginners] Re: Analog clock

2009-09-18 Thread Mark Murphy
android learner wrote: > I read on another forum that android does not allow > one to create custom classes for home screen widgets. Is that true? Yes, that is true. You are limited to the handful of classes that RemoteViews supports. -- Mark Murphy (a Commons Guy) http://commonswa

[android-beginners] Re: launch app from an app

2009-09-18 Thread Mark Murphy
droid.camera.GalleryPicker"); > intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > startActivity(intent2) > > Couldn't understand how to do it with other apps. You will need to use methods on PackageManager to determine an appropriate activity to use for that package. getLaunch

[android-beginners] Re: launch app from an app

2009-09-18 Thread Mark Murphy
appreciated. Call startActivity() to open up whatever activity you want from the other app(s). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~

[android-beginners] Re: onStop / onPause / onDestroy with Threads

2009-09-18 Thread Mark Murphy
he system", because you still hold references to them. The Activity will not be on the screen, and so whatever you do will not be visible. And, it is conceivable that you will do something that will cause a disconnected Activity to fail with an Exception, but you should not be relying upon that

[android-beginners] Re: Arayadapter only shows text when highlighted

2009-09-18 Thread Mark Murphy
djust your own custom layout to have the right color scheme for drop-down lists. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.1 Available! --~--~-~--~~~---~

[android-beginners] Re: Unknown host www.google.com (was Re: debug.keystore is missing)

2009-09-17 Thread Mark Murphy
NTERNET permission...ummm...I got nuthin'. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

[android-beginners] Re: Terminate call programmatically

2009-09-17 Thread Mark Murphy
Chris Stratton wrote: > On Sep 17, 7:12 am, Mark Murphy wrote: > >> 2. You cannot "hangup/terminate call programmatically" from an SDK >> application. > > Can you turn off the radio / enter airplane mode? Or will that only > pop up a dialog for the us

[android-beginners] Re: Development Phone

2009-09-17 Thread Mark Murphy
AngelOD wrote: > On Sep 16, 1:31 pm, Mark Murphy wrote: >> I have seen no evidence that HTC makes firmware upgrades available >> directly. They always handle that through whoever distributed the device >> (e.g., T-Mobile for the T-Mobile myTouch3G version of the Magic). S

[android-beginners] Re: Development Phone

2009-09-17 Thread Mark Murphy
ot know how well it will work if you are using unsupported sizes. That's a better topic for the [android-porting] list, anyway. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-

[android-beginners] Re: Terminate call programmatically

2009-09-17 Thread Mark Murphy
ay). 2. You cannot "hangup/terminate call programmatically" from an SDK application. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You

[android-beginners] Re: Manifest file

2009-09-17 Thread Mark Murphy
ocumentation that covers this: http://developer.android.com/guide/topics/manifest/manifest-intro.html > Can we modify this file for any reason? You can modify it when you need to. If you are using Eclipse, it may make some modifications for you, but other changes you may need to make your

[android-beginners] Re: How to change the Typeface of ListView and Spinner

2009-09-17 Thread Mark Murphy
s via a wrapping adapter -- this would be more reusable but a bit slower. I have an AdapterWrapper base class here: http://github.com/commonsguy/cwac-adapter and some projects that use it here: http://github.com/commonsguy/cwac-endless http://github.com/commonsguy/cwac-thumbnail -- Mark Murphy (a C

[android-beginners] Re: Development Phone

2009-09-17 Thread Mark Murphy
.. It does, for the form factors that are officially supported by Android. -- 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 re

[android-beginners] Re: Hierarchy Viewer

2009-09-17 Thread Mark Murphy
art, no logs on the console also. Unfortunately, hierarchyviewer does not work on actual production Android devices. -- 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-beginners] Re: Math functions in Android - HELP

2009-09-16 Thread Mark Murphy
reference/java/lang/Math.html This is standard Java, nothing unique to Android. -- 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

[android-beginners] Re: Screen orientation

2009-09-16 Thread Mark Murphy
Neilz wrote: > How do I test screen orientation on the emulator please? Can I tell it > to switch orientation just like you would on the real device? Windows/Linux: - Mac with numeric keypad: <5> on the numeric keypad -- Mark Murphy (a Commons Guy) http://commonsware.com | http:/

[android-beginners] Re: Development Phone

2009-09-16 Thread Mark Murphy
t such an upgrade. This is one of the many, many reasons why I hope Android spawns a robust market for devices not tied to a carrier, where you get the device from a device manufacturer and use it with a mobile carrier. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitt

[android-beginners] Re: Development Phone

2009-09-16 Thread Mark Murphy
Rafa Perfeito wrote: > I have an HTC Magic from a carrier. Can i update to > 1.6? How? Through the carrier? T-Mobile has not yet announced plans for Android 1.6 for any of their devices. At some point, in all likelihood, they will make such an announcement. -- Mark Murphy (a Commons Guy

[android-beginners] Re: how to change text in a Button

2009-09-16 Thread Mark Murphy
(Button)findViewById(R.id.about_button25); -- 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 Group

[android-beginners] Re: For a project demonstration, any way to clone device screen on a monitor?

2009-09-15 Thread Mark Murphy
en/ I use it all the time when I deliver Android application development training, for the reasons you seek. I need to do more with it (better UI, handle screen rotations, allow recording, etc.), which I hopefully will get to before year's end. -- Mark Murphy (a Commons Guy) http://commo

[android-beginners] Re: Views right of long SingeLine Textviews disappear

2009-09-15 Thread Mark Murphy
this row". 2. Use RelativeLayout instead of LinearLayout and make the TextView use android:layout_toLeftOf="...", where ... is the ID of your ImageView. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---

[android-beginners] Re: Basic App -- not working

2009-09-12 Thread Mark Murphy
am doing wrong :-( Look at the Java stack trace via adb logcat, DDMS, or the DDMS perspective in Eclipse. It should give you some clues. For example, it may be that you did not register your activity class in your application's AndroidManifest.xml file. -- Mark Murphy (a Commons Guy) http:

[android-beginners] Re: New to android

2009-09-12 Thread Mark Murphy
sion (JNI) libraries for Java applications. The Android SDK, for creating such applications, requires Java (and, to an extent, XML). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerd

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
t in the manifest via a element, and see if that improves your results. The example I have been pointing you to demonstrates receivers registered this way. There are a few other examples of this technique in the SystemEvents set of projects. If you *do* have your BroadcastReceiver registered via th

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
, but you want scheduled alarms to trigger code even if the activity is not running, you need a BroadcastReceiver and perhaps some form of service, as per the example I pointed to." -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Tra

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
Mark Murphy wrote: > There is no reason to use AlarmManager for an activity, and I would not > expect AlarmManager to behave very well for an activity. To clarify: if you have a running activity, and you want the activity to do things on a periodic basis, either use Timer/TimerTask (l

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
eal world, when i debug on my device, i see > "low memory, no more background processes" scrolling by in the log quite > often. See above. > still looking for an answer. I gave you one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.co

[android-beginners] Re: alarm manager confusion

2009-09-12 Thread Mark Murphy
ng long-running work to an IntentService, capabilities your app may or may not need. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received th

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
sult() to set the result, and use onActivityResult() to retrieve the result. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received this message be

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
button behaves the same. The BACK button's job is to destroy the current activity and return control to the previous activity on the stack. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
Mark Murphy wrote: > If you wish to save something when the activity is being destroyed, > implement onDestroy() and save it. Where you save it (flat file, > SharedPreferences, database, the Internet) is up to you. > > Bear in mind that onDestroy() may also be called in the c

[android-beginners] Re: onSaveInstanceState question

2009-09-11 Thread Mark Murphy
e current activity is destroyed and started in that case. > The Bundle value in onCreate is null (perhaps because > onSaveInstanceState was not called when Back was clicked. More accurately, the Bundle is null because the application is starting from scratch. -- Mark Murphy (a Co

[android-beginners] Re: preventing Activity from destroying

2009-09-11 Thread Mark Murphy
cent blog post: 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 Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You

[android-beginners] Re: findViewById bug or documentation problem

2009-09-11 Thread Mark Murphy
this reference in the documentation. Most of the documentation is correct, AFAICT. You may wish to post this to http://b.android.com if it is not already there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Ger

[android-beginners] Re: Call to activity problem

2009-09-11 Thread Mark Murphy
> } > } > > > but application crashesh as soon as it receives the sms.so please guys > help me sort out this.thank you Look at your Java stack trace for the exception (via adb logcat, DDMS, or the DDMS perspective in Eclipse), and it will probably indicate where things are going wron

[android-beginners] Re: How Can I Block Unwanted Calls.

2009-09-10 Thread Mark Murphy
might exploit this capability to block all incoming calls, or random incoming calls, or something. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---

[android-beginners] Re: how to read sms from inbox

2009-09-10 Thread Mark Murphy
kapnk...@gmail.com wrote: > Does it also mean that there is knowway to do this? I am not aware of a documented and supported way to access the SMS inbox. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.

[android-beginners] Re: Empty list

2009-09-10 Thread Mark Murphy
iew.INVISIBLE)) and make an associated TextView be visible. Use 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 Need Android t

[android-beginners] Re: how to read sms from inbox

2009-09-10 Thread Mark Murphy
while(c.moveToNext()) AFAIK, this technique is undocumented and unsupported. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You

[android-beginners] Re: preventing Activity from destroying

2009-09-09 Thread Mark Murphy
scribed scenario to occur: 1. You are destroying it yourself via finish(). 2. You are leaking memory at a tremendous rate and Android needs to close it to reclaim memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? htt

[android-beginners] Re: How to open application program AlarmClock in Eclipse IDE

2009-09-09 Thread Mark Murphy
internal APIs not available in the SDK. You can download the whole firmware and there are ways to get all of its code available in Eclipse, though I am not familiar with the specifics. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer

[android-beginners] Re: extracting service values from activity?

2009-09-09 Thread Mark Murphy
ay, or -- create a binding in the service and use bindService() to get a handle to the binding, and use that to get your hands on the service object -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/trainin

[android-beginners] Re: JSON help

2009-09-09 Thread Mark Murphy
w-to-create-a-json-object-in-action-class-of-java -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! --~--~-~--~~~---~--~~ You received this message because

[android-beginners] Re: directions intent?

2009-09-08 Thread Mark Murphy
Jeffrey Blattman wrote: > i'm fairly certain the answer to this is no, but i was wondering if > there's an intent to open up the google maps "get directions" activity. > that sure would be useful. something like, > > geo:lat,long?dest=lat,long There is not

[android-beginners] Re: listview orientation

2009-09-08 Thread Mark Murphy
> How to orient listview items horizontal. ListView does not work horizontally. You may be able to use HorizontalScrollView with something else (e.g., a horizontal LinearLayout) and some extra code to achieve a similar look. -- Mark Murphy (a Commons Guy) http://commonsware.com Android

[android-beginners] Re: How Can I Block Unwanted Calls.

2009-09-08 Thread Mark Murphy
> Can any one tell me how i can block unwanted calls through my application? There is no officially supported way to do this. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.h

[android-beginners] Re: How to Call Browser Activity

2009-09-07 Thread Mark Murphy
> > // bring the user to authUrl, e.g. open a web browser and > note the PIN code > // ... > Intent webLogin = new Intent(this,NetApi.class); > startActivityForResult(webLogin,ACTION_VIEW); startActivity(new Intent(ACTION_VIEW,

[android-beginners] Re: Application to intercept a dialed number an call another number instead

2009-09-04 Thread Mark Murphy
> Completely new to Android. I do not know where to start to make a type > "Console" application that will redirect a call to another number. That is not possible except via changes to the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Devel

[android-beginners] Re: remove apllication from emulator prob

2009-09-04 Thread Mark Murphy
> that is fine but why this default commands are not > finding my packages? I do not understand the question. > does my applications are on another location how to > get > that is there any command? I do not understand this question either. -- Mark Murphy (a Co

[android-beginners] Re: remove apllication from emulator prob

2009-09-04 Thread Mark Murphy
not remove applications from any Android device or emulator that way. You can use the Settings application to manage applications on the emulator the same way as you do on the device. Or, you can use the adb uninstall command: adb uninstall your.package.name.here -- Mark Murphy (a Commons Guy) h

[android-beginners] Re: problems with aidl

2009-09-01 Thread Mark Murphy
Guilherme Melo wrote: > On Sep 1, 1:46 pm, Mark Murphy wrote: >> Guilherme Melo wrote: >>> Hello all, i am creating a service and i am having two big problems >>> with my aidl, first, i cannot import any Java types(Enumeration , >>> Date, etc) that i ge

[android-beginners] Re: problems with aidl

2009-09-01 Thread Mark Murphy
data types: http://developer.android.com/guide/developing/tools/aidl.html#aidlsyntax > the second is that apparently i cannot have two methods with different > parameters, such as as get(in String par) and get (in String par, in > String part2) What happens when you try those sorts of declaratio

[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item

2009-09-01 Thread Mark Murphy
olled by the item. If you have a 200px high image, the row will be 200px high at minimum. If you want shorter rows, design shorter row layouts, and use them per the PDF I linked to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Tr

[android-beginners] Re: Progress bar for upload / doenload

2009-09-01 Thread Mark Murphy
re busy-looping 1000 times, calling setProgress() every time. The UI thread cannot process messages on the queue until after that 1000-count loop is done. If you want Android to draw things, you have to let the UI thread go (e.g., return from onCreate()). -- Mark Murphy (a Commons Guy) http://comm

[android-beginners] Re: ListView Add an image as well as 2 line text to a single list item

2009-09-01 Thread Mark Murphy
the Android sdk > example where i can have a Contact name and number ,on two lines of > single list item. I want to add image as well.. Please help me out! You can find instructions here: http://commonsware.com/Android/excerpt.pdf -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-beginners] Re: Installed Application Version

2009-09-01 Thread Mark Murphy
know the package name for which you want the version information, but it's all right there. -- 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-beginners] Re: Very simple question about the HTC phones with trackballs (like the G1)

2009-08-31 Thread Mark Murphy
Steeler wrote: > And that shows up as DPAD_CENTER? It should. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this mess

[android-beginners] Re: Very simple question about the HTC phones with trackballs (like the G1)

2009-08-31 Thread Mark Murphy
Steeler wrote: > Can you click the trackball, or is there some other button that > generates DPAD_CENTER key events? You can click the trackball on the G1 and Google Ion (HTC Magic). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder&#

[android-beginners] Re: Add an image over an image

2009-08-31 Thread Mark Murphy
hose later in the XML are "higher in the Z axis", meaning they appear to be on top of widgets defined earlier in the XML. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010:

[android-beginners] Re: TotallyLost

2009-08-30 Thread Mark Murphy
ndroid update project (bearing in mind Eclipse won't try to keep your build.xml file up to date). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~

[android-beginners] Re: Invalid apk file

2009-08-30 Thread Mark Murphy
Ivan wrote: > I renamed the file to .zip, seems that Windows could not open it. > Any idea ? Check out: http://groups.google.com/group/android-beginners/browse_thread/thread/705cc102073c4987 and see if it explains what you are seeing. -- Mark Murphy (a Commons Guy) http://commonswa

[android-beginners] Re: Invalid apk file

2009-08-30 Thread Mark Murphy
is not a valid zip file > > So does it mean that the file is corrupted ? Probably. Try renaming it to HelloAndroid.zip and see if Windows can open it, or if it too complains. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Androi

[android-beginners] Re: Playing multiple sounds at once?

2009-08-29 Thread Mark Murphy
Steeler wrote: > I tried using multiple MediaPlayer objects, but they block each other > out. Is there any way to play more than one sound at the same time? Use SoundPool. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki

[android-beginners] Re: Android / SQLite and Java Serialization

2009-08-29 Thread Mark Murphy
y writes to a local file: http://developer.android.com/reference/java/io/ObjectOutputStream.html You can probably arrange a way to have the stream dump to a byte[] and store that in a BLOB column. Or, don't use SQLite -- I seem to recall there is at least one object database for Android availa

[android-beginners] Re: Mediaplay Problem

2009-08-29 Thread Mark Murphy
error dialog? If so, what does adb logcat (or DDMS or the DDMS perspective in Eclipse) show you for a stack trace? You might want to check out logcat anyway, even if it does not display a dialog -- OpenCORE (the multimedia engine) seems to have a tendency to log errors at warning level and not

[android-beginners] Re: The server does not accept apks signed with the debug certificate.

2009-08-29 Thread Mark Murphy
ts my_application.apk If it has CN=Android Debug, it was signed with the debug key. If the CN is your firm, it was probably signed with your production key. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org

[android-beginners] Re: access resource strings from non-android classes?

2009-08-29 Thread Mark Murphy
asses. > > is there a static accessor for resource strings? Not that I am aware of. You need the Context to know where the resources live, AFAIK. You can pass in the Resources object from getResources() if you don't want to pass in the Context for some reason. -- Mark Murphy (a Co

[android-beginners] Re: zip files in resources

2009-08-28 Thread Mark Murphy
IP in the APK, but just store the original data in the APK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] Re: LocationManager.getLastKnownLocation("gps") returns null instead of location object

2009-08-28 Thread Mark Murphy
or emulated equivalent) on. Then, some time later, use DDMS to send a longitude/latitude to the emulator. Your LocationListener's onLocationChange() method will be called with the Location corresponding to your fix. Be sure to eventually call removeUpdates() to turn off the location update cal

[android-beginners] Re: Triggering options list

2009-08-28 Thread Mark Murphy
3 for Exit" > etc etc > > Based on these options I need to trigger different operations. > Any pointers, links, examples on how it can be done AFAIK, that cannot be done without modifying the firmware. -- Mark Murphy (a Commons Guy) http://commonsware.

[android-beginners] Re: Receiving text from a remote source and pasting into the current application

2009-08-28 Thread Mark Murphy
vailable that other applications can use to fetch the text (though they would need to "paste" it themselves). -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You

[android-beginners] Re: Equivalent of MS Windows PostMessage?

2009-08-26 Thread Mark Murphy
thread. Can we back up a step or two and discuss what your actual objective is? PostMessage() is a means to an end -- if you can describe the end, we may be better able to give you an Android-flavored means. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books

[android-beginners] Re: Detect "running in" Android and access to Command Line parameters

2009-08-26 Thread Mark Murphy
uld not use them, let alone rely upon them, as they are undocumented and subject to change in future Android releases. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You

[android-beginners] Re: backgroundservice

2009-08-26 Thread Mark Murphy
so that i must use Inter-Process-Communication? No. Have your activity call startService() to start up the service to do the HTTP operation. Then, when the service is done with the HTTP, have it call stopSelf() to shut itself down. -- Mark Murphy (a Commons Guy) http://commonsware.com Android A

[android-beginners] Re: ListView item stay selected

2009-08-25 Thread Mark Murphy
quot;selected" is one of the background colors. A widget background is usually some form of ColorStateList. You can supply a simple color to setBackgroundColor(), but that only works if you do not intend to allow the item to be selected, for example. -- Mark Murphy (a Commons Guy) http://commo

[android-beginners] Re: confusion about bluetooth

2009-08-24 Thread Mark Murphy
for Java applications. Applications and features built into the firmware have access to bluez. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message b

[android-beginners] Re: SQLite without Context?

2009-08-24 Thread Mark Murphy
> > I must access a SQLite Database from within a Service, but > SQLiteOpenHelper requires an Activity Context object which won't be > there when the Activity which spawned the Service is closed! Use your Service. Service is a subclass of Context. -- Mark Murphy (a

<    1   2   3   4   5   6   7   8   9   10   >