Re: [android-developers] two questions from a newbie

2011-06-09 Thread Knutsford Software


- Original Message - 
From: "Mark Murphy" 

To: 
Sent: Thursday, June 09, 2011 1:38 AM
Subject: Re: [android-developers] two questions from a newbie


On Wed, Jun 8, 2011 at 8:30 PM, Knutsford Software
 wrote:

Sorry - what do you mean by stuff the form contents into the Bundle


http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState





Thanks





For part two I meant if you have been browsng and then it loses focus then
you resume it you I presume can't pick up the url you had browsed to - you
have to start from scratch?


"You" were not browsing -- the user was. "You" do not have a way to
know where the user went in a browser, for obvious privacy reasons. If
you need that level of control, embed a WebView into an activity.

--
That's ok. I though so but though I had better check incase I was wrong





Thanks 


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


[android-developers] Re: Android LifeCycle and Singleton Instances

2011-06-09 Thread gjs
Hi,

In the same reference just prior to that quoted is a similar example
of eager initialisation also.

Just pointing out that it can be done without explicit locks in some
circumstances as well, but synchronized blocks or methods is probably
more commonly/historically used when there is not much actual
contention from multiple threads.

I think Diane's example is, as usual, best for typical use.

Regards

On Jun 9, 11:28 am, Chris  wrote:
> What you quoted is quintessential initialization on-demand holder.  And its
> supposed to be more like _eager_ init, not lazy init.

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

2011-06-09 Thread ThaMe90
What do you use to hide/show the LinearLayout?
Could you show the onTouch listener for the SurfaceView?

On 9 jun, 06:29, grace  wrote:
> Hi,
>
> I have my layout like this
> 
>
>        
>            
>         
>
>         
>             
>             
>         
>
> 
>
> I have registered onTouch Listeners for all the views.The LinearLayout
> is made invisible at first(default).
> Now when i touch the surface view the LinearLayout should be made
> visible.
> but somehow its not visible after ontouch also.
>
> When the LinearLayout is visible at first(default),then i can make it
> invisible and visible from the ontouch events.
>
> Can anybody help me on this.Am i missing something.
>
> thanks in advance,
> Grace.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Display.getRotation() incompatible with accelerometer data

2011-06-09 Thread Marcin Mikosik
Yes, it has android market preinstalled. It also has google maps, youtube,
gmail apps preinstalled.
The package box it was sold in has android logo on every side.

I accidentally skimmed through "Android 2.2 Compatibility Definition" today
and found out that each compatible device should provide GPS receiver - this
device does not have one. I installed
https://market.android.com/details?id=com.chartcross.gpstest&feature=search_result
that
works correctly on my Nexus-One but fails on go-clever s73 tab with
force-close, message from logcat says:
Caused by: java.lang.IllegalArgumentException: provider=gps
E/AndroidRuntime( 2657): at
android.os.Parcel.readException(Parcel.java:1251)
..


I guess we are reaching conclusion that this device is not android
compatible device which brings a few important questions:
- How an ordinary user can make sure that a device she/he is going to buy is
actually 'android compatible device'? Is it some kind of android logo on
package box or some specific textual declaration from manufacturer? So far I
thought that presence of android market is enough as one of its
prerequisites is to pass CCD compatibility tests.
- As this device contains android market but fails to implement android API
it will inevitably cause many of its users to rate low many applications
that won't work correctly on such devices. How is google protecting
developers/users from such situations?

thanks
marcin


On Wed, Jun 8, 2011 at 9:36 AM, Dianne Hackborn  wrote:

> Are you sure this is an actual Android compatible device?  Does it have
> Market on it (and thus compatible per the CDD)?  If not, there is no telling
> what kinds of incompatibilities there are.
>
>
> On Tue, Jun 7, 2011 at 10:44 PM, Marcin Mikosik 
> wrote:
>
>> *
>> GoClever tab s73 *
>> http://www.goclever.com/en/tablet/360-GOCLEVER-TAB-S73-.html
>> Model number: MID_Serails
>> Android version 2.2
>> Kernel version: 2.6.32.9 MID Serials #1518 Wed Apr 6 16:09:52 CST 2011
>> Build Number: MID Serilas 2.2 FRF91 20110402.171535
>>
>>
>> On Wed, Jun 8, 2011 at 5:10 AM, Dianne Hackborn wrote:
>>
>>> Which device is this?
>>>
>>> On Tue, Jun 7, 2011 at 1:32 AM, Marcin Mikosik >> > wrote:
>>>
 Hi,

 I'm experimenting with newly bought android tablet and found out that
 android API it provides does not comply with android API
 documentation/specification.
 Specifically Display.getRotation() and Accelerometer readings returns
 values that contradicts each other.

 For example:
 running application that has android:screenOrientation="landscape" and
 quering Display.getRotation() returns Surface.ROTATION_0 which means this
 tablet is "landscape-default device" as described in
 http://android-developers.blogspot.com/2010/09/one-screen-turn-deserves-another.html

 Still, when running the same application and holding device in landscape
 orientation in front of me, I get accelerometer reading that says something
 around: X=10, Y=0 which is clearly wrong because accelerometer coordinate
 system should be aligned with device default orientation (landscape in this
 case). According to blogpost mentioned above - when I keep device in its
 default-orientation (which is landscape in this case) I should get
 accelerometer reading X=0, Y=10.

 Can anybody suggest what's wrong here?
 Either my device is broken or its software has a bug or I misunderstood
 the API semantics (?)

 thanks
 Marcin

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>
>>>
>>> --
>>> Dianne Hackborn
>>> Android framework engineer
>>> hack...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time to
>>> provide private support, and so won't reply to such e-mails.  All such
>>> questions should be posted on public forums, where I and others can see and
>>> answer them.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more option

[android-developers] Re: Replicating the results of the deprecated Sensor.TYPE_ORIENTATION

2011-06-09 Thread Chad Ata
woops..
figured it out.
my coordinate re-mappings (remapCoordinateSystem()) are messed.

The documentation is really helpful - but I still managed to confuse which
coordinate system I'm supposed to map to.

Thanks anyway!

On Wed, Jun 8, 2011 at 7:31 PM, Sheado  wrote:

> Hi All,
>
> I've been using SensorManager with Sensor.TYPE_ORIENTATION for its
> pitch/roll values. I want to update the code to support multiple
> screen orientations (and while I'm at it get rid of some deprecated
> code).
>
> My current solution is below. The main problem with it, is that if I
> set the phone down on the table, the roll does not go to 0. With some
> phones, it stays were it last was before being set down. With others,
> it fluctuates (noticeably) around some value.
>
> I've tried looking for the deprecated source in the Android git
> source, but could not find exactly where things were being stabilized.
> Any help would be appreciated! Maybe somebody at Google could post the
> deprecated code?
> (please excuse the messy/unoptimized code below:)
>public void onSensorChanged( SensorEvent event )
>{
>switch( event.sensor.getType() )
>{
>case Sensor.TYPE_ACCELEROMETER:
>if( gravity == null )
>gravity = event.values.clone();
>// would it help to calculate alpha
> every time?
>final float alpha = 0.8f;
>gravity[0] = alpha * gravity[0] + (1 -
> alpha) * event.values[0];
>gravity[1] = alpha * gravity[1] + (1 -
> alpha) * event.values[1];
>gravity[2] = alpha * gravity[2] + (1 -
> alpha) * event.values[2];
>boolean b = SensorManager.getRotationMatrix(
> R, null, gravity,
> geomagnetic );
>if( b )
>{
>switch( rotation )
>{
>case Surface.ROTATION_0:
>case Surface.ROTATION_180:
>
>  SensorManager.remapCoordinateSystem( R,
> SensorManager.AXIS_MINUS_X, SensorManager.AXIS_Z, outR );
>break;
>case Surface.ROTATION_90:
>case Surface.ROTATION_270:
>
>  SensorManager.remapCoordinateSystem( R, SensorManager.AXIS_Z,
> SensorManager.AXIS_X, outR );
>break;
>}
>SensorManager.getOrientation( outR,
> values );
>roll = (float) Math.toDegrees(
> values[2] );
>}
>break;
>case Sensor.TYPE_MAGNETIC_FIELD:
>geomagnetic = event.values.clone();
>break;
>}
> }
>
> Thanks!
> -Sheado

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

2011-06-09 Thread String
Mind posting your corrected code for others who are trying to do something 
similar?

String

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

Re: [android-developers] Re: Replicating the results of the deprecated Sensor.TYPE_ORIENTATION

2011-06-09 Thread Chad Ata
hi there,

Sure.. I'm still cleaning up and fixing an issue with the landscape devices.
Here's where I am right now - landscape seems to work like it used to with
TYPE_ORIENTATION.

public void onSensorChanged( SensorEvent event )
{
switch( event.sensor.getType() )
{
case Sensor.TYPE_ACCELEROMETER:
gravity = event.values.clone();// TODO -  optimize
boolean b = SensorManager.getRotationMatrix( R, null,
gravity, geomagnetic );
if( b )
{
switch( rotation )
{
case Surface.ROTATION_0://TODO
case Surface.ROTATION_180:
SensorManager.remapCoordinateSystem( R,
SensorManager.AXIS_MINUS_X, SensorManager.AXIS_Y, outR );
break;
case Surface.ROTATION_90://TODO
case Surface.ROTATION_270:
// TODO
break;
}
SensorManager.getOrientation( outR, values );
pitch = (float) Math.toDegrees( values[1] );
}
break;
case Sensor.TYPE_MAGNETIC_FIELD:
geomagnetic = event.values.clone();
break;
}
}


warning: that code's not optimized.
hope it helps though.


On Thu, Jun 9, 2011 at 2:19 AM, String wrote:

> Mind posting your corrected code for others who are trying to do something
> similar?
>
> String
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Svar: How to make apk from .java, png files extracted from jar

2011-06-09 Thread ericd
Check this: 

http://geosoft.no/development/android.html

Eric

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

[android-developers] Clickable inflated Gallery Item, but not scrollable when touching on the Gallery items

2011-06-09 Thread Mingchung
Hi, all

I have a gallery, and its items are dynamically show-up by inflating a
layout xml file


I need the views inside (say buttons) that layout xml file are
clickable...
Here is my xml file






when I inflate the layout at the adapter, the gallery can't not
scrolled when touching on the gallery item.  I think that is because
the clicking event was issued to only the inflated gallery-item, but
didn't bypass to the gallery... (when I remove the "clickable"
attribute, the gallery will scroll fine)

I think my problem could be solved in 2 ways.
1. at the gallery-item onClick event handler, do something to bypass
the clicking event to gallery
2. at the gallery itself, i could implement 'onItemClick' method. But
how to get the coordinate?

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


[android-developers] Encoding image into Base64

2011-06-09 Thread perumal316
Hi All,

I need to do a HTTPPost of a Jpeg and a Jpeg2000 image to a backend.
For Jpeg I converted it to byte array and did a Base64 encoding using
the Base64 class which is available in Android.

See:
http://developer.android.com/reference/android/util/Base64.html

Is this the correct way to do? Because I am not receiving any image in
the backend.

This is for jpeg. Is I do the same steps using Jpeg2000 my application
crashed.

How do I do a HTTPPost of a Jpeg2000 image? Is encoding of image to
Base64 a must? Is there any other way?

Thanks In Advance,
Perumal

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


[android-developers] FLAG_ACTIVITY_CLEAR_TOP VS "singleTask" launchMode

2011-06-09 Thread Mansoor
Hi all,

I am bit confused after reading documentation about
FLAG_ACTIVITY_CLEAR_TOP and  "singleTask" launchMode

In documentation it given as :
{
FLAG_ACTIVITY_CLEAR_TOP
If the activity being started is already running in the current
task, then instead of launching a new instance of that activity, all
of the other activities on top of it are destroyed and this intent is
delivered to the resumed instance of the activity (now on top),
through onNewIntent()).

There is no value for the launchMode attribute that produces this
behavior.

}

But i  experimented  FLAG_ACTIVITY_CLEAR_TOP behaviour using
"singleTask" launchMode and i got exactly same . I created 3 activies
Activity_A,Activity_B and Activity_C. In manifest file i set
android:launchMode="singleTask" for activity B. Each activity have a
button to launch next activity ie Activity_A >launches Activity_B
>launches Activity_C >launches Activity_B.

so this is the order in which i launch activity A>B>C>B.

In case of FLAG_ACTIVITY_CLEAR_TOP:
I did A>B>C then as per documentation i started Activity_B from
Activity C using intent with flag FLAG_ACTIVITY_CLEAR_TOP so Activity
C is destroyed and back stack contains A>B .

In case of "singleTask" launchMode in Activity_B:

i followed same procedure as A>B>C>B above instead of
FLAG_ACTIVITY_CLEAR_TOP flag i used singletask launch mode . finally
the back stack contains A>B .

So what is difference between both ?In documentation it says   "There
is no value for the launchMode attribute that produces this behavior
as of FLAG_ACTIVITY_CLEAR_TOP" but I got same behaviour with
"singleTask" launchMode ..

Please clear my understanding 


Thanks and regards
Mansoor V.M


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


Re: [android-developers] Is there any way I can start activity running in different process using Instrumentation?

2011-06-09 Thread Mark Murphy
On Wed, Jun 8, 2011 at 10:11 PM, Amit Dixit  wrote:
> My application uses multiple activities which runs in different process.

Why? This wastes RAM, CPU, and battery.

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

Android App Developer Books: http://commonsware.com/books

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


[android-developers] Re: Unable to use the surface object from application side in the native side.

2011-06-09 Thread Sandeep Patil
Dear FrNd,

As an alternative, I am now using the surface object and getting its
"sp" by calling surface->getISurface(), I have managed to
get the iSurface object also.
Now I just want to register buffers to this surface and try posting
the buffer. So this what i am doing for it.




if(iSurface.get())
{
sp mFrameheap = new  
MemoryHeapBase(OutputFrameSize
* MAX_FRAME_BUFFERS);
 if (mFrameheap->heapID() < 0)
 {
  return RetVal;
  }

/* create frame buffer heap and register with 
surfaceflinger */
   ISurface::BufferHeap
buffers( Width,Height,Width,Height,PIXEL_FORMAT_RGB_565,mFrameheap);

   if (isurface->registerBuffers(buffers) <
0 ) //** The Execution is Stopping here

   {
LOGE("Cannot register frame buffer!");
mFrameheap.clear();
return RetVal;
   }

LOGE("After RegisterBuffers");
}



The problem now I am facing is that the execution is stopping at the
call of register buffers. At statement, "isurface-
>registerBuffers(buffers)".

Can u help me out to solve this.


Thanks and Regards
Sandeep Patil


On Jun 9, 12:37 am, Dianne Hackborn  wrote:
> sp<> and Surface are native APIs.  This code will break on various devices.
>
> The only supported way to do this is with the new extended native APIs in
> 2.3.
>
> On Tue, Jun 7, 2011 at 7:06 AM, Sandeep Patil
> wrote:
>
>
>
>
>
>
>
>
>
> > Dear frndz,
>
> > I am facing a problem of being not able to use the surface object
> > obtained from an activity class in the native side. Here is what i am
> > doing,
>
> > * Getting a SurfaceView object with the help of findviewbyId()
> > function.
> > * Then obtaining its SurfaceHolder by calling getHolder() function of
> > the surfaceView class.
> > * Then adding a callback to the holder, so as to know when the surface
> > is being created and destroyed.
> > * Once i get the callback of onSurfaceCreated(), i am getting the
> > surface object by getSurface() of the SurfaceHolder class and setting
> > it to a (Surface mSUrface = null ) field in the Activity class.
> > * From onSurfaceCreated() itself, I am calling a native function that
> > tries to access the mSurface object and casts it to sp.
>
> > Here is my native function,
>
> > JNIEXPORT void JNICALL setSurface(JNIEnv* env,jobject thiz)
> > {
> >    jfieldID    surfacefieldID;
> >    jfieldID    surface_native;
> >    Surface* p;
> >    jclass clazz;
>
> >    clazz = env->FindClass("com/example/SMFMediaPlayer/
> > SecondActivity");
> >    if (clazz == NULL) {
> >        LOGE("Can't find com/example/SMFMediaPlayer/SecondActivity
> > \n");
> >    }
>
> >    surfacefieldID = env->GetFieldID(clazz, "mSurface", "Landroid/view/
> > Surface;");
> >    if (surfacefieldID == NULL) {
> >        LOGE("Can't find MediaPlayer.mSurface\n");
> >    }
>
> >    jclass surface = env->FindClass("android/view/Surface");
> >    if (surface == NULL) {
> >        LOGE("Can't find android/view/Surface\n");
> >    }
>
> >    surface_native = env->GetFieldID(surface, "mSurface", "I");
>
> >    if (surface_native == NULL) {
> >        LOGE("Can't find Surface fields\n");
> >    }
>
> >    jobject surfaceobj = env->GetObjectField(thiz,surfacefieldID);
> >    if (surfaceobj != NULL)
> >    {
> >          p = (Surface*) env->GetIntField(surfaceobj, surface_native);
>
> >         if(p->isValid())
> >         {
> >                const sp& native_Surface = sp(p);
> >         }
> >    }
> >   .
> >  //There some more code down here
>
> > }
>
> > The problem here is that the execution is stopping at the
> > statement,"const sp& native_Surface = sp(p);".
>
> > I am not getting what is the mistake.
>
> > Actually i am using this code create my own media player. So i request
> > to let me know my mistake or an alternative way to access the surface
> > object. And also i need the SurfaceComposerClient object corresponding
> > the surface object.
>
> > SOmebody help me out.
>
> > Thanks You
> > Sandeep Patil
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
You received this message because you are subscribe

Re: [android-developers] Delete a variable

2011-06-09 Thread New Developer
Thanks to both
but that is another side of my question,  when do the variables go out of scope 
?

thanks again

On Jun 9, 2011, at 2:47 AM, Simon Platten wrote:

> Java may not garbage collect until resources are low and it knows that an 
> object is no longer in use.  Make sure that you assign your object to null or 
> ensure it goes out of scope then java wilĺ treat it as no longer referenced.
> Regards,Sy
> 
> 
>> On 9 Jun 2011 04:11, "TreKing"  wrote:
>> 
>> On Wed, Jun 8, 2011 at 9:05 PM, New Developer  wrote:
>> >
>> > Bitmap  pictBM = Bitma...
>> 
>> Don't hard code the SD card path - that's not portable.
>> 
>>  
>> >
>> > In c++ there is  .free()  or  .destroy()  call
>> > What do you use in android ?
>> 
>> 
>> Start here: 
>> http://developer.android.com/reference/android/graphics/Bitmap.html#recycle()
>> 
>> -
>> TreKing - Chicago transit tracking app for Android-powered devices
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers"...
>> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON

2011-06-09 Thread souissi haythem
Hi

i need to use the two broadcast in the title. The problem is that to
use it, we require API version8 (android 2.2). And my program need to
work in Android 2.1

I wanna know if there is other tools in android 2.1 that it can do the
work of detecting screen on or off.
I have found isScreenOn() which test if the screen is on or off, but
it is not why i need. I need to detect automatic when the screen is on
so i lunch my service .

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] BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON

2011-06-09 Thread Kostya Vasilyev
According to the documentation, both are "since API level 1".

-- Kostya

2011/6/9 souissi haythem 

> Hi
>
> i need to use the two broadcast in the title. The problem is that to
> use it, we require API version8 (android 2.2). And my program need to
> work in Android 2.1
>
> I wanna know if there is other tools in android 2.1 that it can do the
> work of detecting screen on or off.
> I have found isScreenOn() which test if the screen is on or off, but
> it is not why i need. I need to detect automatic when the screen is on
> so i lunch my service .
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Delete a variable

2011-06-09 Thread DanH
The usual problem on Android and other phones is not the program heap
but rather the heap (often separate) used for images.  In particular
on Android this is a problem that requires some special programming
techniques if you're using a lot of images.

In Java, local variables "go out of scope" when you return from the
method where they're declared.  However, with some GC schemes there's
a slight chance that a variable could have "life after death" when a
new method is called that uses the same stack space, but the specific
location of the variable isn't overwritten.  (I don't think this is a
problem on Android, as it has a "precise" garbage collector.)

On Jun 9, 6:04 am, New Developer  wrote:
> Thanks to both
> but that is another side of my question,  when do the variables go out of 
> scope ?
>
> thanks again
>
> On Jun 9, 2011, at 2:47 AM, Simon Platten wrote:
>
> > Java may not garbage collect until resources are low and it knows that an 
> > object is no longer in use.  Make sure that you assign your object to null 
> > or ensure it goes out of scope then java wilĺ treat it as no longer 
> > referenced.
> > Regards,Sy
>
> >> On 9 Jun 2011 04:11, "TreKing"  wrote:
>
> >> On Wed, Jun 8, 2011 at 9:05 PM, New Developer  wrote:
>
> >> > Bitmap  pictBM = Bitma...
>
> >> Don't hard code the SD card path - that's not portable.
>
> >> > In c++ there is  .free()  or  .destroy()  call
> >> > What do you use in android ?
>
> >> Start 
> >> here:http://developer.android.com/reference/android/graphics/Bitmap.html#r...()
>
> >> -
> >> TreKing - Chicago transit tracking app for Android-powered devices
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers"...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] How to get manifest values?

2011-06-09 Thread Ashok Jeevan
Hi

I need to get MIME type values from the manifest file in an Activity class.

Is there any way to access values from the manifest?


Ashok Jeevan
+91 9895401278

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

2011-06-09 Thread souissi haythem
so why i got this message??

[2011-06-09 14:06:19 - Screen] ERROR: Application requires API version
8. Device API version is 7 (Android 2.1-update1).
[2011-06-09 14:06:19 - Screen] Launch canceled!

And when i try this in an AVD 2.2, it work??




On Jun 9, 1:34 pm, Kostya Vasilyev  wrote:
> According to the documentation, both are "since API level 1".
>
> -- Kostya
>
> 2011/6/9 souissi haythem 
>
> > Hi
>
> > i need to use the two broadcast in the title. The problem is that to
> > use it, we require API version8 (android 2.2). And my program need to
> > work in Android 2.1
>
> > I wanna know if there is other tools in android 2.1 that it can do the
> > work of detecting screen on or off.
> > I have found isScreenOn() which test if the screen is on or off, but
> > it is not why i need. I need to detect automatic when the screen is on
> > so i lunch my service .
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON

2011-06-09 Thread Mark Murphy
On Thu, Jun 9, 2011 at 8:07 AM, souissi haythem  wrote:
> so why i got this message??
>
> [2011-06-09 14:06:19 - Screen] ERROR: Application requires API version
> 8. Device API version is 7 (Android 2.1-update1).
> [2011-06-09 14:06:19 - Screen] Launch canceled!
>
> And when i try this in an AVD 2.2, it work??

You have set the android:minSdkVersion of your application to 8. This
has absolutely nothing to do with
ACTION_SCREEN_OFF or ACTION_SCREEN_ON.

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

Android App Developer Books: http://commonsware.com/books

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


Re: [android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON

2011-06-09 Thread Kostya Vasilyev
Check your app's manifest for a

android:minSdkVersion

and change it appropriately, from 8 to something lower (7 for Android 2.1).
If you don't have one, create it, or build with Android 2.1 libraries.

-- Kostya

2011/6/9 souissi haythem 

> so why i got this message??
>
> [2011-06-09 14:06:19 - Screen] ERROR: Application requires API version
> 8. Device API version is 7 (Android 2.1-update1).
> [2011-06-09 14:06:19 - Screen] Launch canceled!
>
> And when i try this in an AVD 2.2, it work??
>
>
>
>
> On Jun 9, 1:34 pm, Kostya Vasilyev  wrote:
> > According to the documentation, both are "since API level 1".
> >
> > -- Kostya
> >
> > 2011/6/9 souissi haythem 
> >
> > > Hi
> >
> > > i need to use the two broadcast in the title. The problem is that to
> > > use it, we require API version8 (android 2.2). And my program need to
> > > work in Android 2.1
> >
> > > I wanna know if there is other tools in android 2.1 that it can do the
> > > work of detecting screen on or off.
> > > I have found isScreenOn() which test if the screen is on or off, but
> > > it is not why i need. I need to detect automatic when the screen is on
> > > so i lunch my service .
> >
> > > Thanks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: BROADCAST ACTION_SCREEN_OFF or ACTION_SCREEN_ON

2011-06-09 Thread souissi haythem
sorry it's working

i have to change my manifest.xml
i know it's stupid :)

thanks

On Jun 9, 2:07 pm, souissi haythem  wrote:
> so why i got this message??
>
> [2011-06-09 14:06:19 - Screen] ERROR: Application requires API version
> 8. Device API version is 7 (Android 2.1-update1).
> [2011-06-09 14:06:19 - Screen] Launch canceled!
>
> And when i try this in an AVD 2.2, it work??
>
> On Jun 9, 1:34 pm, Kostya Vasilyev  wrote:
>
> > According to the documentation, both are "since API level 1".
>
> > -- Kostya
>
> > 2011/6/9 souissi haythem 
>
> > > Hi
>
> > > i need to use the two broadcast in the title. The problem is that to
> > > use it, we require API version8 (android 2.2). And my program need to
> > > work in Android 2.1
>
> > > I wanna know if there is other tools in android 2.1 that it can do the
> > > work of detecting screen on or off.
> > > I have found isScreenOn() which test if the screen is on or off, but
> > > it is not why i need. I need to detect automatic when the screen is on
> > > so i lunch my service .
>
> > > Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Animation

2011-06-09 Thread Neha
Can anyone help me in creating animated image in frame animation type.


Thanks in advance

Neha

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

Re: [android-developers] Android Wiki

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 1:18 AM, Raghav Sood  wrote:

> I have waited for a while and have had no response from all of you. So I am
> trying again. Could you all help in making this wiki? Anthing android
> related is welcome on it.
> http://wiki.androidappcheck.com/
>

I admire your efforts but you'll likely not get a good response (again).
Here's a few things to consider that's likely keeping people from
contributing.

1 - Your wiki is empty. There is *NOTHING* on it. Which means no one is
reading it since there's nothing to read. So why would anyone waste their
time adding stuff to a wiki no one is reading? If I added 1 article right
now you'd have 1 article.

If you're serious about this then *YOU* need to put the leg work up front to
"seed" it with content to make it look like it's useful, give people
something to read and a reason to visit. Through that traffic people would
eventually start editing existing topics or adding their own new ones.

So write some starting content and / or find other existing tutorials /
examples / data sets online and ask the authors for permission to copy their
stuff over and do that. *Anything* to get something going.

2 - Until you started posting in this group, I for one have never heard of
you or this site. You have no name recognition. If this was
www.the-official-android-wiki.com run by Google, it would likely have a huge
following. As it stands, there is no confidence that this isn't just some
pet project some random person on the internet threw together over the
weekend. For all we know this will fizzle out and die by next week. The
complete lack of content mentioned in point 1 doesn't help.

There's not much you can do about this but you can start by contributing to
this group with more than pleads for people to add content to your wiki.
Over time perhaps you'll gain more recognition and respect to have people
take this more seriously.

3 - You have a Donate button on each and every page that apparently goes
directly to you. You want an entire community to do the work to build up
knowledge on your website and donations go to you? Seriously?

You, sir, have a pair of solid steel grapefruits that would make Stephen
Colbert jealous.

4 - Sorry but frankly the very people you want to contribute to this simply
have better sh*t to do. We all have apps we're working on and likely
full-time jobs and families and that minor nuisance known as life. Given
points 1, 2, and 3 there's absolutely no incentive or motivation to move
anyone to spend time on this.

This is all meant to be constructive so I hope you take it as such. Good
luck.

-
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] Market total # of downloads stuck?

2011-06-09 Thread Adam Ratana
Has anyone else notice the total # of downloads has been stuck the last few 
days in the market stats?  

Mine has stayed the same for my apps, while the # of active installs has 
increased.  For example, for one app, the # of active installs is now > than 
the total # of downloads and the active install% is 101%.

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

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 7:02 AM, Neha  wrote:

> Can anyone help me in creating animated image in frame animation type.


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

-
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] SODA query throwing exception :-com.db4o.internal.query.ObjectSetFacade

2011-06-09 Thread imran ali
Hi ,

In one of my project i am doing SODA query in db4o, i used this code
to retrieve object of Recipe.

public List getRecipiesByString(String searchValue)
{
List list=null;
Query query=db().query();
 query.constrain(Recipe.class);
 Constraint constraint=
query.descend("_title").constrain(searchValue).contains();
 
query.descend("_description").constrain(searchValue).contains().or(constraint);

list= query.execute();
return list;
}


Where "_title" & "_description" are field of Recipe class of type
String.

it has been throwing "com.db4o.internal.query.ObjectSetFacade"
and i am getting zero size of list.
can any one sort out issue? what does it mean "ObjectSetFacade" in
db4o?

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


Re: [android-developers] timeout

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 8:34 AM, bob  wrote:

> Any ideas?


Uninstall the app first; restart Eclipse; close Eclipse, kill adb, start
Eclipse; restart your computer  (in order of things to try).

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

2011-06-09 Thread bob
I keep getting this error today for some reason.  I know the device is
connected right.

[2011-06-09 08:29:31 - jumperfi] Uploading jump.apk onto device
'I89785dcd929'
[2011-06-09 08:29:38 - jumperfi] Failed to install jump.apk on device
'I89785dcd929': timeout
[2011-06-09 08:29:38 - jumperfi] Launch canceled!

Any ideas?

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


[android-developers] Re: Svar: How to make apk from .java, png files extracted from jar

2011-06-09 Thread Rajender
Hi Eric,

Thanks for the linkits very good and useful.

Regards,

Rajender

On Jun 9, 2:43 pm, ericd  wrote:
> Check this:
>
> http://geosoft.no/development/android.html
>
> Eric

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


[android-developers] Heatmaps

2011-06-09 Thread Vinicius Carvalho
Hi, just would like to share a lib that I was building for the past
week: http://code.google.com/p/mapex/

There you will find a heatmap implementation, demos of it working with
some real data. And also other things like support for a selection box
on a map (something that I was in need for a while)

I intend to add more features to it, for instance clustering for
markers (I already have the algorithm in plain java for server side,
just porting it)

I'm really trying to get this working any comment would be great. I
know there's some bugs here and there, working on them, please report
them, as well features requests.

Regards

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


[android-developers] want notification to application from home screen

2011-06-09 Thread Animesh Sinha
Hi all,

 i am new in android and i am developing an application in that i have a
requirement to open/launch my app as soon as user type some specific number
on Home screen say(*#12324#) such that it will notify to my app for launch.

I mean to say that i want a notification(Command) same as when we
type *#06# in home screen it will show a IMEI no. in the same way when
i press a certain code (eg: *#12345#) then it will notify to my
service which is running in background.

Plz solve my problem and reply me soon.

Thanks and Regards
Animesh

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: noob Q :-/ regarding global variable - declared the application class but...

2011-06-09 Thread Duskox
Thanks for all the answers, at the moment it works but yes I will look
into the subject of rewriting my code so it is more in line with OO
concept.

@Streets of Boston: What I am doing is filling a database from an XML
source. So I don't have any resources that I need to use. Just what
XML file gives me I store in a database. I am building a offline
street map viewer using openstreetmap and so I load the map tiles, and
some markers on the map when there is connectivity to internet so
later when there is no internet connection I have everything stored on
my phone.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: noob Q :-/ regarding global variable - declared the application class but...

2011-06-09 Thread JP


On Jun 8, 5:29 pm, Mark Murphy  wrote:
>
> If it is, just pass the Activity into the constructor of the
> ContentHandler, and get rid of the static data member/custom
> Application class.


That, or a ton of other solutions that would be appropriate for your
problem... Hate to say it but you might want to take a step back and
learn OO software development. You've got a taste of the first lesson
already... OO is a lot about scope management.

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

2011-06-09 Thread Mark Murphy
On Thu, Jun 9, 2011 at 10:04 AM, Animesh Sinha
 wrote:
>      i am new in android and i am developing an application in that i have a
> requirement to open/launch my app as soon as user type some specific number
> on Home screen say(*#12324#) such that it will notify to my app for launch.

SDK applications cannot do this, unless it is your own home screen app.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.3 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] want notification to application from home screen

2011-06-09 Thread Animesh Sinha
Thanks Mark
 for quick reply, but building an Home application for this and tell
user to change the their home application for this particular app is not
feasible i think so.

Regards
Animesh

On Thu, Jun 9, 2011 at 7:36 PM, Mark Murphy  wrote:

> On Thu, Jun 9, 2011 at 10:04 AM, Animesh Sinha
>  wrote:
> >  i am new in android and i am developing an application in that i
> have a
> > requirement to open/launch my app as soon as user type some specific
> number
> > on Home screen say(*#12324#) such that it will notify to my app for
> launch.
>
> SDK applications cannot do this, unless it is your own home screen app.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version
> 1.9.3 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] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-09 Thread luiX_
Maybe you can find this useful:

http://stackoverflow.com/questions/3505930/make-in-http-request-with-android

In
the AsyncTask, you can also implement a constructor so you can pass the
context or whatever you need :)

2011/6/9 Duskox 

> Thanks for all the answers, at the moment it works but yes I will look
> into the subject of rewriting my code so it is more in line with OO
> concept.
>
> @Streets of Boston: What I am doing is filling a database from an XML
> source. So I don't have any resources that I need to use. Just what
> XML file gives me I store in a database. I am building a offline
> street map viewer using openstreetmap and so I load the map tiles, and
> some markers on the map when there is connectivity to internet so
> later when there is no internet connection I have everything stored on
> my phone.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Updating a service with data from an activity

2011-06-09 Thread Ab Caballero
I need to send data from an activity to a persistently running GPS
service and I'm not certain how to do this. Below is the code from my
activity and service. ANY help is greatly appreciated.

//%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&
// THIS IS THE ACTIVITY
//%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%%

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tripinformation);


Button button = (Button)findViewById(R.id.pickup_load);
button.setOnClickListener(mPickupListener);
button = (Button)findViewById(R.id.deliver_load);
button.setOnClickListener(mDeliveryListener);
button = (Button)findViewById(R.id.pickup_delivery);
button.setOnClickListener(mPickupDeliveryListener);
button = (Button)findViewById(R.id.railhead);
button.setOnClickListener(mRailHeadListener);
button = (Button)findViewById(R.id.warehouse);
button.setOnClickListener(mWarehouseListener);
button = (Button)findViewById(R.id.other);
button.setOnClickListener(mOtherLocationListener);
button = (Button)findViewById(R.id.gate);
button.setOnClickListener(mGateListener);
button = (Button)findViewById(R.id.terminal);
button.setOnClickListener(mTerminalListener);
button = (Button)findViewById(R.id.traffic);
button.setOnClickListener(mTrafficListener);
button = (Button)findViewById(R.id.onbreak);
button.setOnClickListener(mBreakListener);
button = (Button)findViewById(R.id.fueling);
button.setOnClickListener(mFuelingListener);
button = (Button)findViewById(R.id.closed);
button.setOnClickListener(mDestinationClosedListener);
button = (Button)findViewById(R.id.closed);
button.setOnClickListener(mPaperworkListener);
button = (Button)findViewById(R.id.paperwork);
button.setOnClickListener(mEquipmentListener);
button = (Button)findViewById(R.id.equipment);
button.setOnClickListener(mOtherIssueListener);
button = (Button)findViewById(R.id.other_issue);
//Return to the LoginActivity
button = (Button)findViewById(R.id.Back);
button.setOnClickListener(new OnClickListener(){
public void onClick(View v){
finish();
}
});
}

//%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&
//  Set the listeners
//  The data from these button presses need to be sent to the
main service
//%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&

private OnClickListener mPickupListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Pickup");
}
};
  private OnClickListener mDeliveryListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Delivery");
}
  };
  private OnClickListener mPickupDeliveryListener = new
OnClickListener() {
public void onClick(View v)
{
getStatus("Pickup/Delivery");
}
};

private OnClickListener mRailHeadListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Railhead");
}
};

private OnClickListener mWarehouseListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Warehouse");
}
};
  private OnClickListener mOtherLocationListener = new
OnClickListener() {
public void onClick(View v)
{
getStatus("OtherLocation");
}
  };
private OnClickListener mGateListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Gate");
}
};
private OnClickListener mTerminalListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Terminal");
}
};
private OnClickListener mTrafficListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Traffic");
}
};
private OnClickListener mBreakListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Break");

}
};
private OnClickListener mFuelingListener = new OnClickListener() {
public void onClick(View v)
{
getStatus("Fueling");
}
};
private OnClickListener mDestinationClosedListener = new
OnClickListener() {
public void onClick(View v)
{
getStatus("DestClosed");
}
};
private OnClickListener mPaperworkList

Re: [android-developers] Updating a service with data from an activity

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 9:19 AM, Ab Caballero  wrote:

> I need to send data from an activity to a persistently running GPS service
> and I'm not certain how to do this.
>

http://developer.android.com/reference/android/app/Service.html#LocalServiceSample

-
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] Signing application with multiple certificates

2011-06-09 Thread Jalal
Dear Android community,

I'm having a big problem with the application certificates and I
haven't found any official info regarding the possibility of signing
an application with more than one certificate. I have an application
with package name "com.example.myapp" signed with certificate A and
the same app with the same package name but signed with certificate B.
The application signed with A comes preinstalled in device X and the
app signed with B comes preinstalled in device Y.

Now I need to publish a the app in the Market with the next version.
How can I publish this update so I don't leave any of my users
hanging. If i sign the update with certificate A, only users with the
device X will be able to install the update and the same thing with
certificate B and device Y.

I saw some posts from other developers in different forums and groups
saying that it's possible to sign an apk with two certificates. When I
try this I get the worst result possible, device X nor device Y can
install the update.

Another thing, is it possible to do some kind of device
differentiation in the Market so users with device X can download one
app and the users with device Y the other?

Thank you all in advance. I hope you can help me with this issue.

Cheers,
Jalal

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-09 Thread Diego Tori
So you're saying in this case it's better to just populate the UI in
onResume for data that is dependent on the outcome of that event? That
would be the case for a couple of activities that depend on it.
However, I'm more concerned about the performance impact, since this
data in particular has dozens of members and if I have to re-create
the UI every time onResume is called, it will create a bad UX within
those Activities, even if I put up a loading screen and use a thread.

I guess one way to reduce the number of unnecessary data refreshes is
once my event occurs, I save a timestamp to my in-memory cache, and
then every time an activity is added to the stack, it retrieves that
value and keeps it there. As a result, every time the user generates
the event, all the other activities below it will check the new
timestamp in onResume and if the latest one is greater than the one
the activity has, it refreshes itself and its current timestamp value.
Also, my app guarantees that this event will occur when it first
starts up, before it launches its home activity, so there will be a
timestamp available.

On Jun 8, 5:02 pm, Mark Murphy  wrote:
> On Wed, Jun 8, 2011 at 4:16 PM, Diego Tori
>
>  wrote:
> > That's the thing, if I set a shared preference flag or cached flag via
> > cache object, and they did try to check for that value in onResume,
> > wouldn't the first activity from the back stack to get the foreground
> > check its state, then set it back to false after checking for it being
> > true before having to do work?
>
> Delete the flag. You don't need the flag. Update the UI of the
> activity in onResume(). Period.
>
> > Even if I didn't reset the flag, every
> > time it would hit that function, it would still get caught in that
> > flag, so that isn't really useful.
>
> Hence, get rid of the flag. Update the UI of the activity in onResume(). 
> Period.
>
> > So there is no way that I can just
> > broadcast one intent that my listening activities can listen to after
> > the intent is sent as soon as they get the foreground again?
>
> What makes you think that your activity even exists? Your
> non-foreground activities may not even be in memory, because Android
> may have destroyed them to save RAM.
>
> If you simply update your UI in onResume(), it handles both the
> activity-in-RAM and the activity-out-of-RAM scenario.
>
> Your proposed model is akin to: every time Google indexes a new page,
> it proactively updates every browser on the face of the planet, even
> those that do not use Google, do not care about the newly indexed
> page, or are not even running.
>
> > Keep in mind that this is not a one-time event.
>
> All the more reason to not push updates out to activities that do not
> yet need the information.
>
> > Rather it is an event
> > that the user generates, all I want those other activities to know is
> > whether or not the event was generated by the user while in the
> > background.
>
> So, update the UI of the activity from your persistent store or
> in-memory cache in onResume(). Period.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

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


Re: [android-developers] ACTION_APPWIDGET_CONFIGURE not being received

2011-06-09 Thread Chris Newton
Kostya,

Thanks for the reply.

I only added the MAIN/LAUNCHER activity because the app was not receiving the 
CONFIGURE action.  I have only been working with the application using the 
Eclipse environment, and from what you have just said perhaps this is my 
problem?  I will have to try making and installing the app without Eclipse in 
the equation.

For the time being I have rewritten the app as an activity, and will sort out 
the issues I am experiencing with launching it later (hopefully when I have 
learned more).

Thanks again,

Chris

On 2011-06-06, at 3:00 AM, Kostya Vasilyev wrote:

> Chris,
>  
> You have a MAIN/LAUNCHER intent filter for your widget configuration activity.
>  
> This marks it as the entry point into your application, and it will be shown 
> in the application drawer (Launcher).
>  
> Is this what you really want?
>  
> If it's launched like this (as opposed to when you go through creating your 
> widget on the home screen), it won't have any widget specific action or 
> extras.
>  
> Launching for debugging from Eclipse will also start this activity using 
> MAIN/LAUNCHER, and it won't have any widget specific stuff either.
>  
> -- Kostya
> 
> 2011/6/5 chris 
> Hello,
> 
> I have been trying to implement an application that uses the
> ACTION_APPWIDGET_CONFIGURE action to configure an app when it is first
> installed.
> 
> I have been using the discussion at
> http://developer.android.com/guide/topics/appwidgets/index.html#Configuring
> as a reference to accomplish this.
> 
> The problem is that the onStart() process of the configuration
> activity does not ever receive an ACTION_APPWIDGET_CONFIGURE.  In
> other words the code snippet below always executes finish () because
> it is not a CONFIGURE action being processed.
> 
> Is there a very simple app that demonstrates receiving an ACTION
> event, or is there an obvious problem with what I am doing?
> 
> Thanks,
> 
> Chris Newton
> 
>  CODE SNIPPET -
> 
> public class TestConfigure extends Activity {
> 
>int appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID;
> 
>@Override
>protected void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
> 
>// cause the widget host to cancel out of the widget
> placement if the back button is pressed.
>   setResult(RESULT_CANCELED);
> 
> 
>   Intent intent = getIntent();
>   Bundle extras = intent.getExtras();
> 
>   if (extras != null)
>   {
> appWidgetId =
> extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID,
> AppWidgetManager.INVALID_APPWIDGET_ID);
>   }
> 
>  // If they gave us an intent without the widget id, just
> bail.
>  if (appWidgetId ==
> AppWidgetManager.INVALID_APPWIDGET_ID)
>  {
>   finish();
>  }
> 
>}
> }
> 
>  AndroidManifest.xml
> ---
> 
> 
> http://schemas.android.com/apk/res/android";
>  package="com.darfield.test"
>  android:versionCode="1"
>  android:versionName="1.0">
> 
> 
>
> 
>
>
> android:name="android.appwidget.action.APPWIDGET_UPDATE" />
>
>   android:resource="@xml/test_info" />
>
> 
>  android:label="@string/app_name">
>
> android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
>
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
> 
>
> 
> 
> 
> -- test_info.xml
> --
> 
> 
> 
> http://schemas.android.com/apk/res/
> android"
>android:minWidth="294dp"
>android:minHeight="72dp"
>android:updatePeriodMillis="8640"
>android:initialLayout="@layout/main"
>android:configure="com.darfield.test.TestConfigure" >
> 
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 th

[android-developers] Re: Loading Bitmaps in native heap

2011-06-09 Thread webmonkey
> On some devices that is going to be way over budget.

The 8mp example is the max case. I don't expect low-end devices to
have an 8mp camera. So let me try again, about 64MB of extra space in
native on a phone that has 512MB of RAM, is that reasonable? I am just
trying to find a right balance here to take advantage of the memory
when it is available. Also note that such memory use would be for
periods where an image is loaded and edited, so it is not allocated
all the time.

On Jun 9, 12:30 am, Dianne Hackborn  wrote:
> On Wed, Jun 8, 2011 at 3:17 PM, webmonkey  wrote:
> > > No, as I said, your app will eventually be silently killed.
> > OK, but not if you are a foreground app, wouldn't be very silent ;-)
>
> It is silent as far as you are concerned -- no warning, no way to recover,
> just *poof*.
>
> > I am talking sane for a mobile environment, and I already mmap
> > everything I can. Let's say an absolute max of 2 full 8mp images, so
> > about 64MB of extra space in native, is that reasonable for a
> > foreground app? Keeping in mind that it is the user's choice to do
> > this (just like he would play a high performance game)
>
> On some devices that is going to be way over budget.  The amount of RAM in
> Android devices (at least high-end ones) has been growing quickly, but there
> is a wide variety across them.  The numbers defined in the platform have
> been fairly conservative to ensure good working behavior and performance
> across all devices.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Android Wiki

2011-06-09 Thread Raghav Sood
Hi,

I apprecite you atleast replying to this mail. I know that your points are
very valid, but its not as if wikipedia was the official wiki of the world
when it was started that would cause it to become so popular. I also know
that you mean to be constructive with the mail and am not taking it in a bad
way. As the donate button seems to be an issue I will remove it until I can
set up an account that is not a personal one. I understand that I too should
contribute to the wiki. The problem there is that5 I started this wiki
because I am new to android and know the problems we all experiance and
hoped to have a reference point to be able to find solutions. As I am new I
can't really write all of it by myself, but I have added pages and will add
more.

Still, thank you for the points you gave.

On Thu, Jun 9, 2011 at 6:37 PM, TreKing  wrote:

> On Thu, Jun 9, 2011 at 1:18 AM, Raghav Sood  wrote:
>
>> I have waited for a while and have had no response from all of you. So I
>> am trying again. Could you all help in making this wiki? Anthing android
>> related is welcome on it.
>> http://wiki.androidappcheck.com/
>>
>
> I admire your efforts but you'll likely not get a good response (again).
> Here's a few things to consider that's likely keeping people from
> contributing.
>
> 1 - Your wiki is empty. There is *NOTHING* on it. Which means no one is
> reading it since there's nothing to read. So why would anyone waste their
> time adding stuff to a wiki no one is reading? If I added 1 article right
> now you'd have 1 article.
>
> If you're serious about this then *YOU* need to put the leg work up front
> to "seed" it with content to make it look like it's useful, give people
> something to read and a reason to visit. Through that traffic people would
> eventually start editing existing topics or adding their own new ones.
>
> So write some starting content and / or find other existing tutorials /
> examples / data sets online and ask the authors for permission to copy their
> stuff over and do that. *Anything* to get something going.
>
> 2 - Until you started posting in this group, I for one have never heard of
> you or this site. You have no name recognition. If this was
> www.the-official-android-wiki.com run by Google, it would likely have a
> huge following. As it stands, there is no confidence that this isn't just
> some pet project some random person on the internet threw together over the
> weekend. For all we know this will fizzle out and die by next week. The
> complete lack of content mentioned in point 1 doesn't help.
>
> There's not much you can do about this but you can start by contributing to
> this group with more than pleads for people to add content to your wiki.
> Over time perhaps you'll gain more recognition and respect to have people
> take this more seriously.
>
> 3 - You have a Donate button on each and every page that apparently goes
> directly to you. You want an entire community to do the work to build up
> knowledge on your website and donations go to you? Seriously?
>
> You, sir, have a pair of solid steel grapefruits that would make Stephen
> Colbert jealous.
>
> 4 - Sorry but frankly the very people you want to contribute to this simply
> have better sh*t to do. We all have apps we're working on and likely
> full-time jobs and families and that minor nuisance known as life. Given
> points 1, 2, and 3 there's absolutely no incentive or motivation to move
> anyone to spend time on this.
>
> This is all meant to be constructive so I hope you take it as such. Good
> luck.
>
>
> -
> 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




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

[android-developers] Bluetooth: Can't connect to socket on a linux box

2011-06-09 Thread André Cruz
Hello.

I'm running the Bluetooth Chat example trying to trick it into
connecting to a linux box where I have a service registered with the
UUID of the chat service, but although it finds the service, it never
connects and throws an error:

D/BluetoothChat( 4078): onActivityResult -1
D/BluetoothChatService( 4078): connect to: 00:1F:5B:DF:5F:17
D/BluetoothChatService( 4078): setState() 1 -> 2
E/BluetoothChat( 4078): + ON RESUME +
I/BluetoothChat( 4078): MESSAGE_STATE_CHANGE: 2
I/BluetoothChatService( 4078): BEGIN mConnectThread
SocketType:Insecure
E/BluetoothService.cpp(  109): stopDiscoveryNative: D-Bus error in
StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
E/BluetoothService.cpp(  109): stopDiscoveryNative: D-Bus error in
StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
E/BluetoothEventLoop.cpp(  109): event_filter: Received signal
org.bluez.Device:PropertyChanged from /org/bluez/280/hci0/
dev_00_1F_5B_DF_5F_17
D/BluetoothService(  109): updateDeviceServiceChannelCache(00:1F:5B:DF:
5F:17)
D/BluetoothService(  109):  uuid(application): 8ce255c0-200a-11e0-
ac64-0800200c9a66 210
D/BluetoothService(  109): Making callback for 8ce255c0-200a-11e0-
ac64-0800200c9a66 with result 210
E/BluetoothChatService( 4078): unable to connect()
E/BluetoothChatService( 4078): java.io.IOException: Invalid argument
E/BluetoothChatService( 4078):  at
android.bluetooth.BluetoothSocket.connectNative(Native Method)
E/BluetoothChatService( 4078):  at
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:204)
E/BluetoothChatService( 4078):  at
com.example.android.BluetoothChat.BluetoothChatService
$ConnectThread.run(BluetoothChatService.java:387)
D/BluetoothChatService( 4078): start
D/BluetoothChatService( 4078): setState() 2 -> 1

So from the log we can see that the service is found, but for some
reason the connect() fails with errno=EINVAL. I haven't rooted this
Nexus S so I cannot know more about what the native code is doing, but
has anyone encountered this? Connecting to another Android phone
works, of course.

Thanks,
André

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

2011-06-09 Thread Kostya Vasilyev
No, I don't mean that launching from Eclipse, in itself, is the problem.

Let me try to clarify:


A widget configuration activity is started by Android when the user begins
creating a widget. It is passed the new widget id it's supposed to
configure.

I have code in one of my widgets that's just like yours, to get the widget
id from the extras, it works without any issues. Don't see anything wrong
with your XML code either.


On the other hand, since your activity has the MAIN/LAUNCHER filter, it can
be started from the app drawer (list of installed applications) or - and
this is where Eclipse comes into play - when you click "Start debugging" for
your project. In this case, since it's not being started as part of the
widget creation sequence, it won't have the widget id in its extras.


The configuration activity will only have the widget id extra if
it's started as part of the widget creation sequence. So, once you get the
application set up for debugging, switch to the home screen and create your
widget.


OTOH, I see this in your original email: "to configure an app when it is
first installed." If you don't mean configuring a home screen widget, then
I'm a bit lost.


-- Kostya


2011/6/9 Chris Newton 

> Kostya,
>
> Thanks for the reply.
>
> I only added the MAIN/LAUNCHER activity because the app was not receiving
> the CONFIGURE action.  I have only been working with the application using
> the Eclipse environment, and from what you have just said perhaps this is my
> problem?  I will have to try making and installing the app without Eclipse
> in the equation.
>
> For the time being I have rewritten the app as an activity, and will sort
> out the issues I am experiencing with launching it later (hopefully when I
> have learned more).
>
> Thanks again,
>
> Chris
>
> On 2011-06-06, at 3:00 AM, Kostya Vasilyev wrote:
>
> Chris,
>
> You have a MAIN/LAUNCHER intent filter for your widget configuration
> activity.
>
> This marks it as the entry point into your application, and it will be
> shown in the application drawer (Launcher).
>
> Is this what you really want?
>
> If it's launched like this (as opposed to when you go through creating your
> widget on the home screen), it won't have any widget specific action or
> extras.
>
> Launching for debugging from Eclipse will also start this activity using
> MAIN/LAUNCHER, and it won't have any widget specific stuff either.
>
> -- Kostya
>
> 2011/6/5 chris 
>
>> Hello,
>>
>> I have been trying to implement an application that uses the
>> ACTION_APPWIDGET_CONFIGURE action to configure an app when it is first
>> installed.
>>
>> I have been using the discussion at
>>
>> http://developer.android.com/guide/topics/appwidgets/index.html#Configuring
>> as a reference to accomplish this.
>>
>> The problem is that the onStart() process of the configuration
>> activity does not ever receive an ACTION_APPWIDGET_CONFIGURE.  In
>> other words the code snippet below always executes finish () because
>> it is not a CONFIGURE action being processed.
>>
>> Is there a very simple app that demonstrates receiving an ACTION
>> event, or is there an obvious problem with what I am doing?
>>
>> Thanks,
>>
>> Chris Newton
>>
>>  CODE SNIPPET -
>>
>> public class TestConfigure extends Activity {
>>
>>int appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID;
>>
>>@Override
>>protected void onCreate(Bundle savedInstanceState)
>>{
>>super.onCreate(savedInstanceState);
>>
>>// cause the widget host to cancel out of the widget
>> placement if the back button is pressed.
>>   setResult(RESULT_CANCELED);
>>
>>
>>   Intent intent = getIntent();
>>   Bundle extras = intent.getExtras();
>>
>>   if (extras != null)
>>   {
>> appWidgetId =
>> extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID,
>> AppWidgetManager.INVALID_APPWIDGET_ID);
>>   }
>>
>>  // If they gave us an intent without the widget id, just
>> bail.
>>  if (appWidgetId ==
>> AppWidgetManager.INVALID_APPWIDGET_ID)
>>  {
>>   finish();
>>  }
>>
>>}
>> }
>>
>>  AndroidManifest.xml
>> ---
>>
>> 
>> http://schemas.android.com/apk/res/android";
>>  package="com.darfield.test"
>>  android:versionCode="1"
>>  android:versionName="1.0">
>>
>>
>>
>>
>>
>>
>>> android:name="android.appwidget.action.APPWIDGET_UPDATE" />
>>
>>>   android:resource="@xml/test_info" />
>>
>>
>>>  android:label="@string/app_name">
>>
>>> android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
>>
>>
>>   

Re: [android-developers] Re: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-09 Thread Dianne Hackborn
Yes only updating when the data has changed is a good approach.  Instead of
a timestamp, I would suggest just using a sequence number that you increment
every time the data has changed.  This technique is used in a lot of places
in Android -- for example to know when the locale cache of the Settings
provider values is out of date, or when dispatching a new Configuration to
determine if it is a newer one than the last one that was handled.

On Thu, Jun 9, 2011 at 7:59 AM, Diego Tori
wrote:

> So you're saying in this case it's better to just populate the UI in
> onResume for data that is dependent on the outcome of that event? That
> would be the case for a couple of activities that depend on it.
> However, I'm more concerned about the performance impact, since this
> data in particular has dozens of members and if I have to re-create
> the UI every time onResume is called, it will create a bad UX within
> those Activities, even if I put up a loading screen and use a thread.
>
> I guess one way to reduce the number of unnecessary data refreshes is
> once my event occurs, I save a timestamp to my in-memory cache, and
> then every time an activity is added to the stack, it retrieves that
> value and keeps it there. As a result, every time the user generates
> the event, all the other activities below it will check the new
> timestamp in onResume and if the latest one is greater than the one
> the activity has, it refreshes itself and its current timestamp value.
> Also, my app guarantees that this event will occur when it first
> starts up, before it launches its home activity, so there will be a
> timestamp available.
>
> On Jun 8, 5:02 pm, Mark Murphy  wrote:
> > On Wed, Jun 8, 2011 at 4:16 PM, Diego Tori
> >
> >  wrote:
> > > That's the thing, if I set a shared preference flag or cached flag via
> > > cache object, and they did try to check for that value in onResume,
> > > wouldn't the first activity from the back stack to get the foreground
> > > check its state, then set it back to false after checking for it being
> > > true before having to do work?
> >
> > Delete the flag. You don't need the flag. Update the UI of the
> > activity in onResume(). Period.
> >
> > > Even if I didn't reset the flag, every
> > > time it would hit that function, it would still get caught in that
> > > flag, so that isn't really useful.
> >
> > Hence, get rid of the flag. Update the UI of the activity in onResume().
> Period.
> >
> > > So there is no way that I can just
> > > broadcast one intent that my listening activities can listen to after
> > > the intent is sent as soon as they get the foreground again?
> >
> > What makes you think that your activity even exists? Your
> > non-foreground activities may not even be in memory, because Android
> > may have destroyed them to save RAM.
> >
> > If you simply update your UI in onResume(), it handles both the
> > activity-in-RAM and the activity-out-of-RAM scenario.
> >
> > Your proposed model is akin to: every time Google indexes a new page,
> > it proactively updates every browser on the face of the planet, even
> > those that do not use Google, do not care about the newly indexed
> > page, or are not even running.
> >
> > > Keep in mind that this is not a one-time event.
> >
> > All the more reason to not push updates out to activities that do not
> > yet need the information.
> >
> > > Rather it is an event
> > > that the user generates, all I want those other activities to know is
> > > whether or not the event was generated by the user while in the
> > > background.
> >
> > So, update the UI of the activity from your persistent store or
> > in-memory cache in onResume(). Period.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > Android 3.0 Programming Books:http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Android Wiki

2011-06-09 Thread Mark Murphy
On Thu, Jun 9, 2011 at 11:18 AM, Raghav Sood  wrote:
> The problem there is that5 I started this wiki
> because I am new to android and know the problems we all experiance and
> hoped to have a reference point to be able to find solutions. As I am new I
> can't really write all of it by myself, but I have added pages and will add
> more.

If you are "new to android", please consider getting 12-18 months of
experience with the platform first before trying to create a resource
that requires at least that level of expertise just to curate. Along
the way, you can avail yourself of the copious resources that the
Android developer community have painstakingly put together since late
2007, such as nearly 180,000 posts on this very Google Group:

http://groups.google.com/group/android-developers

and nearly 70,000 pages worth of questions and answers on StackOverflow:

http://stackoverflow.com/questions/tagged/android

And all the blogs, forums, wikis, etc. that we have collectively
generated. Perhaps at that time you will determine that another
English-language Android development wiki is not what the world needs.
>From what I can tell, non-English speakers are chronically
under-served, so perhaps you will determine at that time to create an
Android development resource for some other language. Or, perhaps you
will just create a custom search engine, indexing known good Android
development resources. Or, perhaps you will think of something else.

However, if after you have 12-18 months of Android development
experience, you still want to create yet another English-language
Android development wiki, go for it. Hopefully, by then, you will be
able to seed it yourself -- a few hundred pages *might* be sufficient.
I know from personal experience that a few dozen pages will not. As
TreKing pointed out, an empty wiki will tend to remain empty (I think
that's Newton's Fourth Law of Internet Thermodynamics...).

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.3 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] Alternatives to SQLite for static data

2011-06-09 Thread nadam
Say you're reading an xml or json file from within your app (resources/
raw or assets) and then want to show this data to the user and enable
sorting and simple filtering. Of course you can save the data to an
SQLite table and use sql (where and order by), but it seems to be
overkill when dealing with ~30 kB of static data.

Would it be more appropriate to write a custom adapter or are there
other alternatives that you would recommend?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-09 Thread Diego Tori
That could also work, since it would keep things simple and efficient.
I think this approach makes more sense anyways, since I can fill out
my onResume functions to first check for latest versions of said
number and if it's newer, then invalidate old data, fetch new set, and
populate, or whatever else that needs to be done regarding that new
event.

On Jun 9, 12:02 pm, Dianne Hackborn  wrote:
> Yes only updating when the data has changed is a good approach.  Instead of
> a timestamp, I would suggest just using a sequence number that you increment
> every time the data has changed.  This technique is used in a lot of places
> in Android -- for example to know when the locale cache of the Settings
> provider values is out of date, or when dispatching a new Configuration to
> determine if it is a newer one than the last one that was handled.
>
> On Thu, Jun 9, 2011 at 7:59 AM, Diego Tori
> wrote:
>
>
>
>
>
>
>
>
>
> > So you're saying in this case it's better to just populate the UI in
> > onResume for data that is dependent on the outcome of that event? That
> > would be the case for a couple of activities that depend on it.
> > However, I'm more concerned about the performance impact, since this
> > data in particular has dozens of members and if I have to re-create
> > the UI every time onResume is called, it will create a bad UX within
> > those Activities, even if I put up a loading screen and use a thread.
>
> > I guess one way to reduce the number of unnecessary data refreshes is
> > once my event occurs, I save a timestamp to my in-memory cache, and
> > then every time an activity is added to the stack, it retrieves that
> > value and keeps it there. As a result, every time the user generates
> > the event, all the other activities below it will check the new
> > timestamp in onResume and if the latest one is greater than the one
> > the activity has, it refreshes itself and its current timestamp value.
> > Also, my app guarantees that this event will occur when it first
> > starts up, before it launches its home activity, so there will be a
> > timestamp available.
>
> > On Jun 8, 5:02 pm, Mark Murphy  wrote:
> > > On Wed, Jun 8, 2011 at 4:16 PM, Diego Tori
>
> > >  wrote:
> > > > That's the thing, if I set a shared preference flag or cached flag via
> > > > cache object, and they did try to check for that value in onResume,
> > > > wouldn't the first activity from the back stack to get the foreground
> > > > check its state, then set it back to false after checking for it being
> > > > true before having to do work?
>
> > > Delete the flag. You don't need the flag. Update the UI of the
> > > activity in onResume(). Period.
>
> > > > Even if I didn't reset the flag, every
> > > > time it would hit that function, it would still get caught in that
> > > > flag, so that isn't really useful.
>
> > > Hence, get rid of the flag. Update the UI of the activity in onResume().
> > Period.
>
> > > > So there is no way that I can just
> > > > broadcast one intent that my listening activities can listen to after
> > > > the intent is sent as soon as they get the foreground again?
>
> > > What makes you think that your activity even exists? Your
> > > non-foreground activities may not even be in memory, because Android
> > > may have destroyed them to save RAM.
>
> > > If you simply update your UI in onResume(), it handles both the
> > > activity-in-RAM and the activity-out-of-RAM scenario.
>
> > > Your proposed model is akin to: every time Google indexes a new page,
> > > it proactively updates every browser on the face of the planet, even
> > > those that do not use Google, do not care about the newly indexed
> > > page, or are not even running.
>
> > > > Keep in mind that this is not a one-time event.
>
> > > All the more reason to not push updates out to activities that do not
> > > yet need the information.
>
> > > > Rather it is an event
> > > > that the user generates, all I want those other activities to know is
> > > > whether or not the event was generated by the user while in the
> > > > background.
>
> > > So, update the UI of the activity from your persistent store or
> > > in-memory cache in onResume(). Period.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com|
> >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android 3.0 Programming Books:http://commonsware.com/books
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, a

[android-developers] Re: Alternatives to SQLite for static data

2011-06-09 Thread Streets Of Boston
If it is simple sorting, write your own custom adapter (BaseAdapter, for 
example).

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

2011-06-09 Thread Mike
yes, I have one at 133%

On Jun 9, 8:09 am, Adam Ratana  wrote:
> Has anyone else notice the total # of downloads has been stuck the last few
> days in the market stats?  
>
> Mine has stayed the same for my apps, while the # of active installs has
> increased.  For example, for one app, the # of active installs is now > than
> the total # of downloads and the active install% is 101%.

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


Re: [android-developers] Android Wiki

2011-06-09 Thread Raghav Sood
Point taken.

I'll add stuff as I go along and hope that people will start to contribute.

Thanks

On Thu, Jun 9, 2011 at 9:44 PM, Mark Murphy  wrote:

> On Thu, Jun 9, 2011 at 11:18 AM, Raghav Sood  wrote:
> > The problem there is that5 I started this wiki
> > because I am new to android and know the problems we all experiance and
> > hoped to have a reference point to be able to find solutions. As I am new
> I
> > can't really write all of it by myself, but I have added pages and will
> add
> > more.
>
> If you are "new to android", please consider getting 12-18 months of
> experience with the platform first before trying to create a resource
> that requires at least that level of expertise just to curate. Along
> the way, you can avail yourself of the copious resources that the
> Android developer community have painstakingly put together since late
> 2007, such as nearly 180,000 posts on this very Google Group:
>
> http://groups.google.com/group/android-developers
>
> and nearly 70,000 pages worth of questions and answers on StackOverflow:
>
> http://stackoverflow.com/questions/tagged/android
>
> And all the blogs, forums, wikis, etc. that we have collectively
> generated. Perhaps at that time you will determine that another
> English-language Android development wiki is not what the world needs.
> From what I can tell, non-English speakers are chronically
> under-served, so perhaps you will determine at that time to create an
> Android development resource for some other language. Or, perhaps you
> will just create a custom search engine, indexing known good Android
> development resources. Or, perhaps you will think of something else.
>
> However, if after you have 12-18 months of Android development
> experience, you still want to create yet another English-language
> Android development wiki, go for it. Hopefully, by then, you will be
> able to seed it yourself -- a few hundred pages *might* be sufficient.
> I know from personal experience that a few dozen pages will not. As
> TreKing pointed out, an empty wiki will tend to remain empty (I think
> that's Newton's Fourth Law of Internet Thermodynamics...).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version
> 1.9.3 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
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

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

2011-06-09 Thread James Ots
There's a whole load of sample code on the Android developer website:

http://developer.android.com/resources/browser.html?tag=sample

I'd suggest learning a bit about android development by playing with some of 
the samples there and reading the documentation on the site. You might also 
want to buy this book - I've not read it, but I've heard good reviews of it:

http://www.amazon.com/Professional-Android-Application-Development-Programmer/dp/0470565527

James


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

[android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread John
The problem with languages (locales) seems to be more related to the
wireless
company than the phone makers.  I recently taught a course on
developing
Android apps, and there were several different phones used by myself
and my
students.  Those who had AT&T phones, for example, seemed to have a
lot of
languages preinstalled, but those with Verizon had only two or three
languages.
The situation is likely related to their respective technologies (GSM
versus CDMA;
see http://www.cellutips.com/gsm-vs-cdma-which-one-is-the-best-for-you/)
and their target markets.  My Motorola Droid X (Verizon) for example,
has only
English and Spanish, but during the course I also had access to a
Samsung
Captivate (AT&T), and it had a lot of languages preinstalled. In
general one
should always develop using string resources and other techniques so
that the
application could easily be modified to support other locales.

On Jun 8, 9:21 pm, Chris  wrote:
> That's awful.  My HTC Magic which came out in 2009 supports ~40
> languages/varieties.

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


[android-developers] Re: Need some help in using MediaRecorder

2011-06-09 Thread Prabs

Hello Harri,

I have tried it only on my handset(LG Optimus P500)
I am facing problem on my handset.

I think theres something wrong with the code.
Because, when am trying other applications for recording the call,
they are working fine. But, my application is not working as it is
supposed to be.


On Jun 4, 6:26 pm, Harri Smått  wrote:
> > The code is working fine for the first incoming call. The conversation is 
> > getting recorded successfully. For the later calls, the conversation is not 
> > getting recorded.
>
> Hi Parbhakar,
>
> I bought my first Android phone, Samsung Galaxy S2, some weeks ago, and I've 
> found many bugs in it already which some of are quite fundamental considering 
> usability. Without going to details, are you facing this issue on multiple 
> devices or only the one you're using for development?
>
> Sorry for not being able to help you with the issue you're facing, just 
> sharing a thought I came up after reading your question.
>
> --
> Harri Småtthttp://www.youtube.com/watch?v=0NcSM_sayac

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


[android-developers] Start an external activity from a BroadcastReceiver

2011-06-09 Thread Marc
Hello folks,

after googling all the day, I have solution to actually start an
external activity from a receiver.
In the end I added a service to the package, so the receiver starts
the service and the service should start the activity. Of course that
doesn't sound very efficient at all, but in addition to this it
doesn't work either. Thats my code from the service:

public void onCreate() {
super.onCreate();
Intent i = new Intent("android.intent.action.MAIN");
ComponentName n = new
ComponentName("com.schwimmer.android.carmode",
"com.schwimmer.android.carmode.ToggleCarMode");
i.setComponent(n);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplication().startActivity(i);
//this.stopSelf();

If I put this code into an activity and start it wit
this.startActivity() it works like a charm. But not if it is put into
the receiver or server.

Do you have any idea how to fix that?

Thanks!
Marc

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

2011-06-09 Thread Stephen Damm

On 6/9/2011 10:48 AM, Mike wrote:

yes, I have one at 133%

On Jun 9, 8:09 am, Adam Ratana  wrote:

Has anyone else notice the total # of downloads has been stuck the last few
days in the market stats?  


Mine has stayed the same for my apps, while the # of active installs has
increased.  For example, for one app, the # of active installs is now>  than
the total # of downloads and the active install% is 101%.


Mine is stuck as well over the last week.

I'm expecting the numbers to flood in eventually with a flood of comments...

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


[android-developers] AdView Overlap

2011-06-09 Thread bob
I'm trying to add an AdMob AdView to an existing game.

When I add it the normal way, it pushes the game content down by 50
pixels or so.

Is there an easy way to make it overlap the game content rather than
pushing it down?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Dianne Hackborn
The initial Xoom was a US-only device, so the other languages were not
needed.  Since that was the first release of Android 3.0, generating all of
the translations would have delayed the product for stuff it didn't need.

It is just going to be a fact of life that different devices will ship with
different languages depending on the places it is being shipped and other
considerations.

On Wed, Jun 8, 2011 at 5:57 PM, Zsolt Vasvari  wrote:

> But even my Xoom only includes 3 languages so it's almost useless for
> testing translations -
>
> On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> > Nexus One has a smaller partition for the system image, so can't fit
> every
> > possible thing.  New translations were added to the platform after the
> > initial Nexus One release, but those new translations are not included on
> N1
> > due to the limited space.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > > yes those fonts are for the last platform, I guess Gingerbread that
> > > provides an extended language support.
> > > However I noticed something strange... On my Nexus S there are a lot
> > > of languages supported selectable, on the other hand on my Nexus One
> > > (always 2.3.4) there are only a subset of those.
> >
> > > I expected they were the same... I am a bit confused! :|
> >
> > > On 8 Giu, 12:23, James Ots  wrote:
> > > > Here are the fonts in the android source.
> >
> > > >
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
> >
> > > > These are listed in the makefile
> >
> > > > DroidSans.ttf
> > > > DroidSans-Bold.ttf
> > > > DroidSansArabic.ttf
> > > > DroidSansHebrew.ttf
> > > > DroidSansThai.ttf
> > > > DroidSerif-Regular.ttf
> > > > DroidSerif-Bold.ttf
> > > > DroidSerif-Italic.ttf
> > > > DroidSerif-BoldItalic.ttf
> > > > DroidSansMono.ttf
> > > > Clockopia.ttf
> >
> > > > Although I can't see any guarantee that these will be there, I think
> you
> > > can probably assume that any Compatible Android device will have these
> fonts
> > > available.
> >
> > > > James
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Start an external activity from a BroadcastReceiver

2011-06-09 Thread Dianne Hackborn
You are using hand-written constants all over the place.  The SDK has a
constant for the main action -- Intent.ACTION_MAIN.  There are Intent and
ComponentName constructors to build references to activities through the
Context and their Class.

You don't even need to use ACTION_MAIN if you are just explicitly starting
one of your components.

If you are using getApplication(), then this code will work the same way no
matter where you do it from -- Activity, Service, or Receiver.

There is nothing preventing you from starting an activity from any of these
places, you just need to set Intent.FLAG_ACTIVITY_NEW_TASK if you aren't
launching the activity from an existing activity (since without an activity
you don't have an existing task to launch in to).

It would help if you gave more information -- what errors you are seeing in
the log etc.

On Thu, Jun 9, 2011 at 10:41 AM, Marc  wrote:

> Hello folks,
>
> after googling all the day, I have solution to actually start an
> external activity from a receiver.
> In the end I added a service to the package, so the receiver starts
> the service and the service should start the activity. Of course that
> doesn't sound very efficient at all, but in addition to this it
> doesn't work either. Thats my code from the service:
>
> public void onCreate() {
>super.onCreate();
>Intent i = new Intent("android.intent.action.MAIN");
>ComponentName n = new
>ComponentName("com.schwimmer.android.carmode",
>"com.schwimmer.android.carmode.ToggleCarMode");
>i.setComponent(n);
>i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>getApplication().startActivity(i);
>//this.stopSelf();
>
> If I put this code into an activity and start it wit
> this.startActivity() it works like a charm. But not if it is put into
> the receiver or server.
>
> Do you have any idea how to fix that?
>
> Thanks!
> Marc
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Signing application with multiple certificates

2011-06-09 Thread Dianne Hackborn
You should only sign your app with one cert.  What you want to do can't be
done, sorry.  You should always sign your app with your own cert, not with
different certs.  The cert is the signature of who you are.  If the cert is
different, it is fundamentally a different app.

Fwiw, this is a bad thing that Amazon currently seems to be doing with their
app store -- they are re-signing apps with their own certs, but not changing
the package name.  This is not how Android works and doing that kind of
thing causes problems for developers.

If you have multiple certs, each of those apps should use a different
manifest package name.  You can fairly easily build different versions of
your app with different package names through the --rename-manifest-package
aapt option.  (Though you do need to take some care with it -- for example
if you have a content provider this will leave it with the same authority
name in both apps and thus they can't both be installed on the same device
the same time.)

On Thu, Jun 9, 2011 at 7:52 AM, Jalal  wrote:

> Dear Android community,
>
> I'm having a big problem with the application certificates and I
> haven't found any official info regarding the possibility of signing
> an application with more than one certificate. I have an application
> with package name "com.example.myapp" signed with certificate A and
> the same app with the same package name but signed with certificate B.
> The application signed with A comes preinstalled in device X and the
> app signed with B comes preinstalled in device Y.
>
> Now I need to publish a the app in the Market with the next version.
> How can I publish this update so I don't leave any of my users
> hanging. If i sign the update with certificate A, only users with the
> device X will be able to install the update and the same thing with
> certificate B and device Y.
>
> I saw some posts from other developers in different forums and groups
> saying that it's possible to sign an apk with two certificates. When I
> try this I get the worst result possible, device X nor device Y can
> install the update.
>
> Another thing, is it possible to do some kind of device
> differentiation in the Market so users with device X can download one
> app and the users with device Y the other?
>
> Thank you all in advance. I hope you can help me with this issue.
>
> Cheers,
> Jalal
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] AdView Overlap

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 1:22 PM, bob  wrote:

> When I add it the normal way, it pushes the game content down by 50 pixels
> or so.
>

What is "the normal way"?


> Is there an easy way to make it overlap the game content rather
> than pushing it down?
>

RelativeLayout.

-
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] Android Proguard - how to keep onClick handlers only referenced from XML layouts

2011-06-09 Thread andrew
In my Android app I ofter don't create a View's on-click handler in
code, but rely on the ability to specify it in the XML layout file,
like this:

   

And then have the method in the Activity like this:

public void onSearchClicked( View v ) {
}

Meaning there is no reference to this method in my own code (but maybe
somewhere in the auto-generated stuff by Android build?).

When running Proguard for a production release it seems to remove this
method and the on-click fails.

What can I add to my proguard config file to avoid this that won't
oblige me to rework all these methods?

An annotation I could add to the method and have proguard take notice
of?
Somehow specify these types of methods referenced from xml?
Can you specify a wildcard for the method name and I can adopt some
convention like "onClick*"?

I suppose I can add a false reference in the code, but would like to
avoid that if I can as I won't always remember to put it in!
I have looked through the proguard examples for Android and can't see
anything for this particular need.

I know I can keep specific ones with something like:

-keepclasseswithmembers class * {
   public void onSearchClicked(android.view.View );
}

but in some Activity I have a lof of these, all with different names,
and a lot across the entire application. Using the above method would
mean any change to my code would require a change to my proguard
configI'm looking for a more generic and robust way.

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


[android-developers] Setting Ringtones

2011-06-09 Thread MCON Dev
ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA, resourcePath);
values.put(MediaStore.MediaColumns.TITLE, (String) ((Button) 
v).getText());
values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3");
values.put(MediaStore.Audio.Media.IS_RINGTONE, true);
values.put(MediaStore.Audio.Media.IS_NOTIFICATION, false);
values.put(MediaStore.Audio.Media.IS_ALARM, false);
values.put(MediaStore.Audio.Media.IS_MUSIC, true);

// Insert it into the database
Uri uri = 
MediaStore.Audio.Media.getContentUriForPath(resourcePath);
RingtoneManager.setActualDefaultRingtoneUri(this,
RingtoneManager.TYPE_RINGTONE, uri);

I set a mp3 ringtone (that plays well on my ubuntu and windows) on
samsung galaxy android phone, but it gives a weird sound instead of
the mp3.

Conny

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

2011-06-09 Thread niko20
I think you have to then write your own version of GLSurfaceView. Get
the source code to GLSurfaceView from the android sources, and mod it
to your liking.

-niko

On Jun 7, 6:23 am, Prahalad  wrote:
> Hello Folks
>
> I 've developed Android web browser plugin for showing 3D graphics
> content on web pages (html files).
>
> The plugin uses GLSurfaceView and its associated renderer thread -
> GLSurfaceView.Renderer to render 3D content. The backend graphics
> library is written in native-code and the GLSurfaceView.Renderer calls
> draw operations through JNI.
>
> The plugin is able to render 3D models... However, when I open a new
> web page (closing the current page), the Renderer thread is
> immediately killed by the system. It is important to note that
> GLSurfaceView object exists but the associated Renderer is killed
> immediately.
>
> Is there a way to control the existence or life cycle of Renderer
> Thread. I want to destroy this Thread manually instead of system doing
> it.
>
> Thanks
>
> Prahalad N

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


[android-developers] Re: Audio Editing

2011-06-09 Thread niko20
Check out a library called "soundtouch" on the web. However, you have
to compile it in NDK for android to use it.

-nik

On Jun 7, 6:33 am, sunny ghai  wrote:
> I need some guidance regarding audio editing in android.
>
> Problem: I want to change pitch and speed of sound file independently.
>
> currently I am using SoundPool for that, it is changing the rate of
> the sound which effects both pitch and the sound at a same time.
>
> Is there is any external library (Like "Dirac" for iphone) for
> achieving it ?
>
> 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: Alternatives to SQLite for static data

2011-06-09 Thread DanH
Not clear:  Do you want to simply be able to query the data different
ways, or do you want to be able to rearrange the order of the data and
save that?

If you know all the different ways that the data might be queried,
it's a simple matter to build static side tables for them.  If you
want to be able to "search" for individual values you can statically
or dynamically create a hashtable (or several) over the data.

Of course, none of this really works well with JSON or XML -- you
really need a flat file.  For XML or JSON you're probably better off
reading in all the data and building hashtables over it.

On Jun 9, 11:35 am, nadam  wrote:
> Say you're reading an xml or json file from within your app (resources/
> raw or assets) and then want to show this data to the user and enable
> sorting and simple filtering. Of course you can save the data to an
> SQLite table and use sql (where and order by), but it seems to be
> overkill when dealing with ~30 kB of static data.
>
> Would it be more appropriate to write a custom adapter or are there
> other alternatives that you would recommend?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 onMeasure be skipped when adding a View to a ViewGroup?

2011-06-09 Thread Kelly Merrell
I have a RelativeLayout where I am adding views dynamically as the
user scrolls vertically or horizontally. I have rolled my own
ViewRecycler since there is potentially thousands of views that could
compose the whole of what can be scrolled, but I only show 30 or so at
any time. Think a zoomed in view of a calendar.

I am running into performance problems when I add the views that are
about to be seen, onMeasure is called on the RelativeLayout cascading
down to onMeasure getting called on all of it's child views. I already
have the calculated size of how big the RelativeLayout will ever be
and have set that on it's LayoutParameters, so measuring the ViewGroup
isn't necessary, nor is re-measuring the Views that have already been
added with their final size and the newly added view has no bearing on
those views.

Is there a recommended way to bypass these onMeasure calls or at least
onMeasure calling measureChildren?

Also posted this on stackoverflow with example code to demonstrate the
undesired behavior: 
http://stackoverflow.com/questions/6298827/can-onmeasure-be-skipped-when-adding-a-view-to-a-viewgroup

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

2011-06-09 Thread tamer hatoum
thank you I get the book Professional Android 2 Application
Development  without paying you want a copy???
this helps a lot .. thanks...

On Jun 9, 7:57 pm, James Ots  wrote:
> There's a whole load of sample code on the Android developer website:
>
> http://developer.android.com/resources/browser.html?tag=sample
>
> I'd suggest learning a bit about android development by playing with some of
> the samples there and reading the documentation on the site. You might also
> want to buy this book - I've not read it, but I've heard good reviews of it:
>
> http://www.amazon.com/Professional-Android-Application-Development-Pr...
>
> James

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


Re: [android-developers] Re: webservice php

2011-06-09 Thread Kristopher Micinski
I think the typical practice on this list is not to suggest giving books
away that sell for money.

Because it's not uncommon for the authors to maintain some presence on this
list.

Kris

On Thu, Jun 9, 2011 at 4:40 PM, tamer hatoum wrote:

> thank you I get the book Professional Android 2 Application
> Development  without paying you want a copy???
> this helps a lot .. thanks...
>
> On Jun 9, 7:57 pm, James Ots  wrote:
> > There's a whole load of sample code on the Android developer website:
> >
> > http://developer.android.com/resources/browser.html?tag=sample
> >
> > I'd suggest learning a bit about android development by playing with some
> of
> > the samples there and reading the documentation on the site. You might
> also
> > want to buy this book - I've not read it, but I've heard good reviews of
> it:
> >
> > http://www.amazon.com/Professional-Android-Application-Development-Pr...
> >
> > James
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-06-09 Thread Mark Murphy
Reto, in particular, has come out against piracy of his book, the one
being suggested as available "without paying":

http://blog.radioactiveyak.com/2011/05/my-attitude-towards-piracy-of-my-book.html

If you need free books, older editions of mine are available under a
Creative Commons license from my Web site -- look for the
"Four-to-Free Guarantee".

On Thu, Jun 9, 2011 at 4:43 PM, Kristopher Micinski
 wrote:
> I think the typical practice on this list is not to suggest giving books
> away that sell for money.
>
> Because it's not uncommon for the authors to maintain some presence on this
> list.
>
> Kris
>
> On Thu, Jun 9, 2011 at 4:40 PM, tamer hatoum 
> wrote:
>>
>> thank you I get the book Professional Android 2 Application
>> Development  without paying you want a copy???
>> this helps a lot .. thanks...
>>
>> On Jun 9, 7:57 pm, James Ots  wrote:
>> > There's a whole load of sample code on the Android developer website:
>> >
>> > http://developer.android.com/resources/browser.html?tag=sample
>> >
>> > I'd suggest learning a bit about android development by playing with
>> > some of
>> > the samples there and reading the documentation on the site. You might
>> > also
>> > want to buy this book - I've not read it, but I've heard good reviews of
>> > it:
>> >
>> > http://www.amazon.com/Professional-Android-Application-Development-Pr...
>> >
>> > James
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Re: Is there any way I can start activity running in different process using Instrumentation?

2011-06-09 Thread Indicator Veritatis
This is too big a topic for one post. Have you looked at
http://developer.android.com/guide/topics/testing/testing_android.html
and 
http://www.netmite.com/android/mydroid/development/pdk/docs/instrumentation_framework.html?

You are more likely to be pleased with the response you get if you
study those first, and then ask more specific questions about how to
apply those principles to your specific example.

In the meantime, expect to need a separate Instrumentation class for
each process, and if you must communicate between them, well that gets
tricky, but it must be possible.

On Jun 8, 7:11 pm, Amit Dixit  wrote:
> Hi,
>
> My application uses multiple activities which runs in different process. Is
> there any way I can test it using Instrumentation?
>
> Best Regards,
>
> Amit Dixit

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

2011-06-09 Thread nadam
Thanks. It's no saving and no search. Just query and display. The
items will be displayed as a ListView and the user can chose two
different ways to sort the list and filter the list based on specific
predefined values.

To be more specific, it's a list of around 60 "places" that can be
sorted by name alphabetically or sorted based on the distance from
where you are (so some dynamic data too, but no need to save that).
The filtering can be for instance to only show the places that belong
to a specific category.

On 9 Juni, 21:56, DanH  wrote:
> Not clear:  Do you want to simply be able to query the data different
> ways, or do you want to be able to rearrange the order of the data and
> save that?
>
> If you know all the different ways that the data might be queried,
> it's a simple matter to build static side tables for them.  If you
> want to be able to "search" for individual values you can statically
> or dynamically create a hashtable (or several) over the data.
>
> Of course, none of this really works well with JSON or XML -- you
> really need a flat file.  For XML or JSON you're probably better off
> reading in all the data and building hashtables over it.
>
> On Jun 9, 11:35 am, nadam  wrote:
>
>
>
>
>
>
>
> > Say you're reading an xml or json file from within your app (resources/
> > raw or assets) and then want to show this data to the user and enable
> > sorting and simple filtering. Of course you can save the data to an
> > SQLite table and use sql (where and order by), but it seems to be
> > overkill when dealing with ~30 kB of static data.
>
> > Would it be more appropriate to write a custom adapter or are there
> > other alternatives that you would recommend?

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


[android-developers] Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Manish Garg
Hi All,

I want to implement nested tab activity but getting exception in some
cases like at the time of calling dialog.show from the activity of the
nested activity and during drawing grid view inside nested activity.

Regards,
Manish Garg

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Bluetooth: Can't connect to socket on a linux box

2011-06-09 Thread André Cruz
Nevermind… I was under the impression that the valid range for RFCOMM
ports was 1-255 and not 1-30.

André

On 9 Jun, 11:12, André Cruz  wrote:
> Hello.
>
> I'm running theBluetoothChat example trying to trick it into
> connecting to alinuxbox where I have a service registered with the
> UUID of the chat service, but although it finds the service, it never
> connects and throws an error:
>
> D/BluetoothChat( 4078): onActivityResult -1
> D/BluetoothChatService( 4078): connect to: 00:1F:5B:DF:5F:17
> D/BluetoothChatService( 4078): setState() 1 -> 2
> E/BluetoothChat( 4078): + ON RESUME +
> I/BluetoothChat( 4078): MESSAGE_STATE_CHANGE: 2
> I/BluetoothChatService( 4078): BEGIN mConnectThread
> SocketType:Insecure
> E/BluetoothService.cpp(  109): stopDiscoveryNative: D-Bus error in
> StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
> E/BluetoothService.cpp(  109): stopDiscoveryNative: D-Bus error in
> StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
> E/BluetoothEventLoop.cpp(  109): event_filter: Received signal
> org.bluez.Device:PropertyChanged from /org/bluez/280/hci0/
> dev_00_1F_5B_DF_5F_17
> D/BluetoothService(  109): updateDeviceServiceChannelCache(00:1F:5B:DF:
> 5F:17)
> D/BluetoothService(  109):      uuid(application): 8ce255c0-200a-11e0-
> ac64-0800200c9a66 210
> D/BluetoothService(  109): Making callback for 8ce255c0-200a-11e0-
> ac64-0800200c9a66 with result 210
> E/BluetoothChatService( 4078): unable to connect()
> E/BluetoothChatService( 4078): java.io.IOException: Invalid argument
> E/BluetoothChatService( 4078):  at
> android.bluetooth.BluetoothSocket.connectNative(Native Method)
> E/BluetoothChatService( 4078):  at
> android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:204)
> E/BluetoothChatService( 4078):  at
> com.example.android.BluetoothChat.BluetoothChatService
> $ConnectThread.run(BluetoothChatService.java:387)
> D/BluetoothChatService( 4078): start
> D/BluetoothChatService( 4078): setState() 2 -> 1
>
> So from the log we can see that the service is found, but for some
> reason the connect() fails with errno=EINVAL. I haven't rooted this
> Nexus S so I cannot know more about what the native code is doing, but
> has anyone encountered this? Connecting to another Android phone
> works, of course.
>
> Thanks,
> André

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


Re: [android-developers] Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Dianne Hackborn
No it is not.  There is only one level of nesting of activities.

On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg  wrote:

> Hi All,
>
> I want to implement nested tab activity but getting exception in some
> cases like at the time of calling dialog.show from the activity of the
> nested activity and during drawing grid view inside nested activity.
>
> Regards,
> Manish Garg
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Can onMeasure be skipped when adding a View to a ViewGroup?

2011-06-09 Thread Dianne Hackborn
You will need to write your own layout manager.

On Thu, Jun 9, 2011 at 1:34 PM, Kelly Merrell <
kmerr...@mercuryintermedia.com> wrote:

> I have a RelativeLayout where I am adding views dynamically as the
> user scrolls vertically or horizontally. I have rolled my own
> ViewRecycler since there is potentially thousands of views that could
> compose the whole of what can be scrolled, but I only show 30 or so at
> any time. Think a zoomed in view of a calendar.
>
> I am running into performance problems when I add the views that are
> about to be seen, onMeasure is called on the RelativeLayout cascading
> down to onMeasure getting called on all of it's child views. I already
> have the calculated size of how big the RelativeLayout will ever be
> and have set that on it's LayoutParameters, so measuring the ViewGroup
> isn't necessary, nor is re-measuring the Views that have already been
> added with their final size and the newly added view has no bearing on
> those views.
>
> Is there a recommended way to bypass these onMeasure calls or at least
> onMeasure calling measureChildren?
>
> Also posted this on stackoverflow with example code to demonstrate the
> undesired behavior:
> http://stackoverflow.com/questions/6298827/can-onmeasure-be-skipped-when-adding-a-view-to-a-viewgroup
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] New added folder to app

2011-06-09 Thread KC203
Hi ,

 In my android , i am creating multiple folders say X1 , X2 , X3
so on , and each have list of files which needs to be displayed to
user for selection
I am trying to read the files in say folder X1 , how do i go about
doing that , whats the relative path which would help get list of
files in folder X1

Thanks
Kavitha

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

2011-06-09 Thread Miguel Morales
See: http://developer.android.com/guide/topics/data/data-storage.html

On Thu, Jun 9, 2011 at 2:49 PM, KC203  wrote:

> Hi ,
>
> In my android , i am creating multiple folders say X1 , X2 , X3
> so on , and each have list of files which needs to be displayed to
> user for selection
> I am trying to read the files in say folder X1 , how do i go about
> doing that , whats the relative path which would help get list of
> files in folder X1
>
> Thanks
> Kavitha
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

[android-developers] Re: New added folder to app

2011-06-09 Thread KC203
But that would be storing and deleting when the app in running on the
device , i am packing this folder and files along with .apk

On Jun 9, 2:51 pm, Miguel Morales  wrote:
> See:http://developer.android.com/guide/topics/data/data-storage.html
>
>
>
>
>
>
>
>
>
> On Thu, Jun 9, 2011 at 2:49 PM, KC203  wrote:
> > Hi ,
>
> >     In my android , i am creating multiple folders say X1 , X2 , X3
> > so on , and each have list of files which needs to be displayed to
> > user for selection
> > I am trying to read the files in say folder X1 , how do i go about
> > doing that , whats the relative path which would help get list of
> > files in folder X1
>
> > Thanks
> > Kavitha
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx

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


[android-developers] Re: Updating a service with data from an activity

2011-06-09 Thread Ab Caballero
I reviewed the link, which is excellent. I have successfully bound the
activity to the service. I wrote all the binding into the activity and
then wrote the following into the service:

private final IBinder mBinder = new LocalBinder();
@Override
public IBinder onBind(Intent intent) {
return mBinder;
}

However, I am not sure how to go about "grabbing" the data from
activity for use in the service


On Jun 9, 7:31 am, TreKing  wrote:
> On Thu, Jun 9, 2011 at 9:19 AM, Ab Caballero  wrote:
> > I need to send data from an activity to a persistently running GPS service
> > and I'm not certain how to do this.
>
> http://developer.android.com/reference/android/app/Service.html#Local...
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


Re: [android-developers] Re: Updating a service with data from an activity

2011-06-09 Thread TreKing
On Thu, Jun 9, 2011 at 5:08 PM, Ab Caballero  wrote:

> However, I am not sure how to go about "grabbing" the data from activity
> for use in the service
>

Why would the Service need to "grab" anything? The Activity tells the
Service, which the Activity has a reference to, if and when something
changes.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: New added folder to app

2011-06-09 Thread Miguel Morales
Ah, then try checking: file:///android_asset
I *believe* this gets converted in the app to the path of your resource
folder.



On Thu, Jun 9, 2011 at 3:06 PM, KC203  wrote:

> But that would be storing and deleting when the app in running on the
> device , i am packing this folder and files along with .apk
>
> On Jun 9, 2:51 pm, Miguel Morales  wrote:
> > See:http://developer.android.com/guide/topics/data/data-storage.html
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jun 9, 2011 at 2:49 PM, KC203 
> wrote:
> > > Hi ,
> >
> > > In my android , i am creating multiple folders say X1 , X2 , X3
> > > so on , and each have list of files which needs to be displayed to
> > > user for selection
> > > I am trying to read the files in say folder X1 , how do i go about
> > > doing that , whats the relative path which would help get list of
> > > files in folder X1
> >
> > > Thanks
> > > Kavitha
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > ~ Jeremiah:9:23-24
> > Android 2D MMORPG:
> http://solrpg.com/,http://www.youtube.com/user/revoltingx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

[android-developers] SQLite complex query and handling results

2011-06-09 Thread Emanuele Ricci
Good evening ( for me ), I'm Emanuele a young android developer. 
I want to share with you my problem because I'm not finding a good solution.

I've 3 tables (in reality 5)

posts
categories
posts_categories

to create the many-to-many relation between posts and categories

I've created a ListFragment to show all my posts with their categories.

So I've created this query ( I don't write all the code [image: :)] )

SELECT posts._id, posts.post_title, categories.category_name FROM posts LEFT 
OUTER JOIN posts_categories ON posts_categories.post_id=posts.post_id LEFT 
OUTER JOIN categories ON 
posts_categories.category_id=categories.category_id;

So if I have 2 post with 2 category each that query will return 4 records. 
Am I wrong?
So in my Cursor I have 4 record but what I really need is to collect datas 
from the cursor and display only what I really need.

In this case I cannot use a CursorAdapter to display my data because it will 
insert 4 item in the ListFragment.

And I don't want to load only post and than for each post load categories 
because if I have 100 posts I will do 1 query to select all posts and 100 
query to select categories.


What can I do? I need an expert advice! Which is the best way to handle this 
situation?
Have you ever faced this problem?

Thank you very much. Emanuele Ricci.

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

2011-06-09 Thread tamer hatoum
thank you of you guys, acctually I have donwloaded the book and took a
look on it, it have a lot on information, but i need a time to read it
all , but I need a solution to my request ...
regards..

On Jun 9, 11:46 pm, Mark Murphy  wrote:
> Reto, in particular, has come out against piracy of his book, the one
> being suggested as available "without paying":
>
> http://blog.radioactiveyak.com/2011/05/my-attitude-towards-piracy-of-...
>
> If you need free books, older editions of mine are available under a
> Creative Commons license from my Web site -- look for the
> "Four-to-Free Guarantee".
>
> On Thu, Jun 9, 2011 at 4:43 PM, Kristopher Micinski
>
>
>
>
>
>
>
>
>
>  wrote:
> > I think the typical practice on this list is not to suggest giving books
> > away that sell for money.
>
> > Because it's not uncommon for the authors to maintain some presence on this
> > list.
>
> > Kris
>
> > On Thu, Jun 9, 2011 at 4:40 PM,tamerhatoum
> > wrote:
>
> >> thank you I get the book Professional Android 2 Application
> >> Development  without paying you want a copy???
> >> this helps a lot .. thanks...
>
> >> On Jun 9, 7:57 pm, James Ots  wrote:
> >> > There's a whole load of sample code on the Android developer website:
>
> >> >http://developer.android.com/resources/browser.html?tag=sample
>
> >> > I'd suggest learning a bit about android development by playing with
> >> > some of
> >> > the samples there and reading the documentation on the site. You might
> >> > also
> >> > want to buy this book - I've not read it, but I've heard good reviews of
> >> > it:
>
> >> >http://www.amazon.com/Professional-Android-Application-Development-Pr...
>
> >> > James
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in Oslo:http://bit.ly/fjBo24

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

2011-06-09 Thread Miguel Morales
Why steal a book when there's perfectly good information available all over
the internet?
You need to break your problem into sections.  Like any other program even
written.

First, use some dummy information and don't even worry about fetching it
from the web server.

Then figure out how to handle the click event and how to display your PDF
content.
(That might be your real challenge if you plan on writing your own PDF
reader.)

Once you've figure this out, figure out how to properly pull the information
and substitute the dummy information you used before with this new server
information.

Continue until you have an app you can call your own.

On Thu, Jun 9, 2011 at 3:35 PM, tamer hatoum wrote:

> thank you of you guys, acctually I have donwloaded the book and took a
> look on it, it have a lot on information, but i need a time to read it
> all , but I need a solution to my request ...
> regards..
>
> On Jun 9, 11:46 pm, Mark Murphy  wrote:
> > Reto, in particular, has come out against piracy of his book, the one
> > being suggested as available "without paying":
> >
> > http://blog.radioactiveyak.com/2011/05/my-attitude-towards-piracy-of-...
> >
> > If you need free books, older editions of mine are available under a
> > Creative Commons license from my Web site -- look for the
> > "Four-to-Free Guarantee".
> >
> > On Thu, Jun 9, 2011 at 4:43 PM, Kristopher Micinski
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  wrote:
> > > I think the typical practice on this list is not to suggest giving
> books
> > > away that sell for money.
> >
> > > Because it's not uncommon for the authors to maintain some presence on
> this
> > > list.
> >
> > > Kris
> >
> > > On Thu, Jun 9, 2011 at 4:40 PM,tamerhatoum
> > > wrote:
> >
> > >> thank you I get the book Professional Android 2 Application
> > >> Development  without paying you want a copy???
> > >> this helps a lot .. thanks...
> >
> > >> On Jun 9, 7:57 pm, James Ots  wrote:
> > >> > There's a whole load of sample code on the Android developer
> website:
> >
> > >> >http://developer.android.com/resources/browser.html?tag=sample
> >
> > >> > I'd suggest learning a bit about android development by playing with
> > >> > some of
> > >> > the samples there and reading the documentation on the site. You
> might
> > >> > also
> > >> > want to buy this book - I've not read it, but I've heard good
> reviews of
> > >> > it:
> >
> > >> >
> http://www.amazon.com/Professional-Android-Application-Development-Pr...
> >
> > >> > James
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > Android Training in Oslo:http://bit.ly/fjBo24
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

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

2011-06-09 Thread Fred Niggle
Please put some effort into demonstrating your efforts, you cannot expect us
to do your work for you.

If you need a developer to complete your job I am available, my rates start
at £35 ph (GBP).

On 9 Jun 2011 23:35, "tamer hatoum"  wrote:

thank you of you guys, acctually I have donwloaded the book and took a
look on it, it have a lot on information, but i need a time to read it
all , but I need a solution to my request ...
regards..


On Jun 9, 11:46 pm, Mark Murphy  wrote:
> Reto, in particular, has come ou...
> http://blog.radioactiveyak.com/2011/05/my-attitude-towards-piracy-of-...

>
> If you need free books, older editions of mine are available under a
> Creative Commons license ...

>  wrote:
> > I think the typical practice on this list is not to suggest gi...
> > On Thu, Jun 9, 2011 at 4:40 PM,tamerhatoum

> > wrote:
>
> >> thank you I get the book Professional Android 2 Application
> >> Development  with...
> Mark Murphy (a Commons Guy)http://commonsware.com|
http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

>
> Android Training in Oslo:http://bit.ly/fjBo24

-- 
You received this message because you are sub...

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

2011-06-09 Thread Miguel Morales
Yeah, also if this is for some sort of oversea dev firm.  Please leave the
development to competent American programmers and refuse the work if you are
unable to do it well.
It's bad enough that good jobs are going overseas, but the fact that it's
being done by incompetent programmers is even worse.

On Thu, Jun 9, 2011 at 3:45 PM, Fred Niggle wrote:

> Please put some effort into demonstrating your efforts, you cannot expect
> us to do your work for you.
>
> If you need a developer to complete your job I am available, my rates start
> at £35 ph (GBP).
>
> On 9 Jun 2011 23:35, "tamer hatoum"  wrote:
>
> thank you of you guys, acctually I have donwloaded the book and took a
> look on it, it have a lot on information, but i need a time to read it
> all , but I need a solution to my request ...
> regards..
>
>
> On Jun 9, 11:46 pm, Mark Murphy  wrote:
> > Reto, in particular, has come ou...
>
> > http://blog.radioactiveyak.com/2011/05/my-attitude-towards-piracy-of-...
>
> >
> > If you need free books, older editions of mine are available under a
> > Creative Commons license ...
>
> >  wrote:
> > > I think the typical practice on this list is not to suggest gi...
> > > On Thu, Jun 9, 2011 at 4:40 PM,tamerhatoum
>
> > > wrote:
> >
> > >> thank you I get the book Professional Android 2 Application
> > >> Development  with...
>
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> >
> > Android Training in Oslo:http://bit.ly/fjBo24
>
> --
> You received this message because you are sub...
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/,
http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: EditText stops displaying characters as I'm typing?

2011-06-09 Thread Ben S
Looks great, starred it. :-)

On Jun 8, 6:02 pm, Eric Carman  wrote:
> I've submitted a bug report. I don't know what to do about going further
> with this.
>
> I setup an inherited class so that I could throw some logging into the
> EditText in hopes of finding a pattern or blip. No joy.
>
> Bug: 17508
>
> Please feel free to elaborate or correct anything I might have said.
>
> Thank you.

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


[android-developers] Re: New added folder to app

2011-06-09 Thread KC203
Apart from asset and raw is there no way i can define my own folder
and try reading files from it ???
I mean , adding an additional folder and reading using relative path
seems to be very complicated

On Jun 9, 3:16 pm, Miguel Morales  wrote:
> Ah, then try checking: file:///android_asset
> I *believe* this gets converted in the app to the path of your resource
> folder.
>
>
>
>
>
>
>
>
>
> On Thu, Jun 9, 2011 at 3:06 PM, KC203  wrote:
> > But that would be storing and deleting when the app in running on the
> > device , i am packing this folder and files along with .apk
>
> > On Jun 9, 2:51 pm, Miguel Morales  wrote:
> > > See:http://developer.android.com/guide/topics/data/data-storage.html
>
> > > On Thu, Jun 9, 2011 at 2:49 PM, KC203 
> > wrote:
> > > > Hi ,
>
> > > >     In my android , i am creating multiple folders say X1 , X2 , X3
> > > > so on , and each have list of files which needs to be displayed to
> > > > user for selection
> > > > I am trying to read the files in say folder X1 , how do i go about
> > > > doing that , whats the relative path which would help get list of
> > > > files in folder X1
>
> > > > Thanks
> > > > Kavitha
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > ~ Jeremiah:9:23-24
> > > Android 2D MMORPG:
> >http://solrpg.com/,http://www.youtube.com/user/revoltingx
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG:http://solrpg.com/,http://www.youtube.com/user/revoltingx

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: EditText stops displaying characters as I'm typing?

2011-06-09 Thread Fred Niggle
What happens if you re-assign it for example:
EditText ed=(EditText)findViewById(R.id.editText1);
ed.setText(xnumber);

and simple re-load the .setText ?

Just a thought?

On 10/06/2011, Ben S  wrote:
> Looks great, starred it. :-)
>
> On Jun 8, 6:02 pm, Eric Carman  wrote:
>> I've submitted a bug report. I don't know what to do about going further
>> with this.
>>
>> I setup an inherited class so that I could throw some logging into the
>> EditText in hopes of finding a pattern or blip. No joy.
>>
>> Bug: 17508
>>
>> Please feel free to elaborate or correct anything I might have said.
>>
>> Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Manish Garg
Is there any other widget available to give the impression like nested
tab activity.
I was able to create nested tab activity but sometime it get crashed
like showing dialog from the child activity of the nested tab activity

On Jun 9, 5:22 pm, Dianne Hackborn  wrote:
> No it is not.  There is only one level of nesting of activities.
>
>
>
>
>
> On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg  wrote:
> > Hi All,
>
> > I want to implement nested tab activity but getting exception in some
> > cases like at the time of calling dialog.show from the activity of the
> > nested activity and during drawing grid view inside nested activity.
>
> > Regards,
> > Manish Garg
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- 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


Re: [android-developers] Re: Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Dianne Hackborn
Just use the tab widget yourself.

On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg  wrote:

> Is there any other widget available to give the impression like nested
> tab activity.
> I was able to create nested tab activity but sometime it get crashed
> like showing dialog from the child activity of the nested tab activity
>
> On Jun 9, 5:22 pm, Dianne Hackborn  wrote:
> > No it is not.  There is only one level of nesting of activities.
> >
> >
> >
> >
> >
> > On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg 
> wrote:
> > > Hi All,
> >
> > > I want to implement nested tab activity but getting exception in some
> > > cases like at the time of calling dialog.show from the activity of the
> > > nested activity and during drawing grid view inside nested activity.
> >
> > > Regards,
> > > Manish Garg
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.- 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
>



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

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

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

[android-developers] screen orientation.

2011-06-09 Thread Android K
Hello,
I am trying to control the orientation from which I start. It works fine if
I hold the phone in portrait mode and start my app. Otherwise dialog gets if
I start in landscape position.

Any help is appreciated.

Thanks,
Harsha


*public* *void* onCreate(Bundle savedInstanceState)

{

 *super*.onCreate(savedInstanceState);

setRequestedOrientation(ActivityInfo.*SCREEN_ORIENTATION_PORTRAIT*);



showDialog(TEST);

}



I tried using Manisfest file too.





http://schemas.android.com/apk/res/android";
*

package=*"com.playWAV"
*

android:versionCode=*"1"
*

android:versionName=*"1.0"
*

android:screenOrientation=*"portrait"*>







http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: screen orientation.

2011-06-09 Thread Android K
I meant Dialog box gets stuck and I can't remove the dialog box.

On Thu, Jun 9, 2011 at 7:46 PM, Android K wrote:

> Hello,
> I am trying to control the orientation from which I start. It works fine if
> I hold the phone in portrait mode and start my app. Otherwise dialog gets if
> I start in landscape position.
>
> Any help is appreciated.
>
> Thanks,
> Harsha
>
>
> *public* *void* onCreate(Bundle savedInstanceState)
>
> {
>
>  *super*.onCreate(savedInstanceState);
>
> setRequestedOrientation(ActivityInfo.
> *SCREEN_ORIENTATION_PORTRAIT*);
>
>
>
> showDialog(TEST);
>
> }
>
>
>
> I tried using Manisfest file too.
>
>
>
>  xml version=*"1.0"* encoding=*"utf-8"*?>
>
> <
> manifest xmlns:android=*"http://schemas.android.com/apk/res/android"*
>
> package=*"com.playWAV"*
>
> android:versionCode=*"1"*
>
> android:versionName=*"1.0"*
>
> android:screenOrientation=*"portrait"*>
>
> 
> android:name=*"android.permission.INTERNET"* />
>
> 
> android:name=*"android.permission.READ_CONTACTS"* />
>
> 
> android:name=*"android.permission.READ_PHONE_STATE"* />
>
> 
> android:label=*"@string/app_name"*
>
> android:screenOrientation=*"portrait"*
>

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

[android-developers] Re: Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Manish Garg
Sorry I didn't get your point. You said that it is not possible to
have more than one level. I had used tab widget only for displaying
nested level but facing application crash at the time of displaying
dialog from the child activity

android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is
not valid; is your activity running?


On Jun 9, 7:39 pm, Dianne Hackborn  wrote:
> Just use the tab widget yourself.
>
>
>
>
>
> On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg  wrote:
> > Is there any other widget available to give the impression like nested
> > tab activity.
> > I was able to create nested tab activity but sometime it get crashed
> > like showing dialog from the child activity of the nested tab activity
>
> > On Jun 9, 5:22 pm, Dianne Hackborn  wrote:
> > > No it is not.  There is only one level of nesting of activities.
>
> > > On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg 
> > wrote:
> > > > Hi All,
>
> > > > I want to implement nested tab activity but getting exception in some
> > > > cases like at the time of calling dialog.show from the activity of the
> > > > nested activity and during drawing grid view inside nested activity.
>
> > > > Regards,
> > > > Manish Garg
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.- 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- 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] Re: SQLite complex query and handling results

2011-06-09 Thread Zsolt Vasvari

Use a WHERE clause so you only get 2 rows returned.
On Jun 10, 6:17 am, Emanuele Ricci  wrote:
> Good evening ( for me ), I'm Emanuele a young android developer.
> I want to share with you my problem because I'm not finding a good solution.
>
> I've 3 tables (in reality 5)
>
> posts
> categories
> posts_categories
>
> to create the many-to-many relation between posts and categories
>
> I've created a ListFragment to show all my posts with their categories.
>
> So I've created this query ( I don't write all the code [image: :)] )
>
> SELECT posts._id, posts.post_title, categories.category_name FROM posts LEFT
> OUTER JOIN posts_categories ON posts_categories.post_id=posts.post_id LEFT
> OUTER JOIN categories ON
> posts_categories.category_id=categories.category_id;
>
> So if I have 2 post with 2 category each that query will return 4 records.
> Am I wrong?
> So in my Cursor I have 4 record but what I really need is to collect datas
> from the cursor and display only what I really need.
>
> In this case I cannot use a CursorAdapter to display my data because it will
> insert 4 item in the ListFragment.
>
> And I don't want to load only post and than for each post load categories
> because if I have 100 posts I will do 1 query to select all posts and 100
> query to select categories.
>
> What can I do? I need an expert advice! Which is the best way to handle this
> situation?
> Have you ever faced this problem?
>
> Thank you very much. Emanuele Ricci.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Zsolt Vasvari
Xoom is absolutely not a US only device.   You can buy it in Singapore
where I live from official channels.   Also, 3.1 still only got the 3
languages which makes your 'reference " Honeycomb device pretty
useless for localization testing -

On Jun 10, 2:28 am, Dianne Hackborn  wrote:
> The initial Xoom was a US-only device, so the other languages were not
> needed.  Since that was the first release of Android 3.0, generating all of
> the translations would have delayed the product for stuff it didn't need.
>
> It is just going to be a fact of life that different devices will ship with
> different languages depending on the places it is being shipped and other
> considerations.
>
>
>
>
>
>
>
>
>
> On Wed, Jun 8, 2011 at 5:57 PM, Zsolt Vasvari  wrote:
> > But even my Xoom only includes 3 languages so it's almost useless for
> > testing translations -
>
> > On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> > > Nexus One has a smaller partition for the system image, so can't fit
> > every
> > > possible thing.  New translations were added to the platform after the
> > > initial Nexus One release, but those new translations are not included on
> > N1
> > > due to the limited space.
>
> > > On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > > > yes those fonts are for the last platform, I guess Gingerbread that
> > > > provides an extended language support.
> > > > However I noticed something strange... On my Nexus S there are a lot
> > > > of languages supported selectable, on the other hand on my Nexus One
> > > > (always 2.3.4) there are only a subset of those.
>
> > > > I expected they were the same... I am a bit confused! :|
>
> > > > On 8 Giu, 12:23, James Ots  wrote:
> > > > > Here are the fonts in the android source.
>
> >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
> > > > > These are listed in the makefile
>
> > > > > DroidSans.ttf
> > > > > DroidSans-Bold.ttf
> > > > > DroidSansArabic.ttf
> > > > > DroidSansHebrew.ttf
> > > > > DroidSansThai.ttf
> > > > > DroidSerif-Regular.ttf
> > > > > DroidSerif-Bold.ttf
> > > > > DroidSerif-Italic.ttf
> > > > > DroidSerif-BoldItalic.ttf
> > > > > DroidSansMono.ttf
> > > > > Clockopia.ttf
>
> > > > > Although I can't see any guarantee that these will be there, I think
> > you
> > > > can probably assume that any Compatible Android device will have these
> > fonts
> > > > available.
>
> > > > > James
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


Re: [android-developers] Re: Is it possible for TabActivity to have child TabActivity

2011-06-09 Thread Dianne Hackborn
Don't nest activities.  Directly use a tab widget to show your tabs, and
manually control the content that is shown based on the tab.

On Thu, Jun 9, 2011 at 4:53 PM, Manish Garg  wrote:

> Sorry I didn't get your point. You said that it is not possible to
> have more than one level. I had used tab widget only for displaying
> nested level but facing application crash at the time of displaying
> dialog from the child activity
>
> android.view.WindowManager$BadTokenException: Unable to add window --
> token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is
> not valid; is your activity running?
>
>
> On Jun 9, 7:39 pm, Dianne Hackborn  wrote:
> > Just use the tab widget yourself.
> >
> >
> >
> >
> >
> > On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg 
> wrote:
> > > Is there any other widget available to give the impression like nested
> > > tab activity.
> > > I was able to create nested tab activity but sometime it get crashed
> > > like showing dialog from the child activity of the nested tab activity
> >
> > > On Jun 9, 5:22 pm, Dianne Hackborn  wrote:
> > > > No it is not.  There is only one level of nesting of activities.
> >
> > > > On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg 
> > > wrote:
> > > > > Hi All,
> >
> > > > > I want to implement nested tab activity but getting exception in
> some
> > > > > cases like at the time of calling dialog.show from the activity of
> the
> > > > > nested activity and during drawing grid view inside nested
> activity.
> >
> > > > > Regards,
> > > > > Manish Garg
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see
> > > and
> > > > answer them.- 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.- 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
>



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

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

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

  1   2   3   >