Re: [android-developers] Problem with video in WebView

2012-06-07 Thread Amit Gupta
I tried playing .swf video. video in 
http://www.in.com/videos/watchvideo-cnbc-awaaz-1626397.html  plays well in 
browser but not in webview.


On Thursday, 7 June 2012 13:55:58 UTC+8, Narendra Singh Rathore wrote:


 Please clarify, which video format are you trying to display.


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

2012-06-07 Thread abhijeet tomar
I think , the video tag is not supportedwhy are you not using VideoView
for playing video?

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

[android-developers] Can't copy and paste Eclipse(Helios) to Windows

2012-06-07 Thread Live Happy
Cannot copy and paste directories from Eclipse(Helios) to Windows.also
cannot do drag and drop

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Find path between 2 pairs of lat and long

2012-06-07 Thread gjs
Hi,

It is true, the op did not specify the purpose of the path between the
two points, that's why I suggested a better question was probably in
order.

It is likely the path required was for navigation? between the two
points in which case 
https://developers.google.com/maps/documentation/javascript/directions
would be useful.

Regards

On Jun 7, 12:38 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 On Wed, Jun 6, 2012 at 3:15 AM, gjs garyjamessi...@gmail.com wrote:
  Hi,

  The path is just a straight line between the two points.

  Perhaps you need a better question.

  Regards

 That's not true at all...

 The path is just a straight line on a flat surface...

 The earth isn't flat...

 http://en.wikipedia.org/wiki/Great-circle_distance

 kris

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


[android-developers] Database

2012-06-07 Thread arun
hai friends..

how to store a image in database use web services..

any one known plz help me.,,,

thanks 
Arunkumkar A



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

2012-06-07 Thread David Olsson
What did google tell you?

On Thu, Jun 7, 2012 at 9:08 AM, arun aruna...@gmail.com wrote:

 hai friends..

 how to store a image in database use web services..

 any one known plz help me.,,,

 thanks
 Arunkumkar A



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 i Download kSOAP 2 Android .jar files i need 2.5 or latest version please send me that jar file

2012-06-07 Thread David Olsson
You are joking, right?

http://code.google.com/p/ksoap2-android/wiki/HowToUse?tm=2

On Thu, Jun 7, 2012 at 8:22 AM, shashi asanka shashi.kalut...@gmail.comwrote:


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Running camera preview while recording video at the same time

2012-06-07 Thread gjs
Hi,

Normally camera preview *IS* present during video recording, read the
video section of this carefully -

http://developer.android.com/guide/topics/media/camera.html

Regards

On Jun 6, 8:20 pm, DeveloperbyChoice tahasyed...@gmail.com wrote:
 I am still loking for the solution ? any solution yet ?







 On Tuesday, March 27, 2012 12:09:08 PM UTC-4, Qianqian Fang wrote:

  hi

  I am working on a real-time video processing project. I used
  setPreviewCallbackWithBuffer() and display both the preview image and
  the processed image on SurfaceViews. Now, I'd like to record video at
  the same time. I read from some posts that the video recording
  involves low-level io that is not in conflict with the preview buffer.

  I took some sample code from the second post of this link to do the
  video recording:

 http://stackoverflow.com/questions/1817742/android-video-recording-sa...

  however, after merging it with my camera
  setPreviewCallbackWithBuffer() code, I kept getting MediaRecorder:
  start called in an invalid state 4 when I tried to call mrec.start().
  Both the initRecorder() and prepareRecorder() ran fine when the
  surface is created.

  Anyone know what might be causing this error? the MediaRecorder object
  does share the same camera object that is used for buffered preview.

  thanks

  Qianqian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Find path between 2 pairs of lat and long

2012-06-07 Thread Mini agrawal
I want to develop an application that takes 2 set of lat and long and
display a path between these sets instead of taking input an address.

On Thu, Jun 7, 2012 at 12:34 PM, gjs garyjamessi...@gmail.com wrote:

 Hi,

 It is true, the op did not specify the purpose of the path between the
 two points, that's why I suggested a better question was probably in
 order.

 It is likely the path required was for navigation? between the two
 points in which case
 https://developers.google.com/maps/documentation/javascript/directions
 would be useful.

 Regards

 On Jun 7, 12:38 am, Kristopher Micinski krismicin...@gmail.com
 wrote:
  On Wed, Jun 6, 2012 at 3:15 AM, gjs garyjamessi...@gmail.com wrote:
   Hi,
 
   The path is just a straight line between the two points.
 
   Perhaps you need a better question.
 
   Regards
 
  That's not true at all...
 
  The path is just a straight line on a flat surface...
 
  The earth isn't flat...
 
  http://en.wikipedia.org/wiki/Great-circle_distance
 
  kris

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

2012-06-07 Thread imran ali
Hi Arun,
Follow this , 
http://www.helloandroid.com/tutorials/store-imagesfiles-database.

store byte array in db and at time of showing image,  convert byte 
array[from db] to bitmap.

Regards
Imran Ali

On Thursday, June 7, 2012 12:38:15 PM UTC+5:30, arun wrote:

 hai friends..

 how to store a image in database use web services..

 any one known plz help me.,,,

 thanks 
 Arunkumkar A





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

[android-developers] Bangalore Hybrid apps::First Meetup

2012-06-07 Thread Rohit Mishra
Dear Members,
Meet exciting new people, Find out which way the world is moving towards. Is 
pure mobile development dying out? Is Hybrid Apps the way forward? Find out the 
answers to these exiting questions. The meetup is a fun event with lots of 
people interaction and networking. 
We are scheduling the first open meetup for bangalore hybrid apps. The meetup 
is an open house for networking and discussing ideas and sharing experience 
working on hybrid apps. Everyone are welcome.
Registration(FREE) is compulsory:http://www.meetup.com/ 
Bangalore-Hybrid-Apps-Group/ events/67968872/
List of Speakers
Lalit BhiseCEO Mobisy, Lalit is a veteran in field of mobile development with 
more than 12 years of experience. He is also the brains behind the team which 
built the first cross platform development environment, Mobitop. Lalit will 
speak mainly on the current developments that is happening in field of Hybrid 
application development as also share his insight to where Mobile Applications 
developmet is heading.
Nihar VaidyaTechnical Architect, Nihar is a geek passionate about ios. He has 
over five years experience in building wide range of hybrid apps. Nihar will 
talk on a simple way to integrate a hybrid app on iphone.
Abhijeeth HiliyanaTechnical Architect, Abhijeeth is a coder/hacker who has 
experience working on wide range of mobile platforms. His current interest is 
in field of hybrid app development. He will talk mainly on how to build a 
simple hybrid application on android.
For any doubt and query feel free to contact abhije...@mobisy.com
Rohit Mishra
+91-9986478970
Bangalore, India

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

[android-developers] Animation Problem

2012-06-07 Thread abhijeet tomar
Hello Developers,

I have done frame Animation suceessfully and the frame images comes from
Drawable folder .
Actually problem is that...images are alot then we have not store in
Drawable folder..thats why images will be stored in SdCard...
Problem is that ,How to read images from sd card and set into animation
frame...
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: Can't copy and paste Eclipse(Helios) to Windows

2012-06-07 Thread Live Happy

 Cannot copy and paste directories from Eclipse(Helios) to Windows.also
 cannot do drag and drop how i can solve  this problem


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

[android-developers] how to manage different resolution under same density?

2012-06-07 Thread Hitendrasinh Gohil
Hi,

As i know there are 4 types of screen size and 4 types of density.But how 
to manage the graphics for different resolution under same density?

Like Samsung galaxy 10.1 has *xlarge screen and comes under mdpi* where as 
kindle fore has  *large screen and comes under mdpi.*
As i have placed all the graphics for xlarge screen under mdpi and now i 
also want to make the app compatible for kindle(As per android doc graphics 
for kinlde also goes to drawable-mdpi which is not possible because i have 
already graphics for xlarge screen under drawable-mdpi).

can anyone tell me what is best to manage this ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem refreshing a fragment edittext view from a dialogFragment after rotation

2012-06-07 Thread al
setTargetFragment / getTargetFragment as per my last reply.

Am Mittwoch, 6. Juni 2012 16:58:23 UTC+2 schrieb Bluemercury:

 Also, there's 2 factors:
 1- my DateTimePickerDialogFragment is being included in a different 
 library project, so it will not know the sub type of Fragment being passed.
 2- in one target fragment i will need, i have two edittexts in the same 
 fragment so the DateTimePickerDialogFragment must somehow point to the 
 correct edittext

 regards,


 On Wednesday, June 6, 2012 2:16:42 PM UTC+1, Bluemercury wrote:


 Hi al! i've read the answer from Dianne, and it seems i can declare an 
 interface in one fragment and then implement it on another. But for this i 
 need the pointer to the fragment in question, she said:

  take advantage of the FragmentManager APIs to save a fragment pointer 
 in a bundle and later retrieve it, to allow you to maintain direct pointers 
 across state save/restore. 

 What's the best way to do this? Here's my code to call the dialogfragment 
 in the main frag:

 dialFragment=DateTimePickerDialogFragment.newInstance(DateTimePickerDialogFragment.DATETIME_PICKER,
  
 dateBeginTV);
   dialFragment.show(fragMan, dialog);

 how can i send the pointer to the dialogfragment, and will it survive the 
 rotation?


 On Wednesday, June 6, 2012 8:20:30 AM UTC+1, al wrote:

 Ok, I assumed that text field was part of the activity. In your case 
 https://groups.google.com/forum/?fromgroups#!topic/android-developers/NBlMJnMaGboshould
  help, especially the answer of Dianne.

 In short: you might just do 
 dialogfragment.setTargetFragment(textfieldfragment) in the activity to 
 link the fragments. Android will then take care of that reference. In the 
 dialogFragment you can then pass the new value like 
 ((MyFragmentClass)getTargetFragment()).setDateTimeField(curDateTime()). 

  



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can't copy and paste Eclipse(Helios) to Windows

