[android-developers] Re: Out of memory error in frame animation

2009-03-23 Thread Romain Guy

No it won't reduce the memory usage, at least not if the png don't
have an alpha channel.

On Sun, Mar 22, 2009 at 10:59 PM, iDeveloper ideveloper...@gmail.com wrote:

 Try using jpegs instead of pngs. That'll reduce your memory usage
 quite a bit if you have to use these images and alpha is not a concern.



 On 23-Mar-09, at 11:22 AM, Romain Guy wrote:


 There's no other way, you are using too much memory, that's all. Note
 that you might have a memory leak somewhere though.

 On Sun, Mar 22, 2009 at 10:51 PM, Archana archana.14n...@gmail.com
 wrote:

 Thanks for the reply,but i have to use that much png files in my app
 without that it wont look nice.
 can you please suggest me some other way.

 On Mar 23, 10:35 am, Romain Guy romain...@google.com wrote:
 Use less memory in your app.

 On Sun, Mar 22, 2009 at 10:23 PM, Archana archana.
 14n...@gmail.com wrote:

 Hi,

  I am using frame animation in multiple page where in each page i
 am
 using set of png files. First animation is

 working fine but when i am trying to call second animation it
 showing

 java.lang.OutOfMemoryError: bitmap size exceeds VM budget

 Is there any way to solve this issue.Please help its very urgent.

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





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

 


 




-- 
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] how to export *.gles 3d model file

2009-03-23 Thread cht

opengl Object3D class can load *.gles format 3d modles, i want to know
how can i export a *.gles format 3d modle.

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] Problems using WebView.loadDataWithBaseURL

2009-03-23 Thread Simon Depiets

Hi, i'm trying to display a page in UTF-8 encoding (japanese) using a
WebView via a direct URL and loadUrl has proven not effective given it
seems it doesn't support UTF-8 encoded urls.

My code is atm the following and the problem is the source is
retrieved but nothing at all is displayed.
Did i miss something, the code is working for http://www.google.com
but i still have encoding problems on iso-8859-1 aswell (replacing all
the UTF-8 by ISO-8859-1)

Thanks a lot

HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(http://ja.wikipedia.org/wiki/刀;);
httpget.setHeader(Content-Type,text/html; charset=UTF-8);
HttpResponse response;

BufferedReader real_response = null;
try {
response = httpclient.execute(httpget);
new InputStreamReader(
response.getEntity().getContent(), UTF-8));
} catch (Exceptionn e) {
e.printStackTrace();
}
if (real_response != null)
{
String data = ;
String tempdata = ;
try {
while ((tempdata = real_response.readLine()) != null)
{
data += tempdata;
}
} catch (Exception e) {
e.printStackTrace();
}
wv.loadDataWithBaseURL(http://www.lliane.com/;,
data,
text/html,
UTF-8,
about:blank);
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Good place to look for freelance dev jobs?

2009-03-23 Thread Carl Whalley

Theres been a few on Linked In - try the Google Android group
http://www.linkedin.com/groupInvitation?gid=76373

--
Android Academy: http://www.androidacademy.com


On Mar 22, 7:43 pm, 1.am.W1z4rd 1.am.w1z...@gmail.com wrote:
 Hi, does anybody know of any good places to look for freelance Android
 development jobs.  I have been looking at places like
 getafreelancer.com, elance.com, etc, but I haven't been having much
 luck.

 Thanks for any advice you can give :-)

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



[android-developers] Do you think Android apps will ever sell 100,000+ copies?

2009-03-23 Thread admin.androidsl...@googlemail.com

Asking because we all know iPhone apps do - even those as imaginative
(!) as iFart.

Currently on Android, #1 paid app (according to aTrackDog) is
PowerManager and that has sold somewhere between 5,000 and 10,000. Not
bad - I guess dev must have made something like $5,000 - but not a
life-changing amount, like we are used to hearing about from iPhone
devs.

So what do we think? Will Android ever see the sort of sales that
would allow us to give up the dayjob?!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Do you think Android apps will ever sell 100,000+ copies?

2009-03-23 Thread admin.androidsl...@googlemail.com

moved to android discuss


On Mar 23, 9:54 am, admin.androidsl...@googlemail.com
admin.androidsl...@googlemail.com wrote:
 Asking because we all know iPhone apps do - even those as imaginative
 (!) as iFart.

 Currently on Android, #1 paid app (according to aTrackDog) is
 PowerManager and that has sold somewhere between 5,000 and 10,000. Not
 bad - I guess dev must have made something like $5,000 - but not a
 life-changing amount, like we are used to hearing about from iPhone
 devs.

 So what do we think? Will Android ever see the sort of sales that
 would allow us to give up the dayjob?!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 i convert AMR to MP3 OR WAV in my activity?

2009-03-23 Thread zeeshan

can anyone help me?
i am really stuck on this problem.

i need to convert a recorded file from AMR to MP3.
i am using this code for recording

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
  startActivityForResult(intent, SELECT_AUDIO);


 protected void onActivityResult(int requestCode, int resultCode,
Intent data) {

.

Uri selectedAudio = data.getData();


at the moment this Uri is the recorded amr file but i really need mp3/
wav format for some reason.
any solution would be appreciated!


thanks
On Mar 19, 9:21 am, zeeshan genx...@gmail.com wrote:
 ?

 On Mar 18, 2:31 pm,zeeshangenx...@gmail.com wrote:



  Thanks for reply Dave,

  can anyone tell me how can i do this, i assume to install any
  converter application and use it in my code to convert and return the
  mp3 uri

  please help me -

  On Mar 18, 10:31 am, Dave Sparks davidspa...@android.com wrote:

   No, there is no built-in package to convert from AMR to MP3 or WAVE.
   If you want to do this in the current SDK, you'll need to write your
   own code to do the conversion.

   On Mar 18, 2:44 am,zeeshangenx...@gmail.com wrote:

Hi Android Experts,

i want to convert recorded AMR sound into mp3 or WAV within my
activity, is there any method or package i can use?

i am using this activity for recording:

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
 startActivityForResult(intent, SELECT_AUDIO);

this gives me amr content uri but my question is , how can i get the
mp3/wav uri?

i posted this question long ago but still no solution, please help me
as i am really stuck on this.

Thanks- Hide quoted text -

   - Show quoted text -- 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: IWindowManager Not Available

2009-03-23 Thread Lars

Could you please explain why?


On Mar 20, 6:13 pm, Dianne Hackborn hack...@android.com wrote:
 On Thu, Mar 19, 2009 at 7:29 AM, Lars lars.bra...@gmail.com wrote:
  Actually you can use some of them. Just add tools\lib\layoutlib.jar to
  the build path (Eclipse: right click the project, select Build Path/
  Add Libraries. Click User Libraries, select Android libs, click Add
  JARs, browse to layoutlib.jar, click OK, Finish etc.)

 What the...!!!  Do NOT do this.  Just don't.  At all.

 --
 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.  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] Please help in getting screen coordinates of a view

2009-03-23 Thread kavitha

Hii All,

I am developing a game in android and i want to capture screen
coordinates of a view(ImageView) which is embedded in frame.

Hierarchy is
LinearLayout android android:layout_height=fill_parent
android:layout_width=fill_parent 
 RelativeLayout android:layout_height=fill_parent
android:layout_width=fill_parent 
   FrameLayout android:layout_height=wrap_content
android:layout_width=wrap_content
android:id=@+id/frame14/FrameLayout
   /RelativeLayout
/LinearLayout

At run time i am attaching two image views for frame layout.I wanted
to capture screen coordinates of frame layout.But Couldnt do it.if i
say

(FrameLayout) f=(FrameLayout)findViewById(R.id.frame14);
int[] loc = new int[2];
f.getLocationOnScreen(loc);
System.out.println(loc[0]);
System.out.println(loc[1]);

I get Null Pointer Exception for getLocationOnScreen() method.

If I try to get f.getLeft() and f.getRight() they return as 0
coordinates.

Can anyone please tell me how to find location on screen of a view.

I tried even in onStart() method,,,still i get Null Pointer Exception.

Please tell me how to get screen coordinates of a view in android.

It is very urgent.Please help.

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



