[android-developers] Re: Render Script samples does't show anything

2011-02-28 Thread webmonkey
non-graphical ones (HelloCompute) don't run either in the emulator.
You get:

ERROR/RenderScript(514): 0x14fdd0, couldn't find an EGLConfig matching
the screen format

And then a fatal crash in LibRS.so

On Feb 28, 8:17 am, Romain Guy romain...@android.com wrote:
 You must run them on a device, they won't work on the emulator (at least not
 the graphical ones.)





 On Sun, Feb 27, 2011 at 9:03 PM, mmkr manutd...@gmail.com wrote:
  Hi all,

        I tried to run the render script samples, but it doesn't show
  anything and crashes.
  Did any one face this issue? Or is there any other way to run those
  sample ?

  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

 --
 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] Re: How to turn on the sound in the Android Emulator?

2011-02-28 Thread ThaMe90
Anybody got an idea about this?

On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote:
 I don't think so... I use API level 8 to develop... So I doubt this is
 the issue...

 On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote:

  You should be getting sound from the emulator by default on Windows 7,
  but maybe issue 14953http://code.google.com/p/android/issues/detail?id=14953
  affects you too?

  On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote:

   Hello all, I wonder how to turn on the sound in the Android Emulator?
   I've 2 headsets connected to my pc, but I can't seem to get sound on
   either of them (One is connected through USB, the other through a
   3.5mm Jack). I've set the AVD I use to enable Audio Input  Output,
   and I have set the start-up option -audio winaudio. But I still
   can't hear anything...

   I am working with Eclipse, and I'm running Windows7 32bit OS.

   I've searched all over the internet, but all threads (as cryptic and
   short they may be) all address to this issue on Linux systems...
   Haven't been able to find anything on Windows systems though.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Render Script samples does't show anything

2011-02-28 Thread Romain Guy
RenderScript needs OpenGL ES 2.0 which is not supported by the emulator.
Although the compute part should normally not need it.

On Mon, Feb 28, 2011 at 12:02 AM, webmonkey webmonke...@gmail.com wrote:

 non-graphical ones (HelloCompute) don't run either in the emulator.
 You get:

 ERROR/RenderScript(514): 0x14fdd0, couldn't find an EGLConfig matching
 the screen format

 And then a fatal crash in LibRS.so

 On Feb 28, 8:17 am, Romain Guy romain...@android.com wrote:
  You must run them on a device, they won't work on the emulator (at least
 not
  the graphical ones.)
 
 
 
 
 
  On Sun, Feb 27, 2011 at 9:03 PM, mmkr manutd...@gmail.com wrote:
   Hi all,
 
 I tried to run the render script samples, but it doesn't show
   anything and crashes.
   Did any one face this issue? Or is there any other way to run those
   sample ?
 
   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
 
  --
  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




-- 
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] Re: How to turn on the sound in the Android Emulator?

2011-02-28 Thread ThaMe90
Anybody got an idea about this?

On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote:
 I don't think so... I use API level 8 to develop... So I doubt this is
 the issue...

 On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote:

  You should be getting sound from the emulator by default on Windows 7,
  but maybe issue 14953http://code.google.com/p/android/issues/detail?id=14953
  affects you too?

  On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote:

   Hello all, I wonder how to turn on the sound in the Android Emulator?
   I've 2 headsets connected to my pc, but I can't seem to get sound on
   either of them (One is connected through USB, the other through a
   3.5mm Jack). I've set the AVD I use to enable Audio Input  Output,
   and I have set the start-up option -audio winaudio. But I still
   can't hear anything...

   I am working with Eclipse, and I'm running Windows7 32bit OS.

   I've searched all over the internet, but all threads (as cryptic and
   short they may be) all address to this issue on Linux systems...
   Haven't been able to find anything on Windows systems though.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Render Script samples does't show anything

2011-02-28 Thread webmonkey
 Although the compute part should normally not need it

That is why it is weird that it start to init GL:

VERBOSE/RenderScript(514): rsContextCreate 0x151048
VERBOSE/RenderScript(514): RS Launching thread(s), reported CPU count
1
VERBOSE/RenderScript(514): initGLThread start 0x14fdd0
VERBOSE/RenderScript(514): 0x14fdd0 initEGL start
DEBUG/libEGL(514): egl.cfg not found, using default config
DEBUG/libEGL(514): loaded /system/lib/egl/libGLES_android.so
ERROR/RenderScript(514): 0x14fdd0, couldn't find an EGLConfig matching
the screen format

Too bad, but the Emulator is probably not be best choice for testing
compute scripts anyway :-)

We really need access to Honeycomb devices outside the US.

On Feb 28, 9:07 am, Romain Guy romain...@android.com wrote:
 RenderScript needs OpenGL ES 2.0 which is not supported by the emulator.
 Although the compute part should normally not need it.





 On Mon, Feb 28, 2011 at 12:02 AM, webmonkey webmonke...@gmail.com wrote:
  non-graphical ones (HelloCompute) don't run either in the emulator.
  You get:

  ERROR/RenderScript(514): 0x14fdd0, couldn't find an EGLConfig matching
  the screen format

  And then a fatal crash in LibRS.so

  On Feb 28, 8:17 am, Romain Guy romain...@android.com wrote:
   You must run them on a device, they won't work on the emulator (at least
  not
   the graphical ones.)

   On Sun, Feb 27, 2011 at 9:03 PM, mmkr manutd...@gmail.com wrote:
Hi all,

      I tried to run the render script samples, but it doesn't show
anything and crashes.
Did any one face this issue? Or is there any other way to run those
sample ?

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

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

 --
 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] How can we get handle of GUI controls in Android?

2011-02-28 Thread raki
Hi,

To automate GUI controls of windows based applications, we use UISpy
to get the Automation ID, Name, ClassName etc. for the UI controls
like checkbox, combobox.

How do we achieve this in Android OS? What is the equivalent for UISpy
in Android ?

Thanks,
Rakesh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can we get handle of GUI controls in Android?

2011-02-28 Thread Romain Guy
Unfortunately, there is no equivalent.

On Mon, Feb 28, 2011 at 12:14 AM, raki rakeshkart...@gmail.com wrote:

 Hi,

 To automate GUI controls of windows based applications, we use UISpy
 to get the Automation ID, Name, ClassName etc. for the UI controls
 like checkbox, combobox.

 How do we achieve this in Android OS? What is the equivalent for UISpy
 in Android ?

 Thanks,
 Rakesh

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: How to resize an icon at run time to achieve specific size

2011-02-28 Thread argongold
Hi Guys,

I've found the solution and in case you guys are interested the
following code will do the work for icon resize.

Regards,
argongold
--

public Drawable scaleIcon(Drawable mIcon){

int width = mIcon.getMinimumWidth();
int height = mIcon.getMinimumHeight();

int newWidth = 42;
int newHeight = 42;


// calculate the scale to apply
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;


 // createa matrix for the manipulation
Matrix matrix = new Matrix();

// resize the bit map
matrix.postScale(scaleWidth, scaleHeight);

// recreate the new Bitmap
Bitmap bmp = ((BitmapDrawable) mIcon).getBitmap();
Bitmap resizedBitmap = Bitmap.createBitmap(bmp, 0, 0, width,
height, matrix, true);

// make a Drawable from Bitmap to allow to set the BitMap
// to the ImageView, ImageButton or what ever
BitmapDrawable newIcon = new BitmapDrawable(resizedBitmap);

return newIcon;
}














On Feb 28, 2:26 pm, argongold argongol...@gmail.com wrote:
 Hello,

 I am working on an android application for which I need to get
 specific size of icons as I am displaying on smaller scale.
 Is there a straight forward way to resize/scale an icon to achieve its
 specific size.

 Kind 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: ListView/ExpandableListView Imageview flicking

2011-02-28 Thread Sao Kim Beng
Already found the issue..
If the image is read from SD card or memory. it will flick.
and it will not flick if the image is from Drawable resource.

Now thinking how to counter this issue. not sure is it possible to
drag the external image into drawable programmatically.

On Feb 28, 12:55 pm, Sao Kim Beng kbsa...@gmail.com wrote:
 Thanks.
 I will try on the method.

 On Feb 27, 3:26 pm, Rajesh Kumar rajnitj.g...@gmail.com wrote:







  Rather than Base Adapter use ArrayAdapter.NotifyDataSetChanged will call for
  all views which are currently Visible.Try to invalidate layout.I hope it
  will work.

  On Sat, Feb 26, 2011 at 6:31 AM, Justin Anderson 
  magouyaw...@gmail.comwrote:

   We can help better if you post your code...
   On Feb 24, 2011 10:01 PM, Sao Kim Beng kbsa...@gmail.com wrote:
Hi All,
i have a listview/ExpandableListView contain Imageview and some text.
I facing a problem when there is a new entry in and i try to update
the list , after i try to refresh the BaseAdapter/
BaseExpandableListAdapter by calling notifyDataSetChanged, every
imageview will flicking once.

It like loading all the image again from top to bottom again, is it
any way to just update those data and show to the user without
flicking?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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


[android-developers] Re: Switch to already opened application from Notification

2011-02-28 Thread Tina
It does not work :(
Now I creates EmptyActivity and start it istead of MyAppMainActivity

public class EmptyActivity  extends Activity{
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
boolean startNew = true;
if( getIntent().getExtras() != null)
startNew = !
getIntent().getExtras().getBoolean(OnlyIfStarted);

if(startNew)
if(isTaskRoot()){
Intent intent = new Intent(this, 
MyAppMainActivity.class);
startActivity(intent);
}

finish();
}
}

On 27 янв, 22:38, Mark Murphy mmur...@commonsware.com wrote:
 Instead of:

 Intent.FLAG_ACTIVITY_SINGLE_TOP |
 Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY

 try:

 Intent.FLAG_ACTIVITY_SINGLE_TOP |
 Intent.FLAG_ACTIVITY_CLEAR_TOP



 On Thu, Jan 27, 2011 at 11:44 AM,Tinatina...@gmail.com wrote:
  Hi, all
  I have service and application. In some cases my service creates
  Ongoing Notification in the Status bar. When user click it - my
  application started. It is good, but sometimes my application is
  already opened at this moment,

  Tell me, please, what should I do to _switch_ to my application if it
  is already opened, istead of creating new activity? I want to get the
  same behavior as when I press application icon from the Application
  list.

  From manifest:
                 activity android:name=com.myapp.MyAppMainActivity
  android:launchMode=singleTop
                         intent-filter
                                 action 
  android:name=android.intent.action.MAIN /
                                 category 
  android:name=android.intent.category.LAUNCHER /
                         /intent-filter
                 /activity

  Using code:
  public static void startNotification(Context context, int resID, int
  iconID, int titleTextID, int contentTextID) {

                 NotificationManager mNM =
  (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
         CharSequence text = context.getText(contentTextID);

         Notification notification = new Notification(iconID, text,
  System.currentTimeMillis());

         Intent activityToStart = new Intent(context,
  MyAppMainActivity.class);
         activityToStart.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
  Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);

         PendingIntent contentIntent =
  PendingIntent.getActivity(context, 0, activityToStart, 0);
         notification.setLatestEventInfo(context,
  context.getText(titleTextID), text, contentIntent);
         mNM.notify(resID, notification);
     }

  With greate hope,
 Tina

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

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

 Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [ANN]VTD-XML 2.10

2011-02-28 Thread dontcare
VTD-XML 2.10 is now released. It can be downloaded at
https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/.
This release includes a number of new features and enhancement.

* The core API of VTD-XML has been expanded. Users can now perform
cut/paste/insert on an empty element.
* This release also adds the support of deeper location cache support
for parsing and indexing. This feature is useful for application
performance  tuning for processing various XML documents.
* The java version also added support for processing zip and gzip
files. Direct processing of httpURL based XML is enhanced.
* Extended Java version now support Iso-8859-10~16 encoding.
* A full featured C++ port is released.
* C version of VTD-XML now make use of thread local storage to achieve
thread safety for multi-threaded application.
* There are also a number of bugs fixed. Special thanks to Jozef
Aerts, John Sillers, Chris Tornau and a number of other users for
input and suggestions

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 camera support preview formats other than NV21?

