[android-developers] Build ID , Build Host

2010-08-10 Thread parag
hi all,

What is the difference between
build version
build ID
build Host
android hardware version.

the documentation does not clearly specify its usage.

thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-10 Thread sunrises
Hi,
I have got the solution please refer the link
http://groups.google.com/group/android-developers/browse_thread/thread/41852900bd603070/583943d91dc9f754?lnk=gstq=insufficient+memory#583943d91dc9f754
, but I added the option -partition-size 1024 in run
configurations-target-Additional Emulator Command Line Options
Thanks to All

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Wifi-UPnP

2010-08-10 Thread msnkm
Hi,

Im trying to Wifi UPnP(which comes along with froyo source code) but
the build is failing.
Has anybody tried building wpa_supplicant_6.

Any help in this matter is appreciated

Thanks  Regards
msnkm

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: on sdcard, File.canRead() = true, File.canWrite() = false

2010-08-10 Thread Bob Kerns
Ah, yes, of course. That critical fact slipped my mind -- thanks
Dianne!

This is, of course, a major reason why ability to write to the SD card
is controlled by an application permission.

Even without the limitations of FAT, file ownership is a tenuous
concept with removable media. I have scripts to set up EC2 instances,
and I have to force user UIDs in each created, so that the filesystems
I mount on those instances can be consistent. And that's using the
ext3 filesystem.

On Aug 9, 3:25 pm, Dianne Hackborn hack...@android.com wrote:
 You can't change the permissions on stuff in external storage.  That uses a
 FAT filesystem, which doesn't have permissions, so all files there simply
 immutably use the permissions of the mount point.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread kaundinya
Hi,
How can i give an option for the user to select 3 options(news only,
weather only, News and weather) in the dialog on load of the widget?


On Aug 10, 3:23 am, mboehmer mboeh...@fh-muenster.de wrote:
 How is this done for the News and Weather widget? After selecting it a
 dialog opens and asks for which content (i.e. size) the user wants to
 have.

 On 10 Aug., 00:04, Mark Murphy mmur...@commonsware.com wrote:



  Have two provider elements with two separate metadata files with the
  two sizes, presumably.

  On Mon, Aug 9, 2010 at 5:30 PM, Fernando T s...@trias.org wrote:
   I'm looking at creating an AppWidget and want to have the user select
   which size they want before adding it. Thus, the user can choose 1x1,
   2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier,
   but not in 1.6) does this. How is this done?

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
  Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-10 Thread manoj
I am getting the correct result if I have the only one home app
(default home) is installed. If i have more than 1 home apps, I am
getting the result w.r.t ResolveActivity. Now how can I resolve this?

say, for example,
1. Android Home (action=MAIN, cat=LAUNCHER,HOME...etc).
2. MyHome(action=MAIN, cat = LAUNCHER,HOME...etc).

current home set is MyHome.

Now If I follow the above code, the result displayed is
ResolverActivity. Now how can I resolve this.

Thanks,
Manoj.

manoj wrote:
 I mean the package name of the launcher. finally got it.

 ActivityInfo ai = ri.activityInfo;
 ai.packageName will give the package name.

 Thanks for the help.

 On Aug 8, 7:11 pm, Mark Murphy mmur...@commonsware.com wrote:
  Please define didn't get the result.
 
 
 
 
 
  On Sun, Aug 8, 2010 at 9:57 AM, manoj manojkumar.m...@gmail.com wrote:
   Hi Mark,
 
   could you please alobrate it? I have used the following code. but
   didn't get the result.
 
   Intent i = new Intent();
          i.setAction(Intent.ACTION_MAIN);
          i.addCategory(Intent.CATEGORY_HOME);
          PackageManager pm = this.getPackageManager();
          ResolveInfo ri = pm.resolveActivity(i, 0);
          System.out.print(HOME PKG NAME + +ri.resolvePackageName);
 
   Could you please tell me?
 
   On Aug 7, 10:22 pm, Mark Murphy mmur...@commonsware.com wrote:
   Create an Intent that brings up the HOME screen, then use
   PackageManager and resolveActivity().
 
   On Sat, Aug 7, 2010 at 9:40 AM, manoj manojkumar.m...@gmail.com wrote:
Hi all,
 
I have a some strange issue. I would like to get the package name of
the current home screen.
 
lets say we have two home screens : 1. default android home theme
                                                      2. 3rd party
home theme.
 
Assume both are installed and current home theme is 3rd party home
theme.
 
Now I would like to get the package package name of the current home
theme (3rd party). Is there any api which can give the current home
screen package name?
 
I can get the package name in ddms. But I want it programmatically.
 
Regards,
Manoj.
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Mark Murphy (a Commons 
   Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
   _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
   Available!- Hide quoted text -
 
   - Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to Android Development_ Version 3.1 Available!- 
  Hide quoted text -
 
  - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Monkey Test

2010-08-10 Thread KVR
Thanks Naseer
Is there any option for excluding ??

On Aug 9, 10:27 pm, Naseer naseer.ah...@gmail.com wrote:
 Exclude packages on an all packages run instead of including so many.

 On Aug 9, 2:09 pm, KVR kvr@gmail.com wrote:

  Hi All,
  I want to include about 40 packages in monkey command.But when I tried
  to include 40 packages using -p option, adb shell returned me Service
  name too long  error .This seems to be limitation of adb shell. Is
  there any way to  overcome this??

  ThanksRegards
  KVR

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-10 Thread Mike
Well that wasn't it but you were on the right path. It is something to
do with my texture selection. I took a break down at the local pub and
after a few beers I saw much clearer. :)

I'll post an update sometime tomorrow after I get everything nailed
down completely. Thanks everyone for the help.


On Aug 9, 11:47 pm, Robert Green rbgrn@gmail.com wrote:
 Heh, I think I see your problem.

 Replace  this.textureMap.put(new Integer(textureFiles[i]), new
 Integer(i));
 With  this.textureMap.put(new Integer(textureFiles[i]), new
 Integer(tmp_tex[i]));

 Droids don't number textures incrementally like qualcomms do.  It was
 working because your texture ids happened to align with i.

 On Aug 9, 11:35 pm, Nightwolf mikh...@gmail.com wrote:



  Why do you set GL_TEXTURE_MIN_FILTER twice? Replace one of the calls
  with GL_TEXTURE_MAG_FILTER.

  On Aug 10, 5:22 am, Mike mcmulle...@gmail.com wrote:

   Welp, I did even better. I went out and bought a Droid from
   Craigslist.

   I logged the height and width of the bitmaps at each of the mipmap
   levels and here's the output:

   DEBUG/Texture(1558): Texture image loaded at 256 x 256
   DEBUG/MMTexture(1558): Texture image loaded at 128 x 128
   DEBUG/MMTexture(1558): Texture image loaded at 64 x 64
   DEBUG/MMTexture(1558): Texture image loaded at 32 x 32
   DEBUG/MMTexture(1558): Texture image loaded at 16 x 16
   DEBUG/MMTexture(1558): Texture image loaded at 8 x 8
   DEBUG/MMTexture(1558): Texture image loaded at 4 x 4
   DEBUG/MMTexture(1558): Texture image loaded at 2 x 2
   DEBUG/MMTexture(1558): Texture image loaded at 1 x 1

   So, if it's not the size that's the problem, something with the format
   of the bitmaps themselves? Well at least now I have a phone to test
   on.

   On Aug 9, 7:35 pm, String sterling.ud...@googlemail.com wrote:

Can I suggest you stick a Log call in with your actual loaded texture
sizes? Something like the following:

    Log.i(TAG, Texture image loaded at  + mapImage.getWidth() +  x
 + mapImage.getHeight());

Then get one of the Droid/Milestone users to shoot you a logcat
output... xda-devs folks ought to be able to handle that. That'll at
least tell you if the images are loading at the size you expect, or if
it's a different problem.

String

