[android-developers] Re: About Context Menu

2009-06-18 Thread Adem KARAKOLLU
What do you think about the removing borders of the alertDialog?is it
possible?

On Wed, Jun 17, 2009 at 10:44 AM, 梁舒华 suker...@gmail.com wrote:



 2009/6/17 Adem KARAKOLLU karako...@gmail.com

 Hi all.
 Is it possible to change background (image/color) of the contextMenu.
 I want to change appearance of the contextMenu...
 Must i use dialog instead of contexMenu ??
 Any idea?
 Thanks

 --
 ADEM KARAKOLLU




 if you can ,do it.


 



-- 
ADEM KARAKOLLU

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



[android-developers] Android sdk sources

2009-06-18 Thread sergey.drygan...@gmail.com

Why android sdk don't include sources for platforms?

It's require a lot of time to get proper sources from git from
different parts.

It's will be better if sdk package will include java sources of base
framework at least.




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



[android-developers] Re: Can not receive multicast packets

2009-06-18 Thread Jonas Ådahl

Take a look at this bug report: 
http://code.google.com/p/android/issues/detail?id=2917
According to michael.sciscenti the reason is, since Android 1.5 the
Join packet is not sent out.

Jonas

On May 19, 4:57 pm, Whino whino...@gmail.com wrote:
 I'm using this code on real device.
 I know there is someone wants to port UPnP stack to Android.
 But I don't know any DLNA application on Android from official or
 other open source project.
 Could you tell me the application name or its info?
 Thank you very much.

 On May 19, 3:54 pm, Daniel Janev d.ja...@prosyst.com wrote:

          Hi,

  You use the SDK and the emulator or you are trying this code on real
  device?

  As far as I know there is DLNA application for Android, which works on
  the phone using the WiFi connection.

  Whinowrote:
   The following is the listen function I used to receivemulticast
   packets.
   socket.receive can not receive packets from remote peer, but it can
   receive packets sent from local.

       public static void listen() throws IOException {
           Runnable r = new Runnable() {
               public void run() {

                   while (true) {
                       try {
                           MulticastSocket socket = new MulticastSocket
   (1900);
                           Log.v(TAG, Settingmulticastnetwork
   interface:  + ni);
                           socket.setNetworkInterface(ni);

                           socket.setTimeToLive(4);
                           socket.setReuseAddress(true);
                           socket.joinGroup(getMulticastAddress());
                           while(true)
                           {
                               byte[] buf = new byte[1024];
                               DatagramPacket packet_r = new
   DatagramPacket(buf, buf.length);
                               socket.receive(packet_r);
                               String s = new String(packet_r.getData());

                               Log.v(TAG, Receiving aMulticastfrom [
   + packet_r.getAddress().getHostAddress() + : + packet_r.getPort() +
   ]);
                               Log.v(TAG, Data:  + s);

                               CharSequence data = packet_r.getAddress
   ().getHostAddress() + : + packet_r.getPort();
                               Toast.makeText(view, data,
   Toast.LENGTH_SHORT).show();
                           }
                       } catch (IOException e) {
                           Log.v(TAG, UPNP network exception, e);
                           try {
                               Thread.sleep(1000);
                           } catch (InterruptedException e1) {}
                       }
                   }

               }};
           sListener = new Thread(r);
           sListener.start();
       }

  --

  Best Regards,
      Daniel
  ---
  Daniel Janev · Department Manager/Core Platform and Smart Home
  ProSyst Software GmbH
  1606 Sofia, Bulgaria · Vladajska Str. 48
  Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17
  Mobile Phone +359 (0)888 678 670http://www.prosyst.com·d.ja...@prosyst.com
  ---
  stay in touch with your product.
   Hide 
  quoted text -

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



[android-developers] Re: Can not receive multicast packets

2009-06-18 Thread gshetty

I have the same problem after upgrading to 1.5 on the device. But this
works fine on the emulator.

Regards
Goutam

On Jun 18, 11:28 am, Jonas Ådahl jad...@gmail.com wrote:
 Take a look at this bug 
 report:http://code.google.com/p/android/issues/detail?id=2917
 According to michael.sciscenti the reason is, since Android 1.5 the
 Join packet is not sent out.

 Jonas

 On May 19, 4:57 pm, Whino whino...@gmail.com wrote:

  I'm using this code on real device.
  I know there is someone wants to port UPnP stack to Android.
  But I don't know any DLNA application on Android from official or
  other open source project.
  Could you tell me the application name or its info?
  Thank you very much.

  On May 19, 3:54 pm, Daniel Janev d.ja...@prosyst.com wrote:

           Hi,

   You use the SDK and the emulator or you are trying this code on real
   device?

   As far as I know there is DLNA application for Android, which works on
   the phone using the WiFi connection.

   Whinowrote:
The following is the listen function I used to receivemulticast
packets.
socket.receive can not receive packets from remote peer, but it can
receive packets sent from local.

    public static void listen() throws IOException {
        Runnable r = new Runnable() {
            public void run() {

                while (true) {
                    try {
                        MulticastSocket socket = new MulticastSocket
(1900);
                        Log.v(TAG, Settingmulticastnetwork
interface:  + ni);
                        socket.setNetworkInterface(ni);

                        socket.setTimeToLive(4);
                        socket.setReuseAddress(true);
                        socket.joinGroup(getMulticastAddress());
                        while(true)
                        {
                            byte[] buf = new byte[1024];
                            DatagramPacket packet_r = new
DatagramPacket(buf, buf.length);
                            socket.receive(packet_r);
                            String s = new String(packet_r.getData());

                            Log.v(TAG, Receiving aMulticastfrom [
+ packet_r.getAddress().getHostAddress() + : + packet_r.getPort() +
]);
                            Log.v(TAG, Data:  + s);

                            CharSequence data = packet_r.getAddress
().getHostAddress() + : + packet_r.getPort();
                            Toast.makeText(view, data,
Toast.LENGTH_SHORT).show();
                        }
                    } catch (IOException e) {
                        Log.v(TAG, UPNP network exception, e);
                        try {
                            Thread.sleep(1000);
                        } catch (InterruptedException e1) {}
                    }
                }

            }};
        sListener = new Thread(r);
        sListener.start();
    }

   --

   Best Regards,
       Daniel
   ---
   Daniel Janev · Department Manager/Core Platform and Smart Home
   ProSyst Software GmbH
   1606 Sofia, Bulgaria · Vladajska Str. 48
   Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17
   Mobile Phone +359 (0)888 678 670http://www.prosyst.com·d.ja...@prosyst.com
   ---
   stay in touch with your product.
    Hide 
   quoted text -

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



[android-developers] Bringing up soft keypad

2009-06-18 Thread gshetty

Hi

I have a an Activity with an EditText control in it. Basically what I
want to have is the soft keypad to come up automatically even before
the user taps on the EditText control as soon as this activity is
created.
I tried setting the focus on the Edit control using .requestFocus()
method. This however sets the focus but the soft keypad does not come
up. How can I do this?

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



[android-developers] help with GMaps

2009-06-18 Thread Saurav Mukherjee
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): requestFailed()
06-18 12:05:34.447: ERROR/ProtoRequestListener(60):
com.google.common.async.WatchdogException
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.async.AsyncHttpRequestFactory$AsyncHttpRequestImpl.watchdogFired(Unknown
Source)
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.async.AsyncHttpRequestFactory$WatchdogTask.run(Unknown
Source)
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.task.AbstractTask.runInternal(Unknown Source)
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.task.TimerTask.runInternal(Unknown Source)
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.task.TaskRunner.run(Unknown Source)
06-18 12:05:34.447: ERROR/ProtoRequestListener(60): at
com.google.common.lang.ThreadFactory$ThreadImpl.run(Unknown Source)

i am using google api to display maps. wen i try to display them on gprs,
this is the exception i get. any idea y this happens.

please note, the only way to connect to internet is gprs.

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



[android-developers] how can alert dialog add/delete items arbitrary?

2009-06-18 Thread tstanly

hi all,

I wish my alert dialog can add/remove items arbitrary,
but I looked for the sdk reference but nothing method can use,
is somone knows how to do?


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



[android-developers] Re: Android.apk file not found problem

2009-06-18 Thread abhinav

its sorted ... i thought i should update this , though after a long
time
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how can alert dialog add/delete items arbitrary?

2009-06-18 Thread Tsai stanly
solved
use android.app.AlertDialog.Builder
there has setAdapter method

2009/6/18, tstanly tsai.sta...@gmail.com:


 hi all,

 I wish my alert dialog can add/remove items arbitrary,
 but I looked for the sdk reference but nothing method can use,
 is somone knows how to do?


 thanks
 


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



[android-developers] Re: How to drop the AppWidget to Home Screen?

2009-06-18 Thread Ting Zheng
Why can the google search widget be dropped to the screen as default? ;-)

2009/6/17 Romain Guy romain...@google.com

 No, it is not possible :)

 On Wed, Jun 17, 2009 at 12:12 AM, Ting Zheng tng.z...@googlemail.comwrote:

 Thx very much for your reply! I have another question: Is it possible to
 add the AppWidget to the screen programmatically?

 Tng

 2009/6/16 Jeff Sharkey jshar...@android.com


 You have to long-press on the home screen, or pick Add from the
 menu.  Then you can pick Widgets and the example widget.

 j

 On Sat, Jun 13, 2009 at 1:32 PM,
 tng.z...@googlemail.comtng.z...@googlemail.com wrote:
 
  I checked out the SimpleWikitionary, the demo project mentioned in
  the Blog http://android-developers.blogspot.com/2009/04/introducing-
  home-screen-widgets-and.html.
  I tried to start the application in the emulator. The application was
  installed successfully on the emulator, but I could not see the wiki-
  widget on the home screen. I added also some logging code in the
  WordWidget::onUpdate(), however, the code seems never to be called.
 
  Does the emulator delivered in SDK 1.5 support the AppWidgets
  Framework? Or I did forget to do some configuration?
 
  Thx in advance for help!
 
  Ting
 
  
 



 --
 Jeff Sharkey
 jshar...@android.com








 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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


 


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



[android-developers] Re: How to save the view to image file ?

2009-06-18 Thread gjs

Read the docs for View.draw()...

On Jun 17, 8:15 pm, Percy pengjianq...@gmail.com wrote:
 Hi Brian,
 I also want to know the answer.
 It seems Camera  class can capture  the screen and can resize it in a
 Canvas.But I have not  try it.

 Any one have suggestions?
 Thanks

 On 6月17日, 上午2时28分, Brian Smith avalo...@caerleon.us wrote:

  Two questions...

  1) (out of curiosity) What does the ability to take snapshots have to
  do with the ability to design a game for Android?  Games usually put
  things on the screen, not the other way around.

  2) Are you wanting to do this from your code, or just to have
  screenshots for advertising/publishing?

  I don't know how to do it from code, but the Android SDK does provide
  a way to take screenshots from an emulator or connected device.

 http://developer.android.com/guide/developing/tools/ddms.html

  If you're using Eclipse for Android development, the DDMS functions
  are available in the DDMS context (assuming you've installed the
  Android plugin).

  On Jun 16, 2:28 am, Alan kind...@gmail.com wrote:

   Hi all,

   When I design a game, I have a problem.
   How to save the View display on the screen to a image file such
   as png,jpg file
   Whether android API is support to this function?

   If no API support to this save function, how to design my
   program ?

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



[android-developers] Scheduling

2009-06-18 Thread bsbi...@googlemail.com


Hi,

I am writing a demo app that allows the user to set a number of times
they want my app to run. The app has no interface and just puts shows
some notifications.

Running this as a service seems the most obvious.

What's the best way to handle the timing issue?

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



[android-developers] Re: getting mobile pc stuff to work on android

2009-06-18 Thread gjs

Try contacting the original software developers and ask them if they
have ported their apps to Android.

Or search for similar apps through http://www.cyrket.com/

Regards

On Jun 17, 7:28 pm, chris.compo chris.co...@googlemail.com wrote:
 Is it possible to request sites or programs that you would like
 someone to put on android ? I have some software on a windows mobile
 pc xda and would like to get  an android phone on my next contract.
 but I want it to be able to support this particular software.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Access protected member variables in Android classes

2009-06-18 Thread Deren

When I extend a View, I cannot access the protected member variables
from my code. Eclipse just says that there exists no variable with
that name (for instance mScrollX). Why is that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to capture event FINISH LOADING ListView and GridView

2009-06-18 Thread TuanSandman

does anyone know how. Please help me

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



[android-developers] Re: READ_CALENDAR and WRITE_CALENDAR

2009-06-18 Thread Karima

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



[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread quill

Thank you Nightwolf.
I want to choose the Kube when I touch on the Kube face in order to
rotate Kube.
My idea is:
1. to get vertices of Kube to compose a polygon(2D);
2. judge if the touch point locates in the polygon;
As you said, the cube coordinates is not modified, so I use
gluunproject() to change touch point coordinates(x, y, 0) in order to
map window coordinates to object coordinates, and then I judged if the
new touch point coordinates locates in the polygon. Am I on the right
way?

On Jun 18, 11:59 am, Nightwolf mikh...@gmail.com wrote:
 Cube coordinates are stored in vertices array in Cube.java.
 Rotating effect is achieved via model view matrix modification
 (glTranslate and glRotate commands). Original vertex data isn't
 modified.

 On Jun 17, 8:30 pm, quill quill...@163.com wrote:



  Hi all,
  I'm modifying Kube(api demo) to a game, does anyone who know how to
  get the vertice coodinates of Kube? From the source code in api demo,
  I think GLWorld.mVertexBuffer may save the vertice coodinates after
  rotate the Kube, but I was wrong, the infomation in mVertexBuffer
  always remains the same.- Hide quoted text -

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



[android-developers] Re: READ_CALENDAR and WRITE_CALENDAR

2009-06-18 Thread Karima

Found : http://caustiq.esoteriq.org/nb/

Uri uri = Uri.parse(content://calendar/events);
ContentResolver cr = context.getContentResolver();

ContentValues values = new ContentValues();
values.put(eventTimezone, EST);
values.put(calendar_id, 1); // query content://calendar/calendars
for more
values.put(title, Party over thurr);
values.put(allDay, 0);
values.put(dtstart, dtstart); // long (start date in ms)
values.put(dtend, dtend); // long (end date in ms)
values.put(description, Bring computers and alcohol);
values.put(eventLocation, ZA WARULDO);
values.put(transparency, 0);
values.put(visibility, 0);
values.put(hasAlarm, 0);

cr.insert(uri, values);

With :

...
uses-permission android:name=android.permission.WRITE_CALENDAR /

uses-permission android:name=android.permission.READ_CALENDAR /

/manifest

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



[android-developers] Re: READ_CALENDAR and WRITE_CALENDAR

2009-06-18 Thread Dianne Hackborn
This is not a public API, please don't use it.

On Thu, Jun 18, 2009 at 1:24 AM, Karima karima.ra...@gmail.com wrote:


 Found : http://caustiq.esoteriq.org/nb/

 Uri uri = Uri.parse(content://calendar/events);
 ContentResolver cr = context.getContentResolver();

 ContentValues values = new ContentValues();
 values.put(eventTimezone, EST);
 values.put(calendar_id, 1); // query content://calendar/calendars
 for more
 values.put(title, Party over thurr);
 values.put(allDay, 0);
 values.put(dtstart, dtstart); // long (start date in ms)
 values.put(dtend, dtend); // long (end date in ms)
 values.put(description, Bring computers and alcohol);
 values.put(eventLocation, ZA WARULDO);
 values.put(transparency, 0);
 values.put(visibility, 0);
 values.put(hasAlarm, 0);

 cr.insert(uri, values);

 With :

...
uses-permission android:name=android.permission.WRITE_CALENDAR /
 
uses-permission android:name=android.permission.READ_CALENDAR /
 
 /manifest

 



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

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

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



[android-developers] Re: Access protected member variables in Android classes

2009-06-18 Thread Dianne Hackborn
These symbols are not part of the official SDK because they are not
supported across releases of the platform.

On Thu, Jun 18, 2009 at 12:43 AM, Deren adam.d0...@gmail.com wrote:


 When I extend a View, I cannot access the protected member variables
 from my code. Eclipse just says that there exists no variable with
 that name (for instance mScrollX). Why is that?
 



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

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

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



[android-developers] Re: Scheduling

2009-06-18 Thread Dianne Hackborn
If scheduling is on the order of minutes or more, I strongly recommend using
the alarm manager so your app doesn't need to remain running the entire
time.

On Thu, Jun 18, 2009 at 12:40 AM, bsbi...@googlemail.com 
bsbi...@googlemail.com wrote:



 Hi,

 I am writing a demo app that allows the user to set a number of times
 they want my app to run. The app has no interface and just puts shows
 some notifications.

 Running this as a service seems the most obvious.

 What's the best way to handle the timing issue?

 Thanks
 



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

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

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



[android-developers] Re: How to drop the AppWidget to Home Screen?

2009-06-18 Thread Dianne Hackborn
Home initializes itself with a default layout of shortcut and widgets.  And
the search widget isn't really a widget, anyway.

On Thu, Jun 18, 2009 at 12:29 AM, Ting Zheng tng.z...@googlemail.comwrote:

 Why can the google search widget be dropped to the screen as default? ;-)

 2009/6/17 Romain Guy romain...@google.com

 No, it is not possible :)

 On Wed, Jun 17, 2009 at 12:12 AM, Ting Zheng tng.z...@googlemail.comwrote:

 Thx very much for your reply! I have another question: Is it possible to
 add the AppWidget to the screen programmatically?

 Tng

 2009/6/16 Jeff Sharkey jshar...@android.com


 You have to long-press on the home screen, or pick Add from the
 menu.  Then you can pick Widgets and the example widget.

 j

 On Sat, Jun 13, 2009 at 1:32 PM,
 tng.z...@googlemail.comtng.z...@googlemail.com wrote:
 
  I checked out the SimpleWikitionary, the demo project mentioned in
  the Blog http://android-developers.blogspot.com/2009/04/introducing-
  home-screen-widgets-and.html.
  I tried to start the application in the emulator. The application was
  installed successfully on the emulator, but I could not see the wiki-
  widget on the home screen. I added also some logging code in the
  WordWidget::onUpdate(), however, the code seems never to be called.
 
  Does the emulator delivered in SDK 1.5 support the AppWidgets
  Framework? Or I did forget to do some configuration?
 
  Thx in advance for help!
 
  Ting
 
  
 



 --
 Jeff Sharkey
 jshar...@android.com








 --
 Romain Guy
 Android framework engineer
 romain...@android.com

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





 



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

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

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



[android-developers] Re: How to Start application On-Install

2009-06-18 Thread Dianne Hackborn
This is working as intended, and there is no plan at this point to change
it.

On Wed, Jun 17, 2009 at 10:49 PM, Raj lal.ra...@gmail.com wrote:


 Thanks erictcrook for the idea, but it wont work unless and untill you
 start the application manually once.

 Hi Dianne, so there is no way out in Android for the application to
 run on install, correct?
 But I feel that this feature should have been there, as it is
 available in all other mobile platform like Symbian, WinCE,RIM etc. As
 there is NO silent installation API available in Android hence, it is
 the user only which is going to install the application, then what is
 the harm on making the application up on install complete?
 Or Andoird is having the future plan on this?

 Thanks,
 Raj

 On Jun 18, 1:55 am, Dianne Hackborn hack...@android.com wrote:
  There is a button in market to launch the app.  So you see in the status
 bar
  that the download is down, select the notification, now you are in market
  about the app saying it is installed, and you can press the button there
 to
  launch the app for the first time.
 
 
 
 
 
  On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake mrsnowfl...@gmail.com
 wrote:
 
   I think that's a very good reason not to send it to a newly installed
   app. Though you could give the user the option to start the app
   immediately after install, with a button for example.
 
   On Jun 17, 8:55 pm, Dianne Hackborn hack...@android.com wrote:
We deliberately don't send this broadcast to an app when it is first
installed (as of cupcake you -will- get the broadcast when being
 updated
from a previous install).  It is generally up to the user to launch
 your
   app
when they want to.
 
On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com 
   erictcr...@gmail.com
 
 wrote:
 
 I'm not sure, but I believe the following code may help.
 
 put the folling in your AndroidManifest.xml as a child of your
 Application tag
 
   receiver android:name=com.ericcrook.InstallReceiver
 android:enabled=true
intent-filter
action
 android:name=android.intent.action.PACKAGE_ADDED /
 
data android:scheme=package /
/intent-filter
/receiver
 
 Then create a class that extends BroadcastReceiver, and use it's
 onReceive method to start your activity
 
   public class InstallReceiver extends BroadcastReceiver {
 
   public void onReceive(Context context, Intent intent) {
 
  String data = intent.getDataString();
 
  if (data.equals(package:com.ericcrook.InstallReceiver)) {
 //Start your application using startActivity or whatever is
 appropriate for
 //your project
  }
   }
 }
 
 I'm not very good with the Intent system, so some of this may be
 correct, but hopefully this is better than nothing.
 
 On Jun 16, 6:21 am, Raj lal.ra...@gmail.com wrote:
  Hi,
  I want to start my application just after it gets installed on
 the
  device. Is there any way out in Android to do so.
  I was wondering if there is any receiver to get informed on
 package
  installed.
  Regards
 
--
Dianne Hackborn
Android framework engineer
hack...@android.com
 
Note: please don't send private questions to me, as I don't have time
 to
provide private support, and so won't reply to such e-mails.  All
 such
questions should be posted on public forums, where I and others can
 see
   and
answer them.
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.- Hide quoted text -
 
  - Show quoted text -
 



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

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

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



[android-developers] Re: How to launch my app if some one browses any xml file

2009-06-18 Thread Dianne Hackborn
I don't think you can do this because the initial URL interception happens
when the browser is processing the URI, before it has a MIME type.  If it
doesn't find an external activity to handle the raw URI, it will at that
point see if it can handle it internally.  At that point either it will do
so, or only if it can't handle it internally will it start retrieving it (at
which point it finds out its MIME type) and if there is an activity that
contains that MIME type it will hand it off.

