[android-beginners] Re: Read a file

2009-07-30 Thread Kaj Bjurman
I would avoid using the PrintWriter class since it doesn't throw exceptions. You would need to call checkError() after each operation, and you would then only get a return value that says that an error has occured or not. You won't be able to find out why it failed, and won't see any error message

[android-beginners] Re: Hello World Help

2009-07-30 Thread Roman
I noticed when the emulator is not coming up correctly it might be that you still have somewhere a emulator process running. Try to kill this process first and then restart the emulator. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in

[android-beginners] Re: I use android develop sdk1.5 . when i try the demos in the package .

2009-07-30 Thread Gulfam
Hi lily, post yours errors which you are facing then we will be able to say some thing about it Gulfam On Jul 30, 7:06 pm, "Yusuf T. Mobile" wrote: > Can you post what the actual errors are? > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views, opinions and statements in th

[android-beginners] Re: Change an app

2009-07-30 Thread Michael Leung
I am a new to Android as well, but as far as I know, changing the view is lighter than an activity. On Fri, Jul 31, 2009 at 12:41 PM, tinyang wrote: > Well, I was hoping to make the only existing activity one of many > activities the user could choose from the main menu screen eventually. Th

[android-beginners] Re: Hello World Help

2009-07-30 Thread Michael Leung
Are you using Ubuntu 9.04? I got a similar problem in Ubuntu, emulator died. On Fri, Jul 31, 2009 at 12:40 AM, Josh Melrose < josh.melros...@googlemail.com> wrote: > > Hi all > > I've just started to have a look at developing in Android, but I > ashamed to say that I can't even get past the 'Hel

[android-beginners] Trackball listener

2009-07-30 Thread zoerb
Is there a way to set a listener for a trackball event? I've noticed that listeners can be set for most other view events, but not the trackball. Is there a reason for this, or did I miss something? Thanks, Ryan --~--~-~--~~~---~--~~ You received this message bec

[android-beginners] Re: Change an app

2009-07-30 Thread tinyang
Well, I was hoping to make the only existing activity one of many activities the user could choose from the main menu screen eventually. That is why I was thinking to add a main menu screen from which I could use buttond to add sccess to the other activity choices for the app. I'm open to suggest

[android-beginners] Re: Change an app

2009-07-30 Thread Michael Leung
should you change the view? instead of changing to another activity On Fri, Jul 31, 2009 at 11:51 AM, tinyang wrote: > I have an app I wrote for Android. It has only one activity (one java > file) which is the only screen. I would like to add a main menu screen > which has a button that can t

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

2009-07-30 Thread Rob Campbell
I will look int what you said. I just realized that its streaming that is causing the problem because I downloaded the file instead of playing it then played it and it worked so it seems that the file is configured correctly. On Jul 30, 2009 9:02 PM, "Mark Murphy" wrote: Rob Campbell wrote: > I

[android-beginners] Change an app

2009-07-30 Thread tinyang
I have an app I wrote for Android. It has only one activity (one java file) which is the only screen. I would like to add a main menu screen which has a button that can take the user to the already existing activity. What is the best way to do that? Thanks. -- :-) P Please don't print this

[android-beginners] Writing Exif Data

2009-07-30 Thread Rob
Does Android have any facilities for writing custom exif data? In particular, I have some data that will only be available as early as the jpeg PictureCallback. How can I insert this data into the exif header of the jpeg file? I tried using a copy of the ExifInterface class I found online, but

[android-beginners] unable to open sync connection

2009-07-30 Thread MMC2
I get the message "unable to open sync connection", when compiling in Eclipse, often enough to be really annoying and timeconsuming. The only way I can deal with it is to restart the computer. Sometimes it comes up straight after a restart, but usually restarting fixes it for a while. Associa

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

2009-07-30 Thread Mark Murphy
Rob Campbell wrote: > I have tried: > ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 > -s 428x320 -vcodec libx264 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab > 32000 -aspect 3:2 -padright 26 -padleft 26 -y Em.3gp > ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music

[android-beginners] Encoding for G1 using ffmpeg

2009-07-30 Thread Rob Campbell
I have tried: ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 -s 428x320 -vcodec libx264 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab 32000 -aspect 3:2 -padright 26 -padleft 26 -y Em.3gp ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 -s 428x320 -vcode

[android-beginners] Re: WIFI Communication between two or more phones

2009-07-30 Thread Roman
The communication would be of course IP based. You only have to think about whether you want to use UDP or TCP. If it is important for you that data is sent correctly then use a connection oriented approach (TCP). -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views

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