[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-23 Thread Sheenmue

I participated in a contest organized by Sun and Siemens Mobile
several years ago where there were 10 finalists decided by judges and
then 3 winners selected by the votes of people in the website. I was
finalist and i was really angry when I saw other finalists were asking
for votes in forums. That was a popularity contest, not a developers
contest, Maybe you think the judges are wrong, but being judged by
people who don't care too much about quality would be worst.

If you think there are too many apps, maybe you should divide the
competition in several categories so the judges can review all the
apps in their category.

On 19 mar, 22:50, Dan Morrill morri...@google.com wrote:
 We have considered and are considering ideas along those lines.  That is
 *not* to say that that's what we are going to do, so don't take it as
 confirmation. :)  But yes, many different structures are on the table.
 - Dan

 On Thu, Mar 19, 2009 at 2:46 PM, Al Sutton a...@funkyandroid.com wrote:

  Dan,

  Thanks for the clarification.

  How about making the ADC II a set of awards which are given to the best
  selling apps in each category each month for the next couple of years.
  This would allow the Android user community to vote on what is good for
  them, give developers a reason to push their apps to the limit of what
  they can do, and allow Google to focus the prizes on groups delivering
  what people want.

  Just a thought.

  Al.

  Dan Morrill wrote:
   Oops.  Looks like that page was collateral damage when we did the move
   to developer.android.com http://developer.android.com.  We're
   looking into it; thanks for pointing it out.  At any rate the content
   that would be there refers only to the first Developer Challenge.

   Regarding the second Developer Challenge, it definitely isn't canceled
   but we haven't announced plans for it yet.  We said we would by last
   year (sorry about that), but we're still working on how to structure
   it.  The world is quite a bit different now than it was when we ran
   the first ADC, so we want to make sure the new rules/structure make
   sense, and we are of course taking into consideration everyone's
   experiences with the first ADC.  The second ADC will definitely not be
   a clone of the first ADC.

   We expect to have all this finalized and announce rules within a
   couple months.  The event itself will likely run in the second half of
   the year.

   - Dan

   On Thu, Mar 19, 2009 at 1:07 AM, Al Sutton a...@funkyandroid.com
   mailto:a...@funkyandroid.com wrote:

       Very very recently though. Googling for android developer challenge
       still brings up the 404ed page as the top result.

       Al.

       Anonymous Anonymous wrote:
       http://developer.android.com/
        try in here.. its moved i guess

        On Thu, Mar 19, 2009 at 12:10 PM, Eelke Folmer
       eelke.fol...@gmail.com mailto:eelke.fol...@gmail.com
        mailto:eelke.fol...@gmail.com mailto:eelke.fol...@gmail.com
       wrote:

            This (http://code.google.com/android/adc.html)  gives a
       404 which is
            weird for a google site.
            Is this challenge cancelled? I hope not..

       --

       * Written an Android App? - List it athttp://andappstore.com/*

       ==
       Funky Android Limited is registered in England  Wales with the
       company number  6741909. The registered head office is Kemp House,
       152-160 City Road, London,  EC1V 2NX, UK.

       The views expressed in this email are those of the author and not
       necessarily those of Funky Android Limited, it's associates, or it's
       subsidiaries.

  --

  * Written an Android App? - List it athttp://andappstore.com/*

  ==
  Funky Android Limited is registered in England  Wales with the
  company number  6741909. The registered head office is Kemp House,
  152-160 City Road, London,  EC1V 2NX, UK.

  The views expressed in this email are those of the author and not
  necessarily those of Funky Android Limited, it's associates, or it's
  subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Projects Promotion Pages Online

2009-03-23 Thread Gollum [www.aidiji.com]
*Thanks, man.
I do hope people pay more attention on the market of China. For now, China
Mobile is having 6000 millions of users and would definitely boost the
Android soon as the major strategy. Therefore, I am so recommending that
every Android app should make a version for Chinese when domestical software
is nearly an vacuum.
Well, does anybody care at all?*


2009/3/22 mercury xu xumerc...@gmail.com

 Hi Gollum

 Congratulations!

 Best wishes for your website!

 Best regards!

 Mercury

 From 51wince.com

 2009/3/22 Gollum [www.aidiji.com] www.aidiji@gmail.com

 Dear all,

 AiDiJi.com http://www.aidiji.com/ (http://www.aidiji.com) has brought
 online the Android projects promotion pages, where companies and individuals
 can release their Android software products. The pages are mainly targeted
 at the market of China, which as you know, has the population of billions.
 Here, your product would have the audience on the billion scales, especially
 when in the near future (it is April as claimed) China Mobile, the dominant
 mobile operator within China, will launche the Android campaign with
 substantial Android phone products from many manufacturers.

  Besides, the promotion here is free to use without any revenue sharing,
 and will serve only as an index entry to your products’ pages to secure the
 payment if they charge. Meantime, AiDiJi.com would benefit somehow. In this
 win-win situation, what would you lose anyway?
 So please just try it out before you make the final decision, starting
 from the page as follows,

 Project Display: http://www.aidiji.com
 Project Release:http://www.aidiji.com/my.php
 Introduction with image demo:
 http://www.aidiji.com/viewtopic.php?f=13t=278


 Thank you very much.

 --
 www.aidiji.com - Where Android is hot!






 --
 WWW.51WinCE.COM!Burr good!

 



-- 
www.aidiji.com - Andoroid Developing  Application Forum (in Chinese
Language)

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



[android-developers] Re: Button (with background image ) doesn't show press action

2009-03-23 Thread zeeshan

thanks

On Mar 20, 4:39 pm, Romain Guy romain...@google.com wrote:
 Hi,

 Is your background a state-list drawable? If not, the behavior you're
 witnessing is normal.





 On Fri, Mar 20, 2009 at 9:35 AM,zeeshangenx...@gmail.com wrote:

  Hi Android Experts,

  i have a login button as below:

  Button android:id=@+id/loginBtn
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content
                 android:layout_gravity=center
                 android:background=@drawable/enter_button
                 android:text=Login
                 android:clickable=true

                 /

  it doesn't show press state when i click on it, i also used
  ImageButton with same background image but same result
  any solution?

 --
 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- 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: Android Projects Promotion Pages Online

2009-03-23 Thread mercury xu
Hi Gollum

Of course, there are lots of people pay more attention for this OS in
China,and pay lots of time for develop and desinge much more softwares,not
only at application programs but also OS Device drivers,such as
me.haha~~also,in china, there are lots of websites for android's fans to
communication and discussion ,such as www.androidin.com ,www.android123.com,of
course, my website www.51wince.com. It will more popular at the future.

ho~~I have a question, are you Sizhong Lan? We changed our web's link
before.

Good luck and best regards!

Mercury

From 51wince.com



2009/3/23 Gollum [www.aidiji.com] www.aidiji@gmail.com

 *Thanks, man.
 I do hope people pay more attention on the market of China. For now, China
 Mobile is having 6000 millions of users and would definitely boost the
 Android soon as the major strategy. Therefore, I am so recommending that
 every Android app should make a version for Chinese when domestical software
 is nearly an vacuum.
 Well, does anybody care at all?*


 2009/3/22 mercury xu xumerc...@gmail.com

 Hi Gollum

 Congratulations!

 Best wishes for your website!

 Best regards!

 Mercury

 From 51wince.com

 2009/3/22 Gollum [www.aidiji.com] www.aidiji@gmail.com

 Dear all,

 AiDiJi.com http://www.aidiji.com/ (http://www.aidiji.com) has brought
 online the Android projects promotion pages, where companies and individuals
 can release their Android software products. The pages are mainly targeted
 at the market of China, which as you know, has the population of billions.
 Here, your product would have the audience on the billion scales, especially
 when in the near future (it is April as claimed) China Mobile, the dominant
 mobile operator within China, will launche the Android campaign with
 substantial Android phone products from many manufacturers.

  Besides, the promotion here is free to use without any revenue sharing,
 and will serve only as an index entry to your products’ pages to secure the
 payment if they charge. Meantime, AiDiJi.com would benefit somehow. In this
 win-win situation, what would you lose anyway?
 So please just try it out before you make the final decision, starting
 from the page as follows,

 Project Display: http://www.aidiji.com
 Project Release:http://www.aidiji.com/my.php
 Introduction with image demo:
 http://www.aidiji.com/viewtopic.php?f=13t=278


 Thank you very much.

 --
 www.aidiji.com - Where Android is hot!






 --
 WWW.51WinCE.COM!Burr good!





 --
 www.aidiji.com - Andoroid Developing  Application Forum (in Chinese
 Language)


 



-- 
WWW.51WinCE.COM!Burr good!

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



[android-developers] Underline of TextView

2009-03-23 Thread aby

Hi,
Does anyone know how to set underline attribute on a TextView?
I just see it can set bold and italic on TextView.

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] How to import a jar file?

2009-03-23 Thread Kevin

I want to import a jar file in my project, as I do not use eclipse, I
want to know what should I do if I use make file to build the project,
can I change Android.mk file to achieve this goal?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Underline of TextView

2009-03-23 Thread manoj



define a String item in Strings.xml as:

string name=your_txtutxt to be displayed/u/string

use this in your layout.

On Mar 23, 4:55 pm, aby orz0...@gmail.com wrote:
 Hi,
 Does anyone know how to set underline attribute on a TextView?
 I just see it can set bold and italic on TextView.

 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: Why my application get Not granting permission warning when i install it by adb and AppsInstaller

2009-03-23 Thread Disconnect
Fair enough.

On a related note, since I am without my build machine at the moment (sigh,
apple, boo) do you know off the top of your head if master allows rebinding
the 'talk' and general phone/contact UI to a different app? (There is a 3rd
party phonebook app in the market - free no less - that rocks, but the
released code always falls back to the system dialer/phonebook. Which I'm
sure is an oversight/bug rather than design, since phonebook is one of the
examples on that page :) ..)

I -think- there is already a bug but I'll check and file one later if not..

On Mon, Mar 23, 2009 at 1:24 AM, Dianne Hackborn hack...@android.comwrote:

 On Sun, Mar 22, 2009 at 7:48 PM, Disconnect dc.disconn...@gmail.comwrote:

 http://www.android.com/about/

 All applications are created equal Android does not differentiate
 between the phone's core applications and third-party applications. They can
 all be built to have equal access to a phone's capabilities providing users
 with a broad spectrum of applications and services.


 Where do I file a bug to get that corrected? Its been like that a while
 and it seems to come up on a fairly regular basis. (It doesn't say anything
 about having to be a platform hacker or device integrator, it specifically
 says 'third party'..)


 The INJECT_EVENTS permission will never be granted to an application.  None
 of the android applications rely on it.

 The CALL_PRIVILEDGED permission is a little more tricky; having an open
 mechanism able to call emergency services has a lot of scary legal and other
 issues around it, so though a carrier could open it up I don't know if that
 will happen.  At least we were able to negotiate open access to placing
 phone calls for everything except emergency numbers.  At some point you
 count your blessings. :}

 --
 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.  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] In Android can appl send laocation data as MMS or sms?

2009-03-23 Thread jj

In Android can appl send laocation data as MMS or sms or any other
means(e.g. email)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Cupcake coming in April? Where is the SDK?

2009-03-23 Thread zl25drexel

Cupcake is coming, and as you know it will break a lot of apps in the
market, those that use reflection  private api. So where is the
Cupcake SDK/emulator for us to try our apps?

I know we can download the source codes and build it, and I know apps
wont break if they dont use undocumented api, blah blah blah, but we
should get an official SDK/emulator for cupcake, dont you think,
google?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Persistent Sockets on ADP 1.1 (was Re: Jetty Comet Library)

2009-03-23 Thread Miguel Paraz

On Mar 21, 5:25 pm, Miguel Paraz mpa...@gmail.com wrote:
 Hi,
 I believe the problem is with the ADP1. I retested using the emulator
 and it's working perfectly.

Solved. It's power management. Used WakeLock and WifiLock.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: In Android can appl send laocation data as MMS or sms?

2009-03-23 Thread Rajesh S

Yes it s simple to send it as sms or mail or fill a form over web
or ... ...

And there already exist umpteen such apps.

On Mar 23, 1:13 pm, jj jagtap...@gmail.com wrote:
 In Android can appl send laocation data as MMS or sms or any other
 means(e.g. email)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] [OpenGLES] how to get the current matrix mode?

2009-03-23 Thread tcassany

Hello,

I just would to know how can I get the current matrix mode. I try whit
this :

ByteBuffer buffer = ByteBuffer.allocate(4);
buffer.order(ByteOrder.nativeOrder());
IntBuffer matrixMode = buffer.asIntBuffer();
gl.glGetIntegerv(GL11.GL_MATRIX_MODE, matrixMode);

..

gl.glMatrixMode(matrixMode.get(0))

But it's alway return 0 instead of GL_MODELVIEW(5888) in my case.

Thanks,

Thomas


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

2009-03-23 Thread zeeshan

Hi Android Experts,

i need to get the selected index off my listview

i have it in Activity:

public class myClass extends Activity {

  private ListView myListView;

