[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-14 Thread gosh


I think Java has really become 'the new Cobol' this side of 2020 -
helped along significantly by both Oracle's purchase of Sun, and by
Google making it a mainstream/relevant UI language (at last!) via
Android - i.e. its now past its innovation stage, and has become
heavily mainstream and stable (in terms of language features) - hence
Gosling jumping ship.

Whatever you think of Java it is currently the No.1 computer language
worldwide. See the TIOBE Programming Community Index for August 2010
here:

www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Note that C and C++ are still 2nd and 3rd on that index.
(Also note the very sharp rise of both Objective C and Google's own GO
language).

I think Java, C and C++ are going to stay on the podium for a good
many years yet.
(I recently got back into C++ after 10 years away from it, and was
very pleasantly surprised on how useful and modern C++ has been made -
on the Bada platform for example. Apparently Samsung spent $100M on
Bada, before they made the first WAVE phones, and it certainly shows
in their IDE/framework).

I think this Oracle legal move spells the end of them doing anything
serious with the Java App Store (and the like) - i.e. it looks like
they tried to sit on their backsides Java UI-wise and simply muscle a
slice of Google's profit stream, but when that hustle didn't work it
got handed to the Legal Dept.

Steve

-- 
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: Removing unncessary permissions

2010-08-14 Thread William Ferguson
Oh OK. I was just copying it to the SD card on the phone and
installing from there.
So yes, a non-market source.

Is there anyway to tell what permissions the Market will think my app
needs without uploading it to Market and then attempting to install
from there?

On Aug 14, 3:56 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 Where are you installing the app from? I'm guessing a non-market
 source.

 If you install if from a non-market source, the permissions are always
 pretty much the worst case scenario. I guess this is due to the
 installer not knowing what the permissions really are. Once you upload
 the app to the market, the permissions should read what they really
 are.

 -John Coryat

-- 
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: Javadoc for ContactContract.RawContacts

2010-08-14 Thread RichardC
Turn on filer by API level (top right on docs) and have a look.

On Aug 14, 2:24 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Can someone tell me what for version of Android the online Javadoc has
 been generated?

 http://developer.android.com/reference/android/provider/ContactsContr...

 contains references to several constants such as DISPLAY_NAME_PRIMARY
 that don't exist in the compiled class for 2.1 or 2.2 and don't exist
 in the current trunk of the source. And since
 ContactsContract.RawContacts didn't exist in 1.6 I am struggling to
 see where the online Javadoc comes from.

 Can anyone point out its origins?
 Or enlighten me as to what version of the Android API is actually
 presented as the online Javadoc?

 As an awside it would be really useful if there was Javadoc for each
 version.

-- 
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: Removing unncessary permissions

2010-08-14 Thread Maps.Huge.Info (Maps API Guru)
The permissions will show correctly when loading it from the market.

You can see exactly what will be shown by uploading your app to the
developer's console in the market web site. There's a section below
the upload button that displays the permissions. You don't have to
publish it at that point.

-John Coryat

-- 
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: My app is not visible for some (potential) users

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 03:29 , String wrote:
 It's the difference between target and min sdk in your manifest.
 As long as you have min set to 3, it'll deploy fine to 1.5 devices;
 the unknown xml elements and attributes will just be ignored.

 String

 On Aug 13, 5:38 pm, Fabrizio Giudici
 fabrizio.giud...@tidalwave.it wrote: On 8/13/10 18:00 , Lance
 Nanek wrote:

 You can have a build target higher than Android 1.5, but
 still specify Android 1.5 support in the
 android:minSdkVersion attribute of the uses- sdk element.

 It's the thing described in Supporting legacy... in Android
 docs, right? I hoped to avoid that, but I don't see other
 solutions.

Many thanks to Lance and Sterling. It's clear and I'm working on it.

- -- 
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/

iEYEARECAAYFAkxmTzYACgkQeDweFqgUGxc62wCgqP9zQRLdv0pzSZAX4n/a0CIQ
jz0An3ny0LzY0r0Bwam1f/a55LkImtAS
=9hEo
-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: Bind the pushpin on image

2010-08-14 Thread Beena
Here is the code:
==

ScrollView sv = new ScrollView(this);
sv.setBackgroundColor(Color.WHITE);

AbsoluteLayout abl = new AbsoluteLayout(this);

HorizontalScrollView layout = new 
HorizontalScrollView(this);
LinearLayout.LayoutParams layoutParams = new
LinearLayout.LayoutParams(
   LinearLayout.LayoutParams.FILL_PARENT,
   LinearLayout.LayoutParams.FILL_PARENT);



String url =Url of Main Image;// Take any big image
Bitmap bm = getImage(url);

ImageView iv = new ImageView(this);
iv.setImageBitmap(bm);
layout.addView(iv);

abl.addView(layout);

Bitmap bmp = 
BitmapFactory.decodeResource(getResources(),
R.drawable.pushpin); // Take any small image
final int bitmapWidth = bmp.getWidth();
final int bitmapHeight = bmp.getHeight();

for(int i=0;ihashtable.size();i++){

Information information =  (Information) 
hashtable.get(i+);

ImageView iv1 = new ImageView(this);
iv1.setAdjustViewBounds(true);
iv1.setImageBitmap(bmp);

AbsoluteLayout.LayoutParams alp = new
AbsoluteLayout.LayoutParams(20,20,x,y);
abl.addView(iv1,alp);
}

sv.addView(abl);

setContentView(sv);

Thanks,
Beena

On Aug 14, 9:26 am, Frank Weiss fewe...@gmail.com wrote:
 Perhaps you can give a sample of the code used to draw the image and
 the pushpins?

-- 
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] App download too less

2010-08-14 Thread HIRAK
Hi,
I am a newcomer to android development.
I created a image puzzle app named Sexy Image Puzzle
It is a simple jigsaw puzzle.
As I have just started developing for android, I didn't buy the dev
phone yet. I tested the application in Emulator.

I was planning to create similar puzzles for Cars too. But the app has
too less downloads so far.

Could anyone use this app and let me know, what is going wrong?
It is a free application, so there is no payment involved. I just want
to know some feedbacks, what is going wrong.

This is a small help, I need from you guys, till the time I buy my dev
phone (probably starting september)

-- 
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: Failed binder transaction when passing byte[] (from camera) between intents

2010-08-14 Thread Jobs He
hello,can you tell me how you do it .I meet the problem too . Thanks !

2010/2/18 Bart bvandep...@gmail.com

 Thanks, that seems to work :)

 On Feb 17, 4:24 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
  In onPictureTaken, save the camera to a file and insert into the media
  content provider.
  Then, when the image has been inserted, instead of sending the raw
  binary data of the bitmap, send back the content-Uri of the image you
  took.
 
  On Feb 17, 3:07 am, Bart bvandep...@gmail.com wrote:
 
   So I can never make camera images that are higher resolution then
   277x184? :S
   If I stuff all the camera code into my main activity, then it should
   work. But that's a little messy. Are you sure there isn't another way
   to pass the camera images?
 
   Thanks
 
   On Feb 16, 10:05 pm, Streets Of Boston flyingdutc...@gmail.com
   wrote:
 
Binary data works upto about 100KByte. Anything larger, you very
likely get that error.
 
For images in RGB_565, this is about 277 x 184 pixels max (277 x 184
 *
2 = 101936)
 