On Wed, Jun 17, 2009 at 10:03 PM, manoj manojkumar.m...@gmail.com wrote:


 Hi,

 I am trying to launch my application when some one clicks any .xml
 file or .rss file from device browser or mail.

 But, my app is not launched when I type an xml link (for example :
 http://remotesite/xml/myXml.xml), instead, it is opened in the default
 browser as a text file.

 I have put the intent filter as shown below:

 intent-filter
 action android:name=android.intent.action.MAIN/action
 category android:name=android.intent.category.LAUNCHER/
 category
 action android:name=android.intent.action.VIEW /
 category android:name=android.intent.category.DEFAULT /
 
 category
 android:name=android.intent.category.BROWSABLE /
data android:scheme=http /
data android:mimeType=application/xml/
data android:mimeType=application/rss+xml/
data android:mimeType=application/atom+xml/
data android:mimeType=application/*/
data android:mimeType=text/*/

  /intent-filter

 Still no output.

 Basically, my requirement is to show an alert from my app if some one
 clicks any .xml/.rss file from browser or mail.

 Can any one please help me to solve this.

 Thanks,
 Manoj.
 



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

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

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



[android-developers] Re: Consume a key event

2009-06-18 Thread Dianne Hackborn
You should only get a key down if the user is holding down the button (in
which case it will be a repeat).  In either case, you will usually get the
up event from the button.  Make sure you aren't seeing an up event and
processing it as a down event.

On Wed, Jun 17, 2009 at 10:33 PM, ivan istas...@gmail.com wrote:


 I have a custom camera application...

 I'm using a BroadcastReceiver to launch it when the Camera button is
 pressed.  Unfortunately, once my camera app is launched the camera
 button KeyDown event used to launch my camera activity is also passed
 to it, which cause it to immediately attempt to capture a picture.

 Is there a way to consume the KeyEvent so that this doesn't happen?

 ... or any other elegant solutions other then some flag toggle?

 Thanks.


 



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

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

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



[android-developers] nested testcase

2009-06-18 Thread dev

Hi all,

Can I have a nested testcase ? Like

*
public class InstrTestCase extends InstrumentationTestCase
{

public class InstrTestNested extends InstrumentationTestCase


public void testMyTest2()
{

Log.d(MY_TAG,test My test2);

}
}
*

And execute the test by
adb shell am instrument -w -e class
com.InstrTest.InstrTestCase.InstrTestNested  com.InstrTest/
android.test.InstrumentationTestRunner

I am getting class not found error

INSTRUMENTATION_RESULT: shortMsg=Exception thrown in onCreate() of
ComponentInfo{com.InstrTest/android.test.InstrumentationTestRunner}:
java.lang.RuntimeException: Could not find test class. Class:
com.InstrTest.InstrTestCase.InstrTestNested
INSTRUMENTATION_RESULT: longMsg=java.lang.RuntimeException: Exception
thrown in onCreate() of ComponentInfo{com.InstrTest/
android.test.InstrumentationTestRunner}: java.lang.RuntimeException:
Could not find test class. Class:
com.InstrTest.InstrTestCase.InstrTestNested
INSTRUMENTATION_CODE: 0

I am using android.test.InstrumentationTestRunner itself.
Am I missing something or default runner does not support the above.

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



[android-developers] Is Android complaint with VCARD 2.1 specification ?

2009-06-18 Thread Kasmoori Bindu
Hi All,

Does anyone has info whether Android is complaint with VCARD 2.1
specification ?
I could not see,  fields like DOB (Date Of Birth , location etc.,) in
Contacts Application as well Contact Provider.

Best Regards,
Bindu

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



[android-developers] Re: How to Start application On-Install

2009-06-18 Thread Raj

Thanks a lot Dianne for the reply.
So I will take that - there is no way out in Android for the
application to run-on-install as of now.

Regards,
Raj

On Jun 18, 1:34 pm, Dianne Hackborn hack...@android.com wrote:
 This is working as intended, and there is no plan at this point to change
 it.





 On Wed, Jun 17, 2009 at 10:49 PM, Raj lal.ra...@gmail.com wrote:

  Thanks erictcrook for the idea, but it wont work unless and untill you
  start the application manually once.

  Hi Dianne, so there is no way out in Android for the application to
  run on install, correct?
  But I feel that this feature should have been there, as it is
  available in all other mobile platform like Symbian, WinCE,RIM etc. As
  there is NO silent installation API available in Android hence, it is
  the user only which is going to install the application, then what is
  the harm on making the application up on install complete?
  Or Andoird is having the future plan on this?

  Thanks,
  Raj

  On Jun 18, 1:55 am, Dianne Hackborn hack...@android.com wrote:
   There is a button in market to launch the app.  So you see in the status
  bar
   that the download is down, select the notification, now you are in market
   about the app saying it is installed, and you can press the button there
  to
   launch the app for the first time.

   On Wed, Jun 17, 2009 at 12:05 PM, MrSnowflake mrsnowfl...@gmail.com
  wrote:

I think that's a very good reason not to send it to a newly installed
app. Though you could give the user the option to start the app
immediately after install, with a button for example.

On Jun 17, 8:55 pm, Dianne Hackborn hack...@android.com wrote:
 We deliberately don't send this broadcast to an app when it is first
 installed (as of cupcake you -will- get the broadcast when being
  updated
 from a previous install).  It is generally up to the user to launch
  your
app
 when they want to.

 On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com 
erictcr...@gmail.com

  wrote:

  I'm not sure, but I believe the following code may help.

  put the folling in your AndroidManifest.xml as a child of your
  Application tag

        receiver android:name=com.ericcrook.InstallReceiver
  android:enabled=true
                 intent-filter
                         action
  android:name=android.intent.action.PACKAGE_ADDED /

                         data android:scheme=package /
                 /intent-filter
         /receiver

  Then create a class that extends BroadcastReceiver, and use it's
  onReceive method to start your activity

    public class InstallReceiver extends BroadcastReceiver {

    public void onReceive(Context context, Intent intent) {

       String data = intent.getDataString();

       if (data.equals(package:com.ericcrook.InstallReceiver)) {
          //Start your application using startActivity or whatever is
  appropriate for
          //your project
       }
    }
  }

  I'm not very good with the Intent system, so some of this may be
  correct, but hopefully this is better than nothing.

  On Jun 16, 6:21 am, Raj lal.ra...@gmail.com wrote:
   Hi,
   I want to start my application just after it gets installed on
  the
   device. Is there any way out in Android to do so.
   I was wondering if there is any receiver to get informed on
  package
   installed.
   Regards

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

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

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

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

   - Show quoted text -

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

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

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

Re : [android-developers] REG: Xml to Wbxml using EAS. Options

2009-06-18 Thread GAYET Thierry
Hi,

i have start a new thread with my own query. Maybe you have the same need but i 
can also ask my question right ? Maybe we can help each other in order to solve 
it ?

My need is to use APDU from an usim card throough AT command. What is yours ?

 Cordialement


Thierry GAYET
NextInnovation.org
+33(0)663.849.589





De : Ravi ravikumar...@gmail.com
À : Android Developers android-developers@googlegroups.com
Envoyé le : Mercredi, 17 Juin 2009, 18h19mn 43s
Objet : [android-developers] REG: Xml to Wbxml using EAS. Options


Hi Gayett, My doubts are not yet cleared...plz start a new topic
instead of modifying mine  if possible, do answer my query.

On Jun 17, 8:46 pm, GAYET Thierry thierry_ga...@yahoo.fr wrote:
 Hello,

 In order to used APDU (Application Protocol Data Unit) located on the usim 
 card, i am looking for some advice about the best way.

 Is it more interesting to extend the public Telephony API through the 
 TelephonyManager or maybe to communicate with the ril deamon (rild) ?

 The AT commands are defined in the ril.h but may i add my own one (official 
 AT command but not used in this implementation)  ; if so i didn't see any 
 direct sim access in order to send those king of command ? Does anybody have 
 tried to send AT-APDU command to a baseband module ?

 I have read some source code that may help about my reasearch :

 At the Application framework layer:

 framework/base/telephony/java/android/telephony/
 framework/base/telephony/java/android/telephony/gsm/
 framework/base/telephony/java/com/android/internal/telephony/- 
 simcard.java / phoneBase.java / Phone.java
 framework/base/telephony/java/com/android/internal/telephony/gsm/- 
 RIL.java / RILConstants.java / SIMRecords.java / SimIoResult.java
 framework/base/telephony/java/com/android/internal/telephony/gsm/stk/

 At the system libraries layers :

 hardware/ril/include/ril.h
 hardware/ril/libril/
 hardware/ril/reference-ril/
 hardware/ril/rild/

 I include to this email my view of the telephony Android Framework in a pdf 
 document

 Thanks you in advaance for your help.

  regards.

 Thierry GAYET
 NextInnovation.org
 +33(0)663.849.589

  android_ril__NEXT_INNOVATION_AREA_.pdf
 726KViewDownload


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



[android-developers] running hello world application

2009-06-18 Thread aparna

hello all,
I have successfully booted android on to the omap 3530 evm(mistral)
using the prebuilt binaries available in the mistral site..
now i would like to run a simple application like hello world on it..
can somebody please guide me as to how to go about running it and
if some tools have to installed..?
regards
aparna
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting driving directions from application

2009-06-18 Thread LEMESLE Philippe

Hello, 

i'm very intested to in showing route ...

if someone have an idea 

-Message d'origine-
De : android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] De la part de skyman
Envoyé : mardi 9 juin 2009 22:01
À : Android Developers
Objet : [android-developers] Getting driving directions from application


Hello,

