[android-beginners] Re: Problem calling openStream() FileNotFoundException

2009-06-30 Thread Mat
Hi, I have a similary problem. I have an URL with parameters, when the 2 parameters are correct, I have an XML response. If the parameters are bad I have an other XML response with a code. If i test with good parameters, it's ok, but if I test with wrong parameters, I have a

[android-beginners] Re: Problem when trying to run the emulator

2009-06-25 Thread jbrohan
The error you are getting is because the command processor cannot recognize the java command inside the android.bat file. If you type xxxhzzz or similar you will get the same result. You have a problem with a path somewhere. good luck John On Jun 24, 7:36 am, ники тончев ton...@gmail.com wrote:

[android-beginners] Re: Problem when trying to run the emulator

2009-06-25 Thread Michael Leung
Have you set path to your Java SDK bin directory? 2009/6/25 jbrohan jbro...@gmail.com The error you are getting is because the command processor cannot recognize the java command inside the android.bat file. If you type xxxhzzz or similar you will get the same result. You have a problem

[android-beginners] Re: Problem when trying to run the emulator

2009-06-25 Thread Mike Wolfson
Just run the emulator with the G1 avd (which I think is shipped with the SDK), you shouldn't need to create your own (unless you have a specific need for something special). emulator -avd g1 On Jun 24, 4:36 am, ники тончев ton...@gmail.com wrote: when i run the emulator either from the cmd

[android-beginners] Re: Problem with using setProgressDrawable() on a horizontal progress bar

2009-06-21 Thread Protocol-X
I dont know man i wish i did though. It is really sad me and about 100 different people that i have found durring my search for this answer all ask the same question and not a single person is able and or willing to answer this. --~--~-~--~~~---~--~~ You received

[android-beginners] Re: Problem running the Hello World example

2009-06-16 Thread Fahd
Interesting Sheng-Ti Will try it if I have trouble running the emulator again Thanks On Jun 15, 5:47 am, Sheng-Yi Shih jude.sis...@gmail.com wrote: Finally it worked now. I am not sure why but it took like 10 mins. I found a way to make it easy. 1. Use command line to run the emulator    

[android-beginners] Re: Problem running the Hello World example

2009-06-14 Thread Fahd
I see. What do you exactly mean by clean Mike? Fahd On Jun 14, 3:37 am, Michael Dorin bsddo...@gmail.com wrote: I was/am having the same problem. I saw a post that said do a 'clean'  then exit eclipse and go back in... then it should work. Let me know how it goes please. -Mike On Sat,

[android-beginners] Re: Problem running the Hello World example

2009-06-14 Thread Fahd
I found out how to clean :) Ok now a message is coming Sorry! Process com.android.phone is not responding Force close or wait nothing happens with either option. some progress but still no hello android window... Fahd On Jun 14, 7:16 am, Fahd fahdb...@gmail.com wrote: I see. What do you

[android-beginners] Re: Problem running the Hello World example

2009-06-14 Thread Fahd
All of a sudden it began to work!!! when running i got two new statements that I didnt before: [2009-06-14 22:09:29 - HelloAndroid] New emulator found: emulator-5554 [2009-06-14 22:09:29 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... Can anyone help me understand

[android-beginners] Re: Problem running the Hello World example

2009-06-14 Thread Sheng-Yi Shih
Finally it worked now. I am not sure why but it took like 10 mins. I found a way to make it easy. 1. Use command line to run the emulator emulator -avd avd_device_name to let it show the main menu. 2. Run Hello World by eclipse. 3. It will ask you to choose android device. Just select

[android-beginners] Re: Problem running the Hello World example

2009-06-13 Thread Michael Dorin
I was/am having the same problem. I saw a post that said do a 'clean' then exit eclipse and go back in... then it should work. Let me know how it goes please. -Mike On Sat, Jun 13, 2009 at 8:22 PM, Fahdfahdb...@gmail.com wrote: Hi All, I am pretty new to  android development. I followed all

[android-beginners] Re: Problem calling openStream() FileNotFoundException

2009-06-12 Thread Mark Murphy
xinit wrote: Hello I am starting Android and am using SDK 1.5 r2 and hope someone can suggest to me where problem could lie. The following code does two simple things, Create URL object and then return InputStream by using openStream(). When I call openStream() I get a

[android-beginners] Re: Problem calling openStream() FileNotFoundException

2009-06-12 Thread xinit
Hi Mark, Thanks for respose ! I run some tests and its a bit more confusing: 1) If I set the URL to another site for example http:// newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml then it works. So I think the setup of my Emulator and network is good. 2)So I put the Google News RSS

[android-beginners] Re: Problem with Hello World

2009-06-11 Thread Maurizio Bellemo
the problem is that i don't do any code... I use the one created by the project with in the Main.xml the string helloworld 2009/6/11, Kent Yip yes...@gmail.com: hey Maurizio Bellemo, maybe if you post your code here we can help more. On Wed, Jun 10, 2009 at 3:23 PM, Maurizio Bellemo

[android-beginners] Re: Problem with Hello World

2009-06-11 Thread Rudy
Here's my two pesos worth: I was having the same problem as Fahd and Sheng-Yi Shih. The emulator would start but then it would sit at the ANDROID screen and just stare back at me. I finally realized that if I waited for about 5 mins or more the Hello Android app (finally) shows up! My

[android-beginners] Re: Problem with Hello World

2009-06-10 Thread Maurizio Bellemo
I have the .apk and now that I tried to put again bot the SDK and Eclipse there is no error... I think it compiles well because there is no error I create the default project of Eclipse Android and run it with 1.5 version The emulator opens and shows the intro and desktop, but no

[android-beginners] Re: Problem with Hello World

2009-06-10 Thread Rc3375
I just tried the same application.When I first started it, didn't know what to expect..saw a blank window, then a pict of the G1, I thought I needed to turn on the phone, but nothing happened. I too saw the message about the clock, hit STOP,ABORT, or smoething like that, then ANDROID came on

[android-beginners] Re: Problem with Hello World

2009-06-10 Thread Maurizio Bellemo
I'm sorry, but this does not help... I think the problem is more difficult to solve... I swa a lot of threads on the web... no one seems to know how to solve it 2009/6/10, Rc3375 rcobb3...@gmail.com: I just tried the same application.When I first started it, didn't know what to

[android-beginners] Re: Problem with Hello World

2009-06-10 Thread Kent Yip
hey Maurizio Bellemo, maybe if you post your code here we can help more. On Wed, Jun 10, 2009 at 3:23 PM, Maurizio Bellemo maurizio.bell...@gmail.com wrote: I'm sorry, but this does not help... I think the problem is more difficult to solve... I swa a lot of threads on the web... no one

[android-beginners] Re: Problem with Hello World

2009-06-09 Thread vkroz
Just wait few minutes -- it may take a time a while to launch emulator first time. On Jun 6, 9:35 am, maurizio.bellemo maurizio.bell...@gmail.com wrote: Hi all I'm rookie I tried to run the hello app in Android developers... (after having installed the SDK, Eclipse and the plugin for

[android-beginners] Re: Problem with Hello World

2009-06-09 Thread Roman
As already mentioned before it seems like you project is not compiled correctly. Check in the workspace of your Eclipse project whether you have an apk file (in bin folder of your project). First make sure that you have not compile error. Normale the console window is telling you what happened.

[android-beginners] Re: Problem with Hello World

2009-06-08 Thread Raphael
On Sat, Jun 6, 2009 at 7:35 AM, maurizio.bellemomaurizio.bell...@gmail.com wrote: Hi all I'm rookie I tried to run the hello app in Android developers... (after having installed the SDK, Eclipse and the plugin for Android) There are two problems 1 - When creating a project it

[android-beginners] Re: Problem with tutorials.

2009-05-19 Thread Gabriel A. Zorrilla
Now i'm working on Linux and after having the same initial problems with W7, managed to correct them by updating ADT and fixing some routes. I'm too lazy to do this on W7, but should work. On 18 mayo, 09:04, Michael Dorin bsddo...@gmail.com wrote: Hola Gabriel, I was/am having the same

[android-beginners] Re: Problem with TimerTask

2009-05-19 Thread Jocelyn Pelletier
Hi, I answered myself: http://android-developers.blogspot.com/2007/11/stitch-in-time.html I'll use the Handler instead. a+ On Mon, May 18, 2009 at 5:51 PM, Jocelyn Pelletier gratt...@gmail.comwrote: Hi, I'm trying to do a really simple thing: 1. The user click on the button - show a

[android-beginners] Re: Problem with tutorials.