On Feb 16, 4:17 am, Bart bvandep...@gmail.com wrote:
 
 Hi, I have a problem with an app that lets the user take a picture.
 I've posted it on some forums already, but nobody seems to
 recognize
 the problem. Hopefully someone here knows a solution :)
 
 I've put the code of taking a picture in a seperate activity. Then
 I
 call the camera intent from my main activity using
 activityForResult.
 In the camera intent, I use putExtra to return the camera image (as
 a
 byte[] without doing anything to it). But when the program
 transitions
 back from the camera intent to the parent intent that called it I
 get
 aFailedBinderTransaction error in the logcat because the byte[] is
 too big. But I don't understand this, because the image is not even
 taken using the maximum resolution :S
 
 The code of my camera intent is:
 
 package example.imaging.ape;
 
 import java.io.IOException;
 import java.util.Iterator;
 import java.util.Set;
 
 import android.app.Activity;
 import android.content.Intent;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
 import android.graphics.PixelFormat;
 import android.hardware.Camera;
 import android.hardware.Camera.AutoFocusCallback;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.MotionEvent;
 import android.view.SurfaceHolder;
 import android.view.SurfaceView;
 import android.view.View;
 import android.view.Window;
 import android.view.WindowManager;
 import android.view.View.OnTouchListener;
 
 public class TakePicture extends Activity implements
 SurfaceHolder.Callback{
  Camera mCamera;
  Boolean mPreviewRunning = false;
  int imageLayoutHeight;
  int imageLayoutWidth;
 
  @Override
  public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
 
   //setup camera surface
   getWindow().setFormat(PixelFormat.TRANSLUCENT);
   requestWindowFeature(Window.FEATURE_NO_TITLE);
 
 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
 WindowManager.LayoutParams.FLAG_FULLSCREEN);
   setContentView(R.layout.cameralayout);
 
   SurfaceView mSurfaceView = (SurfaceView)
 findViewById(R.id.hist_surface_camera);
   SurfaceHolder mSurfaceHolder = mSurfaceView.getHolder();
   mSurfaceHolder.addCallback(this);
 
 mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
   Bundle extras = getIntent().getExtras();
   imageLayoutHeight = extras.getInt(layoutHeight);
   imageLayoutWidth = extras.getInt(layoutWidth);
 
   OnTouchListener touchListener = new
 View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent e) {
 
 System.out.println(MAKING PICTURE);
 mCamera.autoFocus(cb);
 return false;
}
   };
 
   //setup touch listener
   mSurfaceView.setOnTouchListener(touchListener);
 
  }
 
  AutoFocusCallback cb = new AutoFocusCallback() {
   public void onAutoFocus(boolean success, Camera c) {
c.takePicture(null, null, mPictureCallback);
   }
  };
 
  Camera.PictureCallback mPictureCallback = new
 Camera.PictureCallback() {
   public void onPictureTaken(byte[] imageData, Camera c) {
System.out.println(Picture taken, now
 returning);
Intent resultIntent = new Intent();
resultIntent.putExtra(cameraImage, imageData);
System.out.println(put Extra);
setResult(Activity.RESULT_OK, 

Re: [android-developers] Drawing an EditText on top of an image

2010-08-14 Thread { Devdroid }
On 14 August 2010 06:26, Abhi abishe...@gmail.com wrote:
 Hi,
   I am creating a custom view which has an image. The image can be of
 any type. What i want to achieve is that i want to draw an EditText
 control on top of the image so that the user can add some values to
 it. I am not sure how to achieve this. The onDraw control will not
 allow me to draw any view right? I am new to android so any help would
 be appreaciated.

Put them both in relative or absolute layout and make edit text object
overlap your image object and that's it. note layout order matters,
so text edit have to be second in layout order as  otherwise image view
will be drawn over it

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread netlander
There's far too much written on Java vs whatever other language people
think is better. The bottom line is java has hit the right balance
between performance/ease of coding/maintenance/scalability and what
not, and that's why there's overwhelming adoption for it out there.
This also allowed for a huge number of opensource initiatives to
flourish.

These facts combined make it the best overall choice for the vast
majority of projects, corporate or otherwise, and I congratulate
Google for choosing java as the primary language for app development,
which in turn is allowing our ecosystem to grow at an unprecedented
pace (while keeping the competition at bay).

Now! can anyone (Google guys?) enlighten us on what's the lawsuit
about?

Thanks

Llies Meridja
Founder/Lead architect
@errayaneLabs


-- 
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] Android 1.5 device behaves differently than the emulator

2010-08-14 Thread { Devdroid }
We had different problem on 1.5 where app worked fine on emulator but crashed
on device. In our case it was string formatting difference where some
call returned
coma separated output on device while on emulator it was dot separated (thus
come conversion calls crashed later 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


Re: [android-developers] Android Market cropping uploaded screenshots

2010-08-14 Thread { Devdroid }
On 13 August 2010 17:33, OldSkoolMark m...@sublimeslime.com wrote:
 Thought I'd inquire here where perhaps some other dev is having
 similar problems currently.  I've done this before (months ago), and
 as far as I can tell, I'm doing it the same way. My 480x854 24-bit PNG
 screenshots are being scaled/cropped by Market. Same with 480x854
 jpgs. It looks like they're being cropped to 480x800 but of course,
 Market won't let me upload an image with those dimensions. Windows
 explorer confirms that my PNG file is of the proscribed size and bit
 depth.

Market shows 320x480 so I assume they just scale down or crop/scale
down. To avoid such issue prescale your screenshots in GIMP or PS to
match 320x480 and then upload. Still you can't do much about the
compression as what Market serves is always JPEG with too low
quality (so if you got i.e. gradients your pic may not look too nice)

-- 
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: Leaving an app by pressing 'Home' and going back to it but a new one is started

2010-08-14 Thread Paul Turchenko
Make it single instance

On Aug 14, 8:03 am, Greg Siano gregmsi...@gmail.com wrote:
 I've recently been getting user complaints that when they leave my app
 by pressing the 'Home' key, my app continues to play sounds like it is
 supposed to, but when they go back to the app, a new one opens, but
 the old one is still running in the background.  I have noticed this
 sometimes myself too, but only recently (my app has been on the market
 for a while now).  I've done some testing myself and noticed that when
 a new instance of the app is opened after pressing 'Home' then
 starting the app again, pressing the 'back' key will go back to the
 original instance of the app that was opened. This means that the
 original instance of the app was not killed, but a new one was just
 opened over it.  Has anyone else experience something like this? or
 know what could be going on? 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: #setChecked in CheckedTextView in ListView not working

2010-08-14 Thread Paul Turchenko
I believe the issue is that you're getting rowId from
rawContactsCursor (bindView method) which stays on the same record.
IMO you should get row id from cursor coming to you in bindView. This
way you'll get rowId for the record you are currently binding.
To be simple, you are binding to the wrong record.

On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com
wrote:
 I have a ListView that just contains a CheckedTextView.
 I have a very simple CursorAdapter that populates CheckedTextViews.
 When I click on an item, I can see that I am responding to the correct
 row, store the value in my model and the CheckedText gets checked.

 However, when I scroll down and then back up again, while I see that
 the model contains the correct value (in #bindView), calling
 #setChecked on the CheckedTextView has no effect. Ie All items are
 unchecked.

 Its gotta be something simple, but I can't see it. Any ideas?

 public final class SimpleAdapter extends CursorAdapter {

     private static final String TAG = SimpleAdapter;

     private final LayoutInflater inflater;
     private final RowModel rowModel = new RowModel();

     public SimpleAdapter(Activity context, MyCursor cursor) {
         super(context, cursor, true);
         inflater = (LayoutInflater)
 context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
     }

     @Override
     public View newView(Context context, Cursor cursor, ViewGroup
 parent) {
         final CheckedTextView checkedText = (CheckedTextView)
 inflater.inflate(android.R.layout.simple_list_item_multiple_choice,
 parent, false);

         final MyCursor myCursor = (MyCursor) cursor;
         checkedText.setText(myCursor.getDescription());

         final Long rowId = rawContactsCursor.getRowId();
         checkedText.setChecked(rowModel.isSelected(rowId));
         Log.v(TAG, rowId= + rowId +  settingChecked= +
 rowModel.isSelected(rowId));

         checkedText.setTag(rowId);

         checkedText.setOnClickListener(new View.OnClickListener() {
             public void onClick(View view) { // Toggle whether the Row
 is selected or not.
                 final Long id = (Long) view.getTag();
                 Log.v(TAG, toggling rowId= + rowId);
                 final boolean checked = rowModel.toggleSelected(id);
                 final CheckedTextView checkedTextView =
 (CheckedTextView) view;
                 checkedTextView.setChecked(checked);
             }
         });

         return checkedText;
     }

     @Override
     public void bindView(View view, Context context, Cursor cursor) {
         final CheckedTextView checkedText = (CheckedTextView) view;

         final MyCursor myCursor = (MyCursor) cursor;
         checkedText.setText(myCursor.getDescription());

         final Long rowId = rawContactsCursor.getRowId();
         checkedText.setChecked(rowModel.isSelected(rowId));
         Log.v(TAG, rowId= + rowId +  settingChecked= +
 rowModel.isSelected(rowId));

         checkedText.setTag(rowId);
     }

 }

-- 
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: Onscreen keyboard too big. Any way to detect its presence?

2010-08-14 Thread Paul Turchenko
1. Consider playing with android:windowSoftInputMode attribute of your
activity (in the AndroidManifest.xml)
2. Override onCreateInputConnection - that's when soft keyboard pops
out

On Aug 14, 7:43 am, shawn sh...@spcware.com wrote:
 In one of my custom views, I have an EditText.  When the onscreen
 keyboard appears, it takes up too much space for my custom view.  I
 would like to turn off visibility of a few of my components whenever
 the onscreen keyboard is present.  Then turn them back on when it goes
 away.  Anyway I can add a listener of some kind to detect the opening/
 closing of the onscreen keyboard?

-- 
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] Android 1.5 device behaves differently than the emulator

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 12:28 , { Devdroid } wrote:
 We had different problem on 1.5 where app worked fine on emulator
 but crashed on device. In our case it was string formatting
 difference where some call returned coma separated output on device
 while on emulator it was dot separated (thus come conversion calls
 crashed later on).

I've experienced differences too. I was doing the wrong thing with the
drawable resource directories - my fault, but the 1.5 emulator worked
fine while the real device crashed.

- -- 
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/

iEYEARECAAYFAkxmqIgACgkQeDweFqgUGxfYvACcCwcqzbCV4Jm1VtoX1ztQLMHc
R2sAoI+BW0L7UniAJjx9hlmcc0K0VmdS
=YmBM
-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


Re: [android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 12:27 , netlander wrote:

 Now! can anyone (Google guys?) enlighten us on what's the lawsuit
 about?

You can bet that none of Google will talk about this in the mailing
lists :-) I suppose only lawyers, spokesmen and some executives will
be allowed to talk in the next weeks.

My point is that we developers should not be much worried about that.
I don't think that Oracle has any real intention to shut down Android,
since it's a pot of money. You usually want to have a part of it, or
be part of the game, not to destroy it. My principal concerns about
Android are the same as one week ago, that is to make my app work at best.

- -- 
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/

iEYEARECAAYFAkxmqYYACgkQeDweFqgUGxeQQQCgssZ5EBXd5lQQqfC0ZuLNVGZO
L6QAoIEWRNQgxbg8mErHgb9Ed23d9ux8
=XOxW
-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


Re: [android-developers] OpenGL ES 2.0 available on the updated HTC Hero? (Android 2.1)

2010-08-14 Thread Johan Gardell
Hi! Thanks for the tip, however, there's a comment on the app website
stating that it only supports OpenGL ES 1.x, which unfortunately seems
true, because i tried the app on an HTC Desire which reports OpenGL ES
1.1..

Could anyone please tell if there's any consumer phones out there
supporting OpenGL ES 2.0?

Thanks in regards
Johan Gardell

2010/8/13 { Devdroid } webnet.andr...@gmail.com:
 On 12 August 2010 21:52, Johan Gardell gar...@gmail.com wrote:

 I'm trying to run some of the hello-gl2 code on my HTC Hero updated to
 Android 2.1 but i keep getting the error
 java.lang.IllegalArgumentException: No configs match configSpec,
 which is in GL2JNIView.java on line 168.

 get glInfo app from Market and launch on your device - it will list all
 GL related information, incl. version and available extensions

 --
 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] OpenGL ES 2.0 available on the updated HTC Hero? (Android 2.1)

2010-08-14 Thread Naseer Ahmed
The Desire supports Open GL 2.0

On Aug 14, 2010 8:14 PM, Johan Gardell gar...@gmail.com wrote:
 Hi! Thanks for the tip, however, there's a comment on the app website
 stating that it only supports OpenGL ES 1.x, which unfortunately seems
 true, because i tried the app on an HTC Desire which reports OpenGL ES
 1.1..

 Could anyone please tell if there's any consumer phones out there
 supporting OpenGL ES 2.0?

 Thanks in regards
 Johan Gardell

 2010/8/13 { Devdroid } webnet.andr...@gmail.com:
 On 12 August 2010 21:52, Johan Gardell gar...@gmail.com wrote:

 I'm trying to run some of the hello-gl2 code on my HTC Hero updated to
 Android 2.1 but i keep getting the error
 java.lang.IllegalArgumentException: No configs match configSpec,
 which is in GL2JNIView.java on line 168.

 get glInfo app from Market and launch on your device - it will list all
 GL related information, incl. version and available extensions

 --
 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

-- 
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: No underline for texts candidates in html before committing

2010-08-14 Thread James Wang
After digging farther, I found this is a bug of WebTextView which is
used as a specialized version of EditText used by WebView. And it is
transparent and  only redrawing when input is password  according to
WebTextView.setInPassword.

Any google UI SE can shed some light on this problem?

James

-- 
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] Cannot access android.provider.Calendar

2010-08-14 Thread James
Hi,
I am trying to run the Calendar widget on the emulator. I checked out
the Calendar project (Calendar  CalendarProvider) from:
http://android.git.kernel.org/?p=platform/packages/apps/Calendar.git;a=summary

When I try to run  the code I get the infamous the import
android.provider.Calendar cannot be resolved I tried searching online
but the only explanation that I found was Calendar is not part of the
public API What does that mean? There is no way for us to test and
play around Calendar?

Is there a way to get Calendar to work? What if I built the entire
Android platform? If you could clarify (with examples if applicable) I
would really appreciate it.

Thank you.
James

-- 
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 send an specific key event to FG app using adb?

2010-08-14 Thread dan raaka
http://developer.android.com/guide/topics/testing/testing_android.html

With instrumentation, you can set up mock system objects such as Contexts
before the main application starts, control your application at various
points of its lifecycle, send UI events to the application, and examine the
application's state during its execution.

-Dan


On Fri, Aug 13, 2010 at 11:17 AM, tomei.ninge...@gmail.com 
tomei.ninge...@gmail.com wrote:

 Hello,

 I want to keep launching my app and stress test two scenarios:

launch it and press BACK key
launch it and press MENU key

 I can launch from adb using am command. But how can I send a BACK or
 MENU key using adb.

 I want to do thousands of rounds of testing so I don't want to do it
 manually.

 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.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] Re: Chilling news: Oracle sues Google over Android