 myListView.setAdapter(aa);



//

i got an example to get index in context menu like

public boolean onContextItemSelected(MenuItem item) {
  super.onContextItemSelected(item);
  AdapterView.AdapterContextMenuInfo menuInfo =
(AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
  int index = menuInfo.position;

but i need the index on click ,not in context,


any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread David Turner
On Mon, Mar 23, 2009 at 2:59 PM, zl25drexel zl25dre...@gmail.com wrote:


 Cupcake is coming, and as you know it will break a lot of apps in the
 market, those that use reflection  private api. So where is the
 Cupcake SDK/emulator for us to try our apps?


It will be available publicly when it's ready. For now the sources are still
in flux but
your should be able to rebuild it from the official source tree on Linux and
OS X
with a make PRODUCT-sdk-sdk, but there is no guarantee that this is the
final thing.

For windows, things are a bit more demandind, you essentially need to
generate
a Linux SDK, then generate certain Windows-specific binaries that will
replace the
one on the Linux one through a special script.

Reason is, our build system doesn't support Windows. Cygwin is just too
weird as
a development environment; besides it runs pathetically slow.


 I know we can download the source codes and build it, and I know apps
 wont break if they dont use undocumented api, blah blah blah, but we
 should get an official SDK/emulator for cupcake, dont you think,
 google?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Stoyan Damov

On Mon, Mar 23, 2009 at 5:11 PM, David Turner di...@android.com wrote:
 On Mon, Mar 23, 2009 at 2:59 PM, zl25drexel zl25dre...@gmail.com wrote:

 Cupcake is coming, and as you know it will break a lot of apps in the
 market, those that use reflection  private api. So where is the
 Cupcake SDK/emulator for us to try our apps?

 It will be available publicly when it's ready.
snip

David, can you, or any Android engineer give us like a ballpark
estimate (+/- 1 month is OK) when it will be ready, or it is in the
state, where you could say:

The release date of this game [DNF] is When it's done.  Anything
else, and we mean  anything else is someone's speculation.  There is
no date.  We don't know any date.  If you have a friend who claims
they have inside info, or there's some game news site, or some
computer store at the mall who claims they know - they do not.  They
are making it up.  There is no date.  Period.

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] Is it possible to pick contacts from a single group ?

2009-03-23 Thread jarkman

I'm using ACTION_PICK to show a contact picker:
startActivityForResult( new Intent(Intent.ACTION_PICK, Uri.parse
(content://contacts/people) ) ,RESULT_PICK_CONTACT_REQUEST);

I'd really like to be showing only contacts from the My Contacts
group, rather than the list which includes all the auto-generated
contacts. I had hoped to find an Extra to specify the group, but I
can't find any sign of one.

Is there any way to pick a contact from a specified group, or do I
need to write my own picker ?

Thanks,

Richard

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



[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Romain Guy

There has been, and there is no, official ETA. Anything you hear/read
is speculation.

On Mon, Mar 23, 2009 at 8:17 AM, Stoyan Damov stoyan.da...@gmail.com wrote:

 On Mon, Mar 23, 2009 at 5:11 PM, David Turner di...@android.com wrote:
 On Mon, Mar 23, 2009 at 2:59 PM, zl25drexel zl25dre...@gmail.com wrote:

 Cupcake is coming, and as you know it will break a lot of apps in the
 market, those that use reflection  private api. So where is the
 Cupcake SDK/emulator for us to try our apps?

 It will be available publicly when it's ready.
 snip

 David, can you, or any Android engineer give us like a ballpark
 estimate (+/- 1 month is OK) when it will be ready, or it is in the
 state, where you could say:

 The release date of this game [DNF] is When it's done.  Anything
 else, and we mean  anything else is someone's speculation.  There is
 no date.  We don't know any date.  If you have a friend who claims
 they have inside info, or there's some game news site, or some
 computer store at the mall who claims they know - they do not.  They
 are making it up.  There is no date.  Period.

 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Sundog

On Mar 23, 9:32 am, Romain Guy romain...@google.com wrote:
 There has been, and there is no, official ETA. Anything you hear/read
 is speculation.


Sigh. I had a paragraph to add to that, but I think Sigh pretty much
covers it.


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



[android-developers] Displaying image from internet source

2009-03-23 Thread murphy

Hi, I'm trying to display an image using a URL. When I run the code I
get an error telling me the application has stopped unexpectedly. Can
anyone see what's wrong in my code.

Bitmap bmImg;

URL myFileUrl =null;

try {

myFileUrl= new 
URL(http://www.starling-fitness.com/wp-content/
240384vBdA_w.jpg);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
URLConnection conn= 
(URLConnection)myFileUrl.openConnection();
conn.setDoInput(true);
conn.connect();

int length = conn.getContentLength();
int[] bitmapData = new int[length];
byte[] bitmapData2 = new byte[length];

InputStream is = conn.getInputStream();
bmImg = BitmapFactory.decodeStream(is);

/*timetableImage.setImageBitmap(bmImg);*/
setContentView(R.layout.timetable);
ImageView iv = 
(ImageView)findViewById(R.id.timetableImage);
iv.setImageBitmap(bmImg);

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Stoyan Damov

On Mon, Mar 23, 2009 at 5:32 PM, Romain Guy romain...@google.com wrote:

 There has been, and there is no, official ETA. Anything you hear/read
 is speculation.


Right. I knew I'd get this answer but at least it's better than the rumors.

Thanks Romain

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

2009-03-23 Thread Meryl Silverburgh

For ToggleButton, there is an attribute for 'disbledAlpha'.  Why there
is no same attribute for ImageButton?
How can I achieve the same thing for an ImageButton (grey out when the
button is disabled).

Thank you.


The alpha to apply to the indicator when disabled.

Must be a floating point value, such as 1.2.

This may also be a reference to a resource (in the form
@[package:]type:name) or theme attribute (in the form
?[package:][type:]name) containing a value of this type.

This corresponds to the global attribute resource symbol disabledAlpha.Hi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Jean-Baptiste Queru

Engineers can't talk about forward-looking scheduling aspects. That's
not our job, and that's not something we're allowed to talk about.

We can however talk about hard facts. There's been a source code drop
recently, and David gave instructions on how to use that to compile
your own SDK-like system.

JBQ

On Mon, Mar 23, 2009 at 8:17 AM, Stoyan Damov stoyan.da...@gmail.com wrote:

 On Mon, Mar 23, 2009 at 5:11 PM, David Turner di...@android.com wrote:
 On Mon, Mar 23, 2009 at 2:59 PM, zl25drexel zl25dre...@gmail.com wrote:

 Cupcake is coming, and as you know it will break a lot of apps in the
 market, those that use reflection  private api. So where is the
 Cupcake SDK/emulator for us to try our apps?

 It will be available publicly when it's ready.
 snip

 David, can you, or any Android engineer give us like a ballpark
 estimate (+/- 1 month is OK) when it will be ready, or it is in the
 state, where you could say:

 The release date of this game [DNF] is When it's done.  Anything
 else, and we mean  anything else is someone's speculation.  There is
 no date.  We don't know any date.  If you have a friend who claims
 they have inside info, or there's some game news site, or some
 computer store at the mall who claims they know - they do not.  They
 are making it up.  There is no date.  Period.

 Thanks

 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-03-23 Thread Streets Of Boston

We won't know what's going on unless you show us a strack-trace of the
error. :=)
Look at LogCat and copy/paste the strack-trace in this thread.

All i can do now is guess:
How big is your image?
You create two arrays (int[] and byte[]) which are never used. This is
memory waste.
The inputstream 'is' may hold a large image as well.
You may have gotten a out-of-memory error or an error occurring
because you exceeded the allowed bitmap allocation budget.



On Mar 23, 11:49 am, murphy howt...@hotmail.com wrote:
 Hi, I'm trying to display an image using a URL. When I run the code I
 get an error telling me the application has stopped unexpectedly. Can
 anyone see what's wrong in my code.

 Bitmap bmImg;

                 URL myFileUrl =null;

                 try {

                         myFileUrl= new 
 URL(http://www.starling-fitness.com/wp-content/
 240384vBdA_w.jpg);
                 } catch (MalformedURLException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
                 }

                 try {
                         URLConnection conn= 
 (URLConnection)myFileUrl.openConnection();
                         conn.setDoInput(true);
                         conn.connect();

                         int length = conn.getContentLength();
                         int[] bitmapData = new int[length];
                         byte[] bitmapData2 = new byte[length];

                         InputStream is = conn.getInputStream();
                         bmImg = BitmapFactory.decodeStream(is);

                         /*timetableImage.setImageBitmap(bmImg);*/
                         setContentView(R.layout.timetable);
                         ImageView iv = 
 (ImageView)findViewById(R.id.timetableImage);
                         iv.setImageBitmap(bmImg);

                         } catch (IOException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 receive NEW_OUTGOING_CALL?

2009-03-23 Thread Lucky-dog

hi all
I want to listen to outgoing call. Below is our manifest.xml and
Listen.java. But when a outgoing call is doing, I got the following
waring, and the receiver got no response. Would you like to help me
out. Thank you very much.

03-23 16:05:09.227: WARN/ActivityManager(79): Permission Denial:
broadcasting Intent { action=android.intent.action.NEW_OUTGOING_CALL
(has extras) } from com.android.phone (pid=193, uid=1001) requires
null due to receiver com.android.lianyun/com.android.lianyun.Listen


?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.android.lianyun
  android:versionCode=1
  android:versionName=1.0.0
uses-permission
android:name=android.permission.PROCESS_OUTGOING_CALLS /

application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.hangup
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter

/activity

   receiver android:name=.Listen android:exported=false
intent-filter android:priority=0
action
android:name=android.intent.action.NEW_OUTGOING_CALL /
category
android:name=android.intent.category.DEFAULT /
/intent-filter
/receiver

/application
/manifest


package com.android.lianyun;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class Listen extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
String string = 
intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
Log.i(Call is out-going, string);
}

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



[android-developers] Re: Problem in converting byte array in Bitmap.

2009-03-23 Thread Streets Of Boston

Is the byte-array you saved in the database *exactly* the same as the
byte-array returnes by src.getBytes() in your getBitmapFromString
(String) method?

I'd be worried that c.getString() may change the underlying byte-array
to adher to the default UTF-8 encoding.

On Mar 23, 12:10 am, Komal komal...@gmail.com wrote:
 Somebody please help me,,why decodeByteArray(...) returns null
 Thanxs
 komal

 On Mar 20, 11:45 am, Komal komal...@gmail.com wrote:



  Hello,
  I want to store image in sqlite database.
  I tried to store it using BLOB and String, in both cases it store the
  image and can retrieve it but when  i convert it to Bitmap using
  BitmapFactory.decodeByteArray(...) it return null.
  Below is my code please have a look and suggest me where i m making
  mistake.

  public class imagesql extends Activity {
      /** Called when the activity is first created. */

          Bitmap bi=null;

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

          InputStream in=this.getResources().openRawResource
  (R.drawable.dig);
          bi  = BitmapFactory.decodeStream(in);
          Log.i(bitmap1,+bi);
          ImageView iv1=(ImageView)findViewById(R.id.img1);
          iv1.setImageBitmap(bi);

          String str= convertBitmapToString(bi);
          Log.i(image string,str);
          myDB a=new myDB(this);
          a.open();
          a.insertTag(str);

          Cursor c=a.fetchData(myDB.TABLE_NAME_TAG,new String[]
  {myDB.KEY_TAG_IMG},null,null);
          startManagingCursor(c);
          int rc=c.getCount();

          ImageView iv;
          c.moveToFirst();

          if(rc!=0)
          {
                  String s=c.getString(0);
                  Log.i(cursor string image,s);
                  Bitmap bitmap=getBitMapFromString(s);
                  Log.i(bitmap2,+bitmap);
                   iv=(ImageView)findViewById(R.id.img);
                   iv.setImageBitmap(bitmap);
          }
      }

      public static String convertBitmapToString(Bitmap src)
      {
      ByteArrayOutputStream os=new ByteArrayOutputStream();
      src.compress(android.graphics.Bitmap.CompressFormat.PNG, 100,
  (OutputStream) os);
      return os.toString();
      }

      public static Bitmap getBitMapFromString(String src)
      {
          Log.i(b=,+src.getBytes().length);//returns 12111 as a length.
      return BitmapFactory.decodeByteArray(src.getBytes(),0,src.getBytes
  ().length);
      }

  }- 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: Displaying image from internet source

2009-03-23 Thread murphy

03-23 16:20:28.858: DEBUG/dalvikvm(91): GC freed 1176 objects / 62728
bytes in 81ms
03-23 16:20:36.965: DEBUG/skia(767): xx failure to skip
request 2875 actual 1896
03-23 16:20:36.969: DEBUG/skia(767): xxx jpeg error 91
Miscellaneous marker 0x%02x, length %u
03-23 16:20:37.000: DEBUG/AndroidRuntime(767): Shutting down VM
03-23 16:20:37.000: WARN/dalvikvm(767): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
03-23 16:20:37.000: ERROR/AndroidRuntime(767): Uncaught handler:
thread main exiting due to uncaught exception
03-23 16:20:37.189: DEBUG/dalvikvm(767): GC freed 1718 objects /
425896 bytes in 151ms
03-23 16:20:37.199: ERROR/AndroidRuntime(767):
java.lang.NullPointerException
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.organiser.college.CollegeOrganiser$3.onClick(CollegeOrganiser.java:
145)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.View.performClick(View.java:2109)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.View.onTouchEvent(View.java:3523)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.widget.TextView.onTouchEvent(TextView.java:4410)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.View.dispatchTouchEvent(View.java:3178)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1085)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.app.Activity.dispatchTouchEvent(Activity.java:1873)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.os.Handler.dispatchMessage(Handler.java:88)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.os.Looper.loop(Looper.java:123)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
android.app.ActivityThread.main(ActivityThread.java:3742)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
java.lang.reflect.Method.invokeNative(Native Method)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
java.lang.reflect.Method.invoke(Method.java:515)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
dalvik.system.NativeStart.main(Native Method)
03-23 16:20:37.280: INFO/Process(51): Sending signal. PID: 767 SIG: 3
03-23 16:20:37.299: INFO/dalvikvm(767): threadid=7: reacting to signal
3
03-23 16:20:37.418: INFO/dalvikvm(767): Wrote stack trace to '/data/
anr/traces.txt'
03-23 16:20:38.829: INFO/Process(767): Sending signal. PID: 767 SIG: 9
03-23 16:20:38.901: INFO/ActivityManager(51): Process
com.organiser.college (pid 767) has died.
03-23 16:20:39.030: INFO/WindowManager(51): WIN DEATH: Window{4342f180
com.organiser.college/com.organiser.college.CollegeOrganiser}

I have pretty much no idea what any of that stuff means.


On Mar 23, 4:05 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 We won't know what's going on unless you show us a strack-trace of the
 error. :=)
 Look at LogCat and copy/paste the strack-trace in this thread.

 All i can do now is guess:
 How big is yourimage?
 You create two arrays (int[] and byte[]) which are never used. This is
 memory waste.
 The inputstream 'is' may hold a largeimageas well.
 You may have gotten a out-of-memory error or an error occurring
 because you exceeded the allowed bitmap allocation budget.

 On Mar 23, 11:49 am, murphy howt...@hotmail.com wrote:

  Hi, I'm trying to display animageusing a URL. When I run the code I
  get an error telling me the application has stopped unexpectedly. Can
  anyone see what's wrong in my code.

  Bitmap bmImg;

                  URL myFileUrl =null;

                  try {

                          myFileUrl= new 
  URL(http://www.starling-fitness.com/wp-content/
  240384vBdA_w.jpg);
                  } catch (MalformedURLException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
 

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Stoyan Damov

On Mon, Mar 23, 2009 at 6:04 PM, Jean-Baptiste Queru j...@android.com wrote:

 Engineers can't talk about forward-looking scheduling aspects. That's
 not our job, and that's not something we're allowed to talk about.

 We can however talk about hard facts. There's been a source code drop
 recently, and David gave instructions on how to use that to compile
 your own SDK-like system.

 JBQ

JBQ,I understand you can't talk about that, but you know what - NO ONE
ELSE DOES.
If someone at Google *COULD* speak and *DID* speak about cupcake we
wouldn't be asking you, engineers, about it.

Cheers

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Disconnect
That would be way too much like including the community in what is
supposedly a community project. Google has not yet gotten there in terms of
internal policies or attitudes, although a growing number of individuals are
trying to walk the tightrope between community and commercial (thanks JBQ :)
..)

This is where I was going to put another example, but I can't do one off the
top of my head. (Apple? Nope.. they just seeded a new pre-release of OSX to
devs, with changelogs and all, and afaik they make the iphone sdk's
available on planned schedules and with plenty of warning for app writers.
And so forth for nokia, palm, etc. Google is their own example I guess, in
that the announcement of updates for most Google products is simply a
Whats new? link at the top...)

Do they have requirements and deadlines that strongly impact the AOSP? Yes
indeedily they do. Will they share them? Its not looking good..

On Mon, Mar 23, 2009 at 12:27 PM, Stoyan Damov stoyan.da...@gmail.comwrote:


 On Mon, Mar 23, 2009 at 6:04 PM, Jean-Baptiste Queru j...@android.com
 wrote:
 
  Engineers can't talk about forward-looking scheduling aspects. That's
  not our job, and that's not something we're allowed to talk about.
 
  We can however talk about hard facts. There's been a source code drop
  recently, and David gave instructions on how to use that to compile
  your own SDK-like system.
 
  JBQ

 JBQ,I understand you can't talk about that, but you know what - NO ONE
 ELSE DOES.
 If someone at Google *COULD* speak and *DID* speak about cupcake we
 wouldn't be asking you, engineers, about it.

 Cheers

 


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



[android-developers] ProgressBar - Emulator not working?

2009-03-23 Thread droozen

I just wanted to run a ProgressBar test, as it's my first time using
them on the Android. Here's my XML (in a Linear Layout):

ProgressBar android:id=@+id/progress
android:layout_width=fill_parent
android:layout_height=25dip
android:indeterminate=false
android:max=100
android:progress=50 /

When I run the emulator I get a progress bar that glows orange on the
left and right end.

I also instead tried programmatically setting indeterminate to false,
max to 100, and progress to a solid 50. No go. I even tried creating a
background worker thread that would update the progress of the bar
every half a second. Nothing. I just get two glowing orange ends to my
bar (with a blank space in the middle).

Is this a problem with the emulator? Or am I doing something wrong
with the ProgressBar?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Sundog

On Mar 23, 10:39 am, Disconnect dc.disconn...@gmail.com wrote:
 That would be way too much like including the community in what is
 supposedly a community project.

Zing!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Sundog

Waiting for the inevitable Please move this to Discuss so we can
totally ignore you and pretend everything's OK post.



On Mar 23, 11:00 am, Sundog sunns...@gmail.com wrote:
 On Mar 23, 10:39 am, Disconnect dc.disconn...@gmail.com wrote:

  That would be way too much like including the community in what is
  supposedly a community project.

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



[android-developers] get Certificates from Package

2009-03-23 Thread Lutz Schönemann

Hi,

I'm looking for a way to get the certificates from a package that are  
used to sign it. Using the PackageInfo class it is possible to get the  
signatures. But what can I do with signatures if I don't get the  
public keys to verify these.

The next question I have where does the PackageInstaller verify the  
signed APK file? The PackageParser class loads the APK file into a  
JarFile object but does this automatically verify the signature?

Thanks for help
Lutz

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



[android-developers] Displaying Dialog with no dim on background window.

2009-03-23 Thread stanchat

I am trying to display a dialog but would like to have the background
windows show clear with no dim or blur.  I have played around with the
Windows Manager Layout parameters setting

WindowManager.LayoutParams FLAG_DIM_BEHIND and dimAmount but it still
gives a slight dim in the background.

Does anyone know of a way to show a dialog and have the background
readable.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread Marco Nelissen

I certainly hope there aren't a lot of applications that use
reflection and private APIs.


On Mon, Mar 23, 2009 at 6:59 AM, zl25drexel zl25dre...@gmail.com wrote:

 Cupcake is coming, and as you know it will break a lot of apps in the
 market, those that use reflection  private api. So where is the
 Cupcake SDK/emulator for us to try our apps?

 I know we can download the source codes and build it, and I know apps
 wont break if they dont use undocumented api, blah blah blah, but we
 should get an official SDK/emulator for cupcake, dont you think,
 google?
 


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

2009-03-23 Thread Streets Of Boston

These two items stand out, with the most important one here:

03-23 16:20:37.199: ERROR/AndroidRuntime(767):
java.lang.NullPointerException
03-23 16:20:37.199: ERROR/AndroidRuntime(767): at
com.organiser.college.CollegeOrganiser$3.onClick
(CollegeOrganiser.java:
145)

Your CollegeOrganiser class throws a null-pointer exception in an
onClick method on line 145. You may want to solve this issue first.


The other error:
03-23 16:20:36.965: DEBUG/skia(767): xx failure to skip
request 2875 actual 1896
03-23 16:20:36.969: DEBUG/skia(767): xxx jpeg error 91
Miscellaneous marker 0x%02x, length %u

may be a problem. Althouhg, i've seen these debug-messages before and
all worked fine anyway.
Any google-engineer want to chime in :-)?


On Mar 23, 12:21 pm, murphy howt...@hotmail.com wrote:
 03-23 16:20:28.858: DEBUG/dalvikvm(91): GC freed 1176 objects / 62728
 bytes in 81ms
 03-23 16:20:36.965: DEBUG/skia(767): xx failure to skip
 request 2875 actual 1896
 03-23 16:20:36.969: DEBUG/skia(767): xxx jpeg error 91
 Miscellaneous marker 0x%02x, length %u
 03-23 16:20:37.000: DEBUG/AndroidRuntime(767): Shutting down VM
 03-23 16:20:37.000: WARN/dalvikvm(767): threadid=3: thread exiting
 with uncaught exception (group=0x40010e28)
 03-23 16:20:37.000: ERROR/AndroidRuntime(767): Uncaught handler:
 thread main exiting due to uncaught exception
 03-23 16:20:37.189: DEBUG/dalvikvm(767): GC freed 1718 objects /
 425896 bytes in 151ms
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):
 java.lang.NullPointerException
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.organiser.college.CollegeOrganiser$3.onClick(CollegeOrganiser.java:
 145)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.View.performClick(View.java:2109)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.View.onTouchEvent(View.java:3523)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.widget.TextView.onTouchEvent(TextView.java:4410)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.View.dispatchTouchEvent(View.java:3178)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.android.internal.policy.impl.PhoneWindow
 $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
 (PhoneWindow.java:1085)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.app.Activity.dispatchTouchEvent(Activity.java:1873)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.android.internal.policy.impl.PhoneWindow
 $DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.os.Handler.dispatchMessage(Handler.java:88)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.os.Looper.loop(Looper.java:123)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 android.app.ActivityThread.main(ActivityThread.java:3742)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 java.lang.reflect.Method.invoke(Method.java:515)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:739)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
 03-23 16:20:37.199: ERROR/AndroidRuntime(767):     at
 dalvik.system.NativeStart.main(Native Method)
 03-23 16:20:37.280: INFO/Process(51): Sending signal. PID: 767 SIG: 3
 03-23 16:20:37.299: INFO/dalvikvm(767): threadid=7: reacting to signal
 3
 03-23 16:20:37.418: INFO/dalvikvm(767): Wrote stack trace to '/data/
 anr/traces.txt'
 03-23 16:20:38.829: INFO/Process(767): Sending signal. PID: 767 SIG: 9
 03-23 16:20:38.901: INFO/ActivityManager(51): Process
 com.organiser.college (pid 767) has died.
 03-23 16:20:39.030: INFO/WindowManager(51): WIN DEATH: Window{4342f180
 com.organiser.college/com.organiser.college.CollegeOrganiser}

 I have pretty much no idea what any of that stuff means.

 On Mar 23, 4:05 pm, Streets Of Boston flyingdutc...@gmail.com wrote:



  We won't know what's going on unless you show us a strack-trace of the
  error. :=)
  Look at LogCat and copy/paste the strack-trace in this thread.


