[android-beginners] Get file name from Uri

2009-07-22 Thread Mina Shokry
Hello, I am using content provider to access images in phone gallery and everything works fine except one thing that I want to get the physical file name of images I access. Can I get a java.io.File object from android.net.Uri object? if no, is there any other way to accomplish such a task? I

[android-beginners] Re: Hello MapView tutorial

2009-07-22 Thread Neilz
Well I can't get this working. I've gone as far as step 6 of the tutorial, where it says You can actually run this now, but all it does is allow you to pan around the map. So my class is very simple: public class HelloMapView extends MapActivity { LinearLayout linearLayout;

[android-beginners] Query on PicSwitcher

2009-07-22 Thread arin
Hi, I was wondering if in any way I can set a bitmap into an PicSwitcher? My initial finding suggest me that perhaps no such function such as SetImageBitmapResource( ) is available for PicSwitcher class? So does that mean I cannot set a Bitmap into a PicSwitcher? thanks regards, Arin

[android-beginners] Re: Query on PicSwitcher

2009-07-22 Thread arin
Mistake, It is not picswitcher, it is ImageSwitcher... sorry for the confusion On Jul 22, 2:41 pm, arin arinv1618b...@gmail.com wrote: Hi, I was wondering if in any way I can set a bitmap into an PicSwitcher? My initial finding suggest me that perhaps no such function such as

[android-beginners] Re: Why so slow

2009-07-22 Thread David Turner
And what does your application exactly? On Tue, Jul 21, 2009 at 7:15 PM, yves yves5...@googlemail.com wrote: Hi, Iam developing on Eclipse and I already set the Emulator Parameter to EDGE-Speed. The Problem is, the application runs fast on my Emulator but very slow on my device. Thanks

[android-beginners] Re: Get file name from Uri

2009-07-22 Thread Kacper86
Hi, The problem is that it should be documented in the Android Reference, here: http://developer.android.com/reference/android/provider/MediaStore.Images.html http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html But, as far as i understand, it's not

[android-beginners] a question about final variable and multiple constructors

2009-07-22 Thread nikki
Hi I ran into a compiler error saying The blank final field x may not have been initialized while I was extending ViewGroup to make another UI thing by modifying SlidingDrawer. The fact is I'd already assigned some value to my final variable in the 3rd constructor from ViewGroup, and I

[android-beginners] Re: [android-beginners]

2009-07-22 Thread Oliver Rennfort
Read the google docs on the android sdk site. Android Apps Developer On Jul 22, 2009 6:58 AM, saurabh sinha saurso...@gmail.com wrote: what is difference between intent and intent-filter in android --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: a question about final variable and multiple constructors

2009-07-22 Thread Kacper86
Hi First of all, your code is a mess, and you shouldn't attach such snippets. Please be more careful, and make sure it'd be easy to read and compile. If it's not possible to compile then at least eliminate the most basic errors (e.g. mHandleId has no type, there is no class declaration etc.).

[android-beginners] Mulittouch in android?

2009-07-22 Thread Android
Hi, Is the multitouch now enabled in android? - I've seen a hero with multitouch and zoom gesture..is it enabled in the new devices? 10x --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To

[android-beginners] How to Make my device sleep

2009-07-22 Thread Sansiro
PowerManager.goToSleep(long time) method seems to not work. Because I don't get a PowerManager instance. Instead, I use IPowerManager interface: IPowerManager.stub.asInterface(ServiceManager.getService (power)).goTosleep(1000); Why this code doesnt work?

[android-beginners] What is the package name and the Create Activity in wizard of new project (eclipse)

2009-07-22 Thread Carlos Maldonado
Hi, im really newbie to java. I know some php and c# and want to start to program for android phones. I get stuck in the very first steps. I already have an eclipse ide with the sdk and the android plugin, but when i try to made a new project it ask me for two things that i have no idea what

[android-beginners] Re: [android-beginners]

2009-07-22 Thread Chris Heiden
Perhaps it was done by mistake. We shouldn't assume. On Tue, Jul 21, 2009 at 4:18 PM, Oliver Rennfort anubis...@gmail.comwrote: Asking a question once is ok. Repeating them will not give you a faster answer. It just spamms our in box with it. Thank you. Android Apps Developer On Jul 21,

[android-beginners] a problem with connection Http

2009-07-22 Thread Ahmed BEJAOUI
Hello every body, and excuse me for my poor English . I'm trying de build an activity which connect to a servlet. But the command execute (httpGet) doesn't work!! i write the permission of internet in the manifest.xml, but it doesn't work!! heres my code its supposed to connect to the servlet:

[android-beginners] hi

2009-07-22 Thread prasad NSRS
Hi i want to know the information regarding the deployment of the user application(i.e my own application) on to the nokia internet tablet(N810) and on which i loaded with the Android OS (on N810) please guide me...i hope anyone will help me in this regard...reply me as early as possible... --

[android-beginners] Switching layouts

2009-07-22 Thread elegos
Hello there! I'm a newbie in Android programming, and was exploring the possibility to switch between more than - one - layouts (i.e. more pages?). So I've created a new XML layout page (called second.xml) and created some things in there. At least I've created a button to switch back to the

[android-beginners] Re: How to pass User created object between two Activity in same Application?

2009-07-22 Thread Audiodroid
Thanks guys! These two examples are exactly what I was looking for! :-) AudioDroid On Jul 15, 10:57 am, MrChaz mrchazmob...@googlemail.com wrote: If your class implements Parcelable then you can use add it to the intent that you're calling via putExtra() e.g. ClassA bar = new ClassA(0,

[android-beginners] The FTP uploading program does not work on Android Emulator

2009-07-22 Thread Bo
Dear Sir: I developed a FTP uploading program which upload the string to a text file through FTP. This program only works well as an Java application on PC, but when I put the same code to Android application on Emulator, Android always begins to grow heap and allocate memory when the code calls

[android-beginners] Re: a problem with connection Http

2009-07-22 Thread Justin (Google Employee)
My guess is you are using the emulator here. To the emulator, localhost will refer to the emulator itself. It is its own virtual device, you may consider it its own entity on the network, so you'll need to use a proper hostname or IP address for the servlet you want to access. Cheers, Justin

[android-beginners] Re: a question about final variable and multiple constructors

2009-07-22 Thread nikki
Hi Kacper86, Thanks for your suggestion, I will make sure I provide more completed code next time. And I actually figured out the problem. The reason is because the auto-generated constructor (the one takes in only one Context object) calls super() in its body, which seems to the compiler that

[android-beginners] Re: What is the package name and the Create Activity in wizard of new project (eclipse)

2009-07-22 Thread Jack Ha
Please take a look at the HelloWorld tutorial: http://developer.android.com/guide/tutorials/hello-world.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity,

[android-beginners] Re: Mulittouch in android?

2009-07-22 Thread Dave Bordoley
Short answer is that the device driver supports it but the functionality is not exposed in the Java API. The hero most likely uses a hack see: http://groups.google.com/group/android-platform/browse_thread/thread/209b512a9fdf7367?pli=1 for the gruesome details. Dave On Wed, Jul 22, 2009 at

[android-beginners] Re: Slow to load emulator with eclipse

2009-07-22 Thread bboyes
Yes you only need to take the hit on startup once. After that it's almost instantaneous to execute a new app. I'm in the same boat with an IBM T43... but the 2nd or subsequent runs are really no problem. --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: hi

2009-07-22 Thread Yusuf T. Mobile
adb push http://developer.android.com/guide/developing/tools/adb.html#move 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.

[android-beginners] Re: Get file name from Uri

2009-07-22 Thread Mina Shokry
thank you for this great help but unfortunately this isn't my case. not me who created the cursor and iterate through it. I am just receiving the Uri from another activity via an intent. and it isn't good to iterate through all images to find one its Uri matches one I received especially that I

[android-beginners] Re: Basic java threading problems, code inside

2009-07-22 Thread Kevin Grant
Try to remove synchronized from stopThread() and startThread() this worked, thanks! On Jul 20, 7:52 pm, vladimir kroz vladimir.k...@gmail.com wrote: Try to remove synchronized from stopThread() and startThread() On Jul 17, 6:29 pm, Kevin Grant kevingra...@gmail.com wrote: I understand

[android-beginners] how to program on application(not activity) exit ?

2009-07-22 Thread Mapara,Harshit Nitinkumar
Hi all, I have requirement that needs to save data to a file. During multiple Activitiy screens, I add different data to a list and finally when user is not using the app (means if user exits app by pressing home button or call button), just before exiting that app, i want to save that data of

[android-beginners] Re: Get file name from Uri

2009-07-22 Thread Kacper86
Hi, Firstly, I'd like to recommend this article: http://developer.android.com/guide/topics/providers/content-providers.html Secondly, let's solve your problem (which you can solve on your own after reading the article). The Uri is not supposed to carry a large amount of data. You don't

[android-beginners] Re: Hello MapView tutorial

2009-07-22 Thread iñaki
Hi again, in another net my issue is solved. Maybe proxy... Thanks Yusuf 2009/7/22 Neilz neilhorn...@googlemail.com Well I can't get this working. I've gone as far as step 6 of the tutorial, where it says You can actually run this now, but all it does is allow you to pan around the map. So

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Balwinder Kaur (T-Mobile)
It seems to me that you may be able to do what you intend to do by using SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html The only thing to note is that this class is not supported across multiple processes. The other advantage with using

[android-beginners] Re: Loading an image from remote server

2009-07-22 Thread Balwinder Kaur (T-Mobile)
Please refer to the post http://groups.google.com/group/android-beginners/browse_thread/thread/a47cc5d8aa243879/4656cf7af994d182?lnk=gstq=base64#4656cf7af994d182 Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are

[android-beginners] Re: Get file name from Uri

2009-07-22 Thread Mina Shokry
Thank you very much. this is exactly what I want. thanks again. On Jul 22, 11:38 pm, Kacper86 cpph...@gmail.com wrote: Hi, Firstly, I'd like to recommend this article:      http://developer.android.com/guide/topics/providers/content-providers... Secondly, let's solve your problem (which

[android-beginners] Question about the annoyingly short screen time-out during a call...

2009-07-22 Thread Ed
Hi, According to my adb logcat, this is what happens when the phone shuts off the screen during a phone call: D/PhoneApp( 185): updateWakeState: keepScreenOn = false (isRinging false, showingDisc false) D/SurfaceFlinger( 134): About to give-up screen, flinger = 0x17b200 [screen then turns

[android-beginners] Re: Switching layouts

2009-07-22 Thread Balwinder Kaur (T-Mobile)
The findViewById will return a non-null Widget object, only if you first called setContentView and inflated the layout that contains it. That is why nextButton works and backButton is null - giving you your NullPointerException. For a simple application, an easier way to create 2 pages, would be

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Mapara,Harshit Nitinkumar
Saving a data is not a problem...I can save it by using File input/ ouput operaions. the problem is saving a data on particular event. And that event is Application exit. while app is running and user presses home button, what happens ? is application killed ? all activities are destroyed? I

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Mark Murphy
Mapara,Harshit Nitinkumar wrote: while app is running and user presses home button, what happens ? is application killed ? all activities are destroyed? None of the above. The application is still running.

[android-beginners] Re: how to program on application(not activity) exit ?

2009-07-22 Thread Harshit Mapara
Yeah...it works.. Thanks On Jul 22, 5:55 pm, Mark Murphy mmur...@commonsware.com wrote: Mapara,Harshit Nitinkumar wrote: while app is running and user presses home button, what happens ? is application killed ? all activities are destroyed? None of the above. The application is still

[android-beginners] Re: Question about the annoyingly short screen time-out during a call...

2009-07-22 Thread Ed
Looking at PhoneApp.java, this seems to be getting closer: 559 /** 560 * Controls how quickly the screen times out. 561 * 562 * The poke lock controls how long it takes before the screen powers 563 * down, and therefore has no immediate effect when the current 564

[android-beginners]

2009-07-22 Thread saurabh sinha
please tell the difference when we use Intent when we use PendingIntent how pendingintent differ from Intent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email

[android-beginners] Re: [android-beginners]

2009-07-22 Thread Julie
The difference is pending. you use pendingintent when you want 'pending'. - Original Message From: saurabh sinha saurso...@gmail.com To: jack...@t-mobile.com; android-beginners@googlegroups.com Sent: Wednesday, July 22, 2009 7:10:57 PM Subject: [android-beginners] please tell the

[android-beginners] How to run instrumentation?

2009-07-22 Thread Yasser
Hi, In the instrumentation class description it's given When running with instrumentation turned on, this class will be instantiated for you before any of the application code I included an instrumentation component in our application/package code and also added it in the manifest file. But

[android-beginners] Re: Low performance using SurfaceView, touchMode and OptionMenu

2009-07-22 Thread Gazy
Hi guys, well I FOUND the solution to the slow surfaceview issue that almost no one mentions! I know someone will appreciate this though, for me its as simple as this: remove: // int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN; //getWindow().setFlags(flags, flags); Ie dont set

[android-beginners] Re: How to run instrumentation?

2009-07-22 Thread Brett Chabot
I think you will need to launch it with the following command: adb shell am instrument -w app_package_name/instrumentation_class_name On Wed, Jul 22, 2009 at 7:24 PM, Yasseryassersiddi...@gmail.com wrote: Hi, In the instrumentation class description it's given When running with

[android-beginners] Re: Switching layouts

2009-07-22 Thread janardhan
package com.elegos.test; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class ListViewTest extends Activity { /** Called when the activity is

[android-beginners] Attach multiple images

2009-07-22 Thread SrilankanKK
Hi... I have developed a application which can send an email with one image attachment. Now i want to attach the multiple images.when i click a button email should send to a hard coded email address with multiple image attachments. I used intents for my program. To send image i used putExtra