[android-developers] Re: what is custom rom

2011-10-19 Thread vijay katta
Thanks Kris !!

On Oct 19, 12:56 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 This phrase refers to a custom version of android that you have built
 (or somebody has built) and installed on a system, one that isn't the
 standard android rom.  Although, since most manufacturers put their
 own tweaks on the system anyway, you could argue that there are a
 bunch of custom roms..

 (Though whenever you hear you can do that with a custom rom it's
 read: well, sure, if you get down to the system level you can do
 anything, so build a system and do that, but it's not like people are
 actually be running your system...)

 Kris

 On Tue, Oct 18, 2011 at 1:35 AM,vijaykattakatta.vij...@gmail.com wrote:
  When i was trying to learn android and hardware , i found the word
  custom rom ,
  i did't proper information on it , can any please explain what it is ?

  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] not supporting xhdpi resolution

2011-10-19 Thread Ratheesh Valamchuzhy
I am developing an app in android 2.2 , i want  to support my app in all
resolutions (ldpi,mdpi,hdpi,xhdpi)

so i created 4 folders in res folder (layout-ldpi ,layout-mdpi ,layout-hdpi
,layout-xhdpi)

then i given supported screens android manifest as

supports-screens   android:largeScreens=true android:normalScreens=true

 android:smallScreens=true android:anyDensity=true
android:resizeable=true android:xlargeScreens=true
 /supports-screens

it returns an error that

No resource identifier found for attribute 'xlargeScreens' in package
'android
plse help me


-- 
-- 
ωιтн яєgαя∂ѕ
Ratheesh * *...

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

2011-10-19 Thread Xavier Ducrohet
2.2 does not support xlarge screens. you have to compile against 2.3
(I think) or 3.0.

On Tue, Oct 18, 2011 at 11:23 PM, Ratheesh Valamchuzhy
android...@gmail.com wrote:
 I am developing an app in android 2.2 , i want  to support my app in all
 resolutions (ldpi,mdpi,hdpi,xhdpi)

 so i created 4 folders in res folder (layout-ldpi ,layout-mdpi ,layout-hdpi
 ,layout-xhdpi)

 then i given supported screens android manifest as

 supports-screens   android:largeScreens=true android:normalScreens=true
  android:smallScreens=true android:anyDensity=true
 android:resizeable=true android:xlargeScreens=true
  /supports-screens

 it returns an error that

 No resource identifier found for attribute 'xlargeScreens' in package
 'android
 plse help me


 --
 --
 ωιтн яєgαя∂ѕ
 Ratheesh ...


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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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: not supporting xhdpi resolution

2011-10-19 Thread Sharief Shaik
This attribute was introduced in API level 9.

Read the doc here:

http://developer.android.com/guide/topics/manifest/supports-screens-element.html#xlarge

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADT allows me to use exact screen dimension as a resource qualifier??

2011-10-19 Thread Doug
Well, in my case, it is desirable if not perfect.  :-(

I work on a very high profile app and I've been in contact with a
Samsung rep who is encouraging us to support the Galaxy Note for the
home screen that is having problems with layout on its display.  I
have been assured that it will be shipping with Gingerbread and being
large.  (They are also testing the app on a device that they will
not share with us.)

With this resource qualifier for screen dimension, does anyone know if
it is width x height or the other way around, or does it matter at
all?

Doug

On Oct 18, 3:37 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Those resource qualifiers exist at runtime since 1.6, but the official
 position (as posted by Dianne Hackborn on this list) is that it's not
 desirable to use them because they are too specific.

 I wonder if there is a better way, perhaps that device will actually ship
 with ICS, or perhaps it won't present itself as -large?

 --
 Kostya Vasilyev
 19.10.2011 2:22 пользователь Doug beafd...@gmail.com написал:







  There is a curious thing I noticed about the ADT tooling this week
  when using the New Android XML File feature.  It allows you to select
  any number of resource qualifiers and will conveniently create the
  folder for that configuration, which is great.  But I noticed that it
  has a qualifier for Dimension, which when added to your chosen
  qualifiers, asks you for two numbers (width and height, presumably).
  The numbers you enter get placed into your folder name like this:

  layout-large-WxH

  Where W and H are width and height.  Or they could be reversed, I
  don't know.  The point is that this kind of resource qualifier is
  documented NOWHERE as far as I can tell.  ADT is the only thing that
  apparently understands this.  And to be honest, I haven't tested to
  see if it works on a real device, but I'm skeptical that it would
  work.

  The context for all this is that I'm trying to target the upcoming
  Galaxy Note screen.  It's unique in that it's a large screen that is
  also xhdpi at 1280x800.  My large layouts are meant for tablets, but
  the Galaxy Note just isn't wide enough in portrait to do what we do on
  real tablets.  In fact, it probably shouldn't even be classified as
  large given its effective width in dp.  And since the Galaxy Note
  doesn't target Android 3.2 so we can't use the new min width and
  height qualifiers.  So I'd love to target just 1280x800 if possible to
  work around this one device for now.

  Doug

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

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

2011-10-19 Thread Ali Chousein
Try Android groups in LinkedIn. They have job posting on daily basis.
You won't find any job postings in this group.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/

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


[android-developers] Re: Filtering NFC intents, NDEF message external type

2011-10-19 Thread Kamen Goranchev
Hi,

The solution to this problem is already available.

In your case the intent filter should look like this:

intent-filter
action 
android:name=android.nfc.action.NDEF_DISCOVERED/
category 
android:name=android.intent.category.DEFAULT/
data android:scheme=vnd.android.nfc
android:host=ext
android:pathPrefix=/busInfo.company.com/
/intent-filter

For more detailed information on how the external tags are mapped to intend 
filters, please refer to the the android developer site:
http://developer.android.com/guide/topics/nfc/nfc.html#ext-type

Best Regards,
Kamen Goranchev

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

2011-10-19 Thread Droid
I tried my renderscript app out on an Asus tablet in a shop. It did
not work :(  Not force closeing but it displayed nothing.

Anyway to check fast renderscript apps? - I cannot afford to test on
every tablet.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HTTP Live Streaming for MP4, 3gp video files in Android

2011-10-19 Thread Shajahan
Thanks Mark ...
After hinting the MP4 files using the MP4BOX and hosting at some
remote location (like say hosting at dropbox) works fine.
But still some of the files doesn't work. (in particular length more
than 2mins track)
So, my question is there any limit on the size/length of the video
file like say it works for length 1min or 2mins tracks and those of
greater than this length doesn't work.

what is the MOOV and mdat atoms ?? what is the difference ?? how to
recognize it ?? If someone has some good site links please share.


On Oct 18, 5:22 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Oct 18, 2011 at 7:39 AM, Shajahan lovesa...@gmail.com wrote:
  Everywhere in the blog/group I read about the hinting the MP4 file with
  MP4Box. But I dint get it about how to go for it. (People who have worked
  with hinting please post the code)

 There is no code. You download MP4Box. You run it at the command line
 of your development machine, using the --hint switch, to fix up a
 video file.

 If you do not own the video file, and it does not play in Android,
 contact the publisher of that video file and ask them to do the
 hinting for you. Tell them that it will also speed up playback of
 their videos on iPhone, as iOS will not have to buffer atoms waiting
 for the MOOV atom to know what to do with the data.

 BTW, Dave Sparks indicated to me at Google I|O 2011 that this is less
 of an issue with Stagefright, so Android 2.3+ might have better luck
 playing your videos. Conversely, it is also possible that the MP4Box
 --hint trick will no longer fix problematic videos on Android 2.3+.

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

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

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


[android-developers] Problems texturing a cube

2011-10-19 Thread saex
im trying to make a cube with a different texture on each face.

I have the front face and the rear face working now. Now i am trying
to make the right face of the cube. But something is going wrong,
because i got the right face done but the texture is showing with
errors (it's like stretched and shredded), i have something bad in my
code and i dont know what.

This is my code

public class Cube {

private FloatBuffer vertexBuffer;//Vertices
private FloatBuffer textureBuffer;//Texture coordinates
private ByteBuffer indexBuffer;//Indices
private int[] textures = new int[6];//Texture pointer

private float vertices[] = { //8 vertices of the cube
-1.0f, -1.0f, 1.0f, // 0
1.0f, -1.0f, 1.0f,  // 1
-1.0f, 1.0f, 1.0f,  // 2
1.0f, 1.0f, 1.0f,   // 3

-1.0f, -1.0f, -1.0f,// 4
1.0f, -1.0f, -1.0f, // 5
-1.0f, 1.0f, -1.0f, // 6
1.0f, 1.0f, -1.0f,  // 7
};

private byte indices[] = { //Faces definition
0,1,2, 1,3,2, //front face (*)
6,7,5, 6,5,4, //rear face (**)
1,5,3, 5,7,3, //right face (***) //problems here
};

private float texture[] = {//Mapping coordinates for the vertices
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f,

0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f,

0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f,
};

public Cube()
{
ByteBuffer byteBuf = ByteBuffer.allocateDirect(vertices.length 
* 4);
byteBuf.order(ByteOrder.nativeOrder());
vertexBuffer = byteBuf.asFloatBuffer();
vertexBuffer.put(vertices);
vertexBuffer.position(0);

byteBuf = ByteBuffer.allocateDirect(texture.length * 4);
byteBuf.order(ByteOrder.nativeOrder());
textureBuffer = byteBuf.asFloatBuffer();
textureBuffer.put(texture);
textureBuffer.position(0);

indexBuffer = ByteBuffer.allocateDirect(indices.length);
indexBuffer.put(indices);
indexBuffer.position(0);
}

public void draw(GL10 gl) {
//Point to our buffers
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//Set the face rotation
gl.glFrontFace(GL10.GL_CCW);
//Enable the vertex and texture state
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);
//para que no pinte los poligonos que no se ven
//gl.glEnable(GL10.GL_CULL_FACE);
for(int i=0; i3; i++) //6 por que tenemos 6 texturas que 
queremos
poner en las 6 caras de un cubo.
{
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[i]);
indexBuffer.position(6*i); //como cada dos triangulos 
(cuadrado)
forman una cara, estos dos triangulos son 6 indices del array de
indices, por lo tanto avanzamos 6 posiciones en el indexBuffer para
pintar el siguiente cuadrado.
gl.glDrawElements(GL10.GL_TRIANGLES, 6, 
GL10.GL_UNSIGNED_BYTE,
indexBuffer); //el segundo parametro es 6 por que solo queremos pintar
una cara (cuadrado) por textura.
}
//gl.glDisable(GL10.GL_CULL_FACE); //para que no pinte los 
poligonos
que no se ven
//Disable the client state before leaving
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
}

public void loadGLTexture(GL10 gl, Context context) {
loadTexture(gl,context,R.drawable.s1,0);
loadTexture(gl,context,R.drawable.s2,1);
loadTexture(gl,context,R.drawable.s3,2);
loadTexture(gl,context,R.drawable.s4,3);
loadTexture(gl,context,R.drawable.s5,4);
loadTexture(gl,context,R.drawable.s6,5);
}

public void loadTexture(GL10 gl, Context context, int drawable, int
textureNumber)
{
//Get the texture from the Android resource directory
InputStream is = 
context.getResources().openRawResource(drawable);
Bitmap bitmap = null;
try {
//BitmapFactory is an Android graphics utility for 
images
bitmap = BitmapFactory.decodeStream(is);
} finally {
   

[android-developers] App dosen't install on certain phones

2011-10-19 Thread vandy
Hi

my app dosent get installed on certain phones. I get the following
exception.

STACK_TRACE
==
java.lang.RuntimeException: Unable to create application com.xyz:
android.database.sqlite.SQLiteDiskIOException: disk I/O error
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
3798)
at android.app.ActivityThread.access$2200(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1082)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4263)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteDiskIOException: disk I/O
error
at android.database.sqlite.SQLiteDatabase.native_setLocale(Native
Method)
at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
2101)
at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1969)
at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
902)
at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
936)
at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
929)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:601)
at
android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:
203)
at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:
118)
at com.xyz.db.XyzDBAdapter.open(XyzDBAdapter.java:63)
at com.xyz.utils.xyzUtils.getUserInfo(xyzUtils.java:362)
at com.xyz.xyzApplication.onCreate(xyzApplication.java:69)
at
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:
984)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
3795)
... 10 more
android.database.sqlite.SQLiteDiskIOException: disk I/O error
at android.database.sqlite.SQLiteDatabase.native_setLocale(Native
Method)
at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
2101)
at android.database.sqlite.SQLiteDatabase.(SQLiteDatabase.java:1969)
at
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
902)
at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
936)
at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:
929)
at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:601)
at
android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:
203)
at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:
118)
at com.xyz.db.xyzDBAdapter.open(xyzDBAdapter.java:63)
at com.xyz.utils.xyzUtils.getUserInfo(xyzUtils.java:362)
at com.xyz.xyzApplication.onCreate(xyzApplication.java:69)
at
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:
984)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:
3795)
at android.app.ActivityThread.access$2200(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
1082)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4263)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)