In my application I want to show route between two points and display
points (something like POI's from my own source) the user will be
riding through.

How can I get the directions (polyline) from GoogleMaps? Application
will not provide any navigation so I suppose that there are no leagal
obstacles for doing this (correct me please if I'm wrong)


Skyman


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



[android-developers] aborting calls on android devices

2009-06-18 Thread Tez

Hi,

I wish to be able to abort calls on the android system. When a user
dials in a number and calls it, i should be notified of this and hence
abort.

for notification, i have found certain callbacks in the
TelephonyManager class, but i couldn't find a corresponding method to
disconnect a voice call.

I have come across a permission in the android docs -
PROCESS_OUTGOING_CALLS. this states that we can abort calls. Can
anyone point me to a resource where this is actuall done?

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



[android-developers] How to avoid BLANK screen on pause camera preview

2009-06-18 Thread blues

Guys hi ,

I'm running a standard camera preview (i use the camera api demo as a
reference).

When i hit the capture button, there is a black screen for a good 1/2
second until the captured image appears.

My question is how can i freeze the last image being previewed on the
screen while i do the capture work ?
I don't mind that the quality of the displayed image is not as good.

If i hit camera.stopPreview() - that goes into the black screen which
i don't want.

Please advise

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



[android-developers] Re: running hello world application

2009-06-18 Thread ebin jose
Hi Aparna,

You may follow the links below to install the android sdk and write a
helloworld program.

http://developer.android.com/sdk/1.5_r2/installing.html

http://developer.android.com/guide/tutorials/hello-world.html

-Ebin

On Thu, Jun 18, 2009 at 3:01 PM, aparna aparna.gn...@gmail.com wrote:


 hello all,
 I have successfully booted android on to the omap 3530 evm(mistral)
 using the prebuilt binaries available in the mistral site..
 now i would like to run a simple application like hello world on it..
 can somebody please guide me as to how to go about running it and
 if some tools have to installed..?
 regards
 aparna
 


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



[android-developers] Re: How to add a new library to android source

2009-06-18 Thread arun choudhary
Hi

As per my understanding and googling

I created a sample function and wrote jni wrapper for that
now I need a way to wmbeded that in Android source any pointers on the same

Arun

On Wed, Jun 17, 2009 at 1:39 PM, Ne0 liamjamesalf...@googlemail.com wrote:


 I am new to Android development, but i think you will have to build an
 SDK of your NEW android code, and develop your app against that, then
 build android and install it on the device you wish to have it on.
 There may be an easier way, though that is how i would/will approach
 it.

 I am also looking into doing a similar thing, if you are planning on
 having this on more then one device, you may run into problems. As far
 as i can tell you can only load custom builds of android onto the Dev
 phone. To load them onto another device E.G. T-Mobile G1 you will have
 to get the carrier to sign your version of Android else the bootloader
 will not except it.

 This is my understanding of the situation, if you know differently,
 then please advise.

 Liam

 On Jun 17, 6:08 am, arun choudhary achoudhary2...@gmail.com wrote:
  Yes I want to Edit/Add Android source code, build the
  android library with my custom API and use it to feed my  app
 
  Please guide me on the same
 
  Arun
 
 
 
  On Tue, Jun 16, 2009 at 8:28 PM, Ne0 liamjamesalf...@googlemail.com
 wrote:
 
   Do you mean you want to Edit/Add Android source code, build the
   android library with your custom API and use it to feed your app?
 
   On Jun 16, 12:21 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote:
HI
add a folder name lib
and keep the jar  file into it
 
and got to [project setting
add that jar file in libraries
 
On Tue, Jun 16, 2009 at 4:46 PM, Sujay Krishna Suresh 
 
sujay.coold...@gmail.com wrote:
 to add a new library u jus need to go to the project properties 
 add d
 jars...
 
 On Tue, Jun 16, 2009 at 4:21 PM, Arun achoudhary2...@gmail.com
   wrote:
 
 Hi All,
 
 I have an specific requirement to write a new library in android
 source and an simple client application on top of that. which uses
 some of functions exposed by that library
 Can any one provide me step by step process for the same
 
 Arun
 achoudhary2...@gmail.com
 
 --
 Regards,
 Sujay
 Mitch Hedberg
  http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html - I
 drank
   some boiling water because I wanted to whistle.
 
--
Regards
---
Desu Vinod Kumar
vinny.s...@gmail.com
09916009493
 
  --
  For pics Please visit
 
  http://picasaweb.google.com/achoudhary2980
 
  wish u all the best
 



-- 
For pics Please visit

http://picasaweb.google.com/achoudhary2980

wish u all the best

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



[android-developers] Re: Scheduling

2009-06-18 Thread Charlie Collins

This thread has good info on this topic from Dianne and Mark, start
with reading through this:
http://groups.google.com/group/android-developers/browse_thread/thread/98aba3b545ba4b16/.

On Jun 18, 3:40 am, bsbi...@googlemail.com bsbi...@googlemail.com
wrote:
 Hi,

 I am writing a demo app that allows the user to set a number of times
 they want my app to run. The app has no interface and just puts shows
 some notifications.

 Running this as a service seems the most obvious.

 What's the best way to handle the timing issue?

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



[android-developers] Re: READ_CALENDAR and WRITE_CALENDAR

2009-06-18 Thread Karima

Is There another solution ?

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



[android-developers] Re: aborting calls on android devices

2009-06-18 Thread Mark Murphy

 I wish to be able to abort calls on the android system. When a user
 dials in a number and calls it, i should be notified of this and hence
 abort.

 for notification, i have found certain callbacks in the
 TelephonyManager class, but i couldn't find a corresponding method to
 disconnect a voice call.

I do not believe what you want to do can be done by ordinary SDK
applications.

 I have come across a permission in the android docs -
 PROCESS_OUTGOING_CALLS. this states that we can abort calls. Can
 anyone point me to a resource where this is actuall done?

That permission is only used within the Android firmware itself, as far as
I can see.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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



[android-developers] Game using Canvas porting to OpenGL please help

2009-06-18 Thread TjerkW

Hello All,

My game runs fairly well on my phone, but i want to increase the
performance by using opengl.
However currently i use the Canvas.
I am a beginner in opengl.
I have to port all my drawing code to opengl. However can somebody
give me directions.
For example how do i do the following in opengl:

c.save();
c.scale(0.3f+scale, 0.3f+scale, width/2, height/2);
c.drawBitmap(
bMsg.bitmap,
width/2 - bMsg.bitmap.getWidth()/2,
dy+height/2 - bMsg.bitmap.getHeight()/2,
MESSAGE_PAINT
);
c.restore();

And why cant i just use Canvas as an abstraction layer (facade) for
opengl.
An implementation of canvas could call the correct opengl methods in
order to render.
Why do i have to port all my code. I thought the canvas was a good
abstraction interface to a drawing surface,
why do i have to bother with opengl?

It looks like this is possible, when is see the following contructor:
public Canvas (GL gl)
Also the this seems usefull.
SURFACE_TYPE_GPUSurface type: creates a surface suited to be used
with the GPU

So what should i do?
Re implementing the GamePainter completely and call opengl functions
directly?
Or is there some kind of abstraction mechanism, so that i can use
OpenGL with just a few lines of code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] mapView and zoom widget position

2009-06-18 Thread jphdsn

hi

Could we, in a mapView, change the position of the widget wich
controls the zoom?
(as the setBuitInControls(true) just set the widget!)

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



[android-developers] Re: Is Android complaint with VCARD 2.1 specification ?

2009-06-18 Thread Delta Foxtrot
2009/6/18 Kasmoori Bindu bindukasmo...@gmail.com

 Does anyone has info whether Android is complaint with VCARD 2.1
 specification ?
 I could not see,  fields like DOB (Date Of Birth , location etc.,) in
 Contacts Application as well Contact Provider.



The DOB would get stored in the calendar as a reoccurring event. Dunno about
location, but in the regular contact section it allows you to store
addresses.

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



[android-developers] Agung Priyono wants to chat

2009-06-18 Thread Agung Priyono

---

Agung Priyono wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-469b12cc8a-2b5a66bad3-bdfb42daed968b02
You'll need to click this link to be able to chat with Agung Priyono.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Agung Priyono, visit:
http://mail.google.com/mail/a-469b12cc8a-2b5a66bad3-bdfb42daed968b02

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



[android-developers] addPreferencesFromIntent

2009-06-18 Thread HenrikH

Hi,

I've been playing around a bit with Preferences and trying to
understand how addPreferencesFromIntent works, but I haven't really
got it to work. Are there any examples of how to use this at all?

I have one (or more) application providing preferences which I want to
display in another (host) application, but I don't want to hard-code
the dependency to the PreferenceActivity providing the preferences. So
this is roughly what I did:

Provider application:
* Added a PreferenceActivity foo.provider.PreferenceActivity coupled
to a preferences XML resource consisting of two checkbox preferences
(calling addPreferencesFromResource from onCreate)

* Added another PreferenceActivity
foo.provider.PreferenceProviderActivity with an intent-filter using a
custom action foo.action.preference and a meta-data section pointing
to a preference xml, consisting of a PreferenceScreen with a title and
summary and pointing to the above activity using intent
android:action=android.intent.action.main
android:targetPackage=foo.provider
android:targetClass=foo.provider.PreferenceActivity. The onCreate
method is empty.

Host application:
* Added a PreferenceActivity calling addPreferencesFromIntent(new
Intent(foo.action.preference))

The result is that I get a screen with only a title (coming from the
provider application) but no items. This kind of makes sense to me
since my hiearchy now only has one element, the root PreferenceScreen,
and I assume that element cannot have any intent since the root
PreferenceScreen is not an item in itself.
So I tried adding a root PreferenceScreen before calling
addPreferencesFromIntent, but that doesn't work at all. Now, my
provider preferences are not added at all!

So then I tried adding a second nested PreferenceScreen in the
provider's preference XML, and now it looks OK, I get the provider
item in my host application. However, when clicking on the item that
should launch foo.provider.PreferenceActivity, I get an exception
saying

android.util.AndroidRuntimeException: Calling startActivity() from
outside an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
Is this really what you want?

Also, this approach doesn't seem right if I were to add more than one
provider, right? What I want is to have one root PreferenceScreen
added by the host application, and to then populate this hierarchy
with single child PreferenceScreen elements from the providers. I
can't have the root element coming from one of the providers...

So what am I doing wrong here? Any help or examples would be greatly
appreciated!

BR
/Henrik


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



[android-developers] how to launch internal tests

2009-06-18 Thread GAYET Thierry
Hello,

I have seen some tests in java language among the Android source code.

It may help to to know how to use them ?

One example: 
frameworks/base/telephony/java/com/andtroid/internal/telephony/test/

 
is it link with a junit usage ?

Cordialement


Thierry GAYET
NextInnovation.org
+33(0)663.849.589



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



[android-developers] Re: Add a footer in a TabActivity

2009-06-18 Thread Tom

In addition,

is-it possible to remove the footer for a specified tab?

best regards
Tom

On 16 juin, 11:17, Tom thomas.coz...@gmail.com wrote:
 All right.
 Exactly what I was looking for.

 Thanks
 Tom

 On 15 juin, 19:37, nEx.Software justin.shapc...@gmail.com wrote:

  So the footer is the same for all tabs?
  In that case, I would set for the TabActivity a custom layout that
  contains the footer.

  Something like this:

  TabHost xmlns:android=http://schemas.android.com/apk/res/android;
  android:id=@android:id/tabhost android:layout_width=fill_parent
  android:layout_height=fill_parent
          LinearLayout android:orientation=vertical
  android:layout_width=fill_parent android:layout_height=fill_parent
  android:padding=1dip
                  TabWidget android:id=@android:id/tabs
  android:layout_width=fill_parent
  android:layout_height=wrap_content android:layout_weight=0 /
                  FrameLayout android:id=@android:id/tabcontent
  android:layout_width=fill_parent android:layout_height=0dip
  android:layout_weight=1/
                  ImageView android:id=@+id/Logo
  android:layout_width=fill_parent
  android:layout_height=wrap_content android:src=@drawable/
  nexsoftware android:background=#FF00
  android:scaleType=fitCenter /
          /LinearLayout
  /TabHost

  On Jun 15, 6:59 am, Tom thomas.coz...@gmail.com wrote:

   Hi,

   I created a TabActivity with contains 3 tabs. Each tab's content sets
   different Intents.

   I would like to add a footer wich will appear on each tab. So I get
   TabActivity's FrameLayout and add it my footer view.

   Is it possbile to define where place the footer (with an attribute
   like AT_BOTTOM)?
   So contentTab dimensions are calculated according to this footer.

   (I hope my question is clear).

   Here are some of my codes :

   public class Temp extends TabActivity{

           �...@override
               protected void onCreate(Bundle savedInstanceState) {
                   super.onCreate(savedInstanceState);
                   final TabHost tabHost =  getTabHost();

                   // First tab
                   TabHost.TabSpec userTab = tabHost.newTabSpec();
                   secTab.setIndicator(this.getString(Activity2));
                   secTab.setContent(new Intent(this,Activity2.class));

                   // Second tab
                   TabHost.TabSpec secTab = tabHost.newTabSpec();
                   secTab.setIndicator(this.getString(Activity2));
                   secTab.setContent(new Intent(this,Activity2.class));

                   // Third tab
                   TabHost.TabSpec thirdTab = tabHost.newTabSpec();
                   thirdTab.setIndicator(this.getString(Activity3));
                   thirdTab.setContent(new Intent(this,Activity3.class));

                   // Footer View
                   FooterView footer = new FooterView(this);
                   // Add it to the frameLayout
                   tabHost.getTabContentView().addView(footer);
           }

   }

   Thanks
   Best regards
   Tom


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



[android-developers] Re: Is it possible to theme the activity animation?

2009-06-18 Thread z

Anyone else? Someone from google? Is this a bug that should be
reported?

On Jun 18, 1:08 am, z zl25dre...@gmail.com wrote:
 Did you read and understand my question? I know how to apply theme,
 animation style in my themes wont have any effects.

 On Jun 18, 12:59 am, peeyush varshney varshney.peey...@gmail.com
 wrote:

  No need to write  android:stateNotNeeded=true Just use given code in
  Manifest ..Name n Theme..

  activity android:name=Menu android:theme=@style/MyTheme/activity
  And use code in Style file like this

  style name=MyTheme
  and include your corresponding attribute no need to inherit parent theme...
  Tell me what u want to do exactly..

  On Thu, Jun 18, 2009 at 10:22 AM, z zl25dre...@gmail.com wrote:

   I did that, nothing was changed
          activity
              android:stateNotNeeded=true
              android:theme=@style/Theme
              .

   On Jun 18, 12:49 am, peeyush varshney varshney.peey...@gmail.com
   wrote:
hi,
you need to set this theme in your manifest file with corresponding
Activity..

     On Thu, Jun 18, 2009 at 9:41 AM, z zl25dre...@gmail.com wrote:

 Anyone? I tried the following but it didnt seem to have any effects at
 all?

    style name=Theme parent=android:Theme
        item name=android:windowBackground@null/item
        item name=android:windowNoTitletrue/item
        item name=android:windowAnimationStyle@style/
 My.Animation.Activity/item

    /style

    style name=My.Animation.Activity
 parent=android:Animation.Activity

        item name=android:activityOpenEnterAnimation@anim/
 slide_out_top/item
        item name=android:activityOpenExitAnimation@anim/
 slide_out_top/item
        item name=android:activityCloseEnterAnimation@anim/
 slide_out_top/item
        item name=android:activityCloseExitAnimation@anim/
 slide_out_top/item
        item name=android:taskOpenEnterAnimation@anim/
 slide_out_top/item
        item name=android:taskOpenExitAnimation@anim/
 slide_out_top/item
        item name=android:taskCloseEnterAnimation@anim/
 slide_out_top/item
        item name=android:taskCloseExitAnimation@anim/
 slide_out_top/item
        item name=android:taskToFrontEnterAnimation@anim/
 slide_out_top/item
        item name=android:taskToFrontExitAnimation@anim/
 slide_out_top/item
        item name=android:taskToBackEnterAnimation@anim/
 slide_out_top/item
        item name=android:taskToBackExitAnimation@anim/
 slide_out_top/item
    /style

 On Jun 17, 3:40 pm, z zl25dre...@gmail.com wrote:
  Hi, can someone tell me if I can change the activity animation by
  applying a theme?

      style name=Animation.Activity
          item
   name=activityOpenEnterAnimation@anim/task_open_enter/
  item
          item 
  name=activityOpenExitAnimation@anim/task_open_exit/
  item
          item name=activityCloseEnterAnimation@anim/
  task_close_enter/item
          item
   name=activityCloseExitAnimation@anim/task_close_exit/
  item
          item name=taskOpenEnterAnimation@anim/task_open_enter/
  item
          item
   name=taskOpenExitAnimation@anim/task_open_exit/item
          item 
  name=taskCloseEnterAnimation@anim/task_close_enter/
  item
          item name=taskCloseExitAnimation@anim/task_close_exit/
  item
          item
   name=taskToFrontEnterAnimation@anim/task_open_enter/
  item
          item name=taskToFrontExitAnimation@anim/task_open_exit/
  item
          item
   name=taskToBackEnterAnimation@anim/task_close_enter/
  item
          item name=taskToBackExitAnimation@anim/task_close_exit/
  item
      /style

  I know the change will not be global, but is it even possible to 
  make
  the change to be applied within my own app? For example, if i have 
  an
  app that does not want to standard slide in/out animation on start/
  exit, is it possible to change them?

  Thanks,

--
Thank  Regards
Peeyush Varshney

  --
  Thank  Regards
  Peeyush Varshney


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



[android-developers] Re: How do I test an exported .apk file before shipping?

2009-06-18 Thread hanged_man

You might want to use eoeAppInstaller (available on the market), it
allows you to copy you APK file to the SD Card and install it from
there instead of adb command
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: DEVELOPER CHALLENGE 2 - Can update of existing published app can participate?

2009-06-18 Thread havexz

Can any one from Google reply to this ...as time is passing
everyday?

On Jun 17, 4:28 pm, havexz bali.param...@gmail.com wrote:
 By publish you mean what? The feature set or the name of the App?

 Since the update will have different set of features and may be more
 then wat u have currently in the market.

 Take for example, I had created a first version of my app with very
 small set of features and I publish it on the market. The actual n
 innovative feature set is still to come in future updates. So what you
 say on this, now the only common thing between the published app and
 update is its name (rest all the features will gonna be innovative)?
 Am I not allowed to submitted the update for DC2 just because I had
 released an app (even though that app has very trival and obvious
 feature set).

 I think the updates for the published apps should be allowed.
 Eventhough I do agree that they have to be more stricked for such
 apps. There should be some substantial difference in the feature set
 than what is already available in the market.

 On Jun 17, 2:51 pm, Ivan Soto ivanso...@gmail.com wrote:

  Don't you think that will be considered as a published app?

  Ivan Soto Fernandez
  Web Developerhttp://ivansotof.com

  On Wed, Jun 17, 2009 at 12:54 PM, havexz bali.param...@gmail.com wrote:

   Hi

   I know that currenlty published apps can't participate and also
   updates of the apps which participated in Developer Challenge 1 cant
   participate in DC2.

   But can an update of an existing published app can participate in DC2?

   Thanks in advance.- Hide quoted text -

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



[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread Timothy F

I haven't used it yet, but look at:

http://developer.android.com/reference/android/opengl/GLU.html#gluUnProject(float,%20float,%20float,%20float[],%20int,%20float[],%20int,%20int[],%20int,%20float[],%20int)

I think that may help you.

On Jun 18, 4:21 am, quill quill...@163.com wrote:
 Thank you Nightwolf.
 I want to choose the Kube when I touch on the Kube face in order to
 rotate Kube.
 My idea is:
 1. to get vertices of Kube to compose a polygon(2D);
 2. judge if the touch point locates in the polygon;
 As you said, the cube coordinates is not modified, so I use
 gluunproject() to change touch point coordinates(x, y, 0) in order to
 map window coordinates to object coordinates, and then I judged if the
 new touch point coordinates locates in the polygon. Am I on the right
 way?

 On Jun 18, 11:59 am, Nightwolf mikh...@gmail.com wrote:



  Cube coordinates are stored in vertices array in Cube.java.
  Rotating effect is achieved via model view matrix modification
  (glTranslate and glRotate commands). Original vertex data isn't
  modified.

  On Jun 17, 8:30 pm, quill quill...@163.com wrote:

   Hi all,
   I'm modifying Kube(api demo) to a game, does anyone who know how to
   get the vertice coodinates of Kube? From the source code in api demo,
   I think GLWorld.mVertexBuffer may save the vertice coodinates after
   rotate the Kube, but I was wrong, the infomation in mVertexBuffer
   always remains the same.- Hide quoted text -

  - Show quoted text -- Hide quoted text -

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



[android-developers] Re: Cover phone's screen not quit

2009-06-18 Thread dapaintballer331

1. It's an option, not the default action for phones reported stolen.
2. The phone may not be stolen. If you lose the phone, you can simply
tell them a reward  place to bring it
3. If a SIM card is exchanged, in the event it's stolen, this will
still work (SMS  Phone calls won't work to an unknown phone number).
4. You don't need to tell them it's being tracked. Just that it's lost
 $ will be given

My application is a service, so maybe that will make it harder to
quit.

ANyone know?

On Jun 17, 6:58 pm, Marco Nelissen marc...@android.com wrote:
 Wouldn't sending a message to the thief just prompt the thief to remove the
 battery and throw the phone in the garbage so that it can't be traced
 anymore?

 On Wed, Jun 17, 2009 at 2:36 PM, dapaintballer331 

 dapaintballer...@gmail.com wrote:

  Is there any way known to create an about style dialog box, that
  covers the whole screen, regardless of what (if any) application is
  open?

  It must cover the screen, and prevent touch-screen usage of anything
  it covers. It will be used to disable the phone  send a message to a
  phone thief remotely. (I'm porting FindMyi.org)

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



[android-developers] Re: DEVELOPER CHALLENGE 2 - Can update of existing published app can participate?

2009-06-18 Thread Urs Grob

Well ... the initial post was 20 hours ago ...don't expect them to be
able to answer all posts to the list in less than a day. Also being
impatient won't help getting a fast response. You will only get posts
like this telling you to be a bit more patient...

In case this was your first post, then this post might have been
delayed a bit. this only happens to the first post to the list because
it's being moderated to keep the spam out of the list.

-- Urs

On Thu, Jun 18, 2009 at 4:46 PM, havexzbali.param...@gmail.com wrote:

 Can any one from Google reply to this ...as time is passing
 everyday?

 On Jun 17, 4:28 pm, havexz bali.param...@gmail.com wrote:
 By publish you mean what? The feature set or the name of the App?

 Since the update will have different set of features and may be more
 then wat u have currently in the market.

 Take for example, I had created a first version of my app with very
 small set of features and I publish it on the market. The actual n
 innovative feature set is still to come in future updates. So what you
 say on this, now the only common thing between the published app and
 update is its name (rest all the features will gonna be innovative)?
 Am I not allowed to submitted the update for DC2 just because I had
 released an app (even though that app has very trival and obvious
 feature set).

 I think the updates for the published apps should be allowed.
 Eventhough I do agree that they have to be more stricked for such
 apps. There should be some substantial difference in the feature set
 than what is already available in the market.

 On Jun 17, 2:51 pm, Ivan Soto ivanso...@gmail.com wrote:

  Don't you think that will be considered as a published app?

  Ivan Soto Fernandez
  Web Developerhttp://ivansotof.com

  On Wed, Jun 17, 2009 at 12:54 PM, havexz bali.param...@gmail.com wrote:

   Hi

   I know that currenlty published apps can't participate and also
   updates of the apps which participated in Developer Challenge 1 cant
   participate in DC2.

   But can an update of an existing published app can participate in DC2?

   Thanks in advance.- Hide quoted text -

  - Show quoted text -
 


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



[android-developers] Re: Consume a key event

2009-06-18 Thread ivan

I'm overriding the Activity's onKeyDown() function to get the event,
so it presumably wouldn't be the up event that I'm processing.

On Jun 18, 2:40 am, Dianne Hackborn hack...@android.com wrote:
 You should only get a key down if the user is holding down the button (in
 which case it will be a repeat).  In either case, you will usually get the
 up event from the button.  Make sure you aren't seeing an up event and
 processing it as a down event.





 On Wed, Jun 17, 2009 at 10:33 PM, ivan istas...@gmail.com wrote:

  I have a custom camera application...

  I'm using a BroadcastReceiver to launch it when the Camera button is
  pressed.  Unfortunately, once my camera app is launched the camera
  button KeyDown event used to launch my camera activity is also passed
  to it, which cause it to immediately attempt to capture a picture.

  Is there a way to consume the KeyEvent so that this doesn't happen?

  ... or any other elegant solutions other then some flag toggle?

  Thanks.

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

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

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



[android-developers] Re: Question: How to do EXIF reading and writing

2009-06-18 Thread Mike Hearn

JPEG is a very simple format, you could just do the byte inserts
yourself. It'd probably take about a screenful of code, including
comments.

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



[android-developers] Capture Android's browser HTTP petitions.

2009-06-18 Thread psaltamontes

Hi,

I need capture the Android's browser HTTP petitions.

The idea is to use a service that listen a localport (). This
service modify the HTTP petition and sends this petition to Internet.

In PC to capture the HTTP petitions is easy, I change the browser
configuration, I put localhost and a port () and it's works. But,
in Android I don't know how to change the browser configuration.

I think that in /data/data/com.android.browser there are the
configuration files of the browser, but I don't know if I can
configure the proxy browser.

Any idea?

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



[android-developers] Re: Application Crashed

2009-06-18 Thread kevin

The crash has something to do with libwebcore.so and libdvm.so, my
application does have webview in the the child activity.When child
activity is finished, webview is removed from activity viewgroup and
load some url in the background. Anyone know the cause of the
crashed?

Thanks,
Kevin

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



[android-developers] Re: How to force an activity to display the soft keyboard?

2009-06-18 Thread lvwz2008
do like this in Apidemos: 


activity android:name=.app.CustomTitle
android:label=@string/activity_custom_title
android:windowSoftInputMode=stateVisible|adjustPan
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.SAMPLE_CODE /
/intent-filter
/activity
在2009-06-16,Bullo#88 bulonce...@gmail.com 写道:

My activity contains an editable text view and I would like to
automatically show the soft keyboard when the activity start.
Anyone knows how to do it?

I tried this:

private void showSoftKeyboard() {
   textView.requestFocus();
   inputManager = (InputMethodManager) context.getSystemService
(Context.INPUT_METHOD_SERVICE);
   inputManager.showSoftInputFromInputMethod(textView.getWindowToken(),
InputMethodManager.SHOW_FORCED);
}

but it doesn't work...

Thanks in advance for any help


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



[android-developers] enabling Wi-Fi network

2009-06-18 Thread kalyan simhan
hi all..
im trying to enable a wireless network through my app.. it is properly
scanning but
im unable to connect
my code
WifiConfiguration configuration = new WifiConfiguration();
configuration.BSSID=mynet;
configuration.networkId=1;
configuration.wepKeys=wep;
configuration.preSharedKey=password;
configuration.status=1;
configuration.priority=1;
int id= mainWifi.addNetwork(configuration);
mainWifi.enableNetwork(id, true);
any idea why.. kindly help
thanks in advance!

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



[android-developers] R.java generation location

2009-06-18 Thread vol

Is it possible to specify where R.java will be generated to? Or will
it always be placed in gen/my.package.name.here, no matter what?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Application Crashed

2009-06-18 Thread Streets Of Boston

Do you have any static variable that references (and therefore caches)
an object that is either an activity/view or that is (indirectly)
refering to an activity/view?

If so, you may be leaking activities/views when doing a configuration
change.

Avoid the use of statics or be absolutely sure to either clear the
statics (upon onDestroy at least) or be absolutely sure not to cache
anything that can keep activities or views in memory.

On Jun 18, 11:25 am, kevin kevin_x...@yahoo.com wrote:
 The crash has something to do with libwebcore.so and libdvm.so, my
 application does have webview in the the child activity.When child
 activity is finished, webview is removed from activity viewgroup and
 load some url in the background. Anyone know the cause of the
 crashed?

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



[android-developers] Re: MediaPlayer Prepare errors sometimes...

2009-06-18 Thread Marco Nelissen

Does this happen with a specific stream or server?


On Wed, Jun 17, 2009 at 5:04 PM, Motomedicalsou...@gmail.com wrote:

 The following is the error seen sometimes when playing an mp3 from the
 internet...

 Could someone let me know if this is a known issue?

 Thanks!

 06-17 20:02:42.776: INFO/DEBUG(25079): *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** *** ***
 06-17 20:02:42.776: INFO/DEBUG(25079): Build fingerprint: 'tmobile/
 kila/dream/trout:1.5/CRB43/148830:user/ota-rel-keys,release-keys'
 06-17 20:02:42.776: INFO/DEBUG(25079): pid: 25078, tid: 25085   /
 system/bin/mediaserver 
 06-17 20:02:42.776: INFO/DEBUG(25079): signal 11 (SIGSEGV), fault addr
 384be9c7
 06-17 20:02:42.776: INFO/DEBUG(25079):  r0 384a0c93  r1 20e0  r2
 00cc  r3 0001
 06-17 20:02:42.786: INFO/DEBUG(25079):  r4 0198  r5 384be9c3  r6
   r7 384be82b
 06-17 20:02:42.786: INFO/DEBUG(25079):  r8 bef2e84c  r9 afe39dd0  10
 a9d2856d  fp 0001
 06-17 20:02:42.786: INFO/DEBUG(25079):  ip 0008  sp 40608cc4  lr
 a7a22a71  pc a7a22a92  cpsr 0030
 06-17 20:02:42.876: INFO/DEBUG(25079):          #00  pc 00022a92  /
 system/lib/libopencorenet_support.so
 06-17 20:02:42.886: INFO/DEBUG(25079):          #01  lr a7a22a71  /
 system/lib/libopencorenet_support.so
 06-17 20:02:42.886: INFO/DEBUG(25079): stack:
 06-17 20:02:42.886: INFO/DEBUG(25079):     40608c84  01b4
 06-17 20:02:42.886: INFO/DEBUG(25079):     40608c88  00dc
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608c8c  2bb0
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608c90  0001db98  [heap]
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608c94  0001dd34  [heap]
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608c98  0001
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608c9c  bef2e84c  [stack]
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca0  afe39dd0
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca4  a9d2856d  /system/
 lib/libutils.so
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608ca8  0001
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cac  0001dd34  [heap]
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb0  7000
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb4  a7a22a71  /system/
 lib/libopencorenet_support.so
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cb8  df002777
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cbc  e3a070ad
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cc0  40608d1c
 06-17 20:02:42.896: INFO/DEBUG(25079): #00 40608cc4  40608cdc
 06-17 20:02:42.896: INFO/DEBUG(25079):     40608cc8  000317b0  [heap]
 06-17 20:02:42.906: INFO/DEBUG(25079):     40608ccc  a7a4ff90
 06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd0  40608d1c
 06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd4  a7a287a3  /system/
 lib/libopencorenet_support.so
 06-17 20:02:42.906: INFO/DEBUG(25079):     40608cd8  bef2e84c  [stack]
 06-17 20:02:42.906: INFO/DEBUG(25079):     40608cdc  a7a4d4b8
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce0  0001
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce4  0001
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608ce8  00021e18  [heap]
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608cec  0010
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf0  40608cf4
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf4  a7a4d4d8
 06-17 20:02:42.916: INFO/DEBUG(25079):     40608cf8  a7a4d040
 06-17 20:02:42.926: INFO/DEBUG(25079):     40608cfc  a7a4d054
 06-17 20:02:42.926: INFO/DEBUG(25079):     40608d00  
 06-17 20:02:42.926: INFO/DEBUG(25079):     40608d04  0001dae0  [heap]
 06-17 20:02:42.926: INFO/DEBUG(25079):     40608d08  a7a1f6f1  /system/
 lib/libopencorenet_support.so
 06-17 20:02:43.546: INFO/DEBUG(25079): debuggerd committing suicide to
 free the zombie!
 06-17 20:02:43.556: INFO/ServiceManager(30): service
 'media.audio_flinger' died
 06-17 20:02:43.556: INFO/ServiceManager(30): service 'media.player'
 died
 06-17 20:02:43.556: INFO/ServiceManager(30): service 'media.camera'
 died
 06-17 20:02:43.556: WARN/MediaPlayer(25066): MediaPlayer server died!
 06-17 20:02:43.556: ERROR/MediaPlayer(25066): error (100, 0)
 06-17 20:02:43.556: WARN/System.err(25066): java.io.IOException:
 Prepare failed.: status=0x64
 06-17 20:02:43.556: WARN/System.err(25066):     at
 android.media.MediaPlayer.prepare(Native Method)
 06-17 20:02:43.566: WARN/System.err(25066):     at
 com.Test.AudioStream.Play(AudioStream.java:138)
 06-17 20:02:43.566: WARN/System.err(25066):     at
 com.Test.AudioStream.Play(AudioStream.java:151)
 06-17 20:02:43.566: WARN/System.err(25066):     at com.Test.AudioTest
 $3.run(AudioTest.java:27)
 06-17 20:02:43.566: WARN/AudioSystem(55): AudioFlinger server died!

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread Streets Of Boston

Yes, you are on the right track. :-)
However, i could not get gluUnProject to work. I wrote my own:
  
http://groups.google.com/group/android-developers/browse_frm/thread/9d2bf53e3a798cb6/c722628acdf6e2d9
  (see messages no. 6 and 8)

On Jun 18, 4:21 am, quill quill...@163.com wrote:
 Thank you Nightwolf.
 I want to choose the Kube when I touch on the Kube face in order to
 rotate Kube.
 My idea is:
 1. to get vertices of Kube to compose a polygon(2D);
 2. judge if the touch point locates in the polygon;
 As you said, the cube coordinates is not modified, so I use
 gluunproject() to change touch point coordinates(x, y, 0) in order to
 map window coordinates to object coordinates, and then I judged if the
 new touch point coordinates locates in the polygon. Am I on the right
 way?

 On Jun 18, 11:59 am, Nightwolf mikh...@gmail.com wrote:



  Cube coordinates are stored in vertices array in Cube.java.
  Rotating effect is achieved via model view matrix modification
  (glTranslate and glRotate commands). Original vertex data isn't
  modified.

  On Jun 17, 8:30 pm, quill quill...@163.com wrote:

   Hi all,
   I'm modifying Kube(api demo) to a game, does anyone who know how to
   get the vertice coodinates of Kube? From the source code in api demo,
   I think GLWorld.mVertexBuffer may save the vertice coodinates after
   rotate the Kube, but I was wrong, the infomation in mVertexBuffer
   always remains the same.- Hide quoted text -

  - Show quoted text -- Hide quoted text -

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



[android-developers] Retrieving Records from a created Database and put it in a SPINNER

2009-06-18 Thread Georgy

Hello,

I created a database with records in it and everything. I am trying to
use its fields and put it in a spinner.  The database contains
university names.  I created a spinner with:

   final Spinner s = (Spinner) findViewById(R.id.spinner);
ArrayAdapter adapter = ArrayAdapter.createFromResource(
this, R.array.universities,
android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
s.setAdapter(adapter);

where I am feeding the spinner the records from an array. I want to do
it from the database that I created. I read thru the classes and there
are 2 ways but I can't find a proper code to use any of them.  I just
want to insert the code to get records from the database. It shouldn't
be complicated is it?

please help

thanks




PS: I am new to SQLite and its relation with android. Sorry if this is
a beginner post
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Programmatically choose an input method

2009-06-18 Thread Taísa Cristina
Is it possible?

I have an EditText which needs to use a certain input method which is
already installed in the device (but is not currently running). How could
I do this?

Taísa

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



[android-developers] Re: how to capture event FINISH LOADING ListView and GridView

2009-06-18 Thread Romain Guy

There's no such event :)

On Thu, Jun 18, 2009 at 1:05 AM, TuanSandmanngoanht...@gmail.com wrote:

 does anyone know how. Please help me

 thanks :)
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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



[android-developers] Re: vertice coodinates of Kube

2009-06-18 Thread Nightwolf

It seems that you already know more than me on this subject.
May be there is a sense to use simple approach.
Treat cube as a circle and test whether touch point is in that circle
or not. Of course it's less accurate and you need to define cube
center somehow.


On Jun 18, 12:21 pm, quill quill...@163.com wrote:
 Thank you Nightwolf.
 I want to choose the Kube when I touch on the Kube face in order to
 rotate Kube.
 My idea is:
 1. to get vertices of Kube to compose a polygon(2D);
 2. judge if the touch point locates in the polygon;
 As you said, the cube coordinates is not modified, so I use
 gluunproject() to change touch point coordinates(x, y, 0) in order to
 map window coordinates to object coordinates, and then I judged if the
 new touch point coordinates locates in the polygon. Am I on the right
 way?

 On Jun 18, 11:59 am, Nightwolf mikh...@gmail.com wrote:



  Cube coordinates are stored in vertices array in Cube.java.
  Rotating effect is achieved via model view matrix modification
  (glTranslate and glRotate commands). Original vertex data isn't
  modified.

  On Jun 17, 8:30 pm, quill quill...@163.com wrote:

   Hi all,
   I'm modifying Kube(api demo) to a game, does anyone who know how to
   get the vertice coodinates of Kube? From the source code in api demo,
   I think GLWorld.mVertexBuffer may save the vertice coodinates after
   rotate the Kube, but I was wrong, the infomation in mVertexBuffer
   always remains the same.- Hide quoted text -

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



[android-developers] Stateful compound drawables on TextViews (bug?)

2009-06-18 Thread Tom Gibara
I'm trying to use a Button widget with a top compound drawable to implement
a classic labelled button design. When I assign a stateful drawable (a
StateListDrawable), I find that the drawable doesn't change in response to
changes in the button's pressed state.
Looking at the source code for TextView, I see that it doesn't call
setCallback() on the compound drawables, so I'm guessing that this is the
reason, but is this by design, or is it a bug?

My layouts and resources are  very simple:

 btn_rotate.xml

?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_pressed=true
android:drawable=@drawable/btn_rotate_pressed /
item android:state_enabled=false
android:drawable=@drawable/btn_rotate_normal /
item android:drawable=@drawable/btn_rotate_normal /
/selector


 main.xml

...
Button
  android:id=@+id/rotate
  android:layout_width=0px
  android:layout_height=fill_parent
  android:layout_weight=1.0
  android:text=@string/control_rotate
  android:drawableTop=@drawable/btn_rotate
  style=@style/control
/
...

Tom.

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



[android-developers] Categories in a ListView?

2009-06-18 Thread gsmd

How do I create categories in an arbitrary ListView like those in
Preferences (PreferenceCategory)?
I've found android.R.layout.preference_category that renders that grey
TextView but don't see it mentioned anywhere from java code.

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



[android-developers] Re: Stateful compound drawables on TextViews (bug?)

2009-06-18 Thread Romain Guy

This is fixed in Donut.

On Thu, Jun 18, 2009 at 10:04 AM, Tom Gibaram...@tomgibara.com wrote:
 I'm trying to use a Button widget with a top compound drawable to implement
 a classic labelled button design. When I assign a stateful drawable (a
 StateListDrawable), I find that the drawable doesn't change in response to
 changes in the button's pressed state.
 Looking at the source code for TextView, I see that it doesn't call
 setCallback() on the compound drawables, so I'm guessing that this is the
 reason, but is this by design, or is it a bug?
 My layouts and resources are  very simple:
 btn_rotate.xml
 ?xml version=1.0 encoding=utf-8?
 selector xmlns:android=http://schemas.android.com/apk/res/android;
 item android:state_pressed=true
 android:drawable=@drawable/btn_rotate_pressed /
     item android:state_enabled=false
 android:drawable=@drawable/btn_rotate_normal /
     item android:drawable=@drawable/btn_rotate_normal /
 /selector

 main.xml
 ...
 Button
   android:id=@+id/rotate
   android:layout_width=0px
   android:layout_height=fill_parent
   android:layout_weight=1.0
   android:text=@string/control_rotate
   android:drawableTop=@drawable/btn_rotate
   style=@style/control
 /
 ...
 Tom.
 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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



[android-developers] My computer is infected badlly !! guide me!!!!

2009-06-18 Thread Saqib

my computer is infected badly!!! what can i do.plz guide me that what
should i do  i am much worried about this problem!!!

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



[android-developers] these are the reasons!!!

2009-06-18 Thread Saqib

Hello,
Sir!! i am much worried about my computers health.two files are
created automatically in my computer in evey drive and wont delete,One
is receyle bin folder and the others name is System volume
information.they are not deleting.An error message occures when i
tried to delete them that is Make sure that the disk is not full or
used by another person.there are also some problems my pc is
facing.e.g,hang,stuck,only mouse is moving,task manager is appears but
it dont work at all,shut down is not proper.

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



[android-developers] WAP Push not working

2009-06-18 Thread nigel

Hi;
I am trying to get WAP push working. When I send the push message to
the device I see this in the LogCat

06-18 17:19:13.762: DEBUG/dalvikvm(148): GC freed 702 objects / 61496
bytes in 130ms
06-18 17:19:18.792: DEBUG/dalvikvm(143): GC freed 369 objects / 16696
bytes in 152ms
06-18 17:19:25.422: DEBUG/SmsProvider(119): insert url=content://sms/
raw, match=15
06-18 17:19:31.842: DEBUG/WAP PUSH(119): Rx:
c50625aeaf6170706c69636174696f6e2f6d666f726d6174696f6e2e737475622e636c69656e74002123414423212f3363573363767a6c54584948556e642f76716d776255453168636d31626c46653745593866465648734961563447497a4f31484942693475466a4f4c4e76634463784e4367537649594b303851396b654e6f58586d79636b733268676e664f7364596f4b6a553439517a
06-18 17:19:33.312: INFO/MyFaves(143): starting service with intent:
Intent { flags=0x4 comp={com.tmobile.myfaves/
com.tmobile.myfaves.MyFavesService} (has extras) }
06-18 17:19:33.312: INFO/MyFaves(143): handleMessage(0)
06-18 17:19:33.352: INFO/MyFaves(143): sending msg:
16358279011678220201
to 32837
06-18 17:19:33.472: INFO/ActivityManager(64): Stopping service:
com.tmobile.myfaves/.MyFavesService

I have the intent set up and the permission, but the my code is never
called (this works for SMS - so most of the code is right I assume).
Here is the manifest

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.mformation.gStub android:versionCode=1
android:versionName=1.0
application android:icon=@drawable/icon android:label=@string/
app_name
android:debuggable=true
activity android:name=.Engine 
android:label=@string/app_name
android:debuggable=true
intent-filter
action 
android:name=android.intent.action.MAIN /
category 
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

receiver android:name=BootReceiver
intent-filter
action 
android:name=android.intent.action.BOOT_COMPLETED /
category 
android:name=android.intent.category.HOME /
/intent-filter
/receiver

receiver android:name=SMSReceiver
intent-filter
action
android:name=android.provider.Telephony.WAP_PUSH_RECEIVED /
action 
android:name=android.provider.Telephony.SMS_RECEIVED /
action android:name=android.Telephony/action
/intent-filter
/receiver


/application
uses-permission
android:name=android.permission.RECEIVE_BOOT_COMPLETED /
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission android:name=android.permission.READ_PHONE_STATE /

uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.RECEIVE_SMS /
uses-permission android:name=android.permission.INSTALL_PACKAGES /

uses-permission android:name=android.permission.READ_SMS /
uses-permission android:name=android.permission.RECEIVE_MMS /
uses-permission android:name=android.permission.RECEIVE_WAP_PUSH /

/manifest

Now this particular message type works in several other types of
device (Symbian and Windows mobile), so I am quite sure the content is
valid.

I have tried platform 1.5 and 1.1. The hardware I am using is an HTC
G1.

Should this work?
If so, any ideas what I can investigate?



One other question - is there any way to stop the continual myfaves
SMS? No idea how much that is consting me. I am not using a T-Mobile
SIM.

Regards

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



[android-developers] 6502 Emulator

2009-06-18 Thread LouisB

Hello, i'm porting a 6502 Emulator to android.  I have it working, but
only at roughly .3mhz (1 required.)  After running the profiler I see
the simply reading memory (byte[]) is one of the most costly
operations.  Does anyone have any ideas for speeding this up?  Should
I wait for the NDK?  Or is my G1 just underpowered.

Thanks,
Bart

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



[android-developers] Camera.takePicture and problem with Exif information

2009-06-18 Thread gard

Hi all,

I am trying to get the Exif information into my JPEG picture. I have
searched this forum but I havent found a post that solves this problem
and there doesnt seem to be a lot of information about it.

I am saving the image in the JpegPictureCallback on onPictureTaken
after instantiating the camera. My filesaving code from my app:

BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
OutputStream outStream = getContext().getContentResolver
().openOutputStream(uri);
Bitmap sourceBitmap = BitmapFactory.decodeByteArray(jpegData,0,
jpegData.length, options);
sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
outStream.close();

However this does not write any exif information into the image it
seems and I am not sure if it is possible or any options for doing it
there? I add some metatags into the ContentValues but that doesnt seem
to help either.

values.put(Images.Media.LATITUDE, location.getLatitude());
Uri uri = getContext().getContentResolver().insert(
Media.EXTERNAL_CONTENT_URI, values);

So I am trying to use the ExifInterface from the Camera.app to write
the info into the jpeg file after I ported the ExifInterface to my app
from the Camera.app

HashMapString, String mExifData = new HashMapString, String();
mExifData.put(GPSLatitude,22);
mExifData.put(GPSLongitude,22);
mExifData.put(Orientation,1);
mExifData.put(DateTimeOriginal,22);
mExifData.put(Make,Android Make);
mExifData.put(Flash,Android Model);
mExifData.put(Flash,no);
mExifData.put(ImageWidth,60);
mExifData.put(ImageLength,60);
mExifData.put(GPSLatitudeRef,60);
mExifData.put(GPSLongitudeRef,60);
ExifInterface exif = new ExifInterface(fname);
exif.saveAttributes(mExifData);
exif.commitChanges();

However that chokes on the commitChanges call that gives me an error :
ERROR/(11321): Can't write back - didn't read all. It seems the
flagg HaveAll in jpgfile.c is not ready or set correctly. I am
wondering if anybody knows how to get the exif info into the jpeg when
storing it the first time or how to solve the write problem using the
ExifInterface. Any help would be greatly appreciated.

This is an app using the 1.1 sdk.

regards,

gard

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



[android-developers] How to get the ADT plugin source code?

2009-06-18 Thread Boern
Hi,all
I want to know the ADT plugin whether open source  and How to get the ADT
plugin source code ?

thanks lots!

-- 
Boern Parx

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



[android-developers] Convert phone number in International Format

2009-06-18 Thread Chaks

Hi,

I'd like to know whether it's possible to have phone numbers converted
into international format when a call is outgoing.

For instance, if a french user (sorry it's the only format i know i
won't make a mistake :-) try to call with the national format :
01.47.12.34.56 then a method will convert it into international format
like this : +33.1.47.12.34.56

I've looked into the doc of the PhoneNumberUtils but i don't know if
there is a method doing what i want.


Thanks folks.

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



[android-developers] when and where AnroidManifest.xml is parsed?

2009-06-18 Thread guozhen

when and where AnroidManifest.xml is parsed?
maybe when Dalvik construct the apk process,but I am not sure.

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



[android-developers] Blackberry, Android and Java freelancing

2009-06-18 Thread software.b...@gmail.com

Hi Eveybody,

I provide solutions and services in Blackberry, Android and Java
technologies. Anybody who rejects projects on such technologies by not
having resources on their side can contact me on their convinience.

buzz.

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



[android-developers] Return value of getDrawingCache

2009-06-18 Thread n 179911

Hi,

From the JavaDoc, it said it returns 'a bitmap representing this view
or null if cache is disabled'. My question is what if the View is
longer than the phone screen (you need to scroll vertically), what
does the bitmap return?
* only the visible portion of the view
* everything the view has (both visible + invisible part)

Thank you.

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



[android-developers] override AnalogClock

2009-06-18 Thread sunita

I want to make my own Analog class by extending View.but
it is giving

 WARN/AppWidgetHostView(614): Caused by:
java.lang.ClassNotFoundException:
com.back.alarmclock_cs.AnalogClock_new in loader
dalvik.system.pathclassloa...@400190f8

06-18 10:12:25.848: WARN/AppWidgetHostView(614):
android.view.InflateException: Binary XML file line #17: Error
inflating class com.back.alarmclock_cs.AnalogClock_new


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



[android-developers] Re: READ_CALENDAR and WRITE_CALENDAR

2009-06-18 Thread Kaj Bjurman

Is there a public api for reading the Calendar?


On 18 Juni, 10:30, Dianne Hackborn hack...@android.com wrote:
 This is not a public API, please don't use it.





 On Thu, Jun 18, 2009 at 1:24 AM, Karima karima.ra...@gmail.com wrote:

  Found :http://caustiq.esoteriq.org/nb/

  Uri uri = Uri.parse(content://calendar/events);
  ContentResolver cr = context.getContentResolver();

  ContentValues values = new ContentValues();
  values.put(eventTimezone, EST);
  values.put(calendar_id, 1); // query content://calendar/calendars
  for more
  values.put(title, Party over thurr);
  values.put(allDay, 0);
  values.put(dtstart, dtstart); // long (start date in ms)
  values.put(dtend, dtend);     // long (end date in ms)
  values.put(description, Bring computers and alcohol);
  values.put(eventLocation, ZA WARULDO);
  values.put(transparency, 0);
  values.put(visibility, 0);
  values.put(hasAlarm, 0);

  cr.insert(uri, values);

  With :

     ...
     uses-permission android:name=android.permission.WRITE_CALENDAR /

     uses-permission android:name=android.permission.READ_CALENDAR /

  /manifest

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

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

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



[android-developers] Regarding Demo Translucent GLSurfaceView in APIDemo AP

2009-06-18 Thread Mori

This demo doesn't work now.Is this feature broken or no longer support?

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



[android-developers] Re: bluetooth api

2009-06-18 Thread Doug


A2DP stands for Advanced Audio Distribution Profile and is used for
streaming music from an audio source such as a Bluetooth enabled MP3
player to an audio sink such as a Bluetooth headset.  A2DP is output
only, and so would not be useful for an input device.  AVRCP is Audio
Video Remote Control Profile.  AVRCP could be used for an input
device, but it supports remote control functions such as Volume Up and
Volume Down and probably wouldn't be useful for your purposes.
Neither A2DP nor AVRCP use SPP, Serial Port Profile.  So HID, Human
Interface Device Profile, is probably your best bet.  Bluetooth HID is
based on the USB HID specification.  I would think reading up on USB
HID would be a good place to start if you don't know Bluetooth.  The
Sony PS3 and SixAxis controller use Bluetooth HID in wireless mode.

On Jun 16, 7:34 pm, brilliant winger stw...@gmail.com wrote:
 HI

 I want to develop an application for input device(bluetooth).
 I would like to use HID profile or SPP.
 But Android SDK support only A2DP and AVCRP profile.
 I'll have to wait until the next version is released.

 I have one question.
 I think A2DP, AVCRP profile use SPP.
 is correct?
 If so, we can use SPP instead of A~~ profiles?

 I don't know bluetooth api.

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



[android-developers] What's the best way to wait for a view to layout.

2009-06-18 Thread JohnnyForeigner

Hey,

I'm currently playing with this android stuff, doing some image
manipulation using image view and matrices for a simple comic book
viewer i'm writing.

I want to be able to scale the image that I send to the image view to
fit the size of the view as it is presented on the screen but when I
call ImageView.getHeight() it returns 0.

I know i have to wait for it to be laid out before I can get what this
value should be but I don't know what the correct way to go about this
is. I tried a basic loop that checked the height returned and kept
checking until it returned something that wasn't 0 but this simply
gave an infinite series of 0's returned.

What's the best way of doing this?

Thanks,

Tom

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



[android-developers] Re: problems with my htc magic

2009-06-18 Thread john

HTCSync_1.0.0.exe  is in the 2G SDcard

On 5月20日, 下午3時01分, dj_thossi thoss.sebast...@gmail.com wrote:
 Hi,

 i have the same Problems with theHTCMagicand the Link is broken.
 can you upload again, please. Thanks.

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



[android-developers] Emulator Communication

2009-06-18 Thread Rafael Sexta
Hi,
I´m new hear and i´m needing some help.
This week i started to work with android emulator in my job to develop in
eclipse,
but i need to know the COM port communication that the emulator can be
connected or
a way to send comands for the emulator by hyperterminal.

I´ll be really grateful if someone could help me.

Thanks
Regards,

Rafael Aguiar

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



[android-developers] Virtual keypad and ListView OnItemClick conflicts

2009-06-18 Thread Eong

I add a ListView and register a OnItemClickListener for it in my app.
When  the virtual keypad is showed, the Virutal keypad is just on the
above of my ListView.
Then, if I click on the keys of the virtual keypad, the ListView will
get a click event too.
This will only happen when you are using the Google input method. It's
really strange.

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



[android-developers] Permissions for Android Dev Phone 1

2009-06-18 Thread hanasnap

Hi,

If anyone can help me with some information if there is a way to make
an application on Android Dev Phone ask for permissions, like it does
on G1. When I install an application on ADP, I only get the message
no permissions required, is there a way to make the ADP behave like
a G1 phone?
Thanks.

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



[android-developers] Camera.takePicture and problem with Exif information

2009-06-18 Thread gard

Hi all,

I am trying to get the Exif information into my JPEG picture. I have
searched this forum but I havent found a post that solves this problem
and there doesnt seem to be a lot of information about it.

I am saving the image in the JpegPictureCallback on onPictureTaken
after instantiating the camera. My filesaving code from my app:

BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
OutputStream outStream = getContext().getContentResolver
().openOutputStream(uri);
Bitmap sourceBitmap = BitmapFactory.decodeByteArray(jpegData,0,
jpegData.length, options);
sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream);
outStream.close();

However this does not write any exif information into the image it
seems and I am not sure if it is possible or any options for doing it
there? I add some metatags into the ContentValues but that doesnt seem
to help either.

values.put(Images.Media.LATITUDE, location.getLatitude());
Uri uri = getContext().getContentResolver().insert(
Media.EXTERNAL_CONTENT_URI, values);

So I am trying to use the ExifInterface from the Camera.app to write
the info into the jpeg file after I ported the ExifInterface to my app
from the Camera.app

HashMapString, String mExifData = new HashMapString, String();
mExifData.put(GPSLatitude,22);
mExifData.put(GPSLongitude,22);
mExifData.put(Orientation,1);
mExifData.put(DateTimeOriginal,22);
mExifData.put(Make,Android Make);
mExifData.put(Flash,Android Model);
mExifData.put(Flash,no);
mExifData.put(ImageWidth,60);
mExifData.put(ImageLength,60);
mExifData.put(GPSLatitudeRef,60);
mExifData.put(GPSLongitudeRef,60);
ExifInterface exif = new ExifInterface(fname);
exif.saveAttributes(mExifData);
exif.commitChanges();

However that chokes on the commitChanges call that gives me an error :
ERROR/(11321): Can't write back - didn't read all. It seems the
flagg HaveAll in jpgfile.c is not ready or set correctly. I am
wondering if anybody knows how to get the exif info into the jpeg when
storing it the first time or how to solve the write problem using the
ExifInterface. Any help would be greatly appreciated.

This is an app using the 1.1 sdk.

regards,

gard

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



[android-developers] Image display from a url

2009-06-18 Thread Aayush

HI,

I want to display an image from a url, for this I defined the
ImageView first as,

ImageView
   android:id=@+id/imagename
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   /

then in the activity,

super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView imgV = (ImageView)findViewById(R.id.imagename);


Now how should I supply the url of the image from where it should
fetch the image ever time. I have seen the function setImageURI but it
is not clear how to give the uri. Any clues?






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



[android-developers] Re: Bluetooth

2009-06-18 Thread Miroslav Slavchev

Hi,

 Input as to what profiles are important is appreciated - especially
 from people actually writing apps.


In that direction, I'm sure that one of the most desired profile is
SPP. It shall open the platform for a large set of business
applications.

Miro

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



[android-developers] Image display from a URL

2009-06-18 Thread Aayush

Hi,

I need to display the image in ImageView from a web url. I have tried
different ways using setImageDrawable() method. Could somebody present
a simple example to accomplish this?

Thanks,
Aayush

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



[android-developers] how to enable SkDEBUGF printf

2009-06-18 Thread n179911
Hi,
In android c++ code, there are SkDEBUGF printf for debugging purpose.
Can you tell me how to enable SkDEBUGF  so that i can see the output on 'adb
logcat'?

Thank you.

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



[android-developers] Binding a spinner to custom XML data

2009-06-18 Thread Boopo

Can anyone tell me if its possible to create some kind of custom
adapater for XML data to a Spinner?  I'm wanting to create a set of
XML data that contains city names  latitude/longitude positions but
only display the city name in the Spinner and access the lat/long when
a new city is selected.

Thanks

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



[android-developers] Re: How to add a new library to android source

2009-06-18 Thread JohnnyForeigner

Hello,

I believe all that you would need to do is compile your (i'm assuming
that you are using c) code against the android Boost library or static
compile the regular c or c++ code with it. Also to access this c code
you will need to use a JNI like you are. Essentially this should only
be done if you really need the extra efficiency that c provides as you
will not be able to distribute this app to any phone that use a
different architecture to the one that you compile it for. For example
if another phone happens to use an intel specific architecture you
will need to recompile the native code for this and distribute a lot
of different versions for each phone etc.

I have not tried this yet but some pointers i have picked up about
compiling native code for android.

http://android-dls.com/wiki/index.php?title=Compiling_for_Android

http://benno.id.au/blog/2007/11/13/android-native-apps

http://groups.google.com/group/android-developers/browse_thread/thread/6960fe8703b1edb9/3d68334a74a9bab2

http://wiki.gnashdev.org/Building_for_Android

On Jun 18, 11:21 am, arun choudhary achoudhary2...@gmail.com wrote:
 Hi

 As per my understanding and googling

 I created a sample function and wrote jni wrapper for that
 now I need a way to wmbeded that in Android source any pointers on the same

 Arun



 On Wed, Jun 17, 2009 at 1:39 PM, Ne0 liamjamesalf...@googlemail.com wrote:

  I am new to Android development, but i think you will have to build an
  SDK of your NEW android code, and develop your app against that, then
  build android and install it on the device you wish to have it on.
  There may be an easier way, though that is how i would/will approach
  it.

  I am also looking into doing a similar thing, if you are planning on
  having this on more then one device, you may run into problems. As far
  as i can tell you can only load custom builds of android onto the Dev
  phone. To load them onto another device E.G. T-Mobile G1 you will have
  to get the carrier to sign your version of Android else the bootloader
  will not except it.

  This is my understanding of the situation, if you know differently,
  then please advise.

  Liam

  On Jun 17, 6:08 am, arun choudhary achoudhary2...@gmail.com wrote:
   Yes I want to Edit/Add Android source code, build the
   android library with my custom API and use it to feed my  app

   Please guide me on the same

   Arun

   On Tue, Jun 16, 2009 at 8:28 PM, Ne0 liamjamesalf...@googlemail.com
  wrote:

Do you mean you want to Edit/Add Android source code, build the
android library with your custom API and use it to feed your app?

On Jun 16, 12:21 pm, Desu Vinod Kumar vinny.s...@gmail.com wrote:
 HI
 add a folder name lib
 and keep the jar  file into it

 and got to [project setting
 add that jar file in libraries

 On Tue, Jun 16, 2009 at 4:46 PM, Sujay Krishna Suresh 

 sujay.coold...@gmail.com wrote:
  to add a new library u jus need to go to the project properties 
  add d
  jars...

  On Tue, Jun 16, 2009 at 4:21 PM, Arun achoudhary2...@gmail.com
wrote:

  Hi All,

  I have an specific requirement to write a new library in android
  source and an simple client application on top of that. which uses
  some of functions exposed by that library
  Can any one provide me step by step process for the same

  Arun
  achoudhary2...@gmail.com

  --
  Regards,
  Sujay
  Mitch Hedberg
   http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html - I
  drank
some boiling water because I wanted to whistle.

 --
 Regards
 ---
 Desu Vinod Kumar
 vinny.s...@gmail.com
 09916009493

   --
   For pics Please visit

  http://picasaweb.google.com/achoudhary2980

   wish u all the best

 --
 For pics Please visit

 http://picasaweb.google.com/achoudhary2980

 wish u all the best

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



[android-developers] Removing SurfaceView when switching layouts

2009-06-18 Thread Stewie

Hi,

In my application, I have two layouts. One with a ListView and the
other containing a SurfaceView.  When I switch from from the ListView
layout to the SurfaceView layout everything is works as intended, but
if I switch from SurfaceView layout to ListView layout the SurfaceView
is still available.

Any ideas on how I can hide/remove the SurfaceView when the I switch
to the ListView layout??



Regards
Stuart

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



[android-developers] Re: How can I give my paid app away for free to some users?

2009-06-18 Thread Yuri Ammosov - Sadko Mobile

DO NOT REFUND. Refund UNINSTALLS the program.

YA

On Jun 17, 2:17 pm, Anna PS annapowellsm...@googlemail.com wrote:
 Hi all

 So I'm about to put a paid app on the Market, but I'd like to give it
 free to a few users who helped to test it.

 Is there any way that I can give them a token or something else so
 that they can get it free? Or can I refund them once they've paid if I
 know their details?

 I guess the alternative would be to give them a direct download, but
 then they won't get updates through the Market.

 It'd be nice to know how to do this, and how to give discount codes as
 well.

 Any ideas anyone?

 Thanks!
 Anna

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



[android-developers] NFC feature

2009-06-18 Thread BPB

it would be very useful to add NFC feature to Android. There are a lot
of projects in France around NFC integrated in mobile phones.

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



[android-developers] Input keyboard and ListView onItemClick

2009-06-18 Thread Eong

hi,
I'm writing my first Android app. I use a ListView to load data and
onItemClick to trigger something.
But when I want to input something into the EditText located in the
top, and press the keyboard on the screen, the onItemClick will be
triggered, as the keyboard is just on the above of ListView.
This will only happen when you are not using the default input method,
for example, Google Pinyin Input Method.
I do not want the items of ListView to be clicked when the keyboard is
on the above, what should I do?

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



[android-developers] Permissions for Android Dev Phone 1

2009-06-18 Thread hanasnap

Hi, if anyone can help me is there a way to make an ADP behave like a
normal G1? I would like to know if I can set an application on ADP to
ask for permissions (when installing) like it does on G1. Thanks!

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



[android-developers] Webkit Version in Android Browser

2009-06-18 Thread Vikrant

Hi,

Does anyone know which webkit veriosn is used for Android Browser in
Android 1.0 SDK r1 release.  ?

Also which is latest webkit version used in Android 1.5 SDK ?

Thanks,
Vikrant

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



  1   2   >