[android-developers] Re: The screen size of galaxy nexus (ICS )

2012-02-15 Thread Seshu
Hi... u ll get the device width and height by using Display..

check this one..

Display display = getWindowManager().getDefaultDisplay();
int targetWidth  = display.getWidth();
int targetHeight = display.getHeight();


Thanks and Regards,
S.Seshu

On Feb 15, 12:55 pm, chen ji chenjihz...@gmail.com wrote:
 Hi All,

 If I use DisplayMetrics to get galaxy nexus (ICS )'s screen's width 
 Height, I found a very strange thing. It is 1184x720 if I set miniSDK
 = 8 and it is 1196*720 if I set miniSDK =7. And actually I think it
 should be 1960*720.
 Anyone can give some advices?

 Thanks,

 Ji

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


[android-developers] The screen size of galaxy nexus (ICS )

2012-02-15 Thread chen ji
Hi All,

If I use DisplayMetrics to get galaxy nexus (ICS )'s screen's width 
Height, I found a very strange thing. It is 1184x720 if I set miniSDK
= 8 and it is 1196*720 if I set miniSDK =7. And actually I think it
should be 1960*720.
Anyone can give some advices?

Thanks,

Ji

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

2012-02-15 Thread manoj
Hi,

I have seen many event logs related to this dvm_lock_sample. Could
some one please explain me in detail, what is the meaning of this?

Thanks,
Manoj.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: MPEG-TS, Android and (probably?)FFMPEG

2012-02-15 Thread Akos Cz

Take a look at the Stagefright multimedia framework which was
introduced in Android 2.2.
It has MPEG-TS support with some limitations. The Android MediaPlayer
API sits on top of stagefright.
What you gain is hardware accelerated video playback.  What you loose
is flexibility.

Ffmpeg has been ported to android .  Its a software decoder solution.
You can find references to it on the web
Most 3rd  party video player apps you find in the android market use
ffmpeg.

Another option to look at is GStreamer.  Last I checked people were
working on a Android port.



On Feb 14, 8:45 pm, petr.maza...@mautilus.com
petr.maza...@mautilus.com wrote:
 I am receiving the MPEG-TS (MPEG transport stream) packets with the
 multiplexed H.264 video and AAC audio streams. I need to be able to
 show the audio and video on the Android phone. My assumption is that I
 need:

     * MPEG-TS de-multiplexer
     * AAC decoder
     * H.264 decoder
     * Synchronize the audio and video playback

 Assuming that I am right then (in Android 2.x) MPEG-TS de-multiplexer
 is not part of the OS and must be ported, both AAC and H.264 decoder
 are part of the Android OS, but I am not sure if they have interface,
 which allows passing the data in buffers and if they allow mutual
 timing synchronization. In the worst case those components must be
 ported here as well.

 Can you give me some advices where to start? I was thinking about the
 FFMPEG porting. Are there any other ways?

 Regards, STeN

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

2012-02-15 Thread Anirudh Loya
Pls reply


On Mon, Feb 13, 2012 at 8:58 PM, Anirudh Loya loya.anir...@gmail.com wrote:
 Hi Guys,

 Need your help regarding Talk Back feature. I am not new to Android
 Development. I am in the beginning stage of Talk Back app. Basically I
 have no idea about making Talk Back app. I am trying to make an Talk
 Back app for one of my existing app. Link to my app.

 https://market.android.com/details?id=smart.technologies.pnrfeature=search_result#?t=W251bGwsMSwyLDEsInNtYXJ0LnRlY2hub2xvZ2llcy5wbnIiXQ..


 Pls suggest me with books on Talk Back feature and It would be great
 help if you could give direct weblinks of Ebook.

 Cheers,
 Anirudh Loya

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


Re: [android-developers] Augmented Reality

2012-02-15 Thread Anirudh Loya
Pls reply

On Mon, Feb 13, 2012 at 8:42 PM, Anirudh Loya loya.anir...@gmail.com wrote:
 Thanks Raghav. I saw your book in A-Z market also, but the pricing was
 a concern to me.
 I would be greatful if you could assist me with any blogs of yours
 where I can start from scratch on AR or any material as a reference if
 you can mail me up. Anyhow, I am looking in blogs of Chris as of now.

 Thanks,
 Anirudh Loya

 On Tue, Feb 14, 2012 at 2:10 AM, Raghav Sood
 raghavs...@androidactivist.org wrote:
 Currently, there are no books on Augmented Reality and Android, AFAIK. I am
 in the process of writing one, but that will not be published until May. You
 can see if it can help you: http://www.apress.com/9781430239451. If you use
 Google, you should be able to find Chris Haseman's tutorial on the subject
 on devx. That should serve as an introduction.

 I'd also recommend looking into Augmented Reality engines like AndAR.

 Thanks

 On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya loya.anir...@gmail.com
 wrote:


 Hi Guys,

 Need your help regarding Augmented reality. I am not new to Android
 Development. I am in the beginning stage of reality app. Basically I
 have no idea about making Augmented reality app.

 Pls suggest me with books on Augmented reality and It would be great
 help if you could give direct weblinks of Ebook.

 Cheers,
 Anirudh Loya

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




 --
 Raghav Sood
 http://www.androidactivist.org/ - Author
 http://www.appaholics.in/ - Founder

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

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


[android-developers] Re: The screen size of galaxy nexus (ICS )

2012-02-15 Thread chen ji

Of course, I use the below APIs.

My question is why the value is not 1960*720. Thanks.

On 2月15日, 下午4时03分, Seshu s.seshu...@gmail.com wrote:
 Hi... u ll get the device width and height by using Display..

 check ths one..

 Display display = getWindowManager().getDefaultDisplay();
 int targetWidth  = display.getWidth();
 int targetHeight = display.getHeight();

 Thanks and Regards,
 S.Seshu

 On Feb 15, 12:55 pm, chen ji chenjihz...@gmail.com wrote:



  Hi All,

  If I use DisplayMetrics to get galaxy nexus (ICS )'s screen's width 
  Height, I found a very strange thing. It is 1184x720 if I set miniSDK
  = 8 and it is 1196*720 if I set miniSDK =7. And actually I think it
  should be 1960*720.
  Anyone can give some advices?

  Thanks,

  Ji- 隐藏被引用文字 -

 - 显示引用的文字 -

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

2012-02-15 Thread Marcel Arts
maybe you should have set one more permission:
uses-permission android:name=android.permission.READ_SMS /



On Feb 15, 4:59 am, jitesh adnani jitesh@gmail.com wrote:
 application starting and also knowing that a new sms has come. but
 just then it shows that the application has stopped unexpectedly.

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


[android-developers] sync adapter join unknown application

2012-02-15 Thread Live Happy
i use the Android SampleSyncAdapter in my application and it work done
but when i made join for the contacts the name of application not
appear its show unknown so how i can change this unknown to my
application name as in face book and twitter thanx for reply
https://mail-attachment.googleusercontent.com/attachment?ui=2ik=86285b34b4view=attth=1357bad3dfcfe4f8attid=0.1disp=inlinerealattid=f_gymv4hrp0safe=1zwsaduie=AG9B_P-zoRbKYIy2k-YDMz8GxQfAsadet=1329294911664sads=QXODmluGLRNjM4qA6AdGjwQ9Kl4sadssc=1

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


[android-developers] Toast not working on honeycomb and ics

2012-02-15 Thread giles ian
Hi,

The below piece of code is working fine on 2.22.3 but not on 3.0 onwards.

Toast.makeText(SomeActivity.this,
getResources().getString(R.string.not_implemented),
Toast.LENGTH_SHORT).show();

Thanks,
Pawan Nimje

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

2012-02-15 Thread Ali Chousein
You don't do your homework well. I'm not Indian nor live in India, but
from different online platforms, I know that the Indian company
Infosys recently launched a market for mobile apps specifically for
the Indian market. Search the Internet, scrutinize the website of
Infosys and you'll find what you need (you'll find at least one, there
might be others as well).

PS: If Android market does not allow you sell applications from India,
noone in this discussion forum can change it.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994


On Feb 14, 4:04 pm, Dhaval Varia dhavalkva...@gmail.com wrote:
 This is not a answer..everyone knows that all the phone has inbuilt
 android market.
 So its obvious that if i will install in on android market then only i
 will get big audiance,,


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

2012-02-15 Thread giles ian
FYI

working on Galaxy S 2.2 but not on galaxy tab 10.1 3.2 and Nexus S 4.0.3

On Wed, Feb 15, 2012 at 2:13 PM, giles ian gilesian@gmail.com wrote:

 Hi,

 The below piece of code is working fine on 2.22.3 but not on 3.0 onwards.

 Toast.makeText(SomeActivity.this,
 getResources().getString(R.string.not_implemented),
 Toast.LENGTH_SHORT).show();

 Thanks,
 Pawan Nimje


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

2012-02-15 Thread Dmitry Tupikin
What kind of AR application do you want to write?
Basically AR apps are divided into two groups:
1. Apps with markers where user sees something when looks on markers
through device's camera.
2. Apps where you put some information upon camera view - POIs,
routes..

Thanks,
Dmitry

On 15 фев, 12:11, Anirudh Loya loya.anir...@gmail.com wrote:
 Pls reply







 On Mon, Feb 13, 2012 at 8:42 PM, Anirudh Loya loya.anir...@gmail.com wrote:
  Thanks Raghav. I saw your book in A-Z market also, but the pricing was
  a concern to me.
  I would be greatful if you could assist me with any blogs of yours
  where I can start from scratch on AR or any material as a reference if
  you can mail me up. Anyhow, I am looking in blogs of Chris as of now.

  Thanks,
  Anirudh Loya

  On Tue, Feb 14, 2012 at 2:10 AM, Raghav Sood
  raghavs...@androidactivist.org wrote:
  Currently, there are no books on Augmented Reality and Android, AFAIK. I am
  in the process of writing one, but that will not be published until May. 
  You
  can see if it can help you:http://www.apress.com/9781430239451. If you use
  Google, you should be able to find Chris Haseman's tutorial on the subject
  on devx. That should serve as an introduction.

  I'd also recommend looking into Augmented Reality engines like AndAR.

  Thanks

  On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya loya.anir...@gmail.com
  wrote:

  Hi Guys,

  Need your help regarding Augmented reality. I am not new to Android
  Development. I am in the beginning stage of reality app. Basically I
  have no idea about making Augmented reality app.

  Pls suggest me with books on Augmented reality and It would be great
  help if you could give direct weblinks of Ebook.

  Cheers,
  Anirudh Loya

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

  --
  Raghav Sood
 http://www.androidactivist.org/- Author
 http://www.appaholics.in/- Founder

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

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


[android-developers] Re: Final year project app

2012-02-15 Thread Ali Chousein
Develop an app which you need on daily basis. If you need an app,
probably other people also need it. If it already exists in the
market, think what other features you can add to it or think how to
customize it better for your own needs. As others also said, noone is
going to give you an idea, and hey why should anybody do it?

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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


[android-developers] Re: Re : onclick image redirecting

2012-02-15 Thread vivek elangovan
i m using  imageview

On Feb 15, 12:09 pm, Jagruti Sangani jagruti.sang...@inextrix.com
wrote:
 i am asking about images how u use like imageview,imagebutton or image
 galary?because based on u use the images you can apply the intent.grid
 layout is a one type display layout not control.plz specify clearly or u
 can code paste here.

 On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan elangovan.vi...@gmail.com

  wrote:
  In a grid layout displayed images and using posistion can i call
  intent?

  On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com
  wrote:
   how you had use the images like different image control or in Image
  galary?

   On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan 
  elangovan.vi...@gmail.com

wrote:
how can we get the id of the image and redirect to corresponding url
for eg :
Yahoo and google image will be in my list of images,if i click

 yahoo image  onclick -redirect to yahoo page

google image ---onclick ---redirect to google page

On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com
wrote:
 On image click event use the intent and pass the url in that like
 Uri.parse(link) so it will redirect on that link.

 On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan 
elangovan.vi...@gmail.com

  wrote:
  Hi members,
                        I m displaying list of images and my scenario
  is i want to redirect to some page corresponding to the image i
  clicked.If i m having list of urls corresponding to the images i
  had
  where i have to mention the url? and onclicking the image i have to
  redirect to corresponding url.

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

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

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

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


Re: [android-developers] Re: Re : onclick image redirecting

2012-02-15 Thread hooman os
You can use setTag() and getTag() to retrieve your url from an imageview

On Wed, Feb 15, 2012 at 8:56 AM, vivek elangovan
elangovan.vi...@gmail.comwrote:

 i m using  imageview

 On Feb 15, 12:09 pm, Jagruti Sangani jagruti.sang...@inextrix.com
 wrote:
  i am asking about images how u use like imageview,imagebutton or image
  galary?because based on u use the images you can apply the intent.grid
  layout is a one type display layout not control.plz specify clearly or u
  can code paste here.
 
  On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan 
 elangovan.vi...@gmail.com
 
   wrote:
   In a grid layout displayed images and using posistion can i call
   intent?
 
   On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com
   wrote:
how you had use the images like different image control or in Image
   galary?
 
On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan 
   elangovan.vi...@gmail.com
 
 wrote:
 how can we get the id of the image and redirect to corresponding
 url
 for eg :
 Yahoo and google image will be in my list of images,if i click
 
  yahoo image  onclick -redirect to yahoo page
 
 google image ---onclick ---redirect to google page
 
 On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com
 
 wrote:
  On image click event use the intent and pass the url in that like
  Uri.parse(link) so it will redirect on that link.
 
  On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan 
 elangovan.vi...@gmail.com
 
   wrote:
   Hi members,
 I m displaying list of images and my
 scenario
   is i want to redirect to some page corresponding to the image i
   clicked.If i m having list of urls corresponding to the images
 i
   had
   where i have to mention the url? and onclicking the image i
 have to
   redirect to corresponding url.
 
   --
   You received this message because you are subscribed to the
 Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Olof Hedman
Thanks for replying!
I seem to have some problem replying in this thread.
My messages never show up?

Lets hope this one works...

I think this example is the best, it shows the exact same pattern in
the calls to getView, its a completely static list with no refreshing
at all going on:

http://pastebin.com/M8QcQu21

It's using a ListAdapter as base class, because at that point I had
overlooked BaseListAdapter, but that shouldn't really matter...

Cheers,
Olof

On Feb 15, 12:43 am, Doug beafd...@gmail.com wrote:
 On Feb 13, 1:48 am, Olof Hedman o...@illusionlabs.se wrote:

  Is there anyone who can shed some light on this, is it just something
  I have to live with, or have I made some stupid mistake?
  I have a hard time imagining anything I could have done wrong though,
  since the code is really minimal.

 Why aren't you showing your code, since it is so minimal?  Your log
 isn't helping anyone understand what you actually did.  BTW, minimal
 doesn't equate to correct.

 If anything at all is invalidating views in your list, it may be
 getting rebuilt.  If your adapter is getting refreshed somehow, it may
 be getting rebuilt.

 You could also try starting with a sample from ApiDemos and building
 from there.

 Doug

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

2012-02-15 Thread Olof Hedman
Great, it works :)

In another lost message, I said that there is no invalidating going on
at these points.
The most curious of them all is that 3x refreshing of all views on
power-down.
Absolutely no implementation at all in onPause in the activity.

ViewHolder pattern will not help me, since that only means caching of
the findViewById calls.
But I thank you for that tip anyhow, since it should lessen the
impact.

But to me it still seems android lists are slightly broken, at least
in 2.3...
Havn't had the opportunity to try other versions yet.

Are there really no-one else who have noticed this behaviour?

Cheers,
Olof

On Feb 15, 10:03 am, Olof Hedman o...@illusionlabs.se wrote:
 Thanks for replying!
 I seem to have some problem replying in this thread.
 My messages never show up?

 Lets hope this one works...

 I think this example is the best, it shows the exact same pattern in
 the calls to getView, its a completely static list with no refreshing
 at all going on:

 http://pastebin.com/M8QcQu21

 It's using a ListAdapter as base class, because at that point I had
 overlooked BaseListAdapter, but that shouldn't really matter...

 Cheers,
 Olof

 On Feb 15, 12:43 am, Doug beafd...@gmail.com wrote:







  On Feb 13, 1:48 am, Olof Hedman o...@illusionlabs.se wrote:

   Is there anyone who can shed some light on this, is it just something
   I have to live with, or have I made some stupid mistake?
   I have a hard time imagining anything I could have done wrong though,
   since the code is really minimal.

  Why aren't you showing your code, since it is so minimal?  Your log
  isn't helping anyone understand what you actually did.  BTW, minimal
  doesn't equate to correct.

  If anything at all is invalidating views in your list, it may be
  getting rebuilt.  If your adapter is getting refreshed somehow, it may
  be getting rebuilt.

  You could also try starting with a sample from ApiDemos and building
  from there.

  Doug

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

2012-02-15 Thread Olof Hedman
I've got 7 different adapters in my application, and they all look
like they work perfectly, but they all show this weird pattern in the
calls to getView.

Look closer on the logs, I think they say a lot actually.
Notice when views are created, and how they are bound, and try explain
the logic behind that...

I have a lot of experience in mobile UI frameworks, I've even worked
for the top manufacturers for about 5 years with optimizing and
animating their UI frameworks, before they got obsolete by Android :)
I know list-frameworks are a lot trickier then you might think to get
right, so I'm not super surprised if someone messed up somewhere in
the framework...

Cheers,
Olof


On Feb 15, 10:17 am, Olof Hedman o...@illusionlabs.se wrote:
 Great, it works :)

 In another lost message, I said that there is no invalidating going on
 at these points.
 The most curious of them all is that 3x refreshing of all views on
 power-down.
 Absolutely no implementation at all in onPause in the activity.

 ViewHolder pattern will not help me, since that only means caching of
 the findViewById calls.
 But I thank you for that tip anyhow, since it should lessen the
 impact.

 But to me it still seems android lists are slightly broken, at least
 in 2.3...
 Havn't had the opportunity to try other versions yet.

 Are there really no-one else who have noticed this behaviour?

 Cheers,
 Olof

 On Feb 15, 10:03 am, Olof Hedman o...@illusionlabs.se wrote:







  Thanks for replying!
  I seem to have some problem replying in this thread.
  My messages never show up?

  Lets hope this one works...

  I think this example is the best, it shows the exact same pattern in
  the calls to getView, its a completely static list with no refreshing
  at all going on:

 http://pastebin.com/M8QcQu21

  It's using a ListAdapter as base class, because at that point I had
  overlooked BaseListAdapter, but that shouldn't really matter...

  Cheers,
  Olof

  On Feb 15, 12:43 am, Doug beafd...@gmail.com wrote:

   On Feb 13, 1:48 am, Olof Hedman o...@illusionlabs.se wrote:

Is there anyone who can shed some light on this, is it just something
I have to live with, or have I made some stupid mistake?
I have a hard time imagining anything I could have done wrong though,
since the code is really minimal.

   Why aren't you showing your code, since it is so minimal?  Your log
   isn't helping anyone understand what you actually did.  BTW, minimal
   doesn't equate to correct.

   If anything at all is invalidating views in your list, it may be
   getting rebuilt.  If your adapter is getting refreshed somehow, it may
   be getting rebuilt.

   You could also try starting with a sample from ApiDemos and building
   from there.

   Doug

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


[android-developers] Getting access to the cluster level data of an micro SD card.

2012-02-15 Thread Put_tiMe
In Android, is it possible to get access to the cluster level data of a 
micro SD card?
 
Like in Win32, you would do a CreateFile(\\.\\d:, );
or CreateFile(physicaldrive0\ file://\\physicaldrive1\, );
 
That way I should be able to access the boot sector.
 
Does Android support SD cards with FAT file system only?
Or are there any more that are supported?
 
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] APKs support: Warning, Error

2012-02-15 Thread nvlakshmi vakiti
Hi,

Warning: Active APKs support fewer devices than previously active APKs.
Some users will not receive updates.

   Error: APK version 2 supports all the same devices as other APKs with
higher versions. It would not be served. Please deactivate an APK.

What does this mean??

Thanks  Regards
Lakshmi.V

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

[android-developers] Webview moves up when keyboard hides

2012-02-15 Thread androidgoyo
Hi all,

The issue happens in an application whith a linear layout that divides
the screen in two parts, the upper part is a simple View and the lower
part is a WebView that loads google.com. The WebView takes the 60% of
the space and the View the other 40%. In that scenario I touch the
google search bar showing the soft keyboard, inmediately I touch the
WebView outside the search bar just at the right of the search button,
that hides the soft keyboard but just before this the WebView moves up
for an instant and comes back to its initial position as the keyboard
dissapears, no idea of why this happens and how to avoid it.

Please see the sample application, to reproduce the issue you can use
a WVGA (800×480) simulator, I noticed the issue in a Samsung Galaxy
Tab 10.1.
http://www.fileserve.com/file/txC3RV6/WebViewDemo.rar

Any suggestion?
Thanks for your time.
Goyo.

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


[android-developers] sync adapter name application is unknown

2012-02-15 Thread Live Happy
i use the Android SampleSyncAdapter in my application and it work done but
the name of application in the Groups contact is appear Unknown so how i
can change this unknown to my application name as in face book and twitter
thanx for reply

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

[android-developers] Re: How to Open app from other App

2012-02-15 Thread moktarul anam

  final ComponentName cn = new ComponentName(packagename,
class);
intent.setComponent(cn);



here  class name nothing but one activity and in that application's
manifest file this activity class has to be main(intent filter main)
Enjoy :)

On Feb 15, 11:08 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 well, s/question/answer, ...,

 kris

 On Wed, Feb 15, 2012 at 1:08 AM, Kristopher Micinski







 krismicin...@gmail.com wrote:
  No, his question *is* the answer, you're not reading it correctly.

  You're trying to open an activity.  It's just not in your app, but you
  still use startActivity...

  kris

  On Wed, Feb 15, 2012 at 12:52 AM, Passion Android
  passion4andr...@gmail.com wrote:
  anyways thanks TreKing Its Not the answar.My question Open an Application
  From Current Application.
  Thaks For Giving effort to my question.

  On Thu, Feb 9, 2012 at 12:18 AM, Passion Android 
  passion4andr...@gmail.com
  wrote:

  How to open a app from another  App.plz guide me i have used
  final Intent intent = new Intent(Intent.ACTION_MAIN, null);

   intent.addCategory(Intent.CATEGORY_LAUNCHER);
                                 final ComponentName cn = new
  ComponentName(packagename,
  class);
                                 intent.setComponent(cn);

   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                                 startActivity( intent);

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

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


Re: [android-developers] Re: Augmented Reality

2012-02-15 Thread Anirudh Loya
I m planning to create something of this sort.

http://player.vimeo.com/video/31822416?autoplay=1

Pls check video.

Thanks

On Wed, Feb 15, 2012 at 12:51 AM, Dmitry Tupikin
dmitry.tupi...@gmail.com wrote:
 What kind of AR application do you want to write?
 Basically AR apps are divided into two groups:
 1. Apps with markers where user sees something when looks on markers
 through device's camera.
 2. Apps where you put some information upon camera view - POIs,
 routes..

 Thanks,
 Dmitry

 On 15 фев, 12:11, Anirudh Loya loya.anir...@gmail.com wrote:
 Pls reply







 On Mon, Feb 13, 2012 at 8:42 PM, Anirudh Loya loya.anir...@gmail.com wrote:
  Thanks Raghav. I saw your book in A-Z market also, but the pricing was
  a concern to me.
  I would be greatful if you could assist me with any blogs of yours
  where I can start from scratch on AR or any material as a reference if
  you can mail me up. Anyhow, I am looking in blogs of Chris as of now.

  Thanks,
  Anirudh Loya

  On Tue, Feb 14, 2012 at 2:10 AM, Raghav Sood
  raghavs...@androidactivist.org wrote:
  Currently, there are no books on Augmented Reality and Android, AFAIK. I 
  am
  in the process of writing one, but that will not be published until May. 
  You
  can see if it can help you:http://www.apress.com/9781430239451. If you use
  Google, you should be able to find Chris Haseman's tutorial on the subject
  on devx. That should serve as an introduction.

  I'd also recommend looking into Augmented Reality engines like AndAR.

  Thanks

  On Mon, Feb 13, 2012 at 6:48 PM, Anirudh Loya loya.anir...@gmail.com
  wrote:

  Hi Guys,

  Need your help regarding Augmented reality. I am not new to Android
  Development. I am in the beginning stage of reality app. Basically I
  have no idea about making Augmented reality app.

  Pls suggest me with books on Augmented reality and It would be great
  help if you could give direct weblinks of Ebook.

  Cheers,
  Anirudh Loya

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

  --
  Raghav Sood
 http://www.androidactivist.org/- Author
 http://www.appaholics.in/- Founder

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

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

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


[android-developers] Change/replace an Image in an ImageView from the start of new Activity by Intent

2012-02-15 Thread jabjab
I have an Activity with several Buttons. All Buttons starts an
AlertDialog with the Ok and No Button. Pressing
No returns to the main Activity, the Ok Button have some info (in the
AlertDialog) and if the user want more info, he/she
press the Ok Button and this Button starts an new Activity by Intent
and in this new Activity there is a ImageView
where I want to put an new Image(from drawable). Starting the new
Activity is no problem, but where to put the Image change I dont know.
I have tryed several option but none works. A Toast works but the time
it is displayed is to short.
The Image change/replacement, within or outside the Intent?
Thank you!
Code:
Intent i = new Intent(CAUTIONLT.this, COMCAUTION.class);
startActivity(i);
finish();} //this works ok
ImageView view = (ImageView) findViewById(R.id.IV);
view.setImageResource(R.drawable.lacbus); //where to put this? if
this is to be used

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


[android-developers] Suggestion to improve reference documentation on developer.android.com

2012-02-15 Thread Alexander Biemann
*I'd like to suggest the following*
at the bottom of each reference page, permit users to submit documentation 
improvements.

*For example*

Did you find this document helpful? [yes/no]
if no - show textbox to let the user provide documentation improvements.


This will cause a vast improvement in the quality of the documentation.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 contacts that user either deleted or updated from device contact list in android

2012-02-15 Thread vijay kher
Hi,

I wants  the contact that is either deleted or updated  from device
contact list  by user.


I have try with Content Observer  and notice that onChange() method is
called  with one boolean parameter when contact is either added or
deleted from contacts list.But not able to get contact that is either
deleted or updated.

So is there any listener in android for  getting contact  that is
either deleted or updated by user in device contacts list or any
action fired from system .

please help me

Thanks in advance

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


[android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread alh
Hi,

Thank you for answering.
I wanted to keep the post brief until I found someone interested.

I've got code for another adapter implementation on stackoverflow,
which show the exact same pattern in the calls to getView.
Though this is a CursorTreeAdapter, so it calls newView and
bindView for me in its implementation of getView
http://stackoverflow.com/questions/9250781/cursortreeadapter-binding-views-excessivly-very-weird-behaviour

Any adapter I implement have the same pattern in how getView is
called.
They all look like they work perfectly, until you look closer on how
the methods are called.

Specially the 3x rebinding of all views when I enter powerdown is very
curious.
(There is nothing done in onPause that should affect the list)

Here is a third adapter that also show the exact same pattern, and is
the most minmal I have:
http://pastebin.com/hutfJPcN

It implements ListAdapter, because at that point I had overlooked
BaseListAdapter, but it shouldn't matter.

Cheer,
Olof

On Feb 15, 12:43 am, Doug beafd...@gmail.com wrote:
 On Feb 13, 1:48 am, Olof Hedman o...@illusionlabs.se wrote:

  Is there anyone who can shed some light on this, is it just something
  I have to live with, or have I made some stupid mistake?
  I have a hard time imagining anything I could have done wrong though,
  since the code is really minimal.

 Why aren't you showing your code, since it is so minimal?  Your log
 isn't helping anyone understand what you actually did.  BTW, minimal
 doesn't equate to correct.

 If anything at all is invalidating views in your list, it may be
 getting rebuilt.  If your adapter is getting refreshed somehow, it may
 be getting rebuilt.

 You could also try starting with a sample from ApiDemos and building
 from there.

 Doug

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


[android-developers] Sending message with Bluetooth HDP Demo

2012-02-15 Thread wambin
I'm trying connecting my Android phone to my health device with
BluetoothHDP - Bluetooth HDP Demo(http://developer.android.com/intl/ja/
resources/samples/BluetoothHDP/index.html).
I can get an association-request-message from the device.
(Message example: E2 00 00 32 80 00 00 00 ...)
Then, I want to send associaton-response-message to the device.
How can I send a message to a device with Bluetooth HDP Demo?

I executed a program like following, but it doesn't looks device
sending messages.

/* ReadThread in BluetoothHDPService.java */
private class ReadThread extends Thread {
private ParcelFileDescriptor mFd;

public void run() {
FileInputStream fis = new 
FileInputStream(mFd.getFileDescriptor());
FileOutputStream fos = new
FileOutputStream(mFd.getFileDescriptor()); // I add this for sending
messages.
final byte data[] = new byte[8192];
while(fis.read(data)  -1) {
MyParser parser = new MyParser(); // Example parsing 
data.
parser.parse(data);
if (parser.need_to_send_message()) {
byte message[] = 
MyParser.CreateByteMessage();
fos.write(message); // I mean sending 
the message to a health
device.
}
}
}
}

Should I make a new Thread for writing?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: App Testing Service - can't find the URL

2012-02-15 Thread David Thaler
There is http://duarlander.ning.com/.

On Feb 14, 7:09 am, Mark Phillips m...@phillipsmarketing.biz wrote:
 I found a testing service while surfing late one night, hence, no
 bookmark...:( . It was volunteer run, or very inexpensive, and the tester
 loaded your app on a phone and created a short video of
 his/her experiences using the app. In the example video, there was lots of
 commentary, things the tester liked, didn't like, where he/she got hung up,
 etc. I can't seem to find the web site again. Does anyone know the URL?

 Thanks,

 Mark

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


[android-developers] Re: How to get outgoing call status

2012-02-15 Thread vijay kher
 Try this 

 TelephonyManager telephonyManager 
=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

  telephonyManager.listen(new MyPhonestateListener(), 
PhoneStateListener.LISTEN_CALL_STATE);

private class MyPhonestateListener extends PhoneStateListener
{

@Override
public void onCallStateChanged(int state, String incomingNumber) 
{
super.onCallStateChanged(state, incomingNumber);

switch (state) 
{
case TelephonyManager.CALL_STATE_IDLE:

break;

case TelephonyManager.CALL_STATE_OFFHOOK:

break;

case TelephonyManager.CALL_STATE_RINGING:

break;
default:
break;
}


}

may you get some help

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

[android-developers] Video decoding on Galaxy Nexus running Android 4.02

2012-02-15 Thread Bateman
Hi,
I have written a simple app that uses the videoview class to display
video. It plays MP4 files without any problems.
It uses the hardware accelerator (IVA-HD) on omap4 in galaxy nexus to
decode the video.
However, I want to use software decoding instead of the hardware
accelerator. Is having your own decoder (ffmpeg etc) the only way to
do software decoding?

Under /system/lib I see the following files:
libstagefrighthw.so
libstagefright_soft_mpeg4dec.so
libstagefright_soft_h264dec.so

My guess is that libstagefrighthw.so is for hardware decoding while
the other two are used for software decoding.
I naively thought that removing libstagefrighthw file would make the
software decoder be used. Unfortunately, after removing that file, the
app just throws an error saying the video cannot be played. Is there
anyway for using the in-built software decoder?

I have unlocked the phone and can load my custom kernel (in case there
is anything to be done on the kernel side, I am up for it!).

Thanks for your help.

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


[android-developers] Why canvas.translate() do not work well in ICS???

2012-02-15 Thread Kandyguan
Hi :
 My app is used canvas.translate() to move a panel up and down, it
work well in other version, but not in ICS?
 It can move up and down ,but when it move down, i touch the other
area ,but the other area did not get any focus.
 I need you help, and waiting now. Thank you!

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


[android-developers] please help to find out deleted or updated contact in android device contact list

2012-02-15 Thread vijay kher
Hi ,

I wants to get contact that is either deleted or updated by user in device 
contact list.

For that i have try with content observer and notice that its onChange() 
method is called  with one boolean parameter when any contact is added or 
deleted.But does not give any information regarding that contact.

So is there any listener in android for getting contact information that is 
either deleted or updated by user in device contact list or any action 
fired from system.

Thanks in advance,

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

Re: [android-developers] Re: Toast not working on honeycomb and ics

2012-02-15 Thread android devloper
for me the same is working on 4.0.3

On Wed, Feb 15, 2012 at 2:17 PM, giles ian gilesian@gmail.com wrote:

 FYI

 working on Galaxy S 2.2 but not on galaxy tab 10.1 3.2 and Nexus S 4.0.3


 On Wed, Feb 15, 2012 at 2:13 PM, giles ian gilesian@gmail.com wrote:

 Hi,

 The below piece of code is working fine on 2.22.3 but not on 3.0 onwards.

 Toast.makeText(SomeActivity.this,
 getResources().getString(R.string.not_implemented),
 Toast.LENGTH_SHORT).show();

 Thanks,
 Pawan Nimje


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


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

Re: [android-developers] Re: How to Open app from other App

2012-02-15 Thread abhijit chakra
Yes ur right bro.

On Wed, Feb 15, 2012 at 11:38 AM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 No, his question *is* the answer, you're not reading it correctly.

 You're trying to open an activity.  It's just not in your app, but you
 still use startActivity...

 kris

 On Wed, Feb 15, 2012 at 12:52 AM, Passion Android
 passion4andr...@gmail.com wrote:
  anyways thanks TreKing Its Not the answar.My question Open an Application
  From Current Application.
  Thaks For Giving effort to my question.
 
 
  On Thu, Feb 9, 2012 at 12:18 AM, Passion Android 
 passion4andr...@gmail.com
  wrote:
 
  How to open a app from another  App.plz guide me i have used
  final Intent intent = new Intent(Intent.ACTION_MAIN, null);
 
   intent.addCategory(Intent.CATEGORY_LAUNCHER);
 final ComponentName cn = new
  ComponentName(packagename,
  class);
 intent.setComponent(cn);
 
   intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity( intent);
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] image Parsing

2012-02-15 Thread hazem omies
how i can parsing image from xml file into android listview

item
namehazem/name
image test.png  image
/item

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: What is wrong with Android Adapters?

2012-02-15 Thread alh
Views are recycled, though I do not cache findViewById-calls at the
moment (as with the ViewHolder pattern)
I don't think that should affect how many calls I get to getView...
thanks for the tip though, it should lessen the impact a bit.
But android still seems a bit broken in this detail...

There are no extra calls to notifyDatasetChanged.

Cheers,
Olof

On Feb 14, 10:10 am, jamesc jame...@gmail.com wrote:
 Hello

 Are you using the ViewHolder pattern to recycle Views?

 On Feb 13, 9:48 am, Olof Hedman o...@illusionlabs.se wrote:







  I have implemented a couple of differentadaptersin my application.

  No matter which base class I use, I get very weird behavior in how the
  list calls it to create and bind its views.

  I've tested this on 2.3.3, 2.3.6 and Kindle.

  This log is from an implementation of BaseAdapter, I put a debug-print
  in getView.
  If convertView is null I inflate the view and print created view.
  For every call to getView I print binding View when I set its
  values.
  The code on the end is an id string for the data I bind to the views.

  Everything display just as it should, but I get lots of unneccessary
  binds!

  This is what I get when I set the adapter to the listview:

  D/SLPA    ( 4097): created View -android.widget.LinearLayout@405bf190
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 5 - to: ASQK89Q8.51
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 6 - to: ASQK89Q8.10
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 7 - to: AWQHVP6A.11
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 5 - to: ASQK89Q8.51
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 6 - to: ASQK89Q8.10
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 7 - to: AWQHVP6A.11
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): created View -android.widget.LinearLayout@405ab368
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405ab368
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): created View -android.widget.LinearLayout@405a85f8
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405a85f8
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): created View -android.widget.LinearLayout@40548088
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40548088
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): created View -android.widget.LinearLayout@405743e0
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405743e0
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): created View -android.widget.LinearLayout@405877c0
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@405877c0
  position: 5 - to: ASQK89Q8.51

  Its not weird that users complain of sluggish UI if these things are
  going on!

  When the device goes into sleep, I get this:

  D/SLPA    ( 4097): created View -android.widget.LinearLayout@40555a00
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 5 - to: ASQK89Q8.51
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 6 - to: ASQK89Q8.10
  D/SLPA    ( 4097): binding View -android.widget.LinearLayout@40555a00
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 

[android-developers] Need support to develop mail box in android platform.

2012-02-15 Thread janarthanan rengasamy
Hi Guys,
  Need your support to develop mail box app in android
platform. I kindly request the android developers to through some
inputs on this front.

  Off course i gone through some of the video and documents on
android tutorials.


Thanks in Advance.

Janarthanan

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


[android-developers] LocationManager requestLocationUpdates minTime parameter not working

2012-02-15 Thread santhosh b
Hi,

I am using below code to send location updates for every 2 min
interval  or  100 meters displacement.  This is working fine in Droid2
Motorola device but when it comes to Google Nexus S
not working as expected

Here is the code snippet:

LocationManager   locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);

 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
12,  100,
locationListener);

Am i missing something please help..
Thanks in Advance,
Santhosh

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


[android-developers] Superscripts + and - not displaying correctly

2012-02-15 Thread Matthew Moses
Greetings all -

I have been experiencing issues getting superscript and subscripts to
display properly in my app. The values come to my app as UTF-8 markups
of the characters. I have since started using Html.fromHtml(str) and
most of the markups are handled correctly. However, the superscript
for + and - are not displaying properly. Any thoughts on this?

Below are the values that I'm receiving and which are not being
displayed properly. They're just replaced with a little box.

minus sign : \u207b
plus sign : \u207a

The Android Devices and versions with this known issue are HTC Sense
is 2.3.4 and the HTC Sense version is 3.0. I have the same issue on my
emulator.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 generate multiple apk's for single project

2012-02-15 Thread kumar varma
Hi ,


Can any one suggest me in android how to generate multiple apk's for
single project.

Thanks
kkvarma

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

2012-02-15 Thread Pawel
Hi,
I have similar question.
I want to make an alarm clock app. This app will have few activities,
such as list of alarms, settings of alarms, options, etc. Should I
make a service for it which will start android AlarmManager or I can
do it in one of the activities?

Pawel

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


[android-developers] hai... Kindly help me to connect android with php server

2012-02-15 Thread Satheesh Kumar T
hai,
I used HTTP to connect android with php server... PHP code executed well.
but android app does not run properly and didnt retrieve the data from
server. Kindly help me to connect android with php...




thanking you...

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

[android-developers] how to prevent user to force stop service in android ?

2012-02-15 Thread sumit prajapati
hi
i have a requiremet that i want run service continuously in backgroud
and it cannot be top by user or it cannot be force stop by going in
manage application. is there any way to get notification when user is
trying force stop service? or any way to hide our application in
android.

i have done START_STICKY but it can't work.
it can be possible to write our code on android system services(or
system code) that can't be killed or kernel level coding ?

my main criteria is that my service cannot be killed by user

please help me in this
thanks in advance

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


[android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread gropapa
did you use addHeaderView() in your code?

On 14 fév, 10:22, jamesc jame...@gmail.com wrote:
 Also, are you calling notifyDatasetChanged() frequently?

 On Feb 14, 9:10 am, jamesc jame...@gmail.com wrote:







  Hello

  Are you using the ViewHolder pattern to recycle Views?

  On Feb 13, 9:48 am, Olof Hedman o...@illusionlabs.se wrote:

   I have implemented a couple of different adapters in my application.

   No matter which base class I use, I get very weird behavior in how the
   list calls it to create and bind its views.

   I've tested this on 2.3.3, 2.3.6 and Kindle.

   This log is from an implementation of BaseAdapter, I put a debug-print
   in getView.
   If convertView is null I inflate the view and print created view.
   For every call to getView I print binding View when I set its
   values.
   The code on the end is an id string for the data I bind to the views.

   Everything display just as it should, but I get lots of unneccessary
   binds!

   This is what I get when I set the adapter to the listview:

   D/SLPA    ( 4097): created View - android.widget.LinearLayout@405bf190
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 0 - to: A5D7W5U9.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 1 - to: ASQK89Q8.58
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 2 - to: ASQK89Q8.37
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 3 - to: AEURWHRA.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 4 - to: ASQK89Q8.44
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 5 - to: ASQK89Q8.51
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 6 - to: ASQK89Q8.10
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 7 - to: AWQHVP6A.11
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 0 - to: A5D7W5U9.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 1 - to: ASQK89Q8.58
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 2 - to: ASQK89Q8.37
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 3 - to: AEURWHRA.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 4 - to: ASQK89Q8.44
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 5 - to: ASQK89Q8.51
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 6 - to: ASQK89Q8.10
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 7 - to: AWQHVP6A.11
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
   position: 0 - to: A5D7W5U9.02
   D/SLPA    ( 4097): created View - android.widget.LinearLayout@405ab368
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405ab368
   position: 1 - to: ASQK89Q8.58
   D/SLPA    ( 4097): created View - android.widget.LinearLayout@405a85f8
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405a85f8
   position: 2 - to: ASQK89Q8.37
   D/SLPA    ( 4097): created View - android.widget.LinearLayout@40548088
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40548088
   position: 3 - to: AEURWHRA.02
   D/SLPA    ( 4097): created View - android.widget.LinearLayout@405743e0
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405743e0
   position: 4 - to: ASQK89Q8.44
   D/SLPA    ( 4097): created View - android.widget.LinearLayout@405877c0
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405877c0
   position: 5 - to: ASQK89Q8.51

   Its not weird that users complain of sluggish UI if these things are
   going on!

   When the device goes into sleep, I get this:

   D/SLPA    ( 4097): created View - android.widget.LinearLayout@40555a00
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 0 - to: A5D7W5U9.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 1 - to: ASQK89Q8.58
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 2 - to: ASQK89Q8.37
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 3 - to: AEURWHRA.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 4 - to: ASQK89Q8.44
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 5 - to: ASQK89Q8.51
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 6 - to: ASQK89Q8.10
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 0 - to: A5D7W5U9.02
   D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
   position: 1 - to: 

[android-developers] APKTool:Some Error When Build APKTool Output Files

2012-02-15 Thread Yoo Cai
Hello everyone,I'm tyring to use APKTool to decode a project then
rebuild it(nothing changed), but there were some error ,the first is:
Exception in thread man unacceptable character #FFFD special
charachers are not allowed in reader in position ...

Can anyone tell me why ?
Is that some kind of security policy to protect the author's rights?

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


[android-developers] GSM communications

2012-02-15 Thread toni
Hi All,

I'm migrating an old pocket pc app to android and I need to use the
GSM protocol (not only the SMS service). On windows mobile, we used AT
commands over the Serial Port to communicate with our remote hardware.
How can I implement this communication with Android SDK or NDK?

Thanks in advance

Regards

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


[android-developers] Re: main,out.xml

2012-02-15 Thread Amaan
When Launching the application, you should not be focusing the xml
files, rather you should be either focusing on the Application root or
the java files.

On Feb 14, 1:35 pm, poncho poncho...@gmail.com wrote:
 On 02/13/2012 11:18 PM, skink wrote:



  JackN wrote:
  I see this when I have the XML open and active and choose to run or
  debug the app.

  I faced that couple of times too, do you know how to avoid it?

  pskink

 Hi,

 Eclipse: Windows-Preferences
 Find the 'Run/Debug' section and then 'Launching'.

 You probably want to use the first option.

 Does this help?
 /Poncho

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


Re: [android-developers] How to generate multiple apk's for single project

2012-02-15 Thread Anirudh Loya
You want licensed or non licensed Apk ?

On Tue, Feb 14, 2012 at 8:17 PM, kumar varma kkvarmaandr...@gmail.com wrote:
 Hi ,


 Can any one suggest me in android how to generate multiple apk's for
 single project.

 Thanks
 kkvarma

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

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


[android-developers] Oncall Establish status not get

2012-02-15 Thread Jagruti Sangani
my code is given below:
 public void initiateCall() {
 Toast.makeText(WalkieTalkieActivity.this,..in the initiate
call--+flag,300).show();
updateStatus(sipAddress);

try {
SipAudioCall.Listener listener = new
SipAudioCall.Listener() {
// Much of the client's interaction with the SIP Stack
will
// happen via listeners.  Even making an outgoing
call, don't
// forget to set up a listener to set things up once
the call is established.
@Override
public void onCallEstablished(SipAudioCall call) {
call.startAudio();
call.setSpeakerMode(true);
call.toggleMute();
call.sendDtmf(2);
updateStatus(call);

}

@Override
public void onCallEnded(SipAudioCall call) {
  updateStatus(End of calling...);
}

};



   call = manager.makeAudioCall(me.getUriString(), sipAddress,
listener, 30);
 //   Toast.makeText(WalkieTalkieActivity.this,in call+call,
300).show();
if(call.isInCall())
{
Toast.makeText(WalkieTalkieActivity.this,it is in
call,300).show();
}



 call.continueCall(120);
}
catch (Exception e) {
Log.i(WalkieTalkieActivity/InitiateCall, Error when
trying to close manager., e);
if (me != null) {
try {
manager.close(me.getUriString());
} catch (Exception ee) {
Log.i(WalkieTalkieActivity/InitiateCall,
Error when trying to close manager.,
ee);
ee.printStackTrace();
}
}
if (call != null) {
call.close();
}
}
}


in this I have use the SipAudioCall listener that make the call but
whatever i write in oncall establish that will not display.As well as
on Call ended the cursor is not go in that method.Please anybody have
idea how this was happen?.

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

2012-02-15 Thread BobF
Redesign your app/service.  Hiding things and preventing user control of 
apps on their own device is rude.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 program 3d screen?you can rotate the icon in 3d perception.

2012-02-15 Thread ttgdz
  just as the title said,I doont know how to start,I need you help.

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


[android-developers] Multiple apps contained within one project

2012-02-15 Thread Neilz
Hi all,

I have a situation where I am to produce applications for multiple
clients, all based on the same functionality. Essentially, each app
will be the same apart from content - text elements and images.

It would make sense for me to keep this as one project in Eclipse. I
can set a property somewhere (clientName for example) which would
enable me to pull in the required content and images accordingly. I
think this would be manageable.

The main problem is when I want to build the apps to go live.- they
are all to be separate releases. Does this mean that they will all
need their own package identifier? And their own manifest file? My
solution above would mean that they would all have the same structure.

Has anyone come across this issue before? I'd value any thoughts on
how I could maintain and build these projects.

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: What is wrong with Android Adapters?

2012-02-15 Thread Olof Hedman
I did not. I have no need for headers in my lists.
Why do you ask?

Cheers,
Olof

On Feb 14, 12:38 pm, gropapa tisc...@gmail.com wrote:
 did you use addHeaderView() in your code?

 On 14 fév, 10:22, jamesc jame...@gmail.com wrote:







  Also, are you calling notifyDatasetChanged() frequently?

  On Feb 14, 9:10 am, jamesc jame...@gmail.com wrote:

   Hello

   Are you using the ViewHolder pattern to recycle Views?

   On Feb 13, 9:48 am, Olof Hedman o...@illusionlabs.se wrote:

I have implemented a couple of different adapters in my application.

No matter which base class I use, I get very weird behavior in how the
list calls it to create and bind its views.

I've tested this on 2.3.3, 2.3.6 and Kindle.

This log is from an implementation of BaseAdapter, I put a debug-print
in getView.
If convertView is null I inflate the view and print created view.
For every call to getView I print binding View when I set its
values.
The code on the end is an id string for the data I bind to the views.

Everything display just as it should, but I get lots of unneccessary
binds!

This is what I get when I set the adapter to the listview:

D/SLPA    ( 4097): created View - android.widget.LinearLayout@405bf190
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 1 - to: ASQK89Q8.58
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 2 - to: ASQK89Q8.37
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 3 - to: AEURWHRA.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 4 - to: ASQK89Q8.44
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 5 - to: ASQK89Q8.51
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 6 - to: ASQK89Q8.10
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 7 - to: AWQHVP6A.11
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 1 - to: ASQK89Q8.58
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 2 - to: ASQK89Q8.37
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 3 - to: AEURWHRA.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 4 - to: ASQK89Q8.44
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 5 - to: ASQK89Q8.51
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 6 - to: ASQK89Q8.10
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 7 - to: AWQHVP6A.11
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA    ( 4097): created View - android.widget.LinearLayout@405ab368
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405ab368
position: 1 - to: ASQK89Q8.58
D/SLPA    ( 4097): created View - android.widget.LinearLayout@405a85f8
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405a85f8
position: 2 - to: ASQK89Q8.37
D/SLPA    ( 4097): created View - android.widget.LinearLayout@40548088
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40548088
position: 3 - to: AEURWHRA.02
D/SLPA    ( 4097): created View - android.widget.LinearLayout@405743e0
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405743e0
position: 4 - to: ASQK89Q8.44
D/SLPA    ( 4097): created View - android.widget.LinearLayout@405877c0
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405877c0
position: 5 - to: ASQK89Q8.51

Its not weird that users complain of sluggish UI if these things are
going on!

When the device goes into sleep, I get this:

D/SLPA    ( 4097): created View - android.widget.LinearLayout@40555a00
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 0 - to: A5D7W5U9.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 1 - to: ASQK89Q8.58
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 2 - to: ASQK89Q8.37
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 3 - to: AEURWHRA.02
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 4 - to: ASQK89Q8.44
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
position: 5 - to: ASQK89Q8.51
D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00

[android-developers] Re: Re : onclick image redirecting

2012-02-15 Thread vivek elangovan
i attached my source files and mailed it to you.pls check it.

On Feb 15, 12:09 pm, Jagruti Sangani jagruti.sang...@inextrix.com
wrote:
 i am asking about images how u use like imageview,imagebutton or image
 galary?because based on u use the images you can apply the intent.grid
 layout is a one type display layout not control.plz specify clearly or u
 can code paste here.

 On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan elangovan.vi...@gmail.com

  wrote:
  In a grid layout displayed images and using posistion can i call
  intent?

  On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com
  wrote:
   how you had use the images like different image control or in Image
  galary?

   On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan 
  elangovan.vi...@gmail.com

wrote:
how can we get the id of the image and redirect to corresponding url
for eg :
Yahoo and google image will be in my list of images,if i click

 yahoo image  onclick -redirect to yahoo page

google image ---onclick ---redirect to google page

On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com
wrote:
 On image click event use the intent and pass the url in that like
 Uri.parse(link) so it will redirect on that link.

 On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan 
elangovan.vi...@gmail.com

  wrote:
  Hi members,
                        I m displaying list of images and my scenario
  is i want to redirect to some page corresponding to the image i
  clicked.If i m having list of urls corresponding to the images i
  had
  where i have to mention the url? and onclicking the image i have to
  redirect to corresponding url.

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

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

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

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


Re: [android-developers] how to program 3d screen?you can rotate the icon in 3d perception.

2012-02-15 Thread sourabh sahu
try OpenGL.


On Wed, Feb 15, 2012 at 4:49 PM, ttgdz ttgdztu...@gmail.com wrote:

  just as the title said,I doont know how to start,I need you help.

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

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

[android-developers] adapter.notifyDataSetChanged not working

2012-02-15 Thread vani reddy
Hi friends,
In the oncreate of Custom listview activity  i am setting the adapter as

adapter = new LazyAdapterChannelList(ChannelGuideActivity.this,
null);
this.setListAdapter(adapter);,

this is my LazyadapterChannlelist class

ChannelList myCurrentShowsList;

public LazyAdapterChannelList(Activity a, ChannelList m_CurrentShowsList) {
activity = a;
myCurrentShowsList=m_CurrentShowsList;

}


public void setUpdatedInfo(ChannelList val) {
Log.i(ConfigurationConstants.logTAG, lca - Received new data  +
val.getData().size());
myCurrentShowsList = val;
}

public int getCount() {
try {
return myCurrentShowsList.getData().size();
} catch (Exception ex) {
return 0;
}

}

setUpdatedInfo(ChannelList val) : this method i am calling before calling
adapter.notifyDataSetChanged to update the latest values.
But the listview is not getting updated.

Please reply.:)
-- 
Regards,
Vani Reddy

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

Re: [android-developers] Re: How to get outgoing call status

2012-02-15 Thread Jagruti Sangani
Hello,
But this is not work for sip calling.It is use if we had use the internal
dialer for calling .

On Wed, Feb 15, 2012 at 1:10 PM, vijay kher khervija...@gmail.com wrote:

 Try this

  TelephonyManager telephonyManager
 =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

   telephonyManager.listen(new MyPhonestateListener(),
 PhoneStateListener.LISTEN_CALL_STATE);

 private class MyPhonestateListener extends PhoneStateListener
 {

 @Override
 public void onCallStateChanged(int state, String incomingNumber)
 {
 super.onCallStateChanged(state, incomingNumber);

 switch (state)
 {
 case TelephonyManager.CALL_STATE_IDLE:

 break;

 case TelephonyManager.CALL_STATE_OFFHOOK:

 break;

 case TelephonyManager.CALL_STATE_RINGING:

 break;
 default:
 break;
 }


 }

 may you get some help

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

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

2012-02-15 Thread skink


vani reddy wrote:
 Hi friends,
 In the oncreate of Custom listview activity  i am setting the adapter as



how does your getView look like?

pskink

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


Re: [android-developers] Re: Re : onclick image redirecting

2012-02-15 Thread Jagruti Sangani
I will checkout.

On Wed, Feb 15, 2012 at 5:07 PM, vivek elangovan
elangovan.vi...@gmail.comwrote:

 i attached my source files and mailed it to you.pls check it.

 On Feb 15, 12:09 pm, Jagruti Sangani jagruti.sang...@inextrix.com
 wrote:
  i am asking about images how u use like imageview,imagebutton or image
  galary?because based on u use the images you can apply the intent.grid
  layout is a one type display layout not control.plz specify clearly or u
  can code paste here.
 
  On Wed, Feb 15, 2012 at 12:34 PM, vivek elangovan 
 elangovan.vi...@gmail.com
 
   wrote:
   In a grid layout displayed images and using posistion can i call
   intent?
 
   On Feb 15, 11:55 am, Jagruti Sangani jagruti.sang...@inextrix.com
   wrote:
how you had use the images like different image control or in Image
   galary?
 
On Wed, Feb 15, 2012 at 12:21 PM, vivek elangovan 
   elangovan.vi...@gmail.com
 
 wrote:
 how can we get the id of the image and redirect to corresponding
 url
 for eg :
 Yahoo and google image will be in my list of images,if i click
 
  yahoo image  onclick -redirect to yahoo page
 
 google image ---onclick ---redirect to google page
 
 On Feb 15, 11:35 am, Jagruti Sangani jagruti.sang...@inextrix.com
 
 wrote:
  On image click event use the intent and pass the url in that like
  Uri.parse(link) so it will redirect on that link.
 
  On Wed, Feb 15, 2012 at 12:04 PM, vivek elangovan 
 elangovan.vi...@gmail.com
 
   wrote:
   Hi members,
 I m displaying list of images and my
 scenario
   is i want to redirect to some page corresponding to the image i
   clicked.If i m having list of urls corresponding to the images
 i
   had
   where i have to mention the url? and onclicking the image i
 have to
   redirect to corresponding url.
 
   --
   You received this message because you are subscribed to the
 Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Dimmed GLSurfaceView in AlertDialog

2012-02-15 Thread James Webster
Cracked it!

The clue was I remembered reading recently about SurfaceViews and
them punching holes in things and GLSurfaceView is obviously a
SurfaceView.

http://developer.android.com/reference/android/view/SurfaceView.html

The surface is Z ordered so that it is behind the window holding its
SurfaceView; the SurfaceView punches a hole in its window to allow its
surface to be displayed.

So it punches a hole through the window, in this case a dialog, to display
the GLSurfaceView on the window beneath. Since the window beneath a dialog
is always shown as dimmed, hence the GLSurfaceView also gets that dimmed
effect.

The way round it is use:

setZOrderOnTop(true);

on the GLSurfaceView in question. This shows the GLSurfaceView on top of
the hosting window, rather than behind it. It has the downside that you
can't use overlays of any views on top of your SurfaceView, the surface
will always be shown on top of them, but in my particular case that doesn't
matter.

So it is possible to use a GLSurfaceView in a dialog, and also in an
activity using the dialog theme.

On 15 February 2012 01:23, James Webster duskjock...@gmail.com wrote:

 Further to this, I tried build target on ICS, same visual behavior. The
 Surface view appears dimmed, as if it has been given the same dimming
 effect as the background behind the dialog.

 Is GlSurfaceView not supported in Dialogs? Nothing in the docs about that
 that I can see.
 On Feb 13, 2012 11:33 PM, James Webster duskjock...@gmail.com wrote:

 I have a GLSurfaceView working fine as a Live Wallpaper and as a custom
 view in an activity.

 When I try to use it as a custom view in an AlertDialog, the
 GLSurfaceView does not display correctly, there are some visual problems
 (see attached image for reference).

 Firstly the GLSurfaceView area within the dialog appears dimmed, as it
 has been given the same dimming affect as the activity behind, yet the rest
 of the dialog controls appear un-dimmed.

 Secondly, part of the activity behind (in this case a grid view) appears
 to completely overlap the dialog in the top left corner, the area
 overlapping seems to correspond to the size of a grid item. How can the
 background activity be shown over the foreground dialog? Most strange...

 Am I trying to do something stupid, and GLSurfaceView's are simply not
 supported in AlertDialogs?

 Incidentally, in my normal activity which does show the GLSurfaceView
 correctly, if I changed the theme to use the android:theme=
 @android:style/Theme.Dialog
  then I also see the same dimming effect on the GLSurfaceView, which
 leads me to wonder if it is an issue with the dialog style itself.

 Is it expected that a GLSurfaceView should be displayed correctly within
 a dialog or Activity using a dialog theme? Has anyone done that before with
 no issues?

 Build target 2.1 and testing on 3.2 and 2.5.3, for what its worth.

 Regards,
 James

 Dusk Jockeys Android Apps
 http://duskjockeys.blogspot.com/




-- 
Regards,
James

Dusk Jockeys Android Apps
http://duskjockeys.blogspot.com/

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

[android-developers] Re: how to prevent user to force stop service in android ?

2012-02-15 Thread lbendlin
you can elevate your service to device administrator level. This will 
lead to a warning when the users install your app, and (unless they really, 
really need it) to an immediate abort of the install by the user.

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

RE: [android-developers] Re: Encoder???

2012-02-15 Thread Muhammad UMER

Hi pskink,
  How are you, I am disturbing you again sorry for that. I want 
this application on at most 10 mobiles, so how can i apply the user 
authentication on this application to restrict the other user.
that will not use this application also not connect to server.

Thanks

umer


 Date: Mon, 13 Feb 2012 08:20:22 -0800
 Subject: [android-developers] Re: Encoder???
 From: psk...@gmail.com
 To: android-developers@googlegroups.com
 
 
 
 Muhammad UMER wrote:
  Hi pskink,
 
Thank you for your kind help. I have done this app with your 
  help. I have handle the file header on server side and now 3gp file is 
  playable. You are such a great great great. man.
 
  Thanks and Regards,
  umer
 
 
 
 
 
 
 you are welcome, no problem
 
 pskink
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
  

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

Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev
AdapterView does not make any guarantees about when and how many times 
the adapter's getView is called.


-- Kostya

15.02.2012 15:35, Olof Hedman пишет:

I did not. I have no need for headers in my lists.
Why do you ask?

Cheers,
Olof

On Feb 14, 12:38 pm, gropapatisc...@gmail.com  wrote:

did you use addHeaderView() in your code?

On 14 fév, 10:22, jamescjame...@gmail.com  wrote:








Also, are you calling notifyDatasetChanged() frequently?
On Feb 14, 9:10 am, jamescjame...@gmail.com  wrote:

Hello
Are you using the ViewHolder pattern to recycle Views?
On Feb 13, 9:48 am, Olof Hedmano...@illusionlabs.se  wrote:

I have implemented a couple of different adapters in my application.
No matter which base class I use, I get very weird behavior in how the
list calls it to create and bind its views.
I've tested this on 2.3.3, 2.3.6 and Kindle.
This log is from an implementation of BaseAdapter, I put a debug-print
in getView.
If convertView is null I inflate the view and print created view.
For every call to getView I print binding View when I set its
values.
The code on the end is an id string for the data I bind to the views.
Everything display just as it should, but I get lots of unneccessary
binds!
This is what I get when I set the adapter to the listview:
D/SLPA( 4097): created View - android.widget.LinearLayout@405bf190
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 1 - to: ASQK89Q8.58
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 2 - to: ASQK89Q8.37
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 3 - to: AEURWHRA.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 4 - to: ASQK89Q8.44
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 5 - to: ASQK89Q8.51
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 6 - to: ASQK89Q8.10
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 7 - to: AWQHVP6A.11
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 1 - to: ASQK89Q8.58
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 2 - to: ASQK89Q8.37
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 3 - to: AEURWHRA.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 4 - to: ASQK89Q8.44
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 5 - to: ASQK89Q8.51
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 6 - to: ASQK89Q8.10
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 7 - to: AWQHVP6A.11
D/SLPA( 4097): binding View - android.widget.LinearLayout@405bf190
position: 0 - to: A5D7W5U9.02
D/SLPA( 4097): created View - android.widget.LinearLayout@405ab368
D/SLPA( 4097): binding View - android.widget.LinearLayout@405ab368
position: 1 - to: ASQK89Q8.58
D/SLPA( 4097): created View - android.widget.LinearLayout@405a85f8
D/SLPA( 4097): binding View - android.widget.LinearLayout@405a85f8
position: 2 - to: ASQK89Q8.37
D/SLPA( 4097): created View - android.widget.LinearLayout@40548088
D/SLPA( 4097): binding View - android.widget.LinearLayout@40548088
position: 3 - to: AEURWHRA.02
D/SLPA( 4097): created View - android.widget.LinearLayout@405743e0
D/SLPA( 4097): binding View - android.widget.LinearLayout@405743e0
position: 4 - to: ASQK89Q8.44
D/SLPA( 4097): created View - android.widget.LinearLayout@405877c0
D/SLPA( 4097): binding View - android.widget.LinearLayout@405877c0
position: 5 - to: ASQK89Q8.51
Its not weird that users complain of sluggish UI if these things are
going on!
When the device goes into sleep, I get this:
D/SLPA( 4097): created View - android.widget.LinearLayout@40555a00
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 0 - to: A5D7W5U9.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 1 - to: ASQK89Q8.58
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 2 - to: ASQK89Q8.37
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 3 - to: AEURWHRA.02
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 4 - to: ASQK89Q8.44
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 5 - to: ASQK89Q8.51
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 6 - to: ASQK89Q8.10
D/SLPA( 4097): binding View - android.widget.LinearLayout@40555a00
position: 0 - to: A5D7W5U9.02
D/SLPA( 4097): binding View - 

[android-developers] better emulator for android applications

2012-02-15 Thread sahar harati
Hi all,

I need a better emulator  than SDK for android applications to test
some component such as cpu usage etc.

thanks.



-- 

Sahar Harati
BS Student
Department of Computer Engineering
Sharif University of Technology

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


[android-developers] Upload Video using Soap Webservice

2012-02-15 Thread suresh
Hi Friends

Can any one help me how to upload video using Saop Web services.
Currently am converting to base64 string format but am getting
exception as out of memory.


Regrads
Suresh

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


[android-developers] Regarding copy right

2012-02-15 Thread Dhaval Varia
I m planning to publisb my app on amazon store.
So i need to take  copy right for my app.
What is its procedure ?
Plz help me to know...
Thanx in advance..

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

Re: [android-developers] Re: adapter.notifyDataSetChanged not working

2012-02-15 Thread vani reddy
 public View getView(final int position, View convertView, ViewGroup
 parent) {
 try {
 final Show channelShowItem = (Show)
 myCurrentShowsList.getData()
 .get(position);

 convertView = inflater.inflate(R.layout.channel_item, null);
 ViewHolder holder = new ViewHolder();

 holder.logoLayout = (LinearLayout) convertView
 .findViewById(R.id.logoLayout);
 if (channelShowItem.getCountry().equals(IN_airtel)) {
 holder.logoLayout.setBackgroundDrawable(null);
 }
 holder.channelLogo = (ImageView) convertView
 .findViewById(R.id.channelLogo);
 holder.discussionCount = (TextView) convertView
 .findViewById(R.id.discussionCount);
 holder.ActivityInfo = (TextView) convertView
 .findViewById(R.id.ActivityInfo);
 holder.showName = (TextView) convertView
 .findViewById(R.id.showName);
 holder.channelname = (TextView) convertView
 .findViewById(R.id.channelname);

 holder.showName.setTypeface(fontObj);
 holder.channelname.setTypeface(fontObj_myraid);
 holder.showTiming = (TextView) convertView
 .findViewById(R.id.showTiming);
 holder.viewCount = (TextView) convertView
 .findViewById(R.id.ChannelViewCount);

 holder.discussionCount.setText(String.valueOf(channelShowItem
 .getComment_count()));

 if (channelShowItem.getFbids_watching() != null) {
 System.out.println(INSIDE IF ***);
 try {
 String textToDisplay =
 UserAPIHandler.getFriendsWatching(
 channelShowItem.getFbids_watching(), fList);
 holder.ActivityInfo.setText(textToDisplay);
 System.out.println(LSITING
 +channelShowItem.getListing_name());
 System.out.println(channelname
 +channelShowItem.getCh_name());
 System.out.println(COUNT
 +channelShowItem.getFbids_watching().size());
 holder.viewCount.setText(
 + channelShowItem.getFbids_watching().size());
 } catch (Exception e) {
 e.printStackTrace();
 }
 } else {
 System.out.println(INSIDE ESLE*#**);
 System.out.println(LSITING
 +channelShowItem.getListing_name());
 System.out.println(channelname
 +channelShowItem.getCh_name());
 System.out.println(COUNT 0);
 holder.viewCount.setText(0);
 holder.ActivityInfo.setText();
 }

 String temp = channelShowItem.getIcon();
 Utility.setImageFromAssets(activity, temp, holder.channelLogo);

 holder.showName.setText(channelShowItem.getListing_name());
 holder.channelname.setText(channelShowItem.getCh_name());

 long startMilliSeconds =
 Long.parseLong(channelShowItem.getStart()
 .getSec()) * 1000;
 long endMilliSeconds = Long.parseLong(channelShowItem.getStop()
 .getSec()) * 1000;
 Date startDate = new Date(startMilliSeconds);
 Date endDate = new Date(endMilliSeconds);

 if (channelShowItem.getCountry().equals(IN_airtel)) {

 startDate.setHours(startDate.getHours() - 5);
 startDate.setMinutes(startDate.getMinutes() - 30);
 endDate.setHours(endDate.getHours() - 5);
 endDate.setMinutes(endDate.getMinutes() - 30);
 }
 SimpleDateFormat endFormatter = new SimpleDateFormat(HH:mm);

 String startDisplay = endFormatter.format(startDate);
 String endDisplay = endFormatter.format(endDate);

 String showTimings = startDisplay +  -  + endDisplay;

 holder.showTiming.setText(showTimings);

 convertView.setTag(holder);

 convertView.setOnClickListener(new OnClickListener() {

 @Override
 public void onClick(View v) {


 activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);

 Intent intent = new Intent(v.getContext(),
 ChannelDetailShowListActivity.class);
 Bundle myData = new Bundle();
 myData.putSerializable(currentShow, channelShowItem);
 myData.putString(class, guide);
 intent.putExtras(myData);

 View view1 = EPGGroup.group
 .getLocalActivityManager()
 .startActivity(

Re: [android-developers] better emulator for android applications

2012-02-15 Thread Mark Murphy
Buy an Android device. Testing cpu usage on anything other than
production hardware will be of limited accuracy.

On Wed, Feb 15, 2012 at 8:03 AM, sahar harati saharati2...@gmail.com wrote:
 Hi all,

 I need a better emulator  than SDK for android applications to test
 some component such as cpu usage etc.

 thanks.



 --

 Sahar Harati
 BS Student
 Department of Computer Engineering
 Sharif University of Technology

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: How to get outgoing call status

2012-02-15 Thread Mark Murphy
On Wed, Feb 15, 2012 at 7:15 AM, Jagruti Sangani
jagruti.sang...@inextrix.com wrote:
 But this is not work for sip calling.It is use if we had use the internal
 dialer for calling .

There is no way to determine if a VOIP client is being used, since any
application could be a VOIP client (e.g., Skype, Vonage).

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] keystore files

2012-02-15 Thread New Developer

I now have two keystore files
debug.keystore   and   publish.keystore with a password

Is there anyway to link the publish.keystore to
  a) the Debug button / debug configuration   and/or
  b) the Run button / run configuration

Currently  I have to export the project to create the signed .apk
then from the command line  adb install -r   package.apk
and if I want to test the from command line  adb logcat

was nicer to do all this through the  debug / run buttons


thanks in advance

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

Re: [android-developers] Multiple apps contained within one project

2012-02-15 Thread Mark Murphy
On Wed, Feb 15, 2012 at 6:20 AM, Neilz neilhorn...@gmail.com wrote:
 I have a situation where I am to produce applications for multiple
 clients, all based on the same functionality. Essentially, each app
 will be the same apart from content - text elements and images.

 It would make sense for me to keep this as one project in Eclipse. I
 can set a property somewhere (clientName for example) which would
 enable me to pull in the required content and images accordingly. I
 think this would be manageable.

 The main problem is when I want to build the apps to go live.- they
 are all to be separate releases. Does this mean that they will all
 need their own package identifier?

Yes, assuming they will be deployed using the Android Market or any
other facility that enforces uniqueness of package identifiers.

 And their own manifest file?

Since that is where the package identifier is supplied, yes.

 Has anyone come across this issue before? I'd value any thoughts on
 how I could maintain and build these projects.

Use an Android library project for the common code. Use resources in
the hosting project for client-specific stuff (e.g., string resource
for clientName).

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Re: Android 2.2.1 Galaxy S I9000 I9000XWJS3

2012-02-15 Thread Евгений Л
I ask for a help!
What parameter is responsible for the change of size, photo of
reference to the contact which is represented in TouchWiz30Launcher?
On a workmount. Where can I change it? Specify please file of apk and
way to the parameter. Android 2.2.1 Galaxy S I9000  I9000XWJS3
Here reference to the problem:
http://narod.ru/disk/40240083001/SC20120210-032158.png.html

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


[android-developers] add account error

2012-02-15 Thread Jags
i was folowing the c2dm tutorial and there to test in emulator i need
to have a account in settings. i went to menu - settings - acount 
Sync - add account - filled my details and then next after some
times it says checking incoming server settings  with some progress
and after some time setup could not finish. unable to open connection
to server. in a message box and the button is edit details which
brings me to account details screen. I have network in my simulator
and i am able to browse sites in browser. what could be the problem ?

secondly, if i test c2dm in device, then also i need to add this
account ?ideally i would prefer it to be tested in simulator.

thanks in advance
jags

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


Re: [android-developers] Toast not working on honeycomb and ics

2012-02-15 Thread Mark Murphy
This has worked on every Android device I have ever tried it on,
including several 3.0+ devices.

On Wed, Feb 15, 2012 at 3:43 AM, giles ian gilesian@gmail.com wrote:
 Hi,

 The below piece of code is working fine on 2.22.3 but not on 3.0 onwards.

 Toast.makeText(SomeActivity.this,
 getResources().getString(R.string.not_implemented),
 Toast.LENGTH_SHORT).show();

 Thanks,
 Pawan Nimje

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] please help to find out deleted or updated contact in android device contact list

2012-02-15 Thread Mark Murphy
A ContentObserver is your only option.

On Wed, Feb 15, 2012 at 2:46 AM, vijay kher khervija...@gmail.com wrote:
 Hi ,

 I wants to get contact that is either deleted or updated by user in device
 contact list.

 For that i have try with content observer and notice that its onChange()
 method is called  with one boolean parameter when any contact is added or
 deleted.But does not give any information regarding that contact.

 So is there any listener in android for getting contact information that is
 either deleted or updated by user in device contact list or any action fired
 from system.

 Thanks in advance,

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Suggestion to improve reference documentation on developer.android.com

2012-02-15 Thread Mark Murphy
For feature requests, please use http://b.android.com.

On Tue, Feb 14, 2012 at 5:44 PM, Alexander Biemann
alexbiem...@gmail.com wrote:
 I'd like to suggest the following
 at the bottom of each reference page, permit users to submit documentation
 improvements.

 For example

 Did you find this document helpful? [yes/no]
 if no - show textbox to let the user provide documentation improvements.


 This will cause a vast improvement in the quality of the documentation.

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: Android 2.2.1 Galaxy S I9000 I9000XWJS3

2012-02-15 Thread Kostya Vasilyev

Вика ?

15.02.2012 17:20, Евгений Л пишет:

I ask for a help!
What parameter is responsible for the change of size, photo of
reference to the contact which is represented in TouchWiz30Launcher?
On a workmount. Where can I change it? Specify please file of apk and
way to the parameter. Android 2.2.1 Galaxy S I9000  I9000XWJS3
Here reference to the problem:
http://narod.ru/disk/40240083001/SC20120210-032158.png.html



--
Kostya Vasilyev

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


Re: [android-developers] Re: App Testing Service - can't find the URL

2012-02-15 Thread Mark Phillips
David,

Thanksthat is not the one I am looking for.

Mark

On Tue, Feb 14, 2012 at 12:39 PM, David Thaler davidtha...@gmail.comwrote:

 There is http://duarlander.ning.com/.

 On Feb 14, 7:09 am, Mark Phillips m...@phillipsmarketing.biz wrote:
  I found a testing service while surfing late one night, hence, no
  bookmark...:( . It was volunteer run, or very inexpensive, and the tester
  loaded your app on a phone and created a short video of
  his/her experiences using the app. In the example video, there was lots
 of
  commentary, things the tester liked, didn't like, where he/she got hung
 up,
  etc. I can't seem to find the web site again. Does anyone know the URL?
 
  Thanks,
 
  Mark

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


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

Re: [android-developers] Re: The screen size of galaxy nexus (ICS )

2012-02-15 Thread Mark Murphy
2012/2/15 chen ji chenjihz...@gmail.com:
 My question is why the value is not 1960*720. Thanks.

Because the screen size of a Galaxy Nexus is not 1960*720.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] List view is not perform selection

2012-02-15 Thread Sathya g
List view is not clikable when i am using cutombase adapter i.e using
cutom view for list view. i mention in listview as
android:focusable=true its not perform even selection operation...
please help me to achieve this selection

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


Re: [android-developers] Re: Android 2.2.1 Galaxy S I9000 I9000XWJS3

2012-02-15 Thread Nikolay Elenkov
On Wed, Feb 15, 2012 at 10:20 PM, Евгений Л 3gscor...@gmail.com wrote:

 Here reference to the problem:
 http://narod.ru/disk/40240083001/SC20120210-032158.png.html

This is OT, and certainly doesn't help you, but Yandex is quite
obnoxious. It tried two install two browser plugins and make itself
the default search engine within less than a minute.
I guess that's what it takes to do an IPO...

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

2012-02-15 Thread Olof Hedman
I don't expect it to.
But I do though expect it to call it a sensible amount of times, and
not call it when it is absolutely unnecessary.
Why would it for example have to bind all my list items to the first
view two times over, before creating the other list item views?

Cheers,
Olof

On Feb 15, 2:02 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 AdapterView does not make any guarantees about when and how many times
 the adapter's getView is called.

 -- Kostya

 15.02.2012 15:35, Olof Hedman пишет:









  I did not. I have no need for headers in my lists.
  Why do you ask?

  Cheers,
  Olof

  On Feb 14, 12:38 pm, gropapatisc...@gmail.com  wrote:
  did you use addHeaderView() in your code?

  On 14 fév, 10:22, jamescjame...@gmail.com  wrote:

  Also, are you calling notifyDatasetChanged() frequently?
  On Feb 14, 9:10 am, jamescjame...@gmail.com  wrote:
  Hello
  Are you using the ViewHolder pattern to recycle Views?
  On Feb 13, 9:48 am, Olof Hedmano...@illusionlabs.se  wrote:
  I have implemented a couple of different adapters in my application.
  No matter which base class I use, I get very weird behavior in how the
  list calls it to create and bind its views.
  I've tested this on 2.3.3, 2.3.6 and Kindle.
  This log is from an implementation of BaseAdapter, I put a debug-print
  in getView.
  If convertView is null I inflate the view and print created view.
  For every call to getView I print binding View when I set its
  values.
  The code on the end is an id string for the data I bind to the views.
  Everything display just as it should, but I get lots of unneccessary
  binds!
  This is what I get when I set the adapter to the listview:
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@405bf190
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 5 - to: ASQK89Q8.51
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 6 - to: ASQK89Q8.10
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 7 - to: AWQHVP6A.11
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 5 - to: ASQK89Q8.51
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 6 - to: ASQK89Q8.10
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 7 - to: AWQHVP6A.11
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405bf190
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@405ab368
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405ab368
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@405a85f8
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405a85f8
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@40548088
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40548088
  position: 3 - to: AEURWHRA.02
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@405743e0
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405743e0
  position: 4 - to: ASQK89Q8.44
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@405877c0
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@405877c0
  position: 5 - to: ASQK89Q8.51
  Its not weird that users complain of sluggish UI if these things are
  going on!
  When the device goes into sleep, I get this:
  D/SLPA    ( 4097): created View - android.widget.LinearLayout@40555a00
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
  position: 0 - to: A5D7W5U9.02
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
  position: 1 - to: ASQK89Q8.58
  D/SLPA    ( 4097): binding View - android.widget.LinearLayout@40555a00
  position: 2 - to: ASQK89Q8.37
  D/SLPA    ( 4097): binding View - 

[android-developers] Serialization View

2012-02-15 Thread satahippy
Is it possible? I have ViewGroup, which change his content (same children 
views). But ViewGroup refresh his content too slow (about 6 seconds).
Are there other ways to solve the problem?

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

[android-developers] Extended Application life time.

2012-02-15 Thread Anieeh
hi all
I have extended application class and in that i have kept an model
object for global access which is single ton class and i have a
service which runs continuously in background when no activity is
running. And this background service uses that model object kept in
Application class.

Is our application instance will remain in memory when no activity is
running and our service is running in background? or application
object killed and our service will run continuously . so that Service
will get the model object from Application.

Thanks
  Anieeh

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


Re: [android-developers] Extended Application life time.

2012-02-15 Thread Mark Murphy
On Wed, Feb 15, 2012 at 8:50 AM, Anieeh animesh.andr...@gmail.com wrote:
 i have a
 service which runs continuously in background when no activity is
 running.

This is not generally a good idea, unless the user specifically
requested it (e.g., music player). Users think developers who create
everlasting services are morons and go to great lengths to attack such
apps with task killers, force stop in Settings, etc.

 And this background service uses that model object kept in
 Application class.

 Is our application instance will remain in memory when no activity is
 running and our service is running in background?

Until the user or Android terminates your process, yes.

 or application
 object killed and our service will run continuously . so that Service
 will get the model object from Application.

The Application object only goes away when the process does.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Re: What is wrong with Android Adapters?

2012-02-15 Thread Kostya Vasilyev

On 02/15/2012 05:37 PM, Olof Hedman wrote:

I don't expect it to.
But I do though expect it to call it a sensible amount of times, and
not call it when it is absolutely unnecessary.


That may not be the ListView's definition of sensible.


Why would it for example have to bind all my list items to the first
view two times over, before creating the other list item views?


Perhaps it's populating a cache of some kind?




Cheers,
Olof


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


Re: [android-developers] How to access another apk in an android application

2012-02-15 Thread TreKing
Replying back to the whole group.

On Wed, Feb 15, 2012 at 12:06 AM, sai bot sai.avatar...@gmail.com wrote:


 That's a hostile way of explaining things Sir / Madam.


I'm not sure what was so hostile about my response. Um ... sorry?


 But I will make sure I use the Y-O-U spelling ok.


Good. You will find that when posting to public forums you will be taken
more seriously and will receive better responses when you (at least attempt
to) use proper spelling and grammar. I'm trying to help you get help, no
hostility intended.

I need to develop an application which would be obviously an APK file and I
 need to encapsulate  a tag reading/ scanning app within my application such
 that it should appear to be a part of my application (or the APK  for the
 matter of fact ). I have to use the tag application by which I mean the tag
 reader apk within my application. I need to know what and how I should use
 the tag reader apk.


I hope you can see how much clearer this explanation is compared to your
original question. That makes a whole lot more sense.

Well, you cannot really insert another app (APK) within your own. You can
either:

1) Build the logic into your own app, by using the code from some open
source project.

-OR-

2) Use Android's beautiful Intent mechanism to do exactly what it was
designed to do: let you use another app to do the specific work you don't
want your own app to do in a generic way. This of course requires that the
user have such an app installed. It's trivial to check that such a thing
exists and to then prompt the user to get one if they need to.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Calling java function from Native thru JNI fails due to FindClass failing during runtime.

2012-02-15 Thread Ravi Pandey
Hi All,

I have installed a simple Java App on my android device and trying to
call some method in Java layer from an
executable of a native module, which is also pushed inside the device.
(Tried using the JNI interface on native side.)

I simply tried calling an example method: exampleMethod() inside the
java class from the native layer as below :-

Java class --

public class SettingsService extends Service {
   public static void exampleMethod()
{
print(exampleMethod called);
...
...
}
}

Native side --

void NativeClass::start_Java_Service() {
JavaVM* jvm;
JNIEnv* env;
jint res;
jclass settingsServiceClass;
jmethodID method;
jobjectArray applicationArgs;
jstring applicationArg0;

JavaVMInitArgs args;
JavaVMOption options[1];

args.version = 0x00010002;
args.nOptions = 1;
options[0].optionString = -Djava.class.path=.;
args.options = options;
args.ignoreUnrecognized = JNI_TRUE;

res = JNI_CreateJavaVM(jvm, env, args);
if (res  0) {
printf(Can't create Java VM\n);
exit(1);
}

settingsServiceClass = (env)-FindClass(com/vendor/
settingsservice/SettingsService);
if (swiqiSettingsServiceClass == NULL) {
printf(Can't find Java Class\n);
goto destroy;
}
...
...
...
}

On running the .exe of the native side , I get the following exception
--

[   java.lang.NoClassDefFoundError: com/vendor/settingsservice/
SettingsService
at dalvik.system.NativeStart.main(Native Method)   ]


I understand that this problem might be related to the fact that the
native layer is not able to access the java side class or rather some
path setting is required here. I am not able to understand that how
should I make the Java class accessible for my native layer. Is some
classpath setting required here in case of using the android device ?,
If so then kindly suggest how ?

Thanks in advance.
Ravi.

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


Re: [android-developers] group introductory text box

2012-02-15 Thread TreKing
On Wed, Feb 15, 2012 at 5:23 AM, BobF bobf8...@gmail.com wrote:

 It has to do with using this group via a web browser ...


See the giant gear at the top right? It has Help and Feedback options.
Try that, as this has nothing to do with this list.

Or see if there is a Google Groups group ... :)

Or use Gmail to read and post to the group, since the online interface
kinda sucks (IMO).

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Extended Application life time.

2012-02-15 Thread Anieeh
Thanks mark
for your quick reply Terminate the process you mean user force
stop the application or by memory crunch when android kills the
service and application both.

   Actually my service is running continuously for syncing location to
server at particular interval, Is there any better way to do this
without using or running continuously in background.


Thanks
Anieeh

On Feb 15, 6:54 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Feb 15, 2012 at 8:50 AM, Anieeh animesh.andr...@gmail.com wrote:
  i have a
  service which runs continuously in background when no activity is
  running.

 This is not generally a good idea, unless the user specifically
 requested it (e.g., music player). Users think developers who create
 everlasting services are morons and go to great lengths to attack such
 apps with task killers, force stop in Settings, etc.

  And this background service uses that model object kept in
  Application class.

  Is our application instance will remain in memory when no activity is
  running and our service is running in background?

 Until the user or Android terminates your process, yes.

  or application
  object killed and our service will run continuously . so that Service
  will get the model object from Application.

 The Application object only goes away when the process does.

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

 _Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] plzzz help me out in the timetable app in android...

2012-02-15 Thread TreKing
On Wed, Feb 15, 2012 at 1:34 AM, S Sam mailme2s...@gmail.com wrote:

 I am uable to find which method is used for what purpose to get the
 desired output,


What is the desired output? How are we supposed to know what your
ultimate goal is?


 so can you send me any material that helps me in learning the Android
 application development.


http://developer.android.com/index.html
https://www.google.com/
http://stackoverflow.com/
http://www.catb.org/~esr/faqs/smart-questions.html
http://commonsware.com/


 The following is the code in which I'm not getting the desired output as
 there must be some logical errors.


Very few people are going to take the time to parse through and debug your
code, especially when you have no explained what exactly the problem is or
what you're trying to achieve.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Extended Application life time.

2012-02-15 Thread Mark Murphy
On Wed, Feb 15, 2012 at 9:11 AM, Anieeh animesh.andr...@gmail.com wrote:
    for your quick reply Terminate the process you mean user force
 stop the application or by memory crunch when android kills the
 service and application both.

All of the above.

   Actually my service is running continuously for syncing location to
 server at particular interval, Is there any better way to do this
 without using or running continuously in background.

Absolutely. Use AlarmManager and an IntentService, please.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] whole file dose not load always

2012-02-15 Thread limelect
I have this part in a service (or Thread same problem ) to load a file
greater then 40 char;
almost 1/2 a mega char.
Some times it load much less not consistent.
How to debug it or make adjustment.
Same program download jpg (with modifications) of 30k without a
problem.

StringBuilder downloadFile(String url) {
final int IO_BUFFER_SIZE = 4 * 1024;

// AndroidHttpClient is not allowed to be used from the main
thread
//final HttpClient client = (mode == Mode.NO_ASYNC_TASK) ? new
DefaultHttpClient() :
final HttpClient client = (mode == Mode.CORRECT) ? new
DefaultHttpClient() :
AndroidHttpClient.newInstance(Android);
 final HttpGet getRequest = new HttpGet(url);
try {
HttpResponse response = client.execute(getRequest);
final int statusCode =
response.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK) {
Log.e(WindGraph, Error  + statusCode +
 while retrieving file from  + url);
return null;
}
final HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new
BufferedHttpEntity(entity);
 if (entity != null) {
InputStream inputStream = null;
try {

inputStream = bufHttpEntity.getContent();
 This is where content fails some time 1
Log.d(WindGraph,Content size  
+Integer.toString( (int) bufHttpEntity.getContentLength()));

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

2012-02-15 Thread mgah
Thanks it worked.  Since I am using the Xperia x8 to test with, I had
to use xRecovery tool to update the Android OS with Kuyadroid.  For
some reason Cyanogen doesn't work with Xperia x8.  Nonetheless, no
more lock screen! :)

On Feb 13, 12:10 pm, TreKing treking...@gmail.com wrote:
 On Mon, Feb 13, 2012 at 10:56 AM, Michael Holland 
 mholland...@gmail.comwrote:

  Ok I will give it a try.  After installation, are there any other steps to
  remove the lock screen such as removing a certain apk file or something
  like that??

 I believe there is a setting for it.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Re: Extended Application life time.

2012-02-15 Thread Anieeh
Thanks Mark
   I will do changes as you said, you have raised a good point an
given suggestion for service force stop.

Thanks
   Anieeh

On Feb 15, 7:32 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Feb 15, 2012 at 9:11 AM, Anieeh animesh.andr...@gmail.com wrote:
     for your quick reply Terminate the process you mean user force
  stop the application or by memory crunch when android kills the
  service and application both.

 All of the above.

    Actually my service is running continuously for syncing location to
  server at particular interval, Is there any better way to do this
  without using or running continuously in background.

 Absolutely. Use AlarmManager and an IntentService, please.

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

 _Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] Re: hai... Kindly help me to connect android with php server

2012-02-15 Thread Ali Chousein
Do you know what RESTful interfaces are? If not you have to do lot's
of reading and learning before attempting to design such a system.

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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


[android-developers] Re: Need support to develop mail box in android platform.

2012-02-15 Thread Ali Chousein
 Need your support...
Paid support or free support? :-)

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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


  1   2   3   >