any idea what this could be

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

2011-10-19 Thread Francisco Dalla Rosa soares
make sure you've added the activity to the manifest

2011/10/15 Jimmy jimmywang...@gmail.com

 Dear Sir

 I make an Intent call from one Activity PlaceListActivity to another
 Activity PlaceMappingActivity. The DDMS Debug error displayed as
 following:

 10-15 11:03:44.834: WARN/dalvikvm(364): Unable to resolve superclass
 of Lcom/JWScientech/FavoritePlaces/PlaceMappingActivity; (70)
 10-15 11:03:44.834: WARN/dalvikvm(364): Link of class 'Lcom/
 JWScientech/FavoritePlaces/PlaceMappingActivity;' failed
 10-15 11:03:44.853: ERROR/dalvikvm(364): Could not find class
 'com.JWScientech.FavoritePlaces.PlaceMappingActivity', referenced from
 method
 com.JWScientech.FavoritePlaces.PlaceListActivity.createMap
 10-15 11:03:44.853: WARN/dalvikvm(364): VFY: unable to resolve const-
 class 57 (Lcom/JWScientech/FavoritePlaces/PlaceMappingActivity;)
 in   Lcom/JWScientech/FavoritePlaces/PlaceListActivity;

 The debug break point stoped at Intent call code:
 Intent i = new Intent(this, PlaceMappingActivity.class);

 The method createMap() in PlaceListActivity is as following:

 private void createMap() {

 Intent i = new Intent(this, PlaceMappingActivity.class);
 startActivity(i);
 }


 It is intesting that when I put PlaceMappingActivity class as
 application main Activity in Manifest.xml, The PlaceMappingActivity
 class is working well. I don't know what's wrong in my codes.

 Thanks


 Jimmy

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




-- 
株式会社アルゴ ARGO Inc.
〒130-0012
東京都墨田区太平3-11-10
NTKオオノビル8階

ソアレス フランシスコ ( Soares Francisco )
Mail : soa...@argo.bz HP : http://www.argo.bz/
TEL:03-5619-4511 FAX:03-5619-4512

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Package is not available in sample folder of android sdk.

2011-10-19 Thread shweta
Hello,

There is action bar compatibilty package in android 3.0 in android
developer site . i have installed android 3.0 but  i don't get action
bar compatibilty package in android -sdk.

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

2011-10-19 Thread Ravinder Reddy
How to upload videos in to youtube account from my android application.(By
using Youtube API)

Any sample code please share with me.

-- 
Ravinder Reddy Jonnalagadda

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

2011-10-19 Thread ravi
How to upload videos in to youtube account from my android application.
(By using Youtube API)

Any sample code please share with me.

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


Re: [android-developers] video uploading to youtube account by using Youtube api

2011-10-19 Thread Daniel Drozdzewski
On 19 October 2011 10:43, Ravinder Reddy ravinderjre...@gmail.com wrote:
 How to upload videos in to youtube account from my android application.(By
 using Youtube API)

 Any sample code please share with me.

Description and code samples:
http://code.google.com/apis/youtube/2.0/developers_guide_java.html#Uploading_Videos

-- 
Daniel Drozdzewski

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

2011-10-19 Thread ndiiie 90
Hi guys,

has anyone experienced the oddness of imageview?

I have an imageview and other textviews in one layout,
when i tried to set the imageview, below is the code

String baseurl = http://www.test.com;;
String urlOfImage = baseurl + 1.jpeg;
Drawable image = ImageOperations(getApplicationContext(),urlOfImage);
dealsImage.setImageDrawable(image);


and


private Drawable ImageOperations(Context ctx, String url) {
try {
InputStream is = (InputStream) this.fetch(url);
Drawable d = Drawable.createFromStream(is, src);
return d;
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
} catch (IOException e) {
e.printStackTrace();
return null;
}
}


the result will be, image is displayed correctly from the server, however,
all textviews, buttons etc are gone!

Has anyone experienced this? And how to resolve this odd issue?

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

2011-10-19 Thread narasimha venkat
hi
robotium is better way to test the application
easy to handle junit test code and run  min time  this is the good one

On Thu, Oct 13, 2011 at 7:19 PM, Mahendran smahend...@gmail.com wrote:

 I'm new to Android and I'm trying to understand
 1. Which is better tool for testing both Native app. and Web based
 application?
 2. MonkeyRunner code can be run in mobile device or can be done only
 in the SDK?


 Thanks,
 Mahendran

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Package is not available in sample folder of android sdk.

2011-10-19 Thread Kostya Vasilyev
The compatibility library is a separate download, listed under
extras/Google, I believe.

--
Kostya Vasilyev
19.10.2011 13:24 пользователь shweta sonalaggrawal2...@gmail.com
написал:

 Hello,

 There is action bar compatibilty package in android 3.0 in android
 developer site . i have installed android 3.0 but  i don't get action
 bar compatibilty package in android -sdk.

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

2011-10-19 Thread vani reddy
Hi friends,

In the attached snapshot i have 3 buttons which are vertically aligned,and
an imageview to the left of it.
I want the imageview to fill the width and have 3 buttons at the right
side.How to accomplish that?

I have used the below code

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:background=#fff
android:layout_width=fill_parent android:layout_height=fill_parent
LinearLayout
android:layout_width=fill_parent
android:orientation=horizontal
android:layout_height=wrap_content 

ImageView android:id=@+id/thumbImage
android:layout_width=wrap_content
android:src=@drawable/index1
android:layout_gravity=fill_horizontal
android:layout_height=wrap_content /

RelativeLayout
android:orientation=vertical
android:layout_alignParentRight=true
android:layout_toRightOf=@id/thumbImage
android:paddingRight=10dip
android:id=@+id/main

android:layout_centerHorizontal=true
android:layout_centerVertical=true
android:layout_width=wrap_content
android:layout_height=wrap_content 


ImageView android:id=@+id/check
android:layout_width=wrap_content
android:src=@drawable/check
android:layout_gravity=center_horizontal|center
android:layout_height=wrap_content
android:layout_alignParentRight=true
 /
ImageView android:id=@+id/bookmark
android:layout_width=wrap_content
android:layout_marginTop=5dip
android:layout_below=@id/check
android:src=@drawable/bookmark
android:layout_gravity=center_horizontal|center
android:layout_height=wrap_content
android:layout_alignParentRight=true
 /
ImageView android:id=@+id/delete
android:layout_width=wrap_content
android:src=@drawable/close
android:layout_below=@id/bookmark
android:layout_gravity=center_horizontal|center
android:layout_marginTop=5dip
android:layout_height=wrap_content
android:layout_alignParentRight=true
 /
/RelativeLayout

/LinearLayout

/RelativeLayout


-- 
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=enattachment: device.png

[android-developers] Re: Filtering NFC intents, NDEF message external type

2011-10-19 Thread MrChaz
Yeah, this seems to have appeared somewhere post 2.3.3

On Oct 19, 8:50 am, Kamen Goranchev kamen.goranc...@gmail.com wrote:
 Hi,

 The solution to this problem is already available.

 In your case the intent filter should look like this:

                 intent-filter
                     action
 android:name=android.nfc.action.NDEF_DISCOVERED/
                     category
 android:name=android.intent.category.DEFAULT/
                     data android:scheme=vnd.android.nfc
                                 android:host=ext
                             android:pathPrefix=/busInfo.company.com/
                 /intent-filter

 For more detailed information on how the external tags are mapped to intend
 filters, please refer to the the android developer 
 site:http://developer.android.com/guide/topics/nfc/nfc.html#ext-type

 Best Regards,
 Kamen Goranchev

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

2011-10-19 Thread GopalaKrishnan D
Anyone know about BSE value web service...  can i get BSE details via free
webservice. pls help me

-- 
~* Regards*
*GopalaKrishnan 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] Re: layout problem

2011-10-19 Thread viktor
http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType

set scale type to the fitXY

Or you can calculate width and height for your ImageView manualy by
ParentView (width, height) with correct aspect ration for your image.

On 19 Жов, 13:15, vani reddy vani.reddy.bl...@gmail.com wrote:
 Hi friends,

 In the attached snapshot i have 3 buttons which are vertically aligned,and
 an imageview to the left of it.
 I want the imageview to fill the width and have 3 buttons at the right
 side.How to accomplish that?

 I have used the below code

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:background=#fff
     android:layout_width=fill_parent android:layout_height=fill_parent
     LinearLayout
     android:layout_width=fill_parent
     android:orientation=horizontal
     android:layout_height=wrap_content 

     ImageView android:id=@+id/thumbImage
 android:layout_width=wrap_content
     android:src=@drawable/index1
     android:layout_gravity=fill_horizontal
         android:layout_height=wrap_content /

         RelativeLayout
         android:orientation=vertical
         android:layout_alignParentRight=true
         android:layout_toRightOf=@id/thumbImage
         android:paddingRight=10dip
         android:id=@+id/main

         android:layout_centerHorizontal=true
         android:layout_centerVertical=true
         android:layout_width=wrap_content
         android:layout_height=wrap_content 

         ImageView android:id=@+id/check
 android:layout_width=wrap_content
         android:src=@drawable/check
         android:layout_gravity=center_horizontal|center
         android:layout_height=wrap_content
 android:layout_alignParentRight=true
          /
     ImageView android:id=@+id/bookmark
 android:layout_width=wrap_content
     android:layout_marginTop=5dip
     android:layout_below=@id/check
     android:src=@drawable/bookmark
     android:layout_gravity=center_horizontal|center
         android:layout_height=wrap_content
 android:layout_alignParentRight=true
          /
         ImageView android:id=@+id/delete
 android:layout_width=wrap_content
         android:src=@drawable/close
         android:layout_below=@id/bookmark
         android:layout_gravity=center_horizontal|center
         android:layout_marginTop=5dip
         android:layout_height=wrap_content
 android:layout_alignParentRight=true
          /
         /RelativeLayout

     /LinearLayout

 /RelativeLayout

 --
 Regards,
 Vani Reddy

  device.png
 44KДивитисьЗавантажити

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADT allows me to use exact screen dimension as a resource qualifier??

2011-10-19 Thread Kostya Vasilyev


19.10.2011 11:03, Doug пишет:

Well, in my case, it is desirable if not perfect.  :-(

I work on a very high profile app and I've been in contact with a
Samsung rep who is encouraging us to support the Galaxy Note for the
home screen that is having problems with layout on its display.  I
have been assured that it will be shipping with Gingerbread and being
large.  (They are also testing the app on a device that they will
not share with us.)


According to the chart here:

http://developer.android.com/guide/practices/screens_support.html#range

 the Galaxy Tab should be a Normal screen, if I'm reading it right.

But I guess they want apps to look like they do on a tablet - do you 
know if they're going to include a magnifying glass?




With this resource qualifier for screen dimension, does anyone know if
it is width x height or the other way around, or does it matter at
all?


It's width x height (switched in land mode, too). I guess it's been 
taken out of the documentation.


And... psst... you didn't hear about this from me :)

-- Kostya



Doug

On Oct 18, 3:37 pm, Kostya Vasilyevkmans...@gmail.com  wrote:

Those resource qualifiers exist at runtime since 1.6, but the official
position (as posted by Dianne Hackborn on this list) is that it's not
desirable to use them because they are too specific.

I wonder if there is a better way, perhaps that device will actually ship
with ICS, or perhaps it won't present itself as -large?

--
Kostya Vasilyev
19.10.2011 2:22 пользователь Dougbeafd...@gmail.com  написал:








There is a curious thing I noticed about the ADT tooling this week
when using the New Android XML File feature.  It allows you to select
any number of resource qualifiers and will conveniently create the
folder for that configuration, which is great.  But I noticed that it
has a qualifier for Dimension, which when added to your chosen
qualifiers, asks you for two numbers (width and height, presumably).
The numbers you enter get placed into your folder name like this:
layout-large-WxH
Where W and H are width and height.  Or they could be reversed, I
don't know.  The point is that this kind of resource qualifier is
documented NOWHERE as far as I can tell.  ADT is the only thing that
apparently understands this.  And to be honest, I haven't tested to
see if it works on a real device, but I'm skeptical that it would
work.
The context for all this is that I'm trying to target the upcoming
Galaxy Note screen.  It's unique in that it's a large screen that is
also xhdpi at 1280x800.  My large layouts are meant for tablets, but
the Galaxy Note just isn't wide enough in portrait to do what we do on
real tablets.  In fact, it probably shouldn't even be classified as
large given its effective width in dp.  And since the Galaxy Note
doesn't target Android 3.2 so we can't use the new min width and
height qualifiers.  So I'd love to target just 1280x800 if possible to
work around this one device for now.
Doug
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev

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

2011-10-19 Thread viktor
You should read more about android layouts, maybe  your image layout
is displaces other layouts if Image is bigger than display width.

Please, provide your layout.

On 19 Жов, 12:54, ndiiie 90 rnd...@gmail.com wrote:
 Hi guys,

 has anyone experienced the oddness of imageview?

 I have an imageview and other textviews in one layout,
 when i tried to set the imageview, below is the code

 String baseurl = http://www.test.com;;
 String urlOfImage = baseurl + 1.jpeg;
 Drawable image = ImageOperations(getApplicationContext(),urlOfImage);
 dealsImage.setImageDrawable(image);

 and

 private Drawable ImageOperations(Context ctx, String url) {
 try {
 InputStream is = (InputStream) this.fetch(url);
 Drawable d = Drawable.createFromStream(is, src);
 return d;} catch (MalformedURLException e) {

 e.printStackTrace();
 return null;} catch (IOException e) {

 e.printStackTrace();
 return null;

 }
 }

 the result will be, image is displayed correctly from the server, however,
 all textviews, buttons etc are gone!

 Has anyone experienced this? And how to resolve this odd issue?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem with MediaController view while playing audio file (MP3 format)

2011-10-19 Thread Shajahan
*Description of the Problem:*
When I executed the below code it works fine on the device and also plays
the song, but the problem is with MediaContoller buttons.
When I intentionally clicks on any of the buttons (like seek, start/stop,
prev, next, etc)  the application crashes with NullPointerException.*

Layout XML:*
?xml version=1.0 encoding=utf-8?
LinearLayout
android:id=@+id/LinearLayout01
android:layout_height=fill_
parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:paddingLeft=2px
android:paddingRight=2px
android:paddingTop=2px
android:paddingBottom=2px
android:layout_width=fill_parent
android:orientation=vertical
*android.widget.MediaController *
android:layout_height=fill_parent
android:layout_width=fill_parent
android:id=@+id/VideoView
/*android.widget.MediaControlle*r
/LinearLayout

*Base Code*:
String path1 = 
http://cdnbakmi.kaltura.com/p/623862/sp/62386200/serveFlavor/flavorId/1_syb2br5b/name/1_syb2br5b.mp3
;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.video);
MediaController mctrl;
mctrl = new MediaController(this);

MediaController mctrlView;
mctrlView = (MediaController)findViewById(R.id.VideoView);

MediaPlayer mMediaPlayer;
mMediaPlayer = new MediaPlayer();

try {
mctrlView.setEnabled(true);
mctrl.setEnabled(true);
mMediaPlayer.setDataSource(path1);
mMediaPlayer.prepare();
mctrlView.setAnchorView(mctrl);
// mctrl.show();
mMediaPlayer.start();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

*Exception Trace:*

10-19 15:48:28.301: ERROR/AndroidRuntime(194): Uncaught handler: thread main
exiting due to uncaught exception
10-19 15:48:28.321: ERROR/AndroidRuntime(194): *
java.lang.NullPointerException*
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.widget.MediaController.doPauseResume(MediaController.java:439)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.widget.MediaController.access$400(MediaController.java:69)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.widget.MediaController$3.onClick(MediaController.java:418)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.View.performClick(View.java:2344)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.View.onTouchEvent(View.java:4133)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.View.dispatchTouchEvent(View.java:3672)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1202)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.os.Looper.loop(Looper.java:123)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
android.app.ActivityThread.main(ActivityThread.java:4203)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
java.lang.reflect.Method.invokeNative(Native Method)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
java.lang.reflect.Method.invoke(Method.java:521)
10-19 15:48:28.321: ERROR/AndroidRuntime(194): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
10-19 

Re: [android-developers] Re: HTTP Live Streaming for MP4, 3gp video files in Android

2011-10-19 Thread Mark Murphy
On Wed, Oct 19, 2011 at 4:15 AM, Shajahan lovesa...@gmail.com wrote:
 So, my question is there any limit on the size/length of the video
 file like say it works for length 1min or 2mins tracks and those of
 greater than this length doesn't work.

Not usually.

 what is the MOOV and mdat atoms ?? what is the difference ?? how to
 recognize it ?? If someone has some good site links please share.

This is part of MP4 and has nothing to do with Android.

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

Android 3.1 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] JPEG in animated wallpapers

2011-10-19 Thread Rockline
Hi gents,

I'm trying to develop an animated wallpaper for Android 2.1.
My first step would be to draw a JPEG image onto the screen but it
doesn't seem to work.

Any idea?


public class RumblefishWallpaper extends WallpaperService {

@Override
public void onCreate() {
super.onCreate();
}

@Override
public void onDestroy() {
super.onDestroy();
}

@Override
public Engine onCreateEngine() {
Context c = this.getApplicationContext();
return new RumblefishWallpaperEngine(c);
}


public class RumblefishWallpaperEngine extends Engine {
private float mTouchX = -1;
private float mTouchY = -1;
private Context myContext;

RumblefishWallpaperEngine(Context c)
{
myContext = c;
drawFrame();
}

private final Runnable mDrawCube = new Runnable() {
public void run() {
drawFrame();
}
};

@Override
public void onCreate(SurfaceHolder surfaceHolder) {
super.onCreate(surfaceHolder);

// By default we don't get touch events, so enable them.
setTouchEventsEnabled(true);
}

/*
 * Store the position of the touch event so we can use it for
drawing later
 */
@Override
public void onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_MOVE) {
mTouchX = event.getX();
mTouchY = event.getY();
} else {
mTouchX = -1;
mTouchY = -1;
}
drawFrame();
super.onTouchEvent(event);
}

void drawFrame() {
final SurfaceHolder holder = getSurfaceHolder();

Canvas c = null;
try {
c = holder.lockCanvas();
if (c != null) {
// draw something
Resources alpha = myContext.getResources();
Drawable a =
alpha.getDrawable(R.drawable.icon);
a.draw(c);
}
} finally {
if (c != null) holder.unlockCanvasAndPost(c);
}
}

}

}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HTTP Live Streaming for MP4, 3gp video files in Android