2012-06-07 Thread David Olsson
Copy the directory and not the project? Should be in your workspace, check
the properties for where the projects are.

On a second note, what are you trying to do?

Also, please don't spam the list for something it is not meant to be used
for.

On Thu, Jun 7, 2012 at 10:03 AM, Live Happy livehap...@gmail.com wrote:

 Cannot copy and paste directories from Eclipse(Helios) to Windows.also
 cannot do drag and drop how i can solve  this problem


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


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

2012-06-07 Thread TreKing
On Thu, Jun 7, 2012 at 2:08 AM, arun aruna...@gmail.com wrote:

 how to store a image in database use web services..


This has about zero to do with Android.

-
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: Non Repeating random number btw 1 to 1000

2012-06-07 Thread Mathieu Bosi
http://lmgtfy.com/?q=generate+non+Repeating+random+number

El jueves, 7 de junio de 2012 06:01:11 UTC+2, Hemant Chaudhari escribió:

 Hello,

 I want to generate non Repeating random number between 1 to 1000.
 If possible efficiently without any look up.
 Any pointers to solution will be helpful.

 -Thanks
 Hemant 


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

2012-06-07 Thread Deniz Tuna
You have to implement onShowCustomView and also onHideCustomView in your 
own webChromeClient class. After that you can view videos by clicking on 
them. However autoplay tag seems like not working with android from what i 
tried. Searching for google for how to view html5 video in android will 
take you to the answer. Good luck 
3 Haziran 2012 Pazar 22:02:21 UTC+3 tarihinde Angélica yazdı:

 Hello, 

 I am new in android, and I am developing an app, where I want to watch a 
 movie in a webview, using HTML 5, but the video doesn't appear, when I run 
 the app I can see only the video controls... 

 The code in html that I am using is:

 code = !DOCTYPE html +

   html +

   head +

   titleSimple Movie Player/title +

   /head +

   body +

   video src=\+ uri.toString() + \ +

controls +

   /video +

   /body +

   /html;

 The uri is from a video in the internal storage. I load this html code in 
 a webview by this command:

  webview.loadDataWithBaseURL(null, code, null, utf-8, null);

 Can anyone help me? I am trying very hard to do this!


 Thanks in advance,

 Angelica




 

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

2012-06-07 Thread Narendra Singh Rathore
On Wed, Dec 21, 2011 at 2:05 PM, kumar kkvarm...@gmail.com wrote:

 Hi,

 Thanks for your early reply Md.Fazla Rabbi.

 * I have noted your point, in my app  I am  also using same as this,  but
 here is  my requirement below*:
 1. Once i click on a button, it should give me three different sounds one
 after the other?  I have three music files, which should be run one after
 the other as soon as the music of first complete, then second should start,
 once the second is completed then third should start, and complete. How to
 provide duration for each audio file?

 *Here the problem is: *
 In my app audio files are with different duration lengths.
 How can I find the duration length and play each audio file?
 If anyone knows soon for this, Please provide me.


I got your problem, you want to play audio files one after the other.

*Here the solution is: *

Firstly, play the first audio file.
Then call the setOnCompletionListener on MediaPlayer like this:

mp.setOnCompletionListener()   // called on completion of the
currently playing audio.

start second audio file here, and similarly the third one.


*Note*: if you are using single MediaPlayer (object), you must have to use
if...else condition in onCompletionListener to check the currently playing
file, and switch to the next file according to it.


With Regards
NSR

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

2012-06-07 Thread Glen Cook
That's right there is a 4 by 4 matrix of theoretically possible
devices

However, you only need to include graphics for the 4 generalised
densities:
  drawable-hdpi
  drawable-ldpi
  drawable-mdpi
  drawable-xhdpi

One screen being physically larger than another doesn't mean it will
have more content...Density is the primary factor:

There is a good explanation here:
http://stackoverflow.com/questions/2638202/android-multiple-screen-sizes-with-same-density

Regards,
Glen

On Jun 7, 9:04 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 Hi,

 As i know there are 4 types of screen size and 4 types of density.But how
 to manage the graphics for different resolution under same density?

 Like Samsung galaxy 10.1 has *xlarge screen and comes under mdpi* where as
 kindle fore has  *large screen and comes under mdpi.*
 As i have placed all the graphics for xlarge screen under mdpi and now i
 also want to make the app compatible for kindle(As per android doc graphics
 for kinlde also goes to drawable-mdpi which is not possible because i have
 already graphics for xlarge screen under drawable-mdpi).

 can anyone tell me what is best to manage this ?

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


[android-developers] Animation...

2012-06-07 Thread abhijeet tomar
Hello Developers,

I have done frame Animation suceessfully and the frame images comes
from Drawable folder .
Actually problem is that...images are alot then we have not store in
Drawable folder..thats why images will be stored in SdCard...
Problem is that ,How to read images from sd card and set into
animation frame...
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


Re: [android-developers] soft keyboard not showing

2012-06-07 Thread marcin kolonko
yes, the keyboard shows when i tap inside.
should the default behavior not be, like, show keyboard when receive foucus?

On Friday, May 25, 2012 6:41:38 PM UTC+2, MagouyaWare wrote:

 in my layout xml i have a stubview. the layout that replaces the stubview 
 has a EditText view inside.
 but when i inflate stubview, the soft keyboard doesn't show automagically.

 Does the keyboard show when you tap inside the EditText?  That is the 
 default keyboard behavior...


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, May 24, 2012 at 7:17 AM, marcin kolonko makolo...@gmail.comwrote:

 hi,

 in my layout xml i have a stubview. the layout that replaces the stubview 
 has a EditText view inside.
 but when i inflate stubview, the soft keyboard doesn't show automagically.

 is this the default behaviour?

 i know i can show the keyboard myself, just want to know if i really have 
 to mess with the default behaviour of the keyboard/edittext.

  thx!

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




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

[android-developers] Test Deposits and Receive Payment Issues...???

2012-06-07 Thread RR
I checked the information on Developer website, Google would send Test 
deposits to verify bank account..
I am in Hong Kong, I want to know what currency will be?  USD or HKD?

Also what currency would be sent for monthly payment??


Thanks!!

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

[android-developers] Re: How to properly implement dismissing HTML5 video from WebView

2012-06-07 Thread Mariusz
Thanks Brian!

I'll need to pass it to MediaPlayer to take control!

Regards,
Mariusz

On Sunday, May 27, 2012 5:00:13 PM UTC+2, Brian wrote:

 Hello Mariusz,
Sorry about the slowness of my reply. In any case, getFocusedChild() 
 will return a VideoView object in froyo, and gingerbread.  
 But in Honeycomb and above it returns some inner class of 
 HTML5VideoFullScreen.  As a result much of the example code
 out there for playing video's embedded in webview's does not work on 
 honeycomb and gingerbread.

 --Brian

 On Wednesday, May 23, 2012 4:43:53 PM UTC-4, Mariusz wrote:

 Brian,

 I have exactly the same -  getFocusedChild()  method returns a 
 HTML5VideoFullScreen object, but I saw on several examples it 
 should/could(?) return a VideoView object.

 Regards,
 Mariusz

 On Wednesday, May 23, 2012 1:34:39 AM UTC+2, Brian wrote:

 Mariusz,
I almost can.

If you call getFocusedChild() on the FrameLayout, it returns a 
 HTML5VideoFullScreen$SurfaceViewHolder object, which is an inner class of 
 HTML5VideoFullScreen.
 I am not sure if there is way to access the HTML5VideoFullScreen object 
 from that SurfaceViewHolder.  However at this point, all these classes are 
 private APIs,
 and using them would likely be dangerous code, since these are not 
 interfaces that applications are suppose to be able to access.


 On Tuesday, May 22, 2012 7:07:24 PM UTC-4, Mariusz wrote:

 Brian,

 I have one question - are you able somehow to get access to Video 
 object on 'onShowCustomView(View, CustomViewCallback)' method?
 In my case view returns FrameLayout and callback returns 
 HTML5VideoFullScreen object.

 Thanks,
 Mariusz

 On Wednesday, May 23, 2012 12:40:16 AM UTC+2, Brian wrote:

 Mariusz,
Thank you.   I was getting hung up by the fact that I was 
 specifically using the key listener to listen for KEYCODE_BACK,
 using the onBackPressed() method seems to solve my issue. Thank you.


 On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote:

 Hi,

 I implemented back action in the following way (activity level):
 @Override
 public void onBackPressed() {
 if(mCustomView != null  mWebChromeClient != null)
 {
 mWebChromeClient.onHideCustomView();
 }
 }

 ...
 at MyWebChromeClient level:

 @Override
 public void onHideCustomView() {

 if (mCustomView == null)
 return;

 mCustomView.setVisibility(View.GONE);
 mCustomViewContainer.removeView(mCustomView);
 mCustomView = null;
 mCustomViewContainer.setVisibility(View.GONE);
 mCustomViewCallback.onCustomViewHidden();
 setStatusBarVisibility(true);
 mContentView.setVisibility(View.VISIBLE);
 }

 Regards,
 Mariusz

 On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote:


 I think that I should probably add to my description.. what I would 
 my goal is.

 My goal is for the HTML5 video to play in fullscreen mode, when the 
 use presses the fullscreen button,
 but when the users presses the back button to dismiss the video, but 
 still show the original webview.

 With the exception that i do not want to hide the video, if the 
 MediaController is currently visible in front of the video,
 in that case only the MediaController should get hidden (which 
 happens automatically)


 On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote:


 I think that I should probably add to my description.. what I would 
 my goal is.

 My goal is for the HTML5 video to play in fullscreen mode, when the 
 use presses the fullscreen button,
 but when the users presses the back button to dismiss the video, but 
 still show the original webview.

 With the exception that i do not want to hide the video, if the 
 MediaController is currently visible in front of the video,
 in that case only the MediaController should get hidden (which 
 happens automatically)


 On Tuesday, May 22, 2012 11:31:38 PM UTC+2, Brian wrote:


 I think that I should probably add to my description.. what I would 
 my goal is.

 My goal is for the HTML5 video to play in fullscreen mode, when the 
 use presses the fullscreen button,
 but when the users presses the back button to dismiss the video, but 
 still show the original webview.

 With the exception that i do not want to hide the video, if the 
 MediaController is currently visible in front of the video,
 in that case only the MediaController should get hidden (which 
 happens automatically)


 On Tuesday, May 22, 2012 5:37:55 PM UTC-4, Mariusz wrote:

 Hi,

 I implemented back action in the following way (activity level):
 @Override
 public void onBackPressed() {
 if(mCustomView != null  mWebChromeClient != null)
 {
 mWebChromeClient.onHideCustomView();
 }
 }

 ...
 at MyWebChromeClient level:

 @Override
 public void onHideCustomView() {

 if (mCustomView == null)
 return;

 mCustomView.setVisibility(View.GONE);
 mCustomViewContainer.removeView(mCustomView);
 

[android-developers] Context menu on custom listview....

2012-06-07 Thread jitendra patidar
Hi All...

hi i am using list view with custom adapter in which i am taking image view 
,text view and two button ,this is the one cell layout...i am display this 
list view in popup window. i want to show context menu when i click one of 
item of list but i unable to do this ...
i think it is not possible with custom adapter.. 

Thanks

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

Re: [android-developers] Animation...

2012-06-07 Thread Narendra Singh Rathore
On Thu, Jun 7, 2012 at 3:01 PM, abhijeet tomar abhijeet...@gmail.comwrote:

 Hello Developers,

 I have done frame Animation suceessfully and the frame images comes
 from Drawable folder .
 Actually problem is that...images are alot then we have not store in
 Drawable folder..thats why images will be stored in SdCard...
 Problem is that ,How to read images from sd card and set into
 animation frame...
 Please Help me...

 Thanks in Advance



Hi Abhijeet, here is your solution.

Use addFrame() method like this:

 animation.addFrame(BitmapDrawable.createFromPath (sdcard/image1.png),
250);


I hope, you got it.



With Regards,
NSR

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

Re: [android-developers] Animation Problem

2012-06-07 Thread Narendra Singh Rathore
On Thu, Jun 7, 2012 at 1:19 PM, abhijeet tomar abhijeet...@gmail.comwrote:

 Hello Developers,

 I have done frame Animation suceessfully and the frame images comes from
 Drawable folder .
 Actually problem is that...images are alot then we have not store in
 Drawable folder..thats why images will be stored in SdCard...
 Problem is that ,How to read images from sd card and set into animation
 frame...
 Please Help me...

 Thanks in Advance


Use this.

animation.addFrame(
BitmapDrawable.createFromPath (sdcard/image1.png), 250);

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

[android-developers] Fwd: یک وبلاگ جالب

2012-06-07 Thread hosein bitaraf
-- Forwarded message --
From: saeed jalalimanesh msaeed...@gmail.com
Date: 2012/5/31
Subject: یک وبلاگ جالب
To:



*سلام بر همه ی دوستان
امروز یک وبلاگی رو دیدم که داره سعی میکنه کالاهای با کیفیت ایرانی رو معرفی
کنه
نکته جالب این کار اینه که مردم میفهمن خیلی از کالاهایی رو که به اسم خارجی
میخرن در کشور خودمون داره تولید میشه
اگر این کار به درستی انجام بشه هم مردم اقبالشون به کالای ایرانی بیشتر میشه
و هم توسعه کشور زودتر اتفاق میفته
آدرس این وبلاگ هم اینه:
www.tolide.mihanblog.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: App talking to native ARM binary via sockets

2012-06-07 Thread Mika
This might help you 
http://stackoverflow.com/questions/7516018/android-localserversocket

-Mika

On Jun 7, 4:45 am, galapogos gois...@gmail.com wrote:
 Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked
 too.

 I would also like to use unix domain sockets, since I really only want the
 2 processes talking to each other rather than any external devices talking
 to my device. However, when I change AF_INET to AF_UNIX in the socket()
 call in my server and client, I get run time Invalid argument errors on
 bind() and connect() respectively.

 How do I make the switch to unix domain sockets? What am I missing?







 On Wednesday, June 6, 2012 11:13:07 PM UTC+8, Chris Stratton wrote:

  On Jun 6, 8:34 am, Tony Houghton h...@realh.co.uk wrote:

   10.0.2.2 is a special address so that apps in an emulator can connect to
   services on the host running the emulator. AIUI your service is running
   on the same Android device as the client so I think you want 127.0.0.1.

  Yes.  Not only is the special address the wrong computer, it's unique
  to emulators and not available on real devices.  If using a network
  socket, loopback is the answer.

  However, unless you absolutely have to emulate IP networking, it may
  be preferable to use a unix-domain socket rather than a network one.
  This will remove the requirement that any apk using it carry internet
  permission, while keeping many of the semantics comparable.

  While unix domain sockets aren't the first choice for IPC within
  android (that would be Binder) they definitely are used within android
  itself, for example the connection between the adb daemon and a
  debuggable app process which makes java debugging possible is done via
  a unix socket.

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

2012-06-07 Thread Narendra Singh Rathore
Are you sure, your device supports swf file, or you have proper
plugin/player for it?
May be that's 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] instance count violation

2012-06-07 Thread marcin kolonko
hi,
i have an app with two classes:

*SelectItemActivity** extends **AbstractListActivity,* and *
AbstractListActivity extends Activity*
*
*
(~20 lines of code each) - not much to screw up i thought...

links to pastebin:
*AbstractListActivity* : http://pastebin.com/iKEa3d3a
*SelectItemActivity : *http://pastebin.com/UC01gvTg
*Menu*: http://pastebin.com/vjL1r28q

now, when i click on the button in the actionbar, switch to landscape and 
then back to portrait, the app crashes and i get this error:
*android.os.StrictMode$InstanceCountViolation: class 
ch.futurecom.MeetingMaid.view.SelectItemActivity; instances=2; limit=1*
*
*
does anyone have a clue what's going on?

thx

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

[android-developers] ExpandableListView advice

2012-06-07 Thread Ash
Hi All,

Wondering if someone can advice me on the following issue I have with my 
application.

My app (running on Android 2.2) has an expandable list view. It connects to 
a server and receives a number of items. Items can be none or in the range 
of 100's. I do not get a count of how many items I will receive. The items 
just keep coming. The items also come in random order. Each item has a 
unique ID.

I would like to present these items on my ExpandableListView in a sorted 
manner (sorted by unique ID). Also each item will have one child which 
presents the user with information on that list (mostly in the form of 
textview and images)..

For every new item that I receive from the server, I will add it to my 
local buffer (ArrayList). Once added, I sort the array and then add it to 
the ExpandableListView and call notifyDataSetChanged.

The problem is that in the function getGroupView, convertView is only null 
the very first time. Once I inflate view it will use that, however, after 
sorting, the view then holds incorrect data.

To solve the issue of showing correct data, I have to update the converView 
to show new data. However, then then presents a jerky scrolling as a lot of 
garbage collection starts to take place (as seen in LogCat).

As I do not have any method of knowing that I have received all data from 
the server, I cannot wait on any external flag which means that as soon as 
I receive an item, I have to immediately add it, sort it and display it.

So how can I properly implement the 'getGroupView' function so that it has 
the correct convertView of my item at any given time?

Any advice would be appreciated.

Thanks

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

[android-developers] how to avoid the creation of journal file in android.

2012-06-07 Thread Animesh kumar bhadra
Hi All,

I read through these two links:-

   1.
   
http://stackoverflow.com/questions/10046596/android-sqlite-journal-how-to-disable
   2.
   
http://www.android-app-market.com/sqlite-optimization-in-android-programming-sqlite-optimization-in-android-apps.html

and wanted to implement these and avoid the creation of journal file.

Here is my code:-

public void onOpen(SQLiteDatabase db) {
// TODO Auto-generated method stub
db.rawQuery(PRAGMA journal_mode=DELETE,null);
System.out.println(EventsData.onOpen());
super.onOpen(db);
}
which is according to option 1 listed above, i also tried OFF in place of
DELETE in the above query.

also as per the second option i did this:-
private void addEvent() {
SQLiteDatabase db = events.getWritableDatabase();
ContentValues values = new ContentValues();

db.beginTransaction();
try {
for(int i = 5; i  10; i++){
values.put(TIME, System.currentTimeMillis());
values.put(TITLE, MyString +i);
db.insertOrThrow(TABLE_NAME, null, values);
}
db.setTransactionSuccessful();
}finally{
db.endTransaction();
events.close();
}
}

but in both the case the journal file is getting created, can anyone please
let me know why is this happening and how can i avoid it?

Any help will be appreciated.

Regards,
Animesh K. Bhadra.

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

2012-06-07 Thread RAJESH RAJARAM
Yes, Thank you JP... I got the solution...

//Creating new File in sdcard
byte[] bytes;
File createfile = new File(/sdcard/Androidrox/);
createfile.mkdirs();
File outputFile = new File(createfile, Sample.pdf);
FileOutputStream fos = new FileOutputStream(outputFile);


//Writing into the PDF File
strByte = (xpp.getText().toString());
bytes = Base64.decode(strByte.toString(),Base64.DEFAULT);//Converting 
Base64 to byte
String filepath = /sdcard/Androidrox/Sample.pdf;
OutputStream pdffos = new FileOutputStream(filepath);
pdffos.write(bytes);
pdffos.flush();
pdffos.close();

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

2012-06-07 Thread Kostya Vasilyev
http://www.sqlite.org/pragma.html#pragma_journal_mode


The OFF journaling mode disables the rollback journal completely. No
rollback journal is ever created and hence there is never a rollback
journal to delete. *The OFF journaling mode disables the atomic commit and
rollback capabilities of SQLite*. The ROLLBACK command no longer works; it
behaves in an undefined way. Applications must avoid using the ROLLBACK
command when the journal mode is OFF. *If the application crashes in the
middle of a transaction when the OFF journaling mode is set, then the
database file will very likely go corrupt.*


Are you sure you want to do this?

-- K

2012/6/7 Animesh kumar bhadra animesh.bhadr...@gmail.com

 Hi All,

 I read through these two links:-

1.

 http://stackoverflow.com/questions/10046596/android-sqlite-journal-how-to-disable
2.

 http://www.android-app-market.com/sqlite-optimization-in-android-programming-sqlite-optimization-in-android-apps.html

 and wanted to implement these and avoid the creation of journal file.

 Here is my code:-

 public void onOpen(SQLiteDatabase db) {
 // TODO Auto-generated method stub
 db.rawQuery(PRAGMA journal_mode=DELETE,null);
 System.out.println(EventsData.onOpen());
 super.onOpen(db);
 }
 which is according to option 1 listed above, i also tried OFF in place of
 DELETE in the above query.

 also as per the second option i did this:-
 private void addEvent() {
 SQLiteDatabase db = events.getWritableDatabase();
 ContentValues values = new ContentValues();

 db.beginTransaction();
 try {
 for(int i = 5; i  10; i++){
 values.put(TIME, System.currentTimeMillis());
 values.put(TITLE, MyString +i);
 db.insertOrThrow(TABLE_NAME, null, values);
 }
 db.setTransactionSuccessful();
 }finally{
 db.endTransaction();
 events.close();
 }
 }

 but in both the case the journal file is getting created, can anyone
 please let me know why is this happening and how can i avoid it?

 Any help will be appreciated.

 Regards,
 Animesh K. Bhadra.

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

2012-06-07 Thread surabhi jain
hi all,

I want to post data on server by get method.
Please send me the code.

Thanks
Surabhi

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

2012-06-07 Thread marcin kolonko
ok, i did some memory digging with ddms and memory analizer. and there' 
s weird behavior:

when i run the garbage collector while in portrait mode (still the same 
case us in first post) and come back to portrait mode, nothing bad happens. 
the app behaves as it should.
when i don't run the garbage collector, the app crashes with the instance 
count violation error.

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

2012-06-07 Thread marcin kolonko
ok, i did some memory digging with ddms and memory analizer. and there' 
s weird behavior:

when i run the garbage collector while in portrait mode (still the same 
case us in first post) and come back to portrait mode, nothing bad happens. 
the app behaves as it should.
when i don't run the garbage collector, the app crashes with the instance 
count violation error.

On Thursday, June 7, 2012 12:39:58 PM UTC+2, marcin kolonko wrote:

 hi,
 i have an app with two classes:

 *SelectItemActivity** extends **AbstractListActivity,* and *
 AbstractListActivity extends Activity*
 *
 *
 (~20 lines of code each) - not much to screw up i thought...

 links to pastebin:
 *AbstractListActivity* : http://pastebin.com/iKEa3d3a
 *SelectItemActivity : *http://pastebin.com/UC01gvTg
 *Menu*: http://pastebin.com/vjL1r28q

 now, when i click on the button in the actionbar, switch to landscape and 
 then back to portrait, the app crashes and i get this error:
 *android.os.StrictMode$InstanceCountViolation: class 
 ch.futurecom.MeetingMaid.view.SelectItemActivity; instances=2; limit=1*
 *
 *
 does anyone have a clue what's going on?

 thx


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

[android-developers] Re: how to avoid the creation of journal file in android.

2012-06-07 Thread animesh kumar bhadra
Hi,

I will take care for the journal rollback, but i want to know why the
file is getting created though i am making it off.

Also, i am running this on emulator.

Regards,
Animesh.

On Jun 7, 5:47 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 http://www.sqlite.org/pragma.html#pragma_journal_mode



 The OFF journaling mode disables the rollback journal completely. No
 rollback journal is ever created and hence there is never a rollback
 journal to delete. *The OFF journaling mode disables the atomic commit and
 rollback capabilities of SQLite*. The ROLLBACK command no longer works; it
 behaves in an undefined way. Applications must avoid using the ROLLBACK
 command when the journal mode is OFF. *If the application crashes in the
 middle of a transaction when the OFF journaling mode is set, then the
 database file will very likely go corrupt.*
 

 Are you sure you want to do this?

 -- K

 2012/6/7 Animesh kumar bhadra animesh.bhadr...@gmail.com







  Hi All,

  I read through these two links:-

     1.
     http://stackoverflow.com/questions/10046596/android-sqlite-journal-ho...
     2.
     http://www.android-app-market.com/sqlite-optimization-in-android-prog...

  and wanted to implement these and avoid the creation of journal file.

  Here is my code:-

  public void onOpen(SQLiteDatabase db) {
          // TODO Auto-generated method stub
          db.rawQuery(PRAGMA journal_mode=DELETE,null);
          System.out.println(EventsData.onOpen());
          super.onOpen(db);
      }
  which is according to option 1 listed above, i also tried OFF in place of
  DELETE in the above query.

  also as per the second option i did this:-
  private void addEvent() {
          SQLiteDatabase db = events.getWritableDatabase();
          ContentValues values = new ContentValues();

          db.beginTransaction();
          try {
              for(int i = 5; i  10; i++){
                  values.put(TIME, System.currentTimeMillis());
                  values.put(TITLE, MyString +i);
                  db.insertOrThrow(TABLE_NAME, null, values);
              }
              db.setTransactionSuccessful();
          }finally{
              db.endTransaction();
              events.close();
          }
      }

  but in both the case the journal file is getting created, can anyone
  please let me know why is this happening and how can i avoid it?

  Any help will be appreciated.

  Regards,
  Animesh K. Bhadra.

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

2012-06-07 Thread Kostya Vasilyev
I remember seeing this in one of my apps in certain cases.

My conclusion was that this might be a bug in strict mode code, and
disabled it.

Activity orientation changes are processed within a single message loop
heartbeat, so it's entirely possible that the lifecycles of both activity
instances overlap.

-- K

2012/6/7 marcin kolonko makolo...@gmail.com

 ok, i did some memory digging with ddms and memory analizer. and there'
 s weird behavior:

 when i run the garbage collector while in portrait mode (still the same
 case us in first post) and come back to portrait mode, nothing bad happens.
 the app behaves as it should.
 when i don't run the garbage collector, the app crashes with the instance
 count violation error.


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

2012-06-07 Thread David Olsson
www.google.com
Noone is going to do the work for you.

On Thu, Jun 7, 2012 at 3:45 PM, surabhi jain surabhi17.j...@gmail.comwrote:

 hi all,

 I want to post data on server by get method.
 Please send me the code.

 Thanks
 Surabhi

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Issue 32545: Android dialog asks for pin code to pair during connect to socket, but device was already paired

2012-06-07 Thread Jim Morris
I have submitted an Android bug report: Issue 32545:Android dialog
asks for pin code to pair during connect to socket, but device was
already paired

This is a VERY serious problem for my app that is ready to go to
market. I have no workaround. Apparently nobody at Google has even
looked at my bug report in over a week.

I am dead in the water until I get a workaround or a bug fix (I would
rather have a workaround).

Google is mega company. They could hire a thousand contractors or
employees to work on bug fixes.

Why is this happening? I need a response. I need a workaround.

Does anybody at google read this forum.

Google: You have my email address. Please send me a workaround ASAP.
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


Re: [android-developers] Re: instance count violation

2012-06-07 Thread Daniel Drozdzewski
On 7 June 2012 15:06, Kostya Vasilyev kmans...@gmail.com wrote:
 I remember seeing this in one of my apps in certain cases.

 My conclusion was that this might be a bug in strict mode code, and disabled
 it.

 Activity orientation changes are processed within a single message loop
 heartbeat, so it's entirely possible that the lifecycles of both activity
 instances overlap.


+1

Setting launchMode to 'singleInstance' can solve this 'issue', as it
will force each (re)created activity to launch in a separate task.
However the wider issue to consider is that
StrictMode.ThreadPolicy.Builder.detectAll() detects *potential*
problems.

The fact that once GCed the activity dissapears, means that it will
get eventually cleared and is not a leak.


Daniel



 2012/6/7 marcin kolonko makolo...@gmail.com

 ok, i did some memory digging with ddms and memory analizer. and there'
 s weird behavior:

 when i run the garbage collector while in portrait mode (still the same
 case us in first post) and come back to portrait mode, nothing bad happens.
 the app behaves as it should.
 when i don't run the garbage collector, the app crashes with the instance
 count violation error.


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



-- 
Daniel Drozdzewski

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

2012-06-07 Thread Ethan Gao
hi all:

  There is a new feature in android 4.0 which is that user is able
to disable pre-install applications. Is there an Intent that android
system will sent out when disabling an application?

thanks

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


Re: [android-developers] Re: instance count violation

2012-06-07 Thread Kostya Vasilyev
RIght, the activity instance tracker depends on GC to decrement its value.

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/Activity.java#L732

https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/StrictMode.java#L2149

Using onDestroy/onCreate would let the count be more accurate during
orientation changes... but won't track memory leaks caused by Context
references, which probably is a more common issue.

-- K

2012/6/7 Daniel Drozdzewski daniel.drozdzew...@gmail.com

 On 7 June 2012 15:06, Kostya Vasilyev kmans...@gmail.com wrote:
  I remember seeing this in one of my apps in certain cases.
 
  My conclusion was that this might be a bug in strict mode code, and
 disabled
  it.
 
  Activity orientation changes are processed within a single message loop
  heartbeat, so it's entirely possible that the lifecycles of both activity
  instances overlap.


 +1

 Setting launchMode to 'singleInstance' can solve this 'issue', as it
 will force each (re)created activity to launch in a separate task.
 However the wider issue to consider is that
 StrictMode.ThreadPolicy.Builder.detectAll() detects *potential*
 problems.

 The fact that once GCed the activity dissapears, means that it will
 get eventually cleared and is not a leak.


 Daniel


 
  2012/6/7 marcin kolonko makolo...@gmail.com
 
  ok, i did some memory digging with ddms and memory analizer. and there'
  s weird behavior:
 
  when i run the garbage collector while in portrait mode (still the same
  case us in first post) and come back to portrait mode, nothing bad
 happens.
  the app behaves as it should.
  when i don't run the garbage collector, the app crashes with the
 instance
  count violation error.
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Daniel Drozdzewski

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

2012-06-07 Thread Hitendrasinh Gohil
Hi,

For xlarge/mdpi(samsung galaxy 10.1):-

Suppose i have one screen in which there are 2 section. One section has
700x800px image in background and other section has 580x800px background
image.Each section contains different types of views.

how can i manage with large/mdpi screen(i.e 1024x600)?







On Thu, Jun 7, 2012 at 2:47 PM, Glen Cook glenandr...@googlemail.comwrote:

 That's right there is a 4 by 4 matrix of theoretically possible
 devices

 However, you only need to include graphics for the 4 generalised
 densities:
  drawable-hdpi
  drawable-ldpi
  drawable-mdpi
  drawable-xhdpi

 One screen being physically larger than another doesn't mean it will
 have more content...Density is the primary factor:

 There is a good explanation here:

 http://stackoverflow.com/questions/2638202/android-multiple-screen-sizes-with-same-density

 Regards,
 Glen

 On Jun 7, 9:04 am, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:
  Hi,
 
  As i know there are 4 types of screen size and 4 types of density.But how
  to manage the graphics for different resolution under same density?
 
  Like Samsung galaxy 10.1 has *xlarge screen and comes under mdpi* where
 as
  kindle fore has  *large screen and comes under mdpi.*
  As i have placed all the graphics for xlarge screen under mdpi and now i
  also want to make the app compatible for kindle(As per android doc
 graphics
  for kinlde also goes to drawable-mdpi which is not possible because i
 have
  already graphics for xlarge screen under drawable-mdpi).
 
  can anyone tell me what is best to manage this ?

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




-- 
regards,
Hitendrasinh Gohil

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

2012-06-07 Thread Dianne Hackborn
On Thu, Jun 7, 2012 at 2:17 AM, Glen Cook glenandr...@googlemail.comwrote:

 That's right there is a 4 by 4 matrix of theoretically possible
 devices


Definitely don't think of things as a matrix where you have NxM boxes to
consider.  That generally makes things look a lot more complicated than
they are, and these days there are no longer clear buckets for size:
http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

You should almost always approach this as density and size being separate
independent axis; generally density impacts images and size impacts layouts.

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

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

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

[android-developers] onConfigurationChanged() is not called when flipping between landscape and reverse landscape?

2012-06-07 Thread Farmer
Hi there,

On ICS, when I flip the phone between landscape and reverse landscape,
it seems onConfigurationChanged() won't be called. How can I get
notified when such event happens, or did I miss anything here?

Thanks in advance!

best,
duanxiaotao

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

2012-06-07 Thread Dianne Hackborn
On Thu, Jun 7, 2012 at 8:31 AM, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:

 Suppose i have one screen in which there are 2 section. One section has
 700x800px image in background and other section has 580x800px background
 image.Each section contains different types of views.
 how can i manage with large/mdpi screen(i.e 1024x600)?


Stop thinking in pixels, and use layout managers to organize your screen.

Yes this means building a pixel-perfect background that you carefully
position your UI on top of is not going to work.  Well that's okay, because
unless there were only a few sizes of screens in all the world, it really
doesn't work. :)

In Android where there are backgrounds, these are designed to be things
that can be stretched when drawn as needed to fill whatever space they are
in.

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

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

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

[android-developers] Re: View contact based on contact id - not always shows the right contact

2012-06-07 Thread A. Elk
A new dev guide for the contacts provider is now available on 
developer.android.com

http://developer.android.com/guide/topics/providers/contacts-provider.html.

On Wednesday, June 6, 2012 2:34:42 AM UTC-7, Balint wrote:

 I query the phone's calllog into a ListView. So when the user long clicks 
 an item, a dialog comes up with options, including View contact. To be 
 able to view the contact the intent needs the contact id. From the calllog 
 I get the contact id by the phone number.
 My problem is that I not always get to see the right contact. I click on 
 Peter, and Peter's contact sheet comes up. I click on Sarah, and Jason's 
 contact sheet comes up.

 I must have been using this code the wrong way. Please help.

 ContentResolver contentResolver = getContentResolver();
 
 Uri uri = 
 Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, 
 Uri.encode(phone));
 
 Cursor cursor =  contentResolver.query(uri, new String[] 
 {PhoneLookup.DISPLAY_NAME, PhoneLookup._ID}, null, null, null);
 
 if(cursor!=null) {
while(cursor.moveToNext())
{
   String contactName = 
 cursor.getString(cursor.getColumnIndexOrThrow(PhoneLookup.DISPLAY_NAME));
   contactid2 = 
 cursor.getString(cursor.getColumnIndexOrThrow(PhoneLookup._ID));
   }
   cursor.close();
 }
   
 Intent intent_contacts = new Intent(Intent.ACTION_VIEW, 
 Uri.parse(content://contacts/people/ + contactid2));
  startActivity(intent_contacts);

 Maybe what I need is not the PhoneLookup._ID, but some other ID.

  - on a HTC Desire HD (2.3.5) I get the proper contacts in 99% of the
cases.
  - on a ZTE Blade (2.2) I get the proper contacts in 60% of the cases.
  - on a Samsung Galaxy Ace (2.3.3) I get the proper contacts in 5% of the 
 cases.

 What the hell is going on???


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

2012-06-07 Thread Dianne Hackborn
On Thu, Jun 7, 2012 at 7:29 AM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 Setting launchMode to 'singleInstance' can solve this 'issue', as it
 will force each (re)created activity to launch in a separate task.


OMG, do NOT use singleInstance to solve the problem.  This is a very
special launch mode that has major subtle repercussions on the management
and flow of your app that you almost certainly DO NOT WANT.

And to be honest, it would have no impact on what is being reported here (a
problem when rotating) because singleInstance doesn't impact the fact that
the activity is being destroyed and recreated.

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

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

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

Re: [android-developers] Context menu on custom listview....

2012-06-07 Thread TreKing
On Thu, Jun 7, 2012 at 5:12 AM, jitendra patidar govajiten...@gmail.comwrote:

 i want to show context menu when i click one of item of list but i unable
 to do this ...


Why are you unable to do this? What have you tried that is not working?


 i think it is not possible with custom adapter..


Why would you think that?

-
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] ExpandableListView advice

2012-06-07 Thread TreKing
On Thu, Jun 7, 2012 at 6:37 AM, Ash anan...@gmail.com wrote:

 as soon as I receive an item, I have to immediately add it, sort it and
 display it.


Use a collection data structure that maintains sorting and is optimized for
inserting new elements. Adding an item to an ArrayList and then sorting *each
time* is asking for slowness.


 So how can I properly implement the 'getGroupView' function so that it has
 the correct convertView of my item at any given time?


Updating the convertView is what you're supposed to be doing, as it can and
will contain data from rows that no longer visible and thus eligible for
recycling.

-
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] http get method

2012-06-07 Thread TreKing
On Thu, Jun 7, 2012 at 8:45 AM, surabhi jain surabhi17.j...@gmail.comwrote:

 I want to post data on server by get method.


A) This has nothing to do with this list.
B) If you want to post by using get, you're seriously confused.


 Please send me the code.


C) Please send me the money.

-
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: How to retrieve Intents used by installed apps on the phone

2012-06-07 Thread michael
Hi,all, thanks for the discussions and great feedback.

I think, I am a bit confused about this discussion.

What I want: 1) get the Intent without running the app ; 2) get the
Intent without decompiling the Android app.  3) I just want the major
Intents to
invokes the deputy apps , e.g., Email, Browser, Camera,  SMS

What is the best location should I look for them in Andorid?

Thanks.

On Jun 6, 7:42 pm, Kristopher Micinski krismicin...@gmaiil.com
wrote:
 Right, you're necessarily making an approximation, and ,
 very unsound one.  But, who knows, maybe for what the OP wants,
 knowing the list of possible intents is enough, he hasn't said
 anything about that.

 I still think that what the more sensible thing (and also off topic
 for this list) to do is to dynamically monitor intents as they are
 sent by apps.  I could see this having potential for security
 enhancing applications, or something related..

 If this is the case, you'll want to look into the package manager..

 kris







 On Wed, Jun 6, 2012 at 9:35 PM, Dianne Hackborn hack...@android.com wrote:
  Any web browser can generate an infinite number of intents, especially since
   web pages can use the intent: scheme to provide a detailed intent
  specification for a link.

  On Tue, Jun 5, 2012 at 10:44 PM, Kristopher Micinski
  krismicin...@gmail.com wrote:

  Of potential interest along this same line is Stowaway,

 http://android-permissions.org/

  It's analysis, while necessarily static, seems to work quite well, for
  the perhaps uninteresting cases..

  And of course, as Chris points out, you can imagine situations where
  the user constructs intents using strings input by the user, but in
  practice, you're almost never going to see a string for an intent
  object that can't be reconstructed by using some global constant
  propagation.  The exception to this case is when you have some strange
  RPC sharing pattern, but I've never seen that.  In these cases any
  analysis will simply fail, and usually error on the side of caution,
  telling you you do in fact need the permission..

  kris

  On Wed, Jun 6, 2012 at 1:40 AM, Kristopher Micinski
  krismicin...@gmail.com wrote:
   On Wed, Jun 6, 2012 at 1:17 AM, Chris Stratton cs07...@gmail.com
   wrote:
   On Jun 5, 7:29 pm, Kristopher Micinski krismicin...@gmail.com wrote:
Is there any way to retrieve the Intents used by intalled apps on
the
phone? For example, how do I know that one app could send an Intent
to
invoke Camera app or Email app or Text Message app?

   But you could track this in the system, of course, which is what I
   assume the OP wanted to do..

   Well, you can't really detect the potential (how do I know that one
   app could) due to the potential crossovers between inputs, data, and
   code represented by things like intent objects and reflection.

   I spend a fair amount of time in research on static analysis of
   permissions in Android apps doing exactly this, ;-)...

   A number of other systems try to do the same..
  http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.148.2511

   You can however detect the actual attempt as it occurs, to a degree by
   watching the logs, and more substantially by modifying the platform to
   in effect breakpoint Intent sending.

   Right, I think that's what I said, isn't it?  I don't think I
   mentioned potential, just dynamically, which is, as I said, what I
   interpreted the OP to mean...

   kris

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

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

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

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

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


Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-07 Thread Mark Murphy
On Thu, Jun 7, 2012 at 2:06 PM, michael xuetao@gmail.com wrote:
 I think, I am a bit confused about this discussion.

We are a bit confused by your questions.

 What I want: 1) get the Intent without running the app

Please use a minimum of 50 words to explain what you mean by this.

 ; 2) get the
 Intent without decompiling the Android app.

Please use another minimum of 50 words to explain what you mean by this.

 3) I just want the major
 Intents to
 invokes the deputy apps , e.g., Email, Browser, Camera,  SMS

What is a deputy app? What is a major Intent?

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Re: How to retrieve Intents used by installed apps on the phone

2012-06-07 Thread Kristopher Micinski
  3) I just want the major
 Intents to
 invokes the deputy apps , e.g., Email, Browser, Camera,  SMS

 What is a deputy app? What is a major Intent?


Let me try to project what he wants: a list of the intent filters, as
they would come from the manifest.

Question: why do you want this?  The only reason to have this is
because you're sending generated strings to apps to coerce them to do
bad things.

What you want to know is if some intent is available, for that you can
use the package manager, which is a much more sensible thing to do.

http://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities(android.content.Intent,
int)

I.e., there is no use in knowing a complete list of available intents,
other than trying to attack the things on the device.  However, if you
have a specific intent in mind, and want to find someone who will
respond to it, you can find out through the package manager.

And I would guess by major intents, he means preinstalled apps, or
something like that...

kris

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

2012-06-07 Thread Kristopher Micinski
On Thu, Jun 7, 2012 at 1:29 PM, TreKing treking...@gmail.com wrote:
 On Thu, Jun 7, 2012 at 8:45 AM, surabhi jain surabhi17.j...@gmail.com
 wrote:

 I want to post data on server by get method.


 A) This has nothing to do with this list.
 B) If you want to post by using get, you're seriously confused.


Actually, sending data to a server using GET isn't unreasonable..he's
probably just speaking in a place that has a lot of ambiguous
terminology, which should be clarified...

kris

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

2012-06-07 Thread Kristopher Micinski
Oh, and look at HttpClient -- that's the one you want...

kris

On Thu, Jun 7, 2012 at 2:36 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 On Thu, Jun 7, 2012 at 1:29 PM, TreKing treking...@gmail.com wrote:
 On Thu, Jun 7, 2012 at 8:45 AM, surabhi jain surabhi17.j...@gmail.com
 wrote:

 I want to post data on server by get method.


 A) This has nothing to do with this list.
 B) If you want to post by using get, you're seriously confused.


 Actually, sending data to a server using GET isn't unreasonable..he's
 probably just speaking in a place that has a lot of ambiguous
 terminology, which should be clarified...

 kris

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


[android-developers] Data from Bluetooth Device to Android Phone to Online Server

2012-06-07 Thread Akeem W.
I am attempting to send raw data collected from a Bluetooth device
connected to my Android phone to an online server. What are some
recommended websites, tutorials, or example codes available online
that would help me get started with the process of sending data
between the Android phone and an online server?

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


[android-developers] Android DPI problems

2012-06-07 Thread Tommy Hartz
Hey everyone, I am a little confused on something. I have created multiple
layouts for different screen sizes. The problem I run into is that on my HTC
Inspire I have a normal screen with ~217dpi, on the droid X it reports to
have a normal screen but it has ~220 dpi. When I run my app it pulls the
right layout but the images on the screen have huge spaces in between them
yet on my HTC everything appears how it should. How can I avoid this issue?
It is incredibly frustrating.

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

2012-06-07 Thread RichardC
Can you attach a small sample layout that shows the problem(s) you are 
having.

On Thursday, June 7, 2012 8:44:12 PM UTC+1, Tommy wrote:

 Hey everyone, I am a little confused on something. I have created multiple 
 layouts for different screen sizes. The problem I run into is that on my 
 HTC 
 Inspire I have a normal screen with ~217dpi, on the droid X it reports 
 to 
 have a normal screen but it has ~220 dpi. When I run my app it pulls the 
 right layout but the images on the screen have huge spaces in between them 
 yet on my HTC everything appears how it should. How can I avoid this 
 issue? 
 It is incredibly frustrating. 



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

[android-developers] Eclipse dev/debug on different machine than where Android device is connected?

2012-06-07 Thread SChaser
I would like to be able to debug (using Eclipse) an Android app when
the device is USB connected to a different machine.

Is this possible, and if so, how?

Reason:
  I'd like to have a single machine that contains my Android
development environment, but be able to access it (via Remote Desktop
for windows) from remote machines which would have the Android device
plugged in.

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


Re: [android-developers] Android DPI problems

2012-06-07 Thread Dianne Hackborn
You shouldn't be thinking about dpi at all.

You will currently encounter devices with only 5 densities: 120, 160, 213,
240, 320.

Every device will have one of those densities; 217dpi and 220dpi are not
valid densities.  You will care about this pretty much only for your
graphics, though the platform will scale your graphics if it does.

This is also relevant for text sizes and units used in layouts, but in
those cases you just use sp or dp units and it is taken care of for
you.  So for your layouts you should basically not care about densities at
all, just do your layouts in dp units as if you were on a medium density
screen and let the platform take care of it for you.

I strongly discourage the use of other units like in and mm -- many
devices do not report the correct true physical density, so you
unfortunately can't count on them working correctly.  Fortunately you
shouldn't need to, because 99% of the time you want to be operating in
density units not true dpi.

On Thu, Jun 7, 2012 at 12:44 PM, Tommy Hartz droi...@gmail.com wrote:

 Hey everyone, I am a little confused on something. I have created multiple
 layouts for different screen sizes. The problem I run into is that on my
 HTC
 Inspire I have a normal screen with ~217dpi, on the droid X it reports to
 have a normal screen but it has ~220 dpi. When I run my app it pulls the
 right layout but the images on the screen have huge spaces in between them
 yet on my HTC everything appears how it should. How can I avoid this issue?
 It is incredibly frustrating.

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




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

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

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

[android-developers] Can actionViewClass invoke a ListFragment?

2012-06-07 Thread bsquared
Hello,
I may be barking up the wrong tree.  I have a actionbar item with the
actionViewClass property set to a ListFragment class like this
android:actionViewClass=com.example.android.SampleListFragment
I want the list fragment to be displayed when the action button is
clicked.  Log info messages indicate that the click event is
happening; however, the list fragment is not displayed.

Can anyone point me to an example implementation of using
actionViewClass with a user class target?

Thank you.

Regards,
Brian

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

2012-06-07 Thread Jim Anderson
I've tried moving all the data tags for each intent filter into one tag,
and adding a mimetype attribute, but that doesn't work. Intent filters both
with separate or consolidated data tags works in 2.2. I haven't gotten a
lot of time at my dev box over the last few days, but the next thing I want
to try is to generate a plain Android 4 emulator image and see if my
Linkify code works with that.

About 15% of my players have Android 4, and I haven't gotten any reports of
this from the field, so I'm starting to suspect it is HTC-specific. The
Android 4 emulator test should tell me more. I'll keep you folks informed
about what I find out.

Cheers,
Jim

Fear is the dark room where the Devil develops his negatives.

   - Gary Busey


On Tue, Jun 5, 2012 at 4:05 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Mon, Jun 4, 2012 at 6:32 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
  Or it might be a missing mimeType attribute in the intent filter (since
 the
  uri uses the content scheme).

 Having consulted with some HTCians, the Linkify change they made
 simply blocks the appearance of a chooser. If there is more than one
 activity that handles a given Intent triggered by the Linkify link,
 they go with the default.

 So, while it's possible the HTC Linkify somehow fits, it seems less
 likely, unless there's a bug in their implementation. Hence, I agree
 that the intent-filter may be the problem. I'd first try:

 data android:scheme=content android:host=com.ctenophore.gso.help /

 which more accurately describes your scenario (right now, you claim to
 handle everything in the content:// scheme, and *also* claiming to
 handle everything with your specified host). If that does not help,
 add in android:mimeType=... to the one data element, replacing ...
 with the appropriate value for whatever this activity handles. For
 example, if you are linking to HTML pages, use
 android:mimeType=text/html.

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

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


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

RE: [android-developers] Android DPI problems

2012-06-07 Thread Tommy Hartz
Well all of my layouts are using dp to specify the width/height of the
images. Is there a way I can get what density the screen reports back to
android and drop it in a toast or something so I can see which of the 5 it
is? The phone that really gives me the issue is the Droid X. The dimensions
are nearly idendical as far as resolution but I guess the Droid X has a
higher density than the HTC Inspire.

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn
Sent: Thursday, June 07, 2012 4:28 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Android DPI problems

 

You shouldn't be thinking about dpi at all.

 

You will currently encounter devices with only 5 densities: 120, 160, 213,
240, 320.

 

Every device will have one of those densities; 217dpi and 220dpi are not
valid densities.  You will care about this pretty much only for your
graphics, though the platform will scale your graphics if it does.

 

This is also relevant for text sizes and units used in layouts, but in those
cases you just use sp or dp units and it is taken care of for you.  So
for your layouts you should basically not care about densities at all, just
do your layouts in dp units as if you were on a medium density screen and
let the platform take care of it for you.

 

I strongly discourage the use of other units like in and mm -- many
devices do not report the correct true physical density, so you
unfortunately can't count on them working correctly.  Fortunately you
shouldn't need to, because 99% of the time you want to be operating in
density units not true dpi.

On Thu, Jun 7, 2012 at 12:44 PM, Tommy Hartz droi...@gmail.com wrote:

Hey everyone, I am a little confused on something. I have created multiple
layouts for different screen sizes. The problem I run into is that on my HTC
Inspire I have a normal screen with ~217dpi, on the droid X it reports to
have a normal screen but it has ~220 dpi. When I run my app it pulls the
right layout but the images on the screen have huge spaces in between them
yet on my HTC everything appears how it should. How can I avoid this issue?
It is incredibly frustrating.

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





 

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

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

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

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

Re: [android-developers] Re: Change time/date

2012-06-07 Thread lcs_godoy

Hi Jim, thanks for the reply.


Em segunda-feira, 21 de maio de 2012 15h09min38s UTC-3, Spooky escreveu:

 On Mon, May 21, 2012 at 08:12:33AM -0700, lcs_godoy wrote: 
  I mean, a way to change time and date without root access on android 
  programmatically. 

 Nope.  Unfortunately, you can't do it without root.  Sucks, too, because 
 the time on the ATT network (which my phone uses) is fscked.  It's 
 generally off by at least 45 seconds.  Given the availability of 
 SNTP servers, including the ones at NIST, that's inexcusable for a 
 major interexchange carrier (IXC). 

 There is one thing you can do, though:  write a digital clock app 
 that sets its time from an SNTP server (use a Stratum 2, not 
 a Stratum 1 like NIST).  Pick one from the following link that's 
 closest to your location (one that's OpenAccess, of course). 

 http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers 

 You still won't be able to SET the time, but at least you'll be 
 able to display the time.  Just remember not to update too often...you 
 shouldn't need to.  Just update every now and then to check the offset 
 relative to your system clock, and go from there. 

 Hope this helps. 

 Later, 
--jim 

 -- 
 THE SCORE:  ME:  2  CANCER:  0 
 73 DE N5IAL (/4)| Remember your spelling rules, including: 
 spooky1...@gmail.com|   I before E except after C 
  Running FreeBSD 7.0  | 
 ICBM / Hurricane:   |   BEING a native-born American, I don't 
30.44406N 86.59909W  |   always notice our WEIRD spelling 

 Android Apps Listing at http://www.jstrack.org/barcodes.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] How to does parental control intercept http request from web browser

2012-06-07 Thread Vicky Singh
Hi,
I am investigating how applications like Norton Safe Monitor attach them 
self to the browser on android.  How does software like this intercept the 
url request form the browser. I dont think ther create a proxy. Neither are 
they getting site details from the logs.
Any suggestions?

This is what i see from the logs of Norton Safe Monitor.  

D/WebProtectionService( 6841): browserUrlChanged: http://mobile..com/
D/WebProtection.UrlList( 6841): Exist = mobile..com
D/WebProtection.UrlList( 6841): Exist, List Miss
D/WebProtection.RemoteQuery( 6841): doQuery(http://mobile..com/)

app_646841  119   483144 53004  400a23c0 S 
com.symantec.familysafety


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

[android-developers] Google Wallet API?

2012-06-07 Thread John
From http://developer.android.com/guide/market/billing/billing_admin.html

Important: You cannot use the Google Wallet API to issue refunds or
cancel in-app billing transactions. You must do this manually through
your Google Wallet merchant account. However, you can use the Google
Wallet API to retrieve order information.

My question. Is there really a way to use Google Wallet API to
retrieve order information for non-subscription purchases? Where is
the information on how to do this? I can't find it.

Thanks.

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


Re: [android-developers] Android DPI problems

2012-06-07 Thread RichardC
In your Activity class

DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);

The output some of the contents of displayMetrics




On Thursday, June 7, 2012 10:12:33 PM UTC+1, Tommy wrote:

 Well all of my layouts are using dp to specify the width/height of the 
 images. Is there a way I can get what density the screen reports back to 
 android and drop it in a toast or something so I can see which of the 5 it 
 is? The phone that really gives me the issue is the Droid X. The dimensions 
 are nearly idendical as far as resolution but I guess the Droid X has a 
 higher density than the HTC Inspire.

  

 *From:* android-developers@googlegroups.com [mailto:
 android-developers@googlegroups.com] *On Behalf Of *Dianne Hackborn
 *Sent:* Thursday, June 07, 2012 4:28 PM
 *To:* android-developers@googlegroups.com
 *Subject:* Re: [android-developers] Android DPI problems

  

 You shouldn't be thinking about dpi at all.

  

 You will currently encounter devices with only 5 densities: 120, 160, 213, 
 240, 320.

  

 Every device will have one of those densities; 217dpi and 220dpi are not 
 valid densities.  You will care about this pretty much only for your 
 graphics, though the platform will scale your graphics if it does.

  

 This is also relevant for text sizes and units used in layouts, but in 
 those cases you just use sp or dp units and it is taken care of for 
 you.  So for your layouts you should basically not care about densities at 
 all, just do your layouts in dp units as if you were on a medium density 
 screen and let the platform take care of it for you.

  

 I strongly discourage the use of other units like in and mm -- many 
 devices do not report the correct true physical density, so you 
 unfortunately can't count on them working correctly.  Fortunately you 
 shouldn't need to, because 99% of the time you want to be operating in 
 density units not true dpi.

 On Thu, Jun 7, 2012 at 12:44 PM, Tommy Hartz droi...@gmail.com wrote:

 Hey everyone, I am a little confused on something. I have created multiple
 layouts for different screen sizes. The problem I run into is that on my 
 HTC
 Inspire I have a normal screen with ~217dpi, on the droid X it reports to
 have a normal screen but it has ~220 dpi. When I run my app it pulls the
 right layout but the images on the screen have huge spaces in between them
 yet on my HTC everything appears how it should. How can I avoid this issue?
 It is incredibly frustrating.

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



  

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

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

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


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

Re: [android-developers] getActivity() returns null

2012-06-07 Thread Gink Labrev
Solution:
http://stackoverflow.com/questions/7998736/how-to-notify-all-fragments-in-viewpager-that-one-of-them-changed


2012/6/3 Gink Labrev gink.lab...@gmail.com

 Using the following sample codes, the app crashes when rotates screen and
 press the menu button.
 The app uses ViewPager + Fragments.

 http://pastebin.com/LcR2f2uM - Activity
 http://pastebin.com/tUFThnzr - PageAdapter
 http://pastebin.com/589zBWLy - Fragment

 What's happening ? I found these thread about similar cases, but I didn't
 solve the problem yet.


 http://stackoverflow.com/questions/9727173/support-fragmentpageradapter-holds-reference-to-old-fragments
 http://stackoverflow.com/questions/9039877/android-fragment-screen-rotate

 http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state

 Sorry for English.

 Thanks and 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: Eclipse dev/debug on different machine than where Android device is connected?

2012-06-07 Thread lbendlin
you can do debugging via TCP/IP, no need for a USB connection.

On Thursday, June 7, 2012 4:23:28 PM UTC-4, SChaser wrote:

 I would like to be able to debug (using Eclipse) an Android app when 
 the device is USB connected to a different machine. 

 Is this possible, and if so, how? 

 Reason: 
   I'd like to have a single machine that contains my Android 
 development environment, but be able to access it (via Remote Desktop 
 for windows) from remote machines which would have the Android device 
 plugged in.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] onConfigurationChanged() is not called when flipping between landscape and reverse landscape?

2012-06-07 Thread Nikolay Elenkov
On Fri, Jun 8, 2012 at 1:49 AM, Farmer duanxiao...@gmail.com wrote:
 Hi there,

 On ICS, when I flip the phone between landscape and reverse landscape,
 it seems onConfigurationChanged() won't be called. How can I get
 notified when such event happens, or did I miss anything here?



For ICS you need to add 'screenSize' and 'smallestScreenSize' to your manifest.
So you'd have something like this:

android:configChanges=keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize

The better way would be, of course, not to use configChanges at all,
if possible.

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

2012-06-07 Thread Dianne Hackborn
Intent.ACTION_PACKAGE_CHANGED.

On Thu, Jun 7, 2012 at 7:41 AM, Ethan Gao ethangao.stu...@gmail.com wrote:

 hi all:

  There is a new feature in android 4.0 which is that user is able
 to disable pre-install applications. Is there an Intent that android
 system will sent out when disabling an application?

 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




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

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

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

[android-developers] Re: Eclipse dev/debug on different machine than where Android device is connected?

2012-06-07 Thread SChaser
Good.

But how do I do that? From Eclipse?

My normal Eclipse debugging method is simple:

1)Set a breakpoint or two

2) Debug As-Android Application

2a)... magic happens Eclipse arranges for the app to be installed
and run with its debugger attached

3) Voila. I'm there.

How to I set up Eclipse to do this via TCP/IP?

Thanks!

On Jun 7, 5:52 pm, lbendlin l...@bendlin.us wrote:
 you can do debugging via TCP/IP, no need for a USB connection.







 On Thursday, June 7, 2012 4:23:28 PM UTC-4, SChaser wrote:

  I would like to be able to debug (using Eclipse) an Android app when
  the device is USB connected to a different machine.

  Is this possible, and if so, how?

  Reason:
    I'd like to have a single machine that contains my Android
  development environment, but be able to access it (via Remote Desktop
  for windows) from remote machines which would have the Android device
  plugged in.

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

2012-06-07 Thread Subin Sebastian
Can anyone help me out on this?

On Wed, Jun 6, 2012 at 6:42 PM, Subin Sebastian subinsebast...@gmail.comwrote:

 I have an activity named *One *and the layout xml for that activity is
 here :* *https://gist.github.com/2881650
 And the code for this activity class is here :
 https://gist.github.com/2881736
 In the tabhost, I have added a tab and another activity *Two *is running
 inside the tab.
 The weird problem is that, I'm not able to type something in the textbox
 above the Tabhost in the parent layout. I'm attaching the build for this
 code
 for reference as well. Someone please suggest me a solution.

 Thanks  Regards
 --
 Subin Sebastian
 http://subinsebastien.tumblr.com
 http://in.linkedin.com/in/subinsebastien
 http://plus.google.com/subinhttps://plus.google.com/118262481642737404812
 http://facebook.com/subinsebastien




-- 
Subin Sebastian
www.nintriva.com
http://subinsebastien.tumblr.com
http://in.linkedin.com/in/subinsebastien
http://plus.google.com/subin https://plus.google.com/118262481642737404812
http://facebook.com/subinsebastien

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

2012-06-07 Thread RR
Anybody know??


On Thursday, June 7, 2012 5:46:55 PM UTC+8, RR wrote:

 I checked the information on Developer website, Google would send Test 
 deposits to verify bank account..
 I am in Hong Kong, I want to know what currency will be?  USD or HKD?

 Also what currency would be sent for monthly payment??


 Thanks!!


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

Re: [android-developers] http get method

2012-06-07 Thread asheesh arya
here is the code to upload data on server
dont forget to add internet permission in your manifest file
HttpURLConnection conn = null;
DataOutputStream dos ;
DataInputStream inStream ;
String existingFileName =
Environment.getExternalStorageDirectory().getAbsolutePath() +
/download/phonedata.txt;
//if (phoneData.exists()  phoneData.canRead());
String lineEnd = \r\n;
String twoHyphens = --;
String boundary =  *;
int bytesRead, bytesAvailable, bufferSize;
byte[] buffer;
int maxBufferSize = 1*1024*1024;
 //  String responseFromServer = ;
   {
String urlString = 
http://115.115.95.74/mobileapp/test60/uploadfile.php;;
try
{
 //-- CLIENT REQUEST
//java.io.File file = new java.io.File(PATHTOYOURCONTEXT ,
FILE);
//if (file.exists()) {
//FileInputStream fIn = new FileInputStream(file);
//}
//if (file.exists()) {
FileInputStream fileInputStream = new FileInputStream(new
File(existingFileName) );
//}
 // open a URL connection to the Servlet
 URL url = new URL(urlString);
 // Open a HTTP connection to the URL
 conn = (HttpURLConnection) url.openConnection();
 // Allow Inputs
 conn.setDoInput(true);
 // Allow Outputs
 conn.setDoOutput(true);
 // Don't use a cached copy.
 conn.setUseCaches(false);
 // Use a post method.
 conn.setRequestMethod(POST);
 conn.setRequestProperty(Connection, Keep-Alive);
 conn.setRequestProperty(Content-Type,
multipart/form-data;boundary=+boundary);
 dos = new DataOutputStream( conn.getOutputStream() );
 dos.writeBytes(twoHyphens + boundary + lineEnd);
 dos.writeBytes(Content-Disposition: form-data;
name=\uploadedfile\;filename=\ + existingFileName + \ + lineEnd);
 dos.writeBytes(lineEnd);
 // create a buffer of maximum size
 bytesAvailable = fileInputStream.available();
 bufferSize = Math.min(bytesAvailable, maxBufferSize);
 buffer = new byte[bufferSize];
 // read file and write it into form...
 bytesRead = fileInputStream.read(buffer, 0, bufferSize);
 while (bytesRead  0)
 {
  dos.write(buffer, 0, bufferSize);
  bytesAvailable = fileInputStream.available();
  bufferSize = Math.min(bytesAvailable, maxBufferSize);
  bytesRead = fileInputStream.read(buffer, 0, bufferSize);
 }
 // send multipart form data necesssary after file data...
 dos.writeBytes(lineEnd);
 dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);
 // close streams
 Log.e(Debug,File is written);
 fileInputStream.close();
 dos.flush();
 dos.close();
 Toast.makeText(this, Now...File is Uploading on
server.,
Toast.LENGTH_LONG).show();
 }
catch (MalformedURLException ex)
{
 Log.e(Debug, error:  + ex.getMessage(), ex);
}
catch (IOException ioe)
{
 Log.e(Debug, error:  + ioe.getMessage(), ioe);
}
//-- read the SERVER RESPONSE
try {
  inStream = new DataInputStream ( conn.getInputStream() );
  String str;

  while (( str = inStream.readLine()) != null)
  {
   Log.e(Debug,Server Response +str);
  }
  inStream.close();

}
catch (IOException ioex){
 Log.e(Debug, error:  + ioex.getMessage(), ioex);
}
Toast.makeText(this, File Uploaded Sucessfully on Server,
Toast.LENGTH_LONG).show();
   }
   }catch (FileNotFoundException e) {
e.printStackTrace();
Log.i(MEDIA, *** File not found. Did you);
} catch (IOException e) {
e.printStackTrace();
}}

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

[android-developers] Printing PDF in Android

2012-06-07 Thread RAJESH RAJARAM
Hi 
I have pdf document in my sdcard, I have to print the document from the 
android mobile. About this i didn't have any idea. Is it possible? This 
there any API in Android? and Advise and Idea's please.

Rajesh Rajaram

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