2009-05-18 Thread Michael Dorin
Hola Gabriel, I was/am having the same problem. Xavier gave me this not and link to follow: Make sure you've followed all the steps at http://developer.android.com/sdk/1.5_r1/upgrading.html#UpdateYourProjects; Which worked. The other thing that worked was to revert the sdk back to 1.1. I am

[android-beginners] Re: ( problem for experts ) update/refresh list problem

2009-05-17 Thread Adem KARAKOLLU
Any idea On Sun, May 17, 2009 at 5:13 AM, Adem KARAKOLLU karako...@gmail.com wrote: I have two cursor, one of them from contact content provider, other one from database. id fields are sycnhorinzed. i want to show them in same column with two row in list. i m think that i have to use

[android-beginners] Re: Problem with tutorials.

2009-05-17 Thread Raphael
If by W7 you mean Windows 7, it's not supported yet and nobody actually even tried so you're a bit on your own here. The first thing you should try is to change the preference Android Build to verbose to get a better idea of where things go wrong. The second thing is to file a bug at

[android-beginners] Re: Problem with SQLite database, accessing the table

2009-05-12 Thread Michaël Gerber
I will try to change the table name. I hope that it will fix my problem. Thanks. Michaël 2009/5/11 Arnaud Weber arnaud...@gmail.com isn't options a forbidden name for a table?? it's like a table called delete or select... select * from select... you should definitely try with another

[android-beginners] Re: Problem with SQLite database, accessing the table

2009-05-11 Thread moazzamk
Use a different database name and see if that helps (since it will run your onCreate() method). You can also try changing the name of the table to something else (like user_options) and see if that works. I wonder if options is an internal keyword used by SQLite. - Moazzam

[android-beginners] Re: Problem with SQLite database, accessing the table

2009-05-11 Thread Arnaud Weber
isn't options a forbidden name for a table?? it's like a table called delete or select... select * from select... you should definitely try with another tablename. 2009/5/11 moazzamk moazz...@gmail.com Use a different database name and see if that helps (since it will run your onCreate()

[android-beginners] Re: Problem to show a button below a scrollview

2009-05-08 Thread Chavepeyer Geoffrey
If I do such thing I loose my layout if the screen is rotated or if the program is running on another display. Anybody has a solution that stays relative ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: Problem to show a button below a scrollview

2009-05-08 Thread Cristian Radu
Hi, To keep it relative you should set the layout_height to fill_parent and gave it a weight of 1 or more. That way the list will strech to fill all the remaining screen without overlapping with the button. Check out the LinearLayout info from here:

[android-beginners] Re: Problem to show a button below a scrollview

2009-05-08 Thread Chavepeyer Geoffrey
Hi Cristian Radu and thanks a lot for answering my question. In fact I totally missed the notion of weight of the linear level ! I'll look into that ;) Thanks a lot ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] Re: Problem to show a button below a scrollview

2009-05-07 Thread Junior Einsfeld
Hi Chavepeyer, Try change the android:layout_height=fill_parent of your first RelativeLayout to an value in pixels. Example: android:layout_height= 250px Att, Junior On Thu, May 7, 2009 at 12:09 PM, Chavepeyer Geoffrey gchavepe...@gmail.comwrote: Hi guys and first of all thanks for reading me

[android-beginners] Re: Problem with SQLite database, accessing the table

2009-05-07 Thread Glen Humphrey
It looks to me like your program tries to fetch from the options table before it has been created. On May 7, 2:28 am, mic.ger...@gmail.com mic.ger...@gmail.com wrote: Hi all, I am developing an application that need a database (store username and password) and when I try to access to it I

[android-beginners] Re: problem installing ADT 0.9.0

2009-05-05 Thread Ragavendra
Hi Raphael, Thanks for your reply. I am using the / Fedora Eclipse Platform Version: 3.4.1 Based on build id: 20080911-1700 (c) Copyright Eclipse contributors and others 2000, 2008. All rights reserved. Visit http://sources.redhat.com/eclipse // This came with Fedora10 and

[android-beginners] Re: problem installing ADT 0.9.0

2009-05-04 Thread Raphael
Are you using Eclipse Classic version? If so please install Eclipse IDE for Java Developers or Eclipse RCP instead from http://www.eclipse.org/downloads/ R/ On Sun, May 3, 2009 at 10:54 PM, Ragavendra ragavendra...@gmail.com wrote: Me too getting Cannot complete the request.  See the

[android-beginners] Re: Problem running emulator on SDK 1.5

2009-05-02 Thread Raphael
Could you run the emulator manually in verbose mode, like this: $ emulator @my_avd -debug all and post the result? R/ On Tue, Apr 28, 2009 at 10:49 PM, alexmat alex...@gmail.com wrote: I get the following error from eclipse 3.4, with adt 0.9 and sdk 1.5: Launching a new emulator with

[android-beginners] Re: Problem with Permission

2009-04-23 Thread codefab
great and thank you. this worked - sometimes i should look at the xml by myself. i tried to remove it by the UI given in Eclipse, but never checked it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-beginners] Re: Problem in running android 1.5 preview sdk on mac os

2009-04-20 Thread Xavier Ducrohet
Please read: http://developer.android.com/sdk/preview#avd By the way, defining ANDROID_SDK_ROOT is really not needed. I don't think the current doc talks about this at all. Xav On Mon, Apr 20, 2009 at 9:46 PM, Lucius Fox lucius.fo...@gmail.com wrote: Hi, I have add I have set the variable

[android-beginners] Re: Problem with DevGuide on TabHost and Tabs

2009-04-19 Thread Merovee
Hey Joop, I think the problems have less to do with the tutorial more than possibly not being familiar with Eclipse and Java. The android beginners tutorials are cued toward those who are already familiar with both as well as XML, not a beginner to the whole works. Just like in Java on Eclipse

[android-beginners] Re: Problem with Emulator

2009-03-30 Thread gganesh
Thanks David for your reply I got the problem solved by clearing all files under .android folder On Mar 30, 5:00 pm, David Turner di...@android.com wrote: it looks like there is something fishy in your system image. Try starting with emulator -wipe-data once to see if this solves the issue.

[android-beginners] Re: Problem with Emulator

2009-03-30 Thread David Turner
it looks like there is something fishy in your system image. Try starting with emulator -wipe-data once to see if this solves the issue. If it doesn't, try re-downloading the SDK. If that doesn't solve the issue, let us know by giving us as much detail as possible as to what you do to

[android-beginners] Re: Problem with Emulator

2009-03-30 Thread Vishal Gaikwad
I need to convert text file into jpeg file On 3/30/09, gganesh ganesh@gmail.com wrote: hi , I could launch any application on emulator has it shows error like ERROR/mountd(19): could not read initial mass storage state ERROR/flash_image(28): can't find recovery partition

[android-beginners] Re: Problem in playing a video file

2009-03-21 Thread konbuscoo...@gmail.com
Don't you think download from the server is too slow for a video file ? I still don't get why the video couldn't be played as a resource Does there anyone else got more luck ? Please help , thank you very much ! On Jan 21, 12:21 pm, Mahesh Vaghela mah...@indianic.com wrote: Thanks Dave, Your

[android-beginners] Re: Problem creating new app

2009-03-16 Thread Ralf
I don't think ADT supports Eclipse 3.2 anymore. Could you please try with Eclipse 3.3 or 3.4? R/ On Sun, Mar 15, 2009 at 4:41 PM, Kevin J. Brooks bear123434...@comcast.net wrote: I had to re-install my whole operating system.  Now after reinstalling Eclipse 3.2 and Android SDK I can to create

[android-beginners] Re: Problem creating new app

2009-03-16 Thread Kevin J. Brooks
Thanks Ralf. I upgraded to 3.4 and now it works fine. On Sun, 2009-03-15 at 23:00 -0700, Ralf wrote: I don't think ADT supports Eclipse 3.2 anymore. Could you please try with Eclipse 3.3 or 3.4? R/ On Sun, Mar 15, 2009 at 4:41 PM, Kevin J. Brooks bear123434...@comcast.net wrote: I

[android-beginners] Re: Problem with ProgressDialog

2009-03-15 Thread Hermes Pique
I had the same problem. I don't know if it's the wrong way to do it, but not using runOnUiThread and calling start on the thread fixed it for me. I guess that if you run the thread in the UI, the thread is run inmmediatly, preventing the progess dialog from showing up. You migth need to use a

[android-beginners] Re: Problem with ProgressDialog

2009-03-14 Thread sync qa3
FgfcccbvfCfkgcghbxh gy On Mar 13, 2009 11:19 AM, rustyventure goo...@marklinford.com wrote: Hi, Everyone: I'm having some trouble displaying a ProgressDialog. Basically, I want to show a progress popup when a user presses a button in my app. Here's the code: OnClickListener

[android-beginners] Re: Problem with textview in a Dialog

2009-03-12 Thread Chavepeyer Geoffrey
Found the problem : I needed to call the findViewById() method on the dialog like this : TextView tv = (TextView) d.findViewById(R.id.TextView01); and not like this : TextView tv = (TextView) findViewById(R.id.TextView01); Geoffrey. On 11 mar, 09:09, Chavepeyer Geoffrey gchavepe...@gmail.com

[android-beginners] Re: Problem with textview in a Dialog

2009-03-11 Thread Chavepeyer Geoffrey
Nobody to help me ? On Mar 10, 11:30 am, Chavepeyer Geoffrey gchavepe...@gmail.com wrote: So, I've created a test case but still encounter the same problem: package be.geoc.DialogTest; import android.app.Activity; import android.app.Dialog; import android.os.Bundle; import

[android-beginners] Re: Problem with textview in a Dialog

2009-03-10 Thread Chavepeyer Geoffrey
So, I've created a test case but still encounter the same problem: package be.geoc.DialogTest; import android.app.Activity; import android.app.Dialog; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Dialog_Test

[android-beginners] Re: Problem with a contacts viewer

2009-03-05 Thread anderson
i have problem with managedQuery ,too. from document we know Parameters : uriThe URI of the content provider to query. projection List of columns to return. selection SQL WHERE clause. selectionArgs The arguments to selection, if any ?s are pesent sortOrder

[android-beginners] Re: Problem with AutoCompleteTextView and SimpleCursorAdapter

2009-03-03 Thread Will
I haven't done one of these with a SimpleCurosrAdapter, but I've worked through it with a Cursor/CursorAdapter. I just uploaded to the Developers group what I think is the minimum code for an AutoComplete with a Cursor/CursorAdapter. It's here:

[android-beginners] Re: Problem with AutoCompleteTextView and SimpleCursorAdapter

2009-03-03 Thread Tseng
You don't have to create your own XML file if you're just want to display a one-liner dropdown menu. Instead better to use the already defined one in the android resources. Basically you can leave the auto_complete.xml, as it's not used anyways in your code (unless you want to design your own

[android-beginners] Re: Problem with global variables

2009-02-23 Thread Stefan Mijatov
I have to apologize for this, I managed to make it work. Again I did not wanted to spam !!! My apologies! On Mon, Feb 23, 2009 at 11:03 AM, SteleFreak mijatovste...@gmail.comwrote: So I am creating a simple RSS reader. I managed to implement ListActivity and to fill it with desired data(rss

[android-beginners] Re: Problem with files

2009-02-21 Thread error404
I fixed it, problem was with serialized object which I wrote to file ;-) --~--~-~--~~~---~--~~ 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

[android-beginners] Re: problem with Could not find helloAndroid.apk!

2009-02-19 Thread Ganesan V
Did you installed adb ,I mean did you plugin ADB 0.8.0? Regards, Ganesh. On Wed, Feb 18, 2009 at 5:44 PM, gganesh ganesh@gmail.com wrote: hi , I'm using Ubuntu with Eclispe 3.4 and Android SDK 1.0 and sun-java 1.6 my keytool is pointing to java.1.6/bin/keytool when i launch my

[android-beginners] Re: problem with Could not find helloAndroid.apk!

2009-02-19 Thread Ganesan V
Im asking about ADT 0.8.0 not adb :( ganesh On Fri, Feb 20, 2009 at 7:35 AM, Ganesan V ganesan.v...@gmail.com wrote: Did you installed adb ,I mean did you plugin ADB 0.8.0? Regards, Ganesh. On Wed, Feb 18, 2009 at 5:44 PM, gganesh ganesh@gmail.com wrote: hi , I'm using Ubuntu with

[android-beginners] Re: problem with Could not find helloAndroid.apk!

2009-02-19 Thread ganesh kumar
Yes, i did install ADT, I bang my head for a day [?] to rectify this problem which i got on every first day with Android ,at last i reinstalled the whole set and now everything works fine Thanks for your reply Ganesan . On Fri, Feb 20, 2009 at 7:46 AM, Ganesan V ganesan.v...@gmail.com

[android-beginners] Re: problem with repo init

2009-02-15 Thread Dave Sparks
Try the repo-discuss list. This list is for beginning application developers. On Feb 14, 4:54 pm, jbr jbrsubscr...@gmail.com wrote: When I try to set up my android dev. environment it fails with the following output. Can someone perhaps give me some pointers as to what is happening here? I

[android-beginners] Re: Problem when running project

2009-02-10 Thread Ganesan V
you have to change the main.xml file in your project, I mean you need to change the string for display, Ganesh. On Mon, Feb 9, 2009 at 12:57 PM, Anup anupdesai1...@gmail.com wrote: I have simple created HelloAndroid.java file as per mentioned on website,but whenever i am running the file i

[android-beginners] Re: Problem Compiling Android Java/GCJ???

2009-02-02 Thread scramble45
IBM'S PPC64 Version. On Jan 12, 6:34 pm, fadden fad...@android.com wrote: Note: You may be using an incompatible virtual machine or class library. (This program is known to be incompatible with recent releases of GCJ.) What version of java/javac are you using?  (You can determine this with

[android-beginners] Re: Problem with a contacts viewer

2009-01-31 Thread tek
Ah you helped me fix it anyway Exception browser wasn't showing any errors so I had nothing to go off of. My issue was android:id was set to @+id/list, changed this to @android:id/list and it fixed it. On Dec 20 2008, 3:30 pm, jamul dasi...@gmail.com wrote: Hmm finally I looked at it and

[android-beginners] Re: Problem with a contacts viewer

2009-01-31 Thread tek
Why even post that you fixed it if you aren't going to give any details? What a waste of your time _and_ mine. Where did you add the like People._ID? On Dec 20 2008, 3:30 pm, jamul dasi...@gmail.com wrote: Hmm finally I looked at it and resolved my problem. That was my projection which

[android-beginners] Re: Problem with looping through the buttons in the Layout

2009-01-21 Thread amadamala
Hi James, Great, It perfectly worked for me. It saved number of lines and time to code. Thanks, Anil On Jan 20, 3:59 pm, James Yum j...@google.com wrote: Hi Anil, Reflection may work for you. Here's an untested example (with exception handling omitted): Field field =

[android-beginners] Re: Problem with looping through the buttons in the Layout

2009-01-20 Thread James Yum
Hi Anil, Reflection may work for you. Here's an untested example (with exception handling omitted): Field field = R.id.class.getField(button + i); int id = field.getInt(null); Cheers, James On Sun, Jan 18, 2009 at 4:01 AM, amadamala amadam...@gmail.com wrote: I'm using TableLayout for my

[android-beginners] Re: Problem in playing a video file

2009-01-20 Thread Mahesh Vaghela
Thanks Dave, Your ideas have really help me a lot. I have start working on getting a web server from where I can download my files. I will come back here when I finish that task. Thanks again for your thoughtful help. On Tue, Jan 20, 2009 at 10:47 PM, Dave Sparks

[android-beginners] Re: Problem in playing a video file

2009-01-19 Thread Mahesh Vaghela
Hi Dave, Thanks for the info. Finally I have decided to put all my audio data to SD card. I can do this as suggested by you for a manual check. *adb push /path/on/workstation/video.mp4 /sdcard* This will work on my emulator. If I want to do this for a real device than my code should first push

[android-beginners] Re: Problem with DateFormat.format

2009-01-19 Thread btilford
You want to take a look at the javadoc for SimpleDateFormat if your making up your own format. With plain DateFormat you would use it like this. String formatedDate = DateFormat.getDateInstance([optional argument such as DateFormat.SHORT]).format([your date]);

[android-beginners] Re: Problem in playing a video file

2009-01-17 Thread Mahesh Vaghela
Dave, Thank you very much for replying soon. I understand how to push my mp4 in a sd card and retrive the same. I am a bit curious to know limitation of doing this. 1. sd card may not be an part of all the Android devices. 2. If it is the case, all users may not purchase it as an extra item

[android-beginners] Re: Problem in playing a video file

2009-01-17 Thread Dave Sparks
You can call android.os.Environment.getExternalStorageDirectory() to get the path to the external storage device. That will handle the case where recommended external store is no the SD card but some other device. If there is no external storage, you can try saving to your app's private data

[android-beginners] Re: problem launching multiple threads

2009-01-16 Thread [^MiSaTo^]
Thank you Dan. I understand your post and appreciate your help. I'll try it! :) Sorry to bother, but i've never done concurrency. On 15 ene, 17:51, Dan danscott0...@gmail.com wrote: Misato, I have included some code that I use and works great. I'm fairly new to Android myself so there

[android-beginners] Re: Problem in playing a video file

2009-01-16 Thread Dave Sparks
Can you be a bit more explicit when you say nothing happens? Usually - no matter what kind of bug you might have - something happens, it's just not what you expected to happen. For example, do you have log output? My guess is that you cannot use an MP4 as a raw resource because it gets

[android-beginners] Re: Problem in playing a video file

2009-01-16 Thread Mahesh Vaghela
Hi Dave, I like your line: * As a first step, I would try pushing it to the SD card and playing it from there.* Can you please show a way to push a mp4 or mp3 file in a sd card? On Sat, Jan 17, 2009 at 6:46 AM, Dave Sparks davidspa...@android.comwrote: Can you be a bit more explicit when

[android-beginners] Re: Problem in playing a video file

2009-01-16 Thread Dave Sparks
adb push /path/on/workstation/video.mp4 /sdcard In the code, use the SD card path for the setDataSource() call: mMediaPlayer.setDataSource(/sdcard/video.mp4); On Jan 16, 9:06 pm, Mahesh Vaghela mah...@indianic.com wrote: Hi Dave, I like your line: * As a first step, I would try pushing it

[android-beginners] Re: problem launching multiple threads

2009-01-15 Thread Dan
Misato, I have included some code that I use and works great. I'm fairly new to Android myself so there obviously could be other ways of doing it as well. Inside of my activity class I create the Handler object: // Create a new handler object that will handle the messages //

[android-beginners] Re: Problem with URL Camera

2009-01-13 Thread null
I'am not have good idea? 在2009-01-09,victorgonzi victorgo...@gmail.com 写道: Hi there, I´m trying to test my app which shows an image from an IP Camera with the ImageView object. It works properly on emulator but it doesn´t on G1. Any idea? Thanks.

[android-beginners] Re: Problem about registration

2009-01-09 Thread 冯驯
Hi~,anybody who could solve this problem~~~ thnx! 2009/1/8 exlarger xlarg...@gmail.com Any one here? please help~~ On Jan 7, 9:30 am, exlarger xlarg...@gmail.com wrote: Dear Android: We are a software developer team, and we locate in China. Recently, we decide to join the Android

[android-beginners] Re: Problem about registration

2009-01-08 Thread 冯驯
Mike T: I'm very glad that could see your letter here and also interested in android develop,same to you,Im in Beijing. Maybe we could solve the problem,I really want to have a communicate with you.(MSN:fx.sidew...@live.cn msn%3afx.sidew...@live.cn) Sideways 2009/1/7 exlarger

[android-beginners] Re: Problem in Playing sound

2009-01-07 Thread PRATAP SOLAPUR
May be the emulator volume is set to mute. On 1/6/09, Honest honestsucc...@gmail.com wrote: I am playing sound by putting one folder which contains sound file. The coding is as below to play file. mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);

[android-beginners] Re: Problem about registration

2009-01-07 Thread exlarger
Any one here? please help~~ On Jan 7, 9:30 am, exlarger xlarg...@gmail.com wrote: Dear Android: We are a software developer team, and we locate in China. Recently, we decide to join the Android market for developing some applications for Android Mobile phone, everything were just fine until

[android-beginners] Re: Problem in Playing sound

2009-01-07 Thread Dave Sparks
Any error messages in the log? Are you getting an exception? On Jan 6, 4:42 am, Honest honestsucc...@gmail.com wrote: I am playing sound by putting one folder which contains sound file. The coding is as below to play file. mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);

[android-beginners] Re: Problem in Playing sound

2009-01-07 Thread Dave Sparks
Any error messages in the log? Are you getting an exception? On Jan 6, 4:42 am, Honest honestsucc...@gmail.com wrote: I am playing sound by putting one folder which contains sound file. The coding is as below to play file. mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);

[android-beginners] Re: problem getting the files

2009-01-06 Thread baba vali
the images are only thumbnails so it cant b big sizes i am getting this after loading 15 0r 16 files 01-07 11:22:56.603: ERROR/dalvikvm-heap(198): 1572864-byte external allocation too large for this process. 01-07 11:22:56.603: ERROR/(198): VM won't let us allocate 1572864 bytes 01-07

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-31 Thread javame_android
Hi, Did what you said but no success. Still the same problem GUI displayed properly but after entering number in the textbox and pressing the button it gives on ddms console as could not connect to client socket : connection refused. By the way I did what you said but I dont think for sending

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-31 Thread javame_android
Hi, This was solved by calling another activity. It means UI displayed in one activity and sms sending task achieved in another activity. I dont know whether this is the way or not but it removed this error. Sunil On Dec 31 2008, 1:52 pm, javame_android su...@saltriver.com wrote: Hi, Did

[android-beginners] Re: problem with Srolling in listview

2008-12-30 Thread Mark Murphy
baba vali wrote: hi all, i have my application using listview i have written my own Listadapter metod to diaplay output in listview which extends BaseAdapter which is List8 example in sdk but i am unable to get scrolling. Does the List8 example in the SDK scroll for you? If yes, then

[android-beginners] Re: problem with Srolling in listview

2008-12-30 Thread baba vali
hi all, i am getting scrolling now i am displaying a image and text in the Listview in each row i am adding different images and names when i scroll down it is dynamically adding next row where i could not get text and when i scroll back to first row i am losing text of all the row earlier i

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-30 Thread Shazia Naz
Hi, In AndroidManifest.xml add the permission to connect to the internet. Then it will work. Regards, Shazia. On Wed, Dec 31, 2008 at 11:36 AM, javame_android su...@saltriver.comwrote: Hi, I am trying to write a simple application for sending SMS. In that one needs to enter a number

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-30 Thread javame_android
Hi, Thanks for replying. You are saying to add permission for internet but I am not using anything related to internet. I have written a simple application that just sends message. That is working fine but this problem has come when trying to implement with GUI. I have added the permission for

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-30 Thread javame_android
package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.telephony.gsm.SmsManager; import android.text.Editable; public class HelloAndroid extends Activity { final

[android-beginners] Re: Problem while sending SMS- Could not connect to cilent socket : connection refused.

2008-12-30 Thread Shazia Naz
Hi, Just add this in your Android Manifest.xml. uses-permission android:name=android.permission.RECEIVE_SMS/uses-permission HOPE IT WORKS. Regards, Shazia. On Wed, Dec 31, 2008 at 12:26 PM, javame_android su...@saltriver.comwrote: package com.android.hello; import android.app.Activity;

[android-beginners] Re: problem with Srolling in listview

2008-12-29 Thread Shazia Naz
Can u plz send me the code. Actually it has to work when scroll view is used with Linear Layout. On Tue, Dec 30, 2008 at 11:08 AM, baba vali vali...@gmail.com wrote: hi all, i have my application using listview i have written my own Listadapter metod to diaplay output in listview which

[android-beginners] Re: Problem with listview

2008-12-24 Thread Mark Murphy
baba vali wrote: i am displaying names on a listview which i am getting values from an arraylist and i am displaying it by using setListAdapter(*new* SpeechListAdapter(*this*)); creating my listadapter which extends Base Adapter i am doing this i am able to acheive what i

[android-beginners] Re: Problem putting a GridView in a TableRow

2008-12-24 Thread saurabh
I finally got it working using the TableLayout. I abandoned GridView altogether. On Dec 23, 12:03 am, Mark Murphy mmur...@commonsware.com wrote: saurabh wrote: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android  

[android-beginners] Re: Problem putting a GridView in a TableRow

2008-12-22 Thread saurabh
I am trying to create a sudoku like look where instead of 9x9 the whole thing is 8x8 and instead of 9 subcubes of 3x3 i have 4 subcubes of 4x4. I could used a gridview of the whole thing but i wanted to make the boundaries separating the subcubes thicker. I was hoping to add the subcubes in rows

[android-beginners] Re: Problem putting a GridView in a TableRow

2008-12-22 Thread Mark Murphy
saurabh wrote: I am trying to create a sudoku like look where instead of 9x9 the whole thing is 8x8 and instead of 9 subcubes of 3x3 i have 4 subcubes of 4x4. I could used a gridview of the whole thing but i wanted to make the boundaries separating the subcubes thicker. I was hoping to add

[android-beginners] Re: Problem putting a GridView in a TableRow

2008-12-22 Thread saurabh
Sure... here it is ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent FrameLayout android:id=@+id/puzzle_view

[android-beginners] Re: Problem putting a GridView in a TableRow

2008-12-22 Thread Mark Murphy
saurabh wrote: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent FrameLayout android:id=@+id/puzzle_view

<    1   2   3   >