[android-developers] Please help! Having problem with wave locked service. it still going sleeping.

2009-03-23 Thread bromon

hi Everyone:

  i searched the groups for days, and can't solve the problem by
myslef. so i'm asking for help here.
i have a service running background, it registered a LocationListener
on the LocationManager. when the phone moved exceeded the predefined
distance, listener will be triggered and send a notification.

i want the service keep running so in the service i used the
PowerManager.WakeLock to acquire  the PARTIAL_WAKE_LOCK and release
the wave lock at some time. but i noticed the service did nothing when
phone sleeped. i walk or drive a long distance with my phone, i only
got notifications when i activate the phone, and the notifycation
timestamp is always the time phone activated.

i also checked the phone's status, the Awake time( Settings - About
Phone - Status - Awake time) is 100%, i think that means my service
does get the wave lock, the CPU kept running.

i wonder why my service didn't send out any notification, why my
listener didn't triggered? do you have any clue? thanks alot.

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



[android-developers] who can tell me how to achieve this function?! thx!!!!

2009-03-23 Thread wanzi !

Is anybody download the PaPi games from market and played it?

I found when I played one of this series of PaPi game and I input my
name,then all series PaPi games can read this name.

At beginning, I consider maybe the application saved some data which
can be shared by other PaPi games, but when I Factory data reset and
format the SD card, then I download these games and play them again,
it's so crazy that these games can read my name which I inputed before
all the same!!

