[android-developers] Re: Manipulate Drawable Resource

2008-12-05 Thread mathiastck

Also not sure what you are talking about, but generically, from code,
if you want a Drawable object that can be modified, I had that
problem.  I used a StateListDrawable.

http://code.google.com/android/reference/android/graphics/drawable/StateListDrawable.html

It was for Drawables in an ImageSpan.  They started out as default
placeholder drawables while the Bitmap was loading from the network.
After the image came back from the network the handler called addState
on the StateListDrawable with the new BitmapDrawable to be displayed,
and called setState on it.  The problem was it didn't measure right
afterwards so I had to re call setText on the TextView passing it the
Spanned holding the Drawable that had been updated.  Then it worked
great.

On Dec 5, 9:57 am, pjv <[EMAIL PROTECTED]> wrote:
> Just making sure we are talking about notifications (and icons
> therein) at the top of the screen?
>
> From what I recall, the way notifications work is that you can refresh
> them in place by sending out a new notification with the same id.
> Ofcourse this would give you a chance to update the icon too. Can't
> remember how this is done exactly, but look at any basic notification
> examples or my Android's Fortune app's source code (which refreshes
> the fortune cookie that is offered as a notification).
>
> Is this simply what you wanted or am I not understanding you?
>
> On 1 dec, 02:28, Kyle <[EMAIL PROTECTED]> wrote:
>
> > bump
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: INSTALL_FAILED_UPDATE_INCOMPATIBLE

2008-12-05 Thread Urakagi

I'm also stuck at here, this is really terrible...
The final way is factory reset, buy I honestly don't want to do it...

On 11月4日, 午前12:57, Cheryl Sedota <[EMAIL PROTECTED]> wrote:
> What do you mean by "uninstall it fully"?  I did an "adb uninstall
> " but that does not appear to "fully" uninstall it :)
> This is on the G1 so I have no access to the /system or /data folders.
>
> Thanks,
> Cheryl
>
> On Nov 3, 10:32 am, Michael <[EMAIL PROTECTED]> wrote:
>
> > Did you sign different versions of your app with different keys?  I
> > had this error message when I changed from the debug key to a real
> > key, and what I had to do was reinstall the old version, uninstall it
> > fully, then install my new version.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
I am trying to debug IM application.Just to understand the current code
flow..

Thanks
Steve

On Sat, Dec 6, 2008 at 11:28 AM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:

>
> What are you trying to debug? an android application built with the
> SDK or the ddms plugin?
>
> Xav
>
> On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
> <[EMAIL PROTECTED]> wrote:
> > Hi Xav,
> >
> > Sorry for the confusion let me explain once again.
> >
> > 1.using repo get full source
> > 2.Add project in Eclipse  say "Myandroid"
> > 2.Now add the ddms plugin as we discussed earlier.
> > (i have copied 3 jar files to /libs folder to resolve errors in eclipse)
> >
> > Now am thinking to attach ( mission debug) as per the document
> > (http://source.android.com/using-eclipse)
> > 1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
> > *throws exception
> >
> > *or is there any other way i can debug !!
> >
> > thanks
> > steve
> >
> >
> >
> >
> >
> > On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm a bit confused here. After making the ddms _plugin_ compile in
> >> Eclipse, you are launching the standalone version from the sdk...
> >>
> >>
> >> On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi guys,
> >> >
> >> > Now no erros :)
> >> >
> >> > btw now ddms fails to load... :(
> >> >
> >> > i have created com.android.ide.
> >> >>
> >> >> eclipse.ddms/libs/ folder and copied the required *.jar files from
> >> >> /out/host/linux-x86/framework/ ..
> >>
> >> You probably shouldn't have copied them. btw we fixed the scripts so
> >> running them will do the proper thing (ie make symlinks so that if you
> >> modify them, Eclipse will build the plugin with the newer version).
> >>
> >> > 2. now goto
> >> > /out/host/linux-x86/bin
> >> > and ran ./ddms
> >> >
> >> > gettign the below exception ! am i missing something again ...
> >> >
> >> >
> >> >
> -
> >> > (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too
> large
> >> > 45:45 E/ddms: shutting down due to uncaught exception
> >> > 45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
> >> > org.GNOME.Accessibility.JavaBridge
> >> > at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
> >>
> >> This is quite surprising.
> >> In prebuilt/Linux/swt there is the Linux version of SWT. we
> >> selectively take some of those files during the build and put them in
> >> out/host/Linux/lib (for the native libs) and out/host/Linux/framework
> >> for the jar files.
> >> You may want to see what native library/jar you are missing by
> >> experiment. For information SWT comes from here:
> >>
> >>
> http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt
> >>
> >> Xav
> >>
> >>
> >
> >
> > >
> >
>
> >
>

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



[android-developers] ::CPU usage

2008-12-05 Thread Imran

Hi All...!!!

   i have developed a small  game application... i have a
problem... when i run the application  it is using 50% of CPU (mine is
2Ghz processor )... will this create a problem in actual device.. if
soo how can i over come it...

Thanks in advance for any Replays...!!!

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



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Xavier Ducrohet

What are you trying to debug? an android application built with the
SDK or the ddms plugin?

Xav

On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi Xav,
>
> Sorry for the confusion let me explain once again.
>
> 1.using repo get full source
> 2.Add project in Eclipse  say "Myandroid"
> 2.Now add the ddms plugin as we discussed earlier.
> (i have copied 3 jar files to /libs folder to resolve errors in eclipse)
>
> Now am thinking to attach ( mission debug) as per the document
> (http://source.android.com/using-eclipse)
> 1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
> *throws exception
>
> *or is there any other way i can debug !!
>
> thanks
> steve
>
>
>
>
>
> On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
>>
>> I'm a bit confused here. After making the ddms _plugin_ compile in
>> Eclipse, you are launching the standalone version from the sdk...
>>
>>
>> On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
>> <[EMAIL PROTECTED]> wrote:
>> > Hi guys,
>> >
>> > Now no erros :)
>> >
>> > btw now ddms fails to load... :(
>> >
>> > i have created com.android.ide.
>> >>
>> >> eclipse.ddms/libs/ folder and copied the required *.jar files from
>> >> /out/host/linux-x86/framework/ ..
>>
>> You probably shouldn't have copied them. btw we fixed the scripts so
>> running them will do the proper thing (ie make symlinks so that if you
>> modify them, Eclipse will build the plugin with the newer version).
>>
>> > 2. now goto
>> > /out/host/linux-x86/bin
>> > and ran ./ddms
>> >
>> > gettign the below exception ! am i missing something again ...
>> >
>> >
>> > -
>> > (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
>> > 45:45 E/ddms: shutting down due to uncaught exception
>> > 45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
>> > org.GNOME.Accessibility.JavaBridge
>> > at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
>>
>> This is quite surprising.
>> In prebuilt/Linux/swt there is the Linux version of SWT. we
>> selectively take some of those files during the build and put them in
>> out/host/Linux/lib (for the native libs) and out/host/Linux/framework
>> for the jar files.
>> You may want to see what native library/jar you are missing by
>> experiment. For information SWT comes from here:
>>
>> http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt
>>
>> Xav
>>
>>
>
>
> >
>

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



[android-developers] Re: OpenGL Troubles on the G1

2008-12-05 Thread CaseyB

It was the ColorArrays!!  When I take out gl.glEnableClientState
(GL10.GL_COLOR_ARRAY); it works, add it back in and it doesn't!

On Dec 5, 9:34 pm, CaseyB <[EMAIL PROTECTED]> wrote:
> I've gone through my code and the Kube code and they look the same!
> The only thing that I can see that's different is that I use GL_FLOAT
> when I define my verts and normals and the Kube program used
> GL_FIXED.  Could it be that the G1 doesn't support floating point
> coordinates?
>
> On Dec 3, 10:57 pm, CaseyB <[EMAIL PROTECTED]> wrote:
>
> > I'm using the GLSurfaceView from the examples and here's all of my
> > initialization code:
>
> > /***[Activity]***/
> > public class OpenGLES extends Activity
> > {
> >         GLSurfaceView mView;
>
> >         /** Called when the activity is first created. */
> >         @Override
> >         public void onCreate(Bundle savedInstanceState)
> >         {
> >                 super.onCreate(savedInstanceState);
> >                 requestWindowFeature(Window.FEATURE_NO_TITLE);
>
> >                 mView = new GLSurfaceView(getApplication());
> >                 mView.setRenderer(new TutorialRenderer(getApplication()));
> >                 setContentView(mView);
> >         }
>
> > }
>
> > /***[Renderer]***/
> > public class TutorialRenderer implements GLSurfaceView.Renderer
> > {
> >         private Context mContext;
> >         private boolean mCreateWorld = true;
> >         private Cube mCube;
> >         private Ship mShip;
> >         private float mAngle = 0;
> >         private int mChange = 1;
>
> >         public TutorialRenderer(Context context)
> >         {
> >                 mContext = context;
> >         }
>
> >         @Override
> >         public void drawFrame(GL10 gl)
> >         {
> >                 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | 
> > GL10.GL_DEPTH_BUFFER_BIT);
> >                 gl.glLoadIdentity();
>
> >                 GLU.gluLookAt(gl, 0.0f, 2.0f, 2.0f, 0.0f, 0.5f, 0.0f, 0.0f, 
> > 1.0f,
> > 0.0f);
>
> >                 gl.glRotatef(mAngle, 0.0f, 1.0f, 0.0f);
>
> >                 gl.glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
> >                 mCube.draw(gl);
>
> >                 gl.glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
> >                 gl.glTranslatef(-0.25f, 0.25f, -0.75f);
> >                 mShip.draw(gl);
>
> >                 gl.glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
> >                 gl.glTranslatef(0.5f, -0.25f, 1.5f);
> >                 mCube.draw(gl);
>
> >                 gl.glFlush();
>
> >                 mAngle += mChange;
> >                 if(mAngle > 360) mAngle = 0;
> >         }
>
> >         @Override
> >         public int[] getConfigSpec()
> >         {
> >                 // Need a depth buffer, don't care about color depth.
> >                 int[] configSpec = {
> >                                 EGL10.EGL_DEPTH_SIZE,
> >                                 16,
> >                                 EGL10.EGL_NONE};
> >                 return configSpec;
> >         }
>
> >         @Override
> >         public void sizeChanged(GL10 gl, int width, int height)
> >         {
> >                 gl.glMatrixMode(GL10.GL_PROJECTION);
> >                 gl.glLoadIdentity();
>
> >                 if(height == 0) height = 1;
> >                 gl.glViewport(0, 0, width, height);
> >                 GLU.gluPerspective(gl, 45.0f, 1.0f * width / height, 1.0f, 
> > 100.0f);
>
> >                 gl.glMatrixMode(GL10.GL_MODELVIEW);
> >                 gl.glLoadIdentity();
> >         }
>
> >         @Override
> >         public void surfaceCreated(GL10 gl)
> >         {
> >                 gl.glEnable(GL10.GL_COLOR_MATERIAL);
>
> >                 gl.glEnable(GL10.GL_LIGHTING);
> >                 gl.glEnable(GL10.GL_LIGHT0);
>
> >                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, new float[]{ 
> > 0.3f,
> > 0.3f, 0.3f, 1.0f }, 0);
> >                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_DIFFUSE, new float[]{ 
> > 1.0f,
> > 1.0f, 1.0f, 1.0f }, 0);
> >                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, new float[]{ 
> > 1.0f,
> > 1.0f, 1.0f, 0.0f }, 0);
>
> >                 gl.glEnable(GL10.GL_DEPTH_TEST);
> >                 gl.glDepthFunc(GL10.GL_LEQUAL);
>
> >                 gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
> >                 gl.glClearDepthf(1.0f);
>
> >                 if(mCreateWorld)
> >                 {
> >                         createWorld(gl);
> >                         mCreateWorld = false;
> >                 }
>
> >         gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
> >         gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
> >         gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
>
> >         gl.glEnable(GL10.GL_CULL_FACE);
> >         gl.glShadeModel(GL10.GL_SMOOTH);
> >         }
>
> >         private void createWorld(GL10 gl)
> >         {
> >                 mCube = new Cube();
> >                 mShip = new Ship(mContext);
> >         }
>
> > }
>
> > O

[android-developers] Re: Custom Style

2008-12-05 Thread Jason Parekh
You can just use the default style of the horizontal progress bar and in
addition set the progressDrawable to the resource for your XML file.

jason

On Wed, Dec 3, 2008 at 6:06 PM, Protocol-X <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I am trying to implement a custom style to a progress bar.  I have the
> style but i cannot seem to find any documentation on how to actually
> add it since there is no style folder that can be accessed that i see
> atleast.
>
> Can anyone help?
>
> http://schemas.android.com/apk/res/
> android">
>
>
>
>
>android:startColor="#ff9d9e9d"
>android:centerColor="#ff5a5d5a"
>android:centerY="0.75"
>android:endColor="#ff747674"
>android:angle="270"
>/>
>
>
>
>
>
>
>
>android:startColor="#80ffd300"
>android:centerColor="#80ffb600"
>android:centerY="0.75"
>android:endColor="#a0ffcb00"
>android:angle="270"
>/>
>
>
>
>
>
>
>
>
>android:startColor="#d300"
>android:centerColor="#b600"
>android:centerY="0.75"
>android:endColor="#cb00"
>android:angle="270"
>/>
>
>
>
>
> 
> >
>

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



[android-developers] Re: Manipulate Drawable Resource

2008-12-05 Thread pjv

Just making sure we are talking about notifications (and icons
therein) at the top of the screen?

>From what I recall, the way notifications work is that you can refresh
them in place by sending out a new notification with the same id.
Ofcourse this would give you a chance to update the icon too. Can't
remember how this is done exactly, but look at any basic notification
examples or my Android's Fortune app's source code (which refreshes
the fortune cookie that is offered as a notification).

Is this simply what you wanted or am I not understanding you?

On 1 dec, 02:28, Kyle <[EMAIL PROTECTED]> wrote:
> bump

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



[android-developers] Re: G1 linux

2008-12-05 Thread [EMAIL PROTECTED]

I'm thinking I'll need to test on moko.. waiting on Android making me
nutty...

Blue Tooth heart rate software:
http://code.google.com/p/zephyropen/


On Nov 22, 8:54 am, Aurelio Lopez <[EMAIL PROTECTED]> wrote:
> Hi Jim:
>
> Is it possible to run Openmoko SO on other hardware than Freerunner?
> (thinking on iPaq  hx 4700). Same question would apply to Android. I
> think it's time to re-use old machines: better for Nature and our poor
> economy (i do no not care about big companies: they do care about
> themselves).
>
> Thx
>
> On 22 nov, 16:05, Jim Ancona <[EMAIL PROTECTED]> wrote:
>
> > If you're not wedded to the G1, you might consider the Openmoko
> > Freerunner (http://wiki.openmoko.org/wiki/Neo_FreeRunner), which has
> > Bluetooth, Wifi and GPS and runs several Linux distributions, as well
> > as Android.
>
> > Jim
>
> > On Nov 21, 3:56 pm, clark <[EMAIL PROTECTED]> wrote:
>
> > > True, but if his phone has upgraded to RC30 yet, then he could get
> > > root access and install debian alongside android which is detailed
> > > herehttp://www.saurik.com/id/10.
>
> > > Another possibility would be to hope that Android is upgraded to allow
> > > access to the bluetooth hardware through the SDK.  Then you could
> > > right a little java app to get the job done.
>
> > > On Nov 18, 3:07 pm, Diego Torres Milano <[EMAIL PROTECTED]> wrote:
>
> > > > On Nov 18, 11:51 pm, Rui Freitas <[EMAIL PROTECTED]> wrote:> Hi,
>
> > > > > I wanna now if is it possible to program for the G1 like a linux
> > > > > device. If so, how can i do it? Where can i find that kind of
> > > > > information?
>
> > > > Android is based on a Linux kernel but strictly speaking it's not
> > > > Linux. Android has no native windowing system, no glibc support and
> > > > doesn't include all of the libraries and utilities usually available
> > > > in a Linux system.
>
> > > > > Thanks,
> > > > > Rui- Hide quoted text -
>
> > > > - Show quoted text -- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -

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



[android-developers] Re: G1 linux

2008-12-05 Thread [EMAIL PROTECTED]

I might go moko or blackberry... waiting for BT in droid is a pain..
see my code and wiki on this here:

http://code.google.com/p/zephyropen/



On Nov 22, 8:54 am, Aurelio Lopez <[EMAIL PROTECTED]> wrote:
> Hi Jim:
>
> Is it possible to run Openmoko SO on other hardware than Freerunner?
> (thinking on iPaq  hx 4700). Same question would apply to Android. I
> think it's time to re-use old machines: better for Nature and our poor
> economy (i do no not care about big companies: they do care about
> themselves).
>
> Thx
>
> On 22 nov, 16:05, Jim Ancona <[EMAIL PROTECTED]> wrote:
>
> > If you're not wedded to the G1, you might consider the Openmoko
> > Freerunner (http://wiki.openmoko.org/wiki/Neo_FreeRunner), which has
> > Bluetooth, Wifi and GPS and runs several Linux distributions, as well
> > as Android.
>
> > Jim
>
> > On Nov 21, 3:56 pm, clark <[EMAIL PROTECTED]> wrote:
>
> > > True, but if his phone has upgraded to RC30 yet, then he could get
> > > root access and install debian alongside android which is detailed
> > > herehttp://www.saurik.com/id/10.
>
> > > Another possibility would be to hope that Android is upgraded to allow
> > > access to the bluetooth hardware through the SDK.  Then you could
> > > right a little java app to get the job done.
>
> > > On Nov 18, 3:07 pm, Diego Torres Milano <[EMAIL PROTECTED]> wrote:
>
> > > > On Nov 18, 11:51 pm, Rui Freitas <[EMAIL PROTECTED]> wrote:> Hi,
>
> > > > > I wanna now if is it possible to program for the G1 like a linux
> > > > > device. If so, how can i do it? Where can i find that kind of
> > > > > information?
>
> > > > Android is based on a Linux kernel but strictly speaking it's not
> > > > Linux. Android has no native windowing system, no glibc support and
> > > > doesn't include all of the libraries and utilities usually available
> > > > in a Linux system.
>
> > > > > Thanks,
> > > > > Rui- Hide quoted text -
>
> > > > - Show quoted text -- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -

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



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Bradley Young

I'm willing to take a look at this issue.  If you can provide any
additional information about duplicating this issue (I do not see it
in K-9), it would be most helpful.

For example, if the IMAP server that you use is one that I can get an
account on, or if you can provide specific emails that cause the
problem, it would be most helpful.

Bradley

On Dec 5, 10:11 am, SLSq <[EMAIL PROTECTED]> wrote:
> ... has the same kinds of problems as the builtin eMail client. This
> finding indicates problems with the underlying Android system.

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



[android-developers] Re: unable to see # in webview

2008-12-05 Thread Jon

I was trying to debug this for hours until I stumbled across this
post. Thanks, loadDataWithBaseURL works.

Is that intended functionality in loadData? It should definitely be
documented if so, very annoying.

On Nov 18, 9:27 am, joshv <[EMAIL PROTECTED]> wrote:
> UseWebView.loadDataWithBaseURL, use "dummy" for the base URL if your
> HTML is locally generated.  WebView.loadData, for some bizarre reason,
> munges the entire HTML document into a URL using the data: scheme.
> The url encoded clobbers %'s and #'s.
>
> On Nov 15, 1:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I have the similar problem with % (%).
>
> > On Nov 15, 1:00 pm, sori <[EMAIL PROTECTED]> wrote:
>
> > > I have the same problem and cannot find a solution.  Any help?
> > > -sori
>
> > > On Nov 6, 7:47 am, vel <[EMAIL PROTECTED]> wrote:
>
> > > >        finalWebViewwv = (WebView) findViewById(R.id.msgs);
> > > >        wv.loadData( "#", "text/html",
> > > > "utf-8");
>
> > > > nothing is displayed in thewebviewand once we try to load a 
> > > > #characterother characters following it are also not displayed
>
> > > > Pls any one can guide me why this weired behavior
>
> > > > Regards
> > > > Vel- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] images sent via text

2008-12-05 Thread rangouno

Hi, I would like to know why I can't save any images sent via text.
There should be an option to save an image on the phone. The majority
of phones have this option and the G1 does not have it. Otherwise, the
phone is awsome, keep up the good work.

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



[android-developers] Re: New SDK Available

2008-12-05 Thread mathiastck

Don't forget to mention they can buy an unlocked Android Dev Phone 1
(tm)!

On Dec 5, 7:00 pm, Dan Morrill <[EMAIL PROTECTED]> wrote:
> Hello, developers!  I wanted to call your attention to the new Android 1.0
> SDK, release 2 that we just made available.
>
> For full details, please see our blog 
> post:http://android-developers.blogspot.com/2008/12/new-resources-for-deve...
>
> - Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: java.lang.VerifyError in Android again

2008-12-05 Thread Claudio Veas

Yeah the problem is that the file that has this issue is internal of
the company that I work for and I cannot show it in a public space so
that was why I was so not specific about the bug. Any way if you know
which classes/methods/etc cause these kinds of problems Ill apreciate
it.
Thanks again
Claudio

On Dec 5, 11:48 pm, jacek <[EMAIL PROTECTED]> wrote:
> You need to give us more details on the exact verify error
>
> On Dec 5, 1:56 pm, Claudio Veas <[EMAIL PROTECTED]> wrote:
>
> > I was wondering if anybody knows which are the classes/interfaces/
> > fields/methods not
> > supported by Android because Im getting a Verify error and I cannot
> > identify which is the part of the class that is causing it.
> > thanks in advance
> > Claudio Veas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: getSharedPreferences

2008-12-05 Thread Brad Gies


Thank Mark... as always your advice is exactly what I needed. :) 

By the way, I just downloaded the 1.9 version of your book (wondered what
happened to 1.5... 1.8 but that's another question), and it is even better
than it was... except for one thing That's a god awful color of
green The red/maroon color you had before was much nicer :). 

But I guess if that's the biggest complaint I've got about the book that
pretty well says it all :). I hope you're doing well with it. To be honest,
I've gotten about ten times my moneys' worth from the book in free advice on
this list from you, so if I make money from my app, I'll buy a few copies of
it for some other developers ;). 




Sincerely,
 
Brad Gies
 
 
-
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com  www.truckerphone.com 
www.EDI-Easy.com  www.pricebunny.com
-
 
Moderation in everything, including abstinence
-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Murphy
Sent: Friday, December 05, 2008 2:12 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: getSharedPreferences


Brad Gies wrote:
> Can someone clarify how to use getSharedPreferences*(String 
>  name, 
> int mode) * ?
> 
> I have created a preferences.xlm file, added some Boolean preferences, 
> can edit them from an activity, but I can't seem to figure out how to 
> get the values into another activity in my application using 
> getSharedPreferences.
> 
> I know. it should be simple. and I'm sure it is. but I can't figure out 
> what name to put in or what mode.
> 
> Any help or links to sample code appreciated.

Use PreferencesManager.getDefaultSharedPreferences() instead. This will 
return the SharedPreferences object that lines up with the preference 
screen system.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
Hi Xav,

Sorry for the confusion let me explain once again.

1.using repo get full source
2.Add project in Eclipse  say "Myandroid"
2.Now add the ddms plugin as we discussed earlier.
(i have copied 3 jar files to /libs folder to resolve errors in eclipse)

Now am thinking to attach ( mission debug) as per the document (
http://source.android.com/using-eclipse)
1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
*throws exception

*or is there any other way i can debug !!

thanks
steve





On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:

>
> I'm a bit confused here. After making the ddms _plugin_ compile in
> Eclipse, you are launching the standalone version from the sdk...
>
>
> On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
> <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> >
> > Now no erros :)
> >
> > btw now ddms fails to load... :(
> >
> > i have created com.android.ide.
> >>
> >> eclipse.ddms/libs/ folder and copied the required *.jar files from
> >> /out/host/linux-x86/framework/ ..
>
> You probably shouldn't have copied them. btw we fixed the scripts so
> running them will do the proper thing (ie make symlinks so that if you
> modify them, Eclipse will build the plugin with the newer version).
>
> > 2. now goto
> > /out/host/linux-x86/bin
> > and ran ./ddms
> >
> > gettign the below exception ! am i missing something again ...
> >
> >
> -
> > (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
> > 45:45 E/ddms: shutting down due to uncaught exception
> > 45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
> > org.GNOME.Accessibility.JavaBridge
> > at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
>
> This is quite surprising.
> In prebuilt/Linux/swt there is the Linux version of SWT. we
> selectively take some of those files during the build and put them in
> out/host/Linux/lib (for the native libs) and out/host/Linux/framework
> for the jar files.
> You may want to see what native library/jar you are missing by
> experiment. For information SWT comes from here:
>
> http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt
>
> Xav
>
> >
>

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



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Xavier Ducrohet

I'm a bit confused here. After making the ddms _plugin_ compile in
Eclipse, you are launching the standalone version from the sdk...


On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Now no erros :)
>
> btw now ddms fails to load... :(
>
> i have created com.android.ide.
>>
>> eclipse.ddms/libs/ folder and copied the required *.jar files from
>> /out/host/linux-x86/framework/ ..

You probably shouldn't have copied them. btw we fixed the scripts so
running them will do the proper thing (ie make symlinks so that if you
modify them, Eclipse will build the plugin with the newer version).

> 2. now goto
> /out/host/linux-x86/bin
> and ran ./ddms
>
> gettign the below exception ! am i missing something again ...
>
> -
> (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
> 45:45 E/ddms: shutting down due to uncaught exception
> 45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
> org.GNOME.Accessibility.JavaBridge
> at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)

This is quite surprising.
In prebuilt/Linux/swt there is the Linux version of SWT. we
selectively take some of those files during the build and put them in
out/host/Linux/lib (for the native libs) and out/host/Linux/framework
for the jar files.
You may want to see what native library/jar you are missing by
experiment. For information SWT comes from here:
http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt

Xav

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



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
Hi guys,

Now no erros :)

btw now ddms fails to load... :(

i have created com.android.ide.
>
> eclipse.ddms/libs/ folder and copied the required *.jar files from
> /out/host/linux-x86/framework/ ..

2. now goto
/out/host/linux-x86/bin
and ran ./ddms

gettign the below exception ! am i missing something again ...

-
(ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
45:45 E/ddms: shutting down due to uncaught exception
45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
org.GNOME.Accessibility.JavaBridge
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:874)
at
sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:131)
at
javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1334)
at javax.swing.UIManager.initialize(UIManager.java:1421)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1409)
at javax.swing.UIManager.getDefaults(UIManager.java:659)
at javax.swing.UIManager.getColor(UIManager.java:701)
at org.jfree.chart.JFreeChart.(JFreeChart.java:252)
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:826)
at com.android.ddmuilib.HeapPanel.createChart(HeapPanel.java:599)
at com.android.ddmuilib.HeapPanel.createControl(HeapPanel.java:371)
at com.android.ddmuilib.Panel.createPanel(Panel.java:29)
at com.android.ddms.UIThread.createRightPanel(UIThread.java:1227)
at com.android.ddms.UIThread.createTopPanel(UIThread.java:982)
at com.android.ddms.UIThread.createWidgets(UIThread.java:831)
at com.android.ddms.UIThread.runUI(UIThread.java:377)
at com.android.ddms.Main.main(Main.java:97)


