[android-beginners] Re: Please help in creating simple text file

2009-08-22 Thread Mark Murphy
sing some > setting/permission? pls help Where are you getting the Context from? If it is your Activity instance, this code should work. If you are somehow creating your own Context object, then that might be the source of your problem -- use a Context given to you by Android, such as an Acti

[android-beginners] Re: Breaking up Activity classes

2009-08-21 Thread Mark Murphy
lback objects into private anonymous inner classes: private View.OnClickListener onButton=new View.OnClickListener() { public void onClick(View thingThatWentClick) { // something almost intelligent here } }; (then use button.setOnClickListener(onButton); in onCreate

[android-beginners] Re: Android SDK For Beginners?

2009-08-21 Thread Mark Murphy
myself > have a chance to create mainstream popular mobile applications so if > such a reference doesn't exist I may well have to spearhead it. Sounds great! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/com

[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread Mark Murphy
nitin wrote: > thanks for quick response, I am new to android and self learner. how > to see the adb logcat or in Eclipse. http://developer.android.com/guide/developing/tools/ddms.html http://developer.android.com/guide/developing/tools/adb.html -- Mark Murphy (a Commons Guy

[android-beginners] Re: Please help in creating simple text file

2009-08-21 Thread Mark Murphy
data/data/com.my.package/files/test.txt That is not an error. Look at your Java stack trace to find the error. The Java stack trace can be obtained through adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Andrés G. Aragoneses wrote: > Is Flash a proprietary component as well or is the plugin also included > in Android? Flash is rather proprietary. It is not in the Android open source project. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beg

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Rafa Perfeito wrote: >> 1. Donut is not Android 2.0. > > So what is 2.0? Eclair? What is the version correspondent to Donut then? Neither Donut nor Eclair have been released, so there are no version numbers yet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http:/

[android-beginners] Re: Please Tell the Book to Purchase

2009-08-19 Thread Mark Murphy
Pruthvi Raj wrote: > Can you please guide me to take android book for Programming? There are many Android programming books available: http://wiki.andmob.org/books I like the ones written by Mark Murphy, but I'm biased. ;-) -- Mark Murphy (a Commons Guy) http://commonsware.co

[android-beginners] Re: Android SDK 2.0?

2009-08-19 Thread Mark Murphy
Bluefish wrote: > Hello, i am a User of an HTC Hero device with Android 2.0(Donut) 1. Donut is not Android 2.0. 2. AFAIK, HTC Hero shipped with Android 1.5, plus extra HTC proprietary components, such as the HTC Sense UI. -- Mark Murphy (a Commons Guy) http://commonsware.com | h

[android-beginners] Re: getting the pictures taken with my program to appear in gallery

2009-08-19 Thread Mark Murphy
-a-file-from-sd-card-to-email -- 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 subscribed to the Google Gro

[android-beginners] Re: Can't locate com.android.settings activity

2009-08-19 Thread Mark Murphy
Jean-Sebastien Stoezel wrote: > Any input on this issue? Try new Intent(Settings.ACTION_SECURITY_SETTINGS) instead, unless I am misunderstanding what activity you are trying to open. Settings is in android.provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.

[android-beginners] Re: Barcode scanning?

2009-08-19 Thread Mark Murphy
like ZXing: http://code.google.com/p/zxing/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-beginners] Re: Does getLocationFromName actually work??

2009-08-19 Thread Mark Murphy
y, so I do not know the requirements to make it work, other than I am sure it needs the INTERNET permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~--

[android-beginners] Re: Does getLocationFromName actually work??

2009-08-19 Thread Mark Murphy
Jose Ayerdis wrote: > I've been trying to search university around a location but does not > work as i though can somebody help out here??? A search of the Android SDK documentation does not turn up getLocationFromName(). Where do you see this method? -- Mark Murphy (a Common

[android-beginners] Re: why the alertdialog could not display ?

2009-08-19 Thread Mark Murphy
ou can only open the dialog from the UI thread, and Timer/TimerTask runs on a background thread. If you look at adb logcat, DDMS, or the DDMS perspective in Eclipse, you may see a stack trace that will give you more clues. You may need to use Activity#runOnUiThread() or View#post() or a Handle

[android-beginners] Re: Linking with a custom View class

2009-08-18 Thread Mark Murphy
r > count as "platform" development. Surprisingly, it requires no > cryptographic signature (of any kind). It should, at least for consumer devices. I haven't played with modifying firmware, so I don't know what the rules are vis a vis emulator images and such. -- Mark Murp

[android-beginners] Re: Linking with a custom View class

2009-08-18 Thread Mark Murphy
l, and allow apps to statically link with it. -- 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 subs

[android-beginners] Re: startActivity() crash...

2009-08-17 Thread Mark Murphy
Tikoze wrote: > I do not know how to get the logcat trace of the crash, but will > gladly post it if you can tell me how to get it. adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Dev

[android-beginners] Re: Linking with a custom View class

2009-08-17 Thread Mark Murphy
they can run on Dalvik. Android's build process handles this. -- 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

[android-beginners] Re: Linking with a custom View class

2009-08-17 Thread Mark Murphy
compiled classes. Step #4: Distribute the JAR file, or upload the whole thing to github. You can take a look at some of my CWAC components for examples of this process: https://github.com/commonsguy -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Begin

[android-beginners] Re: Load progressive ListView

2009-08-17 Thread Mark Murphy
at I wrote to handle this situation: https://github.com/commonsguy/cwac-endless/tree One of these days, I will cobble together enough time to add more documentation and a blog post about this... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twit

[android-beginners] Re: ListView with addHeaderView Example?

2009-08-16 Thread Mark Murphy
XML file via getLayoutInflater().inflate(). You cannot move a widget that is outside the list into the list in the fashion you are trying to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~

[android-beginners] Re: Removing ListItems

2009-08-16 Thread Mark Murphy
Matt wrote: > On 16 Aug., 03:07, Mark Murphy wrote: >> You gave it an array. To be able to modify it at runtime, you need to >> give it an ArrayList. > > Alright, that did work. But why? Why is there an ArrayAdapter with a > method called "remove" that you ca

[android-beginners] Re: Removing ListItems

2009-08-15 Thread Mark Murphy
Matt wrote: > On 16 Aug., 01:23, Mark Murphy wrote: >> You don't remove it from the list. You remove it from the data source >> underlying the list. >> >> -- ArrayAdapter? Remove it straight from the adapter. >> >> -- CursorAdapter? Remove it

[android-beginners] Re: Removing ListItems

2009-08-15 Thread Mark Murphy
it from the list. You remove it from the data source underlying the list. -- ArrayAdapter? Remove it straight from the adapter. -- CursorAdapter? Remove it from the database or content provider, then requery(). -- Other adapter? U...it should have similar stuff. -- Mark Murph

[android-beginners] Re: ADC2 submit page URL?

2009-08-15 Thread Mark Murphy
through other markets (AndAppStore, SlideME, etc.) or through your own Web site. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~ You received this me

[android-beginners] Re: Befuddled about how to run Android program in emulator

2009-08-15 Thread Mark Murphy
gt; Then I create a jar file with "jar cf HelloAndroid.jar > AndroidManifest.xml". > Can anyone explain why this is not working? > > I would greatly prefer learn how to do things from the command line. Here is the non-Eclipse build documentation: http://developer.android.com/guide/

[android-beginners] Re: Does the camera app work on the emulator?

2009-08-15 Thread Mark Murphy
GPS, etc.). For your own experimentation purposes, working completely off the emulator may be OK. But distributing an app without trying it on a real device is like building a car and never test-driving it before selling it because you didn't buy tires. -- Mark Murphy (a Commons Guy)

[android-beginners] Re: Printed Material

2009-08-14 Thread Mark Murphy
velopment time. Bear in mind that the documentation ships with the SDK and is available on your hard drive. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! --~--~-~--~~~---~--~~

[android-beginners] Re: Using SQLLite with Android

2009-08-14 Thread Mark Murphy
ase will be gone. -- 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 are subscribed to the Google Groups "

[android-beginners] Re: Using SQLLite with Android

2009-08-14 Thread Mark Murphy
ard flash of the device. -- 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 are subscribed to the Google Gr

[android-beginners] Re: Reducing application size by exporting some files to SD card

2009-08-14 Thread Mark Murphy
and delivered onto the device, and cannot be modified once there. That includes deleting portions of its contents. > Or would I have to set up a system where they > install the bare bones and then download the rest from a server and > have those put on the SD card? That would work. -- M

[android-beginners] Re: Block when animation is running

2009-08-13 Thread Mark Murphy
e the > animation is running is the best way. Can I do it? Blocking the UI thread will cause Android to force-close your activity after several seconds, and will confuse and irritate your users up until that point when they can't figure out why the application is not responding to

[android-beginners] Re: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
aspects of the OS, most of the built-in Android apps, and most third-party apps, allow the users to be rather oblivious to details like where things get downloaded to. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanc

[android-beginners] Re: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
phil wrote: > okay, thx. any ideas why i can't download the file from a web server? You need the MIME type set up properly on the Web server to serve it as application/vnd.android.package-archive. Beyond that, I have no idea. -- Mark Murphy (a Commons Guy) http://commonsware.co

[android-beginners] Re: how to install a .apk on my own phone...

2009-08-13 Thread Mark Murphy
phil wrote: > then i tried copying it to the SD card, that worked, but then I > couldn't figure out how to actually install it once I had it on there. You would need a file manager app from the Market to install off the SD card. -- Mark Murphy (a Commons Guy) http://commonsware

[android-beginners] Re: create table and lots of inserts

2009-08-13 Thread Mark Murphy
ase with the data i need. You can package that database as an asset or raw resource, then copy it (via streams) from there to the proper spot in the filesystem. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on

[android-beginners] Re: Procedure to obtain Google Maps API key

2009-08-13 Thread Mark Murphy
Maxood wrote: > Could someone guide me step by step on how to obtain a Google Maps API > key. I am developing a simple Google Maps app for the first time. The full instructions are here: http://code.google.com/android/add-ons/google-apis/mapkey.html -- Mark Murphy (a Commons Guy

[android-beginners] Re: simplecursoradapter updatining the listview

2009-08-13 Thread Mark Murphy
27; and I have tried 'setAdapter' > again but can't seem to get it to work. Help please? requery() should work. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~--

[android-beginners] Re: Block when animation is running

2009-08-13 Thread Mark Murphy
nimation/Animation.AnimationListener.html Step #2: In your code above, where your "// do something else" is, use AsyncTask or some other form of background thread to do the work Step #3: In the AnimationListener#onAnimationEnd() method, put your function() call. -- Mark Murphy (a Co

[android-beginners] Re: How to define intent constructor

2009-08-12 Thread Mark Murphy
s the instance of the inner class. To reference the "this" for an outer class, scope it: new Intent(MyActivityName.this, SubActivity.class) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~

[android-beginners] Re: How to display icon in status pane.

2009-08-12 Thread Mark Murphy
orting]. -- 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 Groups "Android Beginners

[android-beginners] Re: Two questions

2009-08-11 Thread Mark Murphy
a View.OnClickListener to your Button 2. Your guide class is unused, and probably should not be there, with your onClick() implementation being moved to the View.OnClickListener you have not set up The Notepad tutorial, linked to above, will demonstrate how to use a Button. -- Mark Murphy (a

[android-beginners] Re: Two questions

2009-08-11 Thread Mark Murphy
return guidebtn; > }; > } Well, the startActivity() statement seems OK. -- 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: Two questions

2009-08-11 Thread Mark Murphy
h as onClick)?: > > > > > > Generally, you do not need an IntentFilter for that situation. Just reference the class directly when building the Intent you pass to startActivity(): startActivity(new Intent(this, MyNextActivity.class)); -- Mark Murphy (a Commons Guy) http://common

[android-beginners] Re: String.xml

2009-08-11 Thread Mark Murphy
ton to go back to > the first i want to start a function... Use SharedPreferences. Or, use an ordinary text file. Or, use a database. Or, use a static public data member. Or, use a service. Or, use a content provider. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.co

[android-beginners] Re: prting procedure for Android on SMDK2440 board

2009-08-11 Thread Mark Murphy
p://groups.google.com/group/android-porting -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[android-beginners] Re: Rename NotePad project

2009-08-10 Thread Mark Murphy
ould find a Java stack trace in LogCat to help explain the "Force Close". You can get to LogCat via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commo

[android-beginners] Re: Android projects only in Java ?

2009-08-10 Thread Mark Murphy
ner" is called JNI, and it is designed to add native libraries to an application, not for writing applications. > The Android API is only in Java, right ? The SDK is only in Java. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android tal

[android-beginners] Re: Android SDK

2009-08-10 Thread Mark Murphy
do not know how > to proceed. The Android 1.5r3 SDK has 7,735 files in it. Either you were unsuccessful downloading the whole file (should be 191477853 bytes) or your tool for unzipping the file is having difficulty. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter

[android-beginners] Re: Android MySQL Database

2009-08-10 Thread Mark Murphy
use of SQLiteDatabase: http://developer.android.com/guide/tutorials/notepad/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 re

[android-beginners] Re: RelativeView

2009-08-10 Thread Mark Murphy
=/"wrap_content"/ > > android:layout_height=/"wrap_content"/ > > android:layout_above=/"@id/guide"/ > > android:layout_centerHorizontal=/"true"/ > > android:text=/"BirdTracker Main Menu"/ You cannot reference @id/guide h

[android-beginners] Re: RelativeView

2009-08-10 Thread Mark Murphy
tinyang wrote: > > > android:layout_width=/"wrap_content"/ > > android:layout_height=/"wrap_content"/ > > android:layout_below=/"@+id/title"/ Only use the + sign when declaring an ID via android:id. In your layout_below, remov

[android-beginners] Re: want some ebboks to download

2009-08-10 Thread Mark Murphy
sold. Without going into details, we haven't hit that mark yet but should soon, conceivably before the year is out though probably drifting into early 2010. That will trigger releasing the oldest editions under a Creative Commons non-commercial license. -- Mark Murphy (a Commons Guy) http://com

[android-beginners] Re: want some ebboks to download

2009-08-10 Thread Mark Murphy
ing Guide_) are freely distributable. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

[android-beginners] Re: Run only when the application in focus

2009-08-10 Thread Mark Murphy
Leo Lou wrote: > I have enabled a receiver in AndroidManifest. Can I disable the > receiver in run-time? Try PackageManager#setComponentEnabledSetting(). AFAIK, this should work for a manifest-registered receiver, though I have not tried it. -- Mark Murphy (a Commons Guy

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
Stefan wrote: > thanks for the fast answer again. i work with the 1.5r3 version, too. > but in eclipse, if i switch in the Layout tab, all widget are in one > "row". I'd trust the emulator over the Layout tab. But, then again, I don't use Eclipse... -- Mar

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
ge is the right edge of the screen, and so the right edge of @id/ak is set to the right edge of the screen. But then, your next widget has: Here, you are trying to put @id/ake to right of @id/ak, which will not work well, since your previous rule set @id/ak to have its right edge

[android-beginners] Re: Center an element

2009-08-09 Thread Mark Murphy
ty is viewed on a > different sized screen/device, it can auto center itself? Put it inside a RelativeLayout and use android:layout_centerInParent="true". -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutori

[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
tinyang wrote: > Thanks Mark for the reply. Does that then mean that FindViewById searches > all xml files to find the correct view? No, calling findViewById() on an Activity searches the layout you provided in setContentView(). -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-beginners] Re: Android general question

2009-08-09 Thread Mark Murphy
ne for rows in a ListView, etc.). -- 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

[android-beginners] Re: TableLayout problem

2009-08-09 Thread Mark Murphy
d/widget/TableRow.html) Hence, the smaller widgets in the column will expand to fill the space set aside by the largest widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Develop

[android-beginners] Re: Pictures and EXIF data

2009-08-09 Thread Mark Murphy
in Android, it will not work without modification. With open source third-party libraries, all problems like this are solvable, given sufficient time and Red Bull. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_

[android-beginners] Re: Pictures and EXIF data

2009-08-08 Thread Mark Murphy
a picture taken with > the camera already? I have not seen one; then again, I have not really looked. > Also, Are there any code examples one might recommend for taking a picture > with your app/calling the camera library? The SDK ships with some camera examples. -- Mark Murphy (a

[android-beginners] Re: Pictures and EXIF data

2009-08-08 Thread Mark Murphy
es for manipulating EXIF tags, such as Sanselan: http://incubator.apache.org/sanselan/site/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--

[android-beginners] Re: Why XML to define layouts/components?

2009-08-07 Thread Mark Murphy
O. Those sorts of arguments may not matter much to you, which is why the Java-based approach is available and valid. I use it sometimes myself, though not terribly often. Choose the approach that you like. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://tw

[android-beginners] Re: Sample Code missing

2009-08-07 Thread Mark Murphy
t the 1.5 code, the samples are in: $SDK_ROOT/platforms/android-1.5/samples/ where $SDK_ROOT is whatever directory you installed the SDK to. Unless they changed the 1.5r3 SDK since I downloaded it, the ZIP file definitely contains the samples. -- Mark Murphy (a Commons Guy) http://commonsw

[android-beginners] Re: Share Code

2009-08-07 Thread Mark Murphy
ermediary server. If I were you, I'd focus on a scripting language and some sort of HTTP-based exchange via some rented Web host, at least for the prototype of your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commons

[android-beginners] Re: Extending Activity Class

2009-08-05 Thread Mark Murphy
s unusual enough that trying to learn Java and Android at the same time may prove confusing. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~--~~ You received

[android-beginners] Re: When calling findViewById, which constructor of the view will be called to finish instantiation

2009-08-05 Thread Mark Murphy
Tingqiang Ma wrote: > I am a little confused by this. > > For example, when I call > > *mButtonApply=(MyButton) findViewById(R.id.button_apply);* > > Which constructor of MyButton will be called? None. findViewById() finds an existing View, it does not create one. -- M

[android-beginners] Re: Displaying Decimals with ListView

2009-08-05 Thread Mark Murphy
ger, the decimals start getting cut off. > > Any ideas? You are implicitly relying upon something like Float#toString() to display the numeric data. If you want control over the formatting, you will need to use something like setViewText() or a ViewBinder with your SimpleCursorAdapter.

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: > How do I see so many Bluetooth Apps around? Presumably, they are using undocumented APIs that are subject to breakage in future Android releases. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: h

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: > What about WiFi? Use Java sockets. -- 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 subscri

[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Mark Murphy
Abhi wrote: > I am developing an app using Bluetooth on my G2 phone (Tmobile's HTC > MyTouch 3G) but am unable to find any documentation on Bluetooth > classes in Android 1.5. Need help around that!! There are no Bluetooth classes in the SDK at this time. -- Mark Murphy (a Com

[android-beginners] Re: Doing a periodical task. Counter?

2009-08-04 Thread Mark Murphy
Java. Option #6: Fork a thread that uses SystemClock.sleep() and a Handler. Option #7: Use AsyncTask, where you sleep() for a bit in doInBackground() and check the mic/schedule the next task in onPostExecute(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/c

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-03 Thread Mark Murphy
roid is set up. Bear in mind that I was replying to: >>> That is a very poor/disappointing decision by OS designers that really >>> limits the possibilities of the phone That is, IMHO, a completely over-the-top depiction of the situation. That being said, I apo

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
){ > //do stuff > } > > I just commented it out and the menu displays perfectly... So I guess > that method is stopping it detecting my menu key press. You need to return(super.onKeyDown()) if you don't handle the KeyEvent. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
ut"); > return true; > } Try: @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0,1,0, "Set Fav Dir"); menu.add(0,2,0,"Change Layout"); return(super.onCreateOptionsMenu(menu); } and see if that helps. Or, de

[android-beginners] Re: Menus across multiple activities

2009-08-02 Thread Mark Murphy
erykthege...@googlemail.com wrote: > does anyone have any thoughts as to why this isn't working, or > suggestions for workarounds? Without any code, in this case, it is difficult to provide you with advice. If possible, please post the activity that is giving you trouble. -- Mar

[android-beginners] Re: Follow up on my Acitivty Lifecycle Question

2009-08-01 Thread Mark Murphy
y, such as using ViewFlipper. You might be able to figure out something using the whole task thing, but I'm dubious. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~-

[android-beginners] Re: Command for exit froma an application

2009-08-01 Thread Mark Murphy
ctively calls finish(). So, call finish(). -- 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 to the

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-01 Thread Mark Murphy
ilities of the phone You are certainly welcome to your opinion, just as I am welcome to my opinion that your expectations are unrealistic, even for the most open source of projects. > Is there anywhere to request changes and/or bugs? http://b.android.com -- Mark Murphy (a Commons Guy

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-07-31 Thread Mark Murphy
ion. That dialog is tied into the window manager (e.g., PhoneWindowManager) and is not replaceable by SDK applications, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~--

[android-beginners] Re: Port AbsoluteLayout to any other Layout to draw at x,y position

2009-07-31 Thread Mark Murphy
eventually. Until such a tutorial is available, though, I would just stick with AbsoluteLayout for now. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~-

[android-beginners] Re: Audio/Video User Interface

2009-07-31 Thread Mark Murphy
monstrates using a ProgressBar with a MediaPlayer: https://github.com/commonsguy/vidtry/tree -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~

[android-beginners] Re: OnItemClickListener

2009-07-31 Thread Mark Murphy
arg1, int > arg2, > long arg3) { > > } > } > > Any suggestions about what I might be doing wrong? What does your Java stack trace tell you? You can get this via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http

[android-beginners] Re: Command for exit froma an application

2009-07-31 Thread Mark Murphy
any point in your activity to close up that activity, and if you do that from the first activity, it will return the user to the home screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project?

[android-beginners] Re: Encoding for G1 using ffmpeg

2009-07-30 Thread Mark Murphy
mdat atom: http://groups.google.com/group/android-developers/browse_thread/thread/f7f1600cc7e85f2c/6853876731ff2ae9?lnk=raot&pli=1 http://groups.google.com/group/android-developers/browse_thread/thread/7a3a4cce5b840f5f -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/com

[android-beginners] Re: Using Android icon artwork as basis of icon for a paid app - acceptable?

2009-07-30 Thread Mark Murphy
When using the Android Robot or any modification of it, proper attribution is required under the terms of the Creative Commons Attribution license." -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.

[android-beginners] Re: numeric datatype in sqlite, and display problem.

2009-07-30 Thread Mark Murphy
ride setViewText(), or extend it and override bindView(). Since you have not demonstrated how you are putting data into the database, it is difficult to determine the source of your problem. It may be you are using float/Float where you need to be using double/Double. -- Mark Murphy (a Commons Guy

[android-beginners] Re: GridView example

2009-07-29 Thread Mark Murphy
Jens Vegeby wrote: > Well, I personaly like the books at http://www.commonsware.com > > They are cheap too. Thanks! Though I like to think of them as "competitively priced"... ;-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy An

[android-beginners] Re: Programmatically Adding a LinearLayout Error

2009-07-28 Thread Mark Murphy
for you to figure out what your problem is. -- 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-beginners] Re: Telling another activity which item was clicked.

2009-07-27 Thread Mark Murphy
m. How can i tell the > popup activity which item is clicked? i don't understand :) Use putExtra() on the Intent you use with startActivity(), and get...Extra() in the activity to be started, to pass over enough information to allow the second activity to perform its job. -- Mark Mu

[android-beginners] Re: Failed to find provider info for com.google.settings

2009-07-27 Thread Mark Murphy
k on line 19 of your Map.java file and see why it is generating a NullPointerException. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Looking for Android opportunities? http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You re

[android-beginners] Re: Getting started

2009-07-27 Thread Mark Murphy
ta set that never > changes and is a megabyte in size, would anything prevent me > from doing that, or impose difficulty? Well, it still is a phone, so you're not exactly flush with RAM and storage space. A 1MB data structure shouldn't pose a problem, AFAIK. -- Mark Murphy (a Co

[android-beginners] Re: Getting started

2009-07-27 Thread Mark Murphy
an APK file (.apk). > 4. How can I build the equivalent of a jar file from the command-line? ant debug or ant release. http://developer.android.com/guide/developing/other-ide.html http://developer.android.com/guide/tutorials/hello-world.html#noeclipse -- Mark Murphy (a Commons Guy) ht

[android-beginners] Re: TicTacToe et al

2009-07-26 Thread Mark Murphy
Generally speaking, you will get better results on this list if you ask focused, tactical questions. I have some advice I posted on getting assistance with Android up on AndroidGuys: http://androidguys.com/?p=5738 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need h

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
cking with SAX. I also seem to recall seeing a light performance analysis suggesting XPP wasn't any faster than SAX, but I do not remember where I saw it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tuto

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
roblem, but you are running quite the risk. http://code.google.com/p/android/issues/detail?id=2329 If you are successfully adding javax.* classes to your SDK application, perhaps from Apache Harmony, count your blessings, and consider letting us know which ones work! -- Mark Murphy (a Commons Guy

[android-beginners] Re: XML and Java/Android

2009-07-26 Thread Mark Murphy
a.* and javax.* namespace classes being added to projects. -- 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

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