[android-beginners] Problem in renaming file in Sdcard

2010-05-03 Thread brijesh masrani
Hello Everyone,

I want to rename a file in sdcard using program, i am not able to do that
using

String[] prog ={"mv HArdcore.chm h_ardcore.chm"};

Process p = Runtime.getRuntime().exec(prog);

so if anyone knows how to do that than please reply.


Regards,
Brijesh Masrani

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] ubuntu 10.04 emulator not launching

2010-05-03 Thread riazrahaman
Hi,

Was not able to launch the emulator on Ubuntu 10.04. Getting the below error
in eclipse. Is there a work around or a fix for this?

[2010-05-02 23:35:34 - HelloWorld] Automatic Target Mode: Unable to detect
device compatibility. Please select a target device.
[2010-05-02 23:35:39 - HelloWorld] Launching a new emulator with Virtual
Device 'android15'
[2010-05-02 23:35:42 - HelloWorld] New emulator found: emulator-5554
[2010-05-02 23:35:42 - HelloWorld] Waiting for HOME
('android.process.acore') to be launched...
[2010-05-02 23:35:43 - Emulator] XIO:  fatal IO error 11 (Resource
temporarily unavailable) on X server ":0.0"
[2010-05-02 23:35:43 - Emulator]   after 7 requests (6 known processed)
with 0 events remaining.
[2010-05-02 23:35:43 - HelloWorld] emulator-5554 disconnected! Cancelling
'com.paad.chapter2.HelloWorld activity launch'!

Is this a known issue with the 10.04 Lucid lynx ubuntu?


Regards,
Riaz Ur Rahaman

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] scaling ImageView

2010-05-03 Thread manigault
Hi all, i have ImageView which is taking rectangular layout width =
40dp height = 30dp and images that i'am displaying are 40x40 and they
are scaled to rectangle. How can i tell the ImageView not to scale the
image but to cut the image parts that not fit in the size. I want the
image to stay 40dp height and to cut 5 dp from top and botton.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] how to lunch a activity from prefrence

2010-05-03 Thread Mohammad Siddiqui
Hi   everyone,

I want to lunch a actvitity when click on  a prefrence(inflated form
the xml ).
how we can do it


Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: scaling ImageView

2010-05-03 Thread Martin Obreshkov
If set Scale type = CENTER_CROP nothing happens the image is still resized
to match ImageView bounds

On Mon, May 3, 2010 at 11:04 AM, manigault  wrote:

> Hi all, i have ImageView which is taking rectangular layout width =
> 40dp height = 30dp and images that i'am displaying are 40x40 and they
> are scaled to rectangle. How can i tell the ImageView not to scale the
> image but to cut the image parts that not fit in the size. I want the
> image to stay 40dp height and to cut 5 dp from top and botton.




-- 
When I raise my flashing sword, and my hand takes hold on judgment, I will
take vengeance upon mine enemies, and I will repay those who haze me. Oh,
Lord, raise me to Thy right hand and count me among Thy saints.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] biometrics api

2010-05-03 Thread knight writer
i have an idea for a biometric app for android, however i'm not sure
the touch api can be used in this way. can u use the touch api to read
in and authenticate a fingerprint, or is there a biometrics api in the
works for developers interested in creating mobile biometric apps? any
help or information would be appreciated.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] biometrics api

2010-05-03 Thread Kaustubh Padegaonkar
I dont think that a "touch" can be used to read a fingerprint. neither
can the secondary camera, on some devices(too dark to read). At most
you can perform a iris/facial/voice scan.

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Mon, May 3, 2010 at 7:16 PM, knight writer  wrote:
> i have an idea for a biometric app for android, however i'm not sure
> the touch api can be used in this way. can u use the touch api to read
> in and authenticate a fingerprint, or is there a biometrics api in the
> works for developers interested in creating mobile biometric apps? any
> help or information would be appreciated.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ubuntu 10.04 emulator not launching

2010-05-03 Thread Kaustubh Padegaonkar
No, it does not seem to be an issue with LL. I have installed Lucid,
and the AVD seems to be working fine. Try deleting that AVD, and make
a new one. Maybe play around with the port numbers in Window >
Preferences > Android

If it helps, I used the home directory and files from 9.10, and just
re-installed /.

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Mon, May 3, 2010 at 1:00 PM, riazrahaman  wrote:
> Hi,
> Was not able to launch the emulator on Ubuntu 10.04. Getting the below error
> in eclipse. Is there a work around or a fix for this?
> [2010-05-02 23:35:34 - HelloWorld] Automatic Target Mode: Unable to detect
> device compatibility. Please select a target device.
> [2010-05-02 23:35:39 - HelloWorld] Launching a new emulator with Virtual
> Device 'android15'
> [2010-05-02 23:35:42 - HelloWorld] New emulator found: emulator-5554
> [2010-05-02 23:35:42 - HelloWorld] Waiting for HOME
> ('android.process.acore') to be launched...
> [2010-05-02 23:35:43 - Emulator] XIO:  fatal IO error 11 (Resource
> temporarily unavailable) on X server ":0.0"
> [2010-05-02 23:35:43 - Emulator]   after 7 requests (6 known processed)
> with 0 events remaining.
> [2010-05-02 23:35:43 - HelloWorld] emulator-5554 disconnected! Cancelling
> 'com.paad.chapter2.HelloWorld activity launch'!
>
> Is this a known issue with the 10.04 Lucid lynx ubuntu?
>
> Regards,
> Riaz Ur Rahaman
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem in renaming file in Sdcard

2010-05-03 Thread TreKing
On Mon, May 3, 2010 at 2:23 AM, brijesh masrani
wrote:

> String[] prog ={"mv HArdcore.chm h_ardcore.chm"};
>
> Process p = Runtime.getRuntime().exec(prog);


What does this have to do with renaming a file?
You should be able to use standard Java I/O to rename a file.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] ubuntu 10.04 emulator not launching

2010-05-03 Thread Alan Cassar

I am using Kubuntu 10.04 and my emulator is working fine too.

Alan Cassar, Software Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd. Northfields Suite 4, Independence Avenue, Mosta MST9026 - 
MALTA
email: alan.cas...@ricston.com  | web: 
ricston.com 


*BIZcon Europe 2010: Harnessing Open Source* 



--
*Disclaimer* - This email and any files transmitted with it are 
confidential and contain privileged or copyright information. You must 
not present this message to another party without first gaining 
permission from the sender. If you are not the intended recipient you 
must not copy, distribute or use this email or the information contained 
in it for any purpose other than to notify us. If you have received this 
message in error, please notify the sender immediately and delete this 
email from your system. We do not guarantee that this material is free 
from viruses or any other defects although due care has been taken to 
minimise the risk. Any views stated in this communication are those of 
the actual sender and not necessarily those of Ricston Ltd. or its 
subsidiaries.


On 05/03/2010 04:37 PM, Kaustubh Padegaonkar wrote:

No, it does not seem to be an issue with LL. I have installed Lucid,
and the AVD seems to be working fine. Try deleting that AVD, and make
a new one. Maybe play around with the port numbers in Window>
Preferences>  Android

If it helps, I used the home directory and files from 9.10, and just
re-installed /.

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Mon, May 3, 2010 at 1:00 PM, riazrahaman  wrote:
   

Hi,
Was not able to launch the emulator on Ubuntu 10.04. Getting the below error
in eclipse. Is there a work around or a fix for this?
[2010-05-02 23:35:34 - HelloWorld] Automatic Target Mode: Unable to detect
device compatibility. Please select a target device.
[2010-05-02 23:35:39 - HelloWorld] Launching a new emulator with Virtual
Device 'android15'
[2010-05-02 23:35:42 - HelloWorld] New emulator found: emulator-5554
[2010-05-02 23:35:42 - HelloWorld] Waiting for HOME
('android.process.acore') to be launched...
[2010-05-02 23:35:43 - Emulator] XIO:  fatal IO error 11 (Resource
temporarily unavailable) on X server ":0.0"
[2010-05-02 23:35:43 - Emulator]   after 7 requests (6 known processed)
with 0 events remaining.
[2010-05-02 23:35:43 - HelloWorld] emulator-5554 disconnected! Cancelling
'com.paad.chapter2.HelloWorld activity launch'!

Is this a known issue with the 10.04 Lucid lynx ubuntu?

Regards,
Riaz Ur Rahaman

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

 
   


--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Development and debugging tools

2010-05-03 Thread Sandy
Can someone help with this?

On Apr 29, 2:42 pm, Sandy  wrote:
> I'm trying to figure out a way to do the following in android,
> appreciate any help on this.
>
> 1. How to generate a Full Java stack trace (basically thread stack) in
> Android. In J2SE, we use something like this -  send a signal to the
> JVM; the JVM generates a stack trace for you; or we can also 
> usedebuggingtools or Java API calls like Thread.dumpStack. What are the
> android equivalents to get the same output?
> .
> 2. How to generate a java heap dump? And are there any tools to
> analyze the heap dumps ?
>
> 3. Does thread and heap dump be generated if the Application crashes
> due to a segment violation ? Where does the core files be generated?
>
> 4. Are there any profiling APIs in android APIs that will allow to
> measure the UI performance and responsiveness (basically times taken
> to launch an activity/application and also times taken to scroll a
> list)?
>
> 5. Is there a tool similar to hprof that is available in J2SE for CPU
> usage, heap allocation statistics etc?
>
> 6. Tool on GC activities..
>
> Thanks in advance,
> Sandy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: biometrics api

2010-05-03 Thread knight writer
ok, thanx! if i wanted to perform an iris scan, would i need any
additional api's or can i just use whats readily available?

On May 3, 10:24 am, Kaustubh Padegaonkar 
wrote:
> I dont think that a "touch" can be used to read a fingerprint. neither
> can the secondary camera, on some devices(too dark to read). At most
> you can perform a iris/facial/voice scan.
>
> Kaustubh Padegaonkar,
> thetuxra...@gmail.com
>
>
>
>
>
> On Mon, May 3, 2010 at 7:16 PM, knight writer  
> wrote:
> > i have an idea for a biometric app for android, however i'm not sure
> > the touch api can be used in this way. can u use the touch api to read
> > in and authenticate a fingerprint, or is there a biometrics api in the
> > works for developers interested in creating mobile biometric apps? any
> > help or information would be appreciated.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: save image into sdcard not working

2010-05-03 Thread niko20
Hi,

Starting with 1.6 you need to add the WRITE_EXTERNAL_STORAGE
permission to your android manifest, otherwise your app wont get
access to the sdcard. Google it or search in the dev docs for that
permission to see about it.

-niko

On Apr 29, 9:23 pm, Lynn Ooi  wrote:
> Hi all,
>
> I'm new in android and  i had a problem saving the images into the
> sdcard. The code i had works find in my apps when i build it on
> android 1.5. Once i chance to android 2.0, it was not working. The
> both code is similar. However, in android 2.0, it says that the
> filenotfoundException: sdcard. Can anyone please help me here?
>
> Here is part of the code:
>
> void downloadFile(String fileUrl) {
>                 URL myFileUrl = null;
>                 String filepath =
> Environment.getExternalStorageDirectory().getAbsolutePath();
>                 File wallpaperDirectory = new
> File(Environment.getExternalStorageDirectory().getAbsolutePath());
>                 wallpaperDirectory.mkdirs();
>                 File outputFile = new File(wallpaperDirectory, filename);
>
>                 try {
>                         myFileUrl = new URL(fileUrl);
>                 } catch (MalformedURLException e) {
>                         // TODO Auto-generated catch block
>                         e.printStackTrace();
>                 }
>                 try {
>                         HttpURLConnection conn = (HttpURLConnection) myFileUrl
>                                         .openConnection();
>                         conn.setDoInput(true);
>                         conn.connect();
>
>                         InputStream is = conn.getInputStream();
>
>                         bmImg = BitmapFactory.decodeStream(is);
>
>                         FileOutputStream fos = new 
> FileOutputStream(outputFile);
>                         bmImg.compress(CompressFormat.JPEG, 75, fos);
>                         fos.flush();
>                         fos.close();
>                 } catch (IOException e) {
>                         // TODO Auto-generated catch block
>                         error_msg = e.toString();
>                         e.printStackTrace();
>                 }
>                 try {
>                         Context context = 
> WallpapersFile.this.getBaseContext();
>                         new MediaScannerNotifier2(context, filepath + "/" + 
> this.filename,
>                                         "image/jpeg");
>
>                         // displaying download completion message
>                         AlertDialog.Builder builder = new 
> AlertDialog.Builder(this);
>                         builder.setMessage("Wallpaper 
> Downloaded").setCancelable(false)
>                                         .setPositiveButton("ok",
>                                                         new 
> DialogInterface.OnClickListener() {
>                                                                 public void 
> onClick(DialogInterface dialog,
>                                                                               
>   int id) {
>                                                                         
> dialog.cancel();
>                                                                 }
>                                                         });
>                         AlertDialog alert = builder.create();
>                         alert.show();
>                 } catch (Exception e) {
>                         Log.e("MyLog", e.toString());
>                         has_error = true;
>                 }
>         }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: [android-developers] ubuntu 10.04 emulator not launching

2010-05-03 Thread Greg Donald
On Mon, May 3, 2010 at 2:30 AM, riazrahaman  wrote:
> Was not able to launch the emulator on Ubuntu 10.04.
>
> Is this a known issue with the 10.04 Lucid lynx ubuntu?

Works fine for me.  Just tested, all mine work.


-- 
Greg Donald
destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Whats the current View?

2010-05-03 Thread ScCrow
Im sure a dumb question, but how do I get the current view?

I have implemented an expandedList from a sample, but it does not use
an .xml file to define the view. It works, but now Im trying to add a
context menu for a long press.  I need to pass the current view into
the registerForContextMenu(view)   method.

Some of the code ...

public class HomePage  extends ExpandableListActivity {
private ExpandableListAdapter mAdapter;
...  load some data to arrays 
mAdapter = new SimpleExpandableListAdapter( 

setListAdapter(mAdapter);
.

Since there was no xml,  there was no  R.layout.x.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Development and debugging tools

2010-05-03 Thread fadden
On May 3, 9:42 am, Sandy  wrote:
> Can someone help with this?

The original message was sent to multiple mailing lists.  Replies from
different people can be found on 3 or 4 of them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: save image into sdcard not working

2010-05-03 Thread Lynn Ooi
Thanks a lot. I got it working now.

On May 3, 10:41 am, niko20  wrote:
> Hi,
>
> Starting with 1.6 you need to add the WRITE_EXTERNAL_STORAGE
> permission to your android manifest, otherwise your app wont get
> access to the sdcard. Google it or search in the dev docs for that
> permission to see about it.
>
> -niko
>
> On Apr 29, 9:23 pm, Lynn Ooi  wrote:
>
>
>
> > Hi all,
>
> > I'm new in android and  i had a problem saving the images into the
> > sdcard. The code i had works find in my apps when i build it on
> > android 1.5. Once i chance to android 2.0, it was not working. The
> > both code is similar. However, in android 2.0, it says that the
> > filenotfoundException: sdcard. Can anyone please help me here?
>
> > Here is part of the code:
>
> > void downloadFile(String fileUrl) {
> >                 URL myFileUrl = null;
> >                 String filepath =
> > Environment.getExternalStorageDirectory().getAbsolutePath();
> >                 File wallpaperDirectory = new
> > File(Environment.getExternalStorageDirectory().getAbsolutePath());
> >                 wallpaperDirectory.mkdirs();
> >                 File outputFile = new File(wallpaperDirectory, filename);
>
> >                 try {
> >                         myFileUrl = new URL(fileUrl);
> >                 } catch (MalformedURLException e) {
> >                         // TODO Auto-generated catch block
> >                         e.printStackTrace();
> >                 }
> >                 try {
> >                         HttpURLConnection conn = (HttpURLConnection) 
> > myFileUrl
> >                                         .openConnection();
> >                         conn.setDoInput(true);
> >                         conn.connect();
>
> >                         InputStream is = conn.getInputStream();
>
> >                         bmImg = BitmapFactory.decodeStream(is);
>
> >                         FileOutputStream fos = new 
> > FileOutputStream(outputFile);
> >                         bmImg.compress(CompressFormat.JPEG, 75, fos);
> >                         fos.flush();
> >                         fos.close();
> >                 } catch (IOException e) {
> >                         // TODO Auto-generated catch block
> >                         error_msg = e.toString();
> >                         e.printStackTrace();
> >                 }
> >                 try {
> >                         Context context = 
> > WallpapersFile.this.getBaseContext();
> >                         new MediaScannerNotifier2(context, filepath + "/" + 
> > this.filename,
> >                                         "image/jpeg");
>
> >                         // displaying download completion message
> >                         AlertDialog.Builder builder = new 
> > AlertDialog.Builder(this);
> >                         builder.setMessage("Wallpaper 
> > Downloaded").setCancelable(false)
> >                                         .setPositiveButton("ok",
> >                                                         new 
> > DialogInterface.OnClickListener() {
> >                                                                 public void 
> > onClick(DialogInterface dialog,
> >                                                                             
> >     int id) {
> >                                                                         
> > dialog.cancel();
> >                                                                 }
> >                                                         });
> >                         AlertDialog alert = builder.create();
> >                         alert.show();
> >                 } catch (Exception e) {
> >                         Log.e("MyLog", e.toString());
> >                         has_error = true;
> >                 }
> >         }
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow 
> > athttp://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow 
> athttp://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com

Re: [android-beginners] Re: [android-developers] ubuntu 10.04 emulator not launching

2010-05-03 Thread Kaustubh Padegaonkar
Guys,
he is asking help because his emulator isnt working. :) All we have
replied is that its working one mine! Any suggestions?

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Tue, May 4, 2010 at 12:55 AM, Greg Donald  wrote:
> On Mon, May 3, 2010 at 2:30 AM, riazrahaman  wrote:
>> Was not able to launch the emulator on Ubuntu 10.04.
>>
>> Is this a known issue with the 10.04 Lucid lynx ubuntu?
>
> Works fine for me.  Just tested, all mine work.
>
>
> --
> Greg Donald
> destiney.com | gregdonald.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: biometrics api

2010-05-03 Thread Kaustubh Padegaonkar
I gues you will have to make your own. I havent heard of anything like that.

Kaustubh Padegaonkar,
thetuxra...@gmail.com



On Mon, May 3, 2010 at 10:50 PM, knight writer
 wrote:
> ok, thanx! if i wanted to perform an iris scan, would i need any
> additional api's or can i just use whats readily available?
>
> On May 3, 10:24 am, Kaustubh Padegaonkar 
> wrote:
>> I dont think that a "touch" can be used to read a fingerprint. neither
>> can the secondary camera, on some devices(too dark to read). At most
>> you can perform a iris/facial/voice scan.
>>
>> Kaustubh Padegaonkar,
>> thetuxra...@gmail.com
>>
>>
>>
>>
>>
>> On Mon, May 3, 2010 at 7:16 PM, knight writer  
>> wrote:
>> > i have an idea for a biometric app for android, however i'm not sure
>> > the touch api can be used in this way. can u use the touch api to read
>> > in and authenticate a fingerprint, or is there a biometrics api in the
>> > works for developers interested in creating mobile biometric apps? any
>> > help or information would be appreciated.
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Beginners" group.
>>
>> > NEW! Try asking and tagging your question on Stack Overflow at
>> >http://stackoverflow.com/questions/tagged/android
>>
>> > To unsubscribe from this group, send email to
>> > android-beginners+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-beginners?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Beginners" group.
>>
>> NEW! Try asking and tagging your question on Stack Overflow 
>> athttp://stackoverflow.com/questions/tagged/android
>>
>> To unsubscribe from this group, send email to
>> android-beginners+unsubscr...@googlegroups.com
>> For more options, visit this group 
>> athttp://groups.google.com/group/android-beginners?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Titkle bar display

2010-05-03 Thread Revathi K J Ramanan
Hi,

Is it possible to disable title bar display dynamically after setting
the content view by setting the NoTitlebar theme?

All the posts I have read told that any title bar changes we can make
only before setContentView() call..

Thanks in advance,
Revathi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] tablerow mixed with columns and multiline text

2010-05-03 Thread Yang
 The complete problem can be found here:
http://stackoverflow.com/questions/2759877/android-tablerow-mixed-with-columns-and-multiline-text

I am trying to have a tablelayout contains several tablerows. One of the
rows contains 4 buttons, while the second row contains a very long text.
However, the width of the button stretches with the text in the second row.
Is there anyway to prevent this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en