next, I consider maybe the application read the only code of the phone
(IMEI) to identify the phone,but I check the install information about
all the PaPi games, I can't found any information about READ PHONE
STATE,so I think these applications didn't read the IMEI code.

who can tell me how to achieve this function?! thx!

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



[android-developers] How to create a composer for QCELP

2009-03-23 Thread david

Hi,

Anybody knows how to create such the composer?
I've searched OpenCore source for a sample from  which I can do learn
to create it. But I just found the one for MPEG4. Meanwhile, It looks
like very complicated and I think it has little things relative with
Audio/QCELP. So, any hint for this issue? And does the latest OpenCore
have any composer for AAC or AMRNB(WB) ? 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] How to control the SurfaceView's z-order

2009-03-23 Thread hurri

Hi,
I created a RelativeLayout which has 2 SurfaceView. The layout looks
like below
RelativeLayout
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  SurfaceView android:id=@+id/main
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_centerInParent=true
  
  SurfaceView android:id=@+id/pip
 android:layout_width=120dip
 android:layout_height=90dip
 android:layout_alignBottom=@id/main
 android:layout_alignRight=@id/main
  
/RelativeLayout

It seems that the main surface is always above on pip surface even put
the pip definiation before the main. So how can i change the z-order
to bring the pip to front.

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



[android-developers] who can tell me how to achieve this function?! thx!

2009-03-23 Thread wanzi !

Is anybody download the series of PaPi game form the market and played
it?

I found after I enter one of this series game and input my name,all of
this series games can read this name.

At beginning, I think maybe the application save some data in the
phone which can be shared  by all the PaPi games,but when I Factory
data reset and format the SD card, then I download this series game
and play it again, it's so crazy that this series games  are still
able to read the name which I input before.

next, I consider maybe the application read the only code(IMEI) of the
phone and use it to identify the phone,but when I examine the warning
information about the game, I don't find any information about READ
PHONE STATE,so I think the game didn't read the IMEI code.

who can tell me how to achieve this function?! thx!

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

2009-03-23 Thread Ramesh

Hi everybody..
 Can anyone help me in this?
I would like to list the video files available in the provider and
playing according to user selection.

Thanks,
Ramesh.

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



[android-developers] How to create a composer for QCELP

2009-03-23 Thread david

Hi,

Anybody knows how to create such the composer?
I've searched OpenCore source for a sample from  which I can do learn
to create it. But I just found the one for MPEG4. Meanwhile, It looks
like very complicated and I think it has little things relative with
Audio/QCELP. So, any hint for this issue? And does the latest OpenCore
have any composer for AAC or AMRNB(WB) ? 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] Building user interfaces at runtime with layouts from server

2009-03-23 Thread Daniel

Hi all,

Q: What is the recommended way to build user interfaces on the device
based on layouts provided by a server at runtime?

I am aware of this:
snip source=http://developer.android.com/reference/android/view/
LayoutInflater.html
For performance reasons, view inflation relies heavily on pre-
processing of XML files that is done at build time. Therefore, it is
not currently possible to use LayoutInflater with an XmlPullParser
over a plain XML file at runtime; it only works with an XmlPullParser
returned from a compiled resource (R.something file.)
/snip

I could imagine these possibilities:
- Parse XML by myself and build the ui tree. (Seems inappropriate to
me since there is already maintained code which is able to do this.)

- Transform XML on server to a simpler format which is cheaper to
parse on the device. (Inappropriate  as above.)

- Preprocess the XML layout on the server the same way the build does.
Transmit it to the client, and then try to load it. But how?
android.content.res.XMLBlock is hidden (@hide) and I don't know how
to
classify the stuff in package com.android.layoutlib.bridge.

Any help would be appreciated.
Daniel




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



[android-developers] Re: Where is the source code for Pictures app

2009-03-23 Thread tuvok.com...@gmail.com

It's Gallery in source code.

On Mar 22, 11:01 pm, yves...@gmail.com yves...@gmail.com wrote:
 I just downloaded Android source code, but I can't find the source
 for Pictures app. I did see Calculator code. Anyone know where I
 can find the Pictures or why it is not in the source code package?

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



[android-developers] Returning from HTTP Intent.ACTION_VIEW

2009-03-23 Thread Chris Streeter

I have an application that needs to have a user visit a web page to
authorize it.  After spending time in the Browser the user should
return the my application.

Currently, I'm launching the Browser with:

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url.toString()));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);

After using the browser, I can go back home and launch my application,
which stacks a new Activity on top of the previous stack of Activities
that were being used in the application. For example. If the user
launches the app, they have Activity A in the stack. From there we
navigate to Activity B which then launches the Browser. Then, the next
time we enter the app, we launch Activity A, which is pushed onto the
stack that already contains an A and B.

My question is then, how can I just go back to the previous stack?
Basically, do I have to create a new Activity? Is there a better way
to launch the Browser, and then come back to my application?

Also, I've been using the Intent.FLAG_ACTIVITY_NEW_TASK when I start
the Browser activity so that my app stays running. Is this a good way
to go about solving this problem?

Thanks in advance, any help is greatly appreciated,

- Chris

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

2009-03-23 Thread Mani

Matt :

There are certain Set of SMS , which is not meant for the User , like
SMSPP- Data Download ( which goes to the SIM Card ) and is not
Displayed in the Inbox .

Similarly , there are set of Port Messages ( where in , the TP-User
Data [ Refer 3GPP TS 23.040 ] ) , will contain the Port IE , which is
Generally Processed by some application on the phone , instead of
Displaying it to the user  in Inbox .

So , what kind of SMS is intended for your application ? How does the
Android Messaging application process the Port Messages ?

If Android Messaging Application can Forward the Port based Messages
to Different application , which registers for it , then it might
Solve your application requirement

Regards
Mani.



On Mar 22, 5:25 am, Tseng tseng.priv...@googlemail.com wrote:
 Exactly. This is not possible for security reasons. The user shall
 always be aware what he is receiving from other people and it makes
 malware/trojan-hores like applications harder to make.

 However, I think it's possible to set an notification in the
 notification window, so the user is aware that an SMS is there and
 could pick it up (to open the integrated SMS application) and then
 delete it after reading.

 On Mar 20, 5:35 pm, strazzere str...@gmail.com wrote:

  I believe this has been discussed previously and the result was you
  arn't allowed to do it, since someone could abuse this by sending and
  receiving messages without the user knowing. This is considered a no-
  no since it's a chargeable service.

  On Mar 20, 12:04 pm, Kenny yxw...@gmail.com wrote:

   I was looking for the solution too. It seems impossible to intercept
   TEXT SMS. It will go to Inbox definitely.

   Kenny

   On Mar 20, 10:30 pm, Gulfam gulfa...@gmail.com wrote:

My problem is same as MattBruce said.

On Mar 20, 7:28 pm, Gulfam gulfa...@gmail.com wrote:

 Hi all,

 I am also facing exact same problem as said below any one can help us
 Regarding this.its very urgent for me.

 Regards,
 Gulfam

 On Feb 15, 4:57 am, Matt Bruce mbruced...@gmail.com wrote:

  I have an SMSReceiver that I built to intercept a particular type of
  SMS that would run a service.  That is all working great, however, I
  would like for this SMS to not show up in the user's inbox.  So
  ideally i would like to delete the SMS on the time of Interception. 
   I
  have gone through a ton of threads and having seen anyone accomplish
  this yet.

  Am I missing something or is this even possible?  I would think 
  there
  would be some _id on the incoming SMS that i could use to run the
  delete against the SMS store.

  I am looking for any solution, and I hope someone out there has
  accomplished this.

  HELP!- 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] Want to learn it to develop app

2009-03-23 Thread liqiu...@gmail.com

I am very intreseting in Android.It very new to me,so I want to know
about it.

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

2009-03-23 Thread Leon

Hi, does any one konw how to get the currently foreground activity
class name?  In my project, I need  get the info of the foreground
activity, not only my own application, but also the third party
application.

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



[android-developers] Implications of Using Non Standard Packages

2009-03-23 Thread jason.delport

Hi Android Developers,

What are the implications for future Android device releases if we are
using non-standard packages such as com.google.android.maps?

Thanks in advance.

Regards,

Jason Delport

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



[android-developers] HelloGallery tutorial android.R.styleable cannot be resolved

2009-03-23 Thread ppmoore

Hello,

I've been following the View tutorials included in the android
developer site. When testing hte HelloGallery view, I get this compile-
time error.

I searched for this error on this group but is wasn't answered.
Can anyone help.

The problem reference occurs in the imageAdapter class that is
appended after the onCreate() method in the HelloGallery class:

   public class ImageAdapter extends BaseAdapter
{
...
TypedArray a = obtainStyledAttributes
(android.R.styleable.Theme);
}

Strangely enough, when I insert this lines into the onCreate() method
at the start of the package, there is no problem. It seems that the
android.R class is not known.

Thanks,
Paul

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



[android-developers] Can we charge some externals stuffs for a paid Android Market game

2009-03-23 Thread jokamax

Hi all,

I have a question about paid applications from AndroidMarket.
I developp a multiplayer game witch interact with a Web site

Can I sell on Android Market an application, and then sell from the
web site (not by the android market) some downloadable content or some
extendable rights ?

Example :
A RTS game on android market that allow you to obtain 500unit/days
(normal functionning)
And then on the webSite or from the Phone you charge to obtain
+250unit/days

The game is fully functionnal but you can pay to obtain more turn, or
more data food, or more etc ... as all web online game.

Thanks by advance,

Jok

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

2009-03-23 Thread Mani

Matt:

Not all the Incoming Messages will be displayed in the Inbox . There
are certain type of messages, which are not supposed to be shown in
Inbox , instead , they are Processed by Some application on the phone.

There are certain Messages called Port Messages, where in the the TP-
UD ( Please refer 3GPP TS 23.040 ) will contain the Port IE - based on
this port IE , the message will be Processed by a Different
application on the phone .

Do you know, how does the messaging Applicaiton on the Android Deal
with the Port Messages ? If it can Route some Port Message to your
application , then it will meet your Requirements

Regards
Mani

On Mar 22, 5:25 am, Tseng tseng.priv...@googlemail.com wrote:
 Exactly. This is not possible for security reasons. The user shall
 always be aware what he is receiving from other people and it makes
 malware/trojan-hores like applications harder to make.

 However, I think it's possible to set an notification in the
 notification window, so the user is aware that an SMS is there and
 could pick it up (to open the integrated SMS application) and then
 delete it after reading.

 On Mar 20, 5:35 pm, strazzere str...@gmail.com wrote:

  I believe this has been discussed previously and the result was you
  arn't allowed to do it, since someone could abuse this by sending and
  receiving messages without the user knowing. This is considered a no-
  no since it's a chargeable service.

  On Mar 20, 12:04 pm, Kenny yxw...@gmail.com wrote:

   I was looking for the solution too. It seems impossible to intercept
   TEXT SMS. It will go to Inbox definitely.

   Kenny

   On Mar 20, 10:30 pm, Gulfam gulfa...@gmail.com wrote:

My problem is same as MattBruce said.

On Mar 20, 7:28 pm, Gulfam gulfa...@gmail.com wrote:

 Hi all,

 I am also facing exact same problem as said below any one can help us
 Regarding this.its very urgent for me.

 Regards,
 Gulfam

 On Feb 15, 4:57 am, Matt Bruce mbruced...@gmail.com wrote:

  I have an SMSReceiver that I built to intercept a particular type of
  SMS that would run a service.  That is all working great, however, I
  would like for this SMS to not show up in the user's inbox.  So
  ideally i would like to delete the SMS on the time of Interception. 
   I
  have gone through a ton of threads and having seen anyone accomplish
  this yet.

  Am I missing something or is this even possible?  I would think 
  there
  would be some _id on the incoming SMS that i could use to run the
  delete against the SMS store.

  I am looking for any solution, and I hope someone out there has
  accomplished this.

  HELP!- 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] Multiple ListViews in one Activity

2009-03-23 Thread Wouter

Hey,

I want to have multiple listviews in my activity. Every listview will
have a different adapter and every item in the listview must be
clickable (other actions for every listview).

So my problem now is that I can't create multiple clickable
listviews.
I have one listview like this ListView android:id=@android:id/
list..
and the other listview looks like this ListView android:id=@+id/
flightList

The first listview looks like this in my activity
hotelList = (ListView)findViewById(android.R.id.list);

the second:
 listView = (ListView) findViewById(R.id.flightList);

I can click on the first list and it does what it has to do, but i
cant do anything with the second list..
probably because it hasn't the android:id/list declaration :(

does someone knows how I can solve this problem or other suggestions
how I can get multiple lists in 1 activity!

Thank you,

Wouter

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

2009-03-23 Thread nrain

Hii,

I hope Android os supports unicode fonts. I want to use some otf fonts
on my handset.
Is there any tutorial or suggestion available?

Here is the unicode font chart: http://unicode.org/charts/PDF/U0980.pdf
Example font: http://omicronlab.com/download/fonts/SolaimanLipi_20-04-07.ttf

any help guys?

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: Building user interfaces at runtime with layouts from server

2009-03-23 Thread droozen

We might have to know why you want to build this way. There could be
other possibilities, including using a much simpler xml that you could
parse yourself and add UI elements programmatically. Or have a variety
of layouts available that you could set, depending on a value you've
downloaded, though I get the feeling you want something more dynamic
than that.

On Mar 23, 2:10 am, Daniel daniel.kro...@gmail.com wrote:
 Hi all,

 Q: What is the recommended way to build user interfaces on the device
 based on layouts provided by a server at runtime?

 I am aware of this:
 snip source=http://developer.android.com/reference/android/view/
 LayoutInflater.html
 For performance reasons, view inflation relies heavily on pre-
 processing of XML files that is done at build time. Therefore, it is
 not currently possible to use LayoutInflater with an XmlPullParser
 over a plain XML file at runtime; it only works with an XmlPullParser
 returned from a compiled resource (R.something file.)
 /snip

 I could imagine these possibilities:
 - Parse XML by myself and build the ui tree. (Seems inappropriate to
 me since there is already maintained code which is able to do this.)

 - Transform XML on server to a simpler format which is cheaper to
 parse on the device. (Inappropriate  as above.)

 - Preprocess the XML layout on the server the same way the build does.
 Transmit it to the client, and then try to load it. But how?
 android.content.res.XMLBlock is hidden (@hide) and I don't know how
 to
 classify the stuff in package com.android.layoutlib.bridge.

 Any help would be appreciated.
 Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Multiple ListViews in one Activity

2009-03-23 Thread Romain Guy

You can do that. A ListView does not have to have the @android:id/list
id, only when used in a ListActivity.

On Mon, Mar 23, 2009 at 4:44 AM, Wouter wouterg...@gmail.com wrote:

 Hey,

 I want to have multiple listviews in my activity. Every listview will
 have a different adapter and every item in the listview must be
 clickable (other actions for every listview).

 So my problem now is that I can't create multiple clickable
 listviews.
 I have one listview like this ListView android:id=@android:id/
 list..
 and the other listview looks like this ListView android:id=@+id/
 flightList

 The first listview looks like this in my activity
 hotelList = (ListView)findViewById(android.R.id.list);

 the second:
  listView = (ListView) findViewById(R.id.flightList);

 I can click on the first list and it does what it has to do, but i
 cant do anything with the second list..
 probably because it hasn't the android:id/list declaration :(

 does someone knows how I can solve this problem or other suggestions
 how I can get multiple lists in 1 activity!

 Thank you,

 Wouter

 




-- 
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: Want to learn it to develop app

2009-03-23 Thread Ivan Soto
That's good. Please use android-beginners group if you are really new into
the platform.

Ivan Soto Fernandez
Web Developer
http://ivansotof.com



On Mon, Mar 23, 2009 at 9:08 AM, liqiu...@gmail.com liqiu...@gmail.comwrote:


 I am very intreseting in Android.It very new to me,so I want to know
 about it.

 


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

2009-03-23 Thread Marco Nelissen

Try adding this to your xml:
style=?android:attr/progressBarStyleHorizontal


On Mon, Mar 23, 2009 at 9:50 AM, droozen droozenr...@gmail.com wrote:

 I just wanted to run a ProgressBar test, as it's my first time using
 them on the Android. Here's my XML (in a Linear Layout):

 ProgressBar android:id=@+id/progress
        android:layout_width=fill_parent
        android:layout_height=25dip
        android:indeterminate=false
        android:max=100
        android:progress=50 /

 When I run the emulator I get a progress bar that glows orange on the
 left and right end.

 I also instead tried programmatically setting indeterminate to false,
 max to 100, and progress to a solid 50. No go. I even tried creating a
 background worker thread that would update the progress of the bar
 every half a second. Nothing. I just get two glowing orange ends to my
 bar (with a blank space in the middle).

 Is this a problem with the emulator? Or am I doing something wrong
 with the ProgressBar?
 


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

2009-03-23 Thread Romain Guy

Your app is likely to break.

More precisely, it depends on the package. For instance, the
com.google.android.maps package is a public API and won't change.
However, packages like com.android.internal or even com.android.*
contain private APIs and are subject to changes at anytime.

On Mon, Mar 23, 2009 at 4:28 AM, jason.delport jason.delp...@gmail.com wrote:

 Hi Android Developers,

 What are the implications for future Android device releases if we are
 using non-standard packages such as com.google.android.maps?

 Thanks in advance.

 Regards,

 Jason Delport

 




-- 
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: Implications of Using Non Standard Packages

2009-03-23 Thread Dianne Hackborn
Also com.google.android.maps is an optional API provided by Google that is
not part of Android, so there will be phones that don't have it.  This is
why you need to declare its use in the manifest, so that Market and the
system can know your app won't work.

On Mon, Mar 23, 2009 at 10:28 AM, Romain Guy romain...@google.com wrote:


 Your app is likely to break.

 More precisely, it depends on the package. For instance, the
 com.google.android.maps package is a public API and won't change.
 However, packages like com.android.internal or even com.android.*
 contain private APIs and are subject to changes at anytime.

 On Mon, Mar 23, 2009 at 4:28 AM, jason.delport jason.delp...@gmail.com
 wrote:
 
  Hi Android Developers,
 
  What are the implications for future Android device releases if we are
  using non-standard packages such as com.google.android.maps?
 
  Thanks in advance.
 
  Regards,
 
  Jason Delport
 
  
 



 --
 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.  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: Multiple ListViews in one Activity

2009-03-23 Thread droozen

Short Answer: I don't think you can

Longer Answer: ListActivity, as described in the javadocs:

ListActivity hosts a ListView object that can be bound to different
data sources. -- Note the singular a, as in one

Screen Layout

ListActivity has a default layout that consists of a single, full-
screen list in the center of the screen. However, if you desire, you
can customize the screen layout by setting your own view layout with
setContentView() in onCreate(). To do this, your own view MUST contain
a ListView object with the id @android:id/list (or list if it's in
code)  -- Once again, a ListActivity can contain a single ListView
object with the id @android:id/list.

I've had my own problems with ListViews and ListActivitys, as well,
including not being able to put a ScrollView around it and still have
the ListView scroll. Instead, the ListView now permanently has to take
up a chunk of the screen real estate, and everything else has to be
wrapped in a ScrollView on another section of the screen. Oh well.


On Mar 23, 6:44 am, Wouter wouterg...@gmail.com wrote:
 Hey,

 I want to have multiple listviews in my activity. Every listview will
 have a different adapter and every item in the listview must be
 clickable (other actions for every listview).

 So my problem now is that I can't create multiple clickable
 listviews.
 I have one listview like this ListView android:id=@android:id/
 list..
 and the other listview looks like this ListView android:id=@+id/
 flightList

 The first listview looks like this in my activity
 hotelList = (ListView)findViewById(android.R.id.list);

 the second:
  listView = (ListView) findViewById(R.id.flightList);

 I can click on the first list and it does what it has to do, but i
 cant do anything with the second list..
 probably because it hasn't the android:id/list declaration :(

 does someone knows how I can solve this problem or other suggestions
 how I can get multiple lists in 1 activity!

 Thank you,

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

2009-03-23 Thread Dianne Hackborn
I strongly recommend against using multiple surface views in a window.  The
way surface view is implemented is that a separate surface is created and
Z-ordered behind its containing window, and transparent pixels drawn into
the rectangle where the SurfaceView is so you can see the surface behind.
We never intended to allow for multiple surface views.

On Mon, Mar 23, 2009 at 2:12 AM, hurri jun.lu...@gmail.com wrote:


 Hi,
 I created a RelativeLayout which has 2 SurfaceView. The layout looks
 like below
 RelativeLayout
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  SurfaceView android:id=@+id/main
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_centerInParent=true
  
  SurfaceView android:id=@+id/pip
 android:layout_width=120dip
 android:layout_height=90dip
 android:layout_alignBottom=@id/main
 android:layout_alignRight=@id/main
  
 /RelativeLayout

 It seems that the main surface is always above on pip surface even put
 the pip definiation before the main. So how can i change the z-order
 to bring the pip to front.

 



-- 
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.  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: Why my application get Not granting permission warning when i install it by adb and AppsInstaller

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 6:18 AM, Disconnect dc.disconn...@gmail.com wrote:

 On a related note, since I am without my build machine at the moment (sigh,
 apple, boo) do you know off the top of your head if master allows rebinding
 the 'talk' and general phone/contact UI to a different app? (There is a 3rd
 party phonebook app in the market - free no less - that rocks, but the
 released code always falls back to the system dialer/phonebook. Which I'm
 sure is an oversight/bug rather than design, since phonebook is one of the
 examples on that page :) ..)


Sorry, I'm not sure what you are referring to -- an app can implement the
DIAL and CALL intents to be launched when things like the call button is
pressed.  I'm not aware of other ways to get into the Dialtacts app, but I
don't work on that code so wouldn't really know.

-- 
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.  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: Accessing System Brightness

2009-03-23 Thread Dianne Hackborn
On Sun, Mar 22, 2009 at 10:45 PM, joby joby...@gmail.com wrote:

 IHardwareService hardware = IHardwareService.Stub.asInterface
 (
   ServiceManager.getService(hardware));

 try {
hardware.setScreenBacklight(150);
} catch (RemoteException e)
// TODO Auto-generated catch block
e.printStackTrace();
 }


This is a private API and will break in Cupcake.

-- 
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.  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] how can i pick audio in startActivityForResult

2009-03-23 Thread zeeshan

Hi Experts,

i need to select audio from my playlist

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



[android-developers] Re: IWindowManager Not Available

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 3:05 AM, Lars lars.bra...@gmail.com wrote:

 Could you please explain why?


You are using this to bypass the SDK and access various internal APIs and
data structures.  Worse, what is probably happening is that you are bundling
the internal IPC interfaces into your app, which will break pretty much any
time they change (and they do that a lot).

So by doing this, you are basically putting yourself in a position where you
have no idea if your app is using APIs that are not in the SDK and thus can
change between releases, and actually doing it in such a way that you have
the best chance of breaking.

-- 
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.  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: Multiple ListViews in one Activity

2009-03-23 Thread Romain Guy

 Short Answer: I don't think you can

Yes you can.

 ListActivity hosts a ListView object that can be bound to different
 data sources. -- Note the singular a, as in one

That's with a *ListActivity*. You can use a regular Activity instead.
And actually even with a ListActivity you can use several ListViews.

 I've had my own problems with ListViews and ListActivitys, as well,
 including not being able to put a ScrollView around it and still have
 the ListView scroll. Instead, the ListView now permanently has to take
 up a chunk of the screen real estate, and everything else has to be
 wrapped in a ScrollView on another section of the screen. Oh well.

A ListView already handles scrolling, do not put it in a ScrollView.
And it has nothing to do with ListActivity.



 On Mar 23, 6:44 am, Wouter wouterg...@gmail.com wrote:
 Hey,

 I want to have multiple listviews in my activity. Every listview will
 have a different adapter and every item in the listview must be
 clickable (other actions for every listview).

 So my problem now is that I can't create multiple clickable
 listviews.
 I have one listview like this ListView android:id=@android:id/
 list..
 and the other listview looks like this ListView android:id=@+id/
 flightList

 The first listview looks like this in my activity
 hotelList = (ListView)findViewById(android.R.id.list);

 the second:
  listView = (ListView) findViewById(R.id.flightList);

 I can click on the first list and it does what it has to do, but i
 cant do anything with the second list..
 probably because it hasn't the android:id/list declaration :(

 does someone knows how I can solve this problem or other suggestions
 how I can get multiple lists in 1 activity!

 Thank you,

 Wouter
 




-- 
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 get the current battery level of the device using an API call

2009-03-23 Thread monmonja

Have you tried something like

int level = this.getIntent().getIntExtra(level, 0);
int scale = this.getIntent().getIntExtra(scale, 100);
if((level * 100 / scale)  70){
// dl
}

monmonja
http://almondmendoza.com/2009/01/04/getting-battery-information-on-android/

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



[android-developers] ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-23 Thread Matthias

Hi,

I have been struggling for over two hours now getting a custom
ListActivity to respond to touch/click events directly on its list
items. However, onListItemClick() is only called when first focusing a
list element and then pressing the trackball or dpad-center button.

The odd thing is that it works in another custom ListActivity I
wrote... any general ideas when this can actually happen? I tried
playing around with the focusable und clickable attributes on all the
list entry views and the list view itself. I think I tried every
possible combination, but it never works it simply looks as if the
list items views are consuming the click event, so the list view never
gets to it, but then again, why would it work using the dpad then??

Any help greatly appreciated.

Best,
Matthias
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: who can tell me how to achieve this function?! thx!!!!

2009-03-23 Thread droozen

They're probably saving your name on their webserver somewhere, and
perhaps using your phone number to identify the phone and display that
name.

On Mar 22, 9:06 pm, wanzi ! wanzihe...@gmail.com wrote:
 Is anybody download the PaPi games from market and played it?

 I found when I played one of this series of PaPi game and I input my
 name,then all series PaPi games can read this name.

 At beginning, I consider maybe the application saved some data which
 can be shared by other PaPi games, but when I Factory data reset and
 format the SD card, then I download these games and play them again,
 it's so crazy that these games can read my name which I inputed before
 all the same!!

 next, I consider maybe the application read the only code of the phone
 (IMEI) to identify the phone,but I check the install information about
 all the PaPi games, I can't found any information about READ PHONE
 STATE,so I think these applications didn't read the IMEI code.

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



[android-developers] Re: ProgressBar - Emulator not working?

2009-03-23 Thread droozen

That worked, thanks.

On Mar 23, 12:27 pm, Marco Nelissen marc...@android.com wrote:
 Try adding this to your xml:
 style=?android:attr/progressBarStyleHorizontal

 On Mon, Mar 23, 2009 at 9:50 AM, droozen droozenr...@gmail.com wrote:

  I just wanted to run a ProgressBar test, as it's my first time using
  them on the Android. Here's my XML (in a Linear Layout):

  ProgressBar android:id=@+id/progress
         android:layout_width=fill_parent
         android:layout_height=25dip
         android:indeterminate=false
         android:max=100
         android:progress=50 /

  When I run the emulator I get a progress bar that glows orange on the
  left and right end.

  I also instead tried programmatically setting indeterminate to false,
  max to 100, and progress to a solid 50. No go. I even tried creating a
  background worker thread that would update the progress of the bar
  every half a second. Nothing. I just get two glowing orange ends to my
  bar (with a blank space in the middle).

  Is this a problem with the emulator? Or am I doing something wrong
  with the ProgressBar?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: IWindowManager Not Available

2009-03-23 Thread AndRaj

oh... Good.. So it will change only if they change in new release

i fthey won't change that it also won't change rt...

On Mar 23, 9:40 pm, Dianne Hackborn hack...@android.com wrote:
 On Mon, Mar 23, 2009 at 3:05 AM, Lars lars.bra...@gmail.com wrote:
  Could you please explain why?

 You are using this to bypass the SDK and access various internal APIs and
 data structures.  Worse, what is probably happening is that you are bundling
 the internal IPC interfaces into your app, which will break pretty much any
 time they change (and they do that a lot).

 So by doing this, you are basically putting yourself in a position where you
 have no idea if your app is using APIs that are not in the SDK and thus can
 change between releases, and actually doing it in such a way that you have
 the best chance of breaking.

 --
 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.  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: Multiple ListViews in one Activity

2009-03-23 Thread droozen

Ah, I see. I guess I assumed he was using a ListActivity, the way he
was describing it. How else would you access the OnListItemClicked or
a similar such capture to be able to manipulate both lists outside of
a ListActivity?

And it's a bit off topic, but yes, a ListView handles scrolling, which
is messed up when in a ScrollView, but I really would have liked my
list to be at the bottom of an interface that happened to scroll off
the screen, just like this scrollable text box I'm typing in is at the
bottom of a web page, which also happens to be scrollable. It seems
ridiculous to me that that can't be done. But that is my side rant
that belongs in another discussion, I guess.

On Mar 23, 12:54 pm, Romain Guy romain...@google.com wrote:
  Short Answer: I don't think you can

 Yes you can.

  ListActivity hosts a ListView object that can be bound to different
  data sources. -- Note the singular a, as in one

 That's with a *ListActivity*. You can use a regular Activity instead.
 And actually even with a ListActivity you can use several ListViews.

  I've had my own problems with ListViews and ListActivitys, as well,
  including not being able to put a ScrollView around it and still have
  the ListView scroll. Instead, the ListView now permanently has to take
  up a chunk of the screen real estate, and everything else has to be
  wrapped in a ScrollView on another section of the screen. Oh well.

 A ListView already handles scrolling, do not put it in a ScrollView.
 And it has nothing to do with ListActivity.





  On Mar 23, 6:44 am, Wouter wouterg...@gmail.com wrote:
  Hey,

  I want to have multiple listviews in my activity. Every listview will
  have a different adapter and every item in the listview must be
  clickable (other actions for every listview).

  So my problem now is that I can't create multiple clickable
  listviews.
  I have one listview like this ListView android:id=@android:id/
  list..
  and the other listview looks like this ListView android:id=@+id/
  flightList

  The first listview looks like this in my activity
  hotelList = (ListView)findViewById(android.R.id.list);

  the second:
   listView = (ListView) findViewById(R.id.flightList);

  I can click on the first list and it does what it has to do, but i
  cant do anything with the second list..
  probably because it hasn't the android:id/list declaration :(

  does someone knows how I can solve this problem or other suggestions
  how I can get multiple lists in 1 activity!

  Thank you,

  Wouter

 --
 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: ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-23 Thread droozen

Have you tried following the Notepad tutorial and this line in your
onCreate method?

registerForContextMenu(getListView());

On Mar 23, 1:31 pm, Matthias m.kaepp...@googlemail.com wrote:
 Hi,

 I have been struggling for over two hours now getting a custom
 ListActivity to respond to touch/click events directly on its list
 items. However, onListItemClick() is only called when first focusing a
 list element and then pressing the trackball or dpad-center button.

 The odd thing is that it works in another custom ListActivity I
 wrote... any general ideas when this can actually happen? I tried
 playing around with the focusable und clickable attributes on all the
 list entry views and the list view itself. I think I tried every
 possible combination, but it never works it simply looks as if the
 list items views are consuming the click event, so the list view never
 gets to it, but then again, why would it work using the dpad then??

 Any help greatly appreciated.

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

2009-03-23 Thread Romain Guy

 And it's a bit off topic, but yes, a ListView handles scrolling, which
 is messed up when in a ScrollView, but I really would have liked my
 list to be at the bottom of an interface that happened to scroll off
 the screen, just like this scrollable text box I'm typing in is at the
 bottom of a web page, which also happens to be scrollable. It seems
 ridiculous to me that that can't be done. But that is my side rant
 that belongs in another discussion, I guess.

ListView was not meant for that. Just don't use a ListView.


 On Mar 23, 12:54 pm, Romain Guy romain...@google.com wrote:
  Short Answer: I don't think you can

 Yes you can.

  ListActivity hosts a ListView object that can be bound to different
  data sources. -- Note the singular a, as in one

 That's with a *ListActivity*. You can use a regular Activity instead.
 And actually even with a ListActivity you can use several ListViews.

  I've had my own problems with ListViews and ListActivitys, as well,
  including not being able to put a ScrollView around it and still have
  the ListView scroll. Instead, the ListView now permanently has to take
  up a chunk of the screen real estate, and everything else has to be
  wrapped in a ScrollView on another section of the screen. Oh well.

 A ListView already handles scrolling, do not put it in a ScrollView.
 And it has nothing to do with ListActivity.





  On Mar 23, 6:44 am, Wouter wouterg...@gmail.com wrote:
  Hey,

  I want to have multiple listviews in my activity. Every listview will
  have a different adapter and every item in the listview must be
  clickable (other actions for every listview).

  So my problem now is that I can't create multiple clickable
  listviews.
  I have one listview like this ListView android:id=@android:id/
  list..
  and the other listview looks like this ListView android:id=@+id/
  flightList

  The first listview looks like this in my activity
  hotelList = (ListView)findViewById(android.R.id.list);

  the second:
   listView = (ListView) findViewById(R.id.flightList);

  I can click on the first list and it does what it has to do, but i
  cant do anything with the second list..
  probably because it hasn't the android:id/list declaration :(

  does someone knows how I can solve this problem or other suggestions
  how I can get multiple lists in 1 activity!

  Thank you,

  Wouter

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




