Re: [android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
Thanks for your help. On 20/04/2010 15:37, Mark Murphy wrote: Tom F M White wrote: TripleText is just an object for storing 4 strings, 3 for the text, 1 for the image URL. Rest of the code follows, sorry it's quite long... TripleTextView: public class TripleTextView extends LinearL

Re: [android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
} return ttv; } } On 20/04/2010 15:25, Martin Obreshkov wrote: Can you paste some code On Tue, Apr 20, 2010 at 5:19 PM, Tom F M White <mailto:fred...@gmail.com>> wrote: I've made a custom ListAdaptor, with associated View, that displays an icon on the left of

[android-beginners] Images Reused in a ListView

2010-04-20 Thread Tom F M White
ges end up reused for the entire list. The text for each list item is correct. What is going wrong? Tom -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackov

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-20 Thread Tom F M White
wrote: Tom F M White wrote: I'm calling start a relatively long time later, several seconds. Do I need to call onServiceConnected() myself? No, it should be called shortly after you call bindService(). This suggests that your bindService() call is failing for some reason (e.g., your

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
On 19/04/2010 21:43, Mark Murphy wrote: Tom F M White wrote: I'm calling start a relatively long time later, several seconds. Do I need to call onServiceConnected() myself? No, it should be called shortly after you call bindService(). This suggests that your bindService() ca

Re: [android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
On 19/04/2010 21:36, Mark Murphy wrote: Tom F M White wrote: Further to my previous email, I have sketched out how my Media Player will work with the actual MediaPlayer object in a separate service, MediaService. I can't work out how to make calls, and retrieve data from the se

[android-beginners] Using Methods in a Service from an Activity

2010-04-19 Thread Tom F M White
Further to my previous email, I have sketched out how my Media Player will work with the actual MediaPlayer object in a separate service, MediaService. I can't work out how to make calls, and retrieve data from the service. Following tutorials online has lead me to this: MyApp.java - top level Ac

Re: [android-beginners] Media Player App

2010-04-19 Thread Tom F M White
Thanks for your reply, I'm looking into the documentation for Services now. Tom On 19/04/2010 19:31, Justin Anderson wrote: First, whatever is playing the music should run as a service and not as an activity... I would probably create a NowPlayingService and a NowPlayingAct

[android-beginners] Media Player App

2010-04-19 Thread Tom F M White
f the problem can help someone point out what I'm doing wrong. Thanks in advance Tom -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/quest

Re: [android-beginners] Windows or Mac as an Android development platform?

2010-01-21 Thread Tom Opgenorth
I know it's not a choice you listed, but I'm using Ubuntu and prefer that to Windows. For an IDE I'm trying out IntelliJ 9 and I'm liking that much better than Eclipse. However, I'd say that whatever you like the best and cause you the least friction as you develop. On Tue, Jan 19, 2010 at 17:3

Re: [android-beginners] Android Dev Phone upgrade to 2.0 (or 2.1)

2010-01-21 Thread Tom Opgenorth
Apparently there are some issues still with 2.0 on the Dream that HTC is trying to work out, so nothing official from HTC yet. That said, I think if you look on xda-developers, you will find some home-brew images. I did come across a link on twitter yesterday that hinted at a February time fram f

Re: [android-beginners] How long is loooooonnnnggggggg

2009-12-02 Thread Tom Chen
Did you wait for your emulator to finish loading? Once it finishes loading you can leave it running and builds install very quickly. Tom On Tue, Dec 1, 2009 at 10:11 PM, jk wrote: > I've ran into the same problem with hello world. > > How long is long. > > I am at 2

[android-beginners] Creating a dialog from a Service

2009-11-29 Thread Tom Reay
doing whatever they currently are. Is there any way to do this? I know its considered bad programming, but it won't be as intrusive as it sounds! Thanks Tom Reay -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this gr

Re: [android-beginners] why Java, not Python?

2009-11-22 Thread Tom Chen
the client side language for android based on the founders experience would be java. Tom On Sun, Nov 22, 2009 at 4:07 PM, Shawn Brown wrote: >> Again, not trying to start any arguments, just curious if >> anyone has any background on this. > > Well consider that Google Ap

Re: [android-beginners] Getting "Hello, Android" to Run w/SDK 2.0

2009-11-05 Thread Tom Chen
Try waiting a while.. like a good 2 minutes. It takes the emulator a while to startup before your test application is loaded. Tom On Wed, Nov 4, 2009 at 11:06 AM, CremeBrulee wrote: > Brand new to Android, but using Eclipse for a while. > > Using this tutorial: > > http://develo

[android-beginners] Re: Emulator permission problem

2009-10-27 Thread Tom
Thats it. Thank you. On 27 Oct, 10:51, RichardC wrote: > If you are developing for 1.6 you will need the WRITE_EXTERNAL_STORAGE > permission in your manifest. > > -- > RichardC > > On Oct 27, 10:24 am, Tom wrote: > > > Anyone have any ideas? > > &g

[android-beginners] Re: Emulator permission problem

2009-10-27 Thread Tom
n Mon, Oct 26, 2009 at 8:01 PM, Tom wrote: > > > Im am trying to download a file via HTTP and save it to phone/SD card. > > But i keep getting the flowing error. > > > Parent directory of file is not writable: /sdcard/txt.txt > > > I have also tryed downloading straig

[android-beginners] Emulator permission problem

2009-10-26 Thread Tom
Im am trying to download a file via HTTP and save it to phone/SD card. But i keep getting the flowing error. Parent directory of file is not writable: /sdcard/txt.txt I have also tryed downloading straight to the phone but i keep getting the same error. Is it possible to change the permssions on

[android-beginners] Re: Mounting sdcard in Emulator

2009-10-26 Thread Tom
Tryed this. Still get the error "### WARNING: SD card files must be at least 8 MB, ignoring 'sdcard.iso" On 26 Oct, 10:33, Desu Vinod Kumar wrote: > HI > > directly create new AVD with SD CArd in the eclipse AVD Manager > > > > On Mon, Oct 26, 2009 at 4:01 P

[android-beginners] Re: Mounting sdcard in Emulator

2009-10-26 Thread Tom
can modify the bat file to fit your env. > > >http://www.codemobiles.com/forum/viewtopic.php?p=62&highlight=make+em... > > > On Thu, Oct 22, 2009 at 6:46 PM, Tom wrote: > > >> I cant seem to mount a SDcard image to the emulator. > > >> I have create and image in

[android-beginners] Re: Mounting sdcard in Emulator

2009-10-26 Thread Tom
Does anyone have any ideas on this? On 22 Oct, 11:46, Tom wrote: > I cant seem to mount a SDcard image to the emulator. > > I have create and image in Command Prompt using the command > mkscard 1024m sdcard.iso > > I have also placed -sdcard C:\path\to\image\sdcard.iso in Addi

[android-beginners] Mounting sdcard in Emulator

2009-10-22 Thread Tom
I cant seem to mount a SDcard image to the emulator. I have create and image in Command Prompt using the command mkscard 1024m sdcard.iso I have also placed -sdcard C:\path\to\image\sdcard.iso in Addidtional Emulator Commad Line Options for the emulator in eclipse. When i launch the emulator i

[android-beginners] Re: I'm not able to receive more than two GPS position. The application hangs.

2009-06-16 Thread Tom Bridge
Hi Im getting the same problem when trying the devx.com tutorial with the GPS only working twice. I tried getting rid of the Toast completely incase that was causing a deadlock like Mike suggested but with no luck. I was wondering if anyone found the problem or had found a better tutorial? Tom

[android-beginners] Re: Can't touch on the screen when adding view in arrayadapter

2009-06-04 Thread Tom
Hi, I've the same problem Did you get any issues? Best Regards Tom On 23 avr, 04:18, aby wrote: > Hi, > I want to add some views in each row of listview. > > When I add textviewand imageviewin getView() ofArrayAdapter,it > works.But after I add other kind of  views (like

[android-beginners] Re: Maximum SD Card size?

2009-06-01 Thread Tom Opgenorth
I've got a 16GB card in my ADP1 for about the past week or so. No problems. On Fri, May 29, 2009 at 17:27, marak...@gmail.com wrote: > > I think i read somewhere it was 8GB, although i have a feeling it > depends more on the phone compatability. Im using the Dream(same as > your G1), so id say

[android-beginners] what is the MIME type for the Contacts.Photos.DATA picture???

2009-05-25 Thread tom
HI, I am trying to get the MIME type for the photo that can be attached to the Contacts information. Where can i find the MIME type ?? . I cannot see the MIME type data from the Contacts.Photos class , where can i find it ?? Thanks for the helper. --~--~-~--~~~---~

[android-beginners] startActivityForResult/onActivityResult question

2009-05-15 Thread Tom Opgenorth
Hello all, I'm new to Android development, and am a bit confused here. I'm hoping someone can help me out. I hope I've got the correct list. Anyway, I've got a very simple Activity, one EditText and one Button. Lets call it MyActivity. Now, when I click on the button on MyActivity, I want to ta

[android-beginners] Re: Android on Ubunty 9.04

2009-04-27 Thread Tom
I had an issue with adb not recognizing my G1 anymore. Solved it by stopping the adb server: "adb kill-server" and then starting the server again with sudo: "sudo adb start-server". That did the trick for me. Regards, Tom. On Apr 25, 12:10 pm, wonglik wrote: > Hi

[android-beginners] Re: OMA DM Support

2009-04-20 Thread Tom
Hi, Is it at least planned? Thks Tom On 20 fév, 06:56, Jean-Baptiste Queru wrote: > No. > > JBQ > > On Thu, Feb 19, 2009 at 8:15 PM, mozaal wrote: > > Hi, > > > Is there A OMA DM andFOTAin Android support. > > > mozaal > > -- > Jean-Ba

[android-beginners] Re: Calendar.MONTH returns always 1 (January)

2009-02-27 Thread Tom
Just wait until Sunday. :-) http://java.sun.com/javase/6/docs/api/constant-values.html#java.util.Calendar.FEBRUARY Month is zero based. On Feb 26, 5:04 pm, xerberus wrote: > I try to get the current month with the following code : > > Calendar c = Calendar.getInstance(); > mYear = c.get(Calend

[android-beginners] Backing up SMS database on RC8 / RC30

2009-02-23 Thread Tom Fanning
RC8 just after I got the phone taking away root) I've seen a market app for backing up SMS to Gmail but I'd rather just have the sqlite database off the device so I can properly restore it later on. I've got a bit of a catch-22 situation here, wondering if anyone has any insi

[android-beginners] Re: APK file size and compiling in Eclipse

2009-01-20 Thread Tom
I should also note that in the Market it is 3M in size(!). Ouch. On Jan 20, 4:38 pm, Tom wrote: > My APK file size is 1.3M compiled out of Eclipse.  No manner of > tweakings of the project settings seems to change the size of this > (specifically Java Compiler / Classfile Generatio

[android-beginners] APK file size and compiling in Eclipse

2009-01-20 Thread Tom
My APK file size is 1.3M compiled out of Eclipse. No manner of tweakings of the project settings seems to change the size of this (specifically Java Compiler / Classfile Generation toggles for debugger info). Besides reducing the res/drawable image sizes, are there other things to help reduce th

[android-beginners] XML example of ExpandableListView

2009-01-18 Thread Tom
Anyone have a pointer to an example of an all XML ExpandableListView? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com T

[android-beginners] Re: Run my application on Android enabled mobile

2009-01-16 Thread Tom Fanning
On Wed, Jan 14, 2009 at 10:04 PM, Peace_in_mind wrote: > > So, you mean i need to have a G1 to test any application? > > I have an old Nokia which I dont use any more. Can Android be deployed > in that nokia (or any other phone with different OS assuming the old > OS will be gone)? > > -P > Ther

[android-beginners] Re: Run my application on Android enabled mobile

2009-01-14 Thread Tom Fanning
Um, the G1? http://en.wikipedia.org/wiki/Google_phone On Tue, Jan 13, 2009 at 9:06 AM, Jay wrote: > > Dear All, > Is there any Android enabled mobile provides an environment to run my > application directly? If so, how to compile my application for their > platform? > Thanks in advance, > Best

[android-beginners] Re: Show outlines of all stars in ratingBarStyleIndicator?

2008-12-30 Thread Tom
Still looking if anyone has a suggestion. On Dec 18, 8:38 pm, Tom wrote: > I'd like to have all the stars displayed with outlines for the rating > bar. Currently only the stars that are filled or partially filled > show their black outlines. (eg. If the numStars is 5 and rating

[android-beginners] Show outlines of all stars in ratingBarStyleIndicator?

2008-12-18 Thread Tom
I'd like to have all the stars displayed with outlines for the rating bar. Currently only the stars that are filled or partially filled show their black outlines. (eg. If the numStars is 5 and rating is 2.5, the first three stars would have their outlines shown but the last two would just be the

[android-beginners] Re: How to get the parent Activity of a View?

2008-12-16 Thread Tom
Perfect, thanks! On Dec 16, 6:45 pm, Mark Murphy wrote: > Tom wrote: > > Given a View (an ImageButton in my case) can I get the parent Activity > > from it somehow? > > View#getContext() should typically return the activity. > > -- > Mark Murphy (a Commons Guy)http

[android-beginners] How to get the parent Activity of a View?

2008-12-16 Thread Tom
Given a View (an ImageButton in my case) can I get the parent Activity from it somehow? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-b

[android-beginners] TranslucentBlurActivity help

2008-12-05 Thread Tom
I've seen a number of questions/issues with the translucent blur activity example but no solution that works for me. I see the text but the background is solid without any transparency. Can anyone spot what I am missing in the various pieces below? --AndroidManifest.xml-- --res/layout

[android-beginners] Re: Image retrieval and display

2008-12-03 Thread Tom
@Gavin I found this post extremely useful: http://groups.google.com/group/android-developers/browse_thread/thread/34d8eb0cf04f3ada/276a049ca61b8c70?lnk=raot If you browse the source of Camera you'll see how easy it is to call the camera app and get back the picture it takes. Good luck! On Dec

[android-beginners] Re: Gallery beneath a square ImageButton, how to create?

2008-12-03 Thread Tom
Yes, that's what I resorted to doing to get it to work but I was hoping to learn some XML tips&tricks. If I figure it out I'll be sure to post back here. Thanks! On Dec 2, 9:21 am, Christine <[EMAIL PROTECTED]> wrote: > On Dec 1, 8:03 pm, Tom <[EMAIL PROTECTED]> wr

[android-beginners] Gallery beneath a square ImageButton, how to create?

2008-12-01 Thread Tom
I'm trying to make a square ImageButton whose dimensions are deviceWidth by deviceWidth. Under this is a Gallery whose height is deviceHeight - deviceWidth (remaining space below the square ImageButton). Is there a way to do this in XML? --~--~-~--~~~---~--~~ Y

[android-beginners] IP address for G1 via USB?

2008-11-18 Thread Tom
The emulator has an IP address of 10.0.2.2, does the phone connected via USB have one as well? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to a

[android-beginners] Re: Activity.setResult(RESULT_OK, intent) resulting in RESULT_CANCELED

2008-11-18 Thread Tom
Network hiccup there? On Nov 18, 11:34 am, Tom <[EMAIL PROTECTED]> wrote: > I am trying to pass a jpeg from the camera back to the calling > activity. From a Handler I call activity.setResult(RESULT_OK, intent) > where intent is a new Intent() with a Bundle containing the

[android-beginners] Activity.setResult(RESULT_OK, intent) resulting in RESULT_CANCELED

2008-11-18 Thread Tom
I am trying to pass a jpeg from the camera back to the calling activity. From a Handler I call activity.setResult(RESULT_OK, intent) where intent is a new Intent() with a Bundle containing the jpeg. In the onActivityResult() of the original caller, though, I get a resultCode of RESULT_CANCELED.

[android-beginners] Howto? Boxes with text movable by touch

2008-04-06 Thread Tom Arnold
Hello list, i want to code something like a scroller (C64 style) with text in boxes that can be moved by flipping it with a finger.The boxes should have different sizes. How would i do that and what is the best example to start from? Thanks! - Tom