2011-10-19 Thread Sumedh Jiwane
Hinting MP4 simply adds the Hinting track to MP4 files for progressive
download. This is helpful if you want to stream file. Hinting tracks are
additional tracks for quick access to data. Check the android document for
audio/video codec supported and match them against the file that you are
playing.

On Wed, Oct 19, 2011 at 4:49 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Oct 19, 2011 at 4:15 AM, Shajahan lovesa...@gmail.com wrote:
  So, my question is there any limit on the size/length of the video
  file like say it works for length 1min or 2mins tracks and those of
  greater than this length doesn't work.

 Not usually.

  what is the MOOV and mdat atoms ?? what is the difference ?? how to
  recognize it ?? If someone has some good site links please share.

 This is part of MP4 and has nothing to do with Android.

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

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Combo boxes with service-created WebView - any workarounds?

2011-10-19 Thread TreKing
On Tue, Oct 18, 2011 at 10:50 AM, Brian avalo...@caerleon.us wrote:

 I'd like to be able to preserve the complete web view state as well as
 have combo boxes work properly, but at this point the only choice I
 have is to provide a switch that lets the user choose one or the
 other.  Any ideas on ways to let me keep both?


Determine which properties of the WebView's state you really care about and
serialize that to Bundle / File / Database, whatever. Then recreate a
WebView within an Activity's context when you need it with the saved
properties instead of from a Service's Context (which kind of feels
wrong).

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

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

Re: [android-developers] [HELP] Use TextView as a RadioButton

2011-10-19 Thread TreKing
On Tue, Oct 18, 2011 at 9:58 PM, Igor Araujo igor.arauj...@gmail.comwrote:

 I made one class that derivates from RadioButton and I've overrided the
 onDraw() method. So I'm able to use the RadioGroup and draw the view the way
 I wish.


Well, if it works, but even that is overkill. Like I said, the RadioButton
lets you set the images to use for its various states - no need to override
onDraw().

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

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

Re: [android-developers] Hello Grid View Debug output

2011-10-19 Thread TreKing
On Tue, Oct 18, 2011 at 1:10 AM, sidharth garg sidharth.n...@gmail.comwrote:

 My emulator is not able to run this, i have to force close that. Attached
 is the output of my LOGCAT, can you please help me to identify the problem.


If your Activity can't be found, it's usually because you forgot to declare
it in your manifest.

-
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] When can we expect source code release for icecream sandwich version?

2011-10-19 Thread swapnil kamble
Hi Android Developers,
When can we source code release for
icecream sandwich ? We are eagerly waiting for this release. Lots of things
are implemented that we are looking for.

Thanks in advance

Swapnil

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

[android-developers] Re: Need 2D game engine

2011-10-19 Thread Oli Wright
Eryl,

First step, have a read of this: 
http://www.catb.org/~esr/faqs/smart-questions.html#before

It's worth reading the whole page, but I think that particular section 
applies heavily here.

To give you some guidance for your searches, I'd suggest you look at either 
libgdx or AndEngine.  If you're starting from the position of a complete 
beginner, it may be helpful to read up on the subject.  For that I'd 
recommend getting a copy of Beginning Android Games.

Cheers,
Oli

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can we expect source code release for icecream sandwich version?

2011-10-19 Thread Mark Murphy
On Wed, Oct 19, 2011 at 8:50 AM, swapnil kamble swap.kam...@gmail.com wrote:
     When can we source code release for
 icecream sandwich ?

Someday. Maybe.

In other words, you will find out when it will be released only after
it has been released.

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

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


Re: [android-developers] Re: Need 2D game engine

2011-10-19 Thread Nico Balestra
Libgdx
Appengine

2011/10/19 Oli Wright oli.wri...@gmail.com

 Eryl,

 First step, have a read of this:
 http://www.catb.org/~esr/faqs/smart-questions.html#before

 It's worth reading the whole page, but I think that particular section
 applies heavily here.

 To give you some guidance for your searches, I'd suggest you look at either
 libgdx or AndEngine.  If you're starting from the position of a complete
 beginner, it may be helpful to read up on the subject.  For that I'd
 recommend getting a copy of Beginning Android Games.

 Cheers,
 Oli

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

2011-10-19 Thread Nico Balestra
Errata corriege:
Libgdx
ANDengine
:)

2011/10/19 Nico Balestra nicobales...@gmail.com

 Libgdx
 Appengine


 2011/10/19 Oli Wright oli.wri...@gmail.com

 Eryl,

 First step, have a read of this:
 http://www.catb.org/~esr/faqs/smart-questions.html#before

 It's worth reading the whole page, but I think that particular section
 applies heavily here.

 To give you some guidance for your searches, I'd suggest you look at
 either libgdx or AndEngine.  If you're starting from the position of a
 complete beginner, it may be helpful to read up on the subject.  For that
 I'd recommend getting a copy of Beginning Android Games.

 Cheers,
 Oli

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

2011-10-19 Thread Perumss Naren
Hi all,

 How to transfer data between Android and Iphone ? what are the ways
? i know web-service rest i need please help me

 Thanks in advance!

-- 
Regards,

Perumal.N

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

2011-10-19 Thread BearTi
No one an idea? Is it not possible?


On 18 Okt., 18:56, BearTi mlrti...@googlemail.com wrote:
 Hi,

 in my App I want to send a SMS via...

 Uri uri = Uri.parse(smsto:1234567891012);
 Intent it = new Intent(Intent.ACTION_SENDTO, uri);
 it.putExtra(sms_body, The SMS text);
 startActivity(it);

 ... because I want that the SMS that has being sent is in my built in
 SMS-App... with the PendingIntent it is not saved there...

 Is it possible that I send the SMS directly, so that the User don´t
 have to push the send Button?

 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] ListView realtime

2011-10-19 Thread TreKing
On Mon, Oct 17, 2011 at 9:14 PM, dharma teja dharmas...@gmail.com wrote:

 When ever a new element adds to the list i am calling
 notifyDatasetChanged() method.
 but the data is not updated in the list view.


That should be all you need. Is your getView() method being called?

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

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

Re: [android-developers] Re: Direct SMS send with saved outgoing SMS

2011-10-19 Thread Mark Murphy
On Wed, Oct 19, 2011 at 9:17 AM, BearTi mlrti...@googlemail.com wrote:
 No one an idea? Is it not possible?

Either use SmsManager (no button click, but not recorded by any SMS
client, since you are not using an SMS client) or ACTION_SENDTO (uses
default SMS client, but user gets the chance to edit or cancel the
SMS).

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

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


Re: [android-developers] ListView scroll lag with images

2011-10-19 Thread Sharief Shaik
The images are read asynchronously already as shown in the above code. But 
the UI still freezes. When I disabled the line of code that fetches the 
image from SD card, the scroll is smooth. Is there any other way I can look 
at a solution to this problem? Is it a good idea to fetch and store the 
images in main memory(hashmap, softreference) ahead instead of doing an IO 
for each row every time? The images are of .png format and are upto 30kb 
each.

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

2011-10-19 Thread Robert
This is something I really can't understand. Why can't the android
engineers give us a way to create custom views for appwidgets? Diane
Hackborn argues not to abuse them and yet why does she care? After all
it's up to the user to decide if the impact on the experience is worth
it or not. If they don't like their experience being affected they'll
remove the widget. Really brings home the point Steve Yegge (http://
steverant.pen.io/) said about google's arrogance and that android
engineers are designing the perfect product because they know better
than the users and developers that support them.

I'm not concerned with the ipc limit since I use a file and send the
uri to the remoteview. But I do ask why can't android (Diane?) add
information like the current size of an appwidget, add a
callback(intent) for when it is resized and add data for the touch x/y
when a widget's pending intent is called? With those three additions
it becomes very easy to create an image that acts as a custom view. Of
course I'm open to better ideas too, like allowing an application to
run normally but as a launcher widget...

On Aug 25, 3:44 pm, String sterling.ud...@googlemail.com wrote:
 On Thursday, August 25, 2011 6:41:33 PM UTC+1, Dianne Hackborn wrote:

 But please please please -- don't abuse widgets by consuming lots of

  resources with them, this has a direct impact on the overall experience.

 Yeah, I hear you, honestly I do.

 It's a situation, though, where users complain if you *don't* provide a 4x4
 widget in addition to the ones you already do. Or they complain because,
 when you provide a resizable widget on Honeycomb, it gets pixellated at 8x8
 (or whatever). And given how sensitive Market sales are to comments 
 ratings, you can't just ignore these complaints, Nor can you engage with the
 user and explain why that's not a good idea; Market comments don't work that
 way.

 So Dianne, if you want to keep devs from abusing appwidgets, go talk to the
 Market folks and convince them to improve the comment system. :^)
 . . .
 I may still open an issue on b.android.com, but not to get this 1MB limit
 lifted. I'd be happy just to see the limit documented, and better behavior
 when it's broken, rather than the cryptic !!! FAILED BINDER TRANSACTION !!!
 message in LogCat and silent failure in the Java code.

 String

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


Re: [android-developers] easier to buy

2011-10-19 Thread TreKing
On Mon, Oct 17, 2011 at 10:42 AM, zhadowz zhadowz.ma...@gmail.com wrote:

 Well maybe if people were able to buy the apps from the market
 using alternative payments rather than credit card only


 Many carriers allow charging to your phone bill.

we wouldn't have to use sites where the apps are free make it easier to buy
 the apps until then you won't get a $ € £ ¥ outta me !!!


You use sites where the apps are *free* to make it easier to *buy *the
apps?

That makes no sense, but thanks for telling a group of developers that you
apparently like to pirate their software. Classy.

-
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] Proper usage of Fragments + ActionBar

2011-10-19 Thread Sebastian Roth
Hi everyone:

Guess I need some help on how to use the ActionBar in combination with
Fragments.

Simple App Structure:
 Activity A
  Fragment 1
  Fragment 2

Activity A loads, starts Fragment 1. Fragment one contains code to set
the ActionBar:

@Override
public void onResume() {
super.onResume();

ActionBar bar = getSupportActivity().getSupportActionBar();
bar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
bar.setListNavigationCallbacks(new
SimpleSpinnerArrayAdapter(getActivity()), this);
}

At some point, Activity A starts Fragment 2, by adding it to the stack
and overlaying. Also, Fragment 2 will revert the ActionBar to the
plain one.

public void showStationList(View view) {
String tag = (String) view.getTag();
if (tag != null  tag.length()  0) {
FragmentTransaction ft =
getSupportFragmentManager().beginTransaction();
StationListDialog fragment = new StationListDialog(tag.split(,));
ft.add(R.id.f_long_distance, fragment);
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.addToBackStack(null);
ft.commit();
}
}


Problem is: When pressing the back button, means when coming back to
Fragment A, the ActionBar is not restored to the state Fragment A
needs it.

I guess onResume is wrong (as it's not called as well). But I cannot
find the proper place to put this into.

Any suggestion?

Thanks,
Sebastian

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


[android-developers] Re: How can i copy /dev/block/mtdblock0 on my laptop

2011-10-19 Thread luca aliberti
SURE 

On Oct 18, 2:54 am, Kristoffer Grundström
kristoffer.grundstrom1...@gmail.com wrote:
 Do you have root-priveligies?

 On 2011 10 17 13:26, luca aliberti lucal...@gmail.com wrote:

 How can i copy /dev/block/mtdblock0 on my laptop?

 dd if=/dev/block/mtdblock0 of=/sdcard/system.img bs=2048 is not
 working !!!
 adb pull /dev/block/mtdblock0 /home is not working !!!

 Thanks a lot
 Regards
 Luca

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

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


[android-developers] Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
Hi everyone,

So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
set up an API 14 emulator...but I can't get my app to debug correctly
in Eclipse (Indigo).  When I debug, device chooser lets me select the
4.0 emulator, the emulator starts and the app is getting installed
correctly but debugging fails. The console reports Failed to install
timeout error.  At that point the emulator is running...but if I try
to debug again, Eclipse does not recognize the 4.0 emulator is running
in the device chooser running Android device list.


Is anyone else experiencing this?  Any ideas?

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


[android-developers] Re: Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
DDMS also does not recognize the 4.0 emulator is running.




On Oct 19, 10:43 am, Robert Nekic robertne...@gmail.com wrote:
 Hi everyone,

 So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
 set up an API 14 emulator...but I can't get my app to debug correctly
 in Eclipse (Indigo).  When I debug, device chooser lets me select the
 4.0 emulator, the emulator starts and the app is getting installed
 correctly but debugging fails. The console reports Failed to install
 timeout error.  At that point the emulator is running...but if I try
 to debug again, Eclipse does not recognize the 4.0 emulator is running
 in the device chooser running Android device list.

 Is anyone else experiencing this?  Any ideas?

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


Re: [android-developers] Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Mark Murphy
I'm not having any problems with it once it is running. Then again, I
never have Eclipse start the emulator automatically -- I always start
it myself (now from the new toolbar button).

BTW, Al Sutton has a G+ page where he's tracking ICS emulator issues:

https://plus.google.com/113331808607528811927/posts/7ouwdJcyq9x

On Wed, Oct 19, 2011 at 10:43 AM, Robert Nekic robertne...@gmail.com wrote:
 Hi everyone,

 So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
 set up an API 14 emulator...but I can't get my app to debug correctly
 in Eclipse (Indigo).  When I debug, device chooser lets me select the
 4.0 emulator, the emulator starts and the app is getting installed
 correctly but debugging fails. The console reports Failed to install
 timeout error.  At that point the emulator is running...but if I try
 to debug again, Eclipse does not recognize the 4.0 emulator is running
 in the device chooser running Android device list.


 Is anyone else experiencing this?  Any ideas?

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




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

Android 3.1 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: Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
Well, I rebooted my PC and tried again.   I manually started the
emulator and I was then distracted by an email so the emulator sat for
several minutes.  Returning to Eclipse, I tried debugging again and
this time the running emulator was listed as an option and things seem
to be cooperating.   My quad-core PC is no slouch but apparently the
4.0 emulator needs even more time to spin up and get itself together
than even Honeycomb required.





On Oct 19, 11:08 am, Mark Murphy mmur...@commonsware.com wrote:
 I'm not having any problems with it once it is running. Then again, I
 never have Eclipse start the emulator automatically -- I always start
 it myself (now from the new toolbar button).

 BTW, Al Sutton has a G+ page where he's tracking ICS emulator issues:

 https://plus.google.com/113331808607528811927/posts/7ouwdJcyq9x









 On Wed, Oct 19, 2011 at 10:43 AM, Robert Nekic robertne...@gmail.com wrote:
  Hi everyone,

  So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
  set up an API 14 emulator...but I can't get my app to debug correctly
  in Eclipse (Indigo).  When I debug, device chooser lets me select the
  4.0 emulator, the emulator starts and the app is getting installed
  correctly but debugging fails. The console reports Failed to install
  timeout error.  At that point the emulator is running...but if I try
  to debug again, Eclipse does not recognize the 4.0 emulator is running
  in the device chooser running Android device list.

  Is anyone else experiencing this?  Any ideas?

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

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

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


Re: [android-developers] Remote installation of applications

2011-10-19 Thread TreKing
On Mon, Oct 17, 2011 at 5:06 PM, Damian Serrano Thode dsth...@gmail.comwrote:

 So my question is, where is that API to talk to Android Market described?


It's not, AFAIK. They likely did some reverse engineering, like these guys:
http://code.google.com/p/android-market-api/

-
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] Monkeyrunner doesn't work after icecream sandwich update

2011-10-19 Thread kaciula
I've just installed the latest Android tools, platform tools and platform.

If I try to run monkeyrunner in a terminal I get the following exception:

Exception in thread main java.lang.NoClassDefFoundError: 
com/android/chimpchat/ChimpChat
at 
com.android.monkeyrunner.MonkeyRunnerStarter.init(MonkeyRunnerStarter.java:60)
at 
com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:188)
Caused by: java.lang.ClassNotFoundException: com.android.chimpchat.ChimpChat
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 2 more

Does anyone know how to fix 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

Re: [android-developers] Re: Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Mark Murphy
On Wed, Oct 19, 2011 at 11:19 AM, Robert Nekic robertne...@gmail.com wrote:
 Well, I rebooted my PC and tried again.   I manually started the
 emulator and I was then distracted by an email so the emulator sat for
 several minutes.  Returning to Eclipse, I tried debugging again and
 this time the running emulator was listed as an option and things seem
 to be cooperating.   My quad-core PC is no slouch but apparently the
 4.0 emulator needs even more time to spin up and get itself together
 than even Honeycomb required.

In particular, your first emulator run of the AVD may hang on contact
database creation, based on Al's page. I had to kill off my first run
of a 4.0 emulator and fire it up again to get it to run.

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

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


Re: [android-developers] Monkeyrunner doesn't work after icecream sandwich update

2011-10-19 Thread Mark Murphy
Odd. monkeyrunner.jar does not have com.android.chimpchat in it.

On Wed, Oct 19, 2011 at 11:38 AM, kaciula catalin.moro...@gmail.com wrote:
 I've just installed the latest Android tools, platform tools and platform.
 If I try to run monkeyrunner in a terminal I get the following exception:
 Exception in thread main java.lang.NoClassDefFoundError:
 com/android/chimpchat/ChimpChat
 at
 com.android.monkeyrunner.MonkeyRunnerStarter.init(MonkeyRunnerStarter.java:60)
 at
 com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:188)
 Caused by: java.lang.ClassNotFoundException: com.android.chimpchat.ChimpChat
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 ... 2 more
 Does anyone know how to fix 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



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

Android 3.1 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] SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-19 Thread sblantipodi
Am I the only one experiencing this problem?
The only way to launch a simulator is using another resolution or a
manual 720x1280, why?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-19 Thread Nico Balestra
Same here!!

2011/10/19 sblantipodi perini.dav...@dpsoftware.org

 Am I the only one experiencing this problem?
 The only way to launch a simulator is using another resolution or a
 manual 720x1280, why?

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

2011-10-19 Thread BearTi
Is there a possibility to add the SMS after I send it via SmsManager
in the SMS history?


On 19 Okt., 15:33, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Oct 19, 2011 at 9:17 AM, BearTi mlrti...@googlemail.com wrote:
  No one an idea? Is it not possible?

 Either use SmsManager (no button click, but not recorded by any SMS
 client, since you are not using an SMS client) or ACTION_SENDTO (uses
 default SMS client, but user gets the chance to edit or cancel the
 SMS).

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

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


Re: [android-developers] Add a button in MediaController

2011-10-19 Thread TreKing
On Sun, Oct 16, 2011 at 11:41 AM, GinLemon ginge...@gmail.com wrote:

 I need to customize a MediaController by adding a button as show in the
 image attached. I tried addView method on MediaController but i doesn't
 work, anyone know how to do it?


Try a Frame or Relative layout that contains both.

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

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

[android-developers] Re: How can i mount a yaffs2 image on Linux Ubuntu 11.04

2011-10-19 Thread luca aliberti
i think that with unyaffs you can only unmount an image that you done
with mkyaffs.
I don't want to install any programs in my phone because it is not
forensics sound so i would take the whole image of the phone with a
built-in command.

Thank you very much

On Oct 12, 12:41 pm, Per per.s.ko...@gmail.com wrote:
 You would need to compile am yaffs2 driver module for your kernel to
 do that,
 it would proberly be easier to get the program unyaffs, then you can
 unpack the
 image to a directory. You should be able to find that program with a
 little google
 search.

 Per

 On Oct 11, 4:35 pm, luca aliberti lucal...@gmail.com wrote:







  I have extracted a yaffs2 image of my android phone situated in /dev/
  mtd/mtd0, for forensics purpose.

  I would know how can I mount it in ubuntu 11,04 to exploore the
  contents, because yaffs2 is not supported.

  Thanks to everyone.

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

2011-10-19 Thread ravi
Hi,

Any suggestions for uploading videos to our own youtbe account from
android application using youtube api.

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


[android-developers] How to create a two-point slider (seekbar)?

2011-10-19 Thread Boozel
Hi

I need to create a two point slider/seekbar? a bit like in the data monitor 
in ICS (As shown 
herehttp://androidandme.wpengine.netdna-cdn.com/wp-content/uploads/2011/10/usage-all-lg.png
 at 
the bottom of the graph to select a portion).
Does any one have any idea how this can be done?

Any ideas or info would be great.
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] Eclipse, ADT and opening XML files

2011-10-19 Thread Kostya Vasilyev
With the two recent releases of ADT (it seems), my XML files by default 
don't open with the appropriate Android editor. The editor they open 
with is not the plain text editor, but rather some kind structured 
editor with XML tag highlighting, and a Design tab that lists the XML 
file structure.


Earlier, Android layout XML files would open with the ADT layout editor, 
and other Android-specific XML files would open with Android specific 
editors as well. It seems like this broke with ADT 13, or maybe after I 
switched to Eclipse 3.7, I'm not sure.


I tried using Eclipse preferences to associate *.xml files with the 
Android Layout editor, but that affects values/*.xml, menu/*.xml, etc., 
with very interesting effects.


It is possible to right click on a file and select Open With, but I also 
like to use Ctrl+Shift+R to navigate among my XMLs more quickly.


Is anyone else seeing this? Is there a fix?

Oh, and I just reinstalled Eclipse 3.7.1 Classic from scratch, as well 
as ADT r14. Made no difference. I'm on Windows 7 / 64 bit, which has not 
changed either.


--
Kostya Vasilyev

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

2011-10-19 Thread Justin Anderson
Ask youtube

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 10:23 AM, ravi ravinderjre...@gmail.com wrote:

 Hi,

 Any suggestions for uploading videos to our own youtbe account from
 android application using youtube api.

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

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

[android-developers] Android 4, still no preprocessing.

2011-10-19 Thread sblantipodi
How can we live in a world with thousands of devices and dozens of
market without preprocessor?

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

2011-10-19 Thread Justin Anderson
Stop asking the same question multiple times!

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 3:44 AM, ravi ravinderjre...@gmail.com wrote:

 How to upload videos in to youtube account from my android application.
 (By using Youtube API)

 Any sample code please share with me.

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

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

2011-10-19 Thread Justin Anderson
http://www.slashdev.ca/javapp/

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 10:38 AM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 How can we live in a world with thousands of devices and dozens of
 market without preprocessor?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Package is not available in sample folder of android sdk.

2011-10-19 Thread Xavier Ducrohet
Note that the package is now called Support library. The SDK Manager
should show support rev4, which will install on top of the previous
compatibility library r3

2011/10/19 Kostya Vasilyev kmans...@gmail.com:
 The compatibility library is a separate download, listed under
 extras/Google, I believe.

 --
 Kostya Vasilyev

 19.10.2011 13:24 пользователь shweta sonalaggrawal2...@gmail.com
 написал:

 Hello,

 There is action bar compatibilty package in android 3.0 in android
 developer site . i have installed android 3.0 but  i don't get action
 bar compatibilty package in android -sdk.

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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] Android 4, still no preprocessing.

2011-10-19 Thread Nikolay Elenkov
On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 How can we live in a world with thousands of devices and dozens of
 market without preprocessor?


Learn to use resources, and ditch your C mentality.

Really, this has little to do with Android -- Java has no
preprocessor, and that's that. If you really think you
need one, use gcc (it is doable). Or some Ant/Maven plugin
that does string replacement before compiling.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-19 Thread Xavier Ducrohet
Are you running snapshots?

There is an issue reloading snapshots created by older versions of the
emulator. Unfortunately, the symptoms look like the emulator doesn't
boot.

Delete the snapshots and recreate them for now. We are going to fix
the emulator to make incompatible snapshot format problem more obvious
to the user.

On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 Am I the only one experiencing this problem?
 The only way to launch a simulator is using another resolution or a
 manual 720x1280, why?

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] Android 4, still no preprocessing.

2011-10-19 Thread Justin Anderson
http://boldinventions.com/index.php?option=com_contentview=articleid=81:javapreprocessorusingeclipse

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 10:43 AM, Nikolay Elenkov nikolay.elen...@gmail.com
 wrote:

 On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi
 perini.dav...@dpsoftware.org wrote:
  How can we live in a world with thousands of devices and dozens of
  market without preprocessor?
 

 Learn to use resources, and ditch your C mentality.

 Really, this has little to do with Android -- Java has no
 preprocessor, and that's that. If you really think you
 need one, use gcc (it is doable). Or some Ant/Maven plugin
 that does string replacement before compiling.

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

2011-10-19 Thread Justin Anderson
Hey guess what? I found both of those with a simple google search...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 10:44 AM, Justin Anderson magouyaw...@gmail.comwrote:


 http://boldinventions.com/index.php?option=com_contentview=articleid=81:javapreprocessorusingeclipse


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Oct 19, 2011 at 10:43 AM, Nikolay Elenkov 
 nikolay.elen...@gmail.com wrote:

 On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi
 perini.dav...@dpsoftware.org wrote:
  How can we live in a world with thousands of devices and dozens of
  market without preprocessor?
 

 Learn to use resources, and ditch your C mentality.

 Really, this has little to do with Android -- Java has no
 preprocessor, and that's that. If you really think you
 need one, use gcc (it is doable). Or some Ant/Maven plugin
 that does string replacement before compiling.

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

2011-10-19 Thread sblantipodi
resources is for files, I need preprocessor for code, from your answer
it's clear that you don't
know what I am talking about. :)

On Oct 19, 6:43 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  How can we live in a world with thousands of devices and dozens of
  market without preprocessor?

 Learn to use resources, and ditch your C mentality.

 Really, this has little to do with Android -- Java has no
 preprocessor, and that's that. If you really think you
 need one, use gcc (it is doable). Or some Ant/Maven plugin
 that does string replacement before compiling.

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


[android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread sblantipodi
for people who posted that links, have you tryed to preprocess using
android?
does it works? I'm under netbeans and it doesn't work.
Are you sure that it workd in eclipse?

On Oct 19, 6:45 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Hey guess what? I found both of those with a simple google search...

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Wed, Oct 19, 2011 at 10:44 AM, Justin Anderson 
 magouyaw...@gmail.comwrote:









 http://boldinventions.com/index.php?option=com_contentview=articlei...

  Thanks,
  Justin Anderson
  MagouyaWare Developer
 http://sites.google.com/site/magouyaware

  On Wed, Oct 19, 2011 at 10:43 AM, Nikolay Elenkov 
  nikolay.elen...@gmail.com wrote:

  On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi
  perini.dav...@dpsoftware.org wrote:
   How can we live in a world with thousands of devices and dozens of
   market without preprocessor?

  Learn to use resources, and ditch your C mentality.

  Really, this has little to do with Android -- Java has no
  preprocessor, and that's that. If you really think you
  need one, use gcc (it is doable). Or some Ant/Maven plugin
  that does string replacement before compiling.

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

2011-10-19 Thread Kristopher Micinski
It's clear you don't know what you're talking.  Preprocessors are a
language artifact from C, not in Java, and typically reliance on their
use implies you aren't writing your application correctly.  There are
surely places where you might need to use something like a
preprocessor, in which case you could use an app already described.

But it doesn't make any sense to say Android doesn't include this.
Android has almost nothing to do with Java;  the only relation is that
you write code in Java, which gets compiled to another format, so the
Android team would have absolutely no control over this.

Kris

On Wed, Oct 19, 2011 at 12:51 PM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 resources is for files, I need preprocessor for code, from your answer
 it's clear that you don't
 know what I am talking about. :)

 On Oct 19, 6:43 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
 On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  How can we live in a world with thousands of devices and dozens of
  market without preprocessor?

 Learn to use resources, and ditch your C mentality.

 Really, this has little to do with Android -- Java has no
 preprocessor, and that's that. If you really think you
 need one, use gcc (it is doable). Or some Ant/Maven plugin
 that does string replacement before compiling.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-19 Thread sblantipodi
I didn't created a snapshot even, so no I'm not using a snapshot.

On Oct 19, 6:44 pm, Xavier Ducrohet x...@android.com wrote:
 Are you running snapshots?

 There is an issue reloading snapshots created by older versions of the
 emulator. Unfortunately, the symptoms look like the emulator doesn't
 boot.

 Delete the snapshots and recreate them for now. We are going to fix
 the emulator to make incompatible snapshot format problem more obvious
 to the user.

 On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  Am I the only one experiencing this problem?
  The only way to launch a simulator is using another resolution or a
  manual 720x1280, why?

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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: After Signing Pressing App Icon Restarts App Every Time

2011-10-19 Thread GregAZ
I'm still trying to identify the cause of this.  I believe it's also causing 
some users to not be able to run the app (it crashes on startup).  There are 
no helpful crash reports.  I took a version of the app that didn't have the 
problem, exported and re-signed it and it now has the same problem.

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

[android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread sblantipodi
the eclipse plugin is written by google team, so they should implement
a preprocessor instead of leaving the job to an external plugin.

preprocessor is necessary to big apps that needs to run on every kind
of device,
for every kind of market and for blackberry android.
if you don't use preprocessor means that you don't need it since your
apps
don't run on many market and on many device :)

On Oct 19, 6:53 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 It's clear you don't know what you're talking.  Preprocessors are a
 language artifact from C, not in Java, and typically reliance on their
 use implies you aren't writing your application correctly.  There are
 surely places where you might need to use something like a
 preprocessor, in which case you could use an app already described.

 But it doesn't make any sense to say Android doesn't include this.
 Android has almost nothing to do with Java;  the only relation is that
 you write code in Java, which gets compiled to another format, so the
 Android team would have absolutely no control over this.

 Kris

 On Wed, Oct 19, 2011 at 12:51 PM, sblantipodi







 perini.dav...@dpsoftware.org wrote:
  resources is for files, I need preprocessor for code, from your answer
  it's clear that you don't
  know what I am talking about. :)

  On Oct 19, 6:43 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote:
  On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi

  perini.dav...@dpsoftware.org wrote:
   How can we live in a world with thousands of devices and dozens of
   market without preprocessor?

  Learn to use resources, and ditch your C mentality.

  Really, this has little to do with Android -- Java has no
  preprocessor, and that's that. If you really think you
  need one, use gcc (it is doable). Or some Ant/Maven plugin
  that does string replacement before compiling.

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

2011-10-19 Thread Boozel
Hi

I have a seekbar but the where on the thumb that progress is related to 
changes as the progress changes. What i mean is that at progress 8 the 
progress lines up perfectly with the border of my thumb. As seen in this 
image,

https://lh3.googleusercontent.com/-Qsci-1k9bmg/Tp8D9KrPTXI/AQ4/rAMxyLEvHUg/8.jpg

 When i set the progress to 70 though it is now in a completely different 
position. As seen in this image,

https://lh4.googleusercontent.com/-KDbQs_HlhYA/Tp8EBZq7YUI/ARA/976Z-pim4Fw/70.jpg

 How can i stop this?

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

Re: [android-developers] Re: Can we open the Market's search activity through intent?

2011-10-19 Thread TreKing
On Sun, Oct 16, 2011 at 10:54 PM, Build account newandroi...@gmail.comwrote:

 The blank search activity mean that
 the search bar when you press magnify icon on Market app.
 Then you can see the search bar with some keyword list.
 Can we call that activity directly??


No, but you can launch a general search intent:
http://developer.android.com/guide/publishing/publishing.html#UriSummary

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

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

Re: [android-developers] Error on running my hello world application

2011-10-19 Thread TreKing
On Mon, Oct 17, 2011 at 7:44 AM, Zakir Hossain m.zakir.hos...@gmail.comwrote:

 10-17 18:37:05.812: ERROR/AndroidRuntime(151): Caused by:
 android.content.res.Resources$NotFoundException: Resource ID
 #0x7f030015
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.content.res.Resources.getValue(Resources.java:1014)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.content.res.Resources.loadXmlResourceParser(Resources.java:
 2039)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.content.res.Resources.getLayout(Resources.java:853)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.view.LayoutInflater.inflate(LayoutInflater.java:389)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.view.LayoutInflater.inflate(LayoutInflater.java:347)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at

 com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
 223)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 android.app.Activity.setContentView(Activity.java:1780)
 10-17 18:37:05.812: ERROR/AndroidRuntime(151): at
 com.android.launcher2.Launcher.onCreate(Launcher.java:336)


Look at the Caused By: line.

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

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

Re: [android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread Kristopher Micinski
On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 the eclipse plugin is written by google team, so they should implement
 a preprocessor instead of leaving the job to an external plugin.

 preprocessor is necessary to big apps that needs to run on every kind
 of device,
 for every kind of market and for blackberry android.
 if you don't use preprocessor means that you don't need it since your
 apps
 don't run on many market and on many device :)


I assume that your :)s are a passive aggressive insult about people
who don't use preprocessors in their apps...  But I can think of a
number of apps that don't use a preprocessor.

A preprocessor is a separate program, how would this fit into the
eclipse plugin? Along with this, the development tools are completely
separate from the Android platform, so why would Ice Cream Sandwich
have anything to do this?

If you want to use a preprocessor, you can use a java preprocessor and
include it as an ant task.  If you have one you would like to see in
the development tools, why aren't you working on integrating an open
source one with the Android development tools?

Kris

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

2011-10-19 Thread Damian Serrano Thode
I'm starting to suspect that the are hacking the market as I'm unable to 
find a way to get this functionality.
I already knew that project, but it's not what I need. Thanks anyway.

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

[android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread sblantipodi
hey kris relax no one would be aggressive with you but
if you are so good in answering in this thread please post something
useful.


On Oct 19, 7:21 pm, Kristopher Micinski krismicin...@gmail.com
wrote:
 On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  the eclipse plugin is written by google team, so they should implement
  a preprocessor instead of leaving the job to an external plugin.

  preprocessor is necessary to big apps that needs to run on every kind
  of device,
  for every kind of market and for blackberry android.
  if you don't use preprocessor means that you don't need it since your
  apps
  don't run on many market and on many device :)

 I assume that your :)s are a passive aggressive insult about people
 who don't use preprocessors in their apps...  But I can think of a
 number of apps that don't use a preprocessor.

 A preprocessor is a separate program, how would this fit into the
 eclipse plugin? Along with this, the development tools are completely
 separate from the Android platform, so why would Ice Cream Sandwich
 have anything to do this?

 If you want to use a preprocessor, you can use a java preprocessor and
 include it as an ant task.  If you have one you would like to see in
 the development tools, why aren't you working on integrating an open
 source one with the Android development tools?

 Kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDK 4, if I select WXGA resolution, emulator doesn't start.

2011-10-19 Thread sblantipodi
is there someone else who have this problem and is not using a
snapshot?
personally I was be able to start in WXGA resolution only the first
time.

On Oct 19, 6:57 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 I didn't created a snapshot even, so no I'm not using a snapshot.

 On Oct 19, 6:44 pm, Xavier Ducrohet x...@android.com wrote:







  Are you running snapshots?

  There is an issue reloading snapshots created by older versions of the
  emulator. Unfortunately, the symptoms look like the emulator doesn't
  boot.

  Delete the snapshots and recreate them for now. We are going to fix
  the emulator to make incompatible snapshot format problem more obvious
  to the user.

  On Wed, Oct 19, 2011 at 8:52 AM, sblantipodi

  perini.dav...@dpsoftware.org wrote:
   Am I the only one experiencing this problem?
   The only way to launch a simulator is using another resolution or a
   manual 720x1280, why?

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

  --
  Xavier Ducrohet
  Android SDK Tech Lead
  Google Inc.http://developer.android.com|http://tools.android.com

  Please do not send me questions directly. 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] Activity killed when users leave it every single time

2011-10-19 Thread GregAZ
My app contains 2 activities, one is mine which is not much more than the 
web browser control.  The other is PayPal's for accepting money through the 
app.  Up until recently everything was great.  You leave the app, come back 
and you're right where you left off.  But now, you leave the app and when 
you come back it re-starts it like it was killed (onCreate is called, all 
state info is gone).  It only does this when signed for release (signed in 
debug is fine) and it does it on the emulator (only when using a released 
signed app), it does it on my phone, it does it on users phones.  I'm not 
sure what exactly changed to cause this other than I updated java and the 
Android SDK.  onCreate is called every single time the app button is 
pressed.  It does resume properly if I hold the home button down and then 
pick the app from the list of running apps.  I went back to a version 
without this problem, exported it, signed it and now it has the problem.

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

Re: [android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread Kristopher Micinski
I'm honestly trying to understand why you posted a rant about why you
find the Android platform incapable, when preprocessing has nothing to
do with it.  From what I can tell, this doesn't have anything to do
with Android development, and I'd be interested to hear your reasoning
as to why Ice Cream Sandwich doesn't include a language feature, when
Java is decoupled from the runtime execution of Android apps.

Why don't you try posting to the Android tools group?  Maybe you could
find better assistance there?

Kris

On Wed, Oct 19, 2011 at 1:39 PM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 hey kris relax no one would be aggressive with you but
 if you are so good in answering in this thread please post something
 useful.


 On Oct 19, 7:21 pm, Kristopher Micinski krismicin...@gmail.com
 wrote:
 On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  the eclipse plugin is written by google team, so they should implement
  a preprocessor instead of leaving the job to an external plugin.

  preprocessor is necessary to big apps that needs to run on every kind
  of device,
  for every kind of market and for blackberry android.
  if you don't use preprocessor means that you don't need it since your
  apps
  don't run on many market and on many device :)

 I assume that your :)s are a passive aggressive insult about people
 who don't use preprocessors in their apps...  But I can think of a
 number of apps that don't use a preprocessor.

 A preprocessor is a separate program, how would this fit into the
 eclipse plugin? Along with this, the development tools are completely
 separate from the Android platform, so why would Ice Cream Sandwich
 have anything to do this?

 If you want to use a preprocessor, you can use a java preprocessor and
 include it as an ant task.  If you have one you would like to see in
 the development tools, why aren't you working on integrating an open
 source one with the Android development tools?

 Kris

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

2011-10-19 Thread Justin Anderson
As has been posted many times, Java does not have a preprocessor...  I see
no reason why Android would include one.

Would it be useful in certain situations? Yes, I think it would be... For me
I found that it would have been very useful when I decided to expand my apps
to be on both the Android Market and the Amazon Appstore.

But I got around that by essentially creating my own mini preprocessor
class.  I had a flag in that class that determined whether I was doing an
Amazon build or an Android Market build.  Anything that changed based on
that flag I put into a method on the preprocessor class.  That way all of my
if statements and logic for the different builds were all in one place and
the rest of my code didn't have to change.

Granted, it is not truly the same as a preprocessor but the effect is
more-or-less the same.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 11:39 AM, sblantipodi
perini.dav...@dpsoftware.orgwrote:

 hey kris relax no one would be aggressive with you but
 if you are so good in answering in this thread please post something
 useful.


 On Oct 19, 7:21 pm, Kristopher Micinski krismicin...@gmail.com
 wrote:
  On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi
 
  perini.dav...@dpsoftware.org wrote:
   the eclipse plugin is written by google team, so they should implement
   a preprocessor instead of leaving the job to an external plugin.
 
   preprocessor is necessary to big apps that needs to run on every kind
   of device,
   for every kind of market and for blackberry android.
   if you don't use preprocessor means that you don't need it since your
   apps
   don't run on many market and on many device :)
 
  I assume that your :)s are a passive aggressive insult about people
  who don't use preprocessors in their apps...  But I can think of a
  number of apps that don't use a preprocessor.
 
  A preprocessor is a separate program, how would this fit into the
  eclipse plugin? Along with this, the development tools are completely
  separate from the Android platform, so why would Ice Cream Sandwich
  have anything to do this?
 
  If you want to use a preprocessor, you can use a java preprocessor and
  include it as an ant task.  If you have one you would like to see in
  the development tools, why aren't you working on integrating an open
  source one with the Android development tools?
 
  Kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Activity killed when users leave it every single time

2011-10-19 Thread GregAZ
Also I've removed everything from onCreate except for a toast alert.  After 
signing and running it it shows my alert.  I hit home, hit the app icon and 
again it shows my alert. WTF?  Switching to it by holding down home does not 
show the alert.

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

Re: [android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread Xavier Ducrohet
There are no standard java preprocessor. There are some solutions out
there but if we choose one for you, then some people will complain we
chose the wrong one.

It's relatively easy to choose a solution that works for you and to
add it to the Ant or Eclipse builds, so we recommend developers to go
that way.

Xav

On Wed, Oct 19, 2011 at 10:58 AM, Kristopher Micinski
krismicin...@gmail.com wrote:
 I'm honestly trying to understand why you posted a rant about why you
 find the Android platform incapable, when preprocessing has nothing to
 do with it.  From what I can tell, this doesn't have anything to do
 with Android development, and I'd be interested to hear your reasoning
 as to why Ice Cream Sandwich doesn't include a language feature, when
 Java is decoupled from the runtime execution of Android apps.

 Why don't you try posting to the Android tools group?  Maybe you could
 find better assistance there?

 Kris

 On Wed, Oct 19, 2011 at 1:39 PM, sblantipodi
 perini.dav...@dpsoftware.org wrote:
 hey kris relax no one would be aggressive with you but
 if you are so good in answering in this thread please post something
 useful.


 On Oct 19, 7:21 pm, Kristopher Micinski krismicin...@gmail.com
 wrote:
 On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi

 perini.dav...@dpsoftware.org wrote:
  the eclipse plugin is written by google team, so they should implement
  a preprocessor instead of leaving the job to an external plugin.

  preprocessor is necessary to big apps that needs to run on every kind
  of device,
  for every kind of market and for blackberry android.
  if you don't use preprocessor means that you don't need it since your
  apps
  don't run on many market and on many device :)

 I assume that your :)s are a passive aggressive insult about people
 who don't use preprocessors in their apps...  But I can think of a
 number of apps that don't use a preprocessor.

 A preprocessor is a separate program, how would this fit into the
 eclipse plugin? Along with this, the development tools are completely
 separate from the Android platform, so why would Ice Cream Sandwich
 have anything to do this?

 If you want to use a preprocessor, you can use a java preprocessor and
 include it as an ant task.  If you have one you would like to see in
 the development tools, why aren't you working on integrating an open
 source one with the Android development tools?

 Kris

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] Handling Adjacent Fragments in ViewPager Contributing to Options Menu

2011-10-19 Thread stone . mike
I realize this conversation is a couple months old and I apologize in 
advance for resurrecting it if it shouldn't of been.

I am seeing a similiar problem using PagerAdapter and want to confirm that 
the next update addresses it.

Basically, the same problem but a little more generic...

*Problem:*

*When using fragments with a ViewPager two two fragments which are adjacent 
to the currently selected page are instantiated and cached to provide smooth 
scrolling in either direction with as little lag as possible.*

I call isVisible to prevent the updating of a gui element on an adjacent 
fragment. isVisible is returning true even though it is NOT the actively 
rendered fragment. Is this by design or is this a bug?

Thanks
Mike


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

[android-developers] Android 4, no virtual keyboard.

2011-10-19 Thread sblantipodi
Hi,
I'm not able to show virtual keyboard on android 4 emulator.

Generally if I tap on a textbox on a simulator that doesn't have a
physical keyboard the virtual keyboard popup.
With Android 4 I'm really not able to show virtual keyboard.

Any help is appeciated.

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] Android 4, no virtual keyboard.

2011-10-19 Thread Xavier Ducrohet
You can edit the AVD to not have a keyboard (it's in the hardware
properties). But then you won't be able to use your computer keyboard.

This is due to change in the input handling in the emulator that had
to be brought closer to how devices actually work.

On Wed, Oct 19, 2011 at 11:12 AM, sblantipodi
perini.dav...@dpsoftware.org wrote:
 Hi,
 I'm not able to show virtual keyboard on android 4 emulator.

 Generally if I tap on a textbox on a simulator that doesn't have a
 physical keyboard the virtual keyboard popup.
 With Android 4 I'm really not able to show virtual keyboard.

 Any help is appeciated.

 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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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: Android 4, still no preprocessing.

2011-10-19 Thread Kevin TeslaCoil Software
Related from the SwiftKey devs:
http://www.swiftkey.net/building-apks-with-different-features-from-a-single-source

For my setup I use ant to do release builds, eclipse to do debug
builds. I build for three markets (Google, Amazon, and direct-purchase/
beta). Each has it's own requirements (copy protection, updates, links
to other apps). I use a custom build.xml, it uses replace to switch
a static final int constant for what market I'm compiling against,
this handles all java preprocessor needs as java doesn't compile
dead code. I also use gcc's preprocessor on AndroidManifest.xml to
turn off permissions I don't need (And Eclipse builds just have all
permissions, which is fine). It's a bit limited and not perfect, but
it does the job and didn't cost much time to setup.

Here's the key parts of it, however these are for ADT13, haven't tried
to do an ant build with ADT14 yet.

Disclaimer, I don't know ant so I might be doing things awkwardly.
This is by no means a packaged solution, but an idea/example for you
to build your own system with.

Basically:
AndroidManifest.xml:
  !--
#ifdef LICENSING_MARKET
--
uses-permission android:name=com.android.vending.CHECK_LICENSE /

!--
#endif
--

MarketHandler:
public static final int NO_LICENSING = 0;
public static final int GOOGLE = 1;
public static final int AMAZON = 2;
public static final int DIRECT = 3;

public static final int USE_MARKET = /* @MARKET_START@ */ DIRECT /
* @MARKET_END@ */;


And:
 target name=market 
antcall target=marketreplace
param name=marketparam value=GOOGLE /
/antcall
property name=preprocessor.args value=-DLICENSING_MARKET /

property name=out.myrelease.file.name
 value=${ant.project.name}-market.apk /
antcall target=myrelease /
/target

target name=marketreplace
exec vmlauncher=false executable=sh
arg value=-c /
arg value=perl -e 's!(\@MARKET_START\@ \*/).*?(/\*
\@MARKET_END\@)!$1 ${marketparam} $2!g' -pi src/com/teslacoilsw/
tesladirect/MarketHandler.java /
/exec


 target name=-package-resources

echoPreprocessing AndroidManifest.xml/echo
echogcc -E -x c -P -C ${preprocessor.args}
AndroidManifest.xml/echo
exec vmlauncher=false executable=sh
arg value=-c /
arg value=gcc -E -x c -P -C ${preprocessor.args}
AndroidManifest.xml | sed -e '/^\s*$/d'  gen/AndroidManifest.xml /
/exec
...

On Oct 19, 11:51 am, sblantipodi perini.dav...@dpsoftware.org wrote:
 for people who posted that links, have you tryed to preprocess using
 android?
 does it works? I'm under netbeans and it doesn't work.
 Are you sure that it workd in eclipse?

 On Oct 19, 6:45 pm, Justin Anderson magouyaw...@gmail.com wrote:







  Hey guess what? I found both of those with a simple google search...

  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware

  On Wed, Oct 19, 2011 at 10:44 AM, Justin Anderson 
  magouyaw...@gmail.comwrote:

  http://boldinventions.com/index.php?option=com_contentview=articlei...

   Thanks,
   Justin Anderson
   MagouyaWare Developer
  http://sites.google.com/site/magouyaware

   On Wed, Oct 19, 2011 at 10:43 AM, Nikolay Elenkov 
   nikolay.elen...@gmail.com wrote:

   On Thu, Oct 20, 2011 at 1:38 AM, sblantipodi
   perini.dav...@dpsoftware.org wrote:
How can we live in a world with thousands of devices and dozens of
market without preprocessor?

   Learn to use resources, and ditch your C mentality.

   Really, this has little to do with Android -- Java has no
   preprocessor, and that's that. If you really think you
   need one, use gcc (it is doable). Or some Ant/Maven plugin
   that does string replacement before compiling.

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, 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: Activity killed when users leave it every single time

2011-10-19 Thread GregAZ
I'm having the exact same problem with the skeleton app.  All I added was a 
toast alert.  App is restarted every single time.

I downloaded the newest Eclipse.  I downloaded the latest Android SDK.  Same 
problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Compatibility Library v4 and Added support to control how many pages are kept to either side of the current page

2011-10-19 Thread MS
Support Package, revision 4 (October 2011)
...
Changes to ViewPager:
   
   - Added support for margins between pages. An optional 
Drawablehttp://developer.android.com/reference/android/graphics/drawable/Drawable.html
 can 
   be provided to fill the margins.
   - Added support for 
EdgeEffecthttp://developer.android.com/reference/android/widget/EdgeEffect.html
   .
   - Added support for keyboard navigation
   - *Added support to control how many pages are kept to either side of the 
   current page.*
   - Improved touch physics.


Does anyone know how to do this?

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

[android-developers] Re: Android 4, no virtual keyboard.

2011-10-19 Thread sblantipodi
Thanks for the answer, in any case I'm not able to see a virtual
keyboard.
What should I do exactly to get the virtual keyboard?

Thanks.

On Oct 19, 8:44 pm, Xavier Ducrohet x...@android.com wrote:
 You can edit the AVD to not have a keyboard (it's in the hardware
 properties). But then you won't be able to use your computer keyboard.

 This is due to change in the input handling in the emulator that had
 to be brought closer to how devices actually work.

 On Wed, Oct 19, 2011 at 11:12 AM, sblantipodi









 perini.dav...@dpsoftware.org wrote:
  Hi,
  I'm not able to show virtual keyboard on android 4 emulator.

  Generally if I tap on a textbox on a simulator that doesn't have a
  physical keyboard the virtual keyboard popup.
  With Android 4 I'm really not able to show virtual keyboard.

  Any help is appeciated.

  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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] eclipse Indigo and Win7 problems with SDK and AVD Manager problems

2011-10-19 Thread netskink
Hello

I've used eclipse Helios on another computer and it worked easily to
install updates.  I've setup a new computer using Eclipse Indigo and I
have issues with SDK and AVD Manager.  I can start it up but I see
errors such as no package found, permission denied or updates
available but not compatible.  Also, when I try to create a new
project using SDK samples it says count not write file.  e.g. if I
select BlueToothChat sample, it says Could not write file: Reason
Could not write file: C:\prog\Android\android-sdk\samples
\android-7\BluetoothChat\.project.  Why it is not trying to put the
file in my workspace is unknown to me.

John

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


[android-developers] Re: Android 4, no virtual keyboard.

2011-10-19 Thread sblantipodi
done it.
with previous SDK I can use both keyboard and virtual keyboard,
this is a strange news from ice cream sdk.

On Oct 19, 8:44 pm, Xavier Ducrohet x...@android.com wrote:
 You can edit the AVD to not have a keyboard (it's in the hardware
 properties). But then you won't be able to use your computer keyboard.

 This is due to change in the input handling in the emulator that had
 to be brought closer to how devices actually work.

 On Wed, Oct 19, 2011 at 11:12 AM, sblantipodi









 perini.dav...@dpsoftware.org wrote:
  Hi,
  I'm not able to show virtual keyboard on android 4 emulator.

  Generally if I tap on a textbox on a simulator that doesn't have a
  physical keyboard the virtual keyboard popup.
  With Android 4 I'm really not able to show virtual keyboard.

  Any help is appeciated.

  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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] Change package name in eclipse

2011-10-19 Thread sam
hi develpers,
I have developed a apps from the the source of BluetoothChat
example. When I submit to market, it state that the package name is
not allowed ,thus , I rename the package name with a new one by
Refactor-Rename.Also, I rename the package name in file
AndroidManifest.xml also.
Altough I succefully build a  new .Apk file ; but when I try to
install to my mobile device. It give out

The application XXX(Apps name) (process com.X..xXX) has
stopped unexpectedly. Please try again.

Thus, I think I make some mistake during rename my packageany
solution for me?

sam

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


Re: [android-developers] custom attributes in library projects

2011-10-19 Thread Izhovkin
Was this issue fixed in sdk tools r14?

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