[android-developers] Re: How to obtain A-GPS data via Android phone

2011-10-31 Thread Kenneth WON
Hi, JP,

Thank you for your reply and suggestion.
I am browsing Skyhook's official website, it seems quite useful.
I have a concern that is it free for use (no matter commercial use or
private use)?


Thanks and Regards,
Kenneth Won




On 10月31日, 下午2時17分, JP  wrote:
> I believe Skyhook folds WiFi data into their service. Perhaps worth a
> look.
>
> On Oct 29, 12:49 pm, lbendlin  wrote:
>
>
>
>
>
>
>
> > Sorry, A-GPS has nothing to do with indoor navigation. All it does is speed
> > up the initial lock because it can tell the receiver which satellites to
> > expect (normally the receiver has to listen and build up the ephemeris by
> > itself).
>
> > what you probably want are alternative solutions like DGPS (very
> > expensive), NorthStar, or WiFi, WiFi would be a good candidate but there is
> > absolutely no standard, and you would have to come up with the solution
> > yourself.

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


[android-developers] sliding drawer issue

2011-10-31 Thread vani reddy
Hi there ,
How to limit the height of sliding drawer naturally to get it the same  as
like in iphone?
-- 
Regards,
Vani Reddy

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

[android-developers] SplitView on fragment

2011-10-31 Thread sourabh sahu
How to add SplitView functionality on Fragments.I have two fragments A and
B.I want a Splitter in between.
Any kind of input is highly appreciated.

Thanks,
Sourabh

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

2011-10-31 Thread Zsolt Vasvari
> The freezing and running out of heap seems like you might have an issue
> somewhere else. Have you tried cleaning out Eclipse/ADT/SDK and
> reinstalling fresh? I know it's not the optimal thing, but might be worth a
> try. I've done it a time or two on my main workstation and laptop and it
> seems to help keep things in order.

Where are you getting these suggestions from?  Why would reinstall
help?  The files are either there or not -- we are not talking about
corrupted registries here.

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

2011-10-31 Thread Ali Chousein
If you integrate a library always beware of it's corresponding
license. Licenses like Apache (http://www.apache.org/licenses/
LICENSE-2.0.html) basically allow you do whatever you want with the
library. If the library has a more restrictive license, beware of the
things that you cannot do with it and don't do them. If you do, in the
best case Google will suspend your developer account. In the worst
case things can go really nasty.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

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


Re: [android-developers] Re: How to manage events on a button

2011-10-31 Thread Jean Tinguely Awais
Hello,
 Thank you for your clear answer.
Best regards.
Jean Tinguely Awais.


2011/10/25 Boozel 

> ((ImageButton) findViewById (R.id.MyButton)).**setOnFocusChangeListener(new
> OnFocusChangeListener()
> {
> public void onFocusChange(View view, boolean hasFocus) {
> // Do anything you want here
> }
>  });
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: SplitView on fragment

2011-10-31 Thread skink


On Oct 31, 9:00 am, sourabh sahu  wrote:
> How to add SplitView functionality on Fragments.I have two fragments A and
> B.I want a Splitter in between.
> Any kind of input is highly appreciated.
>
> Thanks,
> Sourabh

what is SplitView and Splitter?

never heard of such functionality in android sdk

pskink

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


[android-developers] ExpandableListView expand/collapse question

2011-10-31 Thread Ash
Hi All,

I have an imagebutton on the groupview of my expanlablelistview. I have 
modified the expandablelistview's ongroupclick to return true as I would 
like my imagebutton to control the expanding/collapsing of the group.

My question is when I create the even handler for the imagebutton, how do I 
find out the groupPosition?

Please advice.

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: Hide\show aplication and restart activity

2011-10-31 Thread ecspertiza
I don`t press Back, i press "Big button" :) http://i39.tinypic.com/jsj3x1.png
his called finish() ?

I use this sample 
http://www.droidnova.com/how-to-create-a-splash-screen,561.html
first start run SplashScreen then MyApp, if i hide\show app i see how
run only MyApp.


i have this is my AndroidManifest.xml














Upon completion of the SplashScreen his call finish()
but if i hide\show app i se how restart all Activity. This happens
spontaneously? Or is there a pattern ?

On Oct 27, 9:20 pm, TreKing  wrote:
> On Wed, Oct 26, 2011 at 10:41 AM, ecspertiza  wrote:
> > Why activity restart ?
>
> You pressed Back, called finish(), or the system killed your Activity.
>
> > How to do hide\show  without restart ?
>
> This will happen automatically, if possible.
>
> --- 
> --
> 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] 4 tabs view?

2011-10-31 Thread Navindian
I wish to have 4 tabs with a view. Each View contains some set of controls.
any references for 2.x?

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

[android-developers] Emulator ICS : add account

2011-10-31 Thread arnouf
Hello,

Now, in the emulator, to see calendar or add event I have to set an 
Exchange account. Does it exist a solution avoiding this ? I don't have an 
Exchange server !

Thanks for your help

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

[android-developers] Re: 4 tabs view?

2011-10-31 Thread arnouf
hello,

Use simply a TabHost / TabWidget

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

[android-developers] Using Swipe with TabHost

2011-10-31 Thread Bishan
I have created app with TabHost. i need to add Swipe  action to these tabs.
how can 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

Re: [android-developers] Re: SplitView on fragment

2011-10-31 Thread Mark Murphy
On Mon, Oct 31, 2011 at 4:55 AM, skink  wrote:
> what is SplitView and Splitter?

In many GUI toolkits, a splitter is a heavier divider between two
portions of the UI, designed to be dragged to allow resizing of the
material on either side (e.g., a splitter between two widgets in a
row, when dragged to the right, would expand the left widget and
shrink the right widget).

> never heard of such functionality in android sdk

There isn't. And, up until tablets, there was really no need for one
-- it'd be fairly pointless on a phone and TVs shouldn't rely on
gesture-based things like that. However, for a -large or -xlarge
-touchscreen device, I can see value in a splitter. Perhaps somebody
will write one someday.

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

_Android Programming Tutorials_ Version 4.0 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] How i can make that a polygon fill the 80% of the width of the screen?

2011-10-31 Thread saex
I have a simple square (polygon), and i want that it fills the 80% of
the width of the screen

In other words, i want to position the square on the center on the
center of the screen, but with a width of the 80% of the total width
of the screen

How can i do it? I can't find examples/tutorials about this

thanks

THis is the code for my square:

public class Square {
//Buffer de vertices
private FloatBuffer vertexBuffer;
//Buffer de coordenadas de texturas
private FloatBuffer textureBuffer;
//Puntero de texturas
private int[] textures = new int[3];
//El item a representar
private int resourceId;
//Definición de vertices
private float vertices[] =
{
-1.0f, -1.0f, 0.0f, //Bottom Left
1.0f, -1.0f, 0.0f,  //Bottom Right
-1.0f, 1.0f, 0.0f,  //Top Left
1.0f, 1.0f, 0.0f//Top Right
};
//Coordenadas (u, v) de las texturas
/*
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 0.0f,
0.0f, 1.0f,
1.0f, 0.0f,
1.0f, 1.0f
};
*/
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f
};
//Inicializamos los buffers
public Square(int resourceId) {
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);

this.resourceId=resourceId;
}
//Funcion de dibujado
public void draw(GL10 gl) {
gl.glFrontFace(GL10.GL_CCW);
//gl.glEnable(GL10.GL_BLEND);
//Bind our only previously generated texture in this
case
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Point to our vertex buffer
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0,
textureBuffer);
//Enable vertex buffer
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//Draw the vertices as triangle strip
gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0,
vertices.length / 3);
//Disable the client state before leaving
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//gl.glDisable(GL10.GL_BLEND);

}
//Carga de texturas
public void loadGLTexture(GL10 gl, Context context) {
//Generamos un puntero de texturas
gl.glGenTextures(1, textures, 0);
//y se lo asignamos a nuestro array
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Creamos filtros de texturas
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
//Diferentes parametros de textura posibles
GL10.GL_CLAMP_TO_EDGE
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);

/*
String imagePath = "radiocd5.png";
AssetManager mngr = context.getAssets();
InputStream is=null;
try {
is = mngr.open(imagePath);
} catch (IOException e1)
{  e1.printStackTrace();   }
*/
//Get the texture from the Android resource directory
InputStream is=null;
/*
if (item.equals("rim"))
is =
context.getResources().openRawResource(R.drawable.rueda);
else if (item.equals("selector"))
is =
context.getResources().openRawResource(R.drawable.selector);
*/
is =
context.getResources().openRawResource(resourceId);
Bitmap bitmap = null;
try {
bitmap = BitmapFactory.decodeStream(is);
} finall

[android-developers] Re: SplitView on fragment

2011-10-31 Thread skink


On 31 Paź, 11:12, Mark Murphy  wrote:
> On Mon, Oct 31, 2011 at 4:55 AM, skink  wrote:
> > what is SplitView and Splitter?
>
> In many GUI toolkits, a splitter is a heavier divider between two
> portions of the UI, designed to be dragged to allow resizing of the
> material on either side (e.g., a splitter between two widgets in a
> row, when dragged to the right, would expand the left widget and
> shrink the right widget).

yes i know, Mark, i was rather asking what it has to do with android
sdk per se

>
> > never heard of such functionality in android sdk
>
> There isn't. And, up until tablets, there was really no need for one
> -- it'd be fairly pointless on a phone and TVs shouldn't rely on
> gesture-based things like that. However, for a -large or -xlarge
> -touchscreen device, I can see value in a splitter. Perhaps somebody
> will write one someday.

well, it shouldn't be a big problem imho: just simple class extending
ViewGroup, no big deal really

>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.0 Available!

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


Re: [android-developers] Re: Can GPS work without internet access in Android phone?

2011-10-31 Thread Kristopher Micinski
And you were also outside during these 15 minutes?

Kris

On Mon, Oct 31, 2011 at 1:01 AM, Kenneth WON  wrote:
> Hi, Kristopher,
>
> Thank you for your reply. Yes, I waited it more than 15 minutes. And
> following is my code, I have no idea where's wrong, please feel free
> to have a look, and If you don't mind, please give me some hints Thank
> you!
>
>
> import android.app.Service; import android.content.Intent; import
> android.location.Location; import
> android.location.LocationListener; import
> android.location.LocationManager; import android.os.Binder; import
> android.os.Bundle; import android.os.Handler; import
> android.os.IBinder; import android.util.Log; public class GPSService
> extends Service implements LocationListener {   private Handler
> requestLocUpdateHandler = new Handler();   private LocationManager
> locationMgr;   private static int locUpdateTime = 3;   // Bind for
> Service Connection   class GPSServiceBinder extends Binder {
> GPSService getService() {       return GPSService.this;     }   }   //
> define ACTION   public static final String ACTION = "GPS Service
> Broadcast";   @Override   public void onCreate() {
> super.onCreate();     locationMgr =
> (LocationManager) getSystemService(LOCATION_SERVICE);
> requestLocUpdateHandler.postDelayed(requestLocUpdateTask, 1000);   }
> private void updateLocStatus(Location loc) {     if (loc != null) {
>     double latitude = loc.getLatitude();       double longitude =
> loc.getLongitude();       long locTime = loc.getTime();       String
> dateTime = Utils.dateFormat.format(locTime);       Log.w("Location
> Info", loc.getAccuracy() + " | " + loc.getProvider());
> Log.w("GPS", "Time: " + dateTime + " | Lat: " + latitude + " | Long: "
> + longitude);     }   }   private Runnable requestLocUpdateTask = new
> Runnable() {     @Override     public void run() {
> requestLocUpdate();
> requestLocUpdateHandler.postDelayed(requestLocUpdateTask, locUpdateTime);
>   }   };   private void requestLocUpdate() {
> locationMgr.removeUpdates(this);
> locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000,
> 0, this);   }   @Override   public IBinder onBind(Intent arg0) {
> return new GPSServiceBinder();   }   @Override   public void
> onRebind(Intent intent) {   }   @Override   public boolean
> onUnbind(Intent intent) {     return true;   }   @Override   public
> void onLocationChanged(Location location) {
> updateLocStatus(location);   }   @Override   public void
> onProviderDisabled(String provider) {   }   @Override   public void
> onProviderEnabled(String provider) {   }   @Override   public void
> onStatusChanged(String provider, int status, Bundle extras) {   }
> @Override   public void onDestroy() {     super.onDestroy();
> locationMgr.removeUpdates(this);   }   @Override   public void
> onStart(Intent intent, int startId) {     super.onStart(intent,
> startId);   } }
> Thanks and Regards, Kenneth Won
>
>
>
> On 10月31日, 上午11時22分, Kristopher Micinski 
> wrote:
>> Cold starts can take up to 15 minutes...
>>
>> Did you wait 15 minutes...
>>
>>
>>
>>
>>
>>
>>
>> On Sun, Oct 30, 2011 at 11:17 PM, Kenneth WON  wrote:
>> > Hi, lbendlin,
>>
>> > Thank you for your reply.
>> > I am really facing this issue.
>> > When I turn off the Network (WiFi and/or cell network), the app cannot
>> > obtain (GPS / A-GPS) position.
>> > Then I turn the network on, it can get the (GPS / A-GPS) position
>> > successfully.
>> > What's wrong?
>>
>> > Thanks and Regards,
>> > Kenneth Won
>>
>> > On 10月31日, 上午8時30分, lbendlin  wrote:
>> >> GPS can work very well without internet access - after it got the first
>> >> fix.  The internet access is used to download satellite position data to
>> >> the GPS receiver which speeds up the TTFF (time to first fix).  Without 
>> >> the
>> >> extra help the first fix can take quite some time, especially when you are
>> >> already moving.
>>
>> >> Go to a location with unobstructed sky view and let the GPS receiver get a
>> >> fix. Then check how it performs on subsequent fixes.
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@goog

[android-developers] Re: Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen

2011-10-31 Thread novemberox
To make it work you just need to override
getVideoLoadingProgressView() in WebChromeClient in WebView

i.e.
@Override
public View getVideoLoadingProgressView() {
ProgressBar bar = new ProgressBar(Context);
return bar;
}

On 20 Paź, 14:28, M L  wrote:
> Hi,
>
> nothing new on this I have also topic 
> here:http://stackoverflow.com/questions/7217159/implementing-onshowcustomv...
>
> 2011/10/20 luciofm 
>
>
>
>
>
>
>
> > Hi novemberox
>
> > Any progress on this??? I'm having the same issue in a project
>
> > If I don't find any solution I'll have to redirect it to the videoplayer
> > via Intent unitl the ICS source code is released.
>
> > Thanks
> > Lúcio Maciel
> > luci...@gmail.com
>
> > On Wed, Aug 31, 2011 at 07:45, novemberox  wrote:
>
> >> I also found, that enabling hardware acceleration fix issue with
> >> playing embedded video. Full screen still doesn't work.
>
> >> On 29 Sie, 21:34, novemberox  wrote:
> >> > A tip would be useful :)
>
> >> > I tried to find Google browser sources in Android 3.1, but I'm not
> >> > quite sure if sources here:
> >>http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
> >> > are the sources used in 3.1.
>
> >> > On 27 Sie, 22:28, novemberox  wrote:
>
> >> > > Hi,
>
> >> > > I'm trying to play video in html on fullscreen. When I click on
> >> > > fullscreen button in video method onShowCustomView is fired. Here is
> >> > > my implementation:
>
> >> > >         public void onShowCustomView(View view, CustomViewCallback
> >> callback)
> >> > > {
> >> > >                 super.onShowCustomView(view, callback);
> >> > >                 if (view instanceof FrameLayout) {
> >> > >                         customComponenet.addView(view, new
> >> FrameLayout.LayoutParams(
>
> >> ViewGroup.LayoutParams.FILL_PARENT,
> >> > > ViewGroup.LayoutParams.FILL_PARENT,
> >> > >                                         Gravity.CENTER));
> >> > >                         customComponenet.setVisibility(View.VISIBLE);
> >> > >                 }
> >> > >         }
> >> > > Where customComponenet is FrameLayout placed on top of my current
> >> > > layout. Wideo is playing good, it's visibile and everything seams to
> >> > > be ok but it throws:
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):
> >> > > java.lang.NullPointerException
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
>
> >> android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen
> >> .java:
> >> > > 320)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java:
> >> > > 319)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.webkit.HTML5VideoView.start(HTML5VideoView.java:85)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.webkit.HTML5VideoViewProxy
> >> > > $VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
>
> >> android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java:
> >> > > 278)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
>
> >> android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java:
> >> > > 164)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:
> >> > > 1456)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.os.Handler.dispatchMessage(Handler.java:99)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.os.Looper.loop(Looper.java:132)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > android.app.ActivityThread.main(ActivityThread.java:4028)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > java.lang.reflect.Method.invokeNative(Native Method)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > java.lang.reflect.Method.invoke(Method.java:491)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > com.android.internal.os.ZygoteInit
> >> > > $MethodAndArgsCaller.run(ZygoteInit.java:844)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
> >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235):     at
> >> > > dalvik.system.NativeStart.main(Native Method)
>
> >> > > What am I doing wrong?
>
> >> > > My WebView settings:
> >> > >         webView.getSettings().setJavaScriptEnabled(true);
> >> > >         webView.getSettings().setPluginState(PluginState.ON);
> >> > >         webView.getSettings().setDomStorageEnabled(true);
> >> > >         webView.getSettings().setD

[android-developers] How i can make that a polygon fill the 80% of the width of the screen?

2011-10-31 Thread saex
I have a simple square (polygon), and i want that it fills the 80% of
the width of the screen

In other words, i want to position the square on the center on the
center of the screen, but with a width of the 80% of the total width
of the screen

How can i do it? I can't find examples/tutorials about this

thanks

THis is the code for my square:

public class Square {
//Buffer de vertices
private FloatBuffer vertexBuffer;
//Buffer de coordenadas de texturas
private FloatBuffer textureBuffer;
//Puntero de texturas
private int[] textures = new int[3];
//El item a representar
private int resourceId;
//Definición de vertices
private float vertices[] =
{
-1.0f, -1.0f, 0.0f, //Bottom Left
1.0f, -1.0f, 0.0f,  //Bottom Right
-1.0f, 1.0f, 0.0f,  //Top Left
1.0f, 1.0f, 0.0f//Top Right
};
//Coordenadas (u, v) de las texturas
/*
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 0.0f,
0.0f, 1.0f,
1.0f, 0.0f,
1.0f, 1.0f
};
*/
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f
};
//Inicializamos los buffers
public Square(int resourceId) {
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);

this.resourceId=resourceId;
}
//Funcion de dibujado
public void draw(GL10 gl) {
gl.glFrontFace(GL10.GL_CCW);
//gl.glEnable(GL10.GL_BLEND);
//Bind our only previously generated texture in this
case
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Point to our vertex buffer
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0,
textureBuffer);
//Enable vertex buffer
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//Draw the vertices as triangle strip
gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0,
vertices.length / 3);
//Disable the client state before leaving
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//gl.glDisable(GL10.GL_BLEND);

}
//Carga de texturas
public void loadGLTexture(GL10 gl, Context context) {
//Generamos un puntero de texturas
gl.glGenTextures(1, textures, 0);
//y se lo asignamos a nuestro array
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Creamos filtros de texturas
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
//Diferentes parametros de textura posibles
GL10.GL_CLAMP_TO_EDGE
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);

/*
String imagePath = "radiocd5.png";
AssetManager mngr = context.getAssets();
InputStream is=null;
try {
is = mngr.open(imagePath);
} catch (IOException e1)
{  e1.printStackTrace();   }
*/
//Get the texture from the Android resource directory
InputStream is=null;
/*
if (item.equals("rim"))
is =
context.getResources().openRawResource(R.drawable.rueda);
else if (item.equals("selector"))
is =
context.getResources().openRawResource(R.drawable.selector);
*/
is =
context.getResources().openRawResource(resourceId);
Bitmap bitmap = null;
try {
bitmap = BitmapFactory.decodeStream(is);
} finall

[android-developers] CPU leak android application

2011-10-31 Thread imran ali
Hi all,
In one of my application i have been using TabHost->(4-tab, so )4-
ActivityGroup->{lots of Activity in every ActivityGroup}.
i fond that my application has been using CPU at least 2% of system,
though the application is in background.
i observed that, at first time when i am starting application with new
process (after killing old one from settings), then it has been
consuming approx 30% of CPU when application is in background, after
some time approx 5 to 10 mint, it comes to approx 2% automatically,
there up-one it has been consuming approx 2% to 10% while i am
switching application background to foreground and foreground to
background,  till i don't start again with new process(as i stated
with new process it is approx 30% of CPU).

if any body have any idea then pleas help me.

regards
Imran ali

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


[android-developers] Can I make that a polygon fill the 80% of the width of the screen?

2011-10-31 Thread saex
I have a simple square (polygon), and i want that it fills the 80% of
the width of the screen

In other words, i want to position the square on the center on the
center of the screen, but with a width of the 80% of the total width
of the screen

How can i do it? I can't find examples/tutorials about this

thanks

THis is the code for my square:

public class Square {
//Buffer de vertices
private FloatBuffer vertexBuffer;
//Buffer de coordenadas de texturas
private FloatBuffer textureBuffer;
//Puntero de texturas
private int[] textures = new int[3];
//El item a representar
private int resourceId;
//Definición de vertices
private float vertices[] =
{
-1.0f, -1.0f, 0.0f, //Bottom Left
1.0f, -1.0f, 0.0f,  //Bottom Right
-1.0f, 1.0f, 0.0f,  //Top Left
1.0f, 1.0f, 0.0f//Top Right
};
//Coordenadas (u, v) de las texturas
/*
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 0.0f,
0.0f, 1.0f,
1.0f, 0.0f,
1.0f, 1.0f
};
*/
private float texture[] =
{
//Mapping coordinates for the vertices
0.0f, 1.0f,
1.0f, 1.0f,
0.0f, 0.0f,
1.0f, 0.0f
};
//Inicializamos los buffers
public Square(int resourceId) {
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);

this.resourceId=resourceId;
}
//Funcion de dibujado
public void draw(GL10 gl) {
gl.glFrontFace(GL10.GL_CCW);
//gl.glEnable(GL10.GL_BLEND);
//Bind our only previously generated texture in this
case
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Point to our vertex buffer
gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0,
textureBuffer);
//Enable vertex buffer
gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//Draw the vertices as triangle strip
gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0,
vertices.length / 3);
//Disable the client state before leaving
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
//gl.glDisable(GL10.GL_BLEND);

}
//Carga de texturas
public void loadGLTexture(GL10 gl, Context context) {
//Generamos un puntero de texturas
gl.glGenTextures(1, textures, 0);
//y se lo asignamos a nuestro array
gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);
//Creamos filtros de texturas
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
//Diferentes parametros de textura posibles
GL10.GL_CLAMP_TO_EDGE
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_S,
GL10.GL_REPEAT);
gl.glTexParameterf(GL10.GL_TEXTURE_2D,
GL10.GL_TEXTURE_WRAP_T,
GL10.GL_REPEAT);

/*
String imagePath = "radiocd5.png";
AssetManager mngr = context.getAssets();
InputStream is=null;
try {
is = mngr.open(imagePath);
} catch (IOException e1)
{  e1.printStackTrace();   }
*/
//Get the texture from the Android resource directory
InputStream is=null;
/*
if (item.equals("rim"))
is =
context.getResources().openRawResource(R.drawable.rueda);
else if (item.equals("selector"))
is =
context.getResources().openRawResource(R.drawable.selector);
*/
is =
context.getResources().openRawResource(resourceId);
Bitmap bitmap = null;
try {
bitmap = BitmapFactory.decodeStream(is);
} finall

Re: [android-developers] CPU leak android application

2011-10-31 Thread Kristopher Micinski
If you're not doing anything compute intensive in a service or
something else like that, just using foreground UI, this sounds like
perfectly normal operation that you can't do anything about.

kris

On Mon, Oct 31, 2011 at 7:09 AM, imran ali  wrote:
> Hi all,
> In one of my application i have been using TabHost->(4-tab, so )4-
> ActivityGroup->{lots of Activity in every ActivityGroup}.
> i fond that my application has been using CPU at least 2% of system,
> though the application is in background.
> i observed that, at first time when i am starting application with new
> process (after killing old one from settings), then it has been
> consuming approx 30% of CPU when application is in background, after
> some time approx 5 to 10 mint, it comes to approx 2% automatically,
> there up-one it has been consuming approx 2% to 10% while i am
> switching application background to foreground and foreground to
> background,  till i don't start again with new process(as i stated
> with new process it is approx 30% of CPU).
>
> if any body have any idea then pleas help me.
>
> regards
> Imran ali
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Leaked IntentReceiver exception is being thrown even though I call unregisterReceiver

2011-10-31 Thread vijayakumar M
Hi Friends,

I don't understand why I'm getting this exception when hitting the back
button. I have the IntentReceiver registered in the onCreate method and it
is supposed to be unregistered in the onPause method. My Log.w() call
inside of the onPause method leads me to believe that the
unregisterReceiver() method is being called, but I am getting this
exception still... please any help me

-- 




"Nobody can go back and start a new beginning, but anyone can start today
and make a new ending"
-
Thanks,
Regards,
νιנαソαkum@r M
BloG:http://iamvijayakumar.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] how android recover bitmap?

2011-10-31 Thread a a
Hi androids,

I use a following code

canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,null, 0, null);

to changed a bitmap, how can i recover the bitmap?

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: how android recover bitmap?

2011-10-31 Thread a a
I envoke the drawBitmapMesh in "onDraw"

@Override
protected void onDraw(Canvas canvas) {
if(!mSave) {
Log.e("test",
"ss");
canvas.save();
mSave = true;
}
mCanvas = canvas;
canvas.drawColor(0xFFCC);
canvas.concat(mMatrix);
canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,null,
0, null);
if(mRestore) {
Log.e("test",
"rrr");
canvas.restore(); // it can't restore the bitmap.
mRestore = false;
}
}

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

[android-developers] Parsing JSON data using JSONTokener shows nothing ...

2011-10-31 Thread Ashish Tiwari

package com.json.main;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class JSONtestActivity extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 //TextView tv1 = (TextView)findViewById(R.id.TextView01);
 //tv.setText("Hey see this,its working..");


   try {

/* Inflate TextView from the layout */

TextView tv = (TextView)findViewById(R.id.TextView01);

   /* JSON data considered as an example. Generally this data is obtained
   from a web service.*/

String json = "{"+
 " \"name\" :\"ashish\", " +
 " \"message\" :\"hey see this,it works\", " +
 " \"place\" :\"vileparle\", " +
 " \"date\" :\"Todays date will goes here  \", " +
   " }"; 

 JSONObject object = (JSONObject) new JSONTokener(json).nextValue();
 String name = object.getString("name");
 String message = object.getString("message");
 String place = object.getString("place");
 String date = object.getString("date");

 tv.setText("Name : " + name + "\n \n");
 tv.setText("Message" + message + "\n \n");
 tv.setText("Place" + place + "\n \n ");
 tv.setText("Data" + date + "\n \n"); 

   } catch (JSONException e) {
  e.printStackTrace();
   }
catch(Exception ex){
ex.printStackTrace();
}
   }
}

/*
here is XML >

http://schemas.android.com/apk/res/android";
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"> 






*/


It shows " No data ". here is pastebin's link >http://pastebin.com/xw2TPd2U

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

2011-10-31 Thread sourabh sahu
I too have problem

On Mon, Oct 31, 2011 at 1:21 PM, vani reddy wrote:

>
> Hi there ,
> How to limit the height of sliding drawer naturally to get it the same  as
> like in iphone?
> --
> Regards,
> Vani Reddy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: how to assign a image resource to image control at runtime?????

2011-10-31 Thread satheesh thinagaran
thank you

On Mon, Oct 31, 2011 at 6:02 AM, lbendlin  wrote:

> imageView.setImageResource(getContext().getResources().getIdentifier(filename,
> "drawable", getContext().getPackageName()));
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: SplitView on fragment

2011-10-31 Thread sourabh
In Samsung galaxy tab there is a native app MyFile, which is having a
same kind of functionality I am  looking for.Please suggest something.

Thanks,
Sourabh

On Oct 31, 3:35 pm, skink  wrote:
> On 31 Paź, 11:12, Mark Murphy  wrote:
>
> > On Mon, Oct 31, 2011 at 4:55 AM, skink  wrote:
> > > what is SplitView and Splitter?
>
> > In many GUI toolkits, a splitter is a heavier divider between two
> > portions of the UI, designed to be dragged to allow resizing of the
> > material on either side (e.g., a splitter between two widgets in a
> > row, when dragged to the right, would expand the left widget and
> > shrink the right widget).
>
> yes i know, Mark, i was rather asking what it has to do with android
> sdk per se
>
>
>
> > > never heard of such functionality in android sdk
>
> > There isn't. And, up until tablets, there was really no need for one
> > -- it'd be fairly pointless on a phone and TVs shouldn't rely on
> > gesture-based things like that. However, for a -large or -xlarge
> > -touchscreen device, I can see value in a splitter. Perhaps somebody
> > will write one someday.
>
> well, it shouldn't be a big problem imho: just simple class extending
> ViewGroup, no big deal really
>
>
>
>
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 4.0 Available!- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] How to delete sms chats from Messaging Inbox programmatically?

2011-10-31 Thread Shruthi Varma
Hi All,

I am developing a chat based application where I have to send and
receive sms chats from a particular number and display it inside my
application. Those chats should not be visible in the Messaging Inbox
of the phone.

I am able to send messages from my app easily, it is not recorded in
the Messaging Inbox.
But the problem lies in receiving sms.

Using Broadcast Receiver, I am able to receive sms in my app, but
those sms chats are visible in the Messaging Inbox too.

I want to write a code where the messages from a particular number are
received from my app and deleted from the Messaging Inbox
simultaneously.

Please help me to achieve this.

Regards,
Shruthi Varma.

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


Re: [android-developers] How to delete sms chats from Messaging Inbox programmatically?

2011-10-31 Thread Kristopher Micinski
Shruthi,

The default messaging app on the phone isn't the only messaging app
you can use: there are many others.  So in this case it doesn't make
sense to delete the message from the "Messaging inbox" because there
could be more than one of those.

However, I believe that, while not documented in the public sdk, there
is a contentprovider for sms messages that you can work with:

http://groups.google.com/group/android-beginners/browse_thread/thread/2e049e79f88d95d5?pli=1

Go read about ContentProviders and see if this helps you, and remember
that if you use it your app might break (in fact, this was mentioned
around the ~1.6 timeframe, so that content provider may be entirely
locked down now, and might not let you delete things anymore...).

So basically, assuming that everyone uses the default messaging app is
a bad idea, if you have to access it you might be able to use that
content provider, but know that you're doing is not guaranteed to
work.

Kris

On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
 wrote:
> Hi All,
>
> I am developing a chat based application where I have to send and
> receive sms chats from a particular number and display it inside my
> application. Those chats should not be visible in the Messaging Inbox
> of the phone.
>
> I am able to send messages from my app easily, it is not recorded in
> the Messaging Inbox.
> But the problem lies in receiving sms.
>
> Using Broadcast Receiver, I am able to receive sms in my app, but
> those sms chats are visible in the Messaging Inbox too.
>
> I want to write a code where the messages from a particular number are
> received from my app and deleted from the Messaging Inbox
> simultaneously.
>
> Please help me to achieve this.
>
> Regards,
> Shruthi Varma.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] How to delete sms chats from Messaging Inbox programmatically?

2011-10-31 Thread Mark Murphy
On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
 wrote:
> Using Broadcast Receiver, I am able to receive sms in my app, but
> those sms chats are visible in the Messaging Inbox too.

That is because you are not calling abortBroadcast().

> I want to write a code where the messages from a particular number are
> received from my app and deleted from the Messaging Inbox
> simultaneously.

No, you need to call abortBroadcast(), so lower-priority receivers do
not receive the broadcast.

The fact that third-party SMS clients might have a higher priority
than yours would suggest that perhaps using SMS as a vehicle for chat
is not a wise move.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


Re: [android-developers] How to delete sms chats from Messaging Inbox programmatically?

2011-10-31 Thread Kristopher Micinski
On Mon, Oct 31, 2011 at 8:38 AM, Mark Murphy  wrote:
> On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
>  wrote:
>> Using Broadcast Receiver, I am able to receive sms in my app, but
>> those sms chats are visible in the Messaging Inbox too.
>
> That is because you are not calling abortBroadcast().
>

Ah, thanks for reminding me of this one!

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] How to take a Photo using GLSurfaceView to overlap an image on the CameraView?

2011-10-31 Thread saex
Actually i have a Augmented Reality App that shows a polygon
(glsurfaceview) overlapped on the CameraView, the polygon is a simple
square with a texture on it.

I need to take photos with the GLSurfaceView polygon overlapped on the
cameraview and store the photos on the Images directory of the SDCard

It is possible to it? can someone show me tutorials/examples for doing
this please?

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] Parsing JSON data using JSONTokener shows nothing ...

2011-10-31 Thread silenuz nowan
What happens if you use:

JSONObject object = new JSONObject(json);

and omit the tokenizer.


--- On Mon, 10/31/11, Ashish Tiwari  wrote:

From: Ashish Tiwari 
Subject: [android-developers] Parsing JSON data using JSONTokener shows nothing 
...
To: android-developers@googlegroups.com
Received: Monday, October 31, 2011, 11:38 AM


package com.json.main;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class JSONtestActivity extends Activity {     /** Called when the 
activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
       //TextView tv1 = (TextView)findViewById(R.id.TextView01);
       //tv.setText("Hey see this,its working..");


     try {

      /* Inflate TextView from the layout */

      TextView tv = (TextView)findViewById(R.id.TextView01);

     /* JSON data considered as an example. Generally this data is 
obtained
     from a web service.*/

      String json = "{"+
               " \"name\" :\"ashish\", " +
              " \"message\" :\"hey see this,it 
works\", " +
               " \"place\" :\"vileparle\", " +
               " \"date\" :\"Todays date will goes 
here  \", " +
     "  }"; 

     JSONObject object = (JSONObject) new 
JSONTokener(json).nextValue();
       String name = object.getString("name");
     String message = object.getString("message");
       String place = object.getString("place");
     String date = object.getString("date");

      tv.setText("Name : " + name + "\n \n");
      tv.setText("Message" + message + "\n \n");
      tv.setText("Place" + place + "\n \n ");
       tv.setText("Data" + date + "\n \n"); 

     } catch (JSONException e) {
        e.printStackTrace();
     }
      catch(Exception ex){
         ex.printStackTrace();
      }
     }
}

/*
here is XML >
 
http://schemas.android.com/apk/res/android";
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
 
 

 

 
*/


It shows " No data ". here is pastebin's link >http://pastebin.com/xw2TPd2U




-- 

You received this message because you are subscribed to the Google

Groups "Android Developers" group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, 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] can't seem to focus

2011-10-31 Thread bob
Any time I take pictures with my Android phone (LG Optimus), they are
out of focus.

Anyone else have this problem?

Here's an example of a pic I just took.

http://i1190.photobucket.com/albums/z449/m75214/out_of_focus.jpg

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: RelativeLayout not working in ADT 14

2011-10-31 Thread Streets Of Boston
Xav: Any news on this 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] Re: RelativeLayout not working in ADT 14

2011-10-31 Thread arnouf
The editor seems to have a bug.
You create RL with 2 buttons inside, one below the other.
The second is over the first.
But after a compilation I have the correct view on device. 
Only the graphical editor seems bugged.

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

Re: [android-developers] can't seem to focus

2011-10-31 Thread TreKing
On Mon, Oct 31, 2011 at 8:04 AM, bob  wrote:

> Any time I take pictures with my Android phone (LG Optimus), they are out
> of focus.
>

This really has nothing to do with this list.

Ideas?


Contact your device manufacturer.

-
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] Instrumentation: can this mechanism be used for something else than testing ?

2011-10-31 Thread pperotti
Hi Everyone,

I'm trying to use (without success) the instrumentation mechanism to
intercept events for a subset of views (for instance, when the end
user clicks on any button) but without  luck.

I'm starting to wonder if it is possible to use instrumentation to
intercept events of methods from views ( for instance Buttons ).

The use case I'm trying to solve is gather statistics from a subset of
events from a subset of views without overriding each method of each
button in the application.

Does anybody knows if this is possible ?

Thanks in advance,
Pablo

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


[android-developers] ViewSwitcher and webview - Android

2011-10-31 Thread Jovish P
Is it possible to create a viewswitcher in which one view is a linear
layout and other with a webview ?

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

[android-developers] Zooming Polygons: Can i know if the polygon borders are reaching the borders of the screen?

2011-10-31 Thread saex
I want to show a square with the 100% of the width of the screen,
then, i supose that i must zoom it (with Z axis) until the polygon
borders are tounching the screen borders.

But how can i detect that?

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] How to delete sms chats from Messaging Inbox programmatically?

2011-10-31 Thread Shruthi Varma
Thanks a lot.

 abortBroadcast() worked for me

Regards,
Shruthi.




On Mon, Oct 31, 2011 at 6:08 PM, Mark Murphy  wrote:
> On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
>  wrote:
>> Using Broadcast Receiver, I am able to receive sms in my app, but
>> those sms chats are visible in the Messaging Inbox too.
>
> That is because you are not calling abortBroadcast().
>
>> I want to write a code where the messages from a particular number are
>> received from my app and deleted from the Messaging Inbox
>> simultaneously.
>
> No, you need to call abortBroadcast(), so lower-priority receivers do
> not receive the broadcast.
>
> The fact that third-party SMS clients might have a higher priority
> than yours would suggest that perhaps using SMS as a vehicle for chat
> is not a wise move.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.0 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

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

2011-10-31 Thread sblantipodi
Tips or tricks. Have you founded the navigation button on WXGA720?

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

2011-10-31 Thread Chris Stewart
Thanks a lot for the responses.  I didn't realize such a large number of
devices are categorized into just two buckets.  I suspect normal/xhdpi will
gain share sooner rather than later, as I believe the Galaxy Nexus fits in
that group.  I would imagine the influx of high res/high density displays
will begin soon as well.

--
Chris Stewart
http://chriswstewart.com



On Sun, Oct 30, 2011 at 4:21 PM, B Lyon  wrote:

> ugh.  Dealing with this exact same issue myself at the moment (iPhone -->
> android).  The "screens" link Mark pointed out is great to see what things
> are out there as of Oct 3 - 90% are apparently Normal/hdpi or Normal/mdpi,
> so you can set up the avd's to take a look at how things look (or buy all
> the devices).Not depicted on the list, of course, is the potential
> increase of Kindle Fires that are to be shipped Nov 15.  Amazon has some
> info on how to configure the emulator for this (
> https://developer.amazon.com/help/faq.html#KindleFire  which I found
> via one of Mark's answers on stackoverflow).
>
>
> On Sun, Oct 30, 2011 at 1:20 PM, Mark Murphy wrote:
>
>> On Sun, Oct 30, 2011 at 12:56 PM, Chris Stewart 
>> wrote:
>> > Going from a world where he worried about 3.5"
>> > only, to a world where every size is potentially available, is a
>> concern of
>> > mine.
>>
>>
>> http://www.amazon.com/Red-Bull-Energy-Drink-8-4-Ounce/dp/B000MTST70/httpcommonsco-20
>>
>> :-)
>>
>> > So I'm wondering, which screen size, resolution, density, do we aim for
>> to
>> > start with?
>>
>> That's like saying "do I focus on 800x600, 804x567, or 923x725
>> resolution browser windows first?". The answer is "all of them,
>> because you focus on creating a design that incorporates rules for
>> handling resizeable browser windows".
>>
>> > Certainly we'll need to work on each of the layout/resource
>> > variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc)
>> but
>> > I'm looking for a reference point to get started.  Should we be
>> focusing on
>> > the largest for phones, and largest for tablets, with the expectation
>> that
>> > we can mostly scale down from each of those to the smaller phone and
>> tablet
>> > sizes/resolutions/densities?
>>
>> I wouldn't. On a tactical level, it's almost always easier to scale up
>> than down.
>>
>> Strategically, your first job is to determine what you care about.
>> -small screens, for example, are not terribly popular, so you might
>> elect to skip those in the interests of reducing development effort.
>> See:
>>
>> http://developer.android.com/resources/dashboard/screens.html
>>
>> Your second job is to come up with the big-ticket designs for your UX
>> on the remaining screen sizes. For example, where will you use one
>> fragment per activity in -normal devices and use multiple fragments
>> per activity in -large and/or -xlarge? See:
>>
>> http://developer.android.com/guide/practices/tablets-and-handsets.html
>>
>> Your third job is, within a fragment, to design layouts that can
>> handle the variations in screen size the fragment will be expected to
>> cope with. For some fragments, they will have minor variations in size
>> (e.g., a phone-sized screen on a phone or a phone-sized portion of a
>> tablet screen). For some fragments, they will have much more dramatic
>> variations in size (e.g., a case where you will only ever have the
>> fragment by itself in an activity, or you have an activity sans
>> fragments). Here, your need to teach your GUI designer the basic rules
>> for The Big Three Android layouts:
>>
>> -- use android:layout_weight with LinearLayout
>> -- use android:stretchColumns and android:shrinkColumns with TableLayout
>> -- use all the android:layout_* rules with RelativeLayout, to
>> stipulate what is attached to what (with whitespace therefore implied)
>>
>> Your GUI designer should be able to give you GUI designs that depict
>> these rules.
>>
>> Densities tend to fall out after the basic design is complete. Either
>> stick with a single density for each image (and let Android resample
>> it, with varying degrees of quality and performance) or package in one
>> copy of the image per density (at the cost of a somewhat larger APK).
>> If you have the same image that should appear in different sizes in
>> different screen sizes or layouts, again you will need to decide if
>> you want Android resizing the image (saves development effort at cost
>> of speed/quality) or if you want to package in multiple renditions of
>> the image at different sizes (e.g., icon-standard vs. icon-embiggened)
>> for each relevant density.
>>
>> This would be an approach for a regular app. Games probably come at
>> this from a totally different approach vector, for example.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: http://marakana.com/training/android/
>>
>> --
>> You received this message because yo

[android-developers] Google+ App consumes phone memory

2011-10-31 Thread Neil
Hi All, 

I installed Google + app for android in my Samsung Galaxy ACE.
It got installed in SD card according to the Application Manager

However when I check back the phone memory usage , it shows me that 17 mb 
less. For this reason I am getting low phone memory warning and unable to 
use the app.
Since it is installed in SD card it should have been consuming memory in SD 
card not in phone memory.
When I uninstall the app I got the phone memory back.

Thanks
Neil
http://neilghosh.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: ADT r15 reliabiility on Windows?

2011-10-31 Thread Studio LFP
Every time you update software, there is more than a good chance that it 
probably didn't clean up after itself and has left old and/or orphaned 
files and entries. Not to mention the settings in different layers of 
software that you may know nothing about.

There is a good chance Eclipse, ADT and Java keeps all the old settings 
around update after update. Then you have overall project settings and then 
specific project settings. The odds of one of those five having a rogue 
setting that could cause issues is pretty good. The longer you go without 
cleaning house, the more likely you are to end up with internal problems.

That's not even mentioning the fact that each component of Eclipse, and any 
other plugin you have in Eclipse, also has settings. Just look in your 
Workspace .metadata directory. Each plugin can carry its own settings in 
those folders. There are probably hundreds, if not thousands, of settings 
that can affect how well your environment behaves.

Steven
Studio LFP
http://www.studio-lfp.com


On Monday, October 31, 2011 3:08:26 AM UTC-5, Zsolt Vasvari wrote:
>
> > The freezing and running out of heap seems like you might have an issue 
> > somewhere else. Have you tried cleaning out Eclipse/ADT/SDK and 
> > reinstalling fresh? I know it's not the optimal thing, but might be 
> worth a 
> > try. I've done it a time or two on my main workstation and laptop and it 
> > seems to help keep things in order. 
>
> Where are you getting these suggestions from?  Why would reinstall 
> help?  The files are either there or not -- we are not talking about 
> corrupted registries here. 
>
>

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

2011-10-31 Thread Daniel Drozdzewski
On 31 October 2011 15:09, Neil  wrote:
> Hi All,
>
> I installed Google + app for android in my Samsung Galaxy ACE.
> It got installed in SD card according to the Application Manager
>
> However when I check back the phone memory usage , it shows me that 17 mb
> less. For this reason I am getting low phone memory warning and unable to
> use the app.
> Since it is installed in SD card it should have been consuming memory in SD
> card not in phone memory.
> When I uninstall the app I got the phone memory back.


Neil,

This list is not for sharing of stories of Android users.

Applications consume memory.

SD card is a storage where the app got saved, not where it runs. When
you open it, OS loads it to main memory (RAM) in order to execute it
and that is where your warnings come from.

-- 
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] Re: Google+ App consumes phone memory

2011-10-31 Thread Studio LFP
The application and the data that the application stores/caches are two 
different things. If you move the application to the SD card, it does move 
and frees up most of whatever memory the application itself was taking up. 
The data that the application produces may still use the internal memory as 
the preferred location. If so, than it will continue to take up internal 
memory like you are seeing.

You may want to check the settings for it, and other applications, to see 
if you can set them to use another storage location for files/cache so they 
won't fill up your internal memory.

Steven
Studio LFP
http://www.studio-lfp.com


On Monday, October 31, 2011 10:09:11 AM UTC-5, Neil wrote:
>
> Hi All, 
>
> I installed Google + app for android in my Samsung Galaxy ACE.
> It got installed in SD card according to the Application Manager
>
> However when I check back the phone memory usage , it shows me that 17 mb 
> less. For this reason I am getting low phone memory warning and unable to 
> use the app.
> Since it is installed in SD card it should have been consuming memory in 
> SD card not in phone memory.
> When I uninstall the app I got the phone memory back.
>
> Thanks
> Neil
> http://neilghosh.com
>

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

Re: [android-developers] Google+ App consumes phone memory

2011-10-31 Thread Neil
Thanks Daniel and Steven for the explanation !

My phone has only 181 Mb of phone memory, so I am not able to install more 
than 10 apps or so.And because above reason moving the apps to SD card also 
does not help.

I understand this is a Developers' forum, Can anybody suggest me android 
user's forum or any way I can contact the developer of the apps ?

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

[android-developers] Help with FindViewById

2011-10-31 Thread Mark Phillips
I have the following layout:

LinearLayout
TableLayout_1
ScrollView
   MyHorizontalScrollView
 TableLayout_2

MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer to
TableLayout_2 using findViewById(). How do I get a pointer to TableLayout_1
from MyHorizontalScrollView?

Thanks,

Mark

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

Re: [android-developers] Help with FindViewById

2011-10-31 Thread Mark Murphy
On Mon, Oct 31, 2011 at 11:34 AM, Mark Phillips
 wrote:
> I have the following layout:
>
> LinearLayout
>     TableLayout_1
>     ScrollView
>        MyHorizontalScrollView
>  TableLayout_2
>
> MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer to
> TableLayout_2 using findViewById(). How do I get a pointer to TableLayout_1
> from MyHorizontalScrollView?

You don't, since TableLayout_1 is not a child of
MyHorizontalScrollView. You get it from your activity.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


[android-developers] Re:Background

2011-10-31 Thread jaggu
Hi
how to change the background image ,right now i have kept the only one image ;
like tht arounnd i have 14 image useing database i have stored those
images keep on needs to change the user how come its possoble
can any one tell me

thanks
jagadeesh

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


[android-developers] Screen Orientation changes automatically in 2.2 emulator

2011-10-31 Thread KK
Hi All,
I'm trying to create a simple stream media player app. Though the media
player is working fine and I'm able to play shoutcast stream, but I'm
facing a weird problem, screen orientation changes automatically in periods
of : 2mins of start of app---15 secs---15 secs---2minutes and the cycle
continues. The time is not 100% accurate, and just my observation. Would
appreciate if someone could point me what could be causing this problem.
Thanks for your time. Just a note, that I'm running the app on android
emulator and I'm on 2.2 API series.


10-31 21:04:41.830: INFO/WindowManager(59): *Setting rotation to 1,
animFlags=0*
10-31 21:04:41.840: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18
uiMode=17 seq=34}
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:41.870: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:42.040: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:04:42.040: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:04:42.040: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:04:42.620: DEBUG/dalvikvm(170): GC_FOR_MALLOC freed 11469 objects
/ 509344 bytes in 633ms
10-31 21:04:44.349: WARN/AudioFlinger(34): write blocked for 71 msecs,
57716 delayed writes, thread 0xb3f0
10-31 21:04:44.600: DEBUG/dalvikvm(59): GC_EXPLICIT freed 1748 objects /
69712 bytes in 157ms
10-31 21:04:49.435: WARN/AudioFlinger(34): write blocked for 74 msecs,
57757 delayed writes, thread 0xb3f0
10-31 21:04:52.620: INFO/WindowManager(59): *Setting rotation to 0,
animFlags=0*
10-31 21:04:52.620: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18
uiMode=17 seq=35}
10-31 21:04:54.502: WARN/AudioFlinger(34): write blocked for 71 msecs,
57790 delayed writes, thread 0xb3f0
10-31 21:04:55.290: DEBUG/dalvikvm(59): GC_EXPLICIT freed 335 objects /
16072 bytes in 234ms
10-31 21:04:59.549: WARN/AudioFlinger(34): write blocked for 70 msecs,
57824 delayed writes, thread 0xb3f0
10-31 21:05:04.715: WARN/AudioFlinger(34): write blocked for 72 msecs,
57863 delayed writes, thread 0xb3f0
10-31 21:05:09.814: WARN/AudioFlinger(34): write blocked for 71 msecs,
57910 delayed writes, thread 0xb3f0
10-31 21:05:09.830: ERROR/QemuSensors(59): data__poll: len=-1, errno=0:
Unknown error: 0
10-31 21:05:09.830: INFO/WindowManager(59): *Setting rotation to 1,
animFlags=0*
10-31 21:05:09.840: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18
uiMode=17 seq=36}
10-31 21:05:09.860: ERROR/QemuSensors(3813): data__poll: len=-1, errno=9:
Bad file number
10-31 21:05:12.540: DEBUG/dalvikvm(59): GC_EXPLICIT freed 443 objects /
1 bytes in 141ms
10-31 21:05:15.170: WARN/AudioFlinger(34): write blocked for 80 msecs,
57942 delayed writes, thread 0xb3f0
10-31 21:05:20.290: WARN/AudioFlinger(34): write blocked for 77 msecs,
57984 delayed writes, thread 0xb3f0
10-31 21:05:22.029: INFO/WindowManager(59): *Setting rotation to 0,
animFlags=0*
10-31 21:05:22.029: INFO/ActivityManager(59): Config changed: { scale=1.0
imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18
uiMode=17 seq=37}
10-31 21:05:24.630: DEBUG/dalvikvm(59): GC_EXPLICIT freed 216 objects /
9928 bytes in 137ms


Thanks,
KK

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

2011-10-31 Thread Studio LFP
In the market there is a developer web site link if you scroll down. It 
leads you to here:

http://www.google.com/support/mobile/bin/topic.py?hl=en&topic=1248781&parent=1364494

There are support options near the bottom in the "Solve a problem" section. 
You'll probably want to use one of those.

Steven
Studio LFP
http://www.studio-lfp.com


On Monday, October 31, 2011 10:32:45 AM UTC-5, Neil wrote:
>
> Thanks Daniel and Steven for the explanation !
>
> My phone has only 181 Mb of phone memory, so I am not able to install more 
> than 10 apps or so.And because above reason moving the apps to SD card also 
> does not help.
>
> I understand this is a Developers' forum, Can anybody suggest me android 
> user's forum or any way I can contact the developer of the apps ?
>

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

Re: [android-developers] Help with FindViewById

2011-10-31 Thread Mark Phillips
How do I get it from my activity?

Mark

On Mon, Oct 31, 2011 at 8:38 AM, Mark Murphy wrote:

> On Mon, Oct 31, 2011 at 11:34 AM, Mark Phillips
>  wrote:
> > I have the following layout:
> >
> > LinearLayout
> > TableLayout_1
> > ScrollView
> >MyHorizontalScrollView
> >  TableLayout_2
> >
> > MyHorizontalScrollView extends HorizontalScrollView. I can get a pointer
> to
> > TableLayout_2 using findViewById(). How do I get a pointer to
> TableLayout_1
> > from MyHorizontalScrollView?
>
> You don't, since TableLayout_1 is not a child of
> MyHorizontalScrollView. You get it from your activity.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.0 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Zooming Polygons: Can i know if the polygon borders are reaching the borders of the screen?

2011-10-31 Thread TreKing
On Mon, Oct 31, 2011 at 9:46 AM, saex  wrote:

> I want to show a square with the 100% of the width of the screen,
> then, i supose that i must zoom it (with Z axis) until the polygon
> borders are tounching the screen borders.
>
> But how can i detect that?
>

You don't - you do the math necessary to calculate at what distance you
must render the polygon such that the width is equal to the width of the
device screen.

-
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] ViewSwitcher and webview - Android

2011-10-31 Thread TreKing
On Mon, Oct 31, 2011 at 9:41 AM, Jovish P  wrote:

> Is it possible to create a viewswitcher in which one view is a linear
> layout and other with a webview ?


A - ViewSwitcher operates generically on Views.
B - LinearLayout extends View.
C - WebView extends View.

Given A, B, and C - yes, this should be possible.

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

2011-10-31 Thread Mark Murphy
On Mon, Oct 31, 2011 at 11:55 AM, Mark Phillips
 wrote:
> How do I get it from my activity?

Call findViewById() on the activity.

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

_Android Programming Tutorials_ Version 4.0 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] Creating breadcrumbs for file browser type hierarchy

2011-10-31 Thread Chris
I've looked over the IOSchedule app and have been able to create the
FragmentBreadCrumbs object and add it to my ActionBar, etc. but I am
unable to make new titles/bread crumbs show up when a new fragment
transaction is executed.

In the IOSchedule application, they manually set the title and parent
title, but in my scenario, the user can enter an "infinitely" deep
hierarchy structure, so I want to keep adding a new bread crumb
everytime the user goes to a deeper level.

I've found the FragmentTransaction.setBreadCrumbTitle() but that has
no effect (the title's don't show up).

Has anyone successfully used the FragmentBreadCrumbs class in a
scenario like this or have an idea of how to make it work?

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


Re: [android-developers] Help with FindViewById

2011-10-31 Thread Mark Phillips
My apologies for not being clear. I an very new to android development -
this is my second week of experimenting/reading.

I assume there is a "pattern" for accessing a view_1 from view_2, where
view_1 is not a child of view_2. Perhaps I am wrong.

I was thinking that in the constructor of view_2, there is this Context
object. I looked at the api and I don't see anything obvious, but is there
a way through that object to get a handle on the activity so I can call
activity.findViewById() in view_2 to get at view_1?

Or, is the pattern to create a getter in the activity, which calls
findViewById() for view_1, and then somehow view_2 calls that getter.
Again, not sure how to get a handle to the activity in view_2.

Thanks,

Mark

On Mon, Oct 31, 2011 at 9:28 AM, Mark Murphy wrote:

> On Mon, Oct 31, 2011 at 11:55 AM, Mark Phillips
>  wrote:
> > How do I get it from my activity?
>
> Call findViewById() on the activity.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 4.0 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
>

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

Re: [android-developers] Help with FindViewById

2011-10-31 Thread Mark Phillips
I think I found it..with your suggestion to look at the activity...

((Activity1)getContext()).wrote:

> My apologies for not being clear. I an very new to android development -
> this is my second week of experimenting/reading.
>
> I assume there is a "pattern" for accessing a view_1 from view_2, where
> view_1 is not a child of view_2. Perhaps I am wrong.
>
> I was thinking that in the constructor of view_2, there is this Context
> object. I looked at the api and I don't see anything obvious, but is there
> a way through that object to get a handle on the activity so I can call
> activity.findViewById() in view_2 to get at view_1?
>
> Or, is the pattern to create a getter in the activity, which calls
> findViewById() for view_1, and then somehow view_2 calls that getter.
> Again, not sure how to get a handle to the activity in view_2.
>
> Thanks,
>
> Mark
>
>
> On Mon, Oct 31, 2011 at 9:28 AM, Mark Murphy wrote:
>
>> On Mon, Oct 31, 2011 at 11:55 AM, Mark Phillips
>>  wrote:
>> > How do I get it from my activity?
>>
>> Call findViewById() on the activity.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _Android Programming Tutorials_ Version 4.0 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
>>
>
>

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

[android-developers] the server could not process your apk

2011-10-31 Thread mkamoski
Dear Anyone -- Please help. This has been happening to me for 3 days
now. The same APK was successfully loading into the Amazon App Store.
This is a bug in the Market it seems. Is there a way to fix it? Yes I
have no empty sections in the AndroidManifest and yes I have checked
the order of nodes in that XML and followed the suggested order noted
in other threads on this issue. The problem still persists. Is there
ANY way to fix this or at least get a better error message from the
Market? Thanks. -- Mark Kamoski

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

2011-10-31 Thread Rohan Tilekar
i want to use intent. how do i start with intent??

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


[android-developers] ClassNotFoundException while adding external jars on Eclipse

2011-10-31 Thread Mourasman
Hey guys,

I'm getting a ClassNotFoundException for more than 3 hours now...

I'm trying to add a single jar (It's the NativeDriver server.jar) to
my Android project and I've already ran out of possibilities I've
tried dozens of different things, some of those which didn't even make
much sense, but I'm getting desperate anyway, so...

Anyway, I've tried the simple "Add External jar" to the build path,
tried also checking the "Export" checkbox, tried importing the jar to
the root folder of the project and doing "Add Jar", tried adding the
jar to the "libs" folder, "assets" folder... Really, I think I tried
all of them, and still no good!

Does anyone have any idea of why this is happening?

Thanks,
Mourasman

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


[android-developers] Current Location MapView in Android

2011-10-31 Thread Keyur
Hello Friends,

I am working on LBS currently, i would like to get the current
location of my phone and then i wish to display it using MapView in
Android. I got so many good tutorials on it but the main problem that
i an facing is that i am not getting the current location view. I
found the reason most probably that in emulator GPS functionality is
not supported directly.


So how can i test my code in emulator? Please kindly help me if
anybody has any ideas about it,


Thanks
Keyur

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 else notice that WebKit in ICS has some serious bugs?

2011-10-31 Thread John
I've found numerous (show stopping) bugs in the new version of WebKit
shipped with ICS:

Basic usage produces errors:
http://code.google.com/p/android/issues/detail?id=21177

(note the above has the "D/chromium(2735): Unknown chromium error: -6"
explanation as well...not sure if I should open a separate bug on
that)

Basic CSS (that works fine on previous versions) produces errors:
http://code.google.com/p/android/issues/detail?id=21305

Thread local memory leaks on the resource loader thread:
http://code.google.com/p/android/issues/detail?id=21355

Core dumps when using WebView.loadDataWithBaseURL()
http://code.google.com/p/android/issues/detail?id=21266

Anyone else find anything else? Given the lack of src (and NDK with a
copy of gdb) any tips for debugging?

Kinda alarming that it's in such a state

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


Re: [android-developers] Help with FindViewById

2011-10-31 Thread Mark Murphy
On Mon, Oct 31, 2011 at 1:35 PM, Mark Phillips
 wrote:
> I think I found it..with your suggestion to look at the activity...
>
> ((Activity1)getContext()).
> Is this the best way to accomplish what I want?

Tactically, there seem to be some scenarios in which getContext() of a
View does not return an Activity, but rather something else
(ContextWrapper, IIRC).

Strategically, it may be cleaner for you to define an interface, have
MyHorizontalScrollView hold an instance of that interface, have your
activity supply MyHorizontalScrollView with an implementation of that
interface, and have MyHorizontalScrollView call methods on that
interface implementation as needed. In particular, I would make the
interface be "evented" -- MyHorizontalScrollView should neither know
nor care what other widgets are floating around, so it should be
surfacing events and letting the activity handle them, rather than
having the interface supply objects to MyHorizontalScrollView and
having it massage other widgets.

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

_Android Programming Tutorials_ Version 4.0 Available!

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


[android-developers] Re: finishActivity: (popping two activities simultaneously?)

2011-10-31 Thread Belvedere Computer Services
onReceive (Context context, Intent intent) in B & C with two calls
from A

one each to B & C from A and A with have to register a "callback
reciever" (as it seems to be called by coders ) with something like
registerReceiver (BroadcastReceiver receiver, IntentFilter filter)
before calling sendBroadcast (Intent intent) from what ( i think - i
am new at this ) the SDK is calling android app Activity which is
(rather obviously) the entry for "doing something" (by the user of the
device)

in general, the form of what you need is often called callbacks or
interfaces ~ take awhile for one to grasp that we write a code-path
for the instruction pointer to follow - we are not actually "driving"
the code nor does the code drive the machine = we are only describing
a path

this is done with callbacks and interfaces ~ to do it like your first
approach it is needful to pass a ref from A to B&C so the thread there
can "callback" ~ which works but correct design is to let the SKD tell
us how to do it as most hardware vendors will (likely) have someone
code it from there end where onLowMemory() and so on may intercede if
needed as the way the coder does it may tend to load the machine when
user may suddenly decide to do something else

On Oct 29, 2:08 pm, John Goche  wrote:
> Hello,
>
> I have come across the following scenario: I have an activity A which
> needs to launch activity B to make a selection. The selected value
> eventually needs to be passed back to A, but before that happens,
> selecting the value from activity B launches another activity C. When
> a selection is made on activity C both selected values from B and C
> are passed back to A.
>
> So now I am wondering what the best way to code this is. Do I use
> finishActivity() or just call finish() in activity B when its
> onActivityResult()
> is called? Suggestions welcome. Basically I would like to rid myself of
> both popup windows when a selection in the latter is made.
>
> Thank you for your input,
>
> John Goche

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

2011-10-31 Thread Belvedere Computer Services
i have not had a chance to run on ADK yet to test but in every JDK I
have seen one needs to call .flush() then it is like commonsguy
explains

On Oct 30, 3:54 pm, leigh8347  wrote:
> hello
>
> can anyone help?
>
> on my app im trying to do the following - Save 2 user inputs to a .txt
> file and save it, then be able to enter 2 more inputs and save again
> and repeat many times.
>
> so far my code creates a file, writes the first 2 inputs and saves.
> but when i try saving another 2 it just replaces the first. im quite
> confused.
>
> here is what i have
>
>         txtData = (EditText) findViewById(R.id.input1);
>         txtData2 = (EditText) findViewById(R.id.input2);
>
>         btnWriteSDFile = (Button) findViewById(R.id.save);
>         btnWriteSDFile.setOnClickListener(new OnClickListener() {
>
>         public void onClick(View v) {
>                 // write on SD card file data in the text box
>                 try {
>                         File myFile = new 
> File(Environment.getExternalStorageDirectory(),
> "parkrun_barcode.txt");
>                         myFile.createNewFile();
>                         FileOutputStream fOut = new FileOutputStream(myFile);
>                         OutputStreamWriter myOutWriter = new 
> OutputStreamWriter(fOut);
>
>                         myOutWriter.append(txtData.getText() + ", " + 
> txtData2.getText());
>                         myOutWriter.close();
>                         fOut.close();
>                         Toast.makeText(getBaseContext(),
>                                         "Saved'",
>                                         Toast.LENGTH_SHORT).show();
>                 } catch (Exception e) {
>                         Toast.makeText(getBaseContext(), e.getMessage(),
>                                         Toast.LENGTH_SHORT).show();
>                 }
>
>                         txtData.setText("");
>                         txtData2.setText("");
>
>         }
>         });
>
>         }
>
>
>
>
>
>
>
> }

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

2011-10-31 Thread Belvedere Computer Services
"Any thoughts on this topic are welcome"
okay, this is your thread so shield me if i need it

1] some of that hdpxi stuff or whatever it is ( have not got in to
mind yet ) is flat not implemented on some devices by some manufac and
no way to call into the api and even fudge it (detection) as some of
the devices have partial implementation that do not do what one might
expect

2] I got some crude image code going and noticed there are rendering
classes with which one may provide scale hints and so on but going to
a world where world where every size is potentially available should
be a concern of yours and remain a concern

3]  What I suggest is write a .png to .jpeg converter in Java to start
with and write a few files with it and look at them then write several
more images and try to do scaling and anti-alias etc and let that be
your starting point ~ that will tell you more than might think

On Oct 30, 11:56 am, Chris Stewart  wrote:
> I'm starting the design for an app that spans phones and tablets (2.1 -
> 4.0, custom action bar pre-3.0, native action bar 3.0+) and working with a
> designer used to the iPhone.  Going from a world where he worried about
> 3.5" only, to a world where every size is potentially available, is a
> concern of mine.
>
> So I'm wondering, which screen size, resolution, density, do we aim for to
> start with?  Certainly we'll need to work on each of the layout/resource
> variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but
> I'm looking for a reference point to get started.  Should we be focusing on
> the largest for phones, and largest for tablets, with the expectation that
> we can mostly scale down from each of those to the smaller phone and tablet
> sizes/resolutions/densities?
>
> Any thoughts on this topic are welcome.
>
> --
> Chris Stewart

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

2011-10-31 Thread Belvedere Computer Services
// use everywhere for \n as it will convert to whatever platform the
code
// is running on

static final String LINE_ENDING =
System.getProperty("line.separator");
On Oct 28, 4:43 pm, melis  wrote:
> Hello,
> i'm using \n but it does not create a new line? Is there anyone knows
> why?
> mCurrentFile.write("z: "+String.valueOf(value[a * 4 + 3])+" \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


Re: [android-developers] Re: Android fragmentation study

2011-10-31 Thread Belvedere Computer Services
sir, I would like to visit with you about this -- off record please as I 
just nailed the wall really hard in front of several people and I can tell 
you this can get really nasty in a few tenths of a second with powerful 
"players" ready to play hard ball with soft-heads 

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

[android-developers] base class for viewable

2011-10-31 Thread Belvedere Computer Services
as a get-going i am working on a UI ~ should base class for something
that is to display on-screen but have multiple "types" that are to be
displayed be on a base-class in android.widget or in
android.view ?

goal here is to avoid " oh, i wish i had ..." later when some datatype
needs to have some sort of display ~ i can write an entire chain of
intervening classes - what i wish to avoid is failure to be able to
avoid issues described by D.A.G. theory = e.g. re-entrant constructor
and type-resolution for which base-class which breaks simple Depth-
First class type constructor chaining & I can even write "converter"
classes once the Thread Execution path is understood

Ultimate Simplicity is not the goal here ~ Reliable Extensible base
class is - the entire issue field is within UI design "put it up and
use it" goal = resolves on constructor chaining

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

2011-10-31 Thread Belvedere Computer Services
you are getting have a null in a constructor in ActivityThread.java at
line 1138

this is a very commonly overlooked issue in code development that is
missed routinely

somewhere in your code ~ which you may have to trace back manually by
reading sources - there is a new called on an object that has not had
the constructor run before getting there =  is what "Java" names
a constructor .

if the new on a null "  just happens on (one) device ... " we may
be in good shape to file a report somewhere

On Oct 29, 12:43 am, Ankur Avlani  wrote:
> When I try to Install the APK that's when I get this error.  It just happens
> on this device.
>
> On Fri, Oct 28, 2011 at 10:32 PM, Kristopher Micinski <
>
>
>
>
>
>
>
> krismicin...@gmail.com> wrote:
> > what is mCurrentContent in your program?  Typically when you freshly
> > install an app, you might not have set up databases that you expect to
> > have (for example, in development), and so you might get null refs
> > when you try to look up things that just haven't been created.  Are
> > you saying this problem goes away after using the app for a while?  Or
> > that it's just an anomaly of this particular device.
>
> > Kris
>
> > On Sat, Oct 29, 2011 at 12:59 AM, Ankur Avlani 
> > wrote:
> > > Hi,
> > > I have been trying to install the my APK on my device and I get the
> > > following exception:
>
> > > 10-28 16:45:18.150 I/InstallAppProgress(32006): Finished installing
> > > com.wellcore.newyu
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity: onResume
> > > called, mCurrentContent ==nomulti
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > stopActivityThread
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > updateAdapter !
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > emptylist
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity: Refresh
> > > List
> > > 10-28 16:45:18.217 W/FileManagerApp(32056): DirectoryScanner: Scanning
> > > directory /mnt/sdcard/Messaging
> > > 10-28 16:45:18.247 W/PackageManager(32056): Failure retrieving icon
> > > 0x7f020029 in package com.wellcore.newyu
> > > 10-28 16:45:18.247 W/PackageManager(32056):
> > java.lang.NullPointerException
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio 
> > n(ContextImpl.java:2439)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j 
> > ava:2332)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex 
> > tImpl.java:2387)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja 
> > va:287)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.local.DirectoryScanner.run(DirectoryScanner.java:8 
> > 3)
> > > 10-28 16:45:18.267 W/PackageManager(32056): Failure retrieving icon
> > > 0x7f020029 in package com.wellcore.newyu
> > > 10-28 16:45:18.267 W/PackageManager(32056):
> > java.lang.NullPointerException
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio 
> > n(ContextImpl.java:2439)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j 
> > ava:2332)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex 
> > tImpl.java:2387)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja 
> > va:287)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > c

[android-developers] Re: Nullpointer on fresh app install

2011-10-31 Thread Belvedere Computer Services

you have a NullPointerException on an icon that is not there in
ContextImpl

possibly several of them ~ the installer is not the cause of the NPE

On Oct 29, 12:43 am, Ankur Avlani  wrote:
> When I try to Install the APK that's when I get this error.  It just happens
> on this device.
>
> On Fri, Oct 28, 2011 at 10:32 PM, Kristopher Micinski <
>
>
>
>
>
>
>
> krismicin...@gmail.com> wrote:
> > what is mCurrentContent in your program?  Typically when you freshly
> > install an app, you might not have set up databases that you expect to
> > have (for example, in development), and so you might get null refs
> > when you try to look up things that just haven't been created.  Are
> > you saying this problem goes away after using the app for a while?  Or
> > that it's just an anomaly of this particular device.
>
> > Kris
>
> > On Sat, Oct 29, 2011 at 12:59 AM, Ankur Avlani 
> > wrote:
> > > Hi,
> > > I have been trying to install the my APK on my device and I get the
> > > following exception:
>
> > > 10-28 16:45:18.150 I/InstallAppProgress(32006): Finished installing
> > > com.wellcore.newyu
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity: onResume
> > > called, mCurrentContent ==nomulti
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > stopActivityThread
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > updateAdapter !
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > emptylist
> > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity: Refresh
> > > List
> > > 10-28 16:45:18.217 W/FileManagerApp(32056): DirectoryScanner: Scanning
> > > directory /mnt/sdcard/Messaging
> > > 10-28 16:45:18.247 W/PackageManager(32056): Failure retrieving icon
> > > 0x7f020029 in package com.wellcore.newyu
> > > 10-28 16:45:18.247 W/PackageManager(32056):
> > java.lang.NullPointerException
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio 
> > n(ContextImpl.java:2439)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j 
> > ava:2332)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex 
> > tImpl.java:2387)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja 
> > va:287)
> > > 10-28 16:45:18.247 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.local.DirectoryScanner.run(DirectoryScanner.java:8 
> > 3)
> > > 10-28 16:45:18.267 W/PackageManager(32056): Failure retrieving icon
> > > 0x7f020029 in package com.wellcore.newyu
> > > 10-28 16:45:18.267 W/PackageManager(32056):
> > java.lang.NullPointerException
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio 
> > n(ContextImpl.java:2439)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j 
> > ava:2332)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex 
> > tImpl.java:2387)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja 
> > va:287)
> > > 10-28 16:45:18.267 W/PackageManager(32056):   at
>
> > com.motorola.filemanager.local.DirectoryScanner.run(DirectoryScanner.java:8 
> > 3)
> > > 10-28 16:45:18.267 W/FileManagerApp(32056): DirectoryScanner: Sending
> > data
> > > back to main thread
>
> > > Any pointers what this means?  It works on other devices.
>
> > > -Ankur.
>
> > > --
> > > You received this message because you are subscribed to the Google
> 

[android-developers] Re: Android with Python

2011-10-31 Thread Belvedere Computer Services
it's not like you "have to" as there no shortage of people who will
say some particular programming linguistic is "the best" and if you
sucker for it they will drag your mind across two desert and one
mountain range to prove it but fact of matter is Java calls into the
OS better and the XML save-state is by design matching  up with Java =
you can study any and if you have the time should study all but for
get-going I am going to suggest Java and for the reasons raduq stated

On Oct 29, 3:11 pm, raduq  wrote:
> So, in the end for advanced development I will have to use the Java
> SDK. I have started out to make some simple apps with the Java SDK but
> now after being noticed in the e-mail to read about Python I started
> looking up what Python can do for Android apps, but haven't found much
> info. Have you developed apps for Android in Python?
>
> On Oct 29, 10:46 pm, Kristopher Micinski 
> wrote:
>
>
>
>
>
>
>
> > Python isn't usable for real application development, at least at this
> > point.  If you want to write production quality apps, you'll need to
> > use the sdk, in java.
>
> > Apps aren't written solely in Java, but they are not written in C#.
> > The reason apps are written in java is because the vm runs bytecode
> > translated from Java.  You can also use C/++, but it's not an excuse
> > for not learning the Java SDK.
>
> > While it is possible to write some simple things using SLA (python),
> > you won't get too far with it.
>
> > Kris
>
> > On Sat, Oct 29, 2011 at 5:57 AM, raduq  wrote:
> > > What do you guys think about Android applications developed with
> > > Python? I'm going to start a mobiel applications training in a company
> > > and i have received a few hours ago an email that told me to read
> > > about Python before the first class.
>
> > > I am very surprised because I thought Android apps were made only by
> > > using Java and/or C#. Do any of you have developed Android apps with
> > > Python?
>
> > > If yes, please tell me how it is compared to Java, if you have any
> > > experience with Java.. Is it easier, are the Python apps faster than
> > > Java ones? I'm asking this because I would like to know the advantages
> > > and disadvantages of developing apps in Python before I begin the
> > > training.
>
> > > Thanks in advance for your answers!
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, 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: Replacement for java.security.CodeSource

2011-10-31 Thread Belvedere Computer Services
try digging around awhile in java.security.cert

that just first thing i found but sounds like the place to look +but
you will have to read all of webstart to find where x.509 checking or
however webstart does it and this sounds to me very much like will run
like "DisplayMetrics xdpi and ydpi returning incorrect values" as
getting vendors to do all "sanity checks" b4 releasing code (often)
results in deeply buried fail points that do not show up in a test-
harness

On Oct 28, 4:31 pm, jcpalmer  wrote:
> There is a package I found:  android.content.pm.  The overview starts
> with "Contains classes for accessing information about an application
> package, including information about its activities, permissions,
> services, signatures, and providers."
>
> I am looking to verify the signature of a file downloaded into a
> Context's cach directory before:
> - using it in the constructor of DexClassLoader, loader
> -  & running (loader.loadClass("classNm")).newInstance()
>
> Think Java Webstart with a stub & impl version of an Activity.  I want
> the signer of the stub & downloaded impl to match.  Everything works,
> but  I feel I should be adding this check before going to production.
> Am I now looking closer to the right place?
>
> On Oct 28, 4:30 pm, jcpalmer  wrote:
>
>
>
>
>
>
>
> > Noticed in the java.security.CodeSource java doc online that the class
> > overview says:
> > "Legacy security code; do not use. "
>
> > Has something changed?  Is not in my aging disk version of the doc
> > (should upgrade but that is not the point)

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


Re: [android-developers] Current Location MapView in Android

2011-10-31 Thread Mark Murphy
Use DDMS or telnet to supply a location to your emulator. In DDMS,
there is the Location Controls group box in the Emulator Control tab.

On Fri, Oct 28, 2011 at 12:39 AM, Keyur  wrote:
> Hello Friends,
>
> I am working on LBS currently, i would like to get the current
> location of my phone and then i wish to display it using MapView in
> Android. I got so many good tutorials on it but the main problem that
> i an facing is that i am not getting the current location view. I
> found the reason most probably that in emulator GPS functionality is
> not supported directly.
>
>
> So how can i test my code in emulator? Please kindly help me if
> anybody has any ideas about it,
>
>
> Thanks
> Keyur
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Programming Tutorials_ Version 4.0 Available!

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


Re: [android-developers] Re: Unable to get Latitude and Longitude of Address using Geocoder

2011-10-31 Thread Nhlanhla Nhleko
whas your point

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

Re: [android-developers] Re: Force close error while receiving message

2011-10-31 Thread Nhlanhla Nhleko
not yet. but do you think you can help me?

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

[android-developers] What coding languages do I need to know to develop an android app?

2011-10-31 Thread nate
Hi I was wondering what the main programming languages used in andriod
app development are. I know a little c++ and javascript. I'd like to
make an app that uses data from AdGenesis. The app would reward people
for watching targeted ads with points redeemable for ipods and such.
How much would it cost to have an Android developer make the app for
me?

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


Re: [android-developers] Re: Nullpointer on fresh app install

2011-10-31 Thread Ankur Avlani
I opened the apk to verify whether the icon is there or not and it exists
inside the apk.

-Ankur.

On Sat, Oct 29, 2011 at 11:41 AM, Belvedere Computer Services <
fa829...@gmail.com> wrote:

>
> you have a NullPointerException on an icon that is not there in
> ContextImpl
>
> possibly several of them ~ the installer is not the cause of the NPE
>
> On Oct 29, 12:43 am, Ankur Avlani  wrote:
> > When I try to Install the APK that's when I get this error.  It just
> happens
> > on this device.
> >
> > On Fri, Oct 28, 2011 at 10:32 PM, Kristopher Micinski <
> >
> >
> >
> >
> >
> >
> >
> > krismicin...@gmail.com> wrote:
> > > what is mCurrentContent in your program?  Typically when you freshly
> > > install an app, you might not have set up databases that you expect to
> > > have (for example, in development), and so you might get null refs
> > > when you try to look up things that just haven't been created.  Are
> > > you saying this problem goes away after using the app for a while?  Or
> > > that it's just an anomaly of this particular device.
> >
> > > Kris
> >
> > > On Sat, Oct 29, 2011 at 12:59 AM, Ankur Avlani 
> > > wrote:
> > > > Hi,
> > > > I have been trying to install the my APK on my device and I get the
> > > > following exception:
> >
> > > > 10-28 16:45:18.150 I/InstallAppProgress(32006): Finished installing
> > > > com.wellcore.newyu
> > > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> onResume
> > > > called, mCurrentContent ==nomulti
> > > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > > stopActivityThread
> > > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > > updateAdapter !
> > > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> > > emptylist
> > > > 10-28 16:45:18.207 W/FileManagerApp(32056): FileManagerActivity:
> Refresh
> > > > List
> > > > 10-28 16:45:18.217 W/FileManagerApp(32056): DirectoryScanner:
> Scanning
> > > > directory /mnt/sdcard/Messaging
> > > > 10-28 16:45:18.247 W/PackageManager(32056): Failure retrieving icon
> > > > 0x7f020029 in package com.wellcore.newyu
> > > > 10-28 16:45:18.247 W/PackageManager(32056):
> > > java.lang.NullPointerException
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio
> n(ContextImpl.java:2439)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j
> ava:2332)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> > > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex
> tImpl.java:2387)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> >
> > >
> com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja
> va:287)
> > > > 10-28 16:45:18.247 W/PackageManager(32056):   at
> >
> > >
> com.motorola.filemanager.local.DirectoryScanner.run(DirectoryScanner.java:8
> 3)
> > > > 10-28 16:45:18.267 W/PackageManager(32056): Failure retrieving icon
> > > > 0x7f020029 in package com.wellcore.newyu
> > > > 10-28 16:45:18.267 W/PackageManager(32056):
> > > java.lang.NullPointerException
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread$ResourcesKey.(ActivityThread.java:1138)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1207)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > >
> android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1266)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getResourcesForApplicatio
> n(ContextImpl.java:2439)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getDrawable(ContextImpl.j
> ava:2332)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> > > > android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:140)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> >
> > >
> android.app.ContextImpl$ApplicationPackageManager.getApplicationIcon(Contex
> tImpl.java:2387)
> > > > 10-28 16:45:18.267 W/PackageManager(32056):   at
> >
> > >
> com.motorola.filemanager.utils.IconifiedText.buildIconItem(IconifiedText.ja
> va:287)
> > > > 10-28 16:45:18.267

Re: [android-developers] ClassNotFoundException while adding external jars on Eclipse

2011-10-31 Thread Mark Murphy
1. Create a libs/ directory in the root of your project (i.e., a peer
of src/, res/, etc.)

2. Copy the JAR into libs/

3. In Eclipse, right-click over the project, choose Build Path >
Configure Build Path from the context menu, click on the Libraries
tab, click the Add JAR button, and choose your JAR from the tree
dialog

This recipe has worked reliably for me. As a bonus, it also sets
things up nicely for command-line builds, should you need that in the
future.

On Fri, Oct 28, 2011 at 2:16 PM, Mourasman  wrote:
> Hey guys,
>
> I'm getting a ClassNotFoundException for more than 3 hours now...
>
> I'm trying to add a single jar (It's the NativeDriver server.jar) to
> my Android project and I've already ran out of possibilities I've
> tried dozens of different things, some of those which didn't even make
> much sense, but I'm getting desperate anyway, so...
>
> Anyway, I've tried the simple "Add External jar" to the build path,
> tried also checking the "Export" checkbox, tried importing the jar to
> the root folder of the project and doing "Add Jar", tried adding the
> jar to the "libs" folder, "assets" folder... Really, I think I tried
> all of them, and still no good!
>
> Does anyone have any idea of why this is happening?
>
> Thanks,
> Mourasman
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Programming Tutorials_ Version 4.0 Available!

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


Re: [android-developers] how to use intent??

2011-10-31 Thread Omollo Ateng
Intents are used explicitly or implicitly an example of explicit intent is;
This is an intent to make a call.

Uri call =Uri.parse("tell:53423232");
Intent myintent =newj Intent(Intent.CALL_PHONE, call);
StartActivity(myintent);
Then create permission for making a phone call in the android manifest file
in your android project.

On Mon, Oct 31, 2011 at 4:09 PM, Rohan Tilekar wrote:

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




-- 
Be good to not only people but also machines

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

[android-developers] Starting of a service

2011-10-31 Thread I4004
Hello to everybody!

I have a question concerning starting services: is there a way of starting 
service on application starting ? I know this could easily be done via 
code, but the problem is that I am developing separate UI component, that 
is not aware about application it is used in. Ofcource I could start the 
service when my component is being created by the host app, but I would 
like to start my service independently of that.

Thanks in advance.

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

[android-developers] Will Ice Cream Sandwich support ARABIC language natively?

2011-10-31 Thread Ahmed AlMaskari
Hello, Aslam Aliekm ,
Android devices are developing over the last to years. However,
android does not support Arabic language fully and natively! What is
so different between Arabic and any other languages, which are
supported in android?  So will the new software Ice Cream Sandwich
support Arabic language?

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

2011-10-31 Thread DH
Hi all,

I have been researching this topic for the past couple days and have
not found a solution yet, also on stackoverflow
http://stackoverflow.com/questions/7919681/how-to-determine-fragment-restored-from-backstack
so here goes:

How do you determine a fragment is being restored from the backstack?
I'm using the compatibility library and a ListFragment inside a
FragmentActivity. When an item inside ListFragment is selected, a new
Fragment is started to replace the ListFragment which is added to the
backstack.

Now when the ListFragment is loaded, it will load data to populate the
list.
It does this inside onActivityCreated, load if savedInstanceState is
null, otherwise restore the saved data to adapter.

What the problem is when the ListFragment is restored from the
backstack, savedInstanceState is always null, and onSaveInstanceState
was never called when adding to backstack.

So how do you find out a fragment is being restored from backstack?
What happens when a fragment is put into the backstack, does it retain
its data while its views are destroyed?



Also I noticed this says
http://developer.android.com/reference/android/app/Fragment.html#onSaveInstanceState(android.os.Bundle)

Note however: this method may be called at any time before
onDestroy(). There are many situations where a fragment may be mostly
torn down (such as when placed on the back stack with no UI showing),
but its state will not be saved until its owning activity actually
needs to save its state.

So onSaveInstanceState is a no go here...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Best practices for bundling a custom ringtone/notification sound with your app?

2011-10-31 Thread Batodo


On 10月28日, 下午11时00分, Russell Stewart  wrote:
> I have been developing for Android for quite a while now, but for the first
> time I am going to be bundling a few custom notification sounds with my
> app. I am curious if there is any standard practice for making those sounds
> available to the user?
>
> I currently have the mp3 files in in the "assets" directory, under a new
> directory called "sounds". I know that Android normally stores extra
> ringtones on the SD card in the path media/audio/ringtones. Should I just
> extract the files there? Or is there somewhere else that is a better choice?


You can through iterator the SD card find all of the files endwith mp3
and 3gp.
just like:

String SDPath = Environment.getExternalStorageDirectory()
+File.separator;
getFiles(SDPath);

private void getFiles(String url) {
File[] files =  new File(url).listFiles();
for(int i=0;ihttp://groups.google.com/group/android-developers?hl=en


[android-developers] updates.

2011-10-31 Thread R. J.
yes i realise this is not the correct place, but this needs to be
discussed.  there are so many android users who are so pissed off with
the inability to get timely updates to their phones.  I'd like to
suggest that android actually look at providing updates to all phones
to people who do not want the offical phone makers update.  We have
the option to root our phones and use a community built rom, but i
worry about these being spyware free.  Please android consider giving
us the ability to simply bypass offical updates from our phone makers
and get it directly from you.  Just take a look at Gingerbread, people
are being told that their 2.2 phone wont be updated to 2.3 until after
xmas.  Look how long 2.3 has been around.  This is insane and needs
answering from google with giving people the ability to simply update
from google.  we've had enough of the phone companies, if something
isn't done soon it will be a boost to apple phones.

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

2011-10-31 Thread DoubleCheese
How do debug my android project in eclipse using Debug As > Android
Project in the new SDK r14-15 when the generated apk filename is
appname-debug.apk, but when I run this it looks for the appname.apk?

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


[android-developers] Emulate MMS

2011-10-31 Thread Estela
Hey,

On the latest version the emulator of MMS on between two instances of
the emulator is still not possible?

thank you,

Stella.

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


[android-developers] developing android applications using netbeans

2011-10-31 Thread akash
I am new to android and i have a problem.  When i create a new
project, i am supposed to build it so that it can remove and error by
preloading a certain package i presume.  I have tried building it but
netbeans throws an error that the build has failed.  What am I doing
wrong? Some one please help

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


[android-developers] How to call FragmentTransaction method from another Activity?

2011-10-31 Thread redsky
I have FragmentActivity with fragment defined in XML file. How to make
FragmentTransaction method from ANOTHER Activity that is in head of
the stack at this moment?

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] Intensity of vibration in Xperia arc

2011-10-31 Thread durer jatri
Is it possible to change the intensity of vibration intensity in
Xperia Arc? How?
I need to to change vibration intensity for developing an application.

thanks in advance!
ab

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


[android-developers] Refer to TTS Object inside inner method

2011-10-31 Thread Carlos Pereira
Well... I am trying to create an application using the TTS Engine. 
  
I can already make it, work, no problem. However I need my buttons to be 
dinamic, they will come from a database.

**So far you guys have helped me a lot, since now I can do it thanks to the 
tips I got from you guys.**

**Well.. now I am stuck again.**

Every new button that I create I attach an OnClickListener so it can start 
the TTS and speak something. 

However it's an inner method, so, when I try to run the code below, it 
gives me a NullPointerException when it tries to "speak" using the TTS. I 
know the TTS object is out of context, so, **How can I solve this?**

Below the code. It's a little big since I wanted to include everything:

PLEASE JUMP TO THE "HERE IS MY PROBLEM!!!" comment so you guys can see 
exactly where my problem is. I know where it is, but I don't know how to 
solve it =(

Any help is appreciatted! =)

public class LivoxTesteActivity extends Activity implements 
OnInitListener{
/** Called when the activity is first created. */
private int MY_DATA_CHECK_CODE = 0;
public TextToSpeech tts;


@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE); 
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN);  
setContentView(R.layout.main);


LinearLayout lgeral = new LinearLayout (this);
lgeral.setOrientation(LinearLayout.VERTICAL);
lgeral.setLayoutParams(new 
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 
LayoutParams.FILL_PARENT, 1f));

String array[][] = {{"Comer","eat", "Eu quero comer", "1"},
{"Abraço","hug", "Eu quero um abraço", "2"},
{"Assustado","afraid", "Eu estou com medo", "3"},
{"Beber","drink", "Eu quero beber", "4"}};
int x = array.length;

int qtdeLinhas = 2;
for (int j = 0; j < qtdeLinhas; j++) {

LinearLayout l1 = new LinearLayout (this);
l1.setOrientation(LinearLayout.HORIZONTAL);
l1.setLayoutParams(new 
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 
LayoutParams.FILL_PARENT, 1f));

FrameLayout fl;
for (int i = 0; i < array.length; i++) {

fl = 
(FrameLayout)LayoutInflater.from(getBaseContext()).inflate(R.layout.framelayoutstyle,
 
l1, false);

TextView textoEscrito;
textoEscrito = 
(TextView)LayoutInflater.from(getBaseContext()).inflate(R.layout.textviewstyle, 
fl, false);

textoEscrito.setText(array[i][0]);

final String texto = 
textoEscrito.getText().toString();
final String textoFalar = array[i][2];

ImageButton btn;
btn = 
(ImageButton)LayoutInflater.from(getBaseContext()).inflate(R.layout.imagebuttonstyle,
 
fl, false);


btn.setImageResource(this.getResources().getIdentifier("drawable/" + 
array[i][1], null, this.getPackageName()));


btn.setOnClickListener(new Button.OnClickListener(){
public void onClick (View v){


Toast.makeText(getBaseContext(), texto, 
Toast.LENGTH_SHORT).show();
//***
//HERE IS MY PROBLEM!!!
//***
tts.speak(txtFl, TextToSpeech.QUEUE_ADD, null);
//***
//WHEN I TRY TO RUN THE ABOVE IT GIVES A 
NULLPOINTEREXCEPTION!!!
//***



}

});


fl.addView(btn);
fl.addView(textoEscrito);

l1.addView(fl);
}

lgeral.addView(l1);
}

setContentView(lgeral);

}


protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
if (requestCode == MY_DATA_CHECK_CODE) {
if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {
// success, create the TTS instance
tts = new TextToSpeech(this, this);
}
else {
// missing data, install it
Intent installIntent = new Intent();

installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
startActivity(installIntent);
}
}
 
}
@Override
public void on

[android-developers] RemoteViews in a library?(Show notification in a library)

2011-10-31 Thread eric
I want to show  notification with a progressbar, but the project will
be release as a library and can not package the layout file, 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] Android SDK r15 and ADT 15 problems running the generated -debug.apk in eclipse

2011-10-31 Thread DoubleCheese
With the update to SDK r14-15, the generated apk files for debug are
now in the format appname-debug.apk. When I try to run this in eclipse
(debug config) it errors saying that it cannot find the file
appname.apk.


Is there a way to make it look for the appname-debug.apk instead so I
can run them using the debug config in eclipse?

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


[android-developers] Phone messages

2011-10-31 Thread Cjp
I want to know if it's possible to get a recorded phone message from
my droid x to my mac computer?

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


[android-developers] Gmail sync not working on D2 after gingerbread upgrade -- workaround fix known

2011-10-31 Thread Evan Cooper
After installing the OTA Gingerbread update on my Droid 2, my gmail 
wouldn't sync.  Looking online, it's clearly a common problem.  There are a 
lot of odd solutions including wiping out data, switching setting on and 
off in between restarts.  

It turns out that the fix is just enabling Auto Sync, which isn't an actual 
option in the Gmail or system settings menus.  So to fix it, users have to 
add the Power Control Widget and enable sync on that.  I just wanted to 
suggest that in the next software update you add the Auto Sync option back 
into the data connection settings so that this issue would be resolved.

http://forums.androidcentral.com/sprint-photon/110892-gmail-does-not-sync.html

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

  1   2   3   >