thanks
steve



On Fri, Dec 5, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> First, you do not need to open the ddmlib, ddmuilib, ddms projects
> that are in development/tools/ddms. Those are the libraries and
> standalone ddms application.
> The create_ddms_symlinks mentioned by Ralf will link the libraries to
> the real plugin project.
>
>
> It looks like the symlinks creation fails if
> development/tools/eclipse/plugins/com.android.ide.eclipse.ddms/libs/
> does not exists. This is where your missing libraries should be
> located.
> We'll fix the script shortly.
>
> In the mean time create the libs directory manually and reren
> create_ddms_symlinks.sh.
>
> thanks
> Xav
>
>
> On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous
> <[EMAIL PROTECTED]> wrote:
> > Hi Ralf,
> >
> > Thanks again..
> >
> > 1. Ran create_ddms_symlink.sh
> > 2.In eclipse File - import->plugins and fragments ->plugin location
> > .../development/tools/eclipse/plugins..ide.eclipse.ddms
> > 3.Added plugin succesfully
> > 4.gettign the below error... :(
> >
> > am i doing something really stupid !! :(
> >
> > (*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so
> ?)
> >
> > 
> > Severity and DescriptionPathResourceLocationCreation Time
> > Id
> > Project com.android.ide.eclipse.ddms is missing required library:
> > 'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
> > path122846629620265174
> > Project com.android.ide.eclipse.ddms is missing required library:
> > 'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddms
>  Build
> > path122846629620365175
> > Project com.android.ide.eclipse.ddms is missing required library:
> > 'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
> > path122846629620265173
> > --
> >
> > On Fri, Dec 5, 2008 at 12:53 PM, Ralf <[EMAIL PROTECTED]> wrote:
> >>
> >> Make sure to run
> >> development/tools/eclipse/script/create_ddms_symlink.sh and then only
> >> import the ddms-plugin project (from
> >> dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
> >> need the ddmlib and ddmuilib projects in Eclipse for ADT because they
> >> are symlinked under the plugin/ddmsdirectory.
> >>
> >> R/
> >>
> >> On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi Xav,
> >> >
> >> > Thank you,
> >> >
> >> > Now am clear with few of the errors(compiler compliance).
> >> > I have synced to latest sourc

[android-developers] New SDK Available

2008-12-05 Thread Dan Morrill
Hello, developers!  I wanted to call your attention to the new Android 1.0
SDK, release 2 that we just made available.

For full details, please see our blog post:
http://android-developers.blogspot.com/2008/12/new-resources-for-developers.html

- Dan

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



[android-developers] Re: OpenGL Troubles on the G1

2008-12-05 Thread CaseyB

I've gone through my code and the Kube code and they look the same!
The only thing that I can see that's different is that I use GL_FLOAT
when I define my verts and normals and the Kube program used
GL_FIXED.  Could it be that the G1 doesn't support floating point
coordinates?

On Dec 3, 10:57 pm, CaseyB <[EMAIL PROTECTED]> wrote:
> I'm using the GLSurfaceView from the examples and here's all of my
> initialization code:
>
> /***[Activity]***/
> public class OpenGLES extends Activity
> {
>         GLSurfaceView mView;
>
>         /** Called when the activity is first created. */
>         @Override
>         public void onCreate(Bundle savedInstanceState)
>         {
>                 super.onCreate(savedInstanceState);
>                 requestWindowFeature(Window.FEATURE_NO_TITLE);
>
>                 mView = new GLSurfaceView(getApplication());
>                 mView.setRenderer(new TutorialRenderer(getApplication()));
>                 setContentView(mView);
>         }
>
> }
>
> /***[Renderer]***/
> public class TutorialRenderer implements GLSurfaceView.Renderer
> {
>         private Context mContext;
>         private boolean mCreateWorld = true;
>         private Cube mCube;
>         private Ship mShip;
>         private float mAngle = 0;
>         private int mChange = 1;
>
>         public TutorialRenderer(Context context)
>         {
>                 mContext = context;
>         }
>
>         @Override
>         public void drawFrame(GL10 gl)
>         {
>                 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | 
> GL10.GL_DEPTH_BUFFER_BIT);
>                 gl.glLoadIdentity();
>
>                 GLU.gluLookAt(gl, 0.0f, 2.0f, 2.0f, 0.0f, 0.5f, 0.0f, 0.0f, 
> 1.0f,
> 0.0f);
>
>                 gl.glRotatef(mAngle, 0.0f, 1.0f, 0.0f);
>
>                 gl.glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
>                 mCube.draw(gl);
>
>                 gl.glColor4f(0.0f, 1.0f, 0.0f, 1.0f);
>                 gl.glTranslatef(-0.25f, 0.25f, -0.75f);
>                 mShip.draw(gl);
>
>                 gl.glColor4f(0.0f, 0.0f, 1.0f, 1.0f);
>                 gl.glTranslatef(0.5f, -0.25f, 1.5f);
>                 mCube.draw(gl);
>
>                 gl.glFlush();
>
>                 mAngle += mChange;
>                 if(mAngle > 360) mAngle = 0;
>         }
>
>         @Override
>         public int[] getConfigSpec()
>         {
>                 // Need a depth buffer, don't care about color depth.
>                 int[] configSpec = {
>                                 EGL10.EGL_DEPTH_SIZE,
>                                 16,
>                                 EGL10.EGL_NONE};
>                 return configSpec;
>         }
>
>         @Override
>         public void sizeChanged(GL10 gl, int width, int height)
>         {
>                 gl.glMatrixMode(GL10.GL_PROJECTION);
>                 gl.glLoadIdentity();
>
>                 if(height == 0) height = 1;
>                 gl.glViewport(0, 0, width, height);
>                 GLU.gluPerspective(gl, 45.0f, 1.0f * width / height, 1.0f, 
> 100.0f);
>
>                 gl.glMatrixMode(GL10.GL_MODELVIEW);
>                 gl.glLoadIdentity();
>         }
>
>         @Override
>         public void surfaceCreated(GL10 gl)
>         {
>                 gl.glEnable(GL10.GL_COLOR_MATERIAL);
>
>                 gl.glEnable(GL10.GL_LIGHTING);
>                 gl.glEnable(GL10.GL_LIGHT0);
>
>                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, new float[]{ 
> 0.3f,
> 0.3f, 0.3f, 1.0f }, 0);
>                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_DIFFUSE, new float[]{ 
> 1.0f,
> 1.0f, 1.0f, 1.0f }, 0);
>                 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_POSITION, new float[]{ 
> 1.0f,
> 1.0f, 1.0f, 0.0f }, 0);
>
>                 gl.glEnable(GL10.GL_DEPTH_TEST);
>                 gl.glDepthFunc(GL10.GL_LEQUAL);
>
>                 gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
>                 gl.glClearDepthf(1.0f);
>
>                 if(mCreateWorld)
>                 {
>                         createWorld(gl);
>                         mCreateWorld = false;
>                 }
>
>         gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
>         gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
>         gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
>
>         gl.glEnable(GL10.GL_CULL_FACE);
>         gl.glShadeModel(GL10.GL_SMOOTH);
>         }
>
>         private void createWorld(GL10 gl)
>         {
>                 mCube = new Cube();
>                 mShip = new Ship(mContext);
>         }
>
> }
>
> On Dec 3, 5:01 pm, "David Turner" <[EMAIL PROTECTED]> wrote:
>
> > the emulator only runs the Android software OpenGL renderer; while the G1
> > comes both with
> > the software renderer and a hardware-accelerated one that talks to the
> > graphics chip. Which one
> > your application will end up using depends on which GL configuration you're
> > asking for (I believe
> > that you'll get the hardware one most of the t

[android-developers] Re: Possibility to access the Own Content Provider

2008-12-05 Thread Andrew Stadler

Yasmin, if you're not sure where the sample apps are, you may want to
jump over to the android-beginners list, described in more detail at
.  You'll probably find
more useful responses there.

Welcome to Android development!



On Tue, Dec 2, 2008 at 10:59 PM, yasmin afrose <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for your kind reply...
>
> Can you please tell the URL...
>
> Thanks,
> Yasmin
>
> On Sun, Nov 30, 2008 at 11:26 AM, Dianne Hackborn <[EMAIL PROTECTED]>
> wrote:
>>
>> Have you gone through the NotePad sample app?  That shows you a complete
>> working example of writing and using a content  provider.
>>
>> On Thu, Nov 27, 2008 at 3:24 AM, yasmin afrose <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi Dianne,
>>>
>>> Thanks for your reply. ie, In OWNCONTENTPROVIDER manifest file, I've
>>> included  as follows :
>>>
>>> <
>>>
>>> provider
>>>
>>> android:name="com.aspire.android.wikinotes.database.WikiNotesProvider"
>>>
>>> android:authorities="com.aspire.android.wikinotes.database.wikinotes" />
>>> In OWNPROVIDERACCESS manifest file, I don't know what I need to include
>>> to access my OWNCONTENTPROVIDER data. :(
>>>
>>> NOTE : In OWNPROVIDERACCESS manifest file, I've included >> android.name = "READ_CONTACTS"> if I've accessed the Contacts Application
>>> database (Contacts.db).
>>>
>>> Please help me.
>>>
>>> Thanks in advance!!!
>>> Yasmin
>>>
>>> On Thu, Nov 27, 2008 at 8:04 AM, Dianne Hackborn <[EMAIL PROTECTED]>
>>> wrote:

 You need to publish the content provider in your AndroidManifest.xml.
 There is generally no reason to go through all of this trouble unless you
 want to allow other applications to use your content provider, so you need
 to describe in your manifest what it is so others can find it.

 On Tue, Nov 25, 2008 at 9:05 PM, AndroidKid <[EMAIL PROTECTED]>
 wrote:
>
> Hi All,
>
> I've accessed existing Content Provider. ie, I've retrieved data from
> Contacts Application by including the Permission 
> within my application Android Manifest file.
>
> I've created new Content Provider by extending my class from Content
> Provider. I've overridded the method query(), delete(), update() &
> getType(). For that, I've included  within AndroidManifest
> file.
>
> Now I would like to access my own content provider in another
> application. For this, I've tried the following code :
>
> package com.aspire.android.accessprovider;
>
> import android.app.Activity;
> import android.app.ListActivity;
> import android.content.ContentUris;
> import android.content.Intent;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.provider.Contacts.People;
> import android.view.View;
> import android.widget.ListAdapter;
> import android.widget.ListView;
> import android.widget.SimpleCursorAdapter;
> import com.aspire.android.wikinotes.database.WikiNote; // TO ACCESS MY
> OWN CONTENT PROVIDER
>
>
> public class OwnProviderAccessActivity extends ListActivity {
>private ListAdapter mAdapter;
>
>Uri uri = WikiNote.Notes.ALL_NOTES_URI;
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>String auth = WikiNote.Notes.ALL_NOTES_URI.getAuthority();
>  // Note the below line
> Cursor C = getContentResolver().query(WikiNote.Notes.ALL_NOTES_URI,
> null, null, null, null);
>startManagingCursor(C);
> // Here I've accessed one coulmn from the table in OwnContentProvider
> Applciation
>String[] columns = new String[] {WikiNote.Notes.TITLE};
>int[] names = new int[] {R.id.row_entry};
>mAdapter = new SimpleCursorAdapter(this,
> R.layout.contacts, C,
> columns, names);
>setListAdapter(mAdapter);
>
>}
>
>@Override
>protected void onListItemClick(ListView l, View v, int position,
> long
> id) {
>super.onListItemClick(l, v, position, id);
>}
> }
>
>
> I've got output by adding OWNCONTENTPROVIDER application within
> BuildPath.
>
> Here the source of entire OWNCONTENTPROVIDER application will be
> inclueded within the my  OWNPROVIDERACCESS application. I would like
> to achieve the same thing using  like Accessing Existing
> Content Provider.
>
> Please give your answers... I was totally confused  I've stuck
> with this issue.
>
> Any kind of reply will be appreciated!!!
>
> Thanks in Advance!!!
> Yasmin
>



 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send pr

[android-developers] AndroidManifest.xml file missing!

2008-12-05 Thread Bill Tan
Hi all,

I created a project for Android development in eclipse according to
http://source.android.com/using-eclipse:

   1. If Eclipse asks you for a workspace location, choose the default.
   2. If you have a "Welcome" screen, close it to reveal the Java
   perspective.
   3. File > New > Java Project
   4. Pick a project name, "android" or anything you like.
   5. Select "Create project from existing source", enter the path to your
   Android root directory, and click Finish.
   6. Wait while it sets up the project. (You'll see a subtle progress meter
   in the lower right corner.)

After the build finished, I got two errors:
AndroidManifest.xml file missing!
The type IGearsDialogService is already defined

I am sure I followed the instructions. Is there anything I missed?

Thanks in advance.

Bill

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



[android-developers] Re: java.lang.VerifyError in Android again

2008-12-05 Thread jacek

You need to give us more details on the exact verify error

On Dec 5, 1:56 pm, Claudio Veas <[EMAIL PROTECTED]> wrote:
> I was wondering if anybody knows which are the classes/interfaces/
> fields/methods not
> supported by Android because Im getting a Verify error and I cannot
> identify which is the part of the class that is causing it.
> thanks in advance
> Claudio Veas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: wpa_supplicant not compiled?

2008-12-05 Thread Andrew Stadler

This list is for developers using the Android SDK to develop
applications.  For questions regarding accessing, building and using
the open source release, please refer to one of the groups listed at
.

Thanks,
Andy

On Tue, Dec 2, 2008 at 11:45 PM, Richard Zhao <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I got android souce using repo sync, and run choosecombo using the
> default value. After making, I find external/wpa_supplicant was not
> compiled.
>
> I can't find place to add wpa_supplicant for compile.
>
> I also tried the wpa_supplicant from G1 phone, but it doesn't support
> wireless extension.
>
> Thanks
> Richard
>
> >
>

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



[android-developers] Re: Testing application

2008-12-05 Thread Andrew Stadler

This is probably a question more suited for android-beginners.  That
and other lists are described in more detail at


Welcome to Android app development!



On Tue, Dec 2, 2008 at 8:09 PM, indiabolbol.com <[EMAIL PROTECTED]> wrote:
>
> I am interested in how the developers tested the application before
> putting the application on the android market. I know it can be tested
> on the device, but what about testing on the real device.
>
> In other words, if I have the real device can I upload the application
> to the device and perform the test? If so, how do I connect my
> development environment to real device, rather than the emulator.
> >
>

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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-05 Thread Andrew Stadler

On Fri, Dec 5, 2008 at 8:40 AM,  <[EMAIL PROTECTED]> wrote:

> So I finally figured out what was going on. It had nothing to do with
> HTTP posts,
> thankfully. What it did have to do with was Formatter (or String.format). An
> innocuous foreground loop using Formatter was taking 10 seconds for about
> 10kb worth of data. The same loop using string concats (ie, this+""+that) 
> takes
> 100ms. What on earth is Formatter doing that takes 2 orders of magnitude
> more time? Something's really out of whack.

> Interesting tidbit2: per Mark's suggestion, I implemented the HTTP post using
> both HttpURLConnection and DefaultHttpClient mechanisms. The DefaultHttpClient
> method was about 5-10x *slower* than HttpURLConnection for identical data. Not
> sure why that is... maybe using stringsBuffers to collect the post
> data instead of file io is a lose.
>


For both of these, it would be *fantastic* if you could create a small
but working test code snippet, and collect timing, and file the whole
thing in bug reports.

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



[android-developers] Re: The G1 (RC30) eMail client

2008-12-05 Thread Andrew Stadler

Sorry to hear that you've been so frustrated with the client.

On Fri, Dec 5, 2008 at 4:54 PM, Stephen L Squires <[EMAIL PROTECTED]> wrote:
> The fundamental problem is that (for some eMail services)
> a sent message results in multiple copies of that sent message
> appearing in the IMAP "Sent" folder of the eMail service.
> In some cases, after the first message is sent, attempts
> to send additional messages result in an error. In the case
> were the additional messages get sent, multiple copies
> of the additional messages also appear in the IMAP "Sent"
> folder. I had the eMail service provider review the their logs
> and they found that the "G1 with the G1 Data Service"
> was actually sending the extra copies of sent messages
> to the IMAP "Sent" folder even though their system showed
> that it had acknowledge the receipt of the first copy and
> each of the extra copies.

Are you actually *sending* multiple copies -do your recipients get
multiple copies - or, are the messages just showing up as multiples in
your Sent folder?


> The problem occurs the normal smtp servers that I use with
> my various eMail systems and with the smtp server for Gmail
> (that T-Mobile suggested).

Note:  The IMAP "Sent" Folder actually has nothing to do with mail
delivery.  The email client uses SMTP to send the message to the
recipient(s), and then it copies the message into the Sent folder for
record keeping purposes only.  So it's very important, when reporting
& diagnosing, to clarify if your recipients are actually receiving
multiple copies (which would be an SMTP problem), or if you're just
seeing multiple copies in your sent box (which would be an IMAP
problem).


> I even found that the builtin eMail client did not work
> properly with my Gmail accounts using IMAP with
> IMAP enabled on the account.

When you say "did not work properly" please clarify (and file) if you
had other issues to report, or just the multiple-sent issues discussed
above.


> Anything you can do to resolve this issue would
> be appreciated by the community!

As I mentioned before, *you* can help the community by filing bugs for
each issue you're having.  (Please don't just file one super-bug,
that's not trackable).  This gives everyone (including the K9 folks) a
chance to see and work on 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Strange behavior with AlarmManager.RTC_WAKEUP and PowerManager.WakeLock

2008-12-05 Thread Noam Wolf

I was setting my AlarmManager in the wrong place, namely an onXxx
event.  What i did was set the AlarmManager on a user action (like
save or whatever) and that solved my problem.

Check it out Applications > Tools > ClockApps



On Dec 5, 2:56 am, Jon Colverson <[EMAIL PROTECTED]> wrote:
> On Dec 5, 6:41 am, Jon Colverson <[EMAIL PROTECTED]> wrote:
>
> > I'd been having some weird issues with AlarmManager seemingly not
> > firing my alarms when the device is asleep. I'm using the alarm to
> > start a service and I was acquiring my wake lock in onStart(). I tried
> > acquiring the lock in onCreate() instead, and that seems to have
> > solved the problem.
>
> Oops. I spoke too soon. After some more testing that doesn't seem to
> have helped.
>
> --
> Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to find out what the IP address of the Android device is?

2008-12-05 Thread Qualyxx

There is a DhcpInfo class but it does not tell you where you can
retrieve the DhCpInfo from.

I would like to establish a ServerSocket and let other Android device
to connect to it and I need to publish the IP address of the device.

any hint?

Thanks,

Yang

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



[android-developers] Re: Streaming RTSP directly by suing MediaPlayer

2008-12-05 Thread Jona

I'm not sure were or who to ask...

I've been trying to create a server to communicate with MediaPlayer
via RTSP.

Now I've got this response from the MediaPlayer to my server:

//
[OPTIONS rtsp://localhost:8554/triStateBuffer1 RTSP/1.0

CSeq: 0

User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)

ClientChallenge: 9e26d33f2984236010ef6253fb1887f7

PlayerStarttime: [28/03/2003:22:50:23 00:00]

CompanyID: KnKV4M4I/B2FjJ1TToLycw==

GUID: ----



DESCRIBE rtsp://localhost:8554/triStateBuffer1 RTSP/1.0

CSeq: 1

User-Agent: PVCore/05.02.00.00 PVPlayer/6.18 (Linux; Android; NJ)

Accept: application/sdp

Accept-Encoding:
//

I know I have to reply to the MediaPlayer like

"RTSP/1.0 200 OK"
"CSeq: 1"
"Content-Type:
"Content-length:
//And more details, this is what I'm not sure what to reply the Media
Player in order to get a SETUP message back...


Could someone help me?

I want to send only audio... mpg

Thanks!
JOna


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



[android-developers] Re: how to update apk's Jad file in run time

2008-12-05 Thread Dianne Hackborn
An .apk is read-only, you can't modify it.

On Thu, Dec 4, 2008 at 11:19 PM, Sudha Gupta <[EMAIL PROTECTED]>wrote:

> Hello,
>  I have a application in J2me, its a client server application. In this
> application user registers the handset(with the phone number) on the web
> site , In return server sends a message to the handset with the link to
> download the client application on the handset.
> before download of the client application, server appends few values(like
> device id, user id) in the jad file.
>  I am developing the same application for Android, I wanted to know how
> this information (device id, user id) will be added in the apk in run time.
>
> Plz help me
>
> Thanks
> Sudha gupta
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

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



[android-developers] Re: The G1 (RC30) eMail client

2008-12-05 Thread Andrew Stadler

Actually, there is a lot of development happening on the client.
Please feel free to file bugs on the public tracker, or ask questions
here about specific issues.  I can't guarantee which release any given
fix will appear in, but we are definitely tracking and fixing issues
on it.

On Fri, Dec 5, 2008 at 10:30 AM, SLSq <[EMAIL PROTECTED]> wrote:
>
> ... does not work properly. K-9 is just another fork to no where. It
> is time to fix the builtin eMail client!
> >
>

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



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Ralf

FYI I fixed the create_ddms_plugin script in the git repo, so the
steps 1..3 below should work now.

R/

On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi Ralf,
>
> Thanks again..
>
> 1. Ran create_ddms_symlink.sh
> 2.In eclipse File - import->plugins and fragments ->plugin location
> .../development/tools/eclipse/plugins..ide.eclipse.ddms
> 3.Added plugin succesfully
> 4.gettign the below error... :(
>
> am i doing something really stupid !! :(
>
> (*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so ?)
>
> 
> Severity and DescriptionPathResourceLocationCreation Time
> Id
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620265174
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620365175
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620265173
> --
>
> On Fri, Dec 5, 2008 at 12:53 PM, Ralf <[EMAIL PROTECTED]> wrote:
>>
>> Make sure to run
>> development/tools/eclipse/script/create_ddms_symlink.sh and then only
>> import the ddms-plugin project (from
>> dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
>> need the ddmlib and ddmuilib projects in Eclipse for ADT because they
>> are symlinked under the plugin/ddmsdirectory.
>>
>> R/
>>
>> On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
>> <[EMAIL PROTECTED]> wrote:
>> > Hi Xav,
>> >
>> > Thank you,
>> >
>> > Now am clear with few of the errors(compiler compliance).
>> > I have synced to latest source, and for ddms i have  added  3
>> > projects(ddmlib,dddmuilib and app) by new project-new java project-
>> > browse
>> > to development/tools/ddms
>> >
>> > now remained with "Button/clipboard/color/composite/combo  cannot be
>> > resolved" !!
>> >
>> > How can i add SWT in the dependencies? and this is a ddmuilib project
>> > (/development/tools/ddms/lib..)
>> >
>> > can you help me to resolve the above?
>> >
>> > regards
>> > steve
>> > On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
>> >>
>> >> On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
>> >> <[EMAIL PROTECTED]> wrote:
>> >> > Hi ,
>> >> >
>> >> > That error gone, i separately executed all the scripts...
>> >> > Now few more errors are like
>> >> >
>> >> > "assert cannot be resolved   client.java
>> >> > ddmlib/src/com/android/ddmlib"
>> >>
>> >> Can you make sure you are setup with compiler compliance level 5.0? I
>> >> looks like you're building in 1.4 or lower...
>> >>
>> >> > "Button cannot be resolved to a type AllocationPanel.java
>> >> > ddmuilib/src/com/android/ddmuilib"
>> >>
>> >> This would mean you don't have SWT in the dependencies. Is this in the
>> >> ddms plugin project or in the ddmuilib project?
>> >>
>> >> > "Can only iterate over an array or an instance of java.lang.iterable
>> >> > AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"
>> >>
>> >> This is probably a compiler level issue too.
>> >>
>> >> Xav
>> >>
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>

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



[android-developers] Re: Is there a way to listen for the completion of AnimationDrawable animation?

2008-12-05 Thread Satya Komatineni

Romain,
Thanks again.

I suppose I can copy the source code of AnimationDrawable as a class
in my package and provide the call backs. The class seem to be pretty
standalone.

Satya

On Fri, Dec 5, 2008 at 4:59 PM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> There is no such feature on AnimationDrawable. It keeps repeating the 
> animation.
>
> On Fri, Dec 5, 2008 at 12:19 PM, Satya Komatineni
> <[EMAIL PROTECTED]> wrote:
>>
>> For tweening animation there is a callback that can be registered on
>> the Animation object.
>>
>> I dont see anything similar on AnimationDrawable.
>>
>> Any thoughts?
>>
>> Thanks for your help
>> Satya
>>
>> >
>>
>
>
>
> --
> Romain Guy
> www.curious-creature.org
>
> >
>

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



[android-developers] Re: Is there a way to listen for the completion of AnimationDrawable animation?

2008-12-05 Thread Romain Guy

Hi,

There is no such feature on AnimationDrawable. It keeps repeating the animation.

On Fri, Dec 5, 2008 at 12:19 PM, Satya Komatineni
<[EMAIL PROTECTED]> wrote:
>
> For tweening animation there is a callback that can be registered on
> the Animation object.
>
> I dont see anything similar on AnimationDrawable.
>
> Any thoughts?
>
> Thanks for your help
> Satya
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Is there a way to listen for the completion of AnimationDrawable animation?

2008-12-05 Thread Satya Komatineni

For tweening animation there is a callback that can be registered on
the Animation object.

I dont see anything similar on AnimationDrawable.

Any thoughts?

Thanks for your help
Satya

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



[android-developers] How to create grey menu icons?

2008-12-05 Thread Noonien Soong

Hi,

does anyone know what's the easiest way to create new menu icons for
the gray menu that pops up when you press the menu button ? I want to
create custom icons with the same consistent look.


I mean the icons that can be found in the SDK and are all named
"ic_menu_*.png".

Is there some sort of a vector graphics template available ?


Would be great to get that...


Thx!


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



[android-developers] Re: getSharedPreferences

2008-12-05 Thread Mark Murphy

Brad Gies wrote:
> Can someone clarify how to use getSharedPreferences*(String 
>  name, 
> int mode) * ?
> 
> I have created a preferences.xlm file, added some Boolean preferences, 
> can edit them from an activity, but I can’t seem to figure out how to 
> get the values into another activity in my application using 
> getSharedPreferences.
> 
> I know… it should be simple… and I’m sure it is… but I can’t figure out 
> what name to put in or what mode.
> 
> Any help or links to sample code appreciated.

Use PreferencesManager.getDefaultSharedPreferences() instead. This will 
return the SharedPreferences object that lines up with the preference 
screen system.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] getSharedPreferences

2008-12-05 Thread Brad Gies
Can someone clarify how to use getSharedPreferences(String
  name, int
mode)  ?

 

I have created a preferences.xlm file, added some Boolean preferences, can
edit them from an activity, but I can't seem to figure out how to get the
values into another activity in my application using getSharedPreferences. 

 

I know. it should be simple. and I'm sure it is. but I can't figure out what
name to put in or what mode. 

 

Any help or links to sample code appreciated.

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


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



[android-developers] java.lang.VerifyError in Android again

2008-12-05 Thread Claudio Veas

I was wondering if anybody knows which are the classes/interfaces/
fields/methods not
supported by Android because Im getting a Verify error and I cannot
identify which is the part of the class that is causing it.
thanks in advance
Claudio Veas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Michael

On Dec 5, 1:35 pm, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
> The problem was stated.

No, the original poster said that it has problems, but didn't state
what problems he thinks it has.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Xavier Mathews

The problem was stated.

On 12/05/2008, Michael <[EMAIL PROTECTED]> wrote:
>
> Which problems exactly?
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

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



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Michael

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



[android-developers] Re: Where to get widget code

2008-12-05 Thread Romain Guy

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/ScrollView.java;h=23a27acb367ecedab78da4a4e604c6c085e180cb;hb=HEAD

On Thu, Dec 4, 2008 at 4:02 PM, Keith Wiley <[EMAIL PROTECTED]> wrote:
>
> I realize this topic has come up, but I would like a ScrollView that
> scrolls like a MapView to wrap a large TableLayout, so I can simply
> drag the table around like a map and scroll it on both axes.  To my
> knowledge there is really no way to implement this behavior in Android
> out of the box.  Am I correct about that?
>
> So, I think the solution is to find the ScrollView code, see how it
> scroll vertically, and extend it in a new class to support horizontal
> scrolling.
>
> ...but I can't figure out where to get the ScrollView code.
>
> Does anyone know an easier way to achieve my desired goal, or
> otherwise, where to get the code for a built-in widget like a
> ScrollView?
>
> Thanks.
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] The G1 (RC30) eMail client

2008-12-05 Thread SLSq

... does not work properly. K-9 is just another fork to no where. It
is time to fix the builtin eMail client!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Xavier Ducrohet

Hello,

First, you do not need to open the ddmlib, ddmuilib, ddms projects
that are in development/tools/ddms. Those are the libraries and
standalone ddms application.
The create_ddms_symlinks mentioned by Ralf will link the libraries to
the real plugin project.


It looks like the symlinks creation fails if
development/tools/eclipse/plugins/com.android.ide.eclipse.ddms/libs/
does not exists. This is where your missing libraries should be
located.
We'll fix the script shortly.

In the mean time create the libs directory manually and reren
create_ddms_symlinks.sh.

thanks
Xav


On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous
<[EMAIL PROTECTED]> wrote:
> Hi Ralf,
>
> Thanks again..
>
> 1. Ran create_ddms_symlink.sh
> 2.In eclipse File - import->plugins and fragments ->plugin location
> .../development/tools/eclipse/plugins..ide.eclipse.ddms
> 3.Added plugin succesfully
> 4.gettign the below error... :(
>
> am i doing something really stupid !! :(
>
> (*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so ?)
>
> 
> Severity and DescriptionPathResourceLocationCreation Time
> Id
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620265174
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620365175
> Project com.android.ide.eclipse.ddms is missing required library:
> 'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
> path122846629620265173
> --
>
> On Fri, Dec 5, 2008 at 12:53 PM, Ralf <[EMAIL PROTECTED]> wrote:
>>
>> Make sure to run
>> development/tools/eclipse/script/create_ddms_symlink.sh and then only
>> import the ddms-plugin project (from
>> dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
>> need the ddmlib and ddmuilib projects in Eclipse for ADT because they
>> are symlinked under the plugin/ddmsdirectory.
>>
>> R/
>>
>> On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
>> <[EMAIL PROTECTED]> wrote:
>> > Hi Xav,
>> >
>> > Thank you,
>> >
>> > Now am clear with few of the errors(compiler compliance).
>> > I have synced to latest source, and for ddms i have  added  3
>> > projects(ddmlib,dddmuilib and app) by new project-new java project-
>> > browse
>> > to development/tools/ddms
>> >
>> > now remained with "Button/clipboard/color/composite/combo  cannot be
>> > resolved" !!
>> >
>> > How can i add SWT in the dependencies? and this is a ddmuilib project
>> > (/development/tools/ddms/lib..)
>> >
>> > can you help me to resolve the above?
>> >
>> > regards
>> > steve
>> > On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
>> >>
>> >> On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
>> >> <[EMAIL PROTECTED]> wrote:
>> >> > Hi ,
>> >> >
>> >> > That error gone, i separately executed all the scripts...
>> >> > Now few more errors are like
>> >> >
>> >> > "assert cannot be resolved   client.java
>> >> > ddmlib/src/com/android/ddmlib"
>> >>
>> >> Can you make sure you are setup with compiler compliance level 5.0? I
>> >> looks like you're building in 1.4 or lower...
>> >>
>> >> > "Button cannot be resolved to a type AllocationPanel.java
>> >> > ddmuilib/src/com/android/ddmuilib"
>> >>
>> >> This would mean you don't have SWT in the dependencies. Is this in the
>> >> ddms plugin project or in the ddmuilib project?
>> >>
>> >> > "Can only iterate over an array or an instance of java.lang.iterable
>> >> > AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"
>> >>
>> >> This is probably a compiler level issue too.
>> >>
>> >> Xav
>> >>
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>

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



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Xavier Mathews

What email Client are you all useing?

On 12/05/2008, Jean-Baptiste Queru <[EMAIL PROTECTED]> wrote:
>
> No, it just means that the issue that K9 didn't resolve the original
> issue in the Email client.
>
> JBQ
>
> On Fri, Dec 5, 2008 at 10:11 AM, SLSq <[EMAIL PROTECTED]> wrote:
>>
>> ... has the same kinds of problems as the builtin eMail client. This
>> finding indicates problems with the underlying Android system.
>>
>> >
>>
>
> >
>


-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

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



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Jean-Baptiste Queru

No, it just means that the issue that K9 didn't resolve the original
issue in the Email client.

JBQ

On Fri, Dec 5, 2008 at 10:11 AM, SLSq <[EMAIL PROTECTED]> wrote:
>
> ... has the same kinds of problems as the builtin eMail client. This
> finding indicates problems with the underlying Android system.
>
> >
>

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



[android-developers] Re: The G1 (RC30) K-9 eMail client

2008-12-05 Thread Romain Guy

Not necessarily since K-9 is a fork of Android's Email client.

On Fri, Dec 5, 2008 at 10:11 AM, SLSq <[EMAIL PROTECTED]> wrote:
>
> ... has the same kinds of problems as the builtin eMail client. This
> finding indicates problems with the underlying Android system.
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] The G1 (RC30) K-9 eMail client

2008-12-05 Thread SLSq

... has the same kinds of problems as the builtin eMail client. This
finding indicates problems with the underlying Android system.

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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-05 Thread Michael

You will not be able to access /data on the G1 with the shell.  It's a
"security feature".
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The G1 (RC30) eMail Client

2008-12-05 Thread Michael


Yeah, it's known to have quite a lot of issues.  Try this for now:
http://code.google.com/p/k9mail
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-05 Thread Robert Green

I was not talking about scaling but instead talking about texture
mapping which is known as UV or UVW mapping by some and S&T mapping by
openGL guys.

In the past I've been able to use 3dsmax to do my UVW map and then
export it along with my mesh but I haven't gotten into all of that
with Android yet.

On Dec 5, 5:04 am, Guian <[EMAIL PROTECTED]> wrote:
> here is my solution :
> (very simple with the Bitmap from android SDK ;) )
>
> its NOT possible to load non power of two size bitmap as texture
>
> but it's very easy to resize our bitmap  ;)
>
> =>
>
> [syntax="java"]
>
>         //correct the bitmap if its not a power of two width
>         if(((Math.log((double)bitmap.getWidth())/Math.log(2.0))
>                         - 
> Math.floor((Math.log((double)bitmap.getWidth())/Math.log
> (2.0 != 0){
>                 //the bitmap width isn't a power of two.
>
>                 int aimWidth = (int) Math.pow(2,Math.ceil(Math.log((double)
> bitmap.getWidth())/Math.log(2.0)));
>
>                 bitmap = Bitmap.createScaledBitmap(bitmap, aimWidth,
> bitmap.getHeight(), false);
>                //you can adapt the height in the same way if needed.
>         }
> [/syntax]
>
> ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Virtual Machinery announces Android BTree implementation - demo available

2008-12-05 Thread VirtualMachinery

Virtual Machinery is delighted to announce that Version 6 of its Java
BTree implementation supports the Android(TM) platform. Of particular
interest to developers in the Android community will be that our
implementation of the BTree uses the standard file system access in
Android to support the underlying data persistence layer. This
essentially gives developers a true file-based implementation that is
identical to that on J2SE and J2EE
environments. The BTree files created on any environment can be copied
and used in other environments (including J2ME).

You can download a demo at http://www.virtualmachinery.com/btdownload.htm.
This a zip file which includes documentation and an .apk file that
demonstrates the power of this technology. Just unzip the file and
read the readme.txt. For developers who have already  purchased
Release 6 there is documentation included in the package describing
how to amend your code for Android. This documentation can also be
found at http://www.virtualmachinery.com/androidcode.htm.

The base level distribution of our Btree includes BTree
implementations and sample code for J2ME, J2SE, and J2EE environments
and costs $99.95. Full documentation is provided as is an option to
purchase source code. The file format of the BTree is identical on all
three Java platforms and Android.

Virtual Machinery also provide a Toolkit for their BTrees which can be
used for diagnostic and maintenance purposes.

We offer a wide range of licensing options, all at competitive prices
which can be viewed at http://www.virtualmachinery.com/buyproducts.htm#BTREE.

You can download other demos at http://www.virtualmachinery.com/btdownload.htm
and find out more about our products at 
http://www.virtualmachinery.com/btreeprod.htm.


Virtual Machinery have been providing BTree solutions in Object-
Oriented environments since 1989.

We will be delighted to hear your comments and answer any questions
you might have at [EMAIL PROTECTED]

Regards
Virtual Machinery

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



[android-developers] Horizontal ScrollView

2008-12-05 Thread Keith Wiley

Not sure where my last post disappeared to.  Sorry if two appear as a
result of my reposting this.

I would like a 2D scrolling table, much like a browser or map.
ScrollView only scrolls vertically.  What is the best way to achieve
this goal?  I'm not sure how to implement scrolling from scratch.

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to establish HttpConnection

2008-12-05 Thread koushik

Hi All,

 I am new in Android development world. I want to establish a
HttpConnection from my android phone.

I have used this following code in a separate class but experiencing a
null exception.


import java.io.*;
import java.net.*;



try
{
URL url = new URL(MyURLSTR);
URLConnection conn = url.openConnection();
TRACKER++;
if(conn!=null)
{
if (!(conn instanceof HttpURLConnection)) throw new 
IOException
("Not an HTTP connection.");


httpConn = (HttpURLConnection) conn;

httpConn.setAllowUserInteraction(false);
httpConn.setConnectTimeout(1);
httpConn.setReadTimeout(1);
httpConn.setInstanceFollowRedirects(true);
httpConn.setRequestMethod("POST");

httpConn.connect();   //found exception at this line


response = httpConn.getResponseCode();

if (response == HttpURLConnection.HTTP_OK)
{
  some code
  }
 }
catch(Exception exc)
 {

 }


Can any one help me regurding this problem.

Or is there any other way to establish Httpconnection??

Thanxx

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



[android-developers] Where to get widget code

2008-12-05 Thread Keith Wiley

I realize this topic has come up, but I would like a ScrollView that
scrolls like a MapView to wrap a large TableLayout, so I can simply
drag the table around like a map and scroll it on both axes.  To my
knowledge there is really no way to implement this behavior in Android
out of the box.  Am I correct about that?

So, I think the solution is to find the ScrollView code, see how it
scroll vertically, and extend it in a new class to support horizontal
scrolling.

...but I can't figure out where to get the ScrollView code.

Does anyone know an easier way to achieve my desired goal, or
otherwise, where to get the code for a built-in widget like a
ScrollView?

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] The G1 (RC30) eMail Client

2008-12-05 Thread SLSq

The G1 (RC30) eMail Client does not work with certain eMail systems
through IMAP.

A common aspect of the problems found is that when a message is sent,
multiple
copies of the message will appear in the "Sent" IMAP folder of the
email system
while only one may appear on the G1. This problem has not occured with
any
of eMail clients I have used on the T-Mobile Data Service since 2001
inlcuding
a variety of handheld devices.

I have had the eMail service providers review the logs of my email
account and
they found mutiple copies of sent messages being sent to my "Sent"
IMAP folder
on their system  from the G1 through the T-Mobile G1 Data Service.

For some eMail service providers only the first message actually gets
sent
and after that there are connection errors. For other eMail service
providers
more than one message may actually get sent but multiple copies of
those
sent message appear. The only way I have found to stop the extra
copies
of the sent messages is by removing the eMail client from the G1.

SInce eMail is among the most ubiquitous applications on the Internet,
this is the one application that be working properly.

The Browser also has problems ...



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



[android-developers] SQLite database &Content provider problem

2008-12-05 Thread andrider

Hi ...
 Iam new to Android.


 Iam using sqlite database , Iam getting problem with content
provider..

 I can able to display the list in the listactivity..

 but when  I click on the list item  it has to display the sublist
under the selected item.

 please tel me hw i can do that. Iam following the NotePad
application  which is given wth android sdk

 Sqlite doesnt support the forign keys 


 can any one help me???

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



[android-developers] sqlite and content provider

2008-12-05 Thread gsk

 Hi..

 I am developing an application which contains a listview .
 I developed the listview through the database ... i mean .. i created
a table which contain a two fields .. one is id and another one is
title.

 I can enter the values into table through the editbox. And I can
display  the  titles in the listview.

 But My problem is :

   If I click on one list item it has to show the another list .
 I mean  list item can hav another list , which wil be displayed when
the item clicked.

So, can any one have idea about this

   should i take two tables,... if yes how can we join those tables..
  can we do it by using content provider...?


please help me ...


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



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-05 Thread Alan

Mike,

I've used the

android.net.http.RequestQueue class for large, high latency calls.
This class takes care of running the request in a seperate thread and
allowing you to create a callback to handle the result.

You can find an example of using the RequestQueue at
http://www.anddev.org/doing_http_post_with_android-t492.html

Cheers,

Alan



On Dec 4, 6:54 pm, [EMAIL PROTECTED] wrote:
> So I switch over to using DefaultHttpClient and friends and it...
> behaves the same way.
> (I assume that's what you meant by HTTPComponents aka the apache stuff?)
>
> Does anybody have any direct experience trying to post largish amounts of 
> data?
> It doesn't seem like what I'm doing here is particularly unusual. It
> seems fairly
> linear fwiw. above about 5kb and it starts getting the 5 second ANR's,
> at arounds
> 6kb, it takes about 6 seconds and almost always triggers an ANR.
>
> Mike
>
> On Thu, Dec 4, 2008 at 2:46 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > enervatron wrote:
> >> FWIW, I'm using HttpURLConnection to create and read/write the data,
>
> > Have you tried switching to the HTTPComponents API in Android? It's
> > possible the problem is limited to the implementation of
> > HttpURLConnection, and your problem will go away by using another HTTP API.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 2009
> >http://www.bignerdranch.com/schedule.shtml
>
>

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



[android-developers] how to update apk's Jad file in run time

2008-12-05 Thread Sudha Gupta
Hello,
 I have a application in J2me, its a client server application. In this
application user registers the handset(with the phone number) on the web
site , In return server sends a message to the handset with the link to
download the client application on the handset.
before download of the client application, server appends few values(like
device id, user id) in the jad file.
 I am developing the same application for Android, I wanted to know how this
information (device id, user id) will be added in the apk in run time.

Plz help me

Thanks
Sudha gupta

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



[android-developers] Problems with GPS location service on r30

2008-12-05 Thread bensch

Hi here,
   First of all, I'd like to say how amazed I am with the android API.
It's been awesome to work with for my first project. I'm planning on
doing lots more with it in the future.
I made my own jogging tracker and it was easy and fast.
However, Once I got the data over to my computer and formatted
properly, it looks really funky:
http://www.gpsvisualizer.com/display/1228462535-27640-208.127.241.176.html

I can give you the code if you want. I'm planning on posting it to a
android apps site.

To reproduce the above map, goto 
http://www.gpsvisualizer.com/map_input?form=google
and paste in the raw data at http://pastebin.ca/1276690

Other people have complained that the accurancy of the GPS location
provider dropped after the r30 update. I just wanted to let you know
too

Cheers!
Ben

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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-05 Thread enervatron

On Thu, Dec 4, 2008 at 6:26 PM, Dianne Hackborn <[EMAIL PROTECTED]> wrote:
> You can look in I believe /data/anr/traces.txt to find a dump of the stacks
> of all processes and threads when the ANR happened, which should tell you
> what your thread was stuck doing at the time.

Ah, nice. You should put this in your documentation on ANR on your web pages.
Stupid question: how can I read this from the shell on my G1? It's
giving me file
perm error on /data (which isn't true of the emulator).

So I finally figured out what was going on. It had nothing to do with
HTTP posts,
thankfully. What it did have to do with was Formatter (or String.format). An
innocuous foreground loop using Formatter was taking 10 seconds for about
10kb worth of data. The same loop using string concats (ie, this+""+that) takes
100ms. What on earth is Formatter doing that takes 2 orders of magnitude
more time? Something's really out of whack.

Interesting tidbit2: per Mark's suggestion, I implemented the HTTP post using
both HttpURLConnection and DefaultHttpClient mechanisms. The DefaultHttpClient
method was about 5-10x *slower* than HttpURLConnection for identical data. Not
sure why that is... maybe using stringsBuffers to collect the post
data instead of
file io is a lose.

Mike

>
> On Thu, Dec 4, 2008 at 4:27 PM, <[EMAIL PROTECTED]> wrote:
>>
>> Yes, I've already coded that up and it behaves identical to
>> HttpURLConnection. So that's
>> not the root cause of this.
>>
>> I just tested this on 3g vs. my home wireless and it too behaves
>> identically, so it's not the
>> kind of net connectivity that's causing this either.
>>
>> Mike
>>
>> On Thu, Dec 4, 2008 at 4:21 PM, Mark Murphy <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > [EMAIL PROTECTED] wrote:
>> >> So I switch over to using DefaultHttpClient and friends and it...
>> >> behaves the same way.
>> >> (I assume that's what you meant by HTTPComponents aka the apache
>> >> stuff?)
>> >
>> > Yes, the stuff in org.apache.http.*. Documentation can be found at
>> > http://hc.apache.org, and example code for HttpClient can be found at:
>> >
>> > http://hc.apache.org/httpcomponents-client/examples.html
>> >
>> > --
>> > Mark Murphy (a Commons Guy)
>> > http://commonsware.com
>> > _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
>> >
>> > >
>> >
>>
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
> >
>

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



[android-developers] Kogan Agora Pro skin now available for Android Emulator!

2008-12-05 Thread Tea Vui Huang

Kogan Agora Pro skin now available for Android Emulator!
http://teavuihuang.com/android

To install, download and unzip "QVGA-L-KoganAgora.zip" to the Android
skin directory, e.g. "C:\android-sdk-windows-1.0_r1\tools\lib\images
\skins". To run the Android emulator with this Kogan Agora Pro skin,
enter this on the command line: "emulator -skin QVGA-L-KoganAgora".

Tea Vui Huang's Android Page
[The No.1 website for Google Android Emulator Skins]

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



[android-developers] Re: Newbe question - Application folders, how to?

2008-12-05 Thread Anders Rundgren

I had hoped that you could do all this with application XML
declarations rather than by code.
Thanx anyway for prompt answer!

On Dec 5, 3:38 am, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> If you mean you want to put such a thing in the sliding drawer that you pull
> up from the bottom, that is a flat list of apps.  But you can just write an
> activity that goes in there, and when your activity is launched show a
> folder of whatever sub-activities you want.
>
> On Thu, Dec 4, 2008 at 9:06 AM, Anders Rundgren
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
>
>
> > Thanx!
> > But I wanted to create a folder in the application drawer (or what it
> > should be called) that also should not look like a folder but as an
> > app which would if pressed open the folder with the real apps.  Isn't
> > that what most mult-app installs need?
>
> > On Nov 29, 11:59 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> > > Long press an empty space on Home (or click Menu > Add) then choose
> > > Shortcut > Folder. You can drop applications in the newly created
> > > folder.
>
> > > On Sat, Nov 29, 2008 at 2:56 AM, Anders Rundgren
>
> > > <[EMAIL PROTECTED]> wrote:
>
> > > > In other operating systems you can typically define a folder and when
> > > > clicked it opens a view with applications.
>
> > > > I may be blind, but I don't see any of this using the emulator and SDK
> > > > 1.0.
>
> > > > Is the ApiDemos the only GUI-way you can create a suite of associated
> > > > applications?
>
> > > --
> > > Romain Guywww.curious-creature.org
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Top Status Bar Webkit transparent

2008-12-05 Thread Mike Reed

We do no t have that feature yet.

On Dec 5, 2008, at 6:35 AM, Fred Grott(shareme) wrote:


I have a question

in iPhone you can make the top bar go away in the wbekit view see:

http://ajaxian.com/archives/iphone-full-screen-webapps

If the same feature is in Android webkit what meta tag valeus would I
use to enable it?

I assume that it may be android_something-something or etc.

Thanks..because I know how long you will search to find this answer



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



[android-developers] Re: invoking com.android.internal.*

2008-12-05 Thread Jean-Baptiste Queru

I can't recommend doing any of the things you're trying to do, for the
simple reason that you're putting yourself at the mercy of
implementation changes with no notice, and you shouldn't expect to
receive any support if anything goes wrong.

I write code that's part of the Android platform, which uses private
APIs and also exposes some. I have seen first hand what happens when a
private API changes under my feet, or when I change a private API
under someone else's feet, and I only have to be worried about source
compatibility (and I have a testing team helping me find regressions,
and plenty of time to do so before the code goes out). Trying to do
the same thing "in the wild" with binaries would only be more painful.

You need to assume that those private APIs *will* change. Most likely,
either their implementation will change, or they'll stabilize, become
public, and move to another package.

That being said, if you really insist in doing what you're trying to
do, you should do it with reflection instead of direct references. In
case an API signature changes, that would at least allow you to detect
it and display a meaningful error message. You're still entirely at
the mercy of changes in the behavior of those APIs. You probably
should explicitly compare the version of the phone that a user is
using to the versions that you have explicitly against, and display a
warning in case the user runs against a version that you haven't
tested.

JBQ

On Thu, Dec 4, 2008 at 2:58 PM, dreamerBoy <[EMAIL PROTECTED]> wrote:
>
> Yes, I know about this URL and have downloaded much of the source
> code.  The delicate problem is how to build in access to the internal
> classes that I need and have them be invoked correctly by Android.
> Question is, how to do this without in effect rolling your own version
> of Android i.e., doing a full build ... after all, (this probably
> includes Linux), there are 8 million lines of code in Android.  This
> would likely turn into a project unto itself.
>
> I have an old android.jar from version 0.9 with the internal classes
> available.  When I try to use that, the Eclipse aapt environment
> immediately figures out what I'm trying to do, fails my attempt, and
> gives me a snarky message saying that I'm going to have problems
> trying to do this.
>
> Monsieur Queru - any comment?
>
> Thanks
>
> dreamer
>
> On Dec 3, 10:10 am, Ash <[EMAIL PROTECTED]> wrote:
>> Use GIT to "checkout" the source code and add the internals paths you
>> need to your application.
>>
>> //android.git.kernel.org/platform/frameworks/base/telephony is what
>> you are looking for, I think.
> >
>

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



[android-developers] Re: Is it possible for C to talk to Java if necessary.

2008-12-05 Thread Mark Murphy

Rudi wrote:
> Does Google/Android prevent C applications from beginning execution on
> the phone, e.g. a simple web server.

As an application (say, downloaded from Android Market), yes.

As an extension to the firmware, no, but questions on that are better 
suited for one of the platform mailing lists:

http://source.android.com/discuss

My strong recommendation is that, for the time being, you stick with Java.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it possible for C to talk to Java if necessary.

2008-12-05 Thread Rudi

Hi

Does Google/Android prevent C applications from beginning execution on
the phone, e.g. a simple web server.  Are there any API's for C
programmers to access phone functions etc.

Is it possible for C to talk to Java if necessary.

Regards

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



[android-developers] Re: How to launch browser activity?

2008-12-05 Thread junker37

Thanks a lot, that worked. I had tried that before, but without the
protocol on the front, just "www."  That makes sense now.

On Dec 4, 6:19 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> junker37 wrote:
> > I have been unable to find out how to launch the browser activity in
> > 1.0_r1.
>
> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://...";)));
>
> should do it, I think.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Bitmap.getPixels()

2008-12-05 Thread Mike Reed

The color seems fine. Can you enclose a code-snippet, for the draw and
the getPixels() call?

thanks

On Thu, Dec 4, 2008 at 5:55 PM, jman <[EMAIL PROTECTED]> wrote:
>
> It's 50% transparent, i.e. alpha channel is 0x80, paint color is
> 0x8000ff00
>
>
> On Dec 4, 8:52 am, Robert Green <[EMAIL PROTECTED]> wrote:
>> Did you mean partially transparent green or fully transparent?
>>
>> On Dec 4, 1:21 am, jman <[EMAIL PROTECTED]> wrote:
>>
>> > I painted a transparent green curve on top of a background bitmap.
>> > When I use Bitmap.getPixels() to get the result into byte array, I
>> > always get a black curve.  The curve position is correct but color
>> > isn't.  Is there anything I need to do before calling Bitmap.getPixels
>> > ()?
>>
>> > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Top Status Bar Webkit transparent

2008-12-05 Thread Fred Grott(shareme)

I have a question

in iPhone you can make the top bar go away in the wbekit view see:

http://ajaxian.com/archives/iphone-full-screen-webapps

If the same feature is in Android webkit what meta tag valeus would I
use to enable it?

I assume that it may be android_something-something or etc.

Thanks..because I know how long you will search to find this answer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-05 Thread Guian

here is my solution :
(very simple with the Bitmap from android SDK ;) )


its NOT possible to load non power of two size bitmap as texture

but it's very easy to resize our bitmap  ;)

=>



[syntax="java"]

//correct the bitmap if its not a power of two width
if(((Math.log((double)bitmap.getWidth())/Math.log(2.0))
- 
Math.floor((Math.log((double)bitmap.getWidth())/Math.log
(2.0 != 0){
//the bitmap width isn't a power of two.

int aimWidth = (int) Math.pow(2,Math.ceil(Math.log((double)
bitmap.getWidth())/Math.log(2.0)));

bitmap = Bitmap.createScaledBitmap(bitmap, aimWidth,
bitmap.getHeight(), false);
   //you can adapt the height in the same way if needed.
}
[/syntax]

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



[android-developers] Re: LED notifications not working?

2008-12-05 Thread code_android_festival_way

Ok I got the solution on my own.

You need to add:

notification.flags = Notification.FLAG_SHOW_LIGHTS;

to the method and it starts working.

Regards!

On 5 Dez., 11:37, code_android_festival_way
<[EMAIL PROTECTED]> wrote:
> Hello!
>
> I've tried to implement a LED notification in my little application
> for testing but I can't get them working.
>
> Here is the little snippet from my code:
>
>     private void setNotificationLED(int color){
>         Notification notification = new Notification();
>         notification.ledARGB = 0x5171;
>         notification.ledOnMS = 100;
>         notification.ledOffMS = 100;
>         nm.notify(ID_LED, notification);
>         Log.e(TAG,"LED Notification set");
>     }
>
> I don't really know what could be wrong with it. I don't get any error
> message. I have tested it on the G1 and on the emulator.
>
> I'm looking forward reading your answer.
>
> 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] LED notifications not working?

2008-12-05 Thread code_android_festival_way

Hello!

I've tried to implement a LED notification in my little application
for testing but I can't get them working.

Here is the little snippet from my code:

private void setNotificationLED(int color){
Notification notification = new Notification();
notification.ledARGB = 0x5171;
notification.ledOnMS = 100;
notification.ledOffMS = 100;
nm.notify(ID_LED, notification);
Log.e(TAG,"LED Notification set");
}

I don't really know what could be wrong with it. I don't get any error
message. I have tested it on the G1 and on the emulator.

I'm looking forward reading your answer.

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PackageManager??

2008-12-05 Thread teo2706

Thank you. I will have to use the Package Installer application then
to make an install of a package.

I've posted another thread on a problem with package installation on
Android
SDK for Windows 1.0_r1:
http://groups.google.com/group/android-developers/browse_thread/thread/1ff689f404cd679b
Can you help me with this pls?

On 22 Ноем, 00:40, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> Current this API is not planned to be available to third party apps, they
> will need to go through the system installer UI.
>
> 2008/11/21 teo2706 <[EMAIL PROTECTED]>
>
>
>
>
>
> > Will PackageManager.installPackage() be available for applications in
> > future versions? Ot will it be possible to install applications only
> > through Package Installer application, as you suggested below in this
> > thread?
>
> > On 26 Авг, 09:36, hackbod <[EMAIL PROTECTED]> wrote:
> > > This is not available to applications, sorry.
>
> > > On Aug 26, 12:25 am, Wesley Sagittarius <[EMAIL PROTECTED]> wrote:
>
> > > > hi,
>
> > > > Does anyone successful use the PackageManager  to install apk???
>
> > > > wesley.
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Change Tab Widget icon for currently active tab

2008-12-05 Thread mscwd01

Thank you Dianne,

I never doubted there would be an elegant way to achieve this - I love
Android ;)

Again, thanks for your help.



On Dec 5, 2:34 am, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> Make your tab drawable a selector drawable that picks other drawables based
> on its state, like the standard tab drawable:
>
> 
> 
>
> http://schemas.android.com/apk/res/android";>
>     
>      android:state_pressed="false"
> android:drawable="@drawable/tab_unselected" />
>      android:state_pressed="false"
> android:drawable="@drawable/tab_selected" />
>
>     
>      android:state_pressed="false" android:drawable="@drawable/tab_focus"
> />
>      android:state_pressed="false" android:drawable="@drawable/tab_focus"
> />
>
>     
>      />
> 
>
>
>
> On Thu, Dec 4, 2008 at 2:45 PM, mscwd01 <[EMAIL PROTECTED]> wrote:
>
> > Anyone? I've spent most of today on this problem and its starting to
> > get old ;)
>
> > On Dec 4, 6:43 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
> > > This is not so much a problem, more a question about how to achieve
> > > something...
>
> > > I have a tabhost with three tabs. I have 6 icons, 3 in colour and 3 an
> > > exact copy but in grayscale.
>
> > > What I want to do is have the coloured version of the icon displayed
> > > when the tab is active i.e. being viewed. Otherwise I want the other
> > > inactive tabs to show the grayscale version of their icon - and change
> > > to the coloured version if they are clicked.
>
> > > So I want a tab to show a coloured icon if active and a grayscale icon
> > > if inactive...
>
> > > Any ideas how to achieve this anyone?
>
> > > I have played around with the TabHost onTabChangeListener but havent
> > > been able to find a solution.
>
> > > Ideally I need something like:
>
> > > tabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {
>
> > >                        public void onTabChanged(String arg0) {
> > >                             int selectedTab = tabs.getCurrentTab();
>
> > >                             // Update newly selected tab to display
> > > colorful icon
> > >                             // Update previously selected tab to
> > > display greyscale icon
> > >                        }
> > >                   });
>
> > > Thanks
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PackageManager.installPackage().

2008-12-05 Thread teo2706

I realised, that the official release of Android SDK for Windows
1.0_r1 lacks the Settings application and that's why the Package
Installer application cannot succussfully install packages. I've
checked out the sources from the Android repo and rebuilt the image
files from them. Now, on attempt to install a package through the
PackageInstaller application, I get the following error message from
the Android System:

Out of space: Android System could not be viewed. Free up some space
on your phone and try again .

>From the Settings application, I can see, that I have 44Mb free space
on the Internal Phone storage. I did also create a sdcard with 10Mb,
and ran the emulator with the card (I see the 10Mb as free in the SD
Card from the Settings application), but I still get the same
exception with the Android system.

Can anyone help me with this?

---
Thanks,
Teodor

PS: The strangest thing is, that when I initially uploaded the new
images, that I rebuilt from the sources, I was able to install
packages, but after a few successful attempts, I can no longer
successfully install packages through Package Installer application.

On 24 Ноем, 10:54, teo2706 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've already read the following two threads:
>
> 1)http://groups.google.com/group/android-developers/browse_thread/threa...
> 2)http://groups.google.com/group/android-developers/browse_thread/threa...
>
> I realised, that the only way to do an application installation is
> through Package Installer application. It does not work in the Android
> SDK for Windows 1.0_r1. Has it already been fixed in the sources of
> the SDK? If yes, has someone already rebuilt the SDK and uploaded it
> somewhere, so that it can be used by other developers?
>
> ---
> Regards
> Teodor
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: terminate the incoming call?

2008-12-05 Thread Luke w
I am trying to find this answer too .. I have some more questions:
If we have method to terminate it, how long we may use to terminate ? I want
avoid the ringtone too.
what if the incoming call had been terminated, is there a notification apear
in the top screen or not?

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



[android-developers] Re: Uninstall packages API

2008-12-05 Thread teo2706

I found out, that one is able to delete a package on the emulator
through Package Installer application by following this approach:

Intent intent1 = new Intent(Intent.ACTION_DELETE);
String packageName = "com.example.android.helloactivity";
Uri data = Uri.fromParts("package", packageName, null);
intent1.setData(data);
startActivity(intent1);


On 14 Ноем, 09:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I saw, that there is an android.permission.DELETE_PACKAGES, but it
> seems, that there is no API (at least at the moment) to delete a
> package. Is that permission checked anywhere in Android, possibly in a
> undocumented API to delete a package?
>
> On 13 Окт, 19:45, hackbod <[EMAIL PROTECTED]> wrote:
>
> > Sorry, I don't think this is supported in 1.0.
>
> > On Oct 13, 3:51 am, denismo <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I know there is a way to uninstall applications on emulator, using
> > > ADB, but that is not available on the phone.  My application needs to
> > > provide a way to uninstall itself, initiated automatically or by
> > > user's request through UI, with user's permission of course - it
> > > doesn't need to be uncontrolled. So it should be done
> > > programmatically, using some public API like PackageManager.uninstall.
> > > Any ideas on how this can be done?
>
> > > Thanks.
>
> > > Denis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context => how to load non power of two dimension bitmap?

2008-12-05 Thread Guian

I found this way to used non power of two size picture as a texture
and the textured is filled with black but it doesn't matter :

QUOTE :

Find the smallest power of 2 testure that still contains the
non-power-of-two (NPOT) texture. Then adjust texture coordinates
accordingly.

Quick example :
NPOT original texture is x=11 ; y=34
POT texture should be x2 = 2^ceil(log2(x)) = 16 ; y2 = 2^ceil
(log2(x)) = 64
The remaining texel data should be set to black, as it is the
default border color (wait, does GL ES have texture borders ? EDIT:
not in ES 1.1). It works well for non-repeating textures, but if you
want a repeating texture, a pixel shader is probably needed (ES
2.0) ...

NPOT original texcoords = 0,0 0,1 1,1 1,0
POT adapted texcoords = 0,0 0,1*y/y2 1*x/x2,1*y/y2 1*x/x2,0
--

is that what you meant robert ?

I think I will try it soon...



On Dec 5, 7:11 am, Robert Green <[EMAIL PROTECTED]> wrote:
> Pretty much the rule with 3D stuff is that you always use power-of-2
> size textures.  Many times the texture won't be filled all the way
> with usable stuff (lots of black area) but that doesn't matter because
> you only really care about the areas within the UV maps anyway.
>
> On Dec 4, 8:39 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
>
> > I believe the G1 hardware does not support non-power-of-2 textures.
>
> > On Thu, Dec 4, 2008 at 8:48 AM, Guian <[EMAIL PROTECTED]> wrote:
>
> > > in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
> > > (http://code.google.com/android/reference/android/opengl/GLUtils.html
> > > )
> > >  we can read=>
>
> > > "Whether or not bitmap can have non power of two dimensions depends
> > > on
> > > the current OpenGL context."
>
> > > I load my OpenGL context using :
> > > mEglContext = mEgl.eglCreateContext(mEglDisplay,
> > > mEglConfig,EGL10.EGL_NO_CONTEXT, null);
>
> > > do you know what do I have to do in order to load non power of two
> > > dimensions bitmap?
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [EMAIL PROTECTED]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support.  All such questions should be posted on public
> > forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-05 Thread Matthias

Dianne,

On 5 Dez., 00:45, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> FLAG_CANCEL_CURRENT will almost certainly work.  If you look at the code, if
> you have the flag set it just removes any existing intent and creates a
> whole new pending intent with the intent you provide.  The returned
> PendingIntent can't contain the old intent data.

Now that you mention it, I have to revise my last post: As I already
mentioned in my post from 21 Nov., 11:14, a new PendingIntent object
is created indeed (the object IDs differ each time), but still, as
soon as the activity is fired, the data from Intent No. 1 will be
passed, always. So yes and no. Yes, a new PendingObject is indeed
created, but no, it *does* contain the old intent data.

I could check it one last time just to be 100% sure, but since I
already spent a whole day on this, I'd rather not touch the code
again, now that it's working... :-/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to explicitly establish connection to the underlying GPRS or WiFi?

2008-12-05 Thread Marcio Alexandroni

Yes, I noticed that too, I also work with PalmOS and Windows Mobile
development and you have all the control over the network connections.

Android stays connected on any network it finds, Mobile Data Network or
WiFi. If you have a WiFi network registered and you reach its covered area,
it switches automatically to WiFi. If you are out of the WiFi network, it
tries to connect to the operator data network (GPRS, EDGE, 3G).

There must be a way to prevent one or other connection but I didn't find
(yet) any way to explicitly control the connections (drop/connect).

Marcio Alexandroni
www.cialogica.com
w  Tel. 55 11 3717-2345
   Cel. 55 11 9989-8316
[EMAIL PROTECTED] 
 marcioalexandroni

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Qualyxx
Sent: Thursday, December 04, 2008 17:35
To: Android Developers
Subject: [android-developers] How to explicitly establish connection to the
underlying GPRS or WiFi?


In Window Mobile or Brew, the application has to make a
ConnMgrEstablishConnection call to connect to the underlying data
network. I don't see such API exists in Android.

The question is:  when is the the network connection with the
underlying data network established? when the first Socket connect
call is made? when the browser makes a URL request? And when does it
decide to close the network connection and is there an API to
accomplish that?

The android.net.ConnectivityManager seems to provide network status
but no explicit calls to open and end the data connection to the
network.

Any hints would be appreciated.

Thanks,

Yang




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



[android-developers] Re: Largish HTTP Post vs. ANR

2008-12-05 Thread Dianne Hackborn
You can look in I believe /data/anr/traces.txt to find a dump of the stacks
of all processes and threads when the ANR happened, which should tell you
what your thread was stuck doing at the time.

On Thu, Dec 4, 2008 at 4:27 PM, <[EMAIL PROTECTED]> wrote:

>
> Yes, I've already coded that up and it behaves identical to
> HttpURLConnection. So that's
> not the root cause of this.
>
> I just tested this on 3g vs. my home wireless and it too behaves
> identically, so it's not the
> kind of net connectivity that's causing this either.
>
> Mike
>
> On Thu, Dec 4, 2008 at 4:21 PM, Mark Murphy <[EMAIL PROTECTED]>
> wrote:
> >
> > [EMAIL PROTECTED] wrote:
> >> So I switch over to using DefaultHttpClient and friends and it...
> >> behaves the same way.
> >> (I assume that's what you meant by HTTPComponents aka the apache stuff?)
> >
> > Yes, the stuff in org.apache.http.*. Documentation can be found at
> > http://hc.apache.org, and example code for HttpClient can be found at:
> >
> > http://hc.apache.org/httpcomponents-client/examples.html
> >
> > --
> > Mark Murphy (a Commons Guy)
> > http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 1.9 Published!
> >
> > >
> >
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

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

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



[android-developers] Re: Network access problem on ubuntu

2008-12-05 Thread Brian

Are they both have the APN record configured?
If yes, then I have no idea so far. Maybe someone else could help on
this...
Regards

On 12月5日, 上午11時33分, taosinker <[EMAIL PROTECTED]> wrote:
> Brian:
> Thanks for your response.
>
> After I double check the issue, I found more strange things.
>
> If I lunch the emulator in file browser, the web browser in android
> can access the outside website.
> If I lunch the emulator in console by ./emulator command, the web
> browser in android cannot access the outside website.
>
> Regards
>
> On 12月4日, 下午5时15分, Brian <[EMAIL PROTECTED]> wrote:
>
> > Probably you forgot to configure APNs.
> > Go to Settings -> Wireless controls -> Mobile networks -> Access Point
> > Names
> > Press Menu to configure a new APN.
>
> > On 12月4日, 下午5時01分,taosinker<[EMAIL PROTECTED]> wrote:
>
> > > Hi all:
> > > Now I build the android code on ubuntu, in the build I can launch the
> > > emulator on unbuntu. I met a problem, I cannot connect the website in
> > > the emulator. But under the same network env, the android emulator on
> > > windows xp can connect the website.
> > > I don't know the reason. Who can help me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Notification details Activity never receives Intent used to fire it

2008-12-05 Thread Guillaume Perrot
Maybe FLAG_CANCEL_CURRENT does cancel the current intent if it has the same
uri, action but also the same request code (since it's part of the identity)
?

2008/12/5 Dianne Hackborn <[EMAIL PROTECTED]>

> FLAG_CANCEL_CURRENT will almost certainly work.  If you look at the code,
> if you have the flag set it just removes any existing intent and creates a
> whole new pending intent with the intent you provide.  The returned
> PendingIntent can't contain the old intent data.
>
>
> On Thu, Dec 4, 2008 at 1:19 AM, Matthias <[EMAIL PROTECTED]>wrote:
>
>>
>> I'm pretty sure I used FLAG_CANCEL_CURRENT to no avail... passing
>> different request codes each time was the only way to create a new
>> intent. I spent a whole day on this combining flags to no avail, until
>> I tried the workaround by Guillaume.
>>
>> On 25 Nov., 19:24, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
>> > It may or may not be the right thing to do.  If you are not going to use
>> the
>> > old intent, you should just use FLAG_CANCEL_CURRENT to first cancel the
>> > existing one so it can be replaced with your new one.
>> >
>> > On Tue, Nov 25, 2008 at 12:29 AM, Guillaume Perrot <
>> [EMAIL PROTECTED]
>> >
>> >
>> >
>> > > wrote:
>> > > Yes using request codes is the right thing to do, this is just a
>> > > documentation bug in the end.
>> >
>> > > 2008/11/25 alex <[EMAIL PROTECTED]>
>> >
>> > >> Ok, so I ran into this exact issue too. I need to send different data
>> > >> via the extras of the intent, but the old intent with the old extras
>> > >> keeps getting delivered unless I pass unique values into the
>> > >> mysterious requestCode parameter.
>> >
>> > >> So this begs the question: is using the requestCode in this way
>> > >> kosher?  Is there a better way?
>> >
>> > >> BTW, I'm using PendingIntents for alarms and notifications.
>> >
>> > >> On Nov 21, 2:47 pm, Guillaume Perrot <[EMAIL PROTECTED]>
>> wrote:
>> > >> > Thanks for your answer, it eventually solves the mystery \o/
>> > >> > I quoted it in the Issue 863.
>> > >>http://code.google.com/p/android/issues/detail?id=863
>> >
>> > >> > On 21 nov, 23:38, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
>> >
>> > >> > > Ah you are right, the request code is also part of its identity.
>> >
>> > >> > > For the nitty gritty details, this file defines a PendingIntent
>> > >> maintained
>> > >> > > by the system and the full key used to match them:
>> >
>> > >> > >
>> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;.
>> > >> ..
>> >
>> > >> > > On Fri, Nov 21, 2008 at 3:07 AM, Matthias <
>> [EMAIL PROTECTED]>
>> > >> wrote:
>> >
>> > >> > > > And to further clear up my intentions:
>> >
>> > >> > > > I have a model class called "Event". It represents user
>> activity in
>> > >> my
>> > >> > > > system (such as rating items or writing messages). These events
>> are
>> > >> > > > delivered to the user through NotificationManager. For every
>> such
>> > >> > > > event, the NM calls Event.toNotification() and delivers the
>> > >> > > > notification.
>> >
>> > >> > > > Furthermore, I have an activity called EventDetailsActivity.
>> This is
>> > >> > > > triggered whenever the user taps on the notification to read
>> the
>> > >> event
>> > >> > > > info in full length. This implies primarily two things:
>> >
>> > >> > > > 1. I must be able to pass an Event model object to
>> > >> > > > EventDetailsActivity whenever the user taps the corresponding
>> > >> > > > notification
>> > >> > > > 2. I must be able to reuse EventDetailsActivity even it is
>> already
>> > >> > > > displaying another event (e.g. update it via onNewIntent())
>> >
>> > >> > > > Thus, in Event.toNotification(), I do this:
>> >
>> > >> > > >public final Notification toNotification(Context context) {
>> > >> > > >Intent intent = new Intent(context,
>> > >> > > > EventDetailsActivity.class);
>> > >> > > >intent.putExtra("event", this);
>> > >> > > >intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
>> > >> > > >| Intent.FLAG_ACTIVITY_SINGLE_TOP);
>> > >> > > >configureIntent(intent); // template method for
>> subclasses
>> >
>> > >> > > >PendingIntent contentIntent = PendingIntent.getActivity
>> > >> > > > (context,
>> > >> > > >requestCode++, intent, 0);
>> >
>> > >> > > >Notification notification = new Notification
>> > >> > > > (getNotificationIcon(),
>> > >> > > >getTickerText(), getDate().getTime());
>> > >> > > >notification.setLatestEventInfo(context, getTitle(),
>> getText
>> > >> > > > (),
>> > >> > > >contentIntent);
>> >
>> > >> > > >return notification;
>> > >> > > >}
>> >
>> > >> > > > Hope that clears up my intentions.
>> >
>> > >> > > > On 21 Nov., 11:14, Matthias <[EMAIL PROTECTED]> wrote:
>> > >> > > > > Well, when /do/ PendingIntents match? All I can say is that
>> > >> calling
>> > >> > > > > PendingActivity.getActivity() created a new PendingIntent
>> each
>> > >> t

[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
Hi Ralf,

Thanks again..

1. Ran create_ddms_symlink.sh
2.In eclipse File - import->plugins and fragments ->plugin location
.../development/tools/eclipse/plugins..ide.eclipse.ddms
3.Added plugin succesfully
4.gettign the below error... :(

am i doing something really stupid !! :(

(*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so ?)


Severity and DescriptionPathResourceLocationCreation Time
Id
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
path122846629620265174
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddmsBuild
path122846629620365175
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
path122846629620265173
--

On Fri, Dec 5, 2008 at 12:53 PM, Ralf <[EMAIL PROTECTED]> wrote:

>
> Make sure to run
> development/tools/eclipse/script/create_ddms_symlink.sh and then only
> import the ddms-plugin project (from
> dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
> need the ddmlib and ddmuilib projects in Eclipse for ADT because they
> are symlinked under the plugin/ddmsdirectory.
>
> R/
>
> On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
> <[EMAIL PROTECTED]> wrote:
> > Hi Xav,
> >
> > Thank you,
> >
> > Now am clear with few of the errors(compiler compliance).
> > I have synced to latest source, and for ddms i have  added  3
> > projects(ddmlib,dddmuilib and app) by new project-new java project-
> browse
> > to development/tools/ddms
> >
> > now remained with "Button/clipboard/color/composite/combo  cannot be
> > resolved" !!
> >
> > How can i add SWT in the dependencies? and this is a ddmuilib project
> > (/development/tools/ddms/lib..)
> >
> > can you help me to resolve the above?
> >
> > regards
> > steve
> > On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote:
> >>
> >> On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi ,
> >> >
> >> > That error gone, i separately executed all the scripts...
> >> > Now few more errors are like
> >> >
> >> > "assert cannot be resolved   client.java
> >> > ddmlib/src/com/android/ddmlib"
> >>
> >> Can you make sure you are setup with compiler compliance level 5.0? I
> >> looks like you're building in 1.4 or lower...
> >>
> >> > "Button cannot be resolved to a type AllocationPanel.java
> >> > ddmuilib/src/com/android/ddmuilib"
> >>
> >> This would mean you don't have SWT in the dependencies. Is this in the
> >> ddms plugin project or in the ddmuilib project?
> >>
> >> > "Can only iterate over an array or an instance of java.lang.iterable
> >> > AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib"
> >>
> >> This is probably a compiler level issue too.
> >>
> >> Xav
> >>
> >>
> >
> >
> > >
> >
>
> >
>

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



[android-developers] Re: Debug android source code

2008-12-05 Thread Dave Sparks

This list is for discussing application development. Discussion of
porting, extending, and debugging the Android source code should take
place on the open source mailing lists (android-platform, android-
framework, android-porting, or android-kernel).

On Dec 4, 11:50 pm, Yogi <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I want to debug android codec source code and want to know how the
> audio/video graph is build.
> Can we debug the codec source code with the help of ADB?
> Please help me out.
>
> Thanks in advance,
> Yogi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---