2011-02-28 Thread Clark Chen
Hi,

When I am looking into the format support by camera preview, the
only one returned to me is NV21, even though the SDK reference listed
several. I am using Nexus One and Nexus S. Is there any way to get the
camera frames in other formats like NV16 or YV12?

Thanks a lot!

Clark

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Cannot have more than one INSTALL_REFFERER receiver in Android Manifest?

2011-02-28 Thread mscwd01
If no one can offer a solution, the only hack I've found is to
forward the INSTALL_REFERRER intent on to the AdMob manually in my
receiver. Not great at all :(

On Feb 27, 11:27 pm, mscwd01 mscw...@gmail.com wrote:
 I am using the AdMob install receiver in my Android Manifest file,
 e.g.

 !-- AdMob Install Receiver --
 receiver
 android:name=com.admob.android.ads.analytics.InstallReceiver
 android:exported=true
     intent-filter
         action android:name=com.android.vending.INSTALL_REFERRER /
     /intent-filter
 /receiver

 However, I also wish to use my own INSTALL_REFFERER receiver. The
 problem is, when I include my own receiver after the AdMob one, it
 never gets called. If I include mine before the AdMob receiver in the
 manifest file, mine gets called but the AdMob one doesn't.

 Is there anyway I can get both to be called?

 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: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks Justin,
This is almost what I want to do except that my application is
actively doing something in the background (mainly collecting position
data).
The user, by way of long pressing one of the buttons, would tell the
background application to sent the collected data to a server.
Maybe I could have two separate apps on working as a service which is
doing the background work and one that starts as a result of the
user's long button press and tells the service to send it's data.

On Feb 24, 12:22 am, Justin Anderson magouyaw...@gmail.com wrote:
 Why does it need to stay running in the background?  What is it supposed to
 do besides listen for key presses?  If that is all it is doing you could
 write a receiver that will launch your app based on that.

 Quick Launch is an app in the Android Market that I wrote that essentially
 does just that.  It allows you to launch any app on your phone from the
 following methods:
 - Long press search button
 - Long press camera button
 - Double press home button
 - Status bar notification

 But the key thing to note here is that until it receives that event it is
 not doing anything in the background...

 On Wed, Feb 23, 2011 at 4:02 PM, TreKing treking...@gmail.com wrote:
  On Wed, Feb 23, 2011 at 4:58 PM, Greg Donald gdon...@gmail.com wrote:

  Even if you're developing an everlasting app?

  There's no such thing.

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

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

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


[android-developers] Re: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks Justin,
This is almost what I want to do except that my application is
actively doing something in the background (mainly collecting position
data).
The user, by way of long pressing one of the buttons, would tell the
background application to sent the collected data to a server.
Maybe I could have two separate apps on working as a service which is
doing the background work and one that starts as a result of the
user's long button press and tells the service to send it's data.

On Feb 24, 12:22 am, Justin Anderson magouyaw...@gmail.com wrote:
 Why does it need to stay running in the background?  What is it supposed to
 do besides listen for key presses?  If that is all it is doing you could
 write a receiver that will launch your app based on that.

 Quick Launch is an app in the Android Market that I wrote that essentially
 does just that.  It allows you to launch any app on your phone from the
 following methods:
 - Long press search button
 - Long press camera button
 - Double press home button
 - Status bar notification

 But the key thing to note here is that until it receives that event it is
 not doing anything in the background...

 On Wed, Feb 23, 2011 at 4:02 PM, TreKing treking...@gmail.com wrote:
  On Wed, Feb 23, 2011 at 4:58 PM, Greg Donald gdon...@gmail.com wrote:

  Even if you're developing an everlasting app?

  There's no such thing.

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

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

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


[android-developers] Re: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks everyone for the suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problems with the Market

2011-02-28 Thread Marcin Orlowski
On 28 February 2011 08:41, Leszek Koltunski lkoltun...@gmail.com wrote:

 - users tell me the app ( both free and paid versions ) is unavailable in
 Brazil  ( 'all locations' is set so the app should be available everywhere,
 no? )

If your Manifest is not one with bunch of uses-featues and stuff
(that could posibly be culprit of filtering), then you may just face
Market bug. Happens - use to it ;(

 - right now I happen to be in India and if I use the Market app in my phone,
 both versions are also unavailable here. However, if I use the browser and
 go to https://market.android.com, the app is there.

Some people happen to had such issues in the past, try searching group
archive but I do not think you can do anything about it beside just
wait

 - if I go to my developer account in https://market.android.com/publish , I
 can see that the free version has 11 comments.  However, If I view the app
 from within the cellphone's Market App ( obviously doing it in a country
 where it is available, in this case Taiwan ) I can only see the first 4
 comments.
 - the paid version fares even worse: it used to have 1 comment and one
 rating, those were visible for some time, but now both have disappeared!

That's because your phone shows only comments in selected language,
while developer console shows them all.

 - if I view the apps from the browser ( again, thru
 https://market,android.com ) both of them do not have any comments
 whatsoever, not even the 4 comments that are visible from the Market App.

The cause is the same. Anyway, web market sucks a bit as it does not
allow to manually change language of the site w/o messing with browser
settins (which most joe users got no  clue about)

 What gives? This all looks like a big mess to me.

It's Market.

  Anyone could point me to
 any official Google support that I can ask about those issues?

That's really good joke :)

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [ANN]VTD-XML 2.10

2011-02-28 Thread Marcin Orlowski
On 28 February 2011 10:01, dontcare bchang2...@gmail.com wrote:
 VTD-XML 2.10 is now released. It can be downloaded at

If you announce anything, it would help telling alos what it is for
w/o redirecting to the website (which some people may skip due to lack
of time and don't care default approach)

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make the app rotate follow the gravity

2011-02-28 Thread Marcin Orlowski
On 28 February 2011 08:37, asdf ufo22940...@gmail.com wrote:
 I have decompile  a apk file using apktools.

Let me guess - it's not your app nor you got permission to mess with it?

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Clear calling activity on finish

2011-02-28 Thread Manish Garg
Hi,

In my application, I want that my first screen which is login page
should not come back after pressing back key. I had set noHistory tag
for it.

but now i have one more task to do, if my session has expired, i want
to come back to login page and also clear my stack, i am trying
FLAG_ACTIVITY_CLEAR_TOP. To do this I have to remove noHistory tag.

Please help me, so that i can achieve both functionality. In normal
functioning my application should not be able to traverse back to
login page but if session has expired, i want to come back to login
page and also clear my stack

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problems with the Market

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 1:41 AM, Leszek Koltunski lkoltun...@gmail.comwrote:

 Anyone could point me to any official Google support that I can ask about
 those issues?


There's no such thing.
This is the closest you'll get:
http://www.google.com/support/androidmarket/bin/answer.py?answer=136601hl=en

http://www.google.com/support/androidmarket/bin/answer.py?answer=136601hl=enGood
luck getting a response.

-
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] Is there any way to know Canvas is using hardware scaling or not?

2011-02-28 Thread Nilly
Hi All,

I am using canvas class and bitmap to draw on screen. I am doing
scaling using canvas class but it seems it is doing pixel duplication
not interpolation or not in hardware.

Is there any way to do scaling in hardware?

Regards,
Niral

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


Re: [android-developers] Is there any way to know Canvas is using hardware scaling or not?

2011-02-28 Thread Romain Guy
Hi,

Canvas (except on Android 3.0 and up, if you enable it) does not us hardware
acceleration. If you want bilinear filtering, just enable it in the Paint
you're using to draw the bitmap with Paint.setFilterBitmap(true).

On Mon, Feb 28, 2011 at 3:04 AM, Nilly ni...@oriolesoftware.com wrote:

 Hi All,

 I am using canvas class and bitmap to draw on screen. I am doing
 scaling using canvas class but it seems it is doing pixel duplication
 not interpolation or not in hardware.

 Is there any way to do scaling in hardware?

 Regards,
 Niral

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] To find particular Data from Database

2011-02-28 Thread Jayanthi
Hi Dude,
  1.I need to check whether the name entered is already
existing in database or Not can anyone point out the exact code for
the same .
   2. How to save password in Encrypted form in Database

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Problems with the Market

2011-02-28 Thread Leszek Koltunski
If your Manifest is not one with bunch of uses-featues and stuff
(that could posibly be culprit of filtering), then you may just face
Market bug. Happens - use to it ;(

HTC Desire, connected thru WIFI in Taiwan - my app is there.
The very same phone, connected thru WIFI in India - my app is NOT there.
Users say on a Motorola Milestone connected thru WIFi in Brazil the app is
not there.

So it really is a Market bug and there's nothing I can do about it??

That's because your phone shows only comments in selected language,
while developer console shows them all.

10 out of those 11 comments are in English. So another Market bug? And why
did the one comment and rating ( it wasn't mine, mind you ) disappear?

That's really good joke :)

Hmm, so no support whatsoever? Even with such blatant bugs like those? I
also publish in Nokia's Ovi and Blackberry's AppWorld, I used to complain a
lot about Ovi, but now I see it's not so bad afterall. Profits are way
better there, too, even though it is supposed to be a 'declining' market.

best,

L.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Issue with Encryption/Decryption block by block of data

2011-02-28 Thread monty
Hi
 I am developing an application where i need to download videos from
server which are encrypted.As i am dowloading i am reading a block of
1024 bytes and trying to decrypt that block of data.In this way i am
reading and decrypting chunk by chunk.

 For this i am using  AES/CBC/PKCS5Padding  algorithm.The issue is
after decrypting the size of video is more than the required size.i.e
If original video is 16 MB then decrypted video is 16.1 MB ..so some
extra bytes get added and hence when we try to play the video it does
play.
I guess the video is corrupted bcoz of extra bytes.Is it to do with
the padding concept for encryption/decryption.

I DO NOT need to download the the entire encrypted video and write it
to a file.and then pass that file for decryption.
Rather i need to decrypt chunk by chunk of data.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WebGL support

2011-02-28 Thread John Davis
Are there any plans for WebGL on Android?  Or is it all going to be 
Renderscript?  What will be the best way to do no touch deployment for 3D 
games, etc. on Android?

Like the following WebGL demo on Chrome/FireFox

http://www.pcprogramming.com/flight.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] EditText onKey does not fire in android 2.1

2011-02-28 Thread Mohammad Haque
Hi

I have came across a problem with android 2.1 EditText. It does not
fire onKey event listener.

EditText edit = (EditText) findViewById(R.id.edit);
edit.setOnKeyListener(new OnKeyListener() {

@Override
public boolean onKey(View v, int keyCode, KeyEvent 
event) {
Log.d(TAG,onKey() -  + keyCode);
return false;
}
});


I dont see any log's print when I type any key. It works on other
platform but not in 2.1. Anyone has any idea how I can get rid of this
problem or any way around (if any). Or this is not a problem at all
and I'm being stupid using it wrong way :-)

Regards
Mohammad

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Switch to already opened application from Notification

2011-02-28 Thread Mark Murphy
You can see this techinque in action here:

https://github.com/commonsguy/cw-android/tree/master/Notifications/FakePlayer


On Mon, Feb 28, 2011 at 4:11 AM, Tina tina...@gmail.com wrote:
 It does not work :(
 Now I creates EmptyActivity and start it istead of MyAppMainActivity

 public class EmptyActivity  extends Activity{
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        boolean startNew = true;
        if( getIntent().getExtras() != null)
                startNew = !
 getIntent().getExtras().getBoolean(OnlyIfStarted);

        if(startNew)
                if(isTaskRoot()){
                        Intent intent = new Intent(this, 
 MyAppMainActivity.class);
                        startActivity(intent);
                }

        finish();
    }
 }

 On 27 янв, 22:38, Mark Murphy mmur...@commonsware.com wrote:
 Instead of:

 Intent.FLAG_ACTIVITY_SINGLE_TOP |
 Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY

 try:

 Intent.FLAG_ACTIVITY_SINGLE_TOP |
 Intent.FLAG_ACTIVITY_CLEAR_TOP



 On Thu, Jan 27, 2011 at 11:44 AM,Tinatina...@gmail.com wrote:
  Hi, all
  I have service and application. In some cases my service creates
  Ongoing Notification in the Status bar. When user click it - my
  application started. It is good, but sometimes my application is
  already opened at this moment,

  Tell me, please, what should I do to _switch_ to my application if it
  is already opened, istead of creating new activity? I want to get the
  same behavior as when I press application icon from the Application
  list.

  From manifest:
                 activity android:name=com.myapp.MyAppMainActivity
  android:launchMode=singleTop
                         intent-filter
                                 action 
  android:name=android.intent.action.MAIN /
                                 category 
  android:name=android.intent.category.LAUNCHER /
                         /intent-filter
                 /activity

  Using code:
  public static void startNotification(Context context, int resID, int
  iconID, int titleTextID, int contentTextID) {

                 NotificationManager mNM =
  (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
         CharSequence text = context.getText(contentTextID);

         Notification notification = new Notification(iconID, text,
  System.currentTimeMillis());

         Intent activityToStart = new Intent(context,
  MyAppMainActivity.class);
         activityToStart.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP |
  Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);

         PendingIntent contentIntent =
  PendingIntent.getActivity(context, 0, activityToStart, 0);
         notification.setLatestEventInfo(context,
  context.getText(titleTextID), text, contentIntent);
         mNM.notify(resID, notification);
     }

  With greate hope,
 Tina

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

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

 Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

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




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

Android 3.0 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Issue with Encryption/Decryption block by block of data

2011-02-28 Thread DanH
Encryption is a complex subject.  I'd suggest you first review some of
the excellent Wikipedia articles on the topic.  You have to pay
careful attention to the initialization vector and block size
requirements, among others.

But in your case it sounds like it may be a simple case of mixing
characters and bytes.  All of the data you're processing should be in
8-bit bytes -- you should never process anything as a char or
String.  The interfaces you use to receive the data should be
returning bytes, not chars or Strings, and you should produce a result
that's in bytes.  When you mix the two then some code somewhere is
going to try to convert, eg, a byte with a high-order 1 bit to an
extended 16-bit UNICODE character.

On Feb 28, 5:34 am, monty neilm30s...@gmail.com wrote:
 Hi
  I am developing an application where i need to download videos from
 server which are encrypted.As i am dowloading i am reading a block of
 1024 bytes and trying to decrypt that block of data.In this way i am
 reading and decrypting chunk by chunk.

  For this i am using  AES/CBC/PKCS5Padding  algorithm.The issue is
 after decrypting the size of video is more than the required size.i.e
 If original video is 16 MB then decrypted video is 16.1 MB ..so some
 extra bytes get added and hence when we try to play the video it does
 play.
 I guess the video is corrupted bcoz of extra bytes.Is it to do with
 the padding concept for encryption/decryption.

 I DO NOT need to download the the entire encrypted video and write it
 to a file.and then pass that file for decryption.
 Rather i need to decrypt chunk by chunk of data.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Explicitly showing soft keyboard won't work most of the times

2011-02-28 Thread Deepak Kumar
Hi All,

On loading of PopupWindow I am trying to display soft keyboard
through code.Layout of Popup contains one of the edit text.I am using
following code but its not working:-


imm =
(InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);

   :
   :

imm.hideSoftInputFromWindow(edtUserName.getWindowToken(),
0);- line1
 imm.showSoftInput(edtUserName,
0);
- line 2


In between the code I am entering some text ,upon touch to the
edit text (so keyboard initially will be shown).After that through above
code from line 1 that will hide the soft keyboard.But with line 2 it should
have to show again the soft keyboard.

In line 2,instead of 0 ,I tried
InputMethodManager.SHOW_FORCED,but that also not working.

Just I want to know why create problem in showing keyboard.But
hiding through code will work everywhere ,in any situation.
   Even In one of the activity I saw -Upon launch of the activity
itself it shows keyboard even though I am not doing anything through
code.But in another activity I am trying to display it explicitly through
code then also it won't show the keyboard.


Can anyone tell me where is the problem?Is there any property
that we can set for edit text so that upon opening of activity that have
that edit text will show the keyboard ?

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

Re: [android-developers] Re: Problems with the Market

2011-02-28 Thread Marcin Orlowski
On 28 February 2011 12:20, Leszek Koltunski lkoltun...@gmail.com wrote:

 So it really is a Market bug and there's nothing I can do about it??

I am afraid you can't do much about it, because it mostly not your
fault, so you can't fix it.

That's because your phone shows only comments in selected language,
while developer console shows them all.
 10 out of those 11 comments are in English. So another Market bug? And why

It does not matter what language the comments are written in but the
rather locale users run on their phones when they posted. I.e. if I
write my commentin english while using polish locale it won't appear
when you switch locale to english. But you see it in market console
and while you can't tell from there what locale user used for posting,
just live with it. Ratings however is totalled so my polish stars
would contribute to overall rate of the app.

 did the one comment and rating ( it wasn't mine, mind you ) disappear?

User can cancel own rating and that removes both rating and comment

 Hmm, so no support whatsoever? Even with such blatant bugs like those? I
 also publish in Nokia's Ovi and Blackberry's AppWorld, I used to complain a
 lot about Ovi, but now I see it's not so bad afterall. Profits are way
 better there, too, even though it is supposed to be a 'declining' market.

There's contact form in market console but chances to get the response
usually depend on wind, moon phase and tides.

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handling exceptions in AsyncTask

2011-02-28 Thread vani reddy
Hi ,
How to handle exceptions in AsyncTask in when the server is
down?
  Please reply asap.Its very urgent

-- 
 Regards,
Vani Reddy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] To find particular Data from Database

2011-02-28 Thread Marcin Orlowski
On 28 February 2011 12:19, Jayanthi jaia...@gmail.com wrote:

 Hi Dude,

I am not native, but it may be that dude, bro or so, does not work
well for many.

              1.I need to check whether the name entered is already
 existing in database or Not can anyone point out the exact code for
 the same .

Just query your database by the name and if no rows is returned then
it's not there

               2. How to save password in Encrypted form in Database

Well, just encrypt it and store? Usually storing encrypted passwords
is not the right path - you shall store hash (i.e. sha1) of the
password  (unless you need to know the plain pass for some
reasons/usage)

PS: aren't you looking for newbie tutorial to android database by any chance?
-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handling exceptions in AsyncTask

2011-02-28 Thread Prakash Iyer
Ok, urgency taken care of and replied. Now can you shed some light on what
is the problem? If there is an exception in an AsyncTask and it stops you
from processing, I'd think the right thing to do would be to inform the user
(thru the UI thread) of the problem and take care of it from there.

On Mon, Feb 28, 2011 at 7:22 AM, vani reddy vani.redd...@gmail.com wrote:

 Hi ,
 How to handle exceptions in AsyncTask in when the server is
 down?
   Please reply asap.Its very urgent

 --
  Regards,
 Vani Reddy

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Calculate Open GL Coordinate system X and Y values by using wndow x and y values

2011-02-28 Thread madhusudhan reddy
Hi ,

I am new to android .Recently we started some game application on Open
GL.But problem is while drawing any thing it will be based on
Coordinate system.How can we calculate x-units and y-units depends
upon window .Again when we change landscape to portrait, it is
affecting to
my code at drawing positions.Finally how to control coordinate
system values and all if Any body knows please suggest me if any links
available or code.

Thanks  Regards,
Madhusudhan D

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 send email programmatically?

2011-02-28 Thread kamiomar

how we can send email programmatically?

i try the following code:

http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

this is work fine with gmail. but if i try this with different smtp
server its not working such like yahoo,hotmail and my company smtp
server.

how this possible?

Thanks

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


[android-developers] Re: is javamail-android API work with other smtp server...

2011-02-28 Thread kamiomar
my smtp server port is 27. i changed the port and smtp server but
still the code not working throwing the following exception.

Caused by: java.io.IOException: SSL handshake failure: Failure in SSL
library, usually a protocol error




On Feb 24, 4:36 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 What does not working mean?

 The sample uses SSL over port 465, which is pretty standard, but if your own
 server is configured differently (non-secure port 25, or 587, for example),
 then you'll need to adjust your code accordingly.
 24.02.2011 14:12 пользователь kamiomar kamio...@gmail.com написал: i 
 have download jar files from the following link:

 http://code.google.com/p/javamail-android/downloads/list

  and try the following example:

 http://www.jondev.net/articles/Sending_Emails_without_User_Interventi...









  but this is working only for gmail not for others.

  I tried with my own SMTP server but not working.

  I think these API's is for only gmail.
  may I correct?

  if yes then how we can connect with different smtp server and send
  emails?

  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: is javamail-android API work with other smtp server...

2011-02-28 Thread Kostya Vasilyev
Yes, this makes perfect sense. The code sample you referred to uses SSL 
connection with no fallback to non-SSL connection:


props.put(mail.smtp.port, _port);
props.put(mail.smtp.socketFactory.port, _sport);
props.put(mail.smtp.socketFactory.class, 
javax.net.ssl.SSLSocketFactory);

props.put(mail.smtp.socketFactory.fallback, false);

As a quick fix, change the factory class name from 
javax.net.ssl.SSLSocketFactory to javax.net.SocketFactory or change 
fallback to true.


For maximum compatibility, you need to set both SSL and non-SSL socket 
factories and port numbers and ensure that there is fallback from one to 
the other. SMTP over SSL is port 465, SMTP over plain sockets is port 25 
(which is often blocked) or 587 (often not blocked).


http://kenai.com/projects/javamail

http://kenai.com/projects/javamail/lists

-- Kostya

28.02.2011 16:12, kamiomar пишет:

my smtp server port is 27. i changed the port and smtp server but
still the code not working throwing the following exception.

Caused by: java.io.IOException: SSL handshake failure: Failure in SSL
library, usually a protocol error




On Feb 24, 4:36 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

What does not working mean?

The sample uses SSL over port 465, which is pretty standard, but if your own
server is configured differently (non-secure port 25, or 587, for example),
then you'll need to adjust your code accordingly.
24.02.2011 14:12 пользователь kamiomarkamio...@gmail.com  написал:  i have 
download jar files from the following link:


http://code.google.com/p/javamail-android/downloads/list
and try the following example:

http://www.jondev.net/articles/Sending_Emails_without_User_Interventi...










but this is working only for gmail not for others.
I tried with my own SMTP server but not working.
I think these API's is for only gmail.
may I correct?
if yes then how we can connect with different smtp server and send
emails?
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



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

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


[android-developers] when PopUpWindow finish animation

2011-02-28 Thread Deepak Kumar
Hi All,

I am using PopUpWindow which will shown with animation.After
creating object then I am calling below method as follows to show the popup
after 1s from bottom to top in animated way:-

   CODE::-

 pop.setLocationAndUpdate();

  :
  :

public void setLocationAndUpdate() {
this.showAtLocation(view, Gravity.BOTTOM, 0, 0);
this.update(0, 0, widthOfPopUp,heightOfPopUp);


showKeyboard();

}


But the problem is with showKeyboard() method
,the keyboard will be shown before popup finish the animation.
So,I want once PopupWindow is completely shown after animation
,then after that it should show the keyboard.
 Can any one help me in this case?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One User Has a Problem - How do I debug it?

2011-02-28 Thread gcstang
How would you call this in your Activity?  Do you have an example of
it being used?

Does anything need to be added to the AndroidManifest ?

Thank you for your examples,

On Feb 27, 10:55 am, Rishi Kumar reeesh...@gmail.com wrote:
 Hey, I attached a couple of our java classes that perform this function.   I
 had to clean up a bit and remove the package names, but i'm sure that won't
 slow you down :-)

 here is the database table definition:

                buf.append(CREATE TABLE ).append(DbMetadata.TABLE_DEBUG
 ).append( ();

             buf.append(DbMetadata.DEBUG_TIME).append( INTEGER, );

             buf.append(DbMetadata.DEBUG_TYPE).append( TEXT, );

             buf.append(DbMetadata.DEBUG_PACKAGE).append( TEXT, );

             buf.append(DbMetadata.DEBUG_MESSAGE).append( TEXT));

  DbLogService.java
 1KViewDownload

  DebugMessage.java
 1KViewDownload

  DebugPersister.java
 2KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Math question

2011-02-28 Thread Aisthesis
center is (x0, y0)
locX = x0 + radius * cos(angle)
locY = y0 + radius * sin(angle)

On Feb 27, 12:37 am, Scott Deutsch surger...@gmail.com wrote:
 I know that v = 2piR/T.

 How would polar coord 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] sqlite date filter

2011-02-28 Thread Monzurul Islam Shamim
Hi,

Can anyone tell what is wrong in following query,

Cursor cr = db.rawQuery(SELECT _id FROM t1 WHERE creation_date = ? ,
new String[]{1-2-2011});

It always returns empty result. Even though in 't1' table there are
data for 'creation_date=1-2-2011'.

-Shamim

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fragment question: inter-fragment communication?

2011-02-28 Thread Gregg Reno
Thanks for all the help on this.  I'm not the greatest Java
programmer, but thought I would share my code in case it's useful to
anyone else.

In my case, I'm trying to replicate the functionality similar to the
email client.  I have 3 fragments - a list view, a gallery view, and a
content view.  At start up, I show only the list view and gallery
view.  When a user clicks on a title in the gallery view, I hide the
list view, slide the gallery view over to the left, display the
content view and tell the content view which title to show.  The flow
then is the gallery fragment tells the activity what title was
selected, the activity updates the UI and calls a method in the
content fragment.

Here is my code.  I tried to make it as generic as possible, but it
probably doesn't have enough error handling.

=== FragmentNotification.java ===

import android.app.Fragment;

//Allows a fragment to notify an activity of an event
public interface FragmentNotification
{
public static final int  FRAG_ACTION_TITLE_SELECTED = 1;

// actionInt and actionString are optional depending on actionType
void fragmentAction(Fragment fragID, int actionType, int actionInt,
String actionString );
}

=== GalleryFragment.java ===

gView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View v, int
position, long id)
{
rTitle = xmlparse.results.RecordList.get(position);

GalleryFragment galleryFrag = (GalleryFragment)
getFragmentManager()
.findFragmentById(R.id.frag_gallery);

((FragmentNotification)getActivity()).fragmentAction
(galleryFrag, 
FragmentNotification.FRAG_ACTION_TITLE_SELECTED,
0, rTitle.sTitleId);

}
});