2010-08-14 Thread niko20
Its not slow. My loop sequencer app does such and can mix 10 tracks of
44khz stereo data no problem. The only problem on android is the
buffer sizes are never small enuogh for real time play. That's the
only real issue, which I doubt will be solved by simply allowing g
native access. Something g deeper has to happen for that fix. Right
now the ndk is more than fast enough to play data

On Aug 13, 11:59 am, Kevin Duffey andjar...@gmail.com wrote:
   To clarify what I meant by C being the choice over Java for Android..
 I simply meant that in order to compete with iPhone on their native
 games and audio applications (BeatMaker, other synth apps, etc), once
 Google provides us with OpenAL (or something similar??) and better 2D/3D
 video access to the underlying hardware via APIs, You'll see a lot more
 C code in games and music apps than Java. I am not saying it will all go
 that way.. you still need the Java to get things rolling. For most apps,
 and even quite a few game varieties, I think Java is the way to go.

 I just wish it was already available. Hopefully 3.0 will usher in the
 native audio/video support that iPhone developers enjoy and we'll
 finally be able to make multi-touch music apps for Android. I know that
 BeatMaker alone was responsible for 1000's of iTouch sales, and the app
 was $20 to boot. There is a lot of potential, especially with the larger
 tablet screens, for really robust music apps, as well as much better
 games, once we have these capabilities. I am sure this will be available
 at some point.. I just wish it was sooner than later. Having to pass
 audio buffers back up through JNI to be played is very slow and
 limiting. I wont exclaim to be an expert tho.. I've not yet had the
 pleasure of working with NDK, but I did buy a book and read some
 articles on it's current limitations.

 Hence, why I said what I said.

 On 8/13/2010 2:35 AM, Ralf Schneider wrote:



  I forget! There is hope: NaCl is doing it right (IMHO)!
  May be Android will one day get fast apps via PNaCl
  (nativeclient.googlecode.com/svn/data/site/pnacl.pdf
  http://nativeclient.googlecode.com/svn/data/site/pnacl.pdf)

  2010/8/13 Ralf Schneider li...@gestaltgeber.com
  mailto:li...@gestaltgeber.com:
   I was just pointing out a logical flaw in another post: The poster was
   defending Java and in the last part he suddenly told: C will rule
   Android development as soon as there is video and audio access via the
   NDK

   Actually I agree. For: implementation, maintenance, and debugging ...
   Java is far better than C or C++.

   But, performance matters, too! Not for most Apps, but for many of the
   interesting ones (Games, AR-Apps, Image recoginition, ...).

   Anyway these kind of discussions most time lead to nowhere. There is
   already too much (programming) religion involved. So it's easier to
   just troll around.

   My personal opinion is this:
   I would prefer a complete and stable C API. = Android should be a set
   of stable C-APIs
   Java/Dalvik/.net/whatever can run on top of them.

   So, everybody can be happy. The Java coders, the Python coders, The
   C-hardcore-coders...

   2010/8/13 Dianne Hackborn hack...@android.com
  mailto:hack...@android.com:
   On Fri, Aug 13, 2010 at 1:34 AM, Ralf Schneider
  li...@gestaltgeber.com mailto:li...@gestaltgeber.com
   wrote:

   If Java is so great, why will the NDK(C/C++) become the language of
   choice - as soon as google provides a useable API?

   The language of choice for what?  Not most app developers.  Except for
   certain apps, Java is going to be a far better choice for ease of
   implementation, maintenance, and debugging.
   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com mailto:hack...@android.com

   Note: please don't send private questions to me, as I don't have
  time to
   provide private support, and so won't reply to such e-mails.  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
  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

  --
  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 

Re: [android-developers] App download too less

2010-08-14 Thread TreKing
On Sat, Aug 14, 2010 at 3:44 AM, HIRAK hirak1...@gmail.com wrote:

 I created a image puzzle app named Sexy Image Puzzle



 But the app has too less downloads so far.

 Could anyone use this app and let me know, what is going wrong?


Creating an app with sexy in the title is probably the first thing putting
people off.

-
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Frank Weiss
I started this thread with some trepidation, especially the chilling
part. But it looks like we got to share our thoughts, if maybe a
little OT at times.

Fabrizio Giudici wote:
 My point is that we developers should not be much worried about that.
 I don't think that Oracle has any real intention to shut down Android,
 since it's a pot of money. You usually want to have a part of it, or
 be part of the game, not to destroy it. My principal concerns about
 Android are the same as one week ago, that is to make my app work at best.


Yeah, I don't think this is going to affect Android. My guess is that
they'll settle before it goes to a jury. I suppose it would be fair
that Oracle monetize the Java IP it got when it bought Sun, but isn't
Oracle rich enough? I think Oracle is going to have to tread lightly
to avoid alienating the open source community. I wonder what deal they
have or would strike with IBM, which has a pretty deep stake in Java?

-- 
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: Silly news: Oracle sues Google over Android

2010-08-14 Thread Maps.Huge.Info (Maps API Guru)
How many lawsuits are filed each year by one company against another?
They're endless. This is just another one. Perhaps there could
eventually be some repercussions but in the end Android will still
exist. This is nothing more than another crass grab for cash, which is
usually what these lawsuits are really about.

-John Coryat

-- 
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: Bind the pushpin on image

2010-08-14 Thread Frank Weiss
I think I see the problem in your code. The view hierarchy is:

sv (abl (layout(iv), iv1))

where sv is a ScrollView and layout is a HorizontalScrollView. Which
one actually does the scrolling? Have you tried this view hierarchy:

sv (abl (layout(iv, iv1)))

-- 
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: Challenges moving to the Android platform ?

2010-08-14 Thread Tim
Dear Michal,

The biggest challenge in moving to Android is the large amount of
diverse and often confusing components you need to download, configue
and learn including Eclipse, the Android SDK, Google's specific
flavour of Java and XML.

However, there is another approach which suits some people.  Have a
look at our MobiForms rapid application development tool.

MobiForms is the world's first rapid application development tool
designed for Google Android smartphones. Additionally MobiForms apps
will run on other platforms such as Windows Mobile without any
changes.

With MobiForms there is no need to download and learn Eclipse, the
Android SDK, Java or XML. MobiForms offers one compact tool for
development and deployment with most programming done with drag and
drop.

MobiForms is ideal for creating database orientated business apps.
Apps that would traditionally take hours or days to write can be
created in minutes with MobiForms.

For more information please have a look at http://www.mobiforms.com

You may also be interested to learn that we have recently added Google
Android support for our MobiForms Sync Server. This enables online
synchronisation and offline database buffering for apps where
connectivity may not be guaranteed such as for Field Service, Surveys
and Risk Assessments.

Kind regards,

Tim @ MobiForms

michal.g...@gmail.com wrote:
 I am interested in understanding what are the biggest challenges for a
 JavaME developer moving to the Android platform ?

 Any insights are appreciated.

 Thanks,
 Michal

-- 
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: Challenges moving to the Android platform ?

2010-08-14 Thread DanH
That's BS.  Configuring an Android environment is a dream compared to,
say, the Symbian/Qt environment with S60, Perl, Carbide, Qt SDK, and
Mobility, with several non-standard tweaks if you're running on a
Windoze 64 box.

On Aug 14, 1:38 pm, Tim t...@mobiforms.com wrote:
 Dear Michal,

 The biggest challenge in moving to Android is the large amount of
 diverse and often confusing components you need to download, configue
 and learn including Eclipse, the Android SDK, Google's specific
 flavour of Java and XML.

 However, there is another approach which suits some people.  Have a
 look at our MobiForms rapid application development tool.

 MobiForms is the world's first rapid application development tool
 designed for Google Android smartphones. Additionally MobiForms apps
 will run on other platforms such as Windows Mobile without any
 changes.

 With MobiForms there is no need to download and learn Eclipse, the
 Android SDK, Java or XML. MobiForms offers one compact tool for
 development and deployment with most programming done with drag and
 drop.

 MobiForms is ideal for creating database orientated business apps.
 Apps that would traditionally take hours or days to write can be
 created in minutes with MobiForms.

 For more information please have a look athttp://www.mobiforms.com

 You may also be interested to learn that we have recently added Google
 Android support for our MobiForms Sync Server. This enables online
 synchronisation and offline database buffering for apps where
 connectivity may not be guaranteed such as for Field Service, Surveys
 and Risk Assessments.

 Kind regards,

 Tim @ MobiForms

 michal.g...@gmail.com wrote:
  I am interested in understanding what are the biggest challenges for a
  JavaME developer moving to the Android platform ?

  Any insights are appreciated.

  Thanks,
  Michal

-- 
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: Challenges moving to the Android platform ?

2010-08-14 Thread DanH
The biggest challenge is probably understanding that Android is not
J2ME.  You need to understand the Android app model (which is highly
structured and resembles more the iPhone model than J2ME boxes).  If
you know J2ME the actual executable language coding is simple, but
you'll spend a lot of time understanding the resource model and
layouts and the like.

On Aug 5, 2:05 am, michal.g...@gmail.com michal.g...@gmail.com
wrote:
 I am interested in understanding what are the biggest challenges for a
 JavaME developer moving to the Android platform ?

 Any insights are appreciated.

 Thanks,
 Michal

-- 
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: App download too less

2010-08-14 Thread DanH
Maybe you should wait until you learn how to program before you upload
apps.  Uploading crummy apps is a good way to build a bad reputation.

The app store isn't intended as a place for amateurs to display their
first efforts, and when you do that you degrade the value of the app
store to everyone.

On Aug 14, 3:44 am, HIRAK hirak1...@gmail.com wrote:
 Hi,
 I am a newcomer to android development.
 I created a image puzzle app named Sexy Image Puzzle
 It is a simple jigsaw puzzle.
 As I have just started developing for android, I didn't buy the dev
 phone yet. I tested the application in Emulator.

 I was planning to create similar puzzles for Cars too. But the app has
 too less downloads so far.

 Could anyone use this app and let me know, what is going wrong?
 It is a free application, so there is no payment involved. I just want
 to know some feedbacks, what is going wrong.

 This is a small help, I need from you guys, till the time I buy my dev
 phone (probably starting september)

-- 
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] Has anyone used it?

2010-08-14 Thread joel
Has anyone used dynamic authentication?

If so, need some guidance to incorporate dynamic authentication as in
here

http://consumeradoption.com/sherman1/



Thank You.

-- 
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: Challenges moving to the Android platform ?

2010-08-14 Thread Maps.Huge.Info (Maps API Guru)
I would agree with DanH. The language itself is rather simple and
straight forward. The challenge is learning the life cycle of an
Android app, the coding of the UI, the way to properly handle
orientation changes and dealing with the sensors and other hardware
elements. Learn that and you're ready to write an app.

-John Coryat

-- 
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] Cannot access android.provider.Calendar

2010-08-14 Thread Dianne Hackborn
Sorry there is currently no SDK API for the calendar.  This means you can't
use it.  (And in fact the class you are looking at has, and will, change
significantly across releases, which is why it isn't yet public.)

On Sat, Aug 14, 2010 at 8:05 AM, James jfa...@gmail.com wrote:

 Hi,
 I am trying to run the Calendar widget on the emulator. I checked out
 the Calendar project (Calendar  CalendarProvider) from:

 http://android.git.kernel.org/?p=platform/packages/apps/Calendar.git;a=summary

 When I try to run  the code I get the infamous the import
 android.provider.Calendar cannot be resolved I tried searching online
 but the only explanation that I found was Calendar is not part of the
 public API What does that mean? There is no way for us to test and
 play around Calendar?

 Is there a way to get Calendar to work? What if I built the entire
 Android platform? If you could clarify (with examples if applicable) I
 would really appreciate it.

 Thank you.
 James

 --
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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] Removing unncessary permissions

2010-08-14 Thread Dianne Hackborn
Use android:minSdkVersion=4 or better.  Prior versions of the platform did
not have these permissions, so must assume that apps written against them do
not declare them so need to give all such apps the permissions.

On Fri, Aug 13, 2010 at 10:48 PM, William Ferguson william.ferguson.au@
gmail.com wrote:

 I have an app that reads from the Contact provider and so it declares
 android.permission.READ_CONTACTS in the manifest. It doesn't store
 anything on the SD card and it doesn't listen to phone or attempt to
 make calls

 But when I go to install the app, I am prompted that installing the
 app requires me to allow the app:
 - Storage. Modify or delete SD card contents
 - Your personal information. Read contact data (this was expected).
 - Phone calls. Read phone state.

 In the manifest I tried to switch off the 'Read phone state' warning
 by including a uses-feature indicating I didn't require access to the
 phone state, but it didn't work.

 Here is the relevant snippet from my Manifest.

 uses-permission android:name=android.permission.READ_CONTACTS/
 uses-feature android:name=android.hardware.telephony
 android:required=false/


 Any idea why the installer is inferring that I need 'Modify or delete
 SD card contents' and 'Read phone state'?
 Or how I might be able to stop those warnings?

 NB this is on a GalaxyS Android 2.1

 --
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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

[android-developers] Re: Application state when Home pressed

2010-08-14 Thread viktor
OK, my third try to  tell you what is my issue mean.

For example: Activity0 -- it is a super class, Activity1, ...2, ...
3, ...4 my children classes from Activity0.

Activity1 extends Activity0

Activity1, ...2, ...3, ...4 can start another examples of Activity0,

My activity stack can be like this: Activity1; Activity5;
Activity12(top).

.


My customers want that application update some information if app
comes to foreground. In my case it happen in Activity0 { onMyUpdate()
{..} }.

Android application can go to the background by HOME button. If Home
pressed onPause() will call.

If app come to the foreground by long click on HOME onResume() is
call.

I try call my method in all Activity life cycle methods but result the
same, my method calling always, when activity is coming to the
foreground, back to previous activity, start new activity.

Where I can put my update method if activity return to the foreground?

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Martrinex
I seem to remember a similar thing with Microsoft being sued for using
Java over 10 years ago at which point Microsoft removed Java from
Windows and Java got forgotten largely on the PC until recently, I
hope the same won't happen here Android will just move to another
language and the only looser will be Java again.

-- 
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] Has anyone used it?

2010-08-14 Thread TreKing
On Sat, Aug 14, 2010 at 2:02 PM, joel joelgigg...@gmail.com wrote:

 If so, need some guidance to incorporate dynamic authentication as in here


Again ...

http://catb.org/esr/faqs/smart-questions.html

-
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: Application state when Home pressed

2010-08-14 Thread TreKing
On Sat, Aug 14, 2010 at 3:04 PM, viktor victor.scherb...@gmail.com wrote:

 I try call my method in all Activity life cycle methods but result
 the same, my method calling always, when activity is coming to
 the foreground, back to previous activity, start new activity.


WHY does it matter if you're returning from Home screen or another Activity?

-
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: Application state when Home pressed

2010-08-14 Thread Frank Weiss
Well, I think you understand that onResume() is called by the Android
OS when an activity comes to the foreground. It may help if you
briefly described what this update method is supposed to do.

I hope your problem is not due to the subclassing of your activities.
It almost seems you are expecting that activities on the stack can
communicate with each other just because they are subclasses or
superclasses of each other.

-- 
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: Application state when Home pressed

2010-08-14 Thread Kostya Vasilyev
Try onStart()

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

15.08.2010 0:24 пользователь TreKing treking...@gmail.com написал:

On Sat, Aug 14, 2010 at 3:04 PM, viktor victor.scherb...@gmail.com wrote:

 I try call my method...
WHY does it matter if you're returning from Home screen or another Activity?



-
...

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

-- 
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: Application state when Home pressed

2010-08-14 Thread Sebastián Treu
On Sat, Aug 14, 2010 at 6:04 PM, viktor victor.scherb...@gmail.com wrote:
 OK, my third try to  tell you what is my issue mean.

 For example: Activity0 -- it is a super class, Activity1, ...2, ...
 3, ...4 my children classes from Activity0.

 Activity1 extends Activity0

 Activity1, ...2, ...3, ...4 can start another examples of Activity0,

 My activity stack can be like this: Activity1; Activity5;
 Activity12(top).

 .


 My customers want that application update some information if app
 comes to foreground. In my case it happen in Activity0 { onMyUpdate()
 {..} }.

 Android application can go to the background by HOME button. If Home
 pressed onPause() will call.

 If app come to the foreground by long click on HOME onResume() is
 call.

 I try call my method in all Activity life cycle methods but result the
 same, my method calling always, when activity is coming to the
 foreground, back to previous activity, start new activity.

That's how supossed to be. When Activity1 launchs Activity5, Activity1
goes background and can be killed at any time by the system. Now, if
you go to home, Activity5 goes to backgroud. Going back to your
application, Activity5 cames on foreground. Pressing back, Activity1
goes to foreground destroying Activity5.

I think you'll need to redesign as you can't think yourself from where
you are coming to foreground. If you are using only different views,
try thinking on that: using just differents views (if they aren't too
much though).

 Where I can put my update method if activity return to the foreground?

If you want just play dirty, maybe there's a way to catch the home
button press (I don't know if possible) event. But, your activity can
be killed at any time. You can't make assumptions when your activity
is no more visible.

-- 
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
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: Application state when Home pressed

2010-08-14 Thread viktor
At the First that is rule from customers. (It is need improve why this
issue doesn't implemented or implement it)
At the second my method call many other processes, it call if main
activity is started and . (I want implement it when app is returns
to the foreground). If I call it when new activity  or previous
appear, I thing Application will be crashed.

Is it possible to do that by getting current device activity state?
(fore example PropertyActivity(cashed) ; MapActivity(cashed) ;
MyActivity(active))

On 14 Сер, 23:23, TreKing treking...@gmail.com wrote:
 On Sat, Aug 14, 2010 at 3:04 PM, viktor victor.scherb...@gmail.com wrote:
  I try call my method in all Activity life cycle methods but result
  the same, my method calling always, when activity is coming to
  the foreground, back to previous activity, start new activity.

 WHY does it matter if you're returning from Home screen or another Activity?

 --- 
 --
 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] How does AdMob calculate how much to pay developers per click? Is AdMob better than AdSense?

2010-08-14 Thread Greg Siano
I just integrated AdMob into my app.  I noticed that in South Korea,
there were 24 clicks, but that I only got 7 cents off of those
clicks.  In Malaysia, there was one click that generated 11 cents, and
in Japan there were 2 clicks that generated 0 cents.  Does anyone know
how this works??

Also, does AdMob or Google AdSense generate more money?

-- 
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 to change the icon in the default search dialog?

2010-08-14 Thread Agus
How to change the icon in the default search dialog?

-- 
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] Streaming MP3 Playback Problems on Android 2.2

2010-08-14 Thread jdeslip
I'm developing an app that streams some audio samples from
eMusic.com.  I basically use the MediaPlayer class to play back the
sample.mp3 from a particular URL (I do use prepareAsync).  On Android
1.6-2.1, the playback is fine, however on Android 2.2 (both the
emulator and Nexus One) the playback contains tinny artifacts and
often dies with an error like:

I/AwesomePlayer(   34): calling prefetcher-prepare()
I/Prefetcher(   34): [0x175f8] cache below low water mark, filling
cache.
I/AwesomePlayer(   34): prefetcher is done preparing
E/EMD -   (  293): Duration 0
D/AudioSink(   34): bufferCount (4) is too small and increased to 12
E/MediaPlayer(  293): error (1, -2147483648)
E/MediaPlayer(  293): Error (1,-2147483648)

In case someone wants to try to reproduce this.  Download the file
http://www.emusic.com/samples/m3u/song/12039152/23641389.m3u on the
3rd line you will find the address to a mp3 file that can be played
back with MediaPlayer.

I know that there is a known issue with streaming apps like pandora/
last.fm in 2.2.  However, I thought those were related to AAC.  Do you
think my issue is connected - if so (or not so), is there anything I
can do right now to resolve the issue?  Or do I have to just wait for
a new Android release?

Thanks for any help!

-Jack

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Sebastián Treu
On Sat, Aug 14, 2010 at 12:34 PM, Fabrizio Giudici
 My point is that we developers should not be much worried about that.
 I don't think that Oracle has any real intention to shut down Android,
 since it's a pot of money. You usually want to have a part of it, or
 be part of the game, not to destroy it. My principal concerns about
 Android are the same as one week ago, that is to make my app work at best.


The problem it's not if Oracle wants to shutdown Android. The problem
is how this will *affect* the android platform both acceptance and
distribution. Android is new and it's making his way in the market.
With this issue on the horizon, how will affect Android to be the
choice of phone makers? Will you risk, as a phone maker, to continue
supporting Android and distributing it in your phone without knowing
what is happening behind the scenes?

It's a PITA and I'm worried about it. I was creating myself big
expectations with this. I'm new making my way as a developer and as an
android developer (4 months), and now I'm a little worried.

Regards,
--
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
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: Application state when Home pressed

2010-08-14 Thread viktor
Thanks  Sebastián,

But render different views on the same activity it is not good, it is
better for desktop app but not mobile. Because Android cashed activity
to prevent rendering the same type views.

It is need investigate your thing that activity which in background
can be killed. Activity1---Activity2--Activity3. I think that
Activity1 never will be killed.

If we have low memory, another application process will be killed but
not active application.

On 14 Сер, 23:47, viktor victor.scherb...@gmail.com wrote:
 At the First that is rule from customers. (It is need improve why this
 issue doesn't implemented or implement it)
 At the second my method call many other processes, it call if main
 activity is started and . (I want implement it when app is returns
 to the foreground). If I call it when new activity  or previous
 appear, I thingApplicationwill be crashed.

 Is it possible to do that by getting current device activitystate?
 (fore example PropertyActivity(cashed) ; MapActivity(cashed) ;
 MyActivity(active))

 On 14 Сер, 23:23, TreKing treking...@gmail.com wrote:



  On Sat, Aug 14, 2010 at 3:04 PM, viktor victor.scherb...@gmail.com wrote:
   I try call my method in all Activity life cycle methods but result
   the same, my method calling always, when activity is coming to
   the foreground, back to previous activity, start new activity.

  WHY does it matter if you're returning from Home screen or another Activity?

  --- 
  --
  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: Application state when Home pressed

2010-08-14 Thread Frank Weiss
My current understanding of the problem is, there's an update method
that needs to be called when any of the activities come to the
foreground, that is, in the onResume() method of the particular
activity that's coming to the foreground, but in some cases, when this
update method is called, the application crashes, supposably a Force
Close?

-- 
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: Application state when Home pressed

2010-08-14 Thread viktor
Application doest crashes (http requests always getting data, it is
not good), I don't want always call it when activity is Resuming

On 15 Сер, 00:07, Frank Weiss fewe...@gmail.com wrote:
 My current understanding of the problem is, there's an update method
 that needs to be called when any of the activities come to the
 foreground, that is, in the onResume() method of the particular
 activity that's coming to the foreground, but in some cases, when this
 update method is called, theapplicationcrashes, supposably a Force
 Close?

-- 
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: Application state when Home pressed

2010-08-14 Thread Sebastián Treu
On Sat, Aug 14, 2010 at 7:04 PM, viktor victor.scherb...@gmail.com wrote:
 Thanks  Sebastián,

 But render different views on the same activity it is not good, it is
 better for desktop app but not mobile. Because Android cashed activity
 to prevent rendering the same type views.

Thats not a fact. It depends on how you really are creating an
Activity, or you just simply are displaying more information about the
same thing you showed before (thats why the _recomendation_). An
Activity should be a task.

 It is need investigate your thing that activity which in background
 can be killed. Activity1---Activity2--Activity3. I think that
 Activity1 never will be killed.

Well, the activity life-cycle does not say that:

http://d.android.com/images/activity_lifecycle.png

Check the flow to process is killed when memory is needed. Every
time activity is paused/stopped, your Activity may be destroyed.

 If we have low memory, another application process will be killed but
 not active application.

And AFAIK, destroying an Activity does not means killing your whole Application.

Regards,
-- 
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
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: Onscreen keyboard too big. Any way to detect its presence?

2010-08-14 Thread shawn
Thanks a bunch!  There is a lot of stuff in the AndroidManifest.xml
file I didn't notice before.

windowSoftInputMode=adjustPan did the trick!

-- 
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: Application state when Home pressed

2010-08-14 Thread Sebastián Treu
In what your problem concern, and if you want to assume that your
Activity that goes to background when home key is pressed it's not
killed, I think you can override the methods, onSaveInstanceState()
and onRestoreInstaceState(). When saving the state you save a
homeKeyWasPressed value. You have KeyEvent.KEYCODE_HOME that I
supposed is the home key:

http://d.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME

Then, you manage your homeKeyWasPressed state, and you save it and
restore it with the methods mentioned above.

I think it should be a _possible-but-no-good_ solution.

Regards,
-- 
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

-- 
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: Application state when Home pressed

2010-08-14 Thread Frank Weiss
Assuming that the update method makes an HTTP request, but doing it
for each time onResume() is called is excessive, wouldn't the most
obvious strategy be to cache the data? That is, when onResume() is
called, check how long ago the last HTTP request was made. If it was
too long ago, perform the HTTP request and save the results somewhere.
If it was recently, just use the saved results.

-- 
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: Application state when Home pressed

2010-08-14 Thread TreKing
On Sat, Aug 14, 2010 at 3:41 PM, Sebastián Treu sebastian.t...@gmail.comwrote:

 If you want just play dirty, maybe there's a way to catch the home button
 press (I don't know if possible) event.


It's not.

On Sat, Aug 14, 2010 at 4:04 PM, viktor victor.scherb...@gmail.com wrote:

 It is need investigate your thing that activity which in background can be
 killed. Activity1---Activity2--Activity3. I think that Activity1 never will
 be killed.

If we have low memory, another application process will be killed but
 not active application.


You think wrong. Android will kill your inactive Activities if it has to.
When you press back from a foreground Activity, the one that was below it
will be re-created.

On Sat, Aug 14, 2010 at 3:47 PM, viktor victor.scherb...@gmail.com wrote:

 At the First that is rule from customers.


Tell them it isn't possible.


 At the second my method call many other processes, it call if main activity
 is started and . (I want implement it when app is returns to the
 foreground). If I call it when new activity  or previous appear, I thing
 Application will be crashed.


What processes? You think doing this will crash the app? Then you should fix
the issue that might crash your app, not try to work around it with some
hack.


 Is it possible to do that by getting current device activity state?


No.

On Sat, Aug 14, 2010 at 4:31 PM, Sebastián Treu sebastian.t...@gmail.com
 wrote:

 When saving the state you save a
 homeKeyWasPressed value. You have KeyEvent.KEYCODE_HOME that I
 supposed is the home key:

 http://d.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME

 Then, you manage your homeKeyWasPressed state, and you save it and
 restore it with the methods mentioned above.


No, apps do not get the Home key event.

On Sat, Aug 14, 2010 at 4:13 PM, viktor victor.scherb...@gmail.com wrote:

 Application doest crashes (http requests always getting data, it is not
 good), I don't want always call it when activity is Resuming


Why not? What are you doing in this update method that is so dependent on
how you get back to your Activity?

Again, IT SHOULD NOT MATTER how you're getting to your application, home or
otherwise. And you're thinking about either coming from Home or coming from
your Activity, but what about coming from another App's Activity? That's a
possibility as well.

I think you're trying to work around an issue with this when you should be
trying to solve your underlying problem. Until you clearly explain WHY
you're doing this and WHAT you're doing in this update method, we won't be
able to help 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

[android-developers] Re: Soft Keyboard appears when activity starts

2010-08-14 Thread claesh
Or you can add this to your activity in Android.manifest:

android:windowSoftInputMode=stateHidden


On Aug 14, 2:13 am, jb cona...@gmail.com wrote:
 I finally found a solution. I placed the following in OnCreate()

 this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

 On Aug 13, 2:15 pm, jb cona...@gmail.com wrote:

  Hi,

  I have an activity which loads a TableLayout. This is made up of
  TextView and EditView fields.

  When I run my app within the emulator the layout appears correctly
  (WITHOUT the soft keyboard appearing).

  When I run the app from a device (HTC Evo) and enter the activity the
  soft keyboard ALWAYS appears.

  I tried doing an OnFocusChange() for the first field in the layout and
  then doing:

  InputMethodManager imm =
  (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(tvIndications.getWindowToken(), 0);

  It doesn't work. The soft keyboard always appears.

  Any suggestions?

  jb

-- 
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] Opengl visual artifacts on droid

2010-08-14 Thread HaMMeReD
A user sent me a screenshot of visual artifacting on droid. Apparently
it only happens with multi-texturing enabled.
-- Screenshot: http://adamhammer.ca/images/stories/cap201008140037.jpg

If I understand correctly though the GPU in the Droid 1 is ES2.0
Compliant, so it should have at least 2 texture units, any idea why
I'm getting this weird look in my app on the Droid 1?

Adam

-- 
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] Is anyone's active install % dropping like a rock lately?

2010-08-14 Thread Doug
I have a peculiar situation and I'm wondering if anyone is seeing the
same thing.

The facts:

- I have a paid app in the top 100 of the market that's been active
since April 2009.
- It sells regularly about 80/day.
- I push a new version to the market every two weeks with new
features.
- The average rating is slowly creeping upward over time and is above
4.5
- For the longest time, my active install % was about 70% and
increasing.  That trend stopped a few months ago.  It is now 54% and
dropping about one percent every week.  During the last stats
correction a few weeks ago, it went from 64% to 60% pretty much
overnight.  Sales have only gotten better over time, and I don't see
enough canceled orders to justify the drop in %.

I have a hard time believing people would pay money for an app only to
turn around and uninstall it.  My app is actually quite small and non-
intrusive so I can imagine no real incentive for these uninstalls.
I'm receiving no user feedback about anything unusual.

Is anyone else seeing this kind of trend in their app?  The only
explanation I can think of is this: Could old, decommissioned devices
from early last year be triggering uninstalls from the perspective of
the stats?  If this is the case, it seems like it would be bad for
your overall market rating to have had an app in production for so
long (if active install % is part of the algorithm Google uses to
determine ranking).

Or, people really are just buying my app and discarding it like a
cheap trinket!  Or maybe I'm placing too much importance on what might
be a meaningless number!

Doug

-- 
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] Is anyone's active install % dropping like a rock lately?

2010-08-14 Thread { Devdroid }
On 15 August 2010 01:50, Doug beafd...@gmail.com wrote:

 Or, people really are just buying my app and discarding it like a
 cheap trinket!  Or maybe I'm placing too much importance on what might
 be a meaningless number!

As long as your sales stay at least the same, you got not much to
worry about :) However I do agree, that developer console is in general
of no use for developers. Aside from stats not being real time or
from being false/broken etc, I wonder why the heck there's no information
like device breakdown per downloads and per installation. In general -
Market sucks from developer standpoint. Period.

-- 
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] Is anyone's active install % dropping like a rock lately?

2010-08-14 Thread TreKing
On Sat, Aug 14, 2010 at 6:50 PM, Doug beafd...@gmail.com wrote:

 Is anyone else seeing this kind of trend in their app?


I've seen a drop of a few percentage point over the last few weeks, but
nothing that dramatic. There's also been a noticeably higher rate of
cancellations. Thanks, Google Checkout!

Or maybe I'm placing too much importance on what might be a meaningless
 number!


I think you are - the developer console is useless for pretty much anything
besides actually uploading an app (and even that it has trouble with
sometimes). That install percent in particular fluctuates so often and so
randomly it's hard to imagine it's based on anything legitimate. Worry about
the Google Checkout numbers.

-
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: Challenges moving to the Android platform ?

2010-08-14 Thread Adal
t...@mobiforms.com

Is a spammer...

-- 
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: Challenges moving to the Android platform ?

2010-08-14 Thread DanH
NSS

On Aug 14, 8:01 pm, Adal arpi...@gmail.com wrote:
 t...@mobiforms.com

 Is a spammer...

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Indicator Veritatis
This is why, once it (the Oracle acquisition of Sun) was publicly
announced, all of the cognoscenti were worried about what Oracle was
going to do to the Java language and platform. But the government
regulators were too easily appeased and convinced that it would not be
a problem. Now that Larry E. has done this, we know better, right?

On Aug 13, 11:46 am, DanH danhi...@ieee.org wrote:
 Hard to say.  I don't know if the tendency in lawsuits is to list the
 most significant first, or the least significant.

 Can't speak to the possibility of copyright infringement.  If the
 developers of the Android environment have good documentation for
 using cleanroom procedures that's a big help, but doesn't get them
 out of the woods.  Without that documentation it could be a bit rough.

 I do wish that Sun had fully opensourced and open licensed Java like
 they were planning to several years back.  I'm guessing the plan was
 killed when Oracle began negotiating with them.

 On Aug 13, 1:18 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it
 wrote:

  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  On 8/13/10 19:08 , DanH wrote:

   Yeah, I saw the list of patents, and commented above that from the
   titles they likely were pretty narrow.  This is going to be an
   angels- on-the-head-of a-pin battle.

  To complete the scenario, I've been pointed to that in the complaint
  there's also a copyright violation allegation, regarding Java itself.
  It is not clear to what it refers to and I still believe that there
  are not Sun bits in Android. In any case, it is cited after the seven
  patents, so I think that the last ones are the real core of the case.

  - --
  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/

  iEYEARECAAYFAkxljGYACgkQeDweFqgUGxeG3ACfUTWGMGoaaXaIlTLRyBzkKO8l
  vZgAoIG/tPMa12OEydov+FzsM4p6Ml7w
  =Jlky
  -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] Full screen activity

2010-08-14 Thread Peter Eastman
I'm writing an Activity that should take up the entire screen.  I
therefore call

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

at the beginning of onCreate().  But it doesn't work correctly.  What
happens is that the window title and notification bar are both visible
for just a moment when the activity starts up.  Then they slide off,
leaving my activity with a messed up layout: a blank space the size of
the notification bar gets left at the top of the screen, and a little
bit of my layout gets cut off at the bottom of the screen.  It appears
that it's laid out the activity the size of the full screen, but then
pushed it down a bit so part of it gets cut off.

If I remove either one of the two lines above, everything works
correctly and nothing gets cut off.  But then I have a title bar or
notification bar at the top of the screen, which I don't want.

I'm sure I must be missing something simple, but I've had no success
figuring out what.

Peter

-- 
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: Emulator bug drawing lines on GLSurfaceView

2010-08-14 Thread Indicator Veritatis
Just off the top of my head, I don't think this is a bug per se. I
think it is an artifact of the smoothing (anti-aliasing) under
emulation conditions. That is, since the emulator is emulating a phone
screen with its own resolution, aspect ratio and pixel size, on a
computer screen with different resolution, aspect ratio and pixel
size, the calculations it performs when deciding to include a given
pixel are going to be different than on the phone. So for lines at
certain angles, this could mean including more pixels, giving the
appearance of a wider width.

On Aug 13, 10:05 pm, SChaser crotalistig...@gmail.com wrote:
 The Emulator draws line widths VERY incorrectly in OpenGL
 (GLSurfaceView).

 Seehttp://www.flickr.com/photos/53002...@n03for a comparison of the
 lines drawn correctly (in JOGL) and incorrectly in the emulator. The
 code also draws correctly on a real device (G1) - looks just like the
 JOGL screen shot.

 I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have
 posted a concise version of the code to demonstrate this problem at 
 athttp://gist.github.com/523955andhttp://gist.github.com/523961. I
 hope I am proven wrong about a bug in the emulator, and can find a way
 to use the emulator for what I want to do.

 Specifically, line widths vary based on the end point locations of
 lines, under the following conditions (and maybe others):

 -ortho projection

 -line smoothing enabled

 Note: I started this thread as a continuation of 
 threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
 because I think it is of general interest and worth a new start.

-- 
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: Emulator bug drawing lines on GLSurfaceView

2010-08-14 Thread Indicator Veritatis
This is my second reply to the same post. I was going to double check
by visiting your flickr site before finishing my first post, but my
computer registered a mouse click prematurely, sending my previous
post before I could do that:(

So now that I have seen your flickr photos, I see my proposed
explanation is not quite right: you are always using the same angle,
0. So I suggest varying the vertical offsets to see if that makes the
thickening go away. Also, I assume that you do not see this thickening
if LINE_SMOOTH is disabled. Is that the case?

On Aug 13, 10:05 pm, SChaser crotalistig...@gmail.com wrote:
 The Emulator draws line widths VERY incorrectly in OpenGL
 (GLSurfaceView).

 Seehttp://www.flickr.com/photos/53002...@n03for a comparison of the
 lines drawn correctly (in JOGL) and incorrectly in the emulator. The
 code also draws correctly on a real device (G1) - looks just like the
 JOGL screen shot.

 I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have
 posted a concise version of the code to demonstrate this problem at 
 athttp://gist.github.com/523955andhttp://gist.github.com/523961. I
 hope I am proven wrong about a bug in the emulator, and can find a way
 to use the emulator for what I want to do.

 Specifically, line widths vary based on the end point locations of
 lines, under the following conditions (and maybe others):

 -ortho projection

 -line smoothing enabled

 Note: I started this thread as a continuation of 
 threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
 because I think it is of general interest and worth a new start.

-- 
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: Emulator bug drawing lines on GLSurfaceView

2010-08-14 Thread Indicator Veritatis
Then again, now that I have seen your flickr pictures, I see you
always have the same 0 angle. So my proposed explanation is not quite
on point. But I do still believe this is an artifact of emulation
rather than a bug, and for reasons similar to what I described. So try
varying the vertical spacing and see how that affects the spurious
thickening.

On Aug 14, 6:59 pm, Indicator Veritatis mej1...@yahoo.com wrote:
 Just off the top of my head, I don't think this is a bug per se. I
 think it is an artifact of the smoothing (anti-aliasing) under
 emulation conditions. That is, since the emulator is emulating a phone
 screen with its own resolution, aspect ratio and pixel size, on a
 computer screen with different resolution, aspect ratio and pixel
 size, the calculations it performs when deciding to include a given
 pixel are going to be different than on the phone. So for lines at
 certain angles, this could mean including more pixels, giving the
 appearance of a wider width.

 On Aug 13, 10:05 pm, SChaser crotalistig...@gmail.com wrote:

  The Emulator draws line widths VERY incorrectly in OpenGL
  (GLSurfaceView).

  Seehttp://www.flickr.com/photos/53002...@n03fora comparison of the
  lines drawn correctly (in JOGL) and incorrectly in the emulator. The
  code also draws correctly on a real device (G1) - looks just like the
  JOGL screen shot.

  I believe this is a bug. However, I'm not an OpenGL GURU. Hence I have
  posted a concise version of the code to demonstrate this problem at 
  athttp://gist.github.com/523955andhttp://gist.github.com/523961. I
  hope I am proven wrong about a bug in the emulator, and can find a way
  to use the emulator for what I want to do.

  Specifically, line widths vary based on the end point locations of
  lines, under the following conditions (and maybe others):

  -ortho projection

  -line smoothing enabled

  Note: I started this thread as a continuation of 
  threadhttp://groups.google.com/group/android-developers/browse_thread/threa...
  because I think it is of general interest and worth a new start.



-- 
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] Full screen activity

2010-08-14 Thread Dianne Hackborn
Instead of doing it during creation, declare it in your manifest's activity
tag:

android:theme=@android:style/Theme.NoTitleBar.Fullscreen

On Sat, Aug 14, 2010 at 6:55 PM, Peter Eastman peter.east...@gmail.comwrote:

 I'm writing an Activity that should take up the entire screen.  I
 therefore call

 requestWindowFeature(Window.FEATURE_NO_TITLE);
 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
 WindowManager.LayoutParams.FLAG_FULLSCREEN);

 at the beginning of onCreate().  But it doesn't work correctly.  What
 happens is that the window title and notification bar are both visible
 for just a moment when the activity starts up.  Then they slide off,
 leaving my activity with a messed up layout: a blank space the size of
 the notification bar gets left at the top of the screen, and a little
 bit of my layout gets cut off at the bottom of the screen.  It appears
 that it's laid out the activity the size of the full screen, but then
 pushed it down a bit so part of it gets cut off.

 If I remove either one of the two lines above, everything works
 correctly and nothing gets cut off.  But then I have a title bar or
 notification bar at the top of the screen, which I don't want.

 I'm sure I must be missing something simple, but I've had no success
 figuring out what.

 Peter

 --
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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