[android-developers] Can I make a Dialog invisible?

2010-08-26 Thread Mystique
Hi, I have a parent dialog calling a child dialog. Can I make the
parent dialog invisible to it is more appealing to the eye?
Is there something like setVisibility(View.INVISIBLE) for dialog?

Many 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: GPS Co-ordinates if the mobile is off

2010-08-26 Thread uday

Thanks Yahel for ur quick response...

Actually what the requirement is like, have to develop one application
which returns the Co-ordinates of the mobile in the case of switched
off... This type of requirement required when the mobile theft..
Is there any way to Switch on the GPS system when the device boot up
time??


On Aug 23, 4:46 pm, Yahel kaye...@gmail.com wrote:
 :D

 No you can't ! Same way that your bread won't toast if the toaster is
 not plugged in :)

 But you can get the lastknownposition using
 locationmanager.getLastKnownLocation or you can get an approximate of
 the location returned by the device using cellphone towers
 informations.

 Yahel

 On 23 août, 13:09, uday uday.pic...@gmail.com wrote:

  Hi All,

  Is it possible to get the GPS Co-ordinates if the mobile is in off
  condition???

-- 
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: Can I make a Dialog invisible?

2010-08-26 Thread AJ
you can dismiss the parent dialog and then show your child dialog.

please check:-
http://developer.android.com/reference/android/app/Dialog.html#dismiss%28%29


Thanks,
AJ

On Aug 26, 11:16 am, Mystique joven.ch...@gmail.com wrote:
 Hi, I have a parent dialog calling a child dialog. Can I make the
 parent dialog invisible to it is more appealing to the eye?
 Is there something like setVisibility(View.INVISIBLE) for dialog?

 Many thanks.

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


Re: [android-developers] Re: Can I make a Dialog invisible?

2010-08-26 Thread Dianne Hackborn
And this:
http://developer.android.com/reference/android/app/Dialog.html#hide()

On Wed, Aug 25, 2010 at 11:21 PM, AJ ajeet.invinci...@gmail.com wrote:

 you can dismiss the parent dialog and then show your child dialog.

 please check:-

 http://developer.android.com/reference/android/app/Dialog.html#dismiss%28%29


 Thanks,
 AJ

 On Aug 26, 11:16 am, Mystique joven.ch...@gmail.com wrote:
  Hi, I have a parent dialog calling a child dialog. Can I make the
  parent dialog invisible to it is more appealing to the eye?
  Is there something like setVisibility(View.INVISIBLE) for dialog?
 
  Many 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




-- 
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: Greystripe experiences?

2010-08-26 Thread ko5tik
you may try admob. CPM is OK (for my apps), fill rates over 95%,
and monthly payments with a month delay.

On Aug 26, 6:52 am, andfan22 andfa...@gmail.com wrote:
 Thanks for the info.

 Hmmm, that's a shame that their banner ads are only in beta.  I have
 no desire to include full screen ads in my app.

 Have you also tried mobclix?  I'd be interested in any comparisons
 between mobclix and greystripe.

 Cheers ...

-- 
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: Add Media Files to Library in Froyo

2010-08-26 Thread Rainhut
That was a good find. I'm wondering if /mnt/sdcard will always be a
valid path.

On Aug 21, 4:17 am, Will mhhou...@gmail.com wrote:
 Thank you so much.
 This is very useful.

 On Aug 1, 7:23 pm, jdeslip jdes...@gmail.com wrote:

  It turns out when I added a file on /sdcard, they were not added.
  When I add using the /mnt/sdcard path it worked fine. Both paths seem
  valid (I guess one is a symlink) but only the /mnt/sdcard adds the
  file to my library right away.  It appears you can get the right
  pathname using:

  Environment.getExternalStorageDirectory()



-- 
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: Can I make a Dialog invisible?

2010-08-26 Thread Mystique
Thanks :)

On Aug 26, 2:23 pm, Dianne Hackborn hack...@android.com wrote:
 And this:http://developer.android.com/reference/android/app/Dialog.html#hide()





 On Wed, Aug 25, 2010 at 11:21 PM, AJ ajeet.invinci...@gmail.com wrote:
  you can dismiss the parent dialog and then show your child dialog.

  please check:-

 http://developer.android.com/reference/android/app/Dialog.html#dismis...

  Thanks,
  AJ

  On Aug 26, 11:16 am, Mystique joven.ch...@gmail.com wrote:
   Hi, I have a parent dialog calling a child dialog. Can I make the
   parent dialog invisible to it is more appealing to the eye?
   Is there something like setVisibility(View.INVISIBLE) for dialog?

   Many 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%2Bunsubs 
  cr...@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] How to configure SDK emulator to start with english instead of japanese?

2010-08-26 Thread Kostya Vasilyev
Have you tried disabling wipe user data in the emulator launch dialog? I
just verifified that it does help to leave it off.

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

26.08.2010 11:19 пользователь Per-Jarle Sæther 
per.jarle.saet...@gmail.com написал:

Hi, and thank you for replying to me

The japanese settings are coming back every time I start the simulator or
run an app (doesn't matter if the simulator is restarted or not)

The attached picture shows the Compose message application after I changed
the settings and thereafter ran an application.

It seems like the simulator is reset or settings uploaded during the upload
of the application.

Best regards
Per-Jarle




On Wed, Aug 25, 2010 at 5:28 PM, { Devdroid } webnet.andr...@gmail.com
wrote:

 2010/8/25 Per...

-- 
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: Add Media Files to Library in Froyo

2010-08-26 Thread Dianne Hackborn
On Thu, Aug 26, 2010 at 12:25 AM, Rainhut rain...@gmail.com wrote:

 That was a good find. I'm wondering if /mnt/sdcard will always be a
 valid path.


Please use the API to get the path.  It has changed once, it may change
again.  (Fwiw -- /sdcard is set up as a sym link to the current path; most
access through it should work correctly.  There may be something unusual in
the way you are accessing it that is causing the problem.)



 On Aug 21, 4:17 am, Will mhhou...@gmail.com wrote:
  Thank you so much.
  This is very useful.
 
  On Aug 1, 7:23 pm, jdeslip jdes...@gmail.com wrote:
 
   It turns out when I added a file on /sdcard, they were not added.
   When I add using the /mnt/sdcard path it worked fine. Both paths seem
   valid (I guess one is a symlink) but only the /mnt/sdcard adds the
   file to my library right away.  It appears you can get the right
   pathname using:
 
   Environment.getExternalStorageDirectory()
 
 

 --
 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] How to configure SDK emulator to start with english instead of japanese?

2010-08-26 Thread Per-Jarle Sæther
Hi again Kostya
The Wipe User Data is not checked in any of my run configurations.

Best regards
Per-Jarle

On Thu, Aug 26, 2010 at 9:37 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 Have you tried disabling wipe user data in the emulator launch dialog? I
 just verifified that it does help to leave it off.

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

 26.08.2010 11:19 пользователь Per-Jarle Sæther 
 per.jarle.saet...@gmail.com написал:


 Hi, and thank you for replying to me

 The japanese settings are coming back every time I start the simulator or
 run an app (doesn't matter if the simulator is restarted or not)

 The attached picture shows the Compose message application after I changed
 the settings and thereafter ran an application.

 It seems like the simulator is reset or settings uploaded during the upload
 of the application.

 Best regards
 Per-Jarle




 On Wed, Aug 25, 2010 at 5:28 PM, { Devdroid } webnet.andr...@gmail.com
 wrote:
 
  2010/8/25 Per...

  --
 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] How to connect android to Google App Engine

2010-08-26 Thread Droid
I have spent two days trying to decide on a way to upload and download
data to the Google App Engine.

Do I use REST or simple HTTP post/get?

Do I use JSON or XML?

Do I use java or Python.

I am thinking probably use python and probably use REST. But which one
out there?

There are so many to choose from. None seem to work out-of-the-box,
but need faffing around with bits of code from here and bits of code
from there. And is not clear at the outset what  am taking on or what
the limitations are.

Can anyone point me at a usable system for connecting my Android to
the GAE?

-- 
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: JDOM in Android 2.1 or earlier

2010-08-26 Thread als
Nobody could do it?

I'm going to do some tests changing the input xml, adding aliases for
namespaces and so on. Maybe that exception appears only in some cases
and I can make it work.

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


[android-developers] Re: Do I need openGL or not?

2010-08-26 Thread Robert Green
Canvas2D-style APIs are easier to learn than OpenGL in the first place
but once you know OpenGL, there are many things it does effortlessly.

Antigen is 2D OpenGL and took very little graphics effort.  Most of
the time was spent tweaking difficulty curves, testing, developing and
integrating assets such as graphics, sounds and music and putting in
logic for the messages and achievements.  Once I had the basic 2D
sprite library working in GL, it was cake adding additional stuff,
including the particle explosions, power-up auras, animations and text
effects.

Once you learn how to use atlases and draw quads using parts of them,
GL doesn't seem so daunting.  It's certainly worth learning if you
want to up your game (pardon the pun).

On Aug 26, 12:28 am, Ted Neward ted.new...@gmail.com wrote:
 What kind of frame rate are you hoping to get?

 In general, popular opinion holds that 2D is more easily done without
 OpenGL, but it's certainly do-able.

 Ted Neward
 Java, .NET, XML Services
 Consulting, Teaching, Speaking, Writinghttp://www.tedneward.com





  -Original Message-
  From: android-developers@googlegroups.com [mailto:android-
  develop...@googlegroups.com] On Behalf Of Firidan
  Sent: Wednesday, August 25, 2010 12:25 PM
  To: Android Developers
  Subject: [android-developers] Do I need openGL or not?

  I am thinking about creating a 2D game for android. Kind of like the flash
  game Age Of War (just google it). Can I do it with just Java or do I
 also need
  openGL?

  Thanks for help!

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

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


[android-developers] Android refresh StateListDrawable problem

2010-08-26 Thread maxandroid
Hi all,
I have a strange problem with StateListDrawable or maybe (probably)
I'm missing something. I created a test application for it and the
same problem occurs. So, this is my StateListDrawable resourse in file
test_selection.xml

?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/
android
 item android:state_selected=true
  shape android:shape=rectangle android:background=#ff
   corners android:radius=10dp /
   gradient android:startColor=#ff
android:endColor=#ff android:angle=0 /
  /shape
 /item
 item android:state_selected=false
  shape android:shape=rectangle android:background=#ee
   corners android:radius=10dp /
   gradient android:startColor=#ee
android:endColor=#ee android:angle=0 /
  /shape
 /item
/selector

It's a very simple selector that draw a red color for selected state
and a white rect for the unselected one.

My main.xml template is very simple. I simply use a TextView that uses
the selection as background.

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
 android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent
 TextView android:layout_width=fill_parent
  android:layout_height=wrap_content android:text=@string/
hello
  android:textSize=30dp android:id=@+id/test_view_example
android:background=@drawable/test_selection/
 Button android:layout_width=wrap_content
  android:layout_height=wrap_content android:id=@+id/refresh
  android:onClick=updateView android:text=refresh/Button
/LinearLayout

My Activity code is also very simple.

public class TestDrawableStateActivity extends Activity {

 private final static int[] SELECTED_STATE =
{ android.R.attr.state_selected };
 private final static int[] UNSELECTED_STATE = {};

 private TextView textView;

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  textView = (TextView) findViewById(R.id.test_view_example);
 }

 @Override
 protected void onResume() {
  super.onResume();
  // Carichiamo la Drawable
  if(textView.getBackground().setState(SELECTED_STATE)){
   textView.invalidate();
  }
 }

 public void updateView(View view) {
  if(textView.getBackground().setState(SELECTED_STATE)){
   textView.invalidate();
  };
 }
}

When Activity starts I try to set the state of my Drawable (the
StateListDrawable) with the value SELECTED.
It seems all very simple but the problem is that the state is not
shown. If, later, I click a button and execute the method updateView()
the state changes.
Where is my problem? Where am I wrong?

Thankx a lot
Max

-- 
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: New to Android and programming

2010-08-26 Thread Peter Webb

I would go further than that.

If the OP has no programming experience, then Java/Android is an
almost impossible starting point:

1. The online doco is hopeless. Yes, as you say they all assume a
pretty high level knowledge of Java to start with. Worse, for the
beginner, is that unlike some other IDEs/environments I won't mention,
the class library doco doesn't provide full functioning programs or
even code snippets illustrating use. And these are hard and sometimes
impossible to find.

2. Teach yourself OO programming? Are you kidding? Teaching yourself
Fortran, C, Pascal etc is hard enough, and Java/C#/C++ are that
squared. It would be easier to learn C, then jump from there into
Java. And Android isn't just Java, its XML as well. Learn all that
when you have never written a program in your life?

3. The environment is that much harder and slower to use because of
the indirectness of cross-compling and running an emulator. When
people first start coding, they are testing changes on a line-by-line
basis, and the whole emulator thing is even more of a PITA.

I love this stuff, don't get me wrong, and a lot of it is complicated
and difficult because it has to be, but I can't think of a more
difficult environment to learn programming for the first time than
Java/Eclipse/Android.




On Aug 26, 11:42 am, Indicator Veritatis mej1...@yahoo.com wrote:
 I'd even go one step of certainty further: it will definitely be a
 frustrating experience unless he learns enough Java first. Too many of
 the sample programs, whether in forums, in books on Android, or in the
 official Google tutorial, all use constructs that will otherwise
 appear mysterious and obscure, such as anonymous classes for Event
 Listeners, final static Strings for constants...

 But he does not need black belt level mastery of Java before starting
 Android. Orange belt is good enough;)

 On Aug 24, 5:29 am, TreKing treking...@gmail.com wrote: On Sun, Aug 22, 
 2010 at 1:32 AM, Droidblazer00 weilache...@gmail.comwrote:

   So would it be better for me to learn Java before getting started with the
   SDK and eclipse? Or is it just the same to jump right
   in on App development and learn on the fly?

  Well, it's definitely not the same, but whether it's better really
  depends.
  Do you have other programming experience? Are you good at learning quickly
  on your own?

  If no to either, probably a good idea to take some time to learn Java on
  it's own. It has some quirks you need to learn. Android has quirks you need
  to learn. Depending on your background, learning both those quirks, at the
  same time, will be an exercise in frustration.

  Good luck.

  ---­--
  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] Taking a Picture

2010-08-26 Thread Pedro Teixeira
Does anybody has a clue? no one had implemented a camera on  
surfaceview and take a picture?


On Aug 25, 2010, at 10:35 PM, Pedro Teixeira wrote:


I have my code all set and done.. no errors at all..everything looks
fine.. how/where/why doesnt takes a picture? Can anyone help me with
this? this is a internet tutorial custumized for needs..

public class thenNnowMode extends Activity implements
SurfaceHolder.Callback{

SurfaceView tnnSurfaceView;
SurfaceHolder mSurfaceHolder;
Camera tnnCamera;
boolean mPreviewRunning = false;
private Context mContext = this;
ImageView transparencyPreview;
Bitmap TNNPicture;
String TNNPicturePath;
TextView blinktext;
   Animation animation;
   static final int FOTO_MODE = 0;

public void onCreate(Bundle icicle) {
super.onCreate(icicle);

requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.thennnowmode);


tnnSurfaceView = (SurfaceView)
findViewById(R.id.surface_camera);
mSurfaceHolder = tnnSurfaceView.getHolder();
mSurfaceHolder.addCallback(this);

mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

}

protected void onRestoreInstanceState(Bundle savedInstanceState){
super.onRestoreInstanceState(savedInstanceState);
}

protected void onResume(){
super.onResume();
}

protected void onSaveInstanceState(Bundle outState){
super.onSaveInstanceState(outState);
}

protected void onStop(){
super.onStart();
}

@Override
// Create the Surface and Open the Camera
public void surfaceCreated(SurfaceHolder holder) {
tnnCamera = Camera.open();
}

@Override
// Reacts for camera changes
public void surfaceChanged(SurfaceHolder holder, int format, int
w,int h) {
if (mPreviewRunning) {
tnnCamera.stopPreview();
}
Camera.Parameters p = tnnCamera.getParameters();
p.setPreviewSize(w, h);
tnnCamera.setParameters(p);
try {
tnnCamera.setPreviewDisplay(holder);
} catch (IOException e) {
e.printStackTrace();
}
tnnCamera.startPreview();
mPreviewRunning = true;
}

@Override
// When the camera is closed
public void surfaceDestroyed(SurfaceHolder holder) {
tnnCamera.stopPreview();
mPreviewRunning = false;
tnnCamera.release();
}

// Metodo on click of the screen takes a picture
public void onClick(View arg0) {
tnnCamera.takePicture(null, mPictureCallback, mPictureCallback);
}

// When the picure is taken. This method gives the byte[] of the
picture
Camera.PictureCallback mPictureCallback = new
Camera.PictureCallback() {
public void onPictureTaken(byte[] imageData, Camera c) {
if (imageData != null) {
Intent mIntent = new Intent();
// salva a foto
previewAndStoreInfo(mContext, imageData, 50, 
fotoTirada);
tnnCamera.startPreview();
setResult(FOTO_MODE, mIntent);
finish();
}
}
};


public static boolean previewAndStoreInfo(Context mContext, byte[]
imageData,int quality, String expName) {
   File sdImageMainDirectory = new File(/sdcard);
FileOutputStream fileOutputStream = null;
String nameFile;
try {
BitmapFactory.Options options=new 
BitmapFactory.Options();
options.inSampleSize = 5;
Bitmap myImage = 
BitmapFactory.decodeByteArray(imageData, 0,
imageData.length,options);
fileOutputStream = new
FileOutputStream(sdImageMainDirectory.toString() +/ + expName +
.jpg);
BufferedOutputStream bos = new
BufferedOutputStream(fileOutputStream);
myImage.compress(CompressFormat.JPEG, quality, bos);
bos.flush();
bos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return true;
}

}

--
You 

[android-developers] Contact Icons

2010-08-26 Thread William Ferguson
I want to reuse those icons displayed by the Contacts app that
represent the different types of Contact.
Ie Contacts-Create Contact asks Save contact to and gives options
like Phone, SIM, Google which each have an icon.

I've searched through the SDK and even through the source but I can't
find anything like the 3 icons displayed.

The Phone contact icon is a white phone on a green background.
The SIM icon is a green SIM card with gold contacts.
And the Google icon is a white lower case 'g' on a black background.

Are these icons common to all phones or are they specific the Galaxy
S?

Does anyone known where I can find 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] How to the GSM signal strength

2010-08-26 Thread Mohammad Siddiqui
Hi everyone

I want to find the signal strength of GSM network. but not found any
method in 1.5 sdk version

is there is any alternative available to find the signal strength.


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: App breaks for some users after they update from the Market

2010-08-26 Thread mot12
 Wonder what I can do to make it up ...
Tell them there's cake.

I have had the same problem with every update myself. In average I get
one or two horrible ratings and about 10 emails with problems which
are always solved by reinstalling. I do not use copyprotection.

The problem with null pointers I can also see with my users.

I don't understand the above comment about statics either.
Uninstalling the app presumably means that app being closed first. The
updated version needs to be started by the user, it doesn't
automatically replace what was in memory before.

Very rarely, I get some interesting reports such as one person who
said that launcher icon was suddenly gone. Instead, he saw some text
there. Reinstalling fixed that.

Martin
mobitobi
Gentle Alarm, Sleep Now

-- 
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 the GSM signal strength

2010-08-26 Thread XC He
You can check
package/apps/Settings code, RadioInfo.java
  int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();

  if (-1 == signalDbm) signalDbm = 0;
  int signalAsu = mPhoneStateReceiver.getSignalStrength();
  if (-1 == signalAsu) signalAsu = 0;

2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:
 Hi everyone

 I want to find the signal strength of GSM network. but not found any
 method in 1.5 sdk version

 is there is any alternative available to find the signal strength.


 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

-- 
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] Flipping book

2010-08-26 Thread Tonny
Hi all,
 I have a problem ,i want to display  animation for flipping book as
http://www.youtube.com/watch?v=oknMWvRO2XE  for android.
 But i can't do it with android . Anybody help me ? Thank for shared.

-- 
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 play HTML5 video using webview

2010-08-26 Thread zohar lerman
Hi,

I haven't been able to get the following html5 code to work:

html
head
/head
body 
video width=400 height=300 controls src=myvideo.m4v  /video
/body
/html

Notes:
* I can see the video only with android browser but when i run it in
WebView i see nothing.
* I also tried with the onclick=this.play(); but it is not working
* when i load http://html5test.com/; i saw the all of the video
formats are not supported
* My code is SDK 1.5 and I am using HTC dream (SDK 1.5) and Nexus one
(SDK 2.2)

Please help

Zohar

-- 
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: Flipping book

2010-08-26 Thread Andy Burns

Tonny wrote:


I have a problem


It's not a problem, it's a development opportunity ;-)


i want to display  animation for flipping book as
http://www.youtube.com/watch?v=oknMWvRO2XE  for android.


The person who posted the video mentions that they implemented it for 
the iPhone using openGL ES, I suspect you would have have to implement 
it in a similar way for Android ...



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


[android-developers] Re: How to the GSM signal strength

2010-08-26 Thread Vinay S
Hi XC He,

Can you please suggest what should be imported to get
mPhoneStateReceiver..?

Regards,
Vinay

On Aug 26, 1:38 pm, XC He schosnab...@gmail.com wrote:
 You can check
 package/apps/Settings code, RadioInfo.java
   int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();

   if (-1 == signalDbm) signalDbm = 0;
   int signalAsu = mPhoneStateReceiver.getSignalStrength();
   if (-1 == signalAsu) signalAsu = 0;

 2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:

  Hi everyone

  I want to find the signal strength of GSM network. but not found any
  method in 1.5 sdk version

  is there is any alternative available to find the signal strength.

  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



-- 
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 get Lat and Long about one bus line from google maps

2010-08-26 Thread pyleaf
I am sorry.
I mean how i can get the info about the link between bus stop and  Lat 
Long.
Thank you!

On Thu, Aug 26, 2010 at 8:30 AM, TreKing treking...@gmail.com wrote:

 On Wed, Aug 25, 2010 at 3:40 AM, pyleaf lg.feixi...@gmail.com wrote:

 I want to know the Lat and Long by a busline, or know the busline by
 the Lat and Long.


 Read this question back to yourself, then ask yourself how anyone is
 supposed to know what busline you're talking about.



 -
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Believing is Everything.

-- 
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] Restoring a GLSurfaceView after closing the foreground activity

2010-08-26 Thread Luca Carlon
Hi! I have an application which uses a GLSurfaceView. From that
activity I start the Android's video player. The problem I'm
experiencing is that, after I close it, the GLSurfaceView I have
behind it is not shown at all, I have a black screen. When I close
that activity as well, the GLSurfaceView suddenly appears for an
instant and the activity closes. What could be causing this?
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: Unserializing objects via the Hessian web protocol leads to ClassNotFoundException

2010-08-26 Thread Kevin Read


On Aug 25, 6:19 pm, DanH danhi...@ieee.org wrote:
 You can never load a class without its package name.

 The message is saying that a class in the null package named
 NewsSetCategory cannot be found.  Since classes in the null package
 are characteristic of toy applications, NewsSetCategory is probably
 a toy application on the source platform and is missing on the
 phone.

Well, the objects are created and serialized by a PHP script, so toy
is a fairly accurate description ;)
I'll try to shoehorn the PHP class names into the fully qualified Java
class name. The issue here is that the web service is also used by the
iPhone client, where the deserialization is completely custom-built,
so I'll have to tread lightly *sighs*

Thanks for the answers.

Regards,

Kevin


 On Aug 24, 3:39 pm, kr...@boerse-go.de obsidia...@googlemail.com
 wrote:



  Hi all,

  I am using the Hessian web protocol[1] or rather more the Android port
  Hessdroid[2] to fetch and unserialize objects from a web server. It
  works quite well but unfortunately I get this message:

  W/SerializerFactory( 1071): Hessian/Burlap: 'NewsSetCategory' is an
  unknown class in dalvik.system.pathclassloa...@43227dd0:
  W/SerializerFactory( 1071): java.lang.ClassNotFoundException:
  NewsSetCategory

  when actually unserializing an object. The code within the library
  that throws the warning is:

        try {
          Class cl = Class.forName(type, false,
  getClass().getClassLoader());
          deserializer = getDeserializer(cl);
        } catch (Exception e) {
          log.warning(Hessian/Burlap: ' + type + ' is an unknown
  class in  + getClass().getClassLoader() + :\n + e);

          log.log(Level.FINER, e.toString(), e);
        }

  I guess the problem is that the class NewsSetCategory resides in a
  package and so cannot be loaded without the whole package name by the
  ClassLoader but this is a bling guess.

  Is there a way to adapt the class path or to easily create a new
  PathClassLoader that will load classes directly from the package? Or
  does anybody else have any experience with Hessian on Android?

  Thanks a lot,

  Kevin

  [1]http://hessian.caucho.com/
  [2]http://code.google.com/p/hessdroid/

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


[android-developers] Re: How to the GSM signal strength

2010-08-26 Thread AJ
Hi Vinay

Check the example @ 
http://www.firstdroid.com/2010/05/12/get-provider-gsm-signal-strength/


Thanks,
AJ

On Aug 26, 2:38 pm, Vinay S s.vinay@gmail.com wrote:
 Hi XC He,

 Can you please suggest what should be imported to get
 mPhoneStateReceiver..?

 Regards,
 Vinay

 On Aug 26, 1:38 pm, XC He schosnab...@gmail.com wrote:

  You can check
  package/apps/Settings code, RadioInfo.java
    int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();

    if (-1 == signalDbm) signalDbm = 0;
    int signalAsu = mPhoneStateReceiver.getSignalStrength();
    if (-1 == signalAsu) signalAsu = 0;

  2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:

   Hi everyone

   I want to find the signal strength of GSM network. but not found any
   method in 1.5 sdk version

   is there is any alternative available to find the signal strength.

   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



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


Re: [android-developers] Re: How to the GSM signal strength

2010-08-26 Thread Mohammad Siddiqui
but SignalStrength class is not available in the android sdk version 1.5

On Thu, Aug 26, 2010 at 4:05 PM, AJ ajeet.invinci...@gmail.com wrote:

 Hi Vinay

 Check the example @
 http://www.firstdroid.com/2010/05/12/get-provider-gsm-signal-strength/


 Thanks,
 AJ

 On Aug 26, 2:38 pm, Vinay S s.vinay@gmail.com wrote:
  Hi XC He,
 
  Can you please suggest what should be imported to get
  mPhoneStateReceiver..?
 
  Regards,
  Vinay
 
  On Aug 26, 1:38 pm, XC He schosnab...@gmail.com wrote:
 
   You can check
   package/apps/Settings code, RadioInfo.java
 int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();
 
 if (-1 == signalDbm) signalDbm = 0;
 int signalAsu = mPhoneStateReceiver.getSignalStrength();
 if (-1 == signalAsu) signalAsu = 0;
 
   2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:
 
Hi everyone
 
I want to find the signal strength of GSM network. but not found any
method in 1.5 sdk version
 
is there is any alternative available to find the signal strength.
 
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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Re: How to the GSM signal strength

2010-08-26 Thread XC He
Yes, it's a internal class.

You cab reference this
http://groups.google.com.tw/group/android-developers/browse_thread/thread/d3e9eee1bdd9d9fc/5b45fb90df1f7b4b


2010/8/26 Vinay S s.vinay@gmail.com:
 Hi XC He,

 Can you please suggest what should be imported to get
 mPhoneStateReceiver..?

 Regards,
 Vinay

 On Aug 26, 1:38 pm, XC He schosnab...@gmail.com wrote:
 You can check
 package/apps/Settings code, RadioInfo.java
   int signalDbm = mPhoneStateReceiver.getSignalStrengthDbm();

   if (-1 == signalDbm) signalDbm = 0;
   int signalAsu = mPhoneStateReceiver.getSignalStrength();
   if (-1 == signalAsu) signalAsu = 0;

 2010/8/26 Mohammad Siddiqui siddiqui.m...@gmail.com:

  Hi everyone

  I want to find the signal strength of GSM network. but not found any
  method in 1.5 sdk version

  is there is any alternative available to find the signal strength.

  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



 --
 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] How to get Lat and Long about one bus line from google maps

2010-08-26 Thread Filip Havlicek
That really depends on the city you are talking about.

Best regards,
Filip Havlicek

2010/8/26 pyleaf lg.feixi...@gmail.com

 I am sorry.
 I mean how i can get the info about the link between bus stop and  Lat 
 Long.
 Thank you!


 On Thu, Aug 26, 2010 at 8:30 AM, TreKing treking...@gmail.com wrote:

 On Wed, Aug 25, 2010 at 3:40 AM, pyleaf lg.feixi...@gmail.com wrote:

 I want to know the Lat and Long by a busline, or know the busline by
 the Lat and Long.


 Read this question back to yourself, then ask yourself how anyone is
 supposed to know what busline you're talking about.



 -
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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


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

Re: [android-developers] Re: Thin Java over C++ App

2010-08-26 Thread Vedran Rodic
I'd say,


Go and look at kwaak3 code http://code.google.com/p/kwaak3/

While it uses OpenGL ES for graphics, the sound and input portions at
least should be useful to you.



On Thu, Aug 26, 2010 at 7:25 AM, Lukas Adamec luk.ada...@gmail.com wrote:
 Hi,
 I think NDK could solve your problem. I studied some problems about
 passing bitmap between Java and C++. Take a look at jnigraphics
 library in NDK (it's new in android-8 API) or useful is also direct
 ByteBuffer (for older Android versions).

 On 25 srp, 20:18, Maomor maldw...@gmail.com wrote:
 In order to easily and quickly port a C++ app to Android, can one just
 write a thin Java layer that gets the screen contents from C++ and
 blits it to the display; and sends mouse clicks to a C++ handler ?

 Or would this not work for some reason ?

 --
 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] Taking a Picture

2010-08-26 Thread Mark Murphy
On Thu, Aug 26, 2010 at 4:04 AM, Pedro Teixeira
pedroteixeir...@gmail.com wrote:
 Does anybody has a clue? no one had implemented a camera on surfaceview and
 take a picture?

http://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture/

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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


Re: [android-developers] Contents of List view (using a cursor adapter) are not updated \ refreshed

2010-08-26 Thread Mark Murphy
Use cursor.requery(). See here for a working example:

http://github.com/commonsguy/cw-android/tree/master/Database/Constants/

On Thu, Aug 26, 2010 at 1:08 AM, Vibhor Mahajan
mahajan.vib...@gmail.com wrote:
 Hello,

 I have a list which shows data from a database using a cursor adapter.
 Using Menu option I am updating my database (inserting more rows \
 deleting existing rows). When Menu operation completes, I want
 contents of list should show updated contents.

 I have tried using cursor.requery(); (or explicitly querying cursor
 again) and using adapter.notifydatasetchanged(), but with this list of
 contents are not updated.

 Kindly suggest how can I refresh the contents of the list

 Thanks,
 Vibhor

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




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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


[android-developers] Re: New to Android and programming

2010-08-26 Thread DanH
Teach yourself OO programming? Are you kidding?

The only programming class I ever had was one in Fortran, yet I know
OO inside and out (literally).  I'll agree that I don't get a lot of
the UML stuff, but that's more because I can see flaws in it.

But that's 40 years of experience.  I'll agree that one isn't going to
pick up OO in a few weeks, especially not starting out on Android.
I would say that one needs at least 6 months of fairly intensive
practice with other programming paradigms before advancing to Android.

Or contact Tim. ;)

On Aug 26, 2:53 am, Peter Webb r.peter.w...@gmail.com wrote:
 I would go further than that.

 If the OP has no programming experience, then Java/Android is an
 almost impossible starting point:

 1. The online doco is hopeless. Yes, as you say they all assume a
 pretty high level knowledge of Java to start with. Worse, for the
 beginner, is that unlike some other IDEs/environments I won't mention,
 the class library doco doesn't provide full functioning programs or
 even code snippets illustrating use. And these are hard and sometimes
 impossible to find.

 2. Teach yourself OO programming? Are you kidding? Teaching yourself
 Fortran, C, Pascal etc is hard enough, and Java/C#/C++ are that
 squared. It would be easier to learn C, then jump from there into
 Java. And Android isn't just Java, its XML as well. Learn all that
 when you have never written a program in your life?

 3. The environment is that much harder and slower to use because of
 the indirectness of cross-compling and running an emulator. When
 people first start coding, they are testing changes on a line-by-line
 basis, and the whole emulator thing is even more of a PITA.

 I love this stuff, don't get me wrong, and a lot of it is complicated
 and difficult because it has to be, but I can't think of a more
 difficult environment to learn programming for the first time than
 Java/Eclipse/Android.

 On Aug 26, 11:42 am, Indicator Veritatis mej1...@yahoo.com wrote:

  I'd even go one step of certainty further: it will definitely be a
  frustrating experience unless he learns enough Java first. Too many of
  the sample programs, whether in forums, in books on Android, or in the
  official Google tutorial, all use constructs that will otherwise
  appear mysterious and obscure, such as anonymous classes for Event
  Listeners, final static Strings for constants...

  But he does not need black belt level mastery of Java before starting
  Android. Orange belt is good enough;)

  On Aug 24, 5:29 am, TreKing treking...@gmail.com wrote: On Sun, Aug 22, 
  2010 at 1:32 AM, Droidblazer00 weilache...@gmail.comwrote:

So would it be better for me to learn Java before getting started with 
the
SDK and eclipse? Or is it just the same to jump right
in on App development and learn on the fly?

   Well, it's definitely not the same, but whether it's better really
   depends.
   Do you have other programming experience? Are you good at learning quickly
   on your own?

   If no to either, probably a good idea to take some time to learn Java on
   it's own. It has some quirks you need to learn. Android has quirks you 
   need
   to learn. Depending on your background, learning both those quirks, at the
   same time, will be an exercise in frustration.

   Good luck.

   ---­--
   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: how can i store a view in a .png file in emulator sdcard

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 1:24 AM, Shalini coolcool.shal...@gmail.com wrote:

 i mean i have done drawing on canvas and now i want to store the drawing as
 an image in sdcard


Please reply to the whole group. I don't know anything about saving a
Canvas, so I can't really help you. But I assume there are ways to render it
to a Bitmap which you should then be able to save somehow. I don't know
details, maybe someone else does.

-
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] Negative comment causing drop in sales

2010-08-26 Thread abowman
I've got an app in the marketplace that has no reported errors in the
developer console.  The last comment I received basically stated - if
the developer isn't going to fix the app everyone should get their
money back and the app should be taken off the marketplace.  Sales
have noticeable dropped ever since that comment was posted.

What can I do about this?  The app is functioning as it should, but
now people see the comment and think that there is something wrong
with it.

Is there anyway to respond to this false comment besides editing the
description of my app?

Is there anyway to get the comment removed, since there is nothing
wrong with the app?  If there was something wrong, I would fix 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: how can i store a view in a .png file in emulator sdcard

2010-08-26 Thread Shalini


On Aug 25, 2:36 pm, Shalini coolcool.shal...@gmail.com wrote:
 i had created a view and wanted to store it as a image in the sdcard
 of the emulator, i mean i have done drawing on canvas and now i want to store 
 the drawing as an image in sdcard
 how can i do this?/?
 please tell as soon as possible

-- 
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 make the eclipse to recognize my mobile phone?

2010-08-26 Thread Lidia G
Hello guys,

I am testing my android application and i want to run from eclipse using as 
external device Android phone. I know that it is possible to connect a mobile 
to PC by cable and that's all, the eclipse identifies the external device (the 
phone) as one of open emulators.
But, it is not working now?
How to make the eclipse to recognize my mobile phone?

I would appreciate any advice.
Lidy 



  

-- 
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: Greystripe experiences?

2010-08-26 Thread Abdul Mateen
Nah!! Admob is horrible. gave me $1.xx on 10K impressions.

On Wed, Aug 25, 2010 at 10:55 PM, ko5tik kpriblo...@yahoo.com wrote:

 you may try admob. CPM is OK (for my apps), fill rates over 95%,
 and monthly payments with a month delay.

 On Aug 26, 6:52 am, andfan22 andfa...@gmail.com wrote:
  Thanks for the info.
 
  Hmmm, that's a shame that their banner ads are only in beta.  I have
  no desire to include full screen ads in my app.
 
  Have you also tried mobclix?  I'd be interested in any comparisons
  between mobclix and greystripe.
 
  Cheers ...

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




-- 
Regards,
Abdul Mateen,
Software Engineer at Rounded Labs Ltd.
Linux Administrator at Addictive Mobility Inc
Mobile : +92-333-3265875.

-- 
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] Application installation

2010-08-26 Thread Surfer
Hi

  I am trying to install an application from within another
application. I know the usual way it to launch an intent with
Intent.ACTION_VIEW, present it to the user and let him agree and this
works. What i would like to do is perform a silent install, with no
user interaction. I'd like to mention that my application is a system
application, it has system rights! Still i can't seem to install it
using Intent.ACTION_PACKAGE_INSTALL.
I've set uses-permission
android:name=android.permission.INSTALL_PACKAGES/ in my manifest
and used this code:

Intent intent = new Intent(Intent.ACTION_PACKAGE_INSTALL);
installIntent.setDataAndType(apkUri, application/vnd.android.package-
archive);
startActivity(intent);

I get No Activity found to handle Intent on logCat.
What is the correct intent to launch the installer?

-- 
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 get Lat and Long about one bus line from google maps

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 4:49 AM, pyleaf lg.feixi...@gmail.com wrote:

 I mean how i can get the info about the link between bus stop and  Lat 
 Long.


What link, what bus stop (there are at least a few throughout the world,
you know).

If you're trying to get bus stop location information for plotting on a map,
for example, then Filip is correct. It also depends on the transit system
that owns said bus stop.

-
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 to make the eclipse to recognize my mobile phone?

2010-08-26 Thread Lidia G
Hello guys,

I am testing my android application and i want to run
 from eclipse using as external device Android phone. I know that it is 
possible to connect a mobile to PC by cable and that's all, the eclipse 
identifies the external device (the phone) as one of open emulators.
But, it is not working now?
I read about Developing on a Device from
http://developer.android.com/guide/developing/device.html
and when i turn on USB Debugging on my device  (step 2 from tutorial) - i see 
that PC recognizes new hardware: it says that New hardware is installed and 
ready to use.
But when i check if my device is connected by executing  adb devices  from 
your 
SDK tools/ directory - i can't see my device name listed.

How to make the eclipse to recognize my mobile phone?

I would appreciate any advice.
Lidy 




  

-- 
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] Negative comment causing drop in sales

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 7:28 AM, abowman abow...@gmail.com wrote:

 What can I do about this?


With the current system, not much.


 Is there anyway to respond to this false comment besides editing
 the description of my app?


Post your own comment directly after explaining that this is wrong and / or
have some friends do the same.

Alternatively, and this is more work, update your app to show a huge dialog
that states the comment is wrong and why.


 Is there anyway to get the comment removed, since there is nothing wrong
 with the app?


Nope. You can try marking the comment as Unhelpful (Version 2.2), or as
Spam, but I doubt either of those does much of anything, if anything at all.

Good luck.

-
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] Application installation

2010-08-26 Thread { Devdroid }
On 26 August 2010 14:34, Surfer kalik...@yahoo.com wrote:

 works. What i would like to do is perform a silent install,

You should not be able to do so.

-- 
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: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 3:31 AM, mot12 martin.hu...@gmail.com wrote:

 The problem with null pointers I can also see with my users.


I now have 19 more reports of the same problem in the Dev Console for the
free version and 16 for the paid version. Same stack trace, same
NullPointerException.


 I don't understand the above comment about statics either.
 Uninstalling the app presumably means that app being closed first. The
 updated version needs to be started by the user, it doesn't
 automatically replace what was in memory before.


Agreed, especially since users report the issue continues after a phone
reboot. Re-install is the only solution.

But it may be related to static data somehow. The null pointer people are
reporting is supposed to be set from a static list of predefined objects and
I just added this new static data in the last release, which probably
explains the surge in problems since last time. It's like the new static
data is being corrupted somehow.

-
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: MapActivity (MapView) Problem

2010-08-26 Thread tony obrien
Mr. Murphy --- excellent suggestion.
TreKing -- you too were on the right TraK.

Stare and compare revealed that I was missing the permission for
ACCESS_COARSE_LOCATION in the manifest.

How that translates into a Layout/PixelConverter problem is for
another study ;)

I would have expected to get a blank display -- not a crash.

Thanks, again.


On Aug 25, 5:16 pm, TreKing treking...@gmail.com wrote:
 On Wed, Aug 25, 2010 at 3:52 PM, tony obrien 
 tobsourcecode...@gmail.comwrote:

  I have all the appropriate Manifest entries, the simplest OnCreate --- 
  all it does is setContextView() to the xml with a mapview in it.

 Maybe post the layout file you're using? Maybe you have something goofy
 there.

 -
 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] Android application upgrade scenario

2010-08-26 Thread { Devdroid }
On 25 August 2010 08:22, Android Developer core.test.accou...@gmail.com wrote:
 I have a pre-installed application on device, when user upgrades
 application on pre-installed application, i want to show alert
 something similar change log when user opens the application. In pre-
 installed application, it's not  storing any version specific
 information.Is there any way to recognize user is upgraded from the
 pre-installed application?

Why do you even need to bother what version user upgraded from? The
simpliest approach could
be i.e. to store in app preferences app versionCode. On launch, check
if that prefs value exists.
if it does, check if value is lower than your versionCode, if it is,
user upgraded = show changelog.
If there's no prefs entry = show changelog as it is definitely old
code which did not store
such entry. Afterall store current versionCode so on next launch you
won't show changelog
as versionCodes would be equal.

-- 
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] Provide the security for SDCARD files

2010-08-26 Thread Rogério de Souza Moraes
Hi Raju,

may you can try to zip and unzip your folder with a password that just your
application knows.

Regards,

Rogerio

2010/8/26 Mark Murphy mmur...@commonsware.com

 On Thu, Aug 26, 2010 at 12:15 AM, raju bhusani raju.bhus...@gmail.com
 wrote:
 In my application 'x' there is a download manager which downloads
  a.mp3,b.mp3... and stored in the /sdcard/x/a.mp3.
 
  How to provide the security only my application can access the downloaded
  files not to the other applications?

 The SD card cannot be secured in this fashion, due to the filesystem
 used by SD cards.

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

 _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


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

Re: [android-developers] Re: Listing ROM apps

2010-08-26 Thread { Devdroid }
Hi,

I know how to do that, but I simply wondered if there's app I can use
instead of crafting my own
which just takes some time.

-- 
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] Negative comment causing drop in sales

2010-08-26 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/26/10 14:45 , TreKing wrote:
 On Thu, Aug 26, 2010 at 7:28 AM, abowman abow...@gmail.com
 mailto:abow...@gmail.com wrote:

 What can I do about this?


 With the current system, not much.


 Is there anyway to respond to this false comment besides editing
 the description of my app?


 Post your own comment directly after explaining that this is wrong
 and / or have some friends do the same.

 Alternatively, and this is more work, update your app to show a
 huge dialog that states the comment is wrong and why.


 Is there anyway to get the comment removed, since there is nothing
 wrong with the app?


 Nope. You can try marking the comment as Unhelpful (Version
 2.2), or as Spam, but I doubt either of those does much of
 anything, if anything at all.

If you have some registered users, or anyway you are in touch with
them, you might ask them to post a positive review. Even though people
can't distinguish your friends from your customers, having the latter
ones to post sounds as a better move.

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

iEYEARECAAYFAkx2ZzEACgkQeDweFqgUGxeTTwCfeBxJNBOqagsNXcNdQ5cuGPob
dM0AoJzgESjzanYTZFuqm8we3Jm7CQD4
=AVbT
-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] label on the left for RadioButton

2010-08-26 Thread Christophe
hello,

by default the label of a RadioButton in on the right of the
checkMarck. Is there a way to put the text on the left ?

regard,
christophe

-- 
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 store downloaded images in to android SD card

2010-08-26 Thread Rammi
Hi i am developing app which downloads the images from the web site
and then i am displaying them as slide show.  now i want save the
downloaded images into my SD card please help me.

My Current Trying Code is:

File imageFileFolder = new File(Environment

.getExternalStorageDirectory(), Signs of Life);
imageFileFolder.mkdir();
File imageFileName = new 
File(imageFileFolder, date
+ 
pBean.getAuthorName());

InputStream fis = 
pBean.getInputStream();

byte[] data = new byte[fis.available()];
fis.read(data);
FileOutputStream fos = new 
FileOutputStream(imageFileName);
fos.write(data);
fos.close();
fis.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: App breaks for some users after they update from the Market

2010-08-26 Thread mot12
If you think this is due to some specific code changes you just made,
you could of course have messed up. But I am sure you checked that.

I wonder what uninstalling does that a simple update doesn't
accomplish. Of course, there's the removal of the database,
preferences, and all that, but that alone doesn't explain the errors
you and I have seen. I will google this a bit and see if I can find
anything out.

-- 
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] Get responce from the UDP server

2010-08-26 Thread crajesh
Hi All,

   I am new in Android, I need to get responce from the UDP server
using the Intent method.

Is there a way to get the data using Intent?

Thanks
Remo

-- 
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 Emulator vs iPhone emulator (Why does it take so long)

2010-08-26 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/25/10 21:14 , Vedran Rodic wrote:
 On Wed, Aug 25, 2010 at 5:39 PM, Frank Weiss fewe...@gmail.com
 wrote:
 Just to be a bit cheeky, why use the Android emulator at all? You
 know it doesn't cost $99/year to to run your Android apps on a
 device.


 I'm worried about flash memory in my phone wearing down, + I
 mostly find it more convenient to have results on the same screen,
 on a device I don't have to hold in my hands.

I understand this, but you're taking high risks if you don't test on
real devices, since there are many things that can fail on a real
device and don't on the emulator. FYI, for several weeks at my
beginning of the development I believed that my app was fine with
Android 1.5, because it ran fine in the emulator, while it was
regularly crashing on 1.5 devices (nothing special depending on
hardware, such as GPS: it was just an icon resource placed in an
improper way). This also caused my ratings to start with a wonderful
1 star - it crashes on my phone that isn't precisely the best way to
present yourself to the world.

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

iEUEARECAAYFAkx2abUACgkQeDweFqgUGxdQIwCgpN9MfaTSM8m1GTXg0hFPNw0i
vLgAlAokSatM3W1vLMNQtTLDiKDJ1UM=
=L20j
-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: App breaks for some users after they update from the Market

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 8:17 AM, mot12 martin.hu...@gmail.com wrote:

 If you think this is due to some specific code changes you just made, you
 could of course have messed up. But I am sure you checked that.


Oh no, I don't think it's my code that's wrong, otherwise EVERYONE would be
complaining and reinstalling would not help. I just think the changes I made
have exacerbated the underlying problem in the update process.


 I wonder what uninstalling does that a simple update doesn't accomplish.


That's the key question. I wish I knew what the update process did in
detail. Any idea if it's in the Android source? I haven't looked, but I'll
check later when I get a chance (unless someone knows for sure either way
and can save me some time).


 I will google this a bit and see if I can find anything out.


Good luck. I've had no luck so far.

-
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: How to make the eclipse to recognize my mobile phone?

2010-08-26 Thread Brion Emde
You should not be taking over some other thread and changing its title
for a new subject. That makes it harder for others to search for the
original question and answer. You should, instead, start a whole new
thread with your new question.

You don't say what phone you are trying to use. Some phones require
special drivers to be able to connect correctly for Android
development. You should Google your phone and see if such drivers are
available for your phone.


On Aug 26, 8:49 am, Lidia G lidyp...@yahoo.com wrote:
 Hello guys,

 I am testing my android application and i want to run
  from eclipse using as external device Android phone. I know that it is
 possible to connect a mobile to PC by cable and that's all, the eclipse
 identifies the external device (the phone) as one of open emulators.
 But, it is not working now?
 I read about Developing on a Device 
 fromhttp://developer.android.com/guide/developing/device.html
 and when i turn on USB Debugging on my device  (step 2 from tutorial) - i 
 see that PC recognizes new hardware: it says that New hardware is installed 
 and ready to use.
 But when i check if my device is connected by executing  adb devices  from 
 your
 SDK tools/ directory - i can't see my device name listed.

 How to make the eclipse to recognize my mobile phone?

 I would appreciate any advice.
 Lidy

-- 
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] android manifest file from an unzipped apk cannot be read

2010-08-26 Thread Anil
I would like to read the android manifest from an apk file. I unzipped
it using 7-zip. However, the manifest seems to be in binary with some
ascii but a lot of control chars. Was it meant to be hidden? The
philosophy behind Android is to share and reuse activities - but if
the manifest cannot be read, then I dont know how it can be done.
thanks,
Anil

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


[android-developers] Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-26 Thread Moto
I'm getting a little concerned about the issue.  I know for a fact
that my application is doing very well from analytic...  But the
active installs are dropping daily by a lot! While my total downloads
are growing steadily as they always have!  I'm worried cause I know
that active installs affect an applications popularity and mine is
going to be dumped all the way to the bottom if this continues

So what's causing this issue? Two theories:
1. I recently allowed to install to SD card.
2. Android Market is broken?

Anyone seeing this issues?
-Moto

-- 
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] Showing Progress status for Multiple items exactly like Downloading in Mozilla Firefox

2010-08-26 Thread RamaMohan
HI all,
I have a problem ,please guide me.

I want to download multiple files at a time ,the situation is in one
activity the use clicks download the file ,then i am forwarding to the
activity where i am downloading using async task  and showing the
downloading status in horizontal progress bar.

It is working fine for single file download.
If user selects multiple downloads ,i have to show the progress status
of the two items.

Totally ,i have situation like how it happens downloading in  Mozilla
Firefox browser.

I have tried many ways,but i didn't get solved.Please help me.

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


[android-developers] save to sd

2010-08-26 Thread charles berman
I am struggling with this, if the image doesnt exist hello.jpg it does
create a new file, but when i execute the line of  FileOutputStream out =
new FileOutputStream(file);, i get a filenotfoundexception.

public static Bitmap getImage(String fileUrl)
{
Bitmap bitmap = null;
 InputStream in = null;
URL url;
 // Check to see if image allready exists
String imgName = fileUrl.substring(fileUrl.lastIndexOf(/)+1);
 String sdPath = /Barfly/+imgName;
 File imgFile = new File(sdPath);
 if (imgFile.exists())
{
 bitmap =  BitmapFactory.decodeFile(sdPath);
}
else
 {
try {
url = new URL(fileUrl);
 URLConnection ucon = url.openConnection();
in  = ucon.getInputStream();
 bitmap = BitmapFactory.decodeStream(in);
in.close();
File path = Environment.getExternalStorageDirectory();
 File dir = File(path,Barfly);

File file = new File(dir,imgName);
 boolean result = file.mkdirs();
result = file.createNewFile();
  try
{

 FileOutputStream out = new FileOutputStream(file);
bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);
}
catch (Exception e) {
   e.printStackTrace();
}
  }
catch (MalformedURLException e)
 {
 e.printStackTrace();
 }
catch (FileNotFoundException e)
{
 e.printStackTrace();
}
 catch (IOException e)
{
}
 catch (Exception e)
{
e.printStackTrace();
 }
}
 return bitmap;
 }
Charles Berman
313.790.9851

www.charlesberman.com

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

[android-developers] Re: How to store downloaded images in to android SD card

2010-08-26 Thread RamaMohan
Hi ,
Please visit this link
http://androidsnips.blogspot.com/2010/08/download-from-internet-and-save-to-sd.html

If any Problem,let me know.


On Aug 26, 6:16 pm, Rammi ram...@stellentsoft.com wrote:
 Hi i am developing app which downloads the images from the web site
 and then i am displaying them as slide show.  now i want save the
 downloaded images into my SD card please help me.

 My Current Trying Code is:

 File imageFileFolder = new File(Environment
                                                         
 .getExternalStorageDirectory(), Signs of Life);
                                         imageFileFolder.mkdir();
                                         File imageFileName = new 
 File(imageFileFolder, date
                                                         + 
 pBean.getAuthorName());

                                         InputStream fis = 
 pBean.getInputStream();

                                         byte[] data = new 
 byte[fis.available()];
                                         fis.read(data);
                                         FileOutputStream fos = new 
 FileOutputStream(imageFileName);
                                         fos.write(data);
                                         fos.close();
                                         fis.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: Button State does not toggle automatically!! Help!

2010-08-26 Thread Abhi
guys,

I have had no luck yet with getting this to work... any help would be
appreciated

thanks

On Aug 23, 1:40 am, Marian Raafat mar...@extremesolution.com
wrote:
 Hi,

 Trybutton.setEnabled(false);button.setEnabled(true);

 I hope that would help :)

 Marian



 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf OfAbhi
 Sent: Monday, August 23, 2010 4:30 AM
 To: Android Developers
 Subject: [android-developers]ButtonState does not toggle
 automatically!! Help!

 Guys,

 I am trying to get thebuttonin my layout to have focus as I am
 programmatically changing its state. My application is a video player
 using VideoView. I am toggling the state of thebuttonbased on where
 my video is. So basically, I am doing videoview.getCurrentPosition()
 and if it is in a certain window, I want to toggle myButtonstate
 (enabled to disabled and vice versa). The layout is LinearLayout and I
 have the VideoView andButtonlayed horizontally. When I first had the
 MediaController in my Video, thebuttonwould change focus on touching
 the videoview (which is when the MediaController would pop up). I
 later removed the controller because I didn't want thebuttonstate to
 change when the user touches the screen. I want it to change
 automatically.

 I tried all sorts of combinations 
 possible.button.setFocusable(),button.requestFocus(),button.bringToFront() 
 and so on. But none of
 them seem to work.

 Is there any way I can make it toggle programatically and without user
 intervention through touch? or is it impossible to do it with the
 VideoView?

 Thanks,

 Abhi

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: How to make the eclipse to recognize my mobile phone?

2010-08-26 Thread Lidia G

ok,I already solved my problem.
Thank you anyway.



--- On Thu, 8/26/10, Brion Emde brione2...@gmail.com wrote:

From: Brion Emde brione2...@gmail.com
Subject: [android-developers] Re: How to make the eclipse to recognize my 
mobile phone?
To: Android Developers android-developers@googlegroups.com
Date: Thursday, August 26, 2010, 1:37 PM

You should not be taking over some other thread and changing its title
for a new subject. That makes it harder for others to search for the
original question and answer. You should, instead, start a whole new
thread with your new question.

You don't say what phone you are trying to use. Some phones require
special drivers to be able to connect correctly for Android
development. You should Google your phone and see if such drivers are
available for your phone.


On Aug 26, 8:49 am, Lidia G lidyp...@yahoo.com wrote:
 Hello guys,

 I am testing my android application and i want to run
  from eclipse using as external device Android phone. I know that it is
 possible to connect a mobile to PC by cable and that's all, the eclipse
 identifies the external device (the phone) as one of open emulators.
 But, it is not working now?
 I read about Developing on a Device 
 fromhttp://developer.android.com/guide/developing/device.html
 and when i turn on USB Debugging on my device  (step 2 from tutorial) - i 
 see that PC recognizes new hardware: it says that New hardware is installed 
 and ready to use.
 But when i check if my device is connected by executing  adb devices  from 
 your
 SDK tools/ directory - i can't see my device name listed.

 How to make the eclipse to recognize my mobile phone?

 I would appreciate any advice.
 Lidy

-- 
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] Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-26 Thread Justin Giles
Join the club!  I was noticing a drop about 2 weeks ago, but I released an
update to my app that allowed installs to SD card and now it is plummeting
nearly 2-3K a day while my download count is steadily rising.  So far I've
dropped about 10,000 active installs since Sunday when I released the
update.  I think this is happening to everyone though because my position in
the market is holding steady.

Justin

On Thu, Aug 26, 2010 at 8:41 AM, Moto medicalsou...@gmail.com wrote:

 I'm getting a little concerned about the issue.  I know for a fact
 that my application is doing very well from analytic...  But the
 active installs are dropping daily by a lot! While my total downloads
 are growing steadily as they always have!  I'm worried cause I know
 that active installs affect an applications popularity and mine is
 going to be dumped all the way to the bottom if this continues

 So what's causing this issue? Two theories:
 1. I recently allowed to install to SD card.
 2. Android Market is broken?

 Anyone seeing this issues?
 -Moto

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

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

Re: [android-developers] Re: Greystripe experiences?

2010-08-26 Thread Justin Giles
AdMob is hit or miss for a lot of people.  Some do well with it, others do
not.  Mobclix has a horrible reputation for handling the payouts, but a good
reputation for having good CPMs.  I contacted Greystripe recently about
their banner ads and integration with AdWhirl on Android and they said they
are close to releasing integration with AdWhirl, which I would assume mean
that the banner ads for Android would come out of beta.  I think it would
behoove you to give several companies a try over a few months and see which
works best for  your type of application.

Justin

On Thu, Aug 26, 2010 at 7:34 AM, Abdul Mateen abmat...@gmail.com wrote:

 Nah!! Admob is horrible. gave me $1.xx on 10K impressions.

 On Wed, Aug 25, 2010 at 10:55 PM, ko5tik kpriblo...@yahoo.com wrote:

 you may try admob. CPM is OK (for my apps), fill rates over 95%,
 and monthly payments with a month delay.

 On Aug 26, 6:52 am, andfan22 andfa...@gmail.com wrote:
  Thanks for the info.
 
  Hmmm, that's a shame that their banner ads are only in beta.  I have
  no desire to include full screen ads in my app.
 
  Have you also tried mobclix?  I'd be interested in any comparisons
  between mobclix and greystripe.
 
  Cheers ...

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




 --
 Regards,
 Abdul Mateen,
 Software Engineer at Rounded Labs Ltd.
 Linux Administrator at Addictive Mobility Inc
 Mobile : +92-333-3265875.


  --
 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] Does WebView Support html5 video?

2010-08-26 Thread zohar lerman
Can I load in Webview page that use html5 video tag?

-Z

-- 
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] Flickering.

2010-08-26 Thread tina lincon
I am doing an application-infinitely rotating 3D cylinder in
openGl.The speed varies with finger touch but wen i reduce the speed,i
can see  flickering happening in animation towards right and
left.Initialy I thought it is because of the linked list im updating
but found out there is no such problem with my linked list .I'm using
a thread here for a small delay after each 30 degree rotation
drawing.I cant do it widout the thread coz i need a sleep or a delay
after each 30 degree drawing,if i remove the thread and implement the
code in thread inside my onDraw frame, the curvature rotation itself
goes and it appears that images are just left shifting n right
shifting coz the sleep is not getting identified in onDraw frame.So i
cant implement my logic here widout using thread..so thread is a must
in my logic but i guess the flickering is due to my thread...Is the
flickering issue during animation because of the thread?please do help
me with this flickering issue..dis is d thread part im using in my
code.
Runnable r1=new Runnable()
{
//Thread t1=new Thread(r1);
//t1.start();

public void run()
{
//t1.start();
while(true){

if(rotateFlagRight)
 {
mRenderer.rotationFlag = 1;
//System.out.println(positive 
value of dx+dx);

for(int i=0;i=30;i++)
{
mRenderer.mAngleXX= i;
if ((dx10) (dx50))
{
try {

Thread.sleep(100);
} catch 
(InterruptedException e1) {}
}
else if ((dx50) 
(dx100))
{
try {

Thread.sleep(10);
} catch 
(InterruptedException e1) {}
}
else if ((dx100) 
(dx150))
   {
try {

Thread.sleep(8);
} catch 
(InterruptedException e1) {}
   }
else if ((dx150) 
(dx200))
   {
try {

Thread.sleep(7);
} catch 
(InterruptedException e1) {}
   }
else if ((dx200) 
(dx250))
  {
try {

Thread.sleep(5);
} catch 
(InterruptedException e1) {}
  }
else if ((dx250) 
(dx300))
  {
try {

Thread.sleep(4);
} catch 
(InterruptedException e1) {}
  }
else if ((dx300) 
(dx350))
  {
try {

Thread.sleep(3);
} catch 

Re: [android-developers] Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 8:41 AM, Moto medicalsou...@gmail.com wrote:

 I'm worried cause I know that active installs affect an applications
 popularity and mine is going to be dumped all the way to the bottom if this
 continues


Have you noticed a change in your position as a result? I have not and my
stats too are dropping steadily and appear to have picked up after an update
over the weekend.


 So what's causing this issue? Two theories:
 1. I recently allowed to install to SD card.


I don't allow this, still seeing the problem.


  2. Android Market is broken?


Not necessarily broken, but it's doing something.


  Anyone seeing this issues?


Indeed. There's already a thread going on the issue titled Is anyone's
active install % dropping like a rock lately? Appears to be a common
problem so I wouldn't worry too much about it (which I know is easier said
than done as you watch that percentage plummet).

-
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: Negative comment causing drop in sales

2010-08-26 Thread Yahel
Take a look at this :

http://www.androlib.com/android.comment.author.smoke1331-pqEAB.aspx

The guys seems to be randomly picking apps and sending this comment :s

Good luck.

Yahel

On 26 août, 14:28, abowman abow...@gmail.com wrote:
 I've got an app in the marketplace that has no reported errors in the
 developer console.  The last comment I received basically stated - if
 the developer isn't going to fix the app everyone should get their
 money back and the app should be taken off the marketplace.  Sales
 have noticeable dropped ever since that comment was posted.

 What can I do about this?  The app is functioning as it should, but
 now people see the comment and think that there is something wrong
 with it.

 Is there anyway to respond to this false comment besides editing the
 description of my app?

 Is there anyway to get the comment removed, since there is nothing
 wrong with the app?  If there was something wrong, I would fix 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


Re: [android-developers] Re: Negative comment causing drop in sales

2010-08-26 Thread { Devdroid }
On 26 August 2010 16:25, Yahel kaye...@gmail.com wrote:
 Take a look at this :
 http://www.androlib.com/android.comment.author.smoke1331-pqEAB.aspx
 The guys seems to be randomly picking apps and sending this comment :s

There're idiots everywhere, especially in anonymous community. You can
send comment removal request to google via Contacting Us -
Android Market Developers: Publishers  Merchants form. They may help

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


[android-developers] Sharing code between apps as in Eclipse

2010-08-26 Thread Warren
I have ten, possibly more, apps I'm developing that all share logic.
50-75% of the logic is the same - perfect for some time of library or
code sharing. However, after reading the posts here and trying to
share code in Eclipse, I'm not sure that's going to work. I tried
going to project - properties - build path - link source and adding
the src and gen folders of the project with the shared code and then
importing the classes I need. That seems to work in the IDE, but gives
an error during runtime: class not found. This seems to be a common
error for people attempting this.

I am slowly deciding that shared code is not the best approach in this
scenario. Android doesn't seem to work well with this type of code
sharing. For one thing resources are not packed in libraries, but
references (R.whatever) must exist so as not to create errors. This
can be designed around, but the effort and headache is probably worse
than simply creating multiple copies.

What are you thoughts on the topic?  My experience seems typical,
based on what I've read. Is it? Have you experienced success or
failure with sharing code and/or custom libraries?  Am I off-base in
thinking that multiple code copies will be smoother sailing than
fighting the shared code approach?

-- 
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] Excellent UI Design from TAT

2010-08-26 Thread argon gold
TAT has designed an excellent UI for android . Please check it here .

http://www.youtube.com/watch?v=bOGmnnGpoqg

I want to know if you guys have any idea what specific technology (beside
OpenGL ES) they are using to design this kind of effects?
Does any body know how to achieve Paper Roll Off effect and others .
Please put any link if you guys have it.


Regards,
argongold

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

2010-08-26 Thread Fabrizio Giudici
I've spotted this thread only now. It's happening to me too - in a
week it dropped from a _steady_ 45% (held since several weeks) to 36%,
with a single new active install out of regularly increasing new
downloads. I even posted that on my blog - a commenter pointed out
that when people upgrade an app the download counter might increase,
while the active install doesn't (actually, I've released two updates
in this month). Can you confirm?

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

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 9:47 AM, Fabrizio Giudici 
fabrizio.giud...@tidalwave.it wrote:

 a commenter pointed out that when people upgrade an app the download
 counter might increase, while the active install doesn't


That would make sense and explain why pushing out an update makes it drop
faster. Guess we'll just have to wait for a blog post.

-
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: Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-26 Thread Moto
Yeah... seeing results drop like that are very discouraging when you
work so hard on an app...  But I feel much better that it's not only
me...  Cause it hurts to see those really low numbers...

-Moto

On Aug 26, 10:22 am, TreKing treking...@gmail.com wrote:
 On Thu, Aug 26, 2010 at 8:41 AM, Moto medicalsou...@gmail.com wrote:
  I'm worried cause I know that active installs affect an applications
  popularity and mine is going to be dumped all the way to the bottom if this
  continues

 Have you noticed a change in your position as a result? I have not and my
 stats too are dropping steadily and appear to have picked up after an update
 over the weekend.

  So what's causing this issue? Two theories:
  1. I recently allowed to install to SD card.

 I don't allow this, still seeing the problem.

   2. Android Market is broken?

 Not necessarily broken, but it's doing something.

   Anyone seeing this issues?

 Indeed. There's already a thread going on the issue titled Is anyone's
 active install % dropping like a rock lately? Appears to be a common
 problem so I wouldn't worry too much about it (which I know is easier said
 than done as you watch that percentage plummet).

 -
 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: Passing variables using intents

2010-08-26 Thread TreKing
On Wed, Aug 25, 2010 at 8:44 PM, kingh32 horaceb1...@gmail.com wrote:

 Would you happen to know what it means if when trying to do a setText the
 data shows as either null or a blank?


Probably that the string you set is either null or empty ...

-
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: TweetDeck android app like column view

2010-08-26 Thread warenix
I found an approach by extending the gallery widget.
the look and feel is quite similar to what i want.

On 8月21日, 下午11時34分, warenix ware...@gmail.com wrote:
 Hi! The add/remove columns UI of TweetDeck android app is very
 promising. But I have no idea how to make one like that.

 If I make it with HorizontalScrollView, and the children with
 layout_width set to fill_parent

 HorizontalScrollView
        LinearLayout android:id=@+id/column_group_view
                 android:layout_width=fill_parent
 android:layout_height=fill_parent
                 android:orientation=horizontal
                 include layout=@layout/column_view1
 android:layout_width=fill_parent
                         android:layout_height=fill_parent /
                 include layout=@layout/column_view2
 android:layout_width=fill_parent
                         android:layout_height=fill_parent /
         /LinearLayout
 /HorizontalScrollView

 I can't scroll horizontally and only see one view.

 If I set the layout_width with number like this: layout_width=320sp
 then the two columns sit next to each other and I can scroll
 horizontally.

 Do you have any idea how TweetDeck makes theirs?

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


[android-developers] Re: android manifest file from an unzipped apk cannot be read

2010-08-26 Thread Chris Stratton
Sharing and re-using other people's code without their permission is
not part of the philosophy.  Generally, when someone grants permission
as a practical matter they also make the source code available.

With regard to the technical question, the file is in some kind of
quasi unicode binary format.  If you get a program called apktool it
can extract and repack the xml files, resources, and bytecode,
translating between binary and plain text forms.

On Aug 26, 9:41 am, Anil anil.r...@gmail.com wrote:
 I would like to read the android manifest from an apk file. I unzipped
 it using 7-zip. However, the manifest seems to be in binary with some
 ascii but a lot of control chars. Was it meant to be hidden? The
 philosophy behind Android is to share and reuse activities - but if
 the manifest cannot be read, then I dont know how it can be done.
 thanks,
 Anil

-- 
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: iJetty and SQLite

2010-08-26 Thread kypriakos
Not a bad idea - I will try that. I have databases running on mysql on
other
types  of mobile devices but I don't suppose that format is compatible
with
SQLite. I will look into that anyway but you answered my question.

Thanks much

On Aug 25, 5:37 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 SQLite database file format is portable. You can create the database on your
 desktop computer and push it to the device or include in the .apk as an
 asset.

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

 26.08.2010 1:21 пользователь kypriakos demet...@ece.neu.edu написал:

 Hi all,

 I managed to configure iJetty on the emulator and I am setting up
 both a REST-based and SOAP-based services on it.

 Regarding sqlite3. I am able to run and control it remotely using
 the shell. is there a way to generate databases on the device
 using the remote tool? I didn't find any evidence that that is
 possible
 and I think the only way may be through the API. I just wanted to
 double check in case I missed this.

 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 
 athttp://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] Taking a Picture

2010-08-26 Thread Pedro Teixeira

The thing is.. in my  XML code for the camera preview
I have an Image with some transparency overlaid on the entire screen  
also.


So I think that migh be the reason why a syrface click doesn't execute  
anything..


Do u know how can I go through this without having to take the picture  
out?


Can I make the ImageView be the trigger for a picture to be taken?

I mean.. I need the function to take a picture when I touch a screen  
no matter whats there or when I touch the picture which is the object  
in the front. the camera is behind the picture, layer-speaking


any idea ?

On Aug 26, 2010, at 12:36 PM, Mark Murphy wrote:


On Thu, Aug 26, 2010 at 4:04 AM, Pedro Teixeira
pedroteixeir...@gmail.com wrote:
Does anybody has a clue? no one had implemented a camera on  
surfaceview and

take a picture?


http://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture/

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

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


Pedro Teixeira

www.pedroteixeira.org

--
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: GPS Co-ordinates if the mobile is off

2010-08-26 Thread TreKing
On Thu, Aug 26, 2010 at 1:19 AM, uday uday.pic...@gmail.com wrote:

 Is there any way to Switch on the GPS system when the device boot up time??


You can register for the BOOT_COMPLETE broadcast event and do what you want,
though I doubt you can enable GPS if it's not already.

-
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: Licensing server, app cracked.

2010-08-26 Thread sblantipodi
Is this the guide you are talking about?
To ensure the security of your application, particularly for a paid
application that uses licensing and/or custom constraints and
protections, it's very important to obfuscate your application code.
Properly obfuscating your code makes it more difficult for a malicious
user to decompile the application's bytecode, modify it — such as by
removing the license check — and then recompile it.

Several obfuscator programs are available for Android applications,
including ProGuard, which also offers code-optimization features. The
use of ProGuard or a similar program to obfuscate your code is
strongly recommended for all applications that use Android Market
Licensing. 

Is this a guide?

On Aug 25, 1:26 am, Nick Richardson richardson.n...@gmail.com wrote:
 The guide is linked in the article you posted...

 On Tue, Aug 24, 2010 at 3:53 PM, sblantipodi
 perini.dav...@dpsoftware.orgwrote:

  As title,

 http://android-developers.blogspot.com/2010/08/licensing-server-news

  where is the guide to obfuscate our code?

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

 --
 //Nick Richardson
 //richardson.n...@gmail.com

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


[android-developers] Can anybody tell me how read the source code of Android sdk. not class files

2010-08-26 Thread Dev Android


-- 
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] MediaPlayer Error (1,-1004)

2010-08-26 Thread Priyank
Hi,

I am getting an error (1,-1004) when i try to play a .amr file.
The file is about 15 seconds long and after playing for about 4
seconds, it stops and I get this error.

I am making the calls just as mentioned in the docs..
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(PATH_TO_FILE);
mp.prepare();
mp.start();

Could anyone please help me out here.
Is there any documentation related to Media player errors..

Thanks,
Priyank

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


[android-developers] Re: Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-26 Thread Chris Stratton
Sounds like a great idea!  I believe qemu and the android emulator on
top of it are both open source, so go for it!

On Aug 25, 4:02 pm, Bret Foreman bret.fore...@gmail.com wrote:
 VMWare can do this. It can save the running state of everything on an
 instance and restore and resume where it left off. The emulator would
 never even know it had been interrupted.

 On Aug 25, 12:17 pm, Denis Souza denis.so...@gmail.com wrote:



  I guess the emulator's problem could be solved with some sort of save
  state feature so you can just start up the emulator with the saved
  state and not have to go through the entire android boot process.

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


Re: [android-developers] Can anybody tell me how read the source code of Android sdk. not class files

2010-08-26 Thread TreKing

 On Thu, Aug 26, 2010 at 10:42 AM, Dev Android devandroid1...@gmail.comwrote:

Can anybody tell me how read the source code of Android sdk


1 - Learn to read English
2 - Learn to read Java
3 - Profit

-
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: Negative comment causing drop in sales

2010-08-26 Thread Chris Stewart
It's a tough situation.  On one hand, comments like that may actually be
truthful and useful to future users.  But in some cases, such as the person
mentioned above, it's just flat out useless and wrong.  I'm not sure there's
any easy answer or even an easy proposal to be offered to Google to correct
it.

--
Chris Stewart
http://chriswstewart.com

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



On Thu, Aug 26, 2010 at 10:29 AM, { Devdroid } webnet.andr...@gmail.comwrote:

 On 26 August 2010 16:25, Yahel kaye...@gmail.com wrote:
  Take a look at this :
  http://www.androlib.com/android.comment.author.smoke1331-pqEAB.aspx
  The guys seems to be randomly picking apps and sending this comment :s

 There're idiots everywhere, especially in anonymous community. You can
 send comment removal request to google via Contacting Us -
 Android Market Developers: Publishers  Merchants form. They may help

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


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

Re: [android-developers] OpenGL GL11 does not work on some 2.2 Devices

2010-08-26 Thread Leigh McRae
 How do you know it doesn't support 1.1?  Either way I would assume 
that just because the Android OS supports 1.1 doesn't mean that the 
device does.


Leigh

On 8/25/2010 3:52 AM, MijatD wrote:

Hy ,
I’ve tested my app one some devices. On the HTC Desire, some LG device
and on a third device. And there I get my problem. This device works
on Android 2.2 but don’t support OpenGL 1.1?
I think that this must be a hardware problem, but I’m not sure. Does
anyone know a solution, or does anyone had the same problem?

Greetings,
D



--
Leigh McRae
www.lonedwarfgames.com

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


Re: [android-developers] Re: Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-26 Thread Chris Stewart
Yeah I can imagine.  I think what you should focus on is that your downloads
are _steadily_ rising.  That's really what matters most and so if that
continues and your position isn't being affected, negatively, I wouldn't
worry too much about it.

--
Chris Stewart
http://chriswstewart.com

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



On Thu, Aug 26, 2010 at 10:52 AM, Moto medicalsou...@gmail.com wrote:

 Yeah... seeing results drop like that are very discouraging when you
 work so hard on an app...  But I feel much better that it's not only
 me...  Cause it hurts to see those really low numbers...

 -Moto

 On Aug 26, 10:22 am, TreKing treking...@gmail.com wrote:
  On Thu, Aug 26, 2010 at 8:41 AM, Moto medicalsou...@gmail.com wrote:
   I'm worried cause I know that active installs affect an applications
   popularity and mine is going to be dumped all the way to the bottom if
 this
   continues
 
  Have you noticed a change in your position as a result? I have not and my
  stats too are dropping steadily and appear to have picked up after an
 update
  over the weekend.
 
   So what's causing this issue? Two theories:
   1. I recently allowed to install to SD card.
 
  I don't allow this, still seeing the problem.
 
2. Android Market is broken?
 
  Not necessarily broken, but it's doing something.
 
Anyone seeing this issues?
 
  Indeed. There's already a thread going on the issue titled Is anyone's
  active install % dropping like a rock lately? Appears to be a common
  problem so I wouldn't worry too much about it (which I know is easier
 said
  than done as you watch that percentage plummet).
 
 
 -
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

Re: [android-developers] Can anybody tell me how read the source code of Android sdk. not class files

2010-08-26 Thread Frank Weiss
code.android.com

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


Re: [android-developers] Signing key got corrupted some how. Getting Invalid Keystore Format in the Eclipse signing wizard.

2010-08-26 Thread TreKing
On Wed, Aug 25, 2010 at 1:02 PM, Bryan
practicallysimplesoftw...@gmail.comwrote:

 I have a paid application, that I recently published.


Congrats.


 For one reason or another, I didn't make a backup copy of the
 key signature.


Uh oh.


 Would I issue refunds for the original purchase for users that purchase the
 new, separate application?


Probably, if they even managed to find out that you've launched a new one.


 That is what I had thought of as a solution, but am not sure how
 that works, or what the process is to do that, if it's even possible.


For each order you have in Google Checkout, clicking the summary brings you
to a detail page for the order. Around the top center there is a button for
Refund Some Money or something like that.

-
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] Can anybody tell me how read the source code of Android sdk. not class files

2010-08-26 Thread Dev Android
Thanks Frank !

On Thu, Aug 26, 2010 at 9:37 PM, Frank Weiss fewe...@gmail.com wrote:

 code.android.com

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


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

Re: [android-developers] Re: Unserializing objects via the Hessian web protocol leads to ClassNotFoundException

2010-08-26 Thread Kostya Vasilyev

 26.08.2010 14:24, Kevin Read ?:

I'll try to shoehorn the PHP class names into the fully qualified Java
class name. The issue here is that the web service is also used by the
iPhone client, where the deserialization is completely custom-built,
so I'll have to tread lightly*sighs*

I think it's easier to fix it on the client (Android) side.

Put all Hessian-izable objects in one package, and make a change in the 
piece of code you posted earlier to always add the package name.


No changes to the PHP side - no worries about breaking the iPhone client.

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


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

[android-developers] Gallery widget, focus and selection gone?

2010-08-26 Thread Sebastián Treu
Hi there,

I'm trying to realize how the focus and selection in the Gallery
widget is doing their job. I'm facing weird situations when trying to
update information (TextViews and Spinner) upon a selected item in the
Gallery. The focus and selection is lost. So, using the resource
gallery_item_background will end in showing the unselected
background for the current selected image. I have used the .xml that
came with the android sdk, and I can't realize how this is happening.
I have set setFocusable(false) and setFocusableInTouchMode(false) to
all other Views to try out (and true for the Gallery) without any
luck.

I have also add 'in-situ' debug, that is, a menu that updates
differents widgets when onItemSelected() is called. So I can see while
using the application how the background resource is applied. When set
to 'no update' the obvious thing happens. None of the widgets are
updated with new values, and the background resource works as
expected. When set to 'manual update' (an update in the listener that
do: .setText() on the textview) does work depending the current View
that is showing the TextViews (I have a ViewFlipper that display 2
differents Layout of the TextViews).

I know that It can be complicated to understand the scenario without
the code, but basically, updating the Spinner will always remove the
focus from the Gallery (the Spinner was set no-focusable before) and
the image resource background will be set as unselected.

How can I manage this updates? I also call requestFocus() and
requestFocusFromTouch() after the updates are made. I can't realize
where is the problem. I have an update that is made by a handler.
Happens the same thing.

Any idea how should I manage an update to other widgets upon a
selection on the Gallery without losing focus or the selected state of
the image view?

Thanks,

-- 
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] Android refresh StateListDrawable problem

2010-08-26 Thread Romain Guy
You are using a custom state that does not map to the built-in
state_selected. Instead of doing this, just call
setSelected(true/false) on your textView. There's nothing else to do.

On Thu, Aug 26, 2010 at 12:50 AM, maxandroid maxcarl...@gmail.com wrote:
 Hi all,
 I have a strange problem with StateListDrawable or maybe (probably)
 I'm missing something. I created a test application for it and the
 same problem occurs. So, this is my StateListDrawable resourse in file
 test_selection.xml

    ?xml version=1.0 encoding=utf-8?
    selector xmlns:android=http://schemas.android.com/apk/res/
 android
     item android:state_selected=true
      shape android:shape=rectangle android:background=#ff
       corners android:radius=10dp /
       gradient android:startColor=#ff
        android:endColor=#ff android:angle=0 /
      /shape
     /item
     item android:state_selected=false
      shape android:shape=rectangle android:background=#ee
       corners android:radius=10dp /
       gradient android:startColor=#ee
        android:endColor=#ee android:angle=0 /
      /shape
     /item
    /selector

 It's a very simple selector that draw a red color for selected state
 and a white rect for the unselected one.

 My main.xml template is very simple. I simply use a TextView that uses
 the selection as background.

    ?xml version=1.0 encoding=utf-8?
    LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:orientation=vertical android:layout_width=fill_parent
     android:layout_height=fill_parent
     TextView android:layout_width=fill_parent
      android:layout_height=wrap_content android:text=@string/
 hello
      android:textSize=30dp android:id=@+id/test_view_example
 android:background=@drawable/test_selection/
     Button android:layout_width=wrap_content
      android:layout_height=wrap_content android:id=@+id/refresh
      android:onClick=updateView android:text=refresh/Button
    /LinearLayout

 My Activity code is also very simple.

    public class TestDrawableStateActivity extends Activity {

     private final static int[] SELECTED_STATE =
 { android.R.attr.state_selected };
     private final static int[] UNSELECTED_STATE = {};

     private TextView textView;

     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      textView = (TextView) findViewById(R.id.test_view_example);
     }

     @Override
     protected void onResume() {
      super.onResume();
      // Carichiamo la Drawable
      if(textView.getBackground().setState(SELECTED_STATE)){
       textView.invalidate();
      }
     }

     public void updateView(View view) {
      if(textView.getBackground().setState(SELECTED_STATE)){
       textView.invalidate();
      };
     }
    }

 When Activity starts I try to set the state of my Drawable (the
 StateListDrawable) with the value SELECTED.
 It seems all very simple but the problem is that the state is not
 shown. If, later, I click a button and execute the method updateView()
 the state changes.
 Where is my problem? Where am I wrong?

 Thankx a lot
 Max

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




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

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

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


[android-developers] Need help getting app to play sounds

2010-08-26 Thread ericmahlon
In my class I have an OnTouchEvent and when a certain area is clicked,
it will play a sound (Not sure if this is the best way to go about
this?).  However I have been running into bugs using the MediaPlayer.
Sound will double play and then eventually sound will stop
completely.  I am wondering how to efficiently play 5 sounds.  The
user will be clicking the screen in different areas and different
sounds will be playing.  I have the attached code below but it only
has the first areasay I add in another area how would I go about
changing the media player to play a different sound.


@Override
public boolean onTouchEvent(MotionEvent e)
{

x = e.getX();
y = e.getY();

if (x = 232  x=287  y=117  y=157) {
 //PLAY SOUND
}

return true;

}

-- 
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: Negative comment causing drop in sales

2010-08-26 Thread niko20
Long press and mark the comment as spam



On Aug 26, 10:51 am, Chris Stewart cstewart...@gmail.com wrote:
 It's a tough situation.  On one hand, comments like that may actually be
 truthful and useful to future users.  But in some cases, such as the person
 mentioned above, it's just flat out useless and wrong.  I'm not sure there's
 any easy answer or even an easy proposal to be offered to Google to correct
 it.

 --
 Chris Stewarthttp://chriswstewart.com

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

 On Thu, Aug 26, 2010 at 10:29 AM, { Devdroid } 
 webnet.andr...@gmail.comwrote:



  On 26 August 2010 16:25, Yahel kaye...@gmail.com wrote:
   Take a look at this :
  http://www.androlib.com/android.comment.author.smoke1331-pqEAB.aspx
   The guys seems to be randomly picking apps and sending this comment :s

  There're idiots everywhere, especially in anonymous community. You can
  send comment removal request to google via Contacting Us -
  Android Market Developers: Publishers  Merchants form. They may help

  --
  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%2Bunsubs 
  cr...@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: Need help getting app to play sounds

2010-08-26 Thread Matty
It depends on what type of audio you want to play... If you're playing
short WAV files, maybe you should look at AudioTrack instead of
MediaPlayer?  MediaPlayer has worked perfectly well for me with MP3s
though.  Maybe review the MediaPlayer State Diagram if you're having
trouble...



On Aug 26, 12:25 pm, ericmahlon ericmah...@hotmail.com wrote:
 In my class I have an OnTouchEvent and when a certain area is clicked,
 it will play a sound (Not sure if this is the best way to go about
 this?).  However I have been running into bugs using the MediaPlayer.
 Sound will double play and then eventually sound will stop
 completely.  I am wondering how to efficiently play 5 sounds.  The
 user will be clicking the screen in different areas and different
 sounds will be playing.  I have the attached code below but it only
 has the first areasay I add in another area how would I go about
 changing the media player to play a different sound.

 @Override
     public boolean onTouchEvent(MotionEvent e)
     {

         x = e.getX();
         y = e.getY();

         if (x = 232  x=287  y=117  y=157) {
              //PLAY SOUND
     }

         return true;

 }



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


  1   2   3   >