On Aug 9, 10:11 pm, Mike mcmulle...@gmail.com wrote:

 I am. That's what's so perplexing.

 On Aug 9, 3:56 pm, Tom orei...@mbari.org wrote:

  Make sure that you are loading your textures from the drawable-nodpi
  resource 
  directory:http://www.anddev.org/opengl_textures_-_motorola_droid-t10930.html

  On Aug 9, 1:07 pm, Mike mcmulle...@gmail.com wrote:

   I'm getting white (blank) textures on everything when running on 
   the
   Droid and Galaxy S devices.
   My textures are all power-of-two PNGs and they're in the 
   /res/drawable-
   nodpi folder.

   Here's my code:

   public GLTextures(GL10 gl, Context context) {
                   if(gl==null)return;
                   this.gl = gl;
                   this.context = context;
                   this.textureMap = new java.util.HashMapInteger, 
   Integer();
                   sBitmapOptions.inPreferredConfig = 
   Bitmap.Config.RGB_565;

           }

           public void freeTexs(){
                   gl.glDeleteTextures(textures.length, textures,0);
                   textureFiles = null;
           }

           public void loadTextures() {
                   if(gl==null)return;
                   int[] tmp_tex = new int[textureFiles.length];
                   gl.glGenTextures(textureFiles.length, tmp_tex, 0);
                   textures = tmp_tex;
                   for (int i = 0; i  textureFiles.length; i++) {

                           this.textureMap.put(new 
   Integer(textureFiles[i]), new Integer(i));
                           int tex = tmp_tex[i];

               gl.glBindTexture(GL10.GL_TEXTURE_2D, tex);
               gl.glTexParameterf(GL10.GL_TEXTURE_2D,
   GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);
               gl.glTexParameterf(GL10.GL_TEXTURE_2D,
   GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR_MIPMAP_NEAREST);

               gl.glTexParameterf(GL10.GL_TEXTURE_2D,
   GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);
               gl.glTexParameterf(GL10.GL_TEXTURE_2D,
   GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);
               gl.glTexEnvf(GL10.GL_TEXTURE_ENV,
   GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE);

               InputStream is =
   context.getResources().openRawResource(textureFiles[i]);
               Bitmap bitmap;
               try {
                   bitmap = BitmapFactory.decodeStream(is, null,
   sBitmapOptions);
               } finally {
                   try {
                       is.close();
                   } catch 

[android-developers] Re: Confused about Timezones and Sqlite3

2010-08-10 Thread Sarwar Erfan
Hi,
Conversion is a Java question, not related to Android though.

Anyways, here is a catch --- in Java, the date is ALWAYS stored as UTC
in Date object. You CANNOT convert its timezone (stored value will
be always in UTC).
However, you can print it in different timezones, that is here
formatters come in.

EXAMPLE:
//
String dateStr = 8-8-2010 11:00 AM EST;
SimpleDateFormat formatter = new SimpleDateFormat(dd-MM-
hh:mm a zzz);
try {
Date d = formatter.parse(dateStr);
System.out.println(d.toGMTString());

} catch (Exception e) {
e.printStackTrace();
}
//==


Now, System.out.println(d.toGMTString()); --- this will output:
8 Aug 2010 16:00:00 GMT
Which is correct (as I came to know that EST is GMT-5)


If you want to do some more on date and time in Java, then you better
ask in Java language related groups.


Regards
Sarwar Erfan



On Aug 10, 10:25 am, Bara bara.kath...@gmail.com wrote:
 Ahh, that makes a lot more sense.

 Now, when you say always use UTC (which makes more sense to me), how
 exactly would I convert a time to a different timezone?  In my
 original question I asked How would I go about converting a string
 like 8-8-2010
 11:00 AM EST into the proper format for sqlite3?  Can you provide
 some sample code or a page that would show how to do this?

 I come from a .NET background and usually dealing with datetime stuff
 is simple, so excuse me for asking so many questions :)

 Bara

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Updater SDK (Manager) problem trought proxy

2010-08-10 Thread Daniele Donnarumma
UP Please!!!

On Aug 4, 3:05 pm, Daniele Donnarumma daniele.donnaru...@gmail.com
wrote:
 Hi.
 I'm an android newbie. I have downloaded the SDK revision 6.
 I'm at office.

 I'm back aproxyserver I have installed (squid) in other pc in the
 local network.

 When I try to go using firefox, to the url https://dl-ssl.google.com/
 android/repository/repository.xml i can see correctly the xml
 document.

 When I try to refresh the avilable pakages in SDK Updater, also if I
 specify the IP address and the port of theproxyin the relatives
 textbox, an error is showed:

 Failed to fetch 
 URLhttps://dl-ssl.google.com/android/repository/repository.xml,
 reason: Connection timed out: connect

 Have you got some ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Updater SDK (Manager) problem trought proxy

2010-08-10 Thread Evgeny V
Pleas try to use http instead https

On Aug 10, 2010 10:00 AM, Daniele Donnarumma daniele.donnaru...@gmail.com
wrote:

UP Please!!!

On Aug 4, 3:05 pm, Daniele Donnarumma daniele.donnaru...@gmail.com
wrote:

 Hi.
 I'm an android newbie. I have downloaded the SDK revision 6.
 I'm at office.

 I'm back aproxyserver I have installed (squid) in other pc in the

 local network.

 When I try to go using firefox, to the url https://dl-ssl.google.com/
 androi...
 specify the IP address and the port of theproxyin the relatives

 textbox, an error is showed:

 Failed to fetch URLhttps://
dl-ssl.google.com/android/repository/repository.xml,

 reason: Connection timed out: connect

 Have you got some ideas?

-- 
You received this message ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

2010-08-10 Thread Alessandro Pellizzari
On Mon, 09 Aug 2010 23:02:23 -0700, sunrises wrote:

 I have got the solution please refer the link
 http://groups.google.com/group/android-developers/browse_thread/
thread/41852900bd603070/583943d91dc9f754?lnk=gstq=insufficient
+memory#583943d91dc9f754
 , but I added the option -partition-size 1024 in run
 configurations-target-Additional Emulator Command Line Options
 Thanks to All

Only the Samsung Galaxy S has more than 1 GB of /data size.
The Samsung Galaxy has 800 KB.
Nearly all the other phones have about 150-250 MB in that partition.

I would follow the suggestion others gave you, and would reduce the app 
size to a max of 2 or 3 MBs.

Bye.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Like Mark already said, you need to create a separate widget_info.xml 
file for each size/content type, with appropriate attributes for 
minWidth and minHeight.


Essentially, this means declaring separate widgets for all size / 
content options. The user would see them all when choosing a widget to 
add to the home screen.


-- Kostya

10.08.2010 10:47, kaundinya пишет:

Hi,
How can i give an option for the user to select 3 options(news only,
weather only, News and weather) in the dialog on load of the widget?


On Aug 10, 3:23 am, mboehmermboeh...@fh-muenster.de  wrote:
   

How is this done for the News and Weather widget? After selecting it a
dialog opens and asks for which content (i.e. size) the user wants to
have.

On 10 Aug., 00:04, Mark Murphymmur...@commonsware.com  wrote:



 

Have twoprovider  elements with two separate metadata files with the
two sizes, presumably.
   
 

On Mon, Aug 9, 2010 at 5:30 PM, Fernando Ts...@trias.org  wrote:
   

I'm looking at creating an AppWidget and want to have the user select
which size they want before adding it. Thus, the user can choose 1x1,
2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier,
but not in 1.6) does this. How is this done?
 
 

--
Mark Murphy (a Commons 
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
   
 

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!
   
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: how to get the screen size in inches...

2010-08-10 Thread Kostya Vasilyev

Rob,

Do you have a special case for the Milestone, as well?

-- Kostya

10.08.2010 8:41, Rob пишет:

Thanks, Mark.  That seems to work.  I'm using this:

 float pixels_per_X_inch = displayMetrics.xdpi;
 float pixels_per_Y_inch = displayMetrics.ydpi;

if(Build.DEVICE.equals(sholes)  Build.MODEL.equals(Droid))
{
pixels_per_X_inch = 264; // 480/(9*3.7/sqrt(337)) = 264.613474
pixels_per_Y_inch = 264; // 854/(16*3.7/sqrt(337)) = 264.820203
}

The 3.7 is the diagonal of the screen in inches (from the device
specification).  It's supposed to be a 16:9 display with a resolution
of 480x854.  If somebody knows for certain what the device should
return for the xdpi/ydpi, please, post it.  I'm sure that 3.7 inches
is not exact, so maybe I'm off by a few pixels, but for sizing my
tiles to 1 cm it works quite well.


On Aug 9, 4:48 pm, Mark Murphymmur...@commonsware.com  wrote:
   

On Mon, Aug 9, 2010 at 7:24 AM, Robrob.ryan.br...@gmail.com  wrote:
 

How do I detect what hardware my app is running on?  I mean the
specific brand and model.
   

android.os.Build has that information.

--
Mark Murphy (a Commons 
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to handle OutofMemoryError in a service?

2010-08-10 Thread Kostya Vasilyev

Doug,

You can set an alarm before allocating objects that result in the out of 
memory condition.


But this is really just a band-aid - IMHO, you should optimize your 
service's memory usage.


-- Kostya

10.08.2010 3:34, doug пишет:

Hello,

If my service encounters an OutofMemoryError when creating new
objects, what can I do to tell Android to restart my service later?  I
thought about Alarm but then I can't create a pending intent in the
OutofMemoryError situation...

Thanks,
doug

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Developing a project on both Android Windows

2010-08-10 Thread Andy Savage
Hi everyone,

I've got an interesting request that's hard to find information on Google
for.

I'm developing an application across both Android and windows which (mostly)
shares the same classes. I was looking for a really easy way to duplicate
some of the special Android classes on windows.

For example for the Log class, I wrote a MyLog class which performs exactly
the same but the actual class does different things (for example on windows
it just formats a string and writes it out to System.out).

I was wondering if anybody had any classes which performed similar functions
to Android in windows. For example, I'd love to have a drop in replacement
for the Broadcast system in Android that I could use in windows to get
very similar functionality.

Just wondering if anybody had any small classes they could share or any
links to something which duplicates even a small part of what Android does.

Cheers,
Andy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wifi-UPnP

2010-08-10 Thread Kostya Vasilyev

Try searching / asking here:

http://groups.google.com/group/android-porting

-- Kostya

10.08.2010 10:30, msnkm пишет:

Hi,

Im trying to Wifi UPnP(which comes along with froyo source code) but
the build is failing.
Has anybody tried building wpa_supplicant_6.

Any help in this matter is appreciated

Thanks  Regards
msnkm

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Patching

2010-08-10 Thread perumal316
Hi All,

I am just wondering how does Android do patching? For example how do
they push down software patches to solve security vulnerabilities etc?
Or it is only system upgrade. Like from 2.1 to 2.1 update 1 to 2.2. So
is there is no patches pushed down in the interim period.

Thanks In Advance,
Perumal

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] RawContactsEntity - Invalid column aggregation_mode

2010-08-10 Thread William Ferguson
I've been poking around retrieving RawContactsEntity records (ie
RawContacts joined with RawContactsData) and am getting an
IllegalArgumentException when trying to create a query that contains
  ContactsContract.RawContactsEntity.AGGREGATION_MODE
in its projection.

Caused by: java.lang.IllegalArgumentException: Invalid column
aggregation_mode
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
144)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
114)
at
android.content.ContentProviderProxy.bulkQuery(ContentProviderNative.java:
326)
at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
345)
at android.content.ContentResolver.query(ContentResolver.java:202)
at android.app.Activity.managedQuery(Activity.java:1504)
at
au.com.xandar.contactsmanager.RawContactsCursor.getAllContactsWithNames(RawContactsCursor.java:
136)
at
au.com.xandar.contactsmanager.AccountsFactory.getAccounts(AccountsFactory.java:
44)
at
au.com.xandar.contactsmanager.DisplayContactsActivity.onCreate(DisplayContactsActivity.java:
37)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
... 11 more

As far as I can tell, AGGREGATION_MODE is a valid column to be
retrieving.
Any ideas?

Also, when I retrieve the RawContactsEntity records for the
GoogleContacts account where MIME_TYPE =
StructuredName.CONTENT_ITEM_TYPE, I get about a dozen records that
ONLY contain RawContactId, ContactId and Sync4 and Sync4 == 1. I know
this is within the internals of the GoogleContacts sync adapter, but
I'm curious as to what Sync4==1 means in this context and more
importantly whether these sparse RawContacts records are real or
debris that can be safely removed.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread YuviDroid
Actually, if I'm not wrong, you need to create separate providers just for
the different sizes (4x1, 3x1, 4x2, etc.), but the content displayed is up
to the developer. After selecting the widget (size) a Configuration Activity
can be shown where the user can then select what content he wants.


YuviDroid

On Tue, Aug 10, 2010 at 9:08 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 Like Mark already said, you need to create a separate widget_info.xml file
 for each size/content type, with appropriate attributes for minWidth and
 minHeight.

 Essentially, this means declaring separate widgets for all size / content
 options. The user would see them all when choosing a widget to add to the
 home screen.

 -- Kostya

 10.08.2010 10:47, kaundinya пишет:

  Hi,
 How can i give an option for the user to select 3 options(news only,
 weather only, News and weather) in the dialog on load of the widget?


 On Aug 10, 3:23 am, mboehmermboeh...@fh-muenster.de  wrote:


 How is this done for the News and Weather widget? After selecting it a
 dialog opens and asks for which content (i.e. size) the user wants to
 have.

 On 10 Aug., 00:04, Mark Murphymmur...@commonsware.com  wrote:





 Have twoprovider  elements with two separate metadata files with the
 two sizes, presumably.




 On Mon, Aug 9, 2010 at 5:30 PM, Fernando Ts...@trias.org  wrote:


 I'm looking at creating an AppWidget and want to have the user select
 which size they want before adding it. Thus, the user can choose 1x1,
 2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier,
 but not in 1.6) does this. How is this done?




 --
 Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguyhttp://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy




 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!






 --
 Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to set data in google maps and further access that data

2010-08-10 Thread Anthony
I have moved the line of text as you said. Do I have to add the itemizedoverlay 
class to the manifest under activities?

On Aug 10, 2010, at 12:34 AM, Jitesh mishra jitesh...@gmail.com wrote:

 Okay that means user does'nt need to know the geocode of the location.
 Thanks a lot. 
 
 On Tue, Aug 10, 2010 at 10:27 AM, Frank Weiss fewe...@gmail.com wrote:
 The user can either enter an address and your app can geocode it or
 the user can tap on the map and your app can get the lat long
 coordinates of where the user tapped.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev

Yes, that is correct.

A config utility can be used to pick the type of content, although it's 
optional. Different widget sizes require separate widget declarations, 
each with its own size.


For the OP's project, it seems like different sizes are tired to 
different content types.


So I meant the same thing, but didn't word it quite well. Thanks for 
clarifying.


-- Kostya

10.08.2010 11:39, YuviDroid пишет:
Actually, if I'm not wrong, you need to create separate providers just 
for the different sizes (4x1, 3x1, 4x2, etc.), but the content 
displayed is up to the developer. After selecting the widget (size) a 
Configuration Activity can be shown where the user can then select 
what content he wants.



YuviDroid

On Tue, Aug 10, 2010 at 9:08 AM, Kostya Vasilyev kmans...@gmail.com 
mailto:kmans...@gmail.com wrote:


Like Mark already said, you need to create a separate
widget_info.xml file for each size/content type, with appropriate
attributes for minWidth and minHeight.

Essentially, this means declaring separate widgets for all size /
content options. The user would see them all when choosing a
widget to add to the home screen.

-- Kostya

10.08.2010 10:47, kaundinya пишет:

Hi,
How can i give an option for the user to select 3 options(news
only,
weather only, News and weather) in the dialog on load of the
widget?


On Aug 10, 3:23 am, mboehmermboeh...@fh-muenster.de
mailto:mboeh...@fh-muenster.de  wrote:

How is this done for the News and Weather widget? After
selecting it a
dialog opens and asks for which content (i.e. size) the
user wants to
have.

On 10 Aug., 00:04, Mark Murphymmur...@commonsware.com
mailto:mmur...@commonsware.com  wrote:




Have twoprovider  elements with two separate
metadata files with the
two sizes, presumably.


On Mon, Aug 9, 2010 at 5:30 PM, Fernando
Ts...@trias.org mailto:s...@trias.org  wrote:

I'm looking at creating an AppWidget and want to
have the user select
which size they want before adding it. Thus, the
user can choose 1x1,
2x2, etc. The Calendar widget in Android 2.2 (and
possibly earlier,
but not in 1.6) does this. How is this done?


--
Mark Murphy (a Commons

Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

http://github.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy


_The Busy Coder's Guide to *Advanced* Android
Development_ Version 1.9
Available!




-- 
Kostya Vasilev -- WiFi Manager + pretty widget --

http://kmansoft.wordpress.com


-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




--
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a 
widget to quickly access your favorite apps and contacts!)

http://android.yuvalsharon.net

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Send a Mail and post on FB Wall

2010-08-10 Thread FrankG
I would suggest  i.e. that you look at other apps like gallery
whether their send to functionality does what you want.

I yes, then investigate their source which intent ( IMHO ACTION
Intent )
they use to do so.

Good luck !

  Frank


On 6 Aug., 20:20, giles ian gilesian@gmail.com wrote:
 Hi All,

 I want to do following things from within my app

 1. Send a mail (gmail to be precise).

 2. Post some text on Face Book Wall.

 I have no idea abt how to do the above things.

 Any kind of help will do like personal experience, imp links,name of the
 thing with which this is possible

 Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: developing with htc aria

2010-08-10 Thread FrankG


 Now, I wonder why there is no special connect mode just for debugging in any
 Android phone I've used, and why adb doesn't use a class driver. But I
 guess that's like asking who shot Kennedy...

Because each device will have his own Vendor/Product ID Pair ..



 --
 Kostya Vasilyev --http://kmansoft.wordpress.com


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


RE: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-10 Thread THENG Rudy (Yanto)
Hi,

I just found this method.. onUserLeaveHint()
Try to override it...

Regards,
Rudy



 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of optimusgeek
 Sent: Tuesday, August 10, 2010 8:32 AM
 To: Android Developers
 Subject: [android-developers] Re: how can I check my app stopped by which
 home key or other apps
 
 Thank you all.
 Here is what I'm doing.
 I'd like to register a notification as 'ongoing' when my app being
 invisible by only Home key.
 but on second thought, It's meaningless as your opinions.
 There's not different one app between home screen from application
 aspect.
 I do not notice that It's all about home key eventually...
 and I know I can't control home key.
 I think it's unnecessary worry.
 
 thanks guys.
 
 
 
 
 On 8월9일, 오후10시57분, TreKing treking...@gmail.com wrote:
  2010/8/8 optimusgeek choongb...@gmail.com
 
   I mean I want to do something when my app going to be stopped.
 
  Yes, I understand that. The question is why do you care HOW you're
 stopped?
  Why does being stopped by one app versus the Home screen (which as Bob
  explains is really the same thing) make a difference to you?
  Why do you think you need two different code paths for these cases?
 
  Explain this and you'll probably get more help.
 
  
 ---­--
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: developing with htc aria

2010-08-10 Thread FrankG

I don’t understand why there are two drivers, but “My HTc” seems to
have a problem as listed below.

How many devices you will see in the device manager depends from the
usb configuration
from you phone. I.E. it can provide a composite device with multiple
CDC interfaces
+ adb + mass storage + what ever ( mtp, pictbridge ...)

Good luck !

  Frank

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


FW: [android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-10 Thread THENG Rudy (Yanto)

Hi,

I just found this method.. onUserLeaveHint()
Try to override it...

Regards,
Rudy



 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of optimusgeek
 Sent: Tuesday, August 10, 2010 8:32 AM
 To: Android Developers
 Subject: [android-developers] Re: how can I check my app stopped by which
 home key or other apps
 
 Thank you all.
 Here is what I'm doing.
 I'd like to register a notification as 'ongoing' when my app being
 invisible by only Home key.
 but on second thought, It's meaningless as your opinions.
 There's not different one app between home screen from application
 aspect.
 I do not notice that It's all about home key eventually...
 and I know I can't control home key.
 I think it's unnecessary worry.
 
 thanks guys.
 
 
 
 
 On 8월9일, 오후10시57분, TreKing treking...@gmail.com wrote:
  2010/8/8 optimusgeek choongb...@gmail.com
 
   I mean I want to do something when my app going to be stopped.
 
  Yes, I understand that. The question is why do you care HOW you're
 stopped?
  Why does being stopped by one app versus the Home screen (which as Bob
  explains is really the same thing) make a difference to you?
  Why do you think you need two different code paths for these cases?
 
  Explain this and you'll probably get more help.
 
  
 ---­--
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: developing with htc aria

2010-08-10 Thread Kostya Vasilyev

ADB connect mode could use the same vendor / product ID for all phones.

And USB flash drives work with a unified, built-in, driver, and at the 
same time display different vendor and product names (at least in 
Windows device manager).


Anyway, I realize it is the way it is, so it's kind of pointless.

-- Kostya

10.08.2010 12:23, FrankG пишет:


   

Now, I wonder why there is no special connect mode just for debugging in any
Android phone I've used, and why adb doesn't use a class driver. But I
guess that's like asking who shot Kennedy...
 

Because each device will have his own Vendor/Product ID Pair ..


   

--
Kostya Vasilyev --http://kmansoft.wordpress.com

 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Organizing the res/drawable folder

2010-08-10 Thread Neilz
Hi all. My app has loads of images in the drawable folder, and I want
to organize them into sub folders to make them more manageable.

When I create a new folder, and move the images, they are no longer
found (and not compiled into the R.java file).

Can this be done, or do all my hundreds of images have to sit directly
in the drawable folder?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Controlling an app's cache size

2010-08-10 Thread t
Hey.

My app has a WebView which displays Google maps. I'm trying to limit
the cache size to a reasonable one - like 2MB. After checking with
settings-applications-manage applications I found out that regular
page load gets the cache to 900kb. And dispite my efforts, I can't
limit the cache size or monitor when the cache limit is being reached.
If I'm playing with the map on the webview, the app can even reach
10MB and no ache max size reached message is received.

I used the following code:

_webView.getSettings().setAppCacheMaxSize(210); //2MB
_webView.setWebViewClient(new WebViewClient(){
@Override
public void onReachedMaxAppCacheSize (long spaceNeeded, 
long
totalUsedQuota, android.webkit.WebStorage.QuotaUpdater quotaUpdater){
Log.i(getClass().getName(), App cache max size 
reached);
}
});

and a breakpoint inside onReachedMaxAppCacheSize.

Device is Nexus One.

Am I doing something wrong? Is there a better way to control the cache?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Controlling an app's cache size

2010-08-10 Thread Martins Streņģis
for file cache i use file.lastModified()
if smaller then my cahce time for example if file wasnt modified for 8 hours
it will be deleted
and when you access that file use
file.setLastModified(System.currentTimeMillis());

int timeout = 60 * 60 * main.imagecache; //main.imagecachen int hours for
keeping image in cache
long ts = System.currentTimeMillis() / 1000 - timeout;
if((file.lastModified() / 1000)  ts){
file.delete();
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Organizing the res/drawable folder

2010-08-10 Thread Martins Streņģis
you can add prefixes to your images like
ico_
bicon_
profile_activity_

and so on

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WifiInfo. getLinkSpeed : uplink or downlink?

2010-08-10 Thread Bob Kerns
That's because wifi is symmetric. Same speed in both directions.

It's likely in many cases that there's an asymmetric link in the route
-- certainly HIGHLY likely that there will be something slower. Wifi
is unlikely to be your slowest link, so I really don't see any value
in checking this.

Even if you know you'll be talking to a server on the local network,
wifi is fast enough that even the slowest versions aren't likely to
make a big difference for anything but bulk data transfer, or
situations requiring low latency.

On Aug 9, 5:11 pm, j jac...@gmail.com wrote:
 I need the Wifi link speed for the smaller of uplink speed and
 downlink speed.

 What does WifiInfo's getLinkSpeed return?  The documentation doesn't
 say.  Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How safe is emailing a signed App apk?

2010-08-10 Thread Droid
I have an email wanting to localise an APK. But I have to email him/
her a signed APK. Is that safe, I mean can they access my merchant
account or something horrible like that if they get my key store?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Clearing a remembered password in my app

2010-08-10 Thread t
Hello. I have the following scenario:

1. My app opens a web view, with a web page that requires a username 
password.
2. The user writes his password, and on the Android popup to remember
the password he chooses remember.
3. Now the user wants to log in with a different password. But the web
view always remembers his last password and doesn't even show him the
login page.

How can I programmatically clear that saved password? Assuming that I
know the host URL. I tried webView.clearCache(true),
webView.clearFormData(). But it didn't work.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Clearing a remembered password in my app

2010-08-10 Thread { Devdroid }
On 10 August 2010 11:23, t tomers...@gmail.com wrote:

 How can I programmatically clear that saved password? Assuming that I
 know the host URL. I tried webView.clearCache(true),
 webView.clearFormData(). But it didn't work.

Doubt it's related to stored password. I'd bet it's just simple cookie in
webbrowser.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How safe is emailing a signed App apk?

2010-08-10 Thread { Devdroid }
On 10 August 2010 11:20, Droid rod...@gmail.com wrote:
 I have an email wanting to localise an APK. But I have to email him/
 her a signed APK. Is that safe, I mean can they access my merchant
 account or something horrible like that if they get my key store?

Is as safe as releasing it on Market. I suggest you read about public/private
key based cryptography as it seems you lack some basic knowledge.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Organizing the res/drawable folder

2010-08-10 Thread { Devdroid }
On 10 August 2010 10:59, Neilz neilhorn...@gmail.com wrote:
 Hi all. My app has loads of images in the drawable folder, and I want
 to organize them into sub folders to make them more manageable.

You can't. As other suggest, prefix your images if that would help (it should)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Clearing a remembered password in my app

2010-08-10 Thread Sarwar Erfan


 3. Now the user wants to log in with a different password. But the web
 view always remembers his last password and doesn't even show him the
 login page.

The website should have a logout feature. Logout from the site first
from your webview.
The website is sending the webview to the private page instead of
sending to login page.

Regards
Sarwar Erfan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers]

2010-08-10 Thread vineeshkc
I want database connection code using android database connectivity
with SQLite.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Organizing the res/drawable folder

2010-08-10 Thread Neilz
Hmmm. How naff.

On Aug 10, 10:29 am, { Devdroid } webnet.andr...@gmail.com wrote:
 On 10 August 2010 10:59, Neilz neilhorn...@gmail.com wrote:

  Hi all. My app has loads of images in the drawable folder, and I want
  to organize them into sub folders to make them more manageable.

 You can't. As other suggest, prefix your images if that would help (it should)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Clearing a remembered password in my app

2010-08-10 Thread Sarwar Erfan
Try;
CookieManager.getInstance().removeAllCookie();
OR
CookieManager.getInstance().removeSessionCookie();

And clear cache. That should make it.

Regards
Sarwar Erfan


On Aug 10, 3:38 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
  3. Now the user wants to log in with a different password. But the web
  view always remembers his last password and doesn't even show him the
  login page.

 The website should have a logout feature. Logout from the site first
 from your webview.
 The website is sending the webview to the private page instead of
 sending to login page.

 Regards
 Sarwar Erfan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Organizing the res/drawable folder

2010-08-10 Thread String
On Aug 10, 10:46 am, Neilz neilhorn...@gmail.com wrote:

 Hmmm. How naff.

Yes, it is.

One other suggestion that might help would be to create one or more
library projects and move the bulk of your images into there. They'll
still get built into your APK, but they won't be cluttering up your
main project's /res/drawable* tree.

String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread kaundinya
First of all thanks for the quick reply,

Yes i have a 3 different xml file called options1, options2, options3
in the layout folder. In 1 .java file called callalert im using
alert.builder concept to display the alert message( which shows all 3
options)using the following code.

final CharSequence[] items = {Option1, Option2,
Option3};
AlertDialog.Builder builder = new
AlertDialog.Builder(context);
builder.setTitle(Select);
builder.setItems(items, new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int item) {
Toast.makeText(context.getApplicationContext(),
items[item], Toast.LENGTH_SHORT).show();
}
});
AlertDialog alert = builder.create();
builder.show();

when the code is executed, it shows an error.

What i feel( which might be wrong) is that, there must be a different
code for widget to display alert, is that true?

Please help me fixing this... Thanks in advance.

Nagaraj P Rao


On Aug 10, 12:08 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Like Mark already said, you need to create a separate widget_info.xml
 file for each size/content type, with appropriate attributes for
 minWidth and minHeight.

 Essentially, this means declaring separate widgets for all size /
 content options. The user would see them all when choosing a widget to
 add to the home screen.

 -- Kostya

 10.08.2010 10:47, kaundinya пишет:





  Hi,
  How can i give an option for the user to select 3 options(news only,
  weather only, News and weather) in the dialog on load of the widget?

  On Aug 10, 3:23 am, mboehmermboeh...@fh-muenster.de  wrote:

  How is this done for the News and Weather widget? After selecting it a
  dialog opens and asks for which content (i.e. size) the user wants to
  have.

  On 10 Aug., 00:04, Mark Murphymmur...@commonsware.com  wrote:

  Have twoprovider  elements with two separate metadata files with the
  two sizes, presumably.

  On Mon, Aug 9, 2010 at 5:30 PM, Fernando Ts...@trias.org  wrote:

  I'm looking at creating an AppWidget and want to have the user select
  which size they want before adding it. Thus, the user can choose 1x1,
  2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier,
  but not in 1.6) does this. How is this done?

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
  Available!

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Not quite clear on how this code fits in with the rest, and what the 
error is, but


If you're trying to configure a widget when it's added to the home 
screen, use a configuration activity:


http://developer.android.com/guide/topics/appwidgets/index.html#Configuring

A configuration activity is not an alert, it's an Activity. You can make 
it look like an alert window by specifying a theme in the manifest:


activity android:name=.MyConfigActivity
*android:theme=@android:style/Theme.Dialog*

-- Kostya

10.08.2010 14:06, kaundinya пишет:

First of all thanks for the quick reply,

Yes i have a 3 different xml file called options1, options2, options3
in the layout folder. In 1 .java file called callalert im using
alert.builder concept to display the alert message( which shows all 3
options)using the following code.

 final CharSequence[] items = {Option1, Option2,
Option3};
 AlertDialog.Builder builder = new
AlertDialog.Builder(context);
 builder.setTitle(Select);
 builder.setItems(items, new DialogInterface.OnClickListener()
{
 public void onClick(DialogInterface dialog, int item) {
 Toast.makeText(context.getApplicationContext(),
items[item], Toast.LENGTH_SHORT).show();
 }
 });
AlertDialog alert = builder.create();
builder.show();

when the code is executed, it shows an error.

What i feel( which might be wrong) is that, there must be a different
code for widget to display alert, is that true?

Please help me fixing this... Thanks in advance.

Nagaraj P Rao


On Aug 10, 12:08 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
   

Like Mark already said, you need to create a separate widget_info.xml
file for each size/content type, with appropriate attributes for
minWidth and minHeight.

Essentially, this means declaring separate widgets for all size /
content options. The user would see them all when choosing a widget to
add to the home screen.

-- Kostya

10.08.2010 10:47, kaundinya пишет:





 

Hi,
How can i give an option for the user to select 3 options(news only,
weather only, News and weather) in the dialog on load of the widget?
   
 

On Aug 10, 3:23 am, mboehmermboeh...@fh-muenster.dewrote:
   
 

How is this done for the News and Weather widget? After selecting it a
dialog opens and asks for which content (i.e. size) the user wants to
have.
 
 

On 10 Aug., 00:04, Mark Murphymmur...@commonsware.comwrote:
 
 

Have twoproviderelements with two separate metadata files with the
two sizes, presumably.
   
 

On Mon, Aug 9, 2010 at 5:30 PM, Fernando Ts...@trias.orgwrote:
   
 

I'm looking at creating an AppWidget and want to have the user select
which size they want before adding it. Thus, the user can choose 1x1,
2x2, etc. The Calendar widget in Android 2.2 (and possibly earlier,
but not in 1.6) does this. How is this done?
 
 

--
Mark Murphy (a Commons 
Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
   
 

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!
   

--
Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Organizing the res/drawable folder

2010-08-10 Thread { Devdroid }
 One other suggestion that might help would be to create one or more
 library projects

Assuming you manage to make project to build correctly with libraries.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers]

2010-08-10 Thread { Devdroid }
On 10 August 2010 11:44, vineeshkc kcvine...@gmail.com wrote:
 I want database connection code using android database connectivity
 with SQLite.

ok

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to access user installed CA certs

2010-08-10 Thread Scytmo

On Aug 5, 6:28 pm, Toby tob...@gmail.com wrote:
 Could someone suggest how I go about accessing these credentials from
 an application?

I'm afraid you can't.  They are stored in a keystore that is private
to the system, and only accessible to Wi-Fi and VPN subsystems.  As
you found out, this is a separate keystore to that used for default
SSL certificates.

If you need the user to import credentials for use by your
application, you can look at providing that import facility in your
application and storing the credentials yourself.  If you do this, you
might want to protect the stored credentials - for example, by
encrypting them with a key derived from a user-entered password.  This
is what the system keystore does.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers]

2010-08-10 Thread vineeshkc
pls show me how

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2010-08-10 Thread Evgeny V
Check the examples of Mc'Murphy books

On Aug 10, 2010 1:44 PM, vineeshkc kcvine...@gmail.com wrote:



pls show me how



-- 
You received this message because you are subscribed to the Google
Groups Android Developers...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2010-08-10 Thread vineeshkc
can u give  a link to that book

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: POJO junit test in an Android project

2010-08-10 Thread ko5tik


On Aug 10, 3:39 am, doug doug_a...@yahoo.com wrote:
 Oh well, It doesn't seem that the Eclipse plug-in would even run a
 test case subclassed directly from junit.framework.TestCase.  How do
 folks test POJOs in Android then?

Which junit.framework.TestCase you are using?   One coming from
android library
will be just a stub

I use jMockit to mock everything android in my testcases, and junit
coming from somewhere else

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Are external libraries limited by Android version?

2010-08-10 Thread ko5tik


On Aug 9, 1:26 pm, FrEaKmAn zasebn...@gmail.com wrote:
 Hello

 Will external library (for parsing JSON) work on 1.5 if it works on
 2.1? So are libraries limited by android version? If yes, why?

Why do you need external library to parse JSON, if android already
provides this functionality?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to unload image from memory?

2010-08-10 Thread Jenus Dong
bluedogCould you write some code sippet to show your mean,  how does judge
the condition of OutofMemoey,
 by platform, or by ourselves?

2010/8/8 bluedog xuehui...@gmail.com

 use Bitmap.recycle() release native memory
 use SoftReference save all images , will free these memory before out
 of memory

 On 8月7日, 下午11时12分, Alex Xin xinxi...@gmail.com wrote:
  Hi,
 
  Are there any ways that I can unload unused images from memory? For
 example
  I want to unload background pictures in order to save memory when my
  activity is going to background?
 
  I want to this because my app will force close on Nexus One, from the
 logcat
  I found it was caused due to out of memory.
 
  Thanks
 
  Alex

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Can't make restartPackage() / killBackgroundProcesses() to work

2010-08-10 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/9/10 23:19 , Indicator Veritatis wrote:
 That depends on where you draw your line to decide what is in and
 outside of the black box. If you use JUnit, and have all your
 Applications under test inherit from the basic test (TestCase),
 can't you get the black box test effect you desire?

Black box to me means using the minimum or not at all the APIs of
the application, but driving instead the tests emulating user gestures
to the UI. The reason for that is that I want to test what my users
will see, and everything done outside the black-box approach would
break that constraint.

This can be done with JUnit and the Android API; the problem is that
if you need that tests are run in isolation, e.g. every test starts
from scratch, this is not possible from a single adb invocation,
because you can't force unloading stuff (of course I could call some
of my application methods to force a clean up of the app status, but
it wouldn't be black-box). The only resort is multiple invocation of
adb, which seems to do the required clean up.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxhO1kACgkQeDweFqgUGxdbnACghaUY3YU0zLGrkG+kkHYXz32g
r7gAoIGRc6TNqlLPuIF5rlIij/wKjL/F
=/UOF
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Updater SDK (Manager) problem trought proxy

2010-08-10 Thread Daniele Donnarumma
I can't use http because our companies' websense proxy/firewall
block   the http://dl-ssl.google.com/android/repository/repository.xml
URL.

If i try to go to this URL using HTTPS via browser i can see the xml
file.

Why SDK Updater show this problem?

Thank you very much.

Daniele


On 10 Ago, 09:05, Evgeny V evgen...@gmail.com wrote:
 Pleas try to use http instead https

 On Aug 10, 2010 10:00 AM, Daniele Donnarumma daniele.donnaru...@gmail.com
 wrote:

 UP Please!!!

 On Aug 4, 3:05 pm, Daniele Donnarumma daniele.donnaru...@gmail.com
 wrote:

  Hi.
  I'm an android newbie. I have downloaded the SDK revision 6.
  I'm at office.

  I'm back aproxyserver I have installed (squid) in other pc in the
  local network.

  When I try to go using firefox, to the url https://dl-ssl.google.com/
  androi...
  specify the IP address and the port of theproxyin the relatives
  textbox, an error is showed:

  Failed to fetch URLhttps://

 dl-ssl.google.com/android/repository/repository.xml,

  reason: Connection timed out: connect

  Have you got some ideas?

 --
 You received this message ...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Public Custom components

2010-08-10 Thread SAM
Hi All,
I want to develop and distribute some custom UI components for android
apps. This custom component can do some network communicatioon too
with my server.

So by this I want to hide the communication protocol from my component
users, and will show the content as provided by my control eg sponsor
ads. This concept is same as Apple's iAD.

Issue:
1. I want to hide my custom component code from its users so that they
just need to include it in their antivity rest its upto me.

2. I have not implemented but sure that a UI component can do network
communication.


regards
sam

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Organizing the res/drawable folder

2010-08-10 Thread String
I've been using libraries since shortly after their release at IO10,
and haven't had significant trouble with them. Occasionally I need to
do a Project  Clean in Eclipse to bring everything up to date, but
that's not exactly hard.

String

On Aug 10, 11:35 am, { Devdroid } webnet.andr...@gmail.com wrote:
  One other suggestion that might help would be to create one or more
  library projects

 Assuming you manage to make project to build correctly with libraries.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how can I check my app stopped by which home key or other apps

2010-08-10 Thread optimusgeek
Oh, good!
It's very helpful.
thank you.

On 8월10일, 오후5시31분, THENG Rudy (Yanto) r.th...@oberthur.com wrote:
 Hi,

 I just found this method.. onUserLeaveHint()
 Try to override it...

 Regards,
 Rudy



  -Original Message-
  From: android-developers@googlegroups.com [mailto:android-
  develop...@googlegroups.com] On Behalf Of optimusgeek
  Sent: Tuesday, August 10, 2010 8:32 AM
  To: Android Developers
  Subject: [android-developers] Re: how can I check my app stopped by which
  home key or other apps

  Thank you all.
  Here is what I'm doing.
  I'd like to register a notification as 'ongoing' when my app being
  invisible by only Home key.
  but on second thought, It's meaningless as your opinions.
  There's not different one app between home screen from application
  aspect.
  I do not notice that It's all about home key eventually...
  and I know I can't control home key.
  I think it's unnecessary worry.

  thanks guys.

  On 8월9일, 오후10시57분, TreKing treking...@gmail.com wrote:
   2010/8/8 optimusgeek choongb...@gmail.com

I mean I want to do something when my app going to be stopped.

   Yes, I understand that. The question is why do you care HOW you're
  stopped?
   Why does being stopped by one app versus the Home screen (which as Bob
   explains is really the same thing) make a difference to you?
   Why do you think you need two different code paths for these cases?

   Explain this and you'll probably get more help.

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

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- 원본 텍스트 숨기기 -

 - 원본 텍스트 보기 -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers]

2010-08-10 Thread Brion Emde
The Notepad tutorial in the SDK gives a nice example of using a
database. You can find that example here:

http://developer.android.com/resources/tutorials/notepad/index.

Also, the Notepad sample code gives another approach, using a
ContentProvider to encapsulate the database:

http://developer.android.com/resources/samples/NotePad/index.html

I believe that you need to buy Mark's book. I don't think he's giving
it away.

On Aug 10, 7:10 am, vineeshkc kcvine...@gmail.com wrote:
 can u give  a link to that book

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-08-10 Thread Mark Murphy
Ah. Try using queryIntentActivities() instead of resolveActivity(), then.

On Tue, Aug 10, 2010 at 2:47 AM, manoj manojkumar.m...@gmail.com wrote:
 I am getting the correct result if I have the only one home app
 (default home) is installed. If i have more than 1 home apps, I am
 getting the result w.r.t ResolveActivity. Now how can I resolve this?

 say, for example,
 1. Android Home (action=MAIN, cat=LAUNCHER,HOME...etc).
 2. MyHome(action=MAIN, cat = LAUNCHER,HOME...etc).

 current home set is MyHome.

 Now If I follow the above code, the result displayed is
 ResolverActivity. Now how can I resolve this.

 Thanks,
 Manoj.

 manoj wrote:
 I mean the package name of the launcher. finally got it.

 ActivityInfo ai = ri.activityInfo;
 ai.packageName will give the package name.

 Thanks for the help.

 On Aug 8, 7:11 pm, Mark Murphy mmur...@commonsware.com wrote:
  Please define didn't get the result.
 
 
 
 
 
  On Sun, Aug 8, 2010 at 9:57 AM, manoj manojkumar.m...@gmail.com wrote:
   Hi Mark,
 
   could you please alobrate it? I have used the following code. but
   didn't get the result.
 
   Intent i = new Intent();
          i.setAction(Intent.ACTION_MAIN);
          i.addCategory(Intent.CATEGORY_HOME);
          PackageManager pm = this.getPackageManager();
          ResolveInfo ri = pm.resolveActivity(i, 0);
          System.out.print(HOME PKG NAME + +ri.resolvePackageName);
 
   Could you please tell me?
 
   On Aug 7, 10:22 pm, Mark Murphy mmur...@commonsware.com wrote:
   Create an Intent that brings up the HOME screen, then use
   PackageManager and resolveActivity().
 
   On Sat, Aug 7, 2010 at 9:40 AM, manoj manojkumar.m...@gmail.com wrote:
Hi all,
 
I have a some strange issue. I would like to get the package name of
the current home screen.
 
lets say we have two home screens : 1. default android home theme
                                                      2. 3rd party
home theme.
 
Assume both are installed and current home theme is 3rd party home
theme.
 
Now I would like to get the package package name of the current home
theme (3rd party). Is there any api which can give the current home
screen package name?
 
I can get the package name in ddms. But I want it programmatically.
 
Regards,
Manoj.
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en
 
   --
   Mark Murphy (a Commons 
   Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
   _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
   Available!- Hide quoted text -
 
   - Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to Android Development_ Version 3.1 Available!- 
  Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-10 Thread Mark Murphy
Why not use an activity?

On Tue, Aug 10, 2010 at 12:06 AM, Chris Stewart cstewart...@gmail.com wrote:
 I should also say that I'm kind of searching for a best practice here as
 well.  I get the vibe that opening the context menu in this way may not be
 the most sound way of doing it, but hey, if it works and it's not
 troublesome for the user, that works for me.
 Regards,
 Chris Stewart
 Fantasy Football - Android app for fantasy football fanatics and MFL owners
 Social Updater - An easy way to send your status blast to multiple social
 networks


 On Tue, Aug 10, 2010 at 12:04 AM, Chris Stewart cstewart...@gmail.com
 wrote:

 I have tried variations of that but getting the View is where I'm falling
 short.  Something like:
 registerForContextMenu(this.getCurrentFocus());
 openContextMenu(this.getCurrentFocus());
 I'm not sure what View I should be passing in as right now this Activity
 doesn't really have any UI components laid out in the XML file.
 Regards,
 Chris Stewart
 Fantasy Football - Android app for fantasy football fanatics and MFL
 owners
 Social Updater - An easy way to send your status blast to multiple social
 networks


 On Mon, Aug 9, 2010 at 11:49 PM, TreKing treking...@gmail.com wrote:

 On Mon, Aug 9, 2010 at 10:44 PM, Chris Stewart cstewart...@gmail.com
 wrote:

 I'm not finding a way to do what I'm after and was wondering if anyone
 has run into this before and how they solved it.

 I'm sure you tried this already, yes?

 http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)

 -
 TreKing - Chicago transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] FTP Application for IPv6

2010-08-10 Thread Joe Petruchi
Hello All,

Does any body know if there exists any package to test FTP over IPv6.

I tried with some of FTP applications available in market but it doesnt seem
to support IPv6.

Please help as this is very urgent for me

Best Regards
Petruchi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-10 Thread Mark Murphy
On Tue, Aug 10, 2010 at 8:30 AM, Mark Murphy mmur...@commonsware.com wrote:
 Why not use an activity?

By which I mean pop up an activity (via
startActivity()/startActivityForResult()) in the cases where you need
to collect data from the user. Or, use a dialog. Popping up a context
menu would be rather odd.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Developer control of Android Market Server license settings

2010-08-10 Thread OldSkoolMark
 It's been pointed out a couple of times now that this behavior makes
 it difficult to test real behavior of an LVL implementation. The
 only way I've found to do such testing is to create additional Google
 accounts (and not list them as test accounts on your profile).


Can you do this prior to uploading your app to Market? Really want to
test this stuff thoroughly before going live. Buggy licensing
infrastructure is a really effective way to alienate users.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Opening a context menu in the onCreate of an activity

2010-08-10 Thread Vishal
I believe using openContextMenu(this.getCurrentFocus()); should be
used inside overriden method  bpublic void
onWindowFocusChanged(boolean)/b when argument comes as true.
This may help probably.

Vishal

On Aug 10, 5:30 pm, Mark Murphy mmur...@commonsware.com wrote:
 Why not use an activity?



 On Tue, Aug 10, 2010 at 12:06 AM, Chris Stewart cstewart...@gmail.com wrote:
  I should also say that I'm kind of searching for a best practice here as
  well.  I get the vibe that opening the context menu in this way may not be
  the most sound way of doing it, but hey, if it works and it's not
  troublesome for the user, that works for me.
  Regards,
  Chris Stewart
  Fantasy Football - Android app for fantasy football fanatics and MFL owners
  Social Updater - An easy way to send your status blast to multiple social
  networks

  On Tue, Aug 10, 2010 at 12:04 AM, Chris Stewart cstewart...@gmail.com
  wrote:

  I have tried variations of that but getting the View is where I'm falling
  short.  Something like:
  registerForContextMenu(this.getCurrentFocus());
  openContextMenu(this.getCurrentFocus());
  I'm not sure what View I should be passing in as right now this Activity
  doesn't really have any UI components laid out in the XML file.
  Regards,
  Chris Stewart
  Fantasy Football - Android app for fantasy football fanatics and MFL
  owners
  Social Updater - An easy way to send your status blast to multiple social
  networks

  On Mon, Aug 9, 2010 at 11:49 PM, TreKing treking...@gmail.com wrote:

  On Mon, Aug 9, 2010 at 10:44 PM, Chris Stewart cstewart...@gmail.com
  wrote:

  I'm not finding a way to do what I'm after and was wondering if anyone
  has run into this before and how they solved it.

  I'm sure you tried this already, yes?

 http://developer.android.com/reference/android/app/Activity.html#open...)

  -
  TreKing - Chicago transit tracking app for Android-powered devices

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Launching barcode reading from browser

2010-08-10 Thread m
Surely someone must know...?

On Aug 9, 5:22 pm, m phillip...@gmail.com wrote:
 On the Google Products page, from an Android device, there is a scan
 barcode button that launches a 3rd party barcode scanning app, which
 returns results back to the browser.

 1)  How did they do this?
 2)  Is this available for any web developer to do, or a Google -
 Google api only?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to get the screen size in inches...

2010-08-10 Thread Rob
No, I haven't.  If you can provide me with the Build.DEVICE and
Build.MODEL values for the Milestone and the corrected xdpi/ydpi for
those values, I'll add it.  Thanks.

On Aug 10, 3:10 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Rob,

 Do you have a special case for the Milestone, as well?

 -- Kostya

 10.08.2010 8:41, Rob пишет:



  Thanks, Mark.  That seems to work.  I'm using this:

           float pixels_per_X_inch = displayMetrics.xdpi;
           float pixels_per_Y_inch = displayMetrics.ydpi;

             if(Build.DEVICE.equals(sholes)  Build.MODEL.equals(Droid))
             {
                     pixels_per_X_inch = 264; // 480/(9*3.7/sqrt(337)) = 
  264.613474
                     pixels_per_Y_inch = 264; // 854/(16*3.7/sqrt(337)) = 
  264.820203
             }

  The 3.7 is the diagonal of the screen in inches (from the device
  specification).  It's supposed to be a 16:9 display with a resolution
  of 480x854.  If somebody knows for certain what the device should
  return for the xdpi/ydpi, please, post it.  I'm sure that 3.7 inches
  is not exact, so maybe I'm off by a few pixels, but for sizing my
  tiles to 1 cm it works quite well.

  On Aug 9, 4:48 pm, Mark Murphymmur...@commonsware.com  wrote:

  On Mon, Aug 9, 2010 at 7:24 AM, Robrob.ryan.br...@gmail.com  wrote:

  How do I detect what hardware my app is running on?  I mean the
  specific brand and model.

  android.os.Build has that information.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
  Available!

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Licensing - How/where do we manage the ServerManagedPolicy?

2010-08-10 Thread OldSkoolMark


 As for testing it in the field, our recommendation is to just register an
 anonymous Google account and buy your own app. You can always return it
 within 24 hours and not get charged.


I'd like to test the licensing support BEFORE making the app publicly
available. I don't want to punish early adopters with licensing
errors. The logic behind not providing any server extras for a signed
in developer eludes me.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Launching barcode reading from browser

2010-08-10 Thread Kostya Vasilyev

http://tinyurl.com/35o2ell


10.08.2010 16:40, m пишет:

Surely someone must know...?

On Aug 9, 5:22 pm, mphillip...@gmail.com  wrote:
   

On the Google Products page, from an Android device, there is a scan
barcode button that launches a 3rd party barcode scanning app, which
returns results back to the browser.

1)  How did they do this?
2)  Is this available for any web developer to do, or a Google -
Google api only?
 
   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers]

2010-08-10 Thread vineeshkc
i have an error

MyObject cannot be resolved to a type
...
in
 public long insertEntry(MyObject _myObject) {
ContentValues contentValues = new ContentValues();
// TODO fill in ContentValues to represent the new row
return db.insert(DATABASE_TABLE, null, contentValues);
}
pls help me

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Failure loading drawables on Cupcake/1.5 when building with Froyo/2.2 SDK

2010-08-10 Thread String
I found this warning occurred when I tried to load a resource that
wasn't available for the current configuration. In other words, a
resource which exists in some subdir of /res, but not one which is
applicable to the runtime environment.

In my case, it was a locale-specific string resource which didn't have
a default value, only a localized value which didn't apply to the
current runtime locale. For the OP, I could imagine it was because he
didn't have a default drawable; he only had -hdpi and -mdpi versions,
neither of which Cupcake knows about.

Does that explanation make sense? :^)

String

On Jul 31, 8:45 pm, machambi alexander.j...@gmail.com wrote:
 I have the same problem , Application compiled using 2.2 fails to
 startup on 1.5. If I change the application settings to compile using
 2.1 api, the same app loads ok on 1.5.

 Have you got any resolution to this problem?

 On Jul 19, 6:08 pm, Trygve trygv...@gmail.com wrote:



  I have ported the keyboard from Android 2.2 to 1.5, because I want to
  use it as a base for a keyboard. When I compile the keyboard with SDK
  version 2.2 and run the keyboard in an emulator running 1.5, I get
  this error:

  W/ResourceType(  715):Failure getting entryfor 0x7f02001f (t=1 e=31)
  in package 0: 0xffb5

  Resource 0x7f02001f is a standard 9-patch png drawable located in res/
  drawable-hdpi and res/drawable-mdpi. It is loaded from a xml file as a
  background. If I remove the code to load this drawable, the next
  drawable that tries to load fails.

  To locate the error, I have commented out all the methods from newer
  SDK's, and when I compile the keyboard with SDK version 1.5, 1.6 or
  2.1 it works fine on the emulator running 1.5. However when I compile
  it with SDK 2.2 (without changing any code), I get the error above.

  The keyboard works fine when I try it in an emulator running 1.6, 2.1
  and 2.2 when the keyboard is compiled with SDK 2.2. I have to compile
  with SDK 2.2 because I need the speech API.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-10 Thread Chris Stewart
 Why not use an activity?

That's the path I started going down last night.  I think that makes more
sense to me as it will give me more flexibility on the implementation.  My
initial thought, however, was to use a context menu.  I don't think a dialog
would work in this case just because I need to display a list of items for
the user to select from, unless the dialog can be extended to do that.

Interestingly enough, on a specific case in my initial activity, I'll need
to display some form of list selection and then turn around and display an
input dialog for text.  Those two values will be stored off to the database
to then be used on any following requests to the activity.

Regards,
Chris Stewart

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Tue, Aug 10, 2010 at 8:30 AM, Mark Murphy mmur...@commonsware.comwrote:

 Why not use an activity?

 On Tue, Aug 10, 2010 at 12:06 AM, Chris Stewart cstewart...@gmail.com
 wrote:
  I should also say that I'm kind of searching for a best practice here as
  well.  I get the vibe that opening the context menu in this way may not
 be
  the most sound way of doing it, but hey, if it works and it's not
  troublesome for the user, that works for me.
  Regards,
  Chris Stewart
  Fantasy Football - Android app for fantasy football fanatics and MFL
 owners
  Social Updater - An easy way to send your status blast to multiple social
  networks
 
 
  On Tue, Aug 10, 2010 at 12:04 AM, Chris Stewart cstewart...@gmail.com
  wrote:
 
  I have tried variations of that but getting the View is where I'm
 falling
  short.  Something like:
  registerForContextMenu(this.getCurrentFocus());
  openContextMenu(this.getCurrentFocus());
  I'm not sure what View I should be passing in as right now this Activity
  doesn't really have any UI components laid out in the XML file.
  Regards,
  Chris Stewart
  Fantasy Football - Android app for fantasy football fanatics and MFL
  owners
  Social Updater - An easy way to send your status blast to multiple
 social
  networks
 
 
  On Mon, Aug 9, 2010 at 11:49 PM, TreKing treking...@gmail.com wrote:
 
  On Mon, Aug 9, 2010 at 10:44 PM, Chris Stewart cstewart...@gmail.com
  wrote:
 
  I'm not finding a way to do what I'm after and was wondering if anyone
  has run into this before and how they solved it.
 
  I'm sure you tried this already, yes?
 
 
 http://developer.android.com/reference/android/app/Activity.html#openContextMenu(android.view.View)
 
 
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training...At Your Office: http://commonsware.com/training

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Sharing data between (tab) activities

2010-08-10 Thread Filip Havlicek
Hi,

I did some digging, but couldn't find a clear answer. I have an application
with TabActivity as the main activity. I have some computing and network
communication that needs to be done when user clicks on the big red jolly
DO IT button. One tab hosts the form with DO IT button, while the other
tabs display the results from computing (each tab displays different part of
results). The computing is done as AsyncTask as it's supposed to be (afaik).

Now the question is, what is the best way to share the results between the
tabbed activities? It can be done with ContentProvider + database from what
I have read, although that seems like a bit too much for my needs. I have
also considered an option to save the results to some cache file activities
could read in onCreate, onResume etc and display the data. Are there any
other convenient ways to share the data? (To make it more clear, the data
aren't simple, so doing it through preferences etc is impossible.)

Thanks for your advices and thoughts about this matter.
Filip Havlicek

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to correctly organize layouts for different screen type?

2010-08-10 Thread Moto
Thanks Mark!

I really thought it was a smart idea but now that you put it that way
I guess it is smarter to create a dynamic layout for small, normal and
large...

So at the end of the day this would be the specific layout structure:
res/layout-small
res/layout-normal
res/layout-large

Thanks,
-Moto!

On Aug 9, 4:08 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Aug 9, 2010 at 3:41 PM, Moto medicalsou...@gmail.com wrote:
  Currently I have only 2 layouts that need special attention.

 The key word there is currently.

  My
  questions... What is the best way to properly handle screens
  resolution/sizes/types?

 http://developer.android.com/guide/practices/screens_support.htmlhttp://www.androidguys.com/2010/02/16/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/18/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/02/23/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/01/handling-multiple-screen-sizes-...http://www.androidguys.com/2010/03/02/handling-multiple-screen-sizes-...

  I thought I would create the following resource folders:
  res/layout
  res/layout-800x480
  res/layout-854x480

 The first directory is OK.

  Does anyone know if this is the best way to handle specific layouts
  for specific screens?  Doing it by resolution size?

 You really really really really really really do not want to handle
 specific layouts for specific screens. Redesign your UI to be more
 fluid, and handle broad categories of screen sizes (e.g., small vs.
 normal vs. large).

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Licensing - How/where do we manage the ServerManagedPolicy?

2010-08-10 Thread String
On Aug 10, 1:47 pm, OldSkoolMark m...@sublimeslime.com wrote:

  As for testing it in the field, our recommendation is to just register an
  anonymous Google account and buy your own app. You can always return it
  within 24 hours and not get charged.

 I'd like to test the licensing support BEFORE making the app publicly
 available. I don't want to punish early adopters with licensing
 errors.

I'd say you could keep that window pretty small. Get your test account
ready, upload the app, purchase it from the test account, then
immediately unpublish it. For extra safety, give it a description for
this short period of TEST APP - DO NOT PURCHASE, and maybe a good
high price, $50 or more. Just make sure you refund it with 24 hours!

 The logic behind not providing any server extras for a signed
 in developer eludes me.

I can see it both ways. It's good to be able to disable caching for
development, but it would be nice to be able to test the live
configuration without the test-account-purchase rigmarole.

String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Shared library symbols are not loaded.

2010-08-10 Thread chetan
Hi All,
 I have some native code so  put the native code in
framework/base/ dir of source code and shared library is created for
same in out/target/product/generic/system/lib/.
Some queries:
- Why it has not been created in out/target/product/generic/symbols/
system/lib/. Like other libraries are there.
- When i am debug the code using gdb, the symbols for my library is
not loaded , so it is not taking break point. Other library like
libwebcore.so symbols loaded. Tell me what should i do to make it
debug.

Thanks
Chetan Chauhan



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Does all Android Devices support Map API

2010-08-10 Thread Johan Abramsson
Hi,
Jonas is correct - I have seen the pictures out there of the so
called X3 by Sony Ericsson and they seem to be leaked pictures of
early prototyp of the Sony Ericsson X10. Sony Ericsson has never
released a phone called X3.
Kind regards
 /Johan
Sony Ericsson Developer Support #SEDW


On Aug 9, 3:39 am, Nithin nithin.war...@gmail.com wrote:
 Are you saying this X3 was ever actually properly released? It is my
 understanding that X3 (aka Rachael) was only every used internally and
 by the time it was actually released it was called X10.

 I am not sure about that. Anyway I have X3 as well as X10.

 On Aug 9, 3:47 am, Jonas Petersson jonas.peters...@xms.se wrote:



  Hi again Nithin,

  Sorry, for the somewhat late response

  On 08/07/2010 07:36 AM, Nithin wrote:

  Sony'sfirst release (X3) have lot of bugs.
    [...]
   So, X3 have lot of bugs and your application won't work properly in
   X3. Maybe because of that your application is rejected. I am not sure
   any other issue is there.

  Are you saying this X3 was ever actually properly released? It is my
  understanding that X3 (aka Rachael) was only every used internally and
  by the time it was actually released it was called X10.

  In any case you misunderstood: my application was NOT rejected at all.
  As I said,SonyEricssoneven used it for their own promotional video
  and I had several unofficial positive messages from people at
  SonyEricsson in Lund, happily using it around the time the YouTube video
  was put up.

  No doubt you are right that some early builds were broken, but I've
  heard of no official X10 releases having problems installing my application.

  Personally, I wouldn't worry about early non-released firmwares being
  incomplete - that's their purpose. Anyone STILL using them can hardly
  expect everything to work.

                          Best / Jonas

   On Aug 5, 12:08 pm, Jonas Peterssonjonas.peters...@xms.se  wrote:
   On 08/05/2010 08:19 AM, Nithin wrote:
  SonyXperia first release don't have google Map API, now they updated
   google Map API in X10

   Could you clarify what you mean? My app Prisjakt uses the map API and
   was demoed by internalSonyEricssonpeople in this demo from Nov 19
   last year:http://www.youtube.com/watch?v=e9l7eXhcnvM

   This was long before the release of X10 which was their first Android
   phone and it certainly worked already then (although the map usage isn't
   shown in this video it certainly was in the application).- Hide quoted 
   text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Activity not showing unless GL onSurfaceCreated() is not completed?

2010-08-10 Thread { Devdroid }
Hi,

We got an app which utilises OpenGL to do some drawings and due to
noticeable setup time needed to set GL up we rearranged app startup
logic. Currently we set all up in main activity onCreate(), including
creating new GLRenderer object. Main activity now shows splash screen
and waits for GLRenderer to finish, which is signalled by posting
Runnable to the Handler which unleash main app action and controls.
This scenario works fine in simulator, and according to logs once
onCreate() is finished GL task is created and onSurfaceCreated() is
correctly called. But on real device (i.e. Milestone) it does work a
bit differently and it seems that main activity is delayed unless GL
is ready. Anyone spotted such behaviour and got ideas how to work it
around?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Cursor Finalize

2010-08-10 Thread charles berman
i am extending  a CursorAdaptor  and the first time that newview is called,
i constantly come up with a cursor finalize error that i am having a
difficult time tracking down.


Ill supply all of the info that i can, but i dont know where to start other
than


@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {


 final View view = mInflater.inflate(R.layout.entry_row, parent,
false);

  return view;

}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Looper doubt

2010-08-10 Thread Sohan badaya
Hi All,

I have a doubt in Looper. I want to know when we should use Looper.
If any good link for more clarification, it  would be great.

Thanks,
Sohan Badaya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Opening a context menu in the onCreate of an activity

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 8:32 AM, Chris Stewart cstewart...@gmail.comwrote:

 I don't think a dialog would work in this case just because I need to
 display a list of items for the user to select from, unless the dialog can
 be extended to do that.


Yes it will and actually I'd recommend that. You can set up an AlertDialog
to do this, no extensions necessary. Read the user guide section on dialogs.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Profiler tool for Android device

2010-08-10 Thread maha rm
Hi,

  We are developing third-party browser plugin. We are testing it on the
Android Froyo device. We want to use profiler tools for optimization of C++
code.

  Can anybody tell profiler tools for Android Froyo. Traceview is not
listing C++ functions.

Thanks,
Maha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Documentation on Rendered scripts used in Live wallpapers

2010-08-10 Thread rahul
 There is an example called Film which uses the renderscript. I was
able to execute and create an apk for it but when i am launching the
apk i cannot see the images coming on the screen. Though i could see
that its responding to the touch events. Does someone know what needs
to be done to get the images?

Regards,
Rahul

On Aug 6, 5:27 am, Romain Guy romain...@android.com wrote:
 This is not a public API.





 On Thu, Aug 5, 2010 at 4:40 PM, rahul rahulii...@gmail.com wrote:
  Hi,

  I have just started working on the live wallpapers and have gone
  through some examples (Fountain). Examples are using rendered scripts
  which are placed in raw folder. I am new to the scripts and looking
  for a documentation which can help me to start understanding it. Can
  please someone let me know where to start from ?

  Thanks in advance.
  Rahul

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Cursor Finalize

2010-08-10 Thread Kostya Vasilyev
The place to start is logcat output, up to and including Caused by 
line and its output.


Is mInflater initialized ?

-- Kostya

10.08.2010 18:20, charles berman пишет:
i am extending a CursorAdaptor and the first time that newview is 
called, i constantly come up with a cursor finalize error that i am 
having a difficult time tracking down.



Ill supply all of the info that i can, but i dont know where to start 
other than



@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {


final View view = mInflater.inflate(R.layout.entry_row, parent, false);

return view;

}
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Cursor Finalize

2010-08-10 Thread charles berman
yes it is. It only faults out the first time that this is called as well


On Tue, Aug 10, 2010 at 10:42 AM, Kostya Vasilyev kmans...@gmail.comwrote:

 The place to start is logcat output, up to and including Caused by line
 and its output.

 Is mInflater initialized ?

 -- Kostya

 10.08.2010 18:20, charles berman пишет:

 i am extending a CursorAdaptor and the first time that newview is called,
 i constantly come up with a cursor finalize error that i am having a
 difficult time tracking down.


 Ill supply all of the info that i can, but i dont know where to start
 other than


 @Override
 public View newView(Context context, Cursor cursor, ViewGroup parent) {


 final View view = mInflater.inflate(R.layout.entry_row, parent, false);

 return view;

 }
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Kostya Vasilev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Can I freely use the Android source?

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 12:58 AM, kevin0228ca kevin022...@gmail.com wrote:

 Can I freely use the Android source?


http://tinyurl.com/2w8ddly

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Organizing the res/drawable folder

2010-08-10 Thread { Devdroid }
On 10 August 2010 13:55, String sterling.ud...@googlemail.com wrote:
 I've been using libraries since shortly after their release at IO10,
 and haven't had significant trouble with them. Occasionally I need to
 do a Project  Clean in Eclipse to bring everything up to date, but
 that's not exactly hard.

I stuck trying to build simple library test, that's why I am so sceptical at the
moment. But if you use it for a while then maybe it's just me - if you could
by any chance try to build my test case (Sources attached - 8KB total)
Library builds fine here, Test App doesn't complaining on unknown
Activit class Manifest (it's
from library). If your (or anyone) can tell what's wrong with it then
I'd be more than grateful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

LibraryTestApp.rar
Description: Binary data


LibraryTestLibrary.rar
Description: Binary data


[android-developers] Re: Apps can't find in all deivce's market

2010-08-10 Thread Johan Abramsson
Hi,
This is problem can happen due to a couple of reasons. The one I know
of is that the phone type must be on the so called white list that
google maintains. The phone in question must be have a phone software
version mentioned on the white list. (Or really its fingerprint)
So that part is up to the phone manufactorer do.
My main interest  is to make sure that we have done that on your Sony
Ericsson X10 mini pro.

So I'd really appriciate if you could start the service menu and send
back the Phone software information, customisation version, File
system version and S1 Boot version.
How do you the access the service menu of an X10 mini - pro?
You have the phone locked, but the screen must be enlighted.
Hit following keys: Home-Back-Back-Home-Back-Home-Home-Back

(You can also start it from ADB using: adb shell am start –a
com.sonyericsson.android.servicemenu.action.START_SERVICE_MENU )

Then we have previously seen android market having some hickups once
and a while - but that is another story.

Good luck
  /Johan
Sony Ericsson Developer Support #SEDW

On Aug 6, 4:30 am, Jammy mistapos...@gmail.com wrote:
 I have publish a app with this AndroidManifest.xml:

 supports-screens
 android:smallScreens=true
 android:normalScreens=true
 android:largeScreens=true
 android:anyDensity=false
 /
 uses-sdk android:minSdkVersion=3 /

 and with publish option Copy Protection = ON(Helps prevent copying of
 this application from the device. Increases the amount of memory on
 the phone required to install the application.), Locations = all
 Locations
 but i found that some device can't find it in market , it including
 Acer liquid,sonyericssonx10 mini pro, and even a Sansung Galaxy S
 Any suggestion?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] active notifications

2010-08-10 Thread Engin Arslan
hi,

I am currently working on project in which users downloads sth and
program shows download progress as notification.
I am trying not to download file that is already downloading. Download
operatİons are operated  by threads so controllİng and checkİng actİve
threads seems harder: ınstead, checking ONGOING notifications seem
easy way. ıs there any possiblity of gettting all ongoing
notifications?

ı could not see any method related to notification manager

thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] active notifications

2010-08-10 Thread { Devdroid }
On 10 August 2010 16:50, Engin Arslan enginarsla...@gmail.com wrote:
 hi,

 I am currently working on project in which users downloads sth and
 program shows download progress as notification.
 I am trying not to download file that is already downloading. Download
 operatİons are operated  by threads so controllİng and checkİng actİve
 threads seems harder: ınstead, checking ONGOING notifications seem
 easy way. ıs there any possiblity of gettting all ongoing
 notifications?

This is wrong approach. You shall add necessary logic to your code,
not rely on notification, screen color or anything like that. I do not know
your internals but maybe instead of firing sepaeate thread for each download
you shall add extra layer i.e. service, that would maintain these threads
and download queue

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Patching

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 2:23 AM, perumal316 perumal...@gmail.com wrote:

 Or it is only system upgrade. Like from 2.1 to 2.1 update 1 to 2.2.


Pretty much, AFAIK. 2.1 update 1 could easily be considered a patch.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to set data in google maps and further access that data

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 3:06 AM, Anthony anthonbo...@gmail.com wrote:

 Do I have to add the itemizedoverlay class to the manifest under
 activities?


No, the manifest is for declaring Android-specific classes (Activity,
Service, etc.)

No offense, but you seem to be stuck on some very basic stuff. I highly
recommend you take a step back away from Android and learn Java by itself.
You also seem to need some lessons on using the IDE (an underline, for
example, means you have an error which shows up in the Problems tab).

Learning Android is not that tough, but trying to do so when you have little
to no experience with Java or the primary IDE is going to be an exercise in
frustration for you.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers]

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 7:57 AM, vineeshkc kcvine...@gmail.com wrote:

 pls help me


Pls read a book on Java.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Microsphone cannot be recorded on android emulator

2010-08-10 Thread niko20
Hi,

The emulator only support 8Khz 16bit.

-niko

On Aug 9, 11:39 pm, aftershock ante...@gmail.com wrote:
 Hi,

 A small program that I wrote cannot record the microphone. One api
 call, getminbuffersize keeps returning -2 which is not correct. The
 program works on a real android one.

 I use 11025Hz, 16bit pcm,mono recording..
 Can you give me a suggestion what can be wrong?

 Thank you.

 aftershock

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Launching barcode reading from browser

2010-08-10 Thread m
Appreciate the snarkiness but that's not even what I'm asking about!
Nice try though.

On Aug 10, 8:46 am, Kostya Vasilyev kmans...@gmail.com wrote:
 http://tinyurl.com/35o2ell

 10.08.2010 16:40, m пишет:

  Surely someone must know...?

  On Aug 9, 5:22 pm, mphillip...@gmail.com  wrote:

  On the Google Products page, from an Android device, there is a scan
  barcode button that launches a 3rd party barcode scanning app, which
  returns results back to the browser.

  1)  How did they do this?
  2)  Is this available for any web developer to do, or a Google -
  Google api only?

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to set data in google maps and further access that data

2010-08-10 Thread Anthony
Thanks for your reply. Yeah, you are right. I am not grasping the basics and I 
don't know why. Would it take long to go learn a little java before going back 
to android? What are some good books for beginners? Thanks.

On Aug 10, 2010, at 10:50 AM, TreKing treking...@gmail.com wrote:

 On Tue, Aug 10, 2010 at 3:06 AM, Anthony anthonbo...@gmail.com wrote:
 Do I have to add the itemizedoverlay class to the manifest under activities?
 
 No, the manifest is for declaring Android-specific classes (Activity, 
 Service, etc.)
 
 No offense, but you seem to be stuck on some very basic stuff. I highly 
 recommend you take a step back away from Android and learn Java by itself. 
 You also seem to need some lessons on using the IDE (an underline, for 
 example, means you have an error which shows up in the Problems tab).
 
 Learning Android is not that tough, but trying to do so when you have little 
 to no experience with Java or the primary IDE is going to be an exercise in 
 frustration for you.
 
 -
 TreKing - Chicago transit tracking app for Android-powered devices
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: A simple question - I hope

2010-08-10 Thread niko20
Hi,

No, you should be able to access /proc/meminfo even from userland just
fine. It would be the best way to do it. Yesterday I was browsing the
source for Android's Running Services app and this is what it does
(gets meminfo and adds free + cached together to get free mem,
total mem it does something else, but total is in meminfo though)

-niko

On Aug 7, 12:37 am, Jonathan j.trachtenb...@gmail.com wrote:
 Hi - I am simply looking for a way to get the total Ram available to
 the device.  I have been able to get available Ram from a MemoryInfo
 object with no problems, but what I really want to know is what
 percentage is available - and so need the total.  The Runtime methods
 give absurdly low values.  Is there a simple way to do this?  Do I
 have to go into the ndk to get at /proc/meminfo?

 Thank you,

 Jonathan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to get the screen size in inches...

2010-08-10 Thread DanH
If it's important to know the screen size fairly accurately, it might
be wise to have a calibrate screen size setup option in your app --
display a ruler on the screen and let the user do up/down buttons
until it matches a physical ruler, eg.  Otherwise you're always going
to be at the mercy of the manufacturer who may use the same code on
two different models with different screen sizes.

On Aug 4, 4:12 pm, sdphil phil.pellouch...@gmail.com wrote:
 I am trying to determine the physical size of a screen in inches.

 Normally, I could do something like this:

     DisplayMetrics metrics = new DisplayMetrics();
     getWindowManager().getDefaultDisplay().getMetrics( metrics );

 Then use metrics.widthPixels and metrics.heightPixels.  Now that I
 know the width and height in pixels, I should be able to calculate
 size in inches if I know the density.  Easy enough, metrics.xdpi and
 metrics.ydpi.

 Then screen dimension in inches should be:

     widthInInches = metrics.widthPixels / metrics.xdpi;
     heightInInches = metrics.heightPixels / metrics.ydpi;

 Seems simple enough except that it doesn't work.

 On a Motorola Droid, the system reports back: xdpi and ydpi as 96
 (which cannot be true).

 And the screen resolution as: 480 x 854.  Which results in a width of
 5 x 8.9 -- which as I'm holding this in my hand right now, I must
 say - cannot be correct.

 Any ideas on how to accurately calculate this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Yet another Droid OpenGL texture problem

2010-08-10 Thread Robert Green
Yes, that's what I'm saying is your issue.  From your code sample I
see that you never held on to the actual texture ID from tmp_tex[] or
textures[], so you could have never recalled it correctly to bind to
it later for drawing.

On Aug 10, 1:52 am, Mike mcmulle...@gmail.com wrote:
 Well that wasn't it but you were on the right path. It is something to
 do with my texture selection. I took a break down at the local pub and
 after a few beers I saw much clearer. :)

 I'll post an update sometime tomorrow after I get everything nailed
 down completely. Thanks everyone for the help.

 On Aug 9, 11:47 pm, Robert Green rbgrn@gmail.com wrote:



  Heh, I think I see your problem.

  Replace  this.textureMap.put(new Integer(textureFiles[i]), new
  Integer(i));
  With  this.textureMap.put(new Integer(textureFiles[i]), new
  Integer(tmp_tex[i]));

  Droids don't number textures incrementally like qualcomms do.  It was
  working because your texture ids happened to align with i.

  On Aug 9, 11:35 pm, Nightwolf mikh...@gmail.com wrote:

   Why do you set GL_TEXTURE_MIN_FILTER twice? Replace one of the calls
   with GL_TEXTURE_MAG_FILTER.

   On Aug 10, 5:22 am, Mike mcmulle...@gmail.com wrote:

Welp, I did even better. I went out and bought a Droid from
Craigslist.

I logged the height and width of the bitmaps at each of the mipmap
levels and here's the output:

DEBUG/Texture(1558): Texture image loaded at 256 x 256
DEBUG/MMTexture(1558): Texture image loaded at 128 x 128
DEBUG/MMTexture(1558): Texture image loaded at 64 x 64
DEBUG/MMTexture(1558): Texture image loaded at 32 x 32
DEBUG/MMTexture(1558): Texture image loaded at 16 x 16
DEBUG/MMTexture(1558): Texture image loaded at 8 x 8
DEBUG/MMTexture(1558): Texture image loaded at 4 x 4
DEBUG/MMTexture(1558): Texture image loaded at 2 x 2
DEBUG/MMTexture(1558): Texture image loaded at 1 x 1

So, if it's not the size that's the problem, something with the format
of the bitmaps themselves? Well at least now I have a phone to test
on.

On Aug 9, 7:35 pm, String sterling.ud...@googlemail.com wrote:

 Can I suggest you stick a Log call in with your actual loaded texture
 sizes? Something like the following:

     Log.i(TAG, Texture image loaded at  + mapImage.getWidth() +  x
  + mapImage.getHeight());

 Then get one of the Droid/Milestone users to shoot you a logcat
 output... xda-devs folks ought to be able to handle that. That'll at
 least tell you if the images are loading at the size you expect, or if
 it's a different problem.

 String

 On Aug 9, 10:11 pm, Mike mcmulle...@gmail.com wrote:

  I am. That's what's so perplexing.

  On Aug 9, 3:56 pm, Tom orei...@mbari.org wrote:

   Make sure that you are loading your textures from the 
   drawable-nodpi
   resource 
   directory:http://www.anddev.org/opengl_textures_-_motorola_droid-t10930.html

   On Aug 9, 1:07 pm, Mike mcmulle...@gmail.com wrote:

I'm getting white (blank) textures on everything when running 
on the
Droid and Galaxy S devices.
My textures are all power-of-two PNGs and they're in the 
/res/drawable-
nodpi folder.

Here's my code:

public GLTextures(GL10 gl, Context context) {
                if(gl==null)return;
                this.gl = gl;
                this.context = context;
                this.textureMap = new 
java.util.HashMapInteger, Integer();
                sBitmapOptions.inPreferredConfig = 
Bitmap.Config.RGB_565;

        }

        public void freeTexs(){
                gl.glDeleteTextures(textures.length, 
textures,0);
                textureFiles = null;
        }

        public void loadTextures() {
                if(gl==null)return;
                int[] tmp_tex = new int[textureFiles.length];
                gl.glGenTextures(textureFiles.length, tmp_tex, 
0);
                textures = tmp_tex;
                for (int i = 0; i  textureFiles.length; i++) {

                        this.textureMap.put(new 
Integer(textureFiles[i]), new Integer(i));
                        int tex = tmp_tex[i];

            gl.glBindTexture(GL10.GL_TEXTURE_2D, tex);
            gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);
            gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR_MIPMAP_NEAREST);

            gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);
            gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);
            gl.glTexEnvf(GL10.GL_TEXTURE_ENV,
GL10.GL_TEXTURE_ENV_MODE, 

  1   2   3   >