-- 
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: IWindowManager Not Available

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 11:42 AM, AndRaj rajendran.b...@gmail.com wrote:

 oh... Good.. So it will change only if they change in new release


They will.  You will break.  Plus, you are linking against a special build
of a part of the Android platform that was designed to run on the desktop
for the UI editor.  There may be duplicate classes in there that you are
linking into your app instead of using in the system, and all kinds of
problems.


 i fthey won't change that it also won't change rt...


Sorry, I can't parse that sentence.

-- 
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.  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: IWindowManager Not Available

2009-03-23 Thread Rajendrakumar Chinnaiyan
If they won't change the internal API's.. Our application also won't get any
problem..

On Mon, Mar 23, 2009 at 11:42 PM, Dianne Hackborn hack...@android.comwrote:

 On Mon, Mar 23, 2009 at 11:42 AM, AndRaj rajendran.b...@gmail.com wrote:

 oh... Good.. So it will change only if they change in new release


 They will.  You will break.  Plus, you are linking against a special build
 of a part of the Android platform that was designed to run on the desktop
 for the UI editor.  There may be duplicate classes in there that you are
 linking into your app instead of using in the system, and all kinds of
 problems.


 i fthey won't change that it also won't change rt...


 Sorry, I can't parse that sentence.

 --
 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.  All such questions should be posted on public
 forums, where I and others can see and answer them.


 



-- 
Regards
Rajendrakumar Chinnaiyan
COE | Testing Services | Wipro Technologies
Mob : +919886293435

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Cupcake coming in April? Where is the SDK?

2009-03-23 Thread AndroidApp

Can someone capable just compile the SDK and post it online for
everyone? Someone from Google? I dont really care if it's not
official, i just dont want to download the source tree just to build
the SDK, plus i need to do the tricks you mentioned to make it work on
windows.

On Mar 23, 1:11 pm, Marco Nelissen marc...@android.com wrote:
 I certainly hope there aren't a lot of applications that use
 reflection and private APIs.

 On Mon, Mar 23, 2009 at 6:59 AM, zl25drexel zl25dre...@gmail.com wrote:

  Cupcake is coming, and as you know it will break a lot of apps in the
  market, those that use reflection  private api. So where is the
  Cupcake SDK/emulator for us to try our apps?

  I know we can download the source codes and build it, and I know apps
  wont break if they dont use undocumented api, blah blah blah, but we
  should get an official SDK/emulator for cupcake, dont you think,
  google?


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

2009-03-23 Thread Streets Of Boston

And that's a BIIIGG 'if'. :-)

Trust Dianne on this. Do not use any API that is private. If you do,
at some point in time you will (and that's a 100% sure) break your
application and you will get a lot of angry customers.


On Mar 23, 3:16 pm, Rajendrakumar Chinnaiyan
rajendran.b...@gmail.com wrote:
 If they won't change the internal API's.. Our application also won't get any
 problem..

 On Mon, Mar 23, 2009 at 11:42 PM, Dianne Hackborn hack...@android.comwrote:





  On Mon, Mar 23, 2009 at 11:42 AM, AndRaj rajendran.b...@gmail.com wrote:

  oh... Good.. So it will change only if they change in new release

  They will.  You will break.  Plus, you are linking against a special build
  of a part of the Android platform that was designed to run on the desktop
  for the UI editor.  There may be duplicate classes in there that you are
  linking into your app instead of using in the system, and all kinds of
  problems.

  i fthey won't change that it also won't change rt...

  Sorry, I can't parse that sentence.

  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.

 --
 Regards
 Rajendrakumar Chinnaiyan
 COE | Testing Services | Wipro Technologies
 Mob : +919886293435- 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: How is android's AlertDialog layout define?

2009-03-23 Thread Lucius Fox

Can you please tell me where I can the layout xml file for the AlertDialog?
I try to do a 'grep for 'alert1' in all the files in the source tree,
it does not return anything.

Thanks for tips.

On Sun, Mar 22, 2009 at 11:56 AM, Dianne Hackborn hack...@android.com wrote:
 The layout is an xml file, and an implementation detail.  If you want to
 have your own kind of alert dialog, just subclass from Dialog and make it
 yourself.  Given how customizable AlertDialog is (with the ability to stick
 in your own layouts and such), I think trying to do something beyond what it
 supports is probably best done as just a custom dialog.

 On Sat, Mar 21, 2009 at 11:56 PM, Lucius Fox lucius.fo...@gmail.com wrote:

 Hi,

 How is android's AlertDialog layout define? Is there a layout.xml file
 corresponding to the AlertDialog?
 I have looked at AlertDialog implementation, But i don't figure out
 how that is being layout (e.g. the location of the button, the
 location of text) Where are they defined? And how can I change that?

 Thank you.





 --
 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.  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: PendingIntent problem

2009-03-23 Thread info+farm

Dear all,

Am I the only one who is having this problem?
Actually, I am going to find a workaround for this problem, but I
would like to know what I am doing wrong.

Any help would be appreciated.

Regards,
info+farm


info+farm wrote:
 Hello all,

 I have more than one notification in notifications area and each of
 them has the same intent with different extras in it. Once I start() a
 pending intent from the notifications, first intent is handled
 correctly and the extras received successfully on the next(called)
 activity. Nonetheless, if I go with the other notifications with
 different extras, activity is resuming but rather than containing my
 new extras it still has the first(old) values.

 I played with the flags on intent but as far as I see notification is
 always calling the intent with FLAG_ACTIVITY_NEW_TASK flag set. If I
 do the same coding with Intent(rather than PendingIntent) everything
 goes well.

 Here is the code that I tried;
   PendingIntent contentIntent = 
 PendingIntent.getActivity(this, 0,
   new 
 Intent(Weather.GET_WEATHER_ACTION).
   putExtra(package.prefix.tmp, 
 1).setFlags
 (Intent.FLAG_ACTIVITY_NEW_TASK), 0);
   try {
   contentIntent.send();
   } catch (CanceledException e) {
   e.printStackTrace();
   }

   PendingIntent contentIntent = 
 PendingIntent.getActivity(this, 0,
   new 
 Intent(Weather.GET_WEATHER_ACTION).
   putExtra(package.prefix.tmp, 
 2).setFlags
 (Intent.FLAG_ACTIVITY_NEW_TASK), 0);
   try {
   contentIntent.send();
   } catch (CanceledException e) {
   e.printStackTrace();
   }

 1 is received in first call but in the second call 1 is received again
 rather than 2.
 I think I am missing something on the life cycle of the PendingIntent,
 any help/idea would be appreciated.

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

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 12:16 PM, Rajendrakumar Chinnaiyan 
rajendran.b...@gmail.com wrote:

 If they won't change the internal API's.. Our application also won't get
 any problem..


The very reason APIs are internal is because they can change.

-- 
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.  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: IWindowManager Not Available

2009-03-23 Thread Rajendrakumar Chinnaiyan
ok

Dianne

I need a help from you... can I send a mail to you mail ID...

On Tue, Mar 24, 2009 at 12:06 AM, Dianne Hackborn hack...@android.comwrote:

 On Mon, Mar 23, 2009 at 12:16 PM, Rajendrakumar Chinnaiyan 
 rajendran.b...@gmail.com wrote:

 If they won't change the internal API's.. Our application also won't get
 any problem..


 The very reason APIs are internal is because they can change.

  --
 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.  All such questions should be posted on public
 forums, where I and others can see and answer them.


 



-- 
Regards
Rajendrakumar Chinnaiyan
COE | Testing Services | Wipro Technologies
Mob : +919886293435

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

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 12:39 PM, Rajendrakumar Chinnaiyan 
rajendran.b...@gmail.com wrote:

 I need a help from you... can I send a mail to you mail ID...


I need to keep discussions on the list; I don't have time to provide private
support.

-- 
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.  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: Draw a bitmap rotated onto another bitmap

2009-03-23 Thread thesquib

Hi William,
Check out Canvas.Rotate, Canvas.Translate, Canvas.Restore, Canvas.Save

You can call Canvas.Rotate just before drawing the image and it will
be drawn on the rotated canvas.

On Mar 23, 10:25 am, William william.caine...@gmail.com wrote:
 i also have the same problem when I want to flip and image around, i
 have to create a new bitmap.  is there a way to not have to create a
 new bitmap every time:

 renderMatrix.preScale((xFlipPic?-1:1), (yFlipPic?-1:1));
                 newbitMap = Bitmap.createBitmap(image, 0, 0, image.getWidth
 (),image.getHeight(), renderMatrix, false);

 On Mar 22, 5:19 pm, William william.caine...@gmail.com wrote:

  sorry the code should be

  Matrix matrix = new Matrix();
   matrix.postRotate(90);

  Canvas g = new Canvas(image2);

  g.drawBitmap(
                                  Bitmap.createBitmap(image, 0, 0,
  image.getWidth
  (), image.getHeight(), matrix, true)
                                  , 0, 0, null);

  On Mar 22, 5:18 pm, William william.caine...@gmail.com wrote:

   My goal is the draw a bitmap onto another bitmap butrotated90
   degress.  whats the most efficient way to do that.  My current method
   is as follows which is horribly bad because it creates a new bitmap
   every time.

   //i am taking image and drawing itrotatedonto image2

   Matrix matrix = og.getMatrix();
    matrix.postRotate(90);

   Canvas g = new Canvas(image2);

   g.drawBitmap(
                                   Bitmap.createBitmap(image, 0, 0, 
   image.getWidth
   (), image.getHeight(), matrix, true)
                                   , 0, 0, null);


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



[android-developers] backup database

2009-03-23 Thread daniel.benedykt

Hi

Is there a standard way to backup the database of my app.
I know I can write data to a file from the DB and restore it at any
time with my code, but what happens if for some reason the user loose
all the data on the phone. Is there a way to make a backup to a
computer?

Thanks

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

2009-03-23 Thread Rajendrakumar Chinnaiyan
ok that's good...

On Tue, Mar 24, 2009 at 12:28 AM, Dianne Hackborn hack...@android.comwrote:

 On Mon, Mar 23, 2009 at 12:39 PM, Rajendrakumar Chinnaiyan 
 rajendran.b...@gmail.com wrote:

 I need a help from you... can I send a mail to you mail ID...


 I need to keep discussions on the list; I don't have time to provide
 private support.

  --
 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.  All such questions should be posted on public
 forums, where I and others can see and answer them.


 



-- 
Regards
Rajendrakumar Chinnaiyan
COE | Testing Services | Wipro Technologies
Mob : +919886293435

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



[android-developers] App localization

2009-03-23 Thread Yossi

Hi,

I'm planning to localize my app (e.g. translate to different
languages). Assuming it will support English and German, does it mean
that users in Germany will get only the German text or would they be
able to choose having it in English?

Thanks,
Yossi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 need to be save when application has to save state in onSaveInstanceState?

2009-03-23 Thread havexz

I am implemented a activity which contains the two text boxes. Now
during the state saving i save the data i am working on. But when the
orientation is changed the cursor position in the edit box comes back
to 0th postion. And now my question do i need to save the cursor
position also and also the edit box which has the focus so that I can
restore the cursor for the one who has the focus. This solution doesnt
look good and so please help and tell is there any better way of
restoring such trivial things?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Custom tab design

2009-03-23 Thread Al

Hi, I want to make my own tab design, the default ones in Android are
too large for what I need. I'm not sure how to go around doing it
though, I'm assuming I would need to extend one of the sdk classes?
But I'm not sure which one to extend.
Any pointers are appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >