[android-beginners] Re: Adding Undo feature in FingerPaint app bundled with APIdemos.

2009-10-08 Thread Samuh Varta
@Romain: thanks for your reply...I'd *like* to believe that you wrote FingerPaint and would help me here :) Most of the applications in the Android Market(PicSay et al.) that provide a similar feature(drawing strokes on canvas) provide Undo functionality. I was trying to imitate the same in the

[android-beginners] Re: read phone's number?

2009-10-08 Thread Samuh Varta
Maybe the following could be of some help: http://www.androidsnippets.org/snippets/108/ On Oct 8, 5:04 am, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: is there a way to read the phone's (current) phone number? i realize this would require a permission grant at least. thanks. --

[android-beginners] Re: How to extract ICON from an APK file?

2009-10-08 Thread KK
Hi, I found the path is stored in resources.arsc, but where to indicates the index? BR, KK On Oct 7, 11:48 am, KK guo.jing...@gmail.com wrote: Sorry, I'm NOT using android API On Oct 7, 11:40 am, KK guo.jing...@gmail.com wrote: Actually I'm doing a shell extension for windows,

[android-beginners] How to get resource path?

2009-10-08 Thread abhi
Hi, I have included three MP3 file in the R.raw folder. Now I am able to get the file name of the MP3 file, but I need to find out the complete path of the file in order to play the file using MediaPlayer. I am using MediaPlayer.setDataSource(String path) to set the path to the file. When I set

[android-beginners] Eclair code Surface Flinger Implementation

2009-10-08 Thread surya Manyam
Hi, Anybody Know whether in *Eclair code* Base Surface Flinger is Using CopyBit functionality through HAL or the Compostion Happens using EGL Implementation for Merging the Surface. Thanks in Advance subbu --~--~-~--~~~---~--~~ You received this message

[android-beginners] How to find permissions required

2009-10-08 Thread Chris
I am trying to see if some of the classes I am using require any permissions to be set on the manifest. How can I tell if a given Class requires a permission. Example I know PowerManager.WakeLock needs the WAKE_LOCK permission but the documentation on PowerManager.WakeLock makes no reference to

[android-beginners] Re: How to find permissions required

2009-10-08 Thread jbrohan
I've found that there is an error reported in the logcat which is quite clear about a missing permission. Just keep going and look at the logcat output. John On Oct 8, 5:13 am, Chris themaninthesuitc...@googlemail.com wrote: I am trying to see if some of the classes I am using require any

[android-beginners] Re: How to find permissions required

2009-10-08 Thread Chris
I take it this would need to be done on a real device not the emulator? On Oct 8, 10:38 am, jbrohan jbro...@gmail.com wrote: I've found that there is an error reported in the logcat which is quite clear about a missing permission. Just keep going and look at the logcat output. John On Oct

[android-beginners] Application in full screen mode ...

2009-10-08 Thread preetam_pict
hello all i want my application to run in full screen mode ... so i have written following code in my main activity SplashScreenActivity ... public static void setWindowsProperties(Activity activity) { // set the window properties

[android-beginners] Re: Application in full screen mode ...

2009-10-08 Thread preetam_pict
please ignore line activity.setContentView(R.layout.splashscreen); from above code ... :) On Oct 8, 5:18 pm, preetam_pict preetam.pa...@gmail.com wrote: hello all i want my application to run in full  screen mode ... so i have written following code in my main activity

[android-beginners] Re: Application in full screen mode ...

2009-10-08 Thread sDroid
I use theme to get full view - android:theme=@android:style/ Theme.NoTitleBar.Fullscreen. On Oct 8, 7:23 am, preetam_pict preetam.pa...@gmail.com wrote: please ignore line         activity.setContentView(R.layout.splashscreen); from above code ... :) On Oct 8, 5:18 pm, preetam_pict

[android-beginners] Re: File length is 0, which is not true... ?

2009-10-08 Thread Kaj Bjurman
Could be that the value of file.length is cached, and the file didn't exist when you started. What happens if you do: new File (test.tmp).length() On 8 Okt, 14:26, joare...@googlemail.com joare...@googlemail.com wrote: Hello, I really dont know why file.lengt returns 0 all the time, can u

[android-beginners] Re: File length is 0, which is not true... ?

2009-10-08 Thread joare...@googlemail.com
Does not work either: public void getFileFromInternet(String tempUrl) { HttpClient httpClient = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(tempUrl);

[android-beginners] Re: Application in full screen mode ...

2009-10-08 Thread preetam_pict
thanks sDroid ! I tried following code ... @Override public void onCreate(Bundle savedInstanceState) { // this should be before calling super.onCreate()! setTheme(android.R.style.Theme_NoTitleBar_Fullscreen); super.onCreate(savedInstanceState);

[android-beginners] Re: Application in full screen mode ...

2009-10-08 Thread Mark Murphy
preetam_pict wrote: thanks sDroid ! I tried following code ... @Override public void onCreate(Bundle savedInstanceState) { // this should be before calling super.onCreate()! setTheme(android.R.style.Theme_NoTitleBar_Fullscreen);

[android-beginners] Re: someone plz help me .. how to call built in camera app from my custom app ??

2009-10-08 Thread Justin Anderson
Do some debugging work... The PackageManager can give you a list of all applications on your phone. Step through them and find the Camera application and note the package name of the camera application. Assuming you have done that, you can do something similar to the following (obviously putting

[android-beginners] Re: Application in full screen mode ...

2009-10-08 Thread preetam_pict
Thank you sir ! I added following in the manifest.xml application android:icon=@drawable/icon android:label=@string/ app_name android:theme=@android:style/Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape and the application is full

[android-beginners] Re: How to get resource path?

2009-10-08 Thread Balwinder Kaur (T-Mobile USA)
getResources().openRawResourceFd(int id) Get the FileDescriptor for the file and use MediaPlayer.setDataSource (FileDescriptor fd) method. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-beginners] Re: What API should I use ? Local Service Binding ? Remote Service Binding ? Handler ?)

2009-10-08 Thread ashwini d
hi, I tried the same program wht u mentioned, for me it is working fine. u chk in logcat file for confirmation whether the service is stopped or not giving some log statements in ur code On Oct 5, 11:01 am, Tim vkan...@gmail.com wrote: Hello, I am very new beginner, and I am designing

[android-beginners] emulator stopped during orientation converting

2009-10-08 Thread Dongjoon Lee
Hello all! I implemented image and text using RelativeLayout. Here is xml code. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent

[android-beginners] Re: Development Phone

2009-10-08 Thread gyy
I can't seem to find the answer to this anywhere, so if someone could take a crack at it or point me in the right direction, I would appreciate it. I have the Google Ion (the phone handed out at the Google IO Developer's Conference), but I have no idea how to upgrade the OS to 1.6. The HTC

[android-beginners] Updating Google Ion from 1.5 to 1.6

2009-10-08 Thread gyy
I have a Google Ion (the version of the HTC Magic that was handed out at the Google IO Developers Conference) that was given to me as a gift. Unfortunately, I have no idea how to update the OS on the phone to 1.6. I looked up the HTC support website and I have all the necessary files, but I

[android-beginners] Re: read phone's number?

2009-10-08 Thread honey malhotra
Hi, Code snippets to get phone details and permission required to set code snippets Cursor c = getContentResolver().query(People.CONTENT_URI, null, null, null, null); startManagingCursor(c); String[] phonenames = new String[]{People.NAME};

[android-beginners] Re: problem creating new android project

2009-10-08 Thread bmalbert22
Do you have the Android ADK installed. If you do, you ought to be able to select it in the build target box which will make the error that is appearing at the top about specifying the SDK. Try following the install directions here: http://developer.android.com/sdk/1.6_r1/installing.html and see

[android-beginners] How to access the files on SD card through emulator?

2009-10-08 Thread Abhi
Hi, I need to search for certain type of files (like .mp3) and populate the list of files present in that particular category from the SD card. Can anyone help me with this? -Regards Abhi. --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] How to use the Network Manager?

2009-10-08 Thread Gautam Tripathi
I need to connect my device to the network. I have a preference order of Wifi/GPRS/dial-up modem in sequence. How do I go about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to

[android-beginners] Re: someone plz help me .. how to call built in camera app from my custom app ??

2009-10-08 Thread RichardC
In the SDK samples have a look at android-sdk-windows-1.6_r1\platforms\android-1.5\samples\ApiDemos\src \com\example\android\apis\graphics\CameraPreview.java On Oct 8, 10:43 am, wahib wahib.t...@gmail.com wrote: Hi !! I have a straightforward question. I just want to call and execute the

[android-beginners] Re: How will users upgrade their firmware?

2009-10-08 Thread sp...@droidshow
I was going through the flashing procedure for the ADP1 and this is what I get from there: If you are using the fastboot method for upgrading the firmware, there is are specific commands to erase userdata and cache : $ fastboot erase userdata $ fastboot erase cache or $ fastboot update

[android-beginners] How to program a key press on a service

2009-10-08 Thread Davide
I have to make a background program that read an input from a joystick and associate the data to a key, for example the UP key or TAB key etc., so to interact with the system and use it, always for example, to control the choice of incoming calls. I mean, I receive an incoming call, I use the

[android-beginners] Re: How to access the files on SD card through emulator?

2009-10-08 Thread Jason Van Anden
Instructions here: http://developer.android.com/guide/developing/tools/emulator.html#diskimages j On Thu, Oct 8, 2009 at 8:46 AM, Abhi hk.abhij...@gmail.com wrote: Hi,      I need to search for certain type of files (like .mp3) and populate the list of files present in that particular

[android-beginners] Re: someone plz help me .. how to call built in camera app from my custom app ??

2009-10-08 Thread wahib haq
Dear Justin !! Thanks again as always. I understand your point. I'll try my best to work it out myself in future. I hope this time it works out. On 10/8/09, RichardC richard.crit...@googlemail.com wrote: In the SDK samples have a look at

[android-beginners] Re: Adding Undo feature in FingerPaint app bundled with APIdemos.

2009-10-08 Thread James Yum
Hi Samuh, I think you're on the right path. Cheers, James On Wed, Oct 7, 2009 at 11:42 PM, Samuh Varta samuh.va...@gmail.com wrote: @Romain: thanks for your reply...I'd *like* to believe that you wrote FingerPaint and would help me here :) Most of the applications in the Android

[android-beginners] Re: What API should I use ? Local Service Binding ? Remote Service Binding ? Handler ?)

2009-10-08 Thread James Yum
Hi Tim, There's a local service binding example in ApiDemos which I'm pretty sure does exactly that: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/LocalServiceBinding.html However, I think you're better off using AlarmManager to start a service

[android-beginners] Re: Double-Permissions when publishing to Android Market?

2009-10-08 Thread James Yum
It's a bug :) and the permissions will be appear correctly on the phone. Cheers, James On Tue, Oct 6, 2009 at 3:48 AM, Alexander Kazanin alexander.kaza...@gmail.com wrote: Hi. Any ideas on what's happening, or if it's happened to anybody else, would be greatly appreciated:) Yes, the same

[android-beginners] Socket client does not work with emulator

2009-10-08 Thread Android_n00b
Hi, I am trying to create a connection between a server socket program written in C and an android client socket program. Now when I write a regular java client program such as: try { Socket socket = new Socket(localhost, 5554); PrintWriter out = new

[android-beginners] Re: How to use the Network Manager?

2009-10-08 Thread Roman ( T-Mobile USA)
Based on your preferred interface list, I would first do a scan on Wifi. Look for open Wifi networks to connect without security codes. Otherwise open a dialog that the user can enter the security information for the secured network. If no Wifi network is available turn off Wifi which

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread James Yum
Hi Android n00b, http://groups.google.com/group/android-developers/browse_thread/thread/acd93714ebb3b2fc/101c925eeefaed15 http://groups.google.com/group/android-developers/browse_thread/thread/acd93714ebb3b2fc/101c925eeefaed15 Cheers, James On Thu, Oct 8, 2009 at 12:57 PM, Android_n00b

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread RichardC
Localhost (127.0.0.1) is the address of the phone or the emulator. I assume that your server program in C is on your devlopment machine. So you need to connect to your PC's IP address. You can use ADB http://developer.android.com/guide/developing/tools/adb.html to setup port forwarding from

[android-beginners] Re: Socket client does not work with emulator

2009-10-08 Thread Android_n00b
Hi James, Thanks a lot! I actually just figured it out as well and was about to post my solution here. http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking So for anyone having a similar problem, Basically 10.0.2.2 is the Android Emulator's alias to 127.0.0.1 The

[android-beginners] Re: 1.6: Quick search box to pass parameters to an application

2009-10-08 Thread Danny Brain
Nevermind, found the SearchableDictionary example in the SDK which gave me enough. On Oct 8, 9:24 am, Danny Brain tehdan...@gmail.com wrote: Hey, I was wondering if it were possible to use the quick search box to pass parameters to an application? E.g. If I had a timesheet application

[android-beginners] OpenGL and transparent PNG's

2009-10-08 Thread Jonathan
I'm having a problem with transparent 32-bit PNG's on both the emulator and the G1. They load fine, but I can't change their alpha value unless the texture is fully opaque to begin with. For a simple example: glEnable (GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

[android-beginners] Querying AlarmManager to determine if alarms are set

2009-10-08 Thread aefaradien
Hi there, does anyone know if its possible to query the AlarmManager to see if/what alarms are set? I can set an alarm using: AlarmManager am = (AlarmManager)getApplicationContext().getSystemService (Context.ALARM_SERVICE); Intent i = new Intent(getApplicationContext(),

[android-beginners] Re: someone plz help me .. how to call built in camera app from my custom app ??

2009-10-08 Thread wahib haq
i got it right. I used this method and camera app executes. Intent intent = new Intent(); intent.setClassName(packageName, className); really thankful to u justin. Now next hurdle is that i want to run my decode function on the snap taken but after taking snap it remains in the camera app. so

[android-beginners] Using the SAX parser in a static method

2009-10-08 Thread jax
i am trying to parse an XML file using SAX. The problem is that I need to make the method Static because I want to run this method inside the onCreate methods of the DatabaseHelper class (Which is a static inner class). This is not really an android issue but a scope issue. The problem is at

[android-beginners] Best way to reposition contents of ListView at the top?

2009-10-08 Thread westmeadboy
I have a ListView which displays the results of some search. When the user makes a new search I repopulate the underlying Array of an ArrayAdapter and call notifyDataSetChanged(). However, if the user has previously scrolled down in the ListView then the scrolling is not then reset to the top -

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread Romain Guy
setSelection(0) On Thu, Oct 8, 2009 at 8:14 PM, westmeadboy westmead...@yahoo.co.uk wrote: I have a ListView which displays the results of some search. When the user makes a new search I repopulate the underlying Array of an ArrayAdapter and call notifyDataSetChanged(). However, if the user

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread westmeadboy
Thanks. 1. Does this still work if the list is empty? The docs don't specify. 2. Is this better than just resetting the adapter? On Oct 9, 11:27 am, Romain Guy romain...@google.com wrote: setSelection(0) On Thu, Oct 8, 2009 at 8:14 PM, westmeadboy westmead...@yahoo.co.uk wrote: I have a

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread Romain Guy
1. Does this still work if the list is empty? The docs don't specify. Yes. 2. Is this better than just resetting the adapter? Much much much much much more efficient. On Oct 9, 11:27 am, Romain Guy romain...@google.com wrote: setSelection(0) On Thu, Oct 8, 2009 at 8:14 PM, westmeadboy

[android-beginners] Re: Best way to reposition contents of ListView at the top?

2009-10-08 Thread westmeadboy
I notice that if setSelection(0) is called just before notifyDataSetChanged() it doesn't work - i.e. its as if setSelection (0) didn't do anything. However, switching the calls around works for me. On Oct 9, 11:49 am, Romain Guy romain...@google.com wrote: 1. Does this still work if the list

[android-beginners] A question about MediaRecorder setAudioSource failed on the device?

2009-10-08 Thread yjshi
Hi,all. The app I wrote doesn't run correctly on the device.Could someone give me a suggestion that how to solution this problem. The code is below. -- MediaRecorder recorder = new MediaRecorder();

[android-beginners] Reverse Geocoding Example / Source Code

2009-10-08 Thread smnirven
Hey folks, I've put together an example application that uses Google's reverse geocoding http service. If anyone is looking to use reverse geocoding, feel free to check it out. http://www.smnirven.com/?p=39 P.S. The complete source code is also there to download.