2009-07-30 Thread jhoffman
Thank you very much Mark! That will definitely help me to get up to speed on fair use of the Android Robot icon. I did a few searches but I guess I just wasn't thinking of the right terminology (branding). This helps so much! Thanks again :) On Jul 30, 4:59 pm, Mark Murphy wrote: > jhoffman wrot

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

2009-07-30 Thread Mark Murphy
jhoffman wrote: > Hello everyone, sorry if this is a silly question, but I want to stay > out of legal trouble with my first venture into selling software! > > I have seen that a number of apps on the market modify the original > little green android guy icon (give him hats, clothes, change his >

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

2009-07-30 Thread jhoffman
Hello everyone, sorry if this is a silly question, but I want to stay out of legal trouble with my first venture into selling software! I have seen that a number of apps on the market modify the original little green android guy icon (give him hats, clothes, change his color, etc). I think it is

[android-beginners] Making an Address Book app GV Compatible?

2009-07-30 Thread callingshotgun
I've been tinkering with an Address Book concept app for a while, and while I'm really jazzed about Google Voice, my understanding is that the android version installs its own address book app in order to make sure you dial "from" a GV number instead of your old one. After perusing the API, I fou

[android-beginners] Re: How to use Call APIs in application?

2009-07-30 Thread Roman
You are trying to access the internal telephony APIs on SDK level. >From my knowledge this APIs are not exposed for application on SDK level. If you want to offer these functionality to an application on SDK level you might have to extend the framework. If you are OK with running your applicatio

[android-beginners] Re: WIFI Communication between two or more phones

2009-07-30 Thread Michael Leung
-- infrastructure mode: <--- Therefore you suggest we should IP protocol? On Fri, Jul 31, 2009 at 6:29 AM, Roman wrote: > > You can setup Wifi in two different modes > > -- infrastructure mode: in this mode you are using a Wifi Access Point > (AP) as central router. You get your IP address from

[android-beginners] Re: Android running slow

2009-07-30 Thread Michael Leung
I am using HTC Magic, that is very smooth. But I have no widget in my phone and use Task Manager to kill the tasks. Normally, I won't let any tasks to leave open. On Thu, Jul 30, 2009 at 4:26 PM, Tikoze wrote: > > It seems to me like this should be posted in another group (maybe the > "Android D

[android-beginners] How to unlock screen through code?

2009-07-30 Thread Yasser
I want to unlock the emulator screen before running the tests, otherwise they are stuck till i manually clcik on menu to unlock the screen. tried this but it doesn't do anything. sendKeys(KeyEvent.KEYCODE_HOME); Thanks yasser --~--~-~--~~~---~--~~ You received this

[android-beginners] Re: How to discover exceptions when debugging in actual hardware

2009-07-30 Thread Roman
Normally you should be able to follow the information of what logcat is displaying Example 07-30 12:42:45.511: ERROR/AndroidRuntime(10650): Caused by: java.lang.NullPointerException 07-30 12:42:45.511: ERROR/AndroidRuntime(10650): at com..UserAgent.call(UserAgent.java:314) 07-30 12:42:45

[android-beginners] Re: WIFI Communication between two or more phones

2009-07-30 Thread Roman
You can setup Wifi in two different modes -- infrastructure mode: in this mode you are using a Wifi Access Point (AP) as central router. You get your IP address from the AP when you have DHCP enabled. -- ad-hoc mode: This is a mode in which you can enable peer to peer communication to other Wifi

[android-beginners] How to use Call APIs in application?

2009-07-30 Thread mmj
Hi all, I am doing an applicaton in which i need to customize the call application.Means i need to establish a call from my own application so that the control does not goes to the native application.From the previous discussions it is found like,call APIs are been included in some private packag

[android-beginners] Import SMS?

2009-07-30 Thread Moritz U.
Hello, I'm new to Android, but I really like it. But I'm searching for a way to import my sms-messages from my old phone. I already have them in a csv-file. Is there an application or something for that? It wouldn't be a problem for me to write a small application to accomplish that... I'm exp

[android-beginners] Re: ContextMenu for ListView

2009-07-30 Thread Francesco B.
Hi, I'm interested in this topic. I have a question about the id that returns from info.id. Is this id the same that is used by SQLite? As I see in your example, that I suppose is taken from the developers tutorial, you use info.id to delete an item from SQLite. But the column in SQLite was named

[android-beginners] a simple code to draw a circle

2009-07-30 Thread deepthi
hi , I am a beginner in developing android applications . For starters , I want to wrote a code just to display a coloured circle onscreen. but the emulator says The specified activity does not exist . can anyone check this code for me and suggest changes ? package com.bitmap.android; import and

[android-beginners] Re: Android running slow

2009-07-30 Thread Tikoze
It seems to me like this should be posted in another group (maybe the "Android Discuss" google group) since this group is more for developing for Android. However, Task Manager (now the current version is 1.7) provides a way to close running tasks... just long press on the task and choose "Delete

[android-beginners] Re: Simplify Media Equivalent

2009-07-30 Thread Djay G
Do you have any news on that question? I'm also interested and I maybe not the only one ;-) On 29 juin, 03:28, johnny wrote: > Does anyone know if there's and equivalent application to Simplify > Media for the Android platform? > > http://www.simplifymedia.com/ --~--~-~--~~-

[android-beginners] Re: Android application trying out rss feed read using Rome. Getting exception ExceptionInInitializerError

2009-07-30 Thread Tomas
I've been digging into this, as I was hoping to use ROME for a project on Android. So far I've had little luck. The problem lies in ROME's use of the java.beans package, which is part of the dependencies mentioned on http://wiki.java.net/bin/view/Javawsxml/Rome (in particular the point "J2SE 1.4

[android-beginners] Re: Android application trying out rss feed read using Rome. Getting exception ExceptionInInitializerError

2009-07-30 Thread Tomas
I've been digging into this, and the problem seems to stem from the fact that ROME uses the java.beans package, which is not included in the Android runtime. The java.beans package is central to how ROME works, and not easily removed. It seems ROME is not coming to Android in the short term. On

[android-beginners] Hello World Help

2009-07-30 Thread Josh Melrose
Hi all I've just started to have a look at developing in Android, but I ashamed to say that I can't even get past the 'Hello World' example on the site. It doesn't seem like the application is running, nothing displays in the emulator and no breakpoints are hit. Below is the output: [2009-07-30

[android-beginners] GPS location does not work on real device

2009-07-30 Thread zhen
Hi all, I wrote a simple application that uses the LocationManager to get updates on the user's position. I have tested and it works on the emulator well and i send the coordinates using DDMS. However, I try to run my application on a real device and the location does not updates at all? Why is t

[android-beginners] Using maps in Android application

2009-07-30 Thread Kanak
How can we link maps in our application? I am final year engg student doing the project on android. Basically I am trying to develop a location based to-do list in which I want to make use of Google maps. --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] change the message of a progress dialog

2009-07-30 Thread Jeffrey Blattman
i have a progress dialog. at some point i'd like to change the message via setMessage(...). the message does not change when this method is called. i am sure i'm missing something. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-beginners] R.styleable cannot resolved in Eclipse with ADT

2009-07-30 Thread goldenmice
Hello everyone! Today when I develop a app with ADT Eclipse tells me R.styleable cannot resolved The class menu shown after 'R' doesn't have 'styleable' who can tell me how to solve the problem Thanks a lot My OS is windows XP SP3 The Eclipse version is 3.5.0 Maybe I have something wrong with p

[android-beginners] Re: Android application trying out rss feed read using Rome. Getting exception ExceptionInInitializerError

2009-07-30 Thread Tomas
I've been digging into this, as I was hoping to use ROME for a project on Android. So far I've had little luck. The problem lies in ROME's use of the java.beans package, which is part of the dependencies mentioned on http://wiki.java.net/bin/view/Javawsxml/Rome (in particular the point "J2SE 1.4

[android-beginners] Re: Installing the android SDK on my new PC

2009-07-30 Thread Homer W
I am using MAC OS X 10.4 Tiger Eclipse-java-galileo-macosx-carbon I had this problem and fixed it. Go to "Eclipse" -> "Preferences" -> "Android" Set the SDK location to android-sdk-mac_x86-1.5_r3 Now the three targets appears. I think as long as the path contains the tools/ directory, then it

[android-beginners] Re: Problem with tutorials.

2009-07-30 Thread vivekm
To alleviate the errors in Eclipse, you simply have to include Android1.5 in the project's buld path: 1. Click on Project >> Properties 2. Select "Java Build Path" >> Order and Export. 3. Make sure that the checkbox against Android 1.5 is checked and click on OK. Rebuilding the project should not

[android-beginners] embedding listview inside a tabhost

2009-07-30 Thread Holden Karau
I'm wondering what the correct way is to embed a listview inside a tabhost? I've got : Inside a tabhost but when I try to do anything with it (namely): l1 = (ListView) findViewById(R.id.list); l1.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_

[android-beginners] bug displaying gps coordinates

2009-07-30 Thread Jack666
Hi, I have a problem with an application. I want to send an sms with the link to indicate my googlemaps gps coordinates, but always gives me an error that I do not detect the coordinate after the comma. For example, if I want to show the link http://maps.google.com/maps?q=38.381604, -6.006593 in

[android-beginners] Re: Basic Spinner question

2009-07-30 Thread greg
Hi Michael, I haven't tried setting selected item based upon id, but setting the selected item based upon position is simple enough: Spinner s = (Spinner) findViewById(R.id.spinner); s.setSelection(position); You can put that in your Activity's onStart() method to initia

[android-beginners] Re: Basic Spinner question

2009-07-30 Thread wwsean08
if you mean that you want to set a default option, the only way I have found to do that is make that the first option in the array. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to

[android-beginners] Database Issues...

2009-07-30 Thread Skeniver
Hi there I am trying to create a database with two tables. Employees and Computers. A spinner with employee names fill properly when I don't try create and do anything with the second table... The code to create is: private static class DBOpenHelper extends SQLiteOpenHelper { pri

[android-beginners] Not all are apps shown in launcher app

2009-07-30 Thread Lutz Schönemann
Hi, my Problem is, that not all applications are shown in the launcher app. If I open "Settings > Manage Applications" there is a huge list of apps that are installed but most are not shown. But how can I start these applications? For example there is the "Sound Recorder" and the "Termina

[android-beginners] Re: i-jetty for android

2009-07-30 Thread feda al-shahwan
Thanks your method worked but whenI start Ijetty and I browse to the required first page I got page not found problem:( Do you have any ideas. On Tue, Jul 28, 2009 at 5:01 PM, Balwinder Kaur (T-Mobile) < balwinder.k...@t-mobile.com> wrote: > > Could you please provide a little more detail ? > Are

[android-beginners] Re: The emulator cannot be closed

2009-07-30 Thread David Turner
That's strange. For the record, does starting with the "-no-audio" option makes things different? On Tue, Jul 28, 2009 at 1:31 PM, juo-X wrote: > > I have a problem with Android SDK (all versions), and need some helps. > The emulator cannot be closed. Pressing the [x] or Alt+F4 do not work, > th

[android-beginners] Re: The emulator cannot be closed

2009-07-30 Thread Yusuf T. Mobile
This sounds like you need a reinstall of WinXP or (hopefully) just the Android SDK. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile U

[android-beginners] Re: I use android develop sdk1.5 . when i try the demos in the package .

2009-07-30 Thread Yusuf T. Mobile
Can you post what the actual errors are? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 29, 1:33 am, lily wrote:

[android-beginners] Re: Android Hessian Library

2009-07-30 Thread Yusuf T. Mobile
Nothing to lose one's head over, but http://code.google.com/p/protobuf/ may (or may not) accomplish something similar, and has been ported to Android. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individ

[android-beginners] Re: How to get a child views of particular TableRow in TableLayout ?

2009-07-30 Thread Atif
ok here is the solution @ Harshit: If you are still looking for solution create a array of TableRows TableRow[] row = new TableRow[someValue]; for (int i = 0; i < highScoreArray.length; i++) { row[i] = new TableRow(this); row[i].setOnClickListener(this);

[android-beginners] Re: SDK provided images

2009-07-30 Thread Yusuf T. Mobile
Yes we can. It depends on where/how you want to use it, I used some in a menu thusly 1) in a res/menu/something.xml file, I put this: http://schemas.android.com/apk/res/android";> 2) Then in the activity which has that menu, I put this: public boolean onPrepareOptionsMenu(Menu menu) {

[android-beginners] Re: android hello program

2009-07-30 Thread Yusuf T. Mobile
What problem did it say it encountered? Did it just start running and then crash, or did it not run at all? Did Eclipse show any errors in the console or logcat? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in th

[android-beginners] Re: listview activity not stopping

2009-07-30 Thread Yusuf T. Mobile
>From the log, you appear to have a null pointer exception, although that could be a red herring. What happens when you step through it? Do you get the same problem for all list items? Looking at your code, you might want to consider simplifying it with a switch statement, like: switch (position

[android-beginners] Re: where to download the linux-kernel for Android 1.5?

2009-07-30 Thread Yusuf T. Mobile
It doesn't appear to be posted by itself. You could always get the kernel (plus everthing else) with git. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represen

[android-beginners] Service class

2009-07-30 Thread Sudeep Jha
How to create a service that will post messages to an activity periodically using timer? -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send

[android-beginners] AndroidIntentPlayground sourcecode

2009-07-30 Thread Sudeep Jha
Does anybody have the source code for AndroidIntentPlayground example in Diego Torres Milano's blog ? -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-beginners] Re: i-jetty for android

2009-07-30 Thread feda al-shahwan
Thanks infact I tried to build the apk .However I tried what you said but Igot an error"device not found" Thanks On Tue, Jul 28, 2009 at 5:01 PM, Balwinder Kaur (T-Mobile) < balwinder.k...@t-mobile.com> wrote: > > Could you please provide a little more detail ? > Are you talking about installing

[android-beginners] Re: Why "hello world" can't be displayed?

2009-07-30 Thread cellurl
In Eclipse at the bottom, click on the Console - tab. In there it should say "launch" or something like that. Maybe post the CONSOLE stuff here so we can see whats happening. On Jul 27, 10:21 pm, Pei wrote: > Hi, > > I am trying "Hello World" as explained in SDK. But why "Hello World" > can't be

[android-beginners] Re: Google Maps missing from 1.5r3

2009-07-30 Thread Karl (Bucky) Roebling
Maps is available from Marketplace On Jul 29, 2009 1:26 PM, "Nick Burton" wrote: Hi there, Is it just me or did Maps going missing from the release 3? What's the best way to install this? Haven't actually done it before but am guessing I should grab the Maps APK from somewhere? Cheers, Nick

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

2009-07-30 Thread Mark Murphy
JUN wrote: > ... > Cursor c = ppp.getAll(); > > String[] from = new String[] {"name","gender","income"}; > > int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3}; > > SimpleCursorAdapter peoples = new SimpleCursorAdapter > (this,R.layout.money_row, c, from, to); > > setListAdapter(peoples

[android-beginners] Re: Learning? Windows or Linux?

2009-07-30 Thread Mark Woollard
Had same issue on my first project yesterday (on Mac OS X) and cured it by doing a 'build/clean'. Once that was done it worked fine. Mark On 30 Jul 2009, at 11:30, Sean Hodges wrote: > > Eclipse works just as well in Linux as it does in Windows. The error > you are getting can have several ma

[android-beginners] Re: Learning? Windows or Linux?

2009-07-30 Thread Sean Hodges
Eclipse works just as well in Linux as it does in Windows. The error you are getting can have several manifestations, try pulling any third-party .jars out of your project and start Eclipse using the -clean switch. Building from command-line works as well, you can write a build script in ANT or m

[android-beginners] Re: Supposed to use javac?

2009-07-30 Thread Sean Hodges
> I thought I had read that Android does not use Sun's Java because > of copyright issues but rather uses Dalvik, which is not 100% > compliant. Where did you read this? Dalvik is a JVM implementation optimised for the mobile platform. It isn't a Java SDK, hence no javac. --~--~-~--~

[android-beginners] Several devices offline

2009-07-30 Thread Pamplemousse Mk2
Hello, sometimes, adb tells me that I have several offline devices connected on my compuer. The list of devices never stop to grow. Killing the adb server does not help. The only thing I can do is to reboot the computer. Does it happen to anyone here? I use Windows XP, Eclipse, SDK 1.5r2 and hav

[android-beginners] Re: How to discover exceptions when debugging in actual hardware

2009-07-30 Thread MrChaz
Any exceptions that are thrown and not caught are displayed in the LogCat window in Eclipse On Jul 28, 5:19 am, SChaser wrote: > When I debug an application in the phone itself, if it throws an > exception (that I am not expecting), how do I find out about it? > > Currently, I have done a >    

[android-beginners] Re: WIFI Communication between two or more phones

2009-07-30 Thread MMC2
Thanks for your reply. I want to send a two character code that is generated in the first phone as a result of operator input. The code will allow the apps in the other phones to mimic the operation of the first phone "as if" the operator had made the same input on them. This will automatical

[android-beginners] Log in debug only?

2009-07-30 Thread Pamplemousse Mk2
Hello, I write a lot of logs in my program with the class android.util.Log. Do the log methods (Log.v(), Log.d(), ...) are executed on the phone? When my program will be finished, I won't like to see it try to output logs in the release version. I have seen that to make a conditional compilation