=== MainActivity.java ===

...
public class MainActivity extends Activity implements
FragmentNotification, ActionBar.TabListener,
SearchView.OnQueryTextListener, SearchView.OnCloseListener,
Button.OnClickListener,
{
...

//Receive an event notification from a fragment
@Override
public void fragmentAction(Fragment fragID, int actionType, int
actionInt, String actionString)
{
if (fragID == fragGallery)
{
if (actionType == 
FragmentNotification.FRAG_ACTION_TITLE_SELECTED)
{
//Update user interface
if (detailState != DETAIL_STATE_DETAIL)
setDetailState(DETAIL_STATE_DETAIL);

//Tell content frag to display title
fragContent.displayTitle(actionString);
}
}

}
...
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] updating problem in eclipse

2011-02-28 Thread Aisthesis
i have everything installed fine in helios on windows up to SDK
platform 2.3.3 api 10 revision 1, but when i try updating to sdk 3.0,
api 11 revision 1, i get the message that a folder failed to be
renamed or moved. the message box says the problem is typically caused
by a program using the file or by anti-virus software, which should be
disabled. so, i disabled everything in norton 360, and ie is closed,
but the problem still occurs. i get the same problem on a couple of
the development tools and a few of the google apis.

any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] updating problem in eclipse

2011-02-28 Thread Kostya Vasilyev

Are you running the update manager right inside Eclipse?

If so, don't - close Eclipse and run the Android SDK Manager 
independently (form the Start menu). I just updated yesterday to Tools 
r10 and SDK Tools r3 and didn't get the error (used to get it with Tools 
r9).


-- Kostya

28.02.2011 17:46, Aisthesis пишет:

i have everything installed fine in helios on windows up to SDK
platform 2.3.3 api 10 revision 1, but when i try updating to sdk 3.0,
api 11 revision 1, i get the message that a folder failed to be
renamed or moved. the message box says the problem is typically caused
by a program using the file or by anti-virus software, which should be
disabled. so, i disabled everything in norton 360, and ie is closed,
but the problem still occurs. i get the same problem on a couple of
the development tools and a few of the google apis.

any suggestions?




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

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


[android-developers] How to disable global search key when dialog is shown?

2011-02-28 Thread Aruna Shidling
Hi All,

I have a activity which will show a dialog, when dialog is presnet on the
screen and if the Global search key is pressed , it launches the search
activity.
When i come back from the search activity my dialog is disappeared and i can
see only the back ground activity.

How can i disable search key when my dialog is present.
I have tried the onKeyDown and onSerachRequested api's but still it launches
the search activity. I think the below mentioned functions work for base
activity and not for the dialog.

Pls do let me know if anybody knows the solution for it.

 public boolean onKeyDown(int keyCode, KeyEvent event) {
 // TODO Auto-generated method stub

 if (keyCode == KeyEvent.KEYCODE_SEARCH) {
return true;
} else return super.onKeyDown(keyCode, event);


}
@Override
public boolean onSearchRequested() {
 // TODO Auto-generated method stub
 return true;
}
-- 
Thanks  Regards,
Aruna.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Installpackged

2011-02-28 Thread Idan
Hi all, I have developed an app for Android 1.5.

I used the method:
android.content.pm.PackageManager.installPackage(..) successfully.

Now I need to use the same app for Android ver 2.1 but for my luckless
the method has removed.

I know this method is inside hidden API

anyone know about replecment for this method? (I am aware to the fact
which I must have system permissions in order to use it)

thanks,

ray.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDcard mount point in portable way?

2011-02-28 Thread Prakash Iyer
Is this something new? For the HTC phone on Verizon (Desire?) I was pretty
sure this returned the paltry external SD card while most users ended up
using the built in storage. This causes most apps indexing content on these
devices to fail, including the Gesture Search from Google Labs... Would love
to be wrong or plain ignorant on this as it has caused me a lot of grief and
custom code...

On Sat, Feb 26, 2011 at 7:32 PM, Dianne Hackborn hack...@android.comwrote:

 It returns the main partition, that you can count on being populated; for a
 device with a built-in USB mass storage and an external SD card it will
 return the built-in one.

 Android does not yet define the behavior for dealing with multiple SD
 cards.  Devices that use that configuration are outside of the core
 platform, and should provide their own mechanism for them if they want --
 such as a shared library to find out about the secondary storage.

 The platform really needs to define a good UX story around this before just
 throwing APIs at developers.

 On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis mej1...@yahoo.comwrote:

 What does this API do on a phone that has two SD cards? Does it just
 pick only one of them? Or do all such devices fail CDD and so are not
 on the Google Android Market?

 On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com wrote:
  On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky 
 golubov...@gmail.comwrote:
 
   I am not worried about Market at all. I am worried about the portable
   way to tell my program where is the sdcard root directory is mounted
   because part of the usage scenario is user being able to upload
   certain files to sdcard where my program must be able to find them.
 
   To clarify, this is a port of Squeak (Smalltalk) [1], [2] to Android
   which I am trying to alter to fit my needs; in particular the original
   port loaded the image from assets, but I would like to be able to load
   it from sdcard where user may place it after customization using an
   instance of Squeak on user's PC.
 
  The correct way to do this is Environment.getExternalStorageDirectory().
 
  If you want to make your application work on an incompatible device that
 has
  this API broken, you will need to write code specifically for that
 device.
   There is no magical solution that makes your app work regardless of
 what
  someone has done to Android.
 
  --
  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




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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sqlite date filter

2011-02-28 Thread Wall-E
Try this:

Cursor cr = db.rawQuery(SELECT _id FROM t1 WHERE creation_date = ?
,
new String[]{\1-2-2011\});

I've found that when working with strings you have to include a quote
around the string which your statement does not include.

On Feb 28, 9:37 am, Monzurul Islam Shamim monzur...@gmail.com wrote:
 Hi,

 Can anyone tell what is wrong in following query,

 Cursor cr = db.rawQuery(SELECT _id FROM t1 WHERE creation_date = ? ,
 new String[]{1-2-2011});

 It always returns empty result. Even though in 't1' table there are
 data for 'creation_date=1-2-2011'.

 -Shamim

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDcard mount point in portable way?

2011-02-28 Thread Kostya Vasilyev

It was the HTC Incredible, which had internal storage under /emmc.

Since then, another phone that has two memory card slots, one internal 
pre-installed, and one accessible to the user, is the Samsung Galaxy S. 
They've learned from HTC's mistake, though, and made the built-in memory 
accessible via getExternalStorageDirectory (and the external memory card 
as a directory under that one).


-- Kostya

28.02.2011 18:40, Prakash Iyer ?:
Is this something new? For the HTC phone on Verizon (Desire?) I was 
pretty sure this returned the paltry external SD card while most users 
ended up using the built in storage. This causes most apps indexing 
content on these devices to fail, including the Gesture Search from 
Google Labs... Would love to be wrong or plain ignorant on this as it 
has caused me a lot of grief and custom code...


On Sat, Feb 26, 2011 at 7:32 PM, Dianne Hackborn hack...@android.com 
mailto:hack...@android.com wrote:


It returns the main partition, that you can count on being
populated; for a device with a built-in USB mass storage and an
external SD card it will return the built-in one.

Android does not yet define the behavior for dealing with multiple
SD cards.  Devices that use that configuration are outside of the
core platform, and should provide their own mechanism for them if
they want -- such as a shared library to find out about the
secondary storage.

The platform really needs to define a good UX story around this
before just throwing APIs at developers.

On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis
mej1...@yahoo.com mailto:mej1...@yahoo.com wrote:

What does this API do on a phone that has two SD cards? Does
it just
pick only one of them? Or do all such devices fail CDD and so
are not
on the Google Android Market?

On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com
mailto:hack...@android.com wrote:
 On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky
golubov...@gmail.com mailto:golubov...@gmail.comwrote:

  I am not worried about Market at all. I am worried about
the portable
  way to tell my program where is the sdcard root directory
is mounted
  because part of the usage scenario is user being able to
upload
  certain files to sdcard where my program must be able to
find them.

  To clarify, this is a port of Squeak (Smalltalk) [1], [2]
to Android
  which I am trying to alter to fit my needs; in particular
the original
  port loaded the image from assets, but I would like to be
able to load
  it from sdcard where user may place it after customization
using an
  instance of Squeak on user's PC.

 The correct way to do this is
Environment.getExternalStorageDirectory().

 If you want to make your application work on an incompatible
device that has
 this API broken, you will need to write code specifically
for that device.
  There is no magical solution that makes your app work
regardless of what
 someone has done to Android.

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

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

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




-- 
Dianne Hackborn

Android framework engineer
hack...@android.com mailto:hack...@android.com


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

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

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

Re: [android-developers] NFC question: card emulation is not supported in the Android SDK yet, right?

2011-02-28 Thread Nick Pelly
Hi Dave,

Correct, we do not support Card Emulation in the SDK. It's actually very
hard to do this in a consistent way across the Android platform, due to the
current hardware architecture of NFC. Different NFC hardware can
support Card Emulation in very different ways, to the point where its very
hard to design a useful and consistent API.

Peer-to-peer is the way to go. We have just one API call for this now -
NfcAdapter.enableForegroundNdefPush() but it is surprisingly powerful.

Nick


On Fri, Feb 25, 2011 at 9:33 AM, davemac davemac...@gmail.com wrote:

 I'm no NFC guru, but from what I can tell of the docs and the samples,
 there's no way to do card emulation on an Android device at this time,
 using the SDK. Is that correct?

 I see the published classes/methods for reading/writing tags, and for
 the Ndef push using P2P and the mysterious com.android.npp package
 (anyone know where there's more information on that?). But that
 doesn't get me to turning the Android device into whatever tag I want
 it to be read as by some other NFC reader, at least I'm pretty sure it
 doesn't. Unless the NFC sensor reads and writes my device's tag if
 there happens to be one on the device. Is that how it's supposed to
 work? If that last part is true, is there some sort of convention on
 how I recognize my tag as compared to any other tag I come into
 contactless with?

 I saw posts describing how to do this from the NDK level but I'm
 asking about from the SDK level. I also saw source code with
 unpublished methods for card emulation, which leads me to believe that
 it's just not possible, yet.

 Thanks for any help on this.

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] emulator not showing app

2011-02-28 Thread sourabh gupta
hey
everybody,
I am new in developing app for android.
I have installed every update of android like documents, packages etc.
everything is going fine.
eclipse is not showing any kind of error.
but whenever run the emulator it boots up normally till the unlock button
I unlock that but* it doesn't show my app*
 no error,nothing bad in console
please help me
I have been trying since last three days

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] emulator not showing app

2011-02-28 Thread Kevin Anthony
Have you looked under the launcher to see id its their?   Sometimes the
emulator doesnt automatically launch the app.

Sent from an android phone.
On Feb 28, 2011 11:08 AM, sourabh gupta sourabha...@gmail.com wrote:

 hey
 everybody,
 I am new in developing app for android.
 I have installed every update of android like documents, packages etc.
 everything is going fine.
 eclipse is not showing any kind of error.
 but whenever run the emulator it boots up normally till the unlock
button I unlock that but it doesn't show my app
  no error,nothing bad in console
 please help me
 I have been trying since last three days

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Installpackged

2011-02-28 Thread Justin Anderson
Why not just go with the standard method for installing an app?  System
permissions are not required and you aren't using any hidden non-SDK code...

There is some code here with an example intent to use...
http://android.amberfog.com/?p=98

On Mon, Feb 28, 2011 at 8:36 AM, Idan idan.f...@gmail.com wrote:

 Hi all, I have developed an app for Android 1.5.

 I used the method:
 android.content.pm.PackageManager.installPackage(..) successfully.

 Now I need to use the same app for Android ver 2.1 but for my luckless
 the method has removed.

 I know this method is inside hidden API

 anyone know about replecment for this method? (I am aware to the fact
 which I must have system permissions in order to use it)

 thanks,

 ray.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] MediaPlayer's setDataSource (FileDescriptor fd) with LocalSocket?

2011-02-28 Thread andev
On the MediaPlayers' method:
setDataSource (FileDescriptor fd)
Does the FileDescriptor need to be seekable?
Im asking this because Im trying to use a LocalSocket (which is not
seekable) and I am getting this error:
setDataSourceFD failed.: status=0x8000

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What is Failed to finish input event. Check logs for details. Runtime crash?

2011-02-28 Thread Pink
Hi,

   I am working on ginger bread.

   I am porting an application which was running properly on Foryo to
GingerBread.

   While close one of my application activities i am getting RunTime
exception.

   Can any body help me?


  The logcat as follows.

  java.lang.RuntimeException: Failed to finish input event.  Check
logs for details.
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.view.InputQueue.nativeFinished(Native Method)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.view.InputQueue.access$100(InputQueue.java:26)
03-01 01:15:51.583 E/AndroidRuntime(  422): at android.view.InputQueue
$FinishedCallback.run(InputQueue.java:165)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.view.ViewRoot.finishInputEvent(ViewRoot.java:2064)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1890)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.os.Looper.loop(Looper.java:123)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
android.app.ActivityThread.main(ActivityThread.java:3661)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
java.lang.reflect.Method.invokeNative(Native Method)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
java.lang.reflect.Method.invoke(Method.java:507)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:842)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
03-01 01:15:51.583 E/AndroidRuntime(  422): at
dalvik.system.NativeStart.main(Native Method)


Thanks in advance.

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


[android-developers] Re: Installpackged

2011-02-28 Thread Idan
The standard method wont install app silently, it will requires user
involvement.

we as a manufacture have permissions to use methods which are not
available to end-client users/developers.

our customers pay us for such a service (silent installation) and we
require to provide in our next Android version(which is 2.1)

thanks,
ray.

On Feb 28, 6:47 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Why not just go with the standard method for installing an app?  System
 permissions are not required and you aren't using any hidden non-SDK code...

 There is some code here with an example intent to 
 use...http://android.amberfog.com/?p=98







 On Mon, Feb 28, 2011 at 8:36 AM, Idan idan.f...@gmail.com wrote:
  Hi all, I have developed an app for Android 1.5.

  I used the method:
  android.content.pm.PackageManager.installPackage(..) successfully.

  Now I need to use the same app for Android ver 2.1 but for my luckless
  the method has removed.

  I know this method is inside hidden API

  anyone know about replecment for this method? (I am aware to the fact
  which I must have system permissions in order to use it)

  thanks,

  ray.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Try to implement coverflow animation using Gallery

2011-02-28 Thread Justin Anderson
AppSwipe! is an app on the Android Market where I use a gallery and display
the text of the item as you are describing... I am not having any problems
implementing this (but I don't do it with coverflow).

If you post some of the code for your adapter and where you are setting the
textview text I could possibly help you.

On Mon, Feb 28, 2011 at 10:09 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Well... what does your code look like?


 On Sun, Feb 27, 2011 at 10:32 PM, monty neilm30s...@gmail.com wrote:

 Hi
  I am developing an application where i need to achieive coverflow
 animation using android Gallery.When i scroll the Gallery i need to
 display the data of the middle item in the Gallery in a TextView.
 But instead when i scroll and stop the Gallery ,the TextView prints
 the last item of Gallery  visible on the device .and not the middle
 one.
 How do i acheive this?Do i need to write some logic or will it work
 with some APIs?i hope i am clear with the query.Could any1 giv a
 solution?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Try to implement coverflow animation using Gallery

2011-02-28 Thread Justin Anderson
Well... what does your code look like?

On Sun, Feb 27, 2011 at 10:32 PM, monty neilm30s...@gmail.com wrote:

 Hi
  I am developing an application where i need to achieive coverflow
 animation using android Gallery.When i scroll the Gallery i need to
 display the data of the middle item in the Gallery in a TextView.
 But instead when i scroll and stop the Gallery ,the TextView prints
 the last item of Gallery  visible on the device .and not the middle
 one.
 How do i acheive this?Do i need to write some logic or will it work
 with some APIs?i hope i am clear with the query.Could any1 giv a
 solution?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 show JSON data into list view

2011-02-28 Thread Tom Opgenorth
+1 to this - it is exactly the path I took.  It had the advantage too,
that when I added in an offline cache, I could reuse the ArrayAdapter
to display data from either JSON or SQLite.

Plus it makes the code a whole lot more readable.

On Sun, Feb 27, 2011 at 09:09, Rishi Kumar reeesh...@gmail.com wrote:
 Can I suggest that you separate the JSON parsing and the List View display
 into separate components of your code?  I'd recommend that you do a
 translation between JSON and your domain model (Java beans) and then use
 those objects to interact with your Array Adapter.  That way you can
 separate the implementation details of data sourcing and display into
 separate concerns.   This will also shield you from changes in the source
 JSON structure as well.
 If you go down this path, you can then write your own ArrayAdapter that
 works off your business objects.   e.g.  public class MyArrayAdapter extends
 ArrayAdapterMyBusinessObject 
 In this object, you can store a private member points to the list of
 business objects.  private ListMyBusinessObject list;
 Then its just a matter of pulling out the right object when the view is
 called and then mapping that to the fields that are in your list view.

 Hope that helps.
 -rishi

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



-- 
http://www.opgenorth.net

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


[android-developers] Re: SDcard mount point in portable way?

2011-02-28 Thread Indicator Veritatis
Dianne rightly observes: The platform really needs to define a good
UX story around this before just
throwing APIs at developers. 

Which would be a lot easier to do if OEMs would insist on a good UX
story also before implementing bizarro features like two SD cards!
Unfortunately, their history of failing to do this extends to long
before the beginning of Android.

But I still see no answer to the question: do such devices, for having
such a non-standard configuration, fail CDD and therefore are not on
the Market? I am sure such info would still be useful for the OP.

On Feb 26, 4:32 pm, Dianne Hackborn hack...@android.com wrote:
 It returns the main partition, that you can count on being populated; for a
 device with a built-in USB mass storage and an external SD card it will
 return the built-in one.

 Android does not yet define the behavior for dealing with multiple SD cards.
  Devices that use that configuration are outside of the core platform, and
 should provide their own mechanism for them if they want -- such as a shared
 library to find out about the secondary storage.

 The platform really needs to define a good UX story around this before just
 throwing APIs at developers.

 On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis mej1...@yahoo.comwrote:

  What does this API do on a phone that has two SD cards? Does it just
  pick only one of them? Or do all such devices fail CDD and so are not
  on the Google Android Market?

  On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com wrote:
   On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky 
  golubov...@gmail.comwrote:

I am not worried about Market at all. I am worried about the portable
way to tell my program where is the sdcard root directory is mounted
because part of the usage scenario is user being able to upload
certain files to sdcard where my program must be able to find them.

To clarify, this is a port of Squeak (Smalltalk) [1], [2] to Android
which I am trying to alter to fit my needs; in particular the original
port loaded the image from assets, but I would like to be able to load
it from sdcard where user may place it after customization using an
instance of Squeak on user's PC.

   The correct way to do this is Environment.getExternalStorageDirectory().

   If you want to make your application work on an incompatible device that
  has
   this API broken, you will need to write code specifically for that
  device.
    There is no magical solution that makes your app work regardless of what
   someone has done to Android.

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

 --
 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] when PopUpWindow finish animation

2011-02-28 Thread Dianne Hackborn
There is no callback to tell you when the animation is done, sorry.

On Mon, Feb 28, 2011 at 5:47 AM, Deepak Kumar deepak.kumar...@gmail.comwrote:

 Hi All,

 I am using PopUpWindow which will shown with
 animation.After creating object then I am calling below method as follows to
 show the popup after 1s from bottom to top in animated way:-

CODE::-

  pop.setLocationAndUpdate();

   :
   :

 public void setLocationAndUpdate() {
 this.showAtLocation(view, Gravity.BOTTOM, 0, 0);
 this.update(0, 0, widthOfPopUp,heightOfPopUp);


 showKeyboard();

 }


 But the problem is with showKeyboard() method
 ,the keyboard will be shown before popup finish the animation.
 So,I want once PopupWindow is completely shown after animation
 ,then after that it should show the keyboard.
  Can any one help me in this case?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@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] Strange nullpointer on setMessage() of a ProgressDialog

2011-02-28 Thread Justin Anderson
Can you post the full stack trace?  Usually in a situation like this, if you
look further down the stack trace you see a caused by clause that points
to one of your files and should give a line number...

On Sun, Feb 27, 2011 at 10:45 AM, Patrick patrick.manges...@gmail.comwrote:

 Basically what I do:
 I invoke the method showDialog(PROGRESS_DIALOG_ID);
 which looks like (copy paste from the tutorial:
 protected Dialog onCreateDialog(int id) {
switch(id) {
case PROGRESS_DIALOG_ID:
progressDialog = new ProgressDialog(this);

 progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progressDialog.setProgress(0);
progressDialog.setMessage(Loading...);
return progressDialog;
default:
return null;
}
}


 In a Handler I do a  progressDialog.setMessage(Uploading...);, which
 works finde.

 Later on the handler calls a
 activity.dismissDialog(PROGRESS_DIALOG_ID).

 Now a second time I do the same as aboth.
 I do showDialog(PROGRESS_DIALOG_ID);
 But when the handler does the
 progressDialog.setMessage(Uploading...); I get the following strange
 Nullpointer inside the ProgressDialog

 E/AndroidRuntime(  496): java.lang.NullPointerException
 E/AndroidRuntime(  496):at
 android.app.ProgressDialog.setMessage(ProgressDialog.java:294)

 I'm on android 2.1

 Any ideas what could be the problem?

 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] Re: One User Has a Problem - How do I debug it?

2011-02-28 Thread Rishi Kumar
It would be called like this:

   ILogService log = DbLogService.getInstance();

log.debug(TAG, blah blah blah);


Since it talks to a content provider you'll need to declare that in the 
manifest or you'll need to rewrite it to hit the database directly.  


Keep in mind that this is only used for remote debugging on devices that you 
don't have direct access so.  In a debug build, you'll need to write some 
code to pull out the logs from the device and send them via an email to the 
developer (or post to a web service, etc).  


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDcard mount point in portable way?

2011-02-28 Thread Kostya Vasilyev

28.02.2011 20:25, Indicator Veritatis пишет:

But I still see no answer to the question: do such devices, for having
such a non-standard configuration, fail CDD and therefore are not on
the Market? I am sure such info would still be useful for the OP.



Some do, or rather, did (the HTC Incredible and the Samsung Galaxy S), 
some apparently never submitted or failed for other reasons (the 
book-reader type device described by the original poster).


The extra memory card is an *additional* feature. Both the Incredible 
and the Galaxy do implement the required storage API, and it returns 
something useful on both of them (more useful on the Galaxy).


The only cause of grief is caused by the desire to use specifically the 
internal memory card on the Incredible, and the external memory card on 
the Galaxy (the other storage location).


Since Android doesn't have APIs for more than one memory card, not 
having a way to do this on the Incredible / Galaxy can't cause the CCD 
to fail (you can't give wrong answer to a question that was never 
asked). At least that's my understanding.


This was really HTC's failure, as they didn't specify (AFAIK) a way to 
get their internal storage path. Samsung learned from their mistake, and 
provided a solution compatible with single memory card devices.


I own a Galaxy S, and not having an API for the external memory card is 
the least significant of that phone's issues.


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

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


[android-developers] Remove ringtones from ringtones list

2011-02-28 Thread Henrique Deodato
Hello people... ^^V

I have an app that include some sounds in the ringtones list

the sounds are saved in the sdcard

I caninclude.. ok ...

How can I remove??

If I delete the sound form the sd... they still there in the ringtones
list... =(

does anybody know sometrhing...

thanks in advance...

^^V
-- 
Henrique

h3nr...@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] Market package name on Xoom?

2011-02-28 Thread Shane Isbell
It looks like the old way of opening android market doesn't work on Xoom.

 loadIntent.setClassName(com.android.vending,
com.android.vending.AssetBrowserActivity);

Anyone know what the new package-name/class is?

Thanks,
Shane

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MediaPlayer issues in certain devices

2011-02-28 Thread DanielleM
Hello all:

I have an update on my issue. I have now tested my app on two Droid2
non-global devices and neither device can play streaming audio that is
being handled by the MediaPlayer object in my app code. As stated
before I know for sure that one of the devices also cannot play
streaming audio from multiple different apps as well. This leads me to
believe that there may be a problem with this particular model device
as far as MediaPlayer is concerned...but I'd rather not make
assumptions like that unless others can confirm/deny.

Thanks again for any light anybody can shed on this problem...I'd love
to be able to roll out my app soon.

On Feb 25, 11:42 am, DanielleM dmurkerso...@gmail.com wrote:
 Hello all:

 I've searched around and have not been able to find an answer to this
 problem: My application plays mp3 files and mp4 files in a variety of
 ways. The first way is that I have an mp3 stream that I'm streaming
 through a MediaPlayer object...the second way is that I'm navigating
 to either mp3 or mobile mp4 files on a website and using the device's
 native media player and/or downloaded 3rd party media players to play
 some podcasts.

 My issues come from the fact that I've tested my app on two different
 devices...(a Droid2 non-global Android 2.2 system version 2.3.20.a955,
 and an HTC EVO with Android 2.2). The issues I'm having is that the
 streaming mp3 audio plays totally fine on the HTC device, but will not
 play at all on the Droid2, and then the opposite issue is happening
 with the podcast audio...it will play fine on the Droid2 using both
 Winamp and doubletwist...but the HTC device will not open and play
 these files even in the native music player. The HTC user says that a
 browser begins to open and then closes and no audio ever plays...he
 didn't say anything about an error message either.

 The Droid2 user gets no error message for the streams...they simply
 don't play...he also says he's not been able to get streaming audio
 from other apps as well so he figures it's his device. However with
 the podcasts, it will open a browser and then ask him which
 application he wants to use to play the media...then it opens just
 fine and plays.

 Has anyone else experienced this or knows of something I might be able
 to do in my app to fix this? Is this strictly a device issue? Both the
 streams and the podcast audio and video play perfectly fine in the
 Emulator (not that that is any indicator that everything is going to
 work on a device) and I'm getting no error messages or anything in the
 logcat.

 I'm working on getting a third device to test on to see what, if any
 issues occur. The rest of the app seems to work totally fine on both
 devices.

 Thanks for any help you can provide,
 DanielleM

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Change Keyboard Key label at runtime

2011-02-28 Thread Justin Anderson
Hi Trans,

* But why did you answer the question if it irked you so much? I appreciate
you providing an answer, and you never know who it might help in the future
as an archival. But as a corollary to if you don't have  something nice to
say, if you are going to say RTFM, don't say anything at all.*

Your question didn't irk me (though your reply certainly did)... There are
just a lot of people on here who post questions without ever bothering to do
any work on their own.  As I stated in my answer... I was not trying to be
mean.  Had I wanted to be mean I could have said RTFM and posted a link.
But I didn't.  I don't think my answer was RTFM-esque at all.  Merely
inquiring if you did look at the docs before posting the question is not out
of line...


* That's exactly what I did (though it took me considerably longer as I am
very new to Java and Android). I only asked the question b/c that's where I
was at in the process when I followed up to my original question. And I
hadn't had a whole lot of immediate success in finding answers up until
then. It took me 12 hours yesterday to do something that would have taken me
12 minutes in Ruby. I would have followed up again and sooner but I had some
trouble finding this post last night (I'm not liking this new groups
interface).*

Even if you are new to Java and Android... The fact that you were in the
process of writing a Keyboard app means that you should have known about
that class.  That in turn means that you had the resources to find the
answer to your problem.  If I was able to find it in about two minutes
without having any knowledge of writing a keyboard app then you should have
been able to find the answer as well... even if it took 15 minutes to scan
through the page (which is a huge exaggeration since the method you need is
the 5th one in the list on the docs page) you would have gotten your answer
quicker by doing that than by being lazy and posting a question and waiting
for an answer without looking at the docs yourself first.

Next time I'll just be sure to say RTFM and post the link so that you can
be legitimately ticked off at me... :-)

Thanks,
Justin

On Sat, Feb 26, 2011 at 3:32 AM, trans transf...@gmail.com wrote:

 That's exactly what I did (though it took me considerably longer as I am
 very new to Java and Android). I only asked the question b/c that's where I
 was at in the process when I followed up to my original question. And I
 hadn't had a whole lot of immediate success in finding answers up until
 then. It took me 12 hours yesterday to do something that would have taken me
 12 minutes in Ruby. I would have followed up again and sooner but I had some
 trouble finding this post last night (I'm not liking this new groups
 interface).

 But why did you answer the question if it irked you so much? I appreciate
 you providing an answer, and you never know who it might help in the future
 as an archival. But as a corollary to if you don't have  something nice to
 say, if you are going to say RTFM, don't say anything at all.

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 correct market issue

2011-02-28 Thread kernelpanic
ok, so the other day (feb 23) when the market was glitchy I ended up
with one of those charges that did not process properly.

It originally showed as Customer review in progress - now it shows
as New-Chargeable

I just got an email from the buyer saying he didn't get the app but
his CC has been charged.

Should I just refund this and hope he repurchases? or is there some
other course of action I can take.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 correct market issue

2011-02-28 Thread kernelpanic
nevermind - I just canceled the order - contrary to what the buyer
said, it was only authorized and not charged.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: updating problem in eclipse

2011-02-28 Thread Aisthesis
Using the SDK manager outside of eclipse got everthing installed from
the standpoint of the stand-alone SDK manager. But then when I start
eclipse, it doesn't show sdk 3.0 as being installed (it does show up
under installed packages in the standalone sdk manager).

On Feb 28, 8:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Are you running the update manager right inside Eclipse?

 If so, don't - close Eclipse and run the Android SDK Manager
 independently (form the Start menu). I just updated yesterday to Tools
 r10 and SDK Tools r3 and didn't get the error (used to get it with Tools
 r9).

 -- Kostya

 28.02.2011 17:46, Aisthesis пишет:

  i have everything installed fine in helios on windows up to SDK
  platform 2.3.3 api 10 revision 1, but when i try updating to sdk 3.0,
  api 11 revision 1, i get the message that a folder failed to be
  renamed or moved. the message box says the problem is typically caused
  by a program using the file or by anti-virus software, which should be
  disabled. so, i disabled everything in norton 360, and ie is closed,
  but the problem still occurs. i get the same problem on a couple of
  the development tools and a few of the google apis.

  any suggestions?

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

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


Re: [android-developers] Market package name on Xoom?

2011-02-28 Thread Marcin Orlowski
  loadIntent.setClassName(com.android.vending,
 com.android.vending.AssetBrowserActivity);

Why you got this way? As you see it's quite fragile. Try using intent
instead, ie:

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
market://search?q=pub:your.pub.name) );
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

or market://details?id=your.package.name

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Market package name on Xoom?

2011-02-28 Thread Shane Isbell
I don't want to open to a publisher or application. I want to only open to
the market.

Shane

On Mon, Feb 28, 2011 at 11:14 AM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

   loadIntent.setClassName(com.android.vending,
  com.android.vending.AssetBrowserActivity);

 Why you got this way? As you see it's quite fragile. Try using intent
 instead, ie:

 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
 market://search?q=pub:your.pub.name) );
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

 or market://details?id=your.package.name

 --
 Regards,
 Marcin

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Programatically change the color of layout

2011-02-28 Thread Justin Anderson
Have you verified that you get into the Log.isLoggable() if-statement?  If
not, what happens when you move the setBackgroundColor() call out of that if
Statement?

On Wed, Feb 23, 2011 at 12:26 PM, Sid sidmendira...@gmail.com wrote:

 lLayout

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Market package name on Xoom?

2011-02-28 Thread Justin Anderson
If the package name didn't change you can use this to get the intent to
launch the market:
http://developer.android.com/reference/android/content/pm/PackageManager.html#getLaunchIntentForPackage%28java.lang.String%29

On Mon, Feb 28, 2011 at 12:19 PM, Shane Isbell shane.isb...@gmail.comwrote:

 I don't want to open to a publisher or application. I want to only open to
 the market.

 Shane


 On Mon, Feb 28, 2011 at 11:14 AM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:

   loadIntent.setClassName(com.android.vending,
  com.android.vending.AssetBrowserActivity);

 Why you got this way? As you see it's quite fragile. Try using intent
 instead, ie:

 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
 market://search?q=pub:your.pub.name) );
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

 or market://details?id=your.package.name

 --
 Regards,
 Marcin

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Help with tabbed view

2011-02-28 Thread Justin Anderson
Change the contents of the tabs to be views instead of activities...
Activity tabs are not fully supported and have weird issues.

On Wed, Feb 23, 2011 at 7:56 AM, David Williams 
dwilli...@dtw-consulting.com wrote:

  Sorry if this is a resend...been having issues emailing to the group.
 --

 I'm new to Android development so please bear with me.  I have created
 an app in WebOS and I'm keen to try and re-create for the Android
 platform.  I have tried to follow the tutorial for creating a tabbed
 view and to some extent I have succeeded.  However, the problem that I
 am having is that when I switch from tab to tab any text or graphics
 is overwritting the tab elements and not displaying below the tabs
 themselves.  I'm sure I've done something stupid that is easy to fix.

 Here are the files that I have.  I have my main class which extends
 TabActivity.  The code is as follows:

 *package com.dtwconsulting.golfcaddie;

 import android.app.TabActivity;
 import android.content.Intent;
 import android.content.res.Resources;
 import android.os.Bundle;
 import android.view.Menu;
 import android.view.MenuInflater;
 import android.widget.TabHost;

 public class GolfCaddie extends TabActivity {
/** Called when the activity is first created. */
@Override

public void onCreate(Bundle savedInstanceState) {
super.onCreate(*
 *savedInstanceState);
setContentView(R.layout.**splashmain);

 * *Resources res = getResources(); // Resource object to get
 Drawables
TabHost tabHost = getTabHost();  // The activity TabHost
TabHost.TabSpec spec;  // Resusable TabSpec for each tab
Intent intent;  // Reusable Intent for each tab

 * *// Create an Intent to launch an Activity for the tab (to be
 reused)
intent = new Intent().setClass(this, MainActivity.class);

 * *// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec(main).**setIndicator(Main,
  res.getDrawable(R.drawable.ic_**tab_main))
  .setContent(intent);
tabHost.addTab(spec);

 * *// Do the same for the other tabs
intent = new Intent().setClass(this, PlayersActivity.class);
spec = tabHost.newTabSpec(players).**setIndicator(Players,
  res.getDrawable(R.drawable.ic_**tab_players))
  .setContent(intent);
tabHost.addTab(spec);

 * *intent = new Intent().setClass(this, CoursesActivity.class);
spec = tabHost.newTabSpec(courses).**setIndicator(Courses,
  res.getDrawable(R.drawable.ic_**tab_courses))
  .setContent(intent);
tabHost.addTab(spec);

 * *tabHost.setCurrentTab(0);

 * *}

 * *public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main_**menu, menu);
return true;
}
 }*

 My R.layout.splashmain XML code is as follows:

 *?xml version=1.0 encoding=utf-8?
 TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@android:id/**tabhost
android:layout_width=fill_**parent
android:layout_height=fill_**parent
TabWidget  android:id=@android:id/tabs
android:layout_width=fill_**parent
android:layout_height=fill_**parent /
FrameLayout android:id=@android:id/**tabcontent
 android:layout_width=fill_**parent
 android:layout_height=fill_**parent
 android:padding=5dp /
 /TabHost*

 In addition to the above I have a class file for each tab and a layout
 file for each tab too.  To give an example of the main class and XML
 layout file:

 *package com.dtwconsulting.golfcaddie;

 import android.app.Activity;* *
 import android.os.Bundle;

 public class MainActivity extends Activity {* *
public void onCreate(Bundle savedInstanceState) {
super.onCreate(**savedInstanceState);

 * *setContentView(R.layout.main);
}
 }

 ?xml version=1.0 encoding=utf-8?* *
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
  android:layout_width=wrap_**content
  android:layout_height=fill_**parent
  android:fitsSystemWindows=**true
  android:background=@drawable/**golfcaddie
/LinearLayout*

 So, when this main tab is displayed the background image
 (golfcaddie.png) completely displays on the entire screen over the top
 of the tabs.  I've tried playing around with things but all to no
 avail.  I either get the background overlaying the tabs, or I get
 nothing at all.  I suspect that I am just not grasping these layouts
 and how they interact.

 Any help/direction on this would be much appreciated, and perhaps I am
 not even doing this the best way.  

[android-developers] Why was “Avoid Enums Where You Only Need Ints” removed from Android's performance tips?

2011-02-28 Thread thierryd
The section Avoid Enums Where You Only Need Ints was removed from
the official developper documentation (http://developer.android.com/
guide/practices/design/performance.html#avoid_enums)

Why? Was there a change in the Android VM that made the tip obsolete?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDcard mount point in portable way?

2011-02-28 Thread Dianne Hackborn
The current CDD requires that the API return the directory of the primary
external storage, that is the one you can count on always being there,
that is the internal storage partition of such devices.  The very first
devices that introduced multiple storage areas caught us a bit by surprise,
implemented this in a broken way (leaving the code to return the SD card
storage which was actually shipped without a card on those devices), and the
CDD has since been clarified about how the device needs to behave.

On Mon, Feb 28, 2011 at 9:25 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 Dianne rightly observes: The platform really needs to define a good
 UX story around this before just
 throwing APIs at developers. 

 Which would be a lot easier to do if OEMs would insist on a good UX
 story also before implementing bizarro features like two SD cards!
 Unfortunately, their history of failing to do this extends to long
 before the beginning of Android.

 But I still see no answer to the question: do such devices, for having
 such a non-standard configuration, fail CDD and therefore are not on
 the Market? I am sure such info would still be useful for the OP.

 On Feb 26, 4:32 pm, Dianne Hackborn hack...@android.com wrote:
  It returns the main partition, that you can count on being populated; for
 a
  device with a built-in USB mass storage and an external SD card it will
  return the built-in one.
 
  Android does not yet define the behavior for dealing with multiple SD
 cards.
   Devices that use that configuration are outside of the core platform,
 and
  should provide their own mechanism for them if they want -- such as a
 shared
  library to find out about the secondary storage.
 
  The platform really needs to define a good UX story around this before
 just
  throwing APIs at developers.
 
  On Sat, Feb 26, 2011 at 4:11 PM, Indicator Veritatis mej1...@yahoo.com
 wrote:
 
   What does this API do on a phone that has two SD cards? Does it just
   pick only one of them? Or do all such devices fail CDD and so are not
   on the Google Android Market?
 
   On Feb 26, 3:41 pm, Dianne Hackborn hack...@android.com wrote:
On Fri, Feb 25, 2011 at 8:31 PM, Dimitry Golubovsky 
   golubov...@gmail.comwrote:
 
 I am not worried about Market at all. I am worried about the
 portable
 way to tell my program where is the sdcard root directory is
 mounted
 because part of the usage scenario is user being able to upload
 certain files to sdcard where my program must be able to find them.
 
 To clarify, this is a port of Squeak (Smalltalk) [1], [2] to
 Android
 which I am trying to alter to fit my needs; in particular the
 original
 port loaded the image from assets, but I would like to be able to
 load
 it from sdcard where user may place it after customization using an
 instance of Squeak on user's PC.
 
The correct way to do this is
 Environment.getExternalStorageDirectory().
 
If you want to make your application work on an incompatible device
 that
   has
this API broken, you will need to write code specifically for that
   device.
 There is no magical solution that makes your app work regardless of
 what
someone has done to Android.
 
--
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
 
  --
  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




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

[android-developers] OK for one Service to bind to another?

2011-02-28 Thread goosedroid
I have a service (ServiceA) which is used by activities by binding to
it.

I would like to kick off one operation on ServiceA, on occasion, via
AlarmManager. I thought the following chain of components would be
appropriate: AlarmManager - BroadcastReceiver - ServiceB -
ServiceA.

In my example, Service B would bind to Service A in
ServiceB.onCreate(), call functions via the bind interface, and unBind
in ServiceB.onDestroy().

The obvious solution is just to have Service A expose this operation
via an Intent, and then have the AlarmManager (via the
BroadcastReceiver) fire off this Intent  to ServiceA. However, for
reason I won't go into, this isn't very feasible for my situation.

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] Market package name on Xoom?

2011-02-28 Thread Shane Isbell
Awesome. Thanks Justin: this does the trick:

Intent loadIntent =
getPackageManager().getLaunchIntentForPackage (com.google.android.finsky);
startActivityForResult(loadIntent, 0);

On Mon, Feb 28, 2011 at 11:23 AM, Justin Anderson magouyaw...@gmail.comwrote:

 If the package name didn't change you can use this to get the intent to
 launch the market:

 http://developer.android.com/reference/android/content/pm/PackageManager.html#getLaunchIntentForPackage%28java.lang.String%29

 On Mon, Feb 28, 2011 at 12:19 PM, Shane Isbell shane.isb...@gmail.comwrote:

 I don't want to open to a publisher or application. I want to only open to
 the market.

 Shane


 On Mon, Feb 28, 2011 at 11:14 AM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:

   loadIntent.setClassName(com.android.vending,
  com.android.vending.AssetBrowserActivity);

 Why you got this way? As you see it's quite fragile. Try using intent
 instead, ie:

 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
 market://search?q=pub:your.pub.name) );
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

 or market://details?id=your.package.name

 --
 Regards,
 Marcin

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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.media.MediaController

2011-02-28 Thread New Developer
Please can someone send a link to the MediaController Source.
and guide on how to install it using Mac OS X

Thanks


On Feb 25, 2011, at 2:59 PM, ISSCP Security wrote:

 How does one control the playback speed of a video ?
 
 I have seen where you set the frame rate when recording, but what about 
 playback?
 
 Or Where does one get the source for the  android.media.mediaplayer  ?
 
 Thanks in advance
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Create native typeface in 2.31

2011-02-28 Thread intbt
Code:
final Typeface font2 = Typeface.createFromAsset(getAssets(), fonts/
CHOPS___.TTF);

App works fine in 1.6 but when I run 2.3 I get this error:

02-28 11:48:33.751: ERROR/AndroidRuntime(539): FATAL EXCEPTION: main
02-28 11:48:33.751: ERROR/AndroidRuntime(539):
java.lang.RuntimeException: native typeface cannot be made
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.graphics.Typeface.init(Typeface.java:147)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.graphics.Typeface.createFromAsset(Typeface.java:121)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
org.example.mlb.openMLB$selectionAdapter.getView(openMLB.java:67)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.AbsListView.obtainView(AbsListView.java:1418)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.ListView.measureHeightOfChildren(ListView.java:1216)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.ListView.onMeasure(ListView.java:1127)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
1017)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.LinearLayout.measureHorizontal(LinearLayout.java:701)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:311)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:
581)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.RelativeLayout.onMeasure(RelativeLayout.java:365)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:531)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:309)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:250)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.View.measure(View.java:8313)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.ViewRoot.performTraversals(ViewRoot.java:839)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.os.Looper.loop(Looper.java:123)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
android.app.ActivityThread.main(ActivityThread.java:3647)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
java.lang.reflect.Method.invokeNative(Native Method)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
java.lang.reflect.Method.invoke(Method.java:507)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-28 11:48:33.751: ERROR/AndroidRuntime(539): at
dalvik.system.NativeStart.main(Native Method)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: LVL and new SDKs

2011-02-28 Thread jtoolsdev
Reports of this problem have been around for at least a couple months
and it is still not fixed?  From the log I can see that it appears to
be a binding error and that was what was reported with the Gingerbread
emulators.

On Feb 26, 1:16 pm, mp6800 mport...@gmail.com wrote:
 Yeah the problem still seems to exist.  Thankfully it's only in the emulator
 though, at least for 2.3.3 (I'm testing on a Nexus One and it works
 properly).  Can anybody vouch for 3.0?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [Monkeyrunner]: How to simulate short press on power button

2011-02-28 Thread aniruddha dhamal
I tried to use

*device.press('KEYCODE_POWER', 'down')*

but this works for long press on power button.

Thanks,

On Sat, Feb 26, 2011 at 4:01 PM, Andya ani123.dha...@gmail.com wrote:

 Hello guys,

 Any help on how to simulate short key press on Power button using
 MonkeyRunner?

 I am using the following code but to no avail

 device.press('KEYCODE_POWER','DOWN')

 Really appreciate!!!

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




-- 
Thanks and Regards

Aniruddha Dhamal
ani123.dha...@gmail.com

 No matter which direction you start
Its always against the wind coming  back 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Market package name on Xoom?

2011-02-28 Thread Dianne Hackborn
Don't hard-code package names.  This is fragile, as you've already found.
 Don't continue doing it.  You'll just break again sometime in the future.

On Mon, Feb 28, 2011 at 11:39 AM, Shane Isbell shane.isb...@gmail.comwrote:

 Awesome. Thanks Justin: this does the trick:

 Intent loadIntent =
 getPackageManager().getLaunchIntentForPackage (com.google.android.finsky);
 startActivityForResult(loadIntent, 0);

 On Mon, Feb 28, 2011 at 11:23 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 If the package name didn't change you can use this to get the intent to
 launch the market:

 http://developer.android.com/reference/android/content/pm/PackageManager.html#getLaunchIntentForPackage%28java.lang.String%29

 On Mon, Feb 28, 2011 at 12:19 PM, Shane Isbell shane.isb...@gmail.comwrote:

 I don't want to open to a publisher or application. I want to only open
 to the market.

 Shane


 On Mon, Feb 28, 2011 at 11:14 AM, Marcin Orlowski 
 webnet.andr...@gmail.com wrote:

   loadIntent.setClassName(com.android.vending,
  com.android.vending.AssetBrowserActivity);

 Why you got this way? As you see it's quite fragile. Try using intent
 instead, ie:

 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(
 market://search?q=pub:your.pub.name) );
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

 or market://details?id=your.package.name

 --
 Regards,
 Marcin

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, 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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@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] Market package name on Xoom?

2011-02-28 Thread Shane Isbell
On Mon, Feb 28, 2011 at 12:00 PM, Dianne Hackborn hack...@android.comwrote:

 Don't hard-code package names.  This is fragile, as you've already found.
  Don't continue doing it.  You'll just break again sometime in the future.

If there is no public API to do something so simple, then opening with
market package name way is the only way. I have a hard-requirement to open
the market (all tested on specific devices and specific firmware
before-hand). And who are you to tell me not to do it anyway? I understand
the limitations.

Shane

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 disable global search key when dialog is shown?

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 9:25 AM, Aruna Shidling aruna.shidl...@gmail.comwrote:

 How can i disable search key when my dialog is present.


This was discussed here:
http://groups.google.com/group/android-developers/browse_thread/thread/cf600fd7efc5de0b

-
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 open email in app with address

2011-02-28 Thread brian purgert
I want the person to click on a button and when they click it, it opens up
their email and my email address is already there.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 I read .pdf From assert folder?

2011-02-28 Thread Sunil Lakhiyani
Hi Developers,

I have .pdf in assert folder, also i have pdf viewer ad acrobat reader
installed in my phone.
Can i read .pdf from assert anyway (using those 2)?

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: NFC question: card emulation is not supported in the Android SDK yet, right?

2011-02-28 Thread davemac
But that means you can't use your Android device at one of those point-
of-sale terminals that can read NFC tags, right? The bit in the
documentation about com.android.npp is confusing since I can't find
any information on that package anywhere. So I assume that only
Android devices can participate in the NFC P2P interaction. I know you
can't give a date of when card emulation would be available, but can
you at least say that it's being worked on and that we may see it
someday?

I appreciate your help. The Android team is great for spending time in
these forums. It really helps a lot.

- dave

On Feb 28, 10:54 am, Nick Pelly npe...@google.com wrote:
 Hi Dave,

 Correct, we do not support Card Emulation in the SDK. It's actually very
 hard to do this in a consistent way across the Android platform, due to the
 current hardware architecture of NFC. Different NFC hardware can
 support Card Emulation in very different ways, to the point where its very
 hard to design a useful and consistent API.

 Peer-to-peer is the way to go. We have just one API call for this now -
 NfcAdapter.enableForegroundNdefPush() but it is surprisingly powerful.

 Nick

 On Fri, Feb 25, 2011 at 9:33 AM, davemac davemac...@gmail.com wrote:
  I'm no NFC guru, but from what I can tell of the docs and the samples,
  there's no way to do card emulation on an Android device at this time,
  using the SDK. Is that correct?

  I see the published classes/methods for reading/writing tags, and for
  the Ndef push using P2P and the mysterious com.android.npp package
  (anyone know where there's more information on that?). But that
  doesn't get me to turning the Android device into whatever tag I want
  it to be read as by some other NFC reader, at least I'm pretty sure it
  doesn't. Unless the NFC sensor reads and writes my device's tag if
  there happens to be one on the device. Is that how it's supposed to
  work? If that last part is true, is there some sort of convention on
  how I recognize my tag as compared to any other tag I come into
  contactless with?

  I saw posts describing how to do this from the NDK level but I'm
  asking about from the SDK level. I also saw source code with
  unpublished methods for card emulation, which leads me to believe that
  it's just not possible, yet.

  Thanks for any help on this.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] emulator not showing app

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 10:02 AM, sourabh gupta sourabha...@gmail.comwrote:

 but whenever run the emulator it boots up normally till the unlock button
 I unlock that but* it doesn't show my app*


Stupid question, but did you try launching your app after unlocking the
emulator? It doesn't just it automatically, especially if you haven't
installed it ...

-
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] is it possible to disable the home key for an activity?

2011-02-28 Thread Aruna Shidling
Hi All,

Is it possible to disable the Home key for an activity which shows alert
dialog ? i could disable the search key but not able to do it for home key..

-- 
Thanks  Regards,
Aruna.

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

Re: [android-developers] is it possible to disable the home key for an activity?

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 2:34 PM, Aruna Shidling aruna.shidl...@gmail.comwrote:

 Is it possible to disable the Home key for an activity which shows alert
 dialog ?


No, you can't intercept the Home Key.

-
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: Question about intent filters for NFC tags (tech)

2011-02-28 Thread davemac
Any update on the category question answer please?

- dave

On Feb 24, 5:36 pm, Nick Pelly npe...@google.com wrote:
 On Wed, Feb 23, 2011 at 7:26 PM, davemac davemac...@gmail.com wrote:
  I hate to seem like a nag on this topic, but I've got some more
  concerns about the documentation, and your answer. Let's consider an
  example as described in the reference page for NfcAdapter, which seems
  to be more correct than the DevGuide for NFC:

   resources xmlns:xliff=urn:oasis:names:tc:xliff:document:1.2
       !-- capture anything using NfcF --
      tech-list
          techandroid.nfc.tech.NfcF/tech
      /tech-list

      !-- OR --

      !-- capture all MIFARE Classics with NDEF payloads --
       tech-list
          techandroid.nfc.tech.NfcA/tech
           techandroid.nfc.tech.MifareClassic/tech
          techandroid.nfc.tech.Ndef/tech
      /tech-list
   /resources

  If I have a tag that enumerates NfcA and MifareClassic but does not
  enumerate Ndef, I'm assuming that this activity would not receive that
  NFC tech intent. Correct?

 Correct. The tag is neither NfcF OR (NfcA AND MifareClassic AND Ndef)

  None of the intent-filter's tech-list sets
  is a subset of
  Tag.getTechList().

  If I have a tag that enumerates NfcF and Ndef, I'm assuming that this
  activity *would* receive that NFC tech intent, right? The intent-
  filter tech-list of NfcF *is* a sub-set of Tag.getTechList(). Correct?

 correct



  And this jives with your earlier answer about not having to specify
  both MifareUltralight *and* NfcA in a tech-list since if the tech-list
  has both and my tech-list only has one, it's still a sub-set so it
  will match. It could actually be dangerous to specify both in case
  some tag doesn't enumerate NfcA, then the tech-list would not be a sub-
  set of the Tag's tech list so there'd be no match.

 correct



  Just one more thing about the category tag with the intent filters
  for NFC tags. In the NFCDemo, for the intent-filter for TAG_DISCOVERED
  there is a category tag within the intent-filter, as one would
  expect in order to receive an intent that carries no data. This
  category tag is not present in the NfcAdapter reference page or the
  NFC DevGuide page, but I think it should be. Correct?

 we're looking into this.



  What I can't tell is whether or not the category tag is required
  within the intent-filter when the action is TECH_DISCOVERED. I
  haven't been able to figure out the bytes to generate a fake non-Ndef
  tag to send from FakeTagsActivity. And when I save my manifest.xml
  file either way, I get no errors.

  I appreciate any help that I can get. Thanks!

  - dave

  On Feb 23, 1:01 pm, Nick Pelly npe...@google.com wrote:
   On Wed, Feb 23, 2011 at 8:45 AM, davemac davemac...@gmail.com wrote:
What you're saying doesn't jive with the documentation, which says the
following (onhttp://developer.android.com/guide/topics/nfc/index.html
  ):

Specifiying [sic] multiple technologies within the same list tells the
system to filter tags that support all of the technologies.

   This particular sentence is a little confusing in the docs, i'll try and
   have it improved.

The
example below never filters a tag because no tag supports all of the
technologies at once. You can remove the ones that you do not need.
The docs say a tag will only match if all tag technologies are listed
in my tech-list,

   No the docs don't say that.

   There is a better explanation here, which matches with how I explained
  it,
   which is how it is :)

  http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...

   
   A tag matches if any of the tech-list sets is a subset of
   Tag.getTechList()
 http://developer.android.com/reference/android/nfc/Tag.html#getTechList()
  .
   Each of the tech-lists is considered independently and the activity is
   considered a match is any single tech-list matches the tag that was
   discovered. This provides AND and OR semantics for filtering desired
  techs.
   

   and all tech-list technologies are implemented by the

tag. You're saying that the tag's technologies only need to match a
sub-set of the tech-list.

   yes

Or are you saying that a MifareUltralight
tag only reports MifareUltralight technology?

   No.

Or that the docs are
wrong?

   No they're just a little confusing.

I have a related question that I hope you don't mind answering here as
well. To build an intent filter in code that supports tech, how do you
specify the techlists on it? Or does this only work in foreground
dispatch mode?

   I am a little hazy on the details for this one, but I believe the best
   practice is to define all the intent filters you might want in the
  manifest,
   and then turn intent-filters on and off at run-time.

- dave

On Feb 23, 12:41 am, Nick Pelly npe...@google.com wrote:
 On Tue, Feb 22, 2011 at 6:50 PM, davemac davemac...@gmail.com
  wrote:
  

Re: [android-developers] How to open email in app with address

2011-02-28 Thread Justin Anderson
http://lmgtfy.com/?q=android+email+intent

On Mon, Feb 28, 2011 at 1:24 PM, brian purgert brianpurge...@gmail.comwrote:

 I want the person to click on a button and when they click it, it opens up
 their email and my email address is already there.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] is it possible to disable the home key for an activity?

2011-02-28 Thread Justin Anderson
That could cause major problems... The home key is supposed to be the user's
safe way to get back to a stable state.  If you could disable the home key
then an app could wreak havoc that would require you to reboot your phone to
get to a stable state.

On Mon, Feb 28, 2011 at 1:36 PM, TreKing treking...@gmail.com wrote:

 On Mon, Feb 28, 2011 at 2:34 PM, Aruna Shidling 
 aruna.shidl...@gmail.comwrote:

 Is it possible to disable the Home key for an activity which shows alert
 dialog ?


 No, you can't intercept the Home Key.


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


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


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

Re: [android-developers] Re: Installpackged

2011-02-28 Thread TreKing
On Mon, Feb 28, 2011 at 11:14 AM, Idan idan.f...@gmail.com wrote:

 we as a manufacture have permissions to use methods which are not available
 to end-client users/developers.


You should try a different group then - try platform or porting. This is for
using the SDK to do official things.

-
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: Is SL4A a better tool to test android Applications

2011-02-28 Thread A. Elk
This question, like the previous one, is too hypothetical. We can't
anticipate the types of testing you want to do.

Are you trying to do qualification testing of a particular device? Are
you trying to unit test or functional test an application? Are you
trying to test an existing application against a platform?

It wasn't clear to me to begin with why you were trying to test
existing Android applications, and what level of testing you were
trying to do.

Robotium is another option for writing test suites. It uses Java
rather than Javascript, and it's based on the model of app testing
used by Selenium.

It's not clear to me that you can use anything to test a customized
application. If the OEM is providing its own Contacts framework, then
it may be completely unrelated to the Android Contacts framework. In
that case, SL4A probably won't work because it assumes that the
standard Android framework is available.

On Feb 27, 11:06 pm, Shyam shyamstri...@gmail.com wrote:
 Thanks buddy.

 I have one more query.

 For example, Lets say the device is cusomized with its own OEM
 applications.
 For eg, Contacts application is customized. With SL4A, can we test
 that Contacts application ?

 Thanks,
 Shyam

 On Feb 25, 11:17 pm, Indicator Veritatis mej1...@yahoo.com wrote:







  Better? Maybe not. But since there are diverse tools for diverse kinds
  of testing, you should also be aware 
  ofhttp://developer.android.com/guide/developing/tools/monkey.htmland
  DeviceAnywhere.

  On Feb 24, 9:51 pm, Shyam shyamstri...@gmail.com wrote:

   Hello Android Developers,
   Currently i am using SL4A to test the existing Android Applications
   like media player,Contacts,Calling etc. Is it the correct way to Test
   the android apps. If no, please suggest me a better tool to test
   android apps.

   Thanks a ton in advance.
   Shyam

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >