[android-developers] Re: Grey buttons when adding actions to a notification in Jelly Bean

2012-08-28 Thread Christer Nordvik
Seems this was a bug or a feature when targeting SDK level 8. Ah well, I 
guess we have to change or target SDK and rewrite to actionbar soon anyway. 

kl. 23:38:07 UTC+2 mandag 27. august 2012 skrev Christer Nordvik følgende:

 I have a strange issue where I've started using the support library (v4) 
 to extend our notifications to have actions inside of them. The problem is 
 that the actions are displayed as large grey buttons and the text is white 
 so it's impossible to see it. 

 All the samples I have seen have the nice black buttons, and the API 
 doesn't seem to expose setting any styling of the buttons so I am really 
 confused on how I managed to get them to display grey. The project has gone 
 through a lot of stages since Android 1.1 so it wouldn't surprise me if we 
 got something in our manifest file that could cause it, but I have tried 
 setting various themes like Holo dark but to no avail. 

 Here is the question complete with code and screenshot: 

 http://stackoverflow.com/questions/12133759/grey-buttons-when-adding-actions-to-notifications-in-jelly-bean


 https://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.pnghttps://lh6.googleusercontent.com/-9J_aWze4Bl8/UDvolUG5q4I/YuY/da-t7rU8Y6M/s1600/notification.png








 Hope anyone out there have some insight to share! 

 -Christer


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

[android-developers] Repeat calendar event reminder

2012-08-28 Thread Rahul Kaushik
Hi,

How to make a calendar event reminder repeat until the user cancels the
reminder. Such that if I have a meeting and if I miss the first time that
the notification goes off (I'm usually in vibrate only or I use very short
very high frequency tones) I'd like the tone to repeat at regular intervals
(say every 1 or 2 minutes) until I acknowledge that I'm heading to the
meeting. Anyone have an idea for anything like that?

Thanks
RK

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

2012-08-28 Thread Parthi K
neoandroidtech.blogspots.com  you will get code here...

On Tue, Aug 28, 2012 at 12:22 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Write your own PDF reader...  Have fun with that.

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



 On Fri, Aug 24, 2012 at 8:06 AM, Bala Kumar mmbala.ku...@gmail.comwrote:

 I'm developing an application (Magazine Application only with PDF file)
 in which PDF viewer functionality need to be integrate.

 PDF file has the following data.
 Text (Description).
 Images (high resolution)
 Internal links (to navigate from one page to other)
 External links (need to open on browser)
 Following features need to be implement.

 PDF page thumbnails (to jump from one page to other on selection of page
 thumbnails)
 Zoom (pinch and on double tap).
 On my search regarding the PDF reader on android I came to know that
 android does not provide inbuilt library to handle PDF. And I found many
 third party API, apks, and even code (muPDF) which is not fulfill my
 requirement.

 Then how to achieve the same without third-party application and without
 GNU based licensed library. Please I need you kind suggestion on 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


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

2012-08-28 Thread Pau Rodríguez Coloma
Please, help...

El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma 
escribió:

 Hi, 

  I'm want to set the background of a RelativeLayout like the attached png. 
 For the moment I'm using a bitmap definition xml named 
 background_dark.xml like:


 ?xml version=1.0 encoding=utf-8?

 bitmap xmlns:android=http://schemas.android.com/apk/res/android;

 android:src=@drawable/fondo_oscuro

 android:tileMode=repeat

 /bitmap


 And using it as the background drawable in my RelativeLayout: 


 RelativeLayout

 android:layout_width=fill_parent

 android:layout_height=fill_parent

 android:layout_below=@+id/headerLayout

 android:background=@drawable/background_dark

 /RelativeLayout


 But I want to make the same effect without using the png file, i.e. using 
 only shapes and layer-list. The number of lines has to be different 
 depending of the screen size, only the separation between lines are 
 determinated.


 Does anyone know how can I do this?


 Thanks in advance. 


 NOTE: Sorry about my english.


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

2012-08-28 Thread Kristopher Micinski
Hopefully you don't take this badly...

Unfortunately this is the case where, if you want to exit the app, in
Android,

it just doesn't work like that,

kris

On Tue, Aug 28, 2012 at 12:34 AM, Haris P P haris...@gmail.com wrote:

 Thanks for your reply.

 On Mon, Aug 27, 2012 at 8:35 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Now I am following the second one...And its working perfectly...


 If it is working, then why change it?  If it ain't broken don't fix it...


 And also for go back to the previous layout I am just pressing the back
 button.Do I need to call the finish() methodOr the android do it
 automatically..


 You do not need to call finish() yourself in this scenario.


 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..


 This is how Android works... just let it work its magic.


 Is there any method to  exit  application properly ?.


 No...

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



 On Mon, Aug 27, 2012 at 5:43 AM, Renuka Deshpande 
 renukanil.deshpa...@gmail.com wrote:

 Hello,

 Let OS kill the application. see these
 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon


 http://stackoverflow.com/questions/5100728/how-to-force-stop-my-android-application-programatically


 http://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically


 When you press back the current activity is automatically finish and
 removed from stack, so when you start same activity only one instance will
 be there. You dont need to finish activity programmatically yourself when
 you press back, Os does that.


 On Mon, Aug 27, 2012 at 3:44 PM, Haris haris...@gmail.com wrote:



 Hai all

   For my application I am using more than one layout, and I nedd to
 switch from layout to layout  
 I think there are two methods for this.

 1. Using setContentView switch to new layout.
 2. Or by creating new activity switch to new layout.

 Now I am following the second one...And its working perfectly...

 So which one I should use for my application...?

 And also for go back to the previous layout I am just pressing the back
 button.Do I need to call the finish() methodOr the android do it
 automatically..

 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..

 Is there any method to  exit  application properly ?.

 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




 --
 Thanks  Regards,
 Renuka

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




 --
 * Haris PP*

   *09975847673(pune)
09744593643(kerala)*


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

2012-08-28 Thread Doug
On devices running gingerbread or older (I think), just turn off the screen.

Or start an activity whose theme is transparent (or something like that, 
google it).

Sorry to be so imprecise.

Doug

On Tuesday, August 21, 2012 10:04:03 PM UTC-7, Ubuntu guy wrote:

 Hello, 

I'm developing an application and need to quickly test a scenario 
 where my activitiy's onPause() is invoked (without onStop()). 
 As per the documentation, this is a scenario where a dialog is shown 
 on top of my activity. I tried long press of power down button to pop 
 up a dialog, however, it doesn't invoke a onPause() at all. 

Is there any easy way to simulate this scenario? 

 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: VideoView seetTo() takes longer time to start video after pause

2012-08-28 Thread Doug
seekTo doesn't restart a paused video.  Seeking is independent of playback 
state.

Doug

On Wednesday, August 22, 2012 3:57:33 AM UTC-7, Ashutosh wrote:


 did you get any solution for this issue, I am also facing it.

 thanks for help

 -ashutosh
 On Thursday, February 3, 2011 11:59:54 AM UTC+5:30, kavitha wrote:

 Hi All,

 In my project I am playing video with VideoView and when incoming call is 
 there,I pause the video.

 But later it takes long time to resume playback.But it resumes to correct 
 point.

 Sometimes it says Video cannot be played while resuming.

 Is there any other way to handle pause() and resume() of VideoView.

 protected void onPause() {
 super.onPause();
 pos=videoView.getCurrentPosition();
 videoView.pause();
 }

 protected void onResume() {
 super.onResume();
 videoView.seekTo(pos);
 }

 Please help,it is urgent.

 Thanks
 Kavitha



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

[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-28 Thread Doug
No.  Neon instructions are not part of the ABI specification, which is what 
the device uses to determine which .so to load.  You have to detect that at 
runtime OR you have to make the user make an informed decision about which 
shared library to use (which drastically decreases usability of your app).

Doug

On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote:

 Hi, 

What about upload to the Google PlayStore? If we compile the app 
 for armv7 neon support, is it that Google PlayStore will automatically 
 restrict the app from being seen on non-neon devices? 

 Thank you, 
 B.Arunkumar 

 On Aug 22, 1:54 pm, B.Arunkumar awsnetworkrecor...@gmail.com 
 wrote: 
  Hi, 
  
   We have an app which is compiled for arm-v7 neon with appropriate 
  definitions in Application.mk and Android.mk. Is there any way to 
  prevent installation  on Non Neon devices with an appropriate message 
  Cannot install. Currently when I install the application by either 
  debug or run mode, the application installs on the device but when 
  opened. it crashes with an 
  ExceptionInInitializer error. 
  
  Thank you, 
  B.Arunkumar 


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

2012-08-28 Thread Rajan Mishra
Hello,

Please Provide the new Updates of source code in Android Mobile Development. 

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


[android-developers] pruning the Asmack jar

2012-08-28 Thread Steve
Does anyone have experience with whittling down the Asmack .jar to bare 
essentials?  I've had luck using it for XMPP communications, but including 
it adds a meg to an app that's otherwise less than 32k.

Is there anything that CAN be whittled out of it?

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

[android-developers] Re: how to obtain NOT ENCODED polylines using the com.google.android.maps package

2012-08-28 Thread gattytto
http://jeffreysambells.com/2010/05/27/decoding-polylines-from-google-maps-direction-api-with-java

This is a decoder that will return a list of geopoints.. I just don't get 
it, google coders forgot to add polyline support to their android 
libraries? there's not even a simple implementation of the 
encoding/decoding process WTF?

On Wednesday, January 4, 2012 1:13:36 PM UTC-3, GerarCR wrote:

 Sorry, i think i didn't explained myself well.

 When you ask for a route using the Google Maps API, it returns an encoded 
 polyline of points of this route. 

 That is the polyline that i want to decode in my Android App (or obtain it 
 decoded if it is possible).

 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 dump the message in NetworkController.java

2012-08-28 Thread ZnZn
i met an issue which does matter with statusbar, and i wanna dump the 
message in NetworkController.java. i found that dumpsys just support the 
system services but not NetworkController.java which implements dump 
function although. can anyone tell me how to dump the message? and further, 
how to dump the message in the classes which i implements the dump 
function, for example.

TIA.

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

[android-developers] Music Sync App?

2012-08-28 Thread Ronald Rose
Okay I'm not even sure if I'm asking on the right forum, but I am a complete 
newbie when it comes to coding and developing. I was just wondering how hard 
would it be to make an app that can sync with the windows libraries music, 
photos, videos ect over wifi and or 3g, or the normal phone internet. Please 
let me know if an app all ready exist like this all the app I found it only 
syncs over wifi or the phone has to be plugged into the computer.

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


[android-developers] State of the Art for the WiFi ScanResult capabilities String

2012-08-28 Thread João Dias Amaro
Hi there fellow Android developers.


I'm currently creating an abstraction layer on top of the Android SDK for my 
MSc thesis, in order to present a new approach to some design issues in the 
Android SDK and I would like to know if anynone has info about future plans to 
change the ScanResult capabilities string into something more 
developer-friendly.

Or, at least, if there is official documentation about how to correctly parse 
that String into something more agile.


Thanks for your help ;)

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


[android-developers] Accelerometer count meters

2012-08-28 Thread Luiz Lago
Hello Everybody

Exist some way to count meters with accelerometer ?

Thanks,
Luiz Lago

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Using LVL, will issuing a refund also revoke the user's license?

2012-08-28 Thread media house
 - NOT_LICENSED response for sure.
 - No uninstall should get triggered. 
- Adding the user emails to the test accounts list and keeping the TEST 
response as Licensed is a way to work around.

thanks
Diwakar
c/o MediaHouse
https://play.google.com/store/apps/details?id=com.dbapp.android.mediahouse 




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

[android-developers] Getting the google voice synthesizer

2012-08-28 Thread nikulau
Hello,(excuse my poor english)I'm with a school project and I need to edit a 
couple of things to de google voice synthesizer, which works on android.
I surfed the web but I haven't found the source code.
Could anybody say me where to find it?

I really thank to this great comunity, I hope when I improve my knowledge to 
contribute here.

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


[android-developers] Recording incoming call

2012-08-28 Thread Nakul Maheshri
i want to record incoming call i am using following code
MediaRecorder mr = new MediaRecorder();
 mr.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
 mr.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
 mr.setMaxDuration(1); 
 mr.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 mr.setOutputFile(Environment.getExternalStorageDirectory()+/+aa.3gp);
but it does not work.what to do???

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

Re: [android-developers] java.lang.ClassNotFoundException: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in test project

2012-08-28 Thread rauf qureshi
can any body tell me how to make a post in this group
for problem solution

and please some one update me about payment gateway and its charges is
apply to use this server

please help me




On Mon, Aug 27, 2012 at 8:36 PM, nikhilesh singh Tak 
nikhileshsingh...@gmail.com wrote:

 Hi Mark,

 Thanks for the reply.

 Yes I have checked that.

 In my main app project android-support-v4.jar is present in the libs
 folder. Also in build path I have marked  the library as checked in Order
 and Export section.

 Even I tried it by adding the v4 jar in test project but that too didn't
 worked...



 On Sun, Aug 26, 2012 at 11:57 PM, Mark Murphy mmur...@commonsware.comwrote:

 Make sure that you properly have the Android Support package attached
 to your project (e.g., android-support-v4.jar in your libs/
 directory).

 On Sun, Aug 26, 2012 at 2:06 PM, nikhilesh nikhileshsingh...@gmail.com
 wrote:
  Hi Group,
 
  I created a project using the support.v4 library. Now I am creating a
 test
  project for my main app. But when I try to run it gives me the exception
  W/ClassPathPackageInfoSource(551): Caused by:
  java.lang.ClassNotFoundException:
  android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 in loader
  dalvik.system.PathClassLoader.
 
  I searched a lot but not able to find anything on it.
 
  Please help.
 
  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



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




 --
 Nikhilesh Singh Tak

 +91-9754070871
 +91-9929098279

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] eclipse juno on mac os x 10.5.8 adt plugin wont run

2012-08-28 Thread Errol
running os x 10.5.8 with eclipse 4.2 which runs fine, but a bit slow... 
after installing software and restarting the eclipse, the android plugins 
fail to load in the preferences. is there a way to work this out for the 
better? is eclipse juno compatible with os x 10.5.8? how can I get the 
plugin to load and show in the workbench after installing?

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

[android-developers] JAVA and SILVERLIGHT

2012-08-28 Thread MiamiGLC
Hi guys, i'm wondering why i can't see live webcam (java) on android 2.3, 
if i see inside the option, the java it's activated, but through the 
browser seems not working, the second issue and i know it's something hard, 
there's a way to get silverlight or moonlight for android browser? and yes 
how (i'm not a developer or programmer)

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] glGenTextures return 0 and got call to OpenGL ES API with no current context (logged once per thread)

2012-08-28 Thread Li Sun
Hi,

I just met a issue of  glGenTextures. I wrote the below codes on 
Activity.onCreate() function

int[] mTextureNames = new int[1];
GLES20.glGenTextures(1,mTextureNames,0);
SurfaceTexture mSurfaceTexture = new 
SurfaceTexture(mTextureNames[0]);

but mTextureNames[0] is always 0 and got the log call to OpenGL ES API 
with no current context (logged once per thread).  I think i may need to 
do some initialization work before calling the source code. Would someone 
help to tell me what's the steps ? Thanks a lot!

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

Re: [android-developers] Live audio stream - Android 2.x - possible ?

2012-08-28 Thread rauf qureshi
Use RTSP protocol for that

On Mon, Aug 27, 2012 at 5:22 PM, Dmitriy F midnight@gmail.com wrote:

 I need to play a live audio stream on devices with 2.x and greater
 versions. 
 Thishttp://developer.android.com/guide/appendix/media-formats.html states
 that it's impossible to play live streams on devices with Android 2.x.

 What're my options here ?

 P.S. I've tried Vitamio - don't want to make customers download third
 party libraries.

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

2012-08-28 Thread RAM
how to resize the font size of a listview/gridview text

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

[android-developers] eclipse juno on mac os x 10.5.8 adt plugin wont run

2012-08-28 Thread Errol
running os x 10.5.8 with eclipse 4.2 which runs fine, but a bit slow... 
after installing software and restarting the eclipse, the android plugins 
fail to load in the preferences. is there a way to work this out for the 
better? is eclipse juno compatible with os x 10.5.8? how can I get the 
plugin to load and show in the workbench after installing?

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

[android-developers] Iam new to developing a android app ( stuck in mainactivity class)

2012-08-28 Thread stanlee
iam trying to create an app, right now learning to create app through the 
tutorials. the issue right now is how can i edit the mainactivity class

where do i put this command

/** Called when the user clicks the Send button */
public void sendMessage(View view) {
// Do something in response to button
}

please help

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


[android-developers] Regarding setting up of google play merchant account

2012-08-28 Thread vinartrulz
Hello people,
 I have a query regarding setting up google play 
merchant account. I am from india and i understand that Google Checkout is 
available only to merchants in selected countries. I was working in US 
sometime back, so i do have an active US bank account  SSN. Is it all i 
need to start selling paid apps from india ?
Or is there any legal issues that prevents me from doing that.
Please let me know.

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

[android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Hi!

I started Android development last week, and I have a problem with a code 
on some devices :

I have to develop an application with a specific controller like a 
horizontal wheel. To do this, I want to use the ViewPager, with 
setClipChildren(false) to extend the view. I based on the following code : 
https://gist.github.com/8cbe094bb7a783e37ad1

The result looks like this :

https://lh4.googleusercontent.com/-DjFOnG7O0wY/UDstWN3AE2I/AfE/yWpndOBTWIA/s1600/emulator.png
The ViewPager here is just on Item4, and with setClipChildren(false) we 
can see the other item.

This works greats on emulator (tested on API 7 to 16) and some devices!

But I encounter some problems on more recent devices, like HTC One X 
(Android 4.0.4) and a Nexus S (CM10 - Android 4.1.1) : the ViewPager 
doesn't really extended! Just the current item is shown, and when you are 
sliding, the next item is shown : 

https://lh3.googleusercontent.com/-clS7voj3rLk/UDsvfP1HnhI/AfM/K8uMV_9PLFA/s1600/onex_current.png

When sliding : 

https://lh5.googleusercontent.com/-3tYaKu_Oz7w/UDsvnljXJ0I/AfU/JEaCZolThJ4/s1600/onex_sliding.png



Anybody else already encounter this problem? I think is an optimization on 
these devices, but how can I bypass this?

Thanks in advance!



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

[android-developers] Re: Multiple Icons appear on device when my project run!

2012-08-28 Thread Thesalan
I'm a beginner, so maybe I'm wrong, but in your manifest, all your 
activities are set with the following intent?

intent-filter
 action android:name=android.intent.action.MAIN /
 category android:name=android.intent.category.LAUNCHER 
 /
 /intent-filter


Just the main activity have to contain this intent


Le samedi 25 août 2012 21:37:08 UTC+2, KinnMirr a écrit :

 How do I stop the multiple icons?
 See attached PNG for details.
  
 P.S. A few minutes ago I posted this question to another group. I think 
 that other group was wrong. Sorry
  
  
  


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

[android-developers] JellyBean problem on Long click when context menu and android:autolink= all

2012-08-28 Thread Sandy
I found a strange problem on Jelly bean android 4.1 version till android 
4.0 its working fine .But in android 4.1 its creating problem..

below is my  Activity

ackage com.sample;

import android.os.Bundle;
import android.app.Activity;
import android.text.util.Linkify;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends Activity {

TextView tv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
 tv = (TextView)findViewById(R.id.sampletext);
registerForContextMenu(tv);

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}

@Override
public void onCreateContextMenu(ContextMenu menu, View 
v,ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
// Create your context menu here
tv.setAutoLinkMask(Linkify.WEB_URLS);  
menu.setHeaderTitle(Context Menu);
menu.add(0, v.getId(), 0, Action 1);
   

}

}

Layout file ..


RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
xmlns:tools=http://schemas.android.com/tools;
android:layout_width=match_parent
android:layout_height=match_parent 

TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_centerHorizontal=true
android:layout_centerVertical=true
android:text=1
android:autoLink=all
tools:context=.MainActivity
android:id=@+id/sampletext
android:clickable=true

 /

In this i declared android:autoLink=all , and registered for context menu 
as well,

so when long click its showing context menu and its going to dialer.. but 
dialer should work only on single click

Please suggest me the solutions, I think the problem comes with Jelly bean 
android 4.1 version.

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

[android-developers] Home screen widget don't show on real phone

2012-08-28 Thread Thalita Monteiro
I created home screen widget , when i test on my emulator works perfectly, but 
when use on my Samsung Galaxy Y - android v 2.3.5 - don't show option create my 
widget.

Does anyone know why the phone does not work?

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


[android-developers] Live streaming in browser on Android 3+

2012-08-28 Thread Aleksey Zhurbitsky
I have Wowza server for streaming live TV channels. I need to play this 
channels in browser on Android 3+.
Is it possible?
On Android 3.0-3.2 i think i can use Flash player and RTMP stream, but what 
should i choose for ICS and JB?
I tried to use HTTP live streaming in video-tag, but seems its not working 
(question 
on 
stackoverflow.comhttp://stackoverflow.com/questions/12139253/best-way-to-implement-html5-live-streaming-video-on-android-3
)

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

2012-08-28 Thread Victor Reboucas


Hi, I'm new to Android development and I'm trying to implement a custom 
view to act as a custom menu button for my app.

I followed the instructions at 
http://developer.android.com/training/custom-views/create-view.html but by 
the end of the implementation I get a message saying Unfortunately 
customviews1 has stopped and the app just shut's down.

My approach is very simple and I cannot find any reference about solving 
this basic problem. Here's what I'm doing:

1. create a new Android project in Eclipse named customviews1

2. I run the project and it shows a Hello World TextView on the 
activity_main.xml layout file

3. I add a new class that extends View to the src folder of the project:

public class MyCustomView extends View {
public MyCustomView(Context context, AttributeSet attrs) {
super(context, attrs);
}

}

4. I remove the TextView from activity_main.xml and add a customview1 
to it:

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
xmlns:tools=http://schemas.android.com/tools;
android:layout_width=match_parent
android:layout_height=match_parent

com.example.customviews1.MyCustomView android:id=@+id/myCustomView1 /
/RelativeLayout

5. I run the app again and I got the message saying Unfortunately 
customviews1 has stopped and the app shuts down.


Is there any code I'm missing here?


Thanks for any clue,
Regards,
Victor Reboucas

 

 

 

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

2012-08-28 Thread vivek singh
@kristopher
(In case you meant Billboard by their. )
there is no such official app by billbaord  for android market .

On Monday, August 27, 2012 11:29:29 PM UTC+5:30, Kristopher Micinski wrote:

 I would guess that as long as you don't compete with their app they 
 won't be mad, once you do you're dead, 

 kris 

 On Mon, Aug 27, 2012 at 1:57 PM, vivek singh 
 vivek...@gmail.comjavascript: 
 wrote: 
  I am also not a lawyer. I have contacted billboard twice regarding the 
 issue 
  but no response so far. I read their terms and conditions and if i 
  understood it correctly it says the site content (song name and track 
 name 
  in case of this app) can be used for non commercial purpose. 
  
  
  
  On Monday, August 27, 2012 11:18:51 PM UTC+5:30, TreKing wrote: 
  
  On Mon, Aug 27, 2012 at 12:41 PM, vivek singh vivek...@gmail.com 
 wrote: 
  
  BillBoard Hot 100 
  
  
  I'm going to go out on a limb and assume you don't own the rights to 
  Billboard Hot 100, in which case you not only have no claim to be the 
 only 
  one using the name, but you are probably both violating the market 
 terms by 
  using the property of another company without their permission. 
  
  Good luck with that. 
  
  P.S. I am not a lawyer. 
  
  
  
 -
  

  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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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] TWO APPS WITH SAME NAME

2012-08-28 Thread vivek singh
I forget to mention that i contacted twice BEFORE the release of my app 
mentioning the name issue

On Monday, August 27, 2012 11:32:50 PM UTC+5:30, TreKing wrote:

 On Mon, Aug 27, 2012 at 12:57 PM, vivek singh vivek...@gmail.comjavascript:
  wrote:

 I am also not a lawyer. I have contacted billboard twice regarding the 
 issue but no response so far. I read their terms and conditions and if i 
 understood it correctly it says the site content (song name and track name 
 in case of this app) can be used for non commercial purpose.


 Billboards TC != Market TC. I've seen plenty of posts here from people 
 getting their apps banned for seemingly innocent actions.

 I repeat, I am not a lawyer.


 -
 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] TWO APPS WITH SAME NAME

2012-08-28 Thread vivek singh
actual query is still unanswered 

On Monday, August 27, 2012 11:32:50 PM UTC+5:30, TreKing wrote:

 On Mon, Aug 27, 2012 at 12:57 PM, vivek singh vivek...@gmail.comjavascript:
  wrote:

 I am also not a lawyer. I have contacted billboard twice regarding the 
 issue but no response so far. I read their terms and conditions and if i 
 understood it correctly it says the site content (song name and track name 
 in case of this app) can be used for non commercial purpose.


 Billboards TC != Market TC. I've seen plenty of posts here from people 
 getting their apps banned for seemingly innocent actions.

 I repeat, I am not a lawyer.


 -
 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] TWO APPS WITH SAME NAME

2012-08-28 Thread vivek singh
Search for Billboard Hot 100 on google play  see 3rd and 4th result

On Monday, August 27, 2012 11:11:32 PM UTC+5:30, vivek singh wrote:

 BillBoard Hot 100

 On Monday, August 27, 2012 11:07:01 PM UTC+5:30, TreKing wrote:

 On Mon, Aug 27, 2012 at 12:26 PM, vivek singh vivek...@gmail.com wrote:

 I released my app on google play on 15th august.
 I saw another app with same name released on  23 august.
 Is it OK?


 What is the app name?


 -
 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] TWO APPS WITH SAME NAME

2012-08-28 Thread vivek singh
@kris*

On Tuesday, August 28, 2012 12:10:31 AM UTC+5:30, vivek singh wrote:

 @yea you may be right. but the actual query is still unanswered
 how someone would differentiate between two apps if say someone (who is 
 unaware of package nomenclature)  that go to google play and search for my 
 app
 by typing BillBoard Hot 100 in search box ?

  (though i observed that the other app has b in board and mine has B)

 (P.S you dont need to be a lawyer to answer this ;-) )

 On Monday, August 27, 2012 11:57:59 PM UTC+5:30, Kristopher Micinski wrote:

 On Mon, Aug 27, 2012 at 2:27 PM, Kristopher Micinski 
 krismi...@gmail.com wrote: 
  @treking ,i contacted them BEFORE launch of my app 
  On Monday, August 27, 2012 11:32:50 PM UTC+5:30, TreKing wrote: 
  
  That does not excuse you, that's not how laws work. 
  
  Big organization, small developer, who wins :-)? 
  
  kris 

 though I am also not a lawyer :-) 

 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] Re: Android maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'

2012-08-28 Thread blizzard
I've had a major breakthrough on this.
I'm posting my progress here 
http://stackoverflow.com/questions/12087948/test-apk-does-not-resolve-load-classes-from-main-apk-cannot-load-class-andr

My conclusion thus far is that android instrumentation tests do not support 
FragmentActivity or other activity wrappers at this point in time.

-Michael

On Thursday, August 23, 2012 10:56:18 AM UTC+2, blizzard wrote:

 Hello everyone,

 I'm having trouble executing instrumentation tests using the android maven 
 plugin. I have followed the libraryprojects example to the last detail, 
 however, there is one slight difference in my setup ~ i'm adding the 
 android support jar as an external dependency.

 My setup looks as follows:

 APK lib project (greendroid to be specific)

 dependency
   groupIdcom.google.android/groupId
   artifactIdsupport-v4/artifactId
   versionr6/version
 /dependency

 dependency
 groupIdcom.google.android/groupId
 artifactIdandroid/artifactId
 scopeprovided/scope
 /dependency

 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 scopetest/scope
 /dependency
 APK project

 dependency
 groupIdcom.google.android/groupId
 artifactIdandroid/artifactId
 scopeprovided/scope
 /dependency
 dependency
 groupIdgreendroid/groupId
 artifactIdGreenDroidFragment/artifactId
 version1.0.0-SNAPSHOT/version   
 typeapklib/type 
 /dependency
 APK test project (and here's the problem  )

 dependency
   groupIdcom.google.android/groupId
   artifactIdsupport-v4/artifactId
   versionr6/version
 /dependency   
 dependency
 groupIdcom.google.android/groupId
 artifactIdandroid/artifactId
 scopeprovided/scope
 /dependency
 dependency
 groupIdcom.google.android/groupId
 artifactIdandroid-test/artifactId
 scopeprovided/scope
 /dependency

 dependency
 groupIdcom.jayway.android.robotium/groupId
 artifactIdrobotium-solo/artifactId
 version3.2.1/version
 /dependency

 dependency
 groupIdcom.entersectmobile/groupId
 artifactIdNMACFragment/artifactId
 version1.0.0-SNAPSHOT/version
 typeapk/type
 scopeprovided/scope
 /dependency

 dependency
 groupIdcom.entersectmobile/groupId
 artifactIdNMACFragment/artifactId
 version1.0.0-SNAPSHOT/version
 typejar/type
 scopeprovided/scope
 /dependency  
 The problem is that delvik is unable to find or link support jar upon 
 running instrumentation tests.

 By packaging the android support jar as part of the APK test project, 
 delvik complains that it's unable to resolve the compiled code. This is 
 because the dex output of the main APK is different from the dex output of 
 the test APK.

 W/dalvikvm(328): Class resolved by unexpected DEX:  
 Lcom/entersectmobile/android/nedbank/GenerateOtpFragment;(0x44edffb0):0x121de0
  
 ref   
 [Landroid/support/v4/app/Fragment;] 
 Landroid/support/v4/app/Fragment;(0x44edffb0)
 By not packaging the android support as part of the APK test project, 
 delvik is unable to locate the compiled code. This happens when making the 
 scope provided or excluding the dependency completely.

 W/ClassPathPackageInfoSource(632): Cannot load class. Make sure it is in 
 your apk.
 Class name: 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'. 
 Message: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2
 The only thing I can think of is to somehow manually tell the APK test 
 project to resolve the android-support dependency from the main APK project 
 using a delvik linking mechanism.

 Any ideas would be much appreciated, 
 Thanks
 -Michael



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

2012-08-28 Thread Kristopher Micinski
It doesn't really matter if it's on the market or not, if it's their
name it can be construed as infringement, whether or not there is a
market app.

Think of it this way, if you made an app called Microsoft Office
Docs you'd probably be in trouble too, even if you capatalized the S
in MicroSoft :-)

kris

On Mon, Aug 27, 2012 at 2:07 PM, vivek singh vivek.r...@gmail.com wrote:
 @kristopher
 (In case you meant Billboard by their. )
 there is no such official app by billbaord  for android market .


 On Monday, August 27, 2012 11:29:29 PM UTC+5:30, Kristopher Micinski wrote:

 I would guess that as long as you don't compete with their app they
 won't be mad, once you do you're dead,

 kris

 On Mon, Aug 27, 2012 at 1:57 PM, vivek singh vivek...@gmail.com wrote:
  I am also not a lawyer. I have contacted billboard twice regarding the
  issue
  but no response so far. I read their terms and conditions and if i
  understood it correctly it says the site content (song name and track
  name
  in case of this app) can be used for non commercial purpose.
 
 
 
  On Monday, August 27, 2012 11:18:51 PM UTC+5:30, TreKing wrote:
 
  On Mon, Aug 27, 2012 at 12:41 PM, vivek singh vivek...@gmail.com
  wrote:
 
  BillBoard Hot 100
 
 
  I'm going to go out on a limb and assume you don't own the rights to
  Billboard Hot 100, in which case you not only have no claim to be the
  only
  one using the name, but you are probably both violating the market
  terms by
  using the property of another company without their permission.
 
  Good luck with that.
 
  P.S. I am not a lawyer.
 
 
 
  -
  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-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

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


Re: [android-developers] Android Activity And closing application

2012-08-28 Thread Haris P P
Hai  Kristopher I didn't get your point..

On Tue, Aug 28, 2012 at 12:32 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 Hopefully you don't take this badly...

 Unfortunately this is the case where, if you want to exit the app, in
 Android,

 it just doesn't work like that,

 kris


 On Tue, Aug 28, 2012 at 12:34 AM, Haris P P haris...@gmail.com wrote:

 Thanks for your reply.

 On Mon, Aug 27, 2012 at 8:35 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Now I am following the second one...And its working perfectly...


 If it is working, then why change it?  If it ain't broken don't fix it...


 And also for go back to the previous layout I am just pressing the back
 button.Do I need to call the finish() methodOr the android do it
 automatically..


 You do not need to call finish() yourself in this scenario.


 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..


 This is how Android works... just let it work its magic.


 Is there any method to  exit  application properly ?.


 No...

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



 On Mon, Aug 27, 2012 at 5:43 AM, Renuka Deshpande 
 renukanil.deshpa...@gmail.com wrote:

 Hello,

 Let OS kill the application. see these
 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon


 http://stackoverflow.com/questions/5100728/how-to-force-stop-my-android-application-programatically


 http://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically


 When you press back the current activity is automatically finish and
 removed from stack, so when you start same activity only one instance will
 be there. You dont need to finish activity programmatically yourself when
 you press back, Os does that.


 On Mon, Aug 27, 2012 at 3:44 PM, Haris haris...@gmail.com wrote:



 Hai all

   For my application I am using more than one layout, and I nedd to
 switch from layout to layout  
 I think there are two methods for this.

 1. Using setContentView switch to new layout.
 2. Or by creating new activity switch to new layout.

 Now I am following the second one...And its working perfectly...

 So which one I should use for my application...?

 And also for go back to the previous layout I am just pressing the
 back button.Do I need to call the finish() methodOr the android do
 it automatically..

 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..

 Is there any method to  exit  application properly ?.

 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




 --
 Thanks  Regards,
 Renuka

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




 --
 * Haris PP*

   *09975847673(pune)
09744593643(kerala)*


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




-- 
* Haris PP*

  *09975847673(pune)
   09744593643(kerala)*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to 

[android-developers] Re: get the text in edit text on button click

2012-08-28 Thread karuna vikas
Hi vinay ,
   Sorry ... I have replied for the 1st Question..

On Saturday, June 2, 2012 11:36:47 PM UTC+5:30, Raghu wrote:

 hi,

 how can i get the text entered by the user in the Edit Text on button 
 click, kindly do help me on 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] Android Activity And closing application

2012-08-28 Thread Kristopher Micinski
You don't just exit apps on Android,

The system does it for you,

kris

On Tue, Aug 28, 2012 at 3:47 AM, Haris P P haris...@gmail.com wrote:

 Hai  Kristopher I didn't get your point..

 On Tue, Aug 28, 2012 at 12:32 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 Hopefully you don't take this badly...

 Unfortunately this is the case where, if you want to exit the app, in
 Android,

 it just doesn't work like that,

 kris


 On Tue, Aug 28, 2012 at 12:34 AM, Haris P P haris...@gmail.com wrote:

 Thanks for your reply.

 On Mon, Aug 27, 2012 at 8:35 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Now I am following the second one...And its working perfectly...


 If it is working, then why change it?  If it ain't broken don't fix
 it...


 And also for go back to the previous layout I am just pressing the back
 button.Do I need to call the finish() methodOr the android do it
 automatically..


 You do not need to call finish() yourself in this scenario.


 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..


 This is how Android works... just let it work its magic.


 Is there any method to  exit  application properly ?.


 No...

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



 On Mon, Aug 27, 2012 at 5:43 AM, Renuka Deshpande 
 renukanil.deshpa...@gmail.com wrote:

 Hello,

 Let OS kill the application. see these
 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon


 http://stackoverflow.com/questions/5100728/how-to-force-stop-my-android-application-programatically


 http://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically


 When you press back the current activity is automatically finish and
 removed from stack, so when you start same activity only one instance will
 be there. You dont need to finish activity programmatically yourself when
 you press back, Os does that.


 On Mon, Aug 27, 2012 at 3:44 PM, Haris haris...@gmail.com wrote:



 Hai all

   For my application I am using more than one layout, and I nedd to
 switch from layout to layout  
 I think there are two methods for this.

 1. Using setContentView switch to new layout.
 2. Or by creating new activity switch to new layout.

 Now I am following the second one...And its working perfectly...

 So which one I should use for my application...?

 And also for go back to the previous layout I am just pressing the
 back button.Do I need to call the finish() methodOr the android 
 do
 it automatically..

 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..

 Is there any method to  exit  application properly ?.

 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




 --
 Thanks  Regards,
 Renuka

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




 --
 * Haris PP*

   *09975847673(pune)
09744593643(kerala)*


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




 --
 * Haris PP*

   

Re: [android-developers] Android Activity And closing application

2012-08-28 Thread Haris P P
Thanks..I understood

On Tue, Aug 28, 2012 at 1:22 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 You don't just exit apps on Android,

 The system does it for you,

 kris


 On Tue, Aug 28, 2012 at 3:47 AM, Haris P P haris...@gmail.com wrote:

 Hai  Kristopher I didn't get your point..

 On Tue, Aug 28, 2012 at 12:32 PM, Kristopher Micinski 
 krismicin...@gmail.com wrote:

 Hopefully you don't take this badly...

 Unfortunately this is the case where, if you want to exit the app, in
 Android,

 it just doesn't work like that,

 kris


 On Tue, Aug 28, 2012 at 12:34 AM, Haris P P haris...@gmail.com wrote:

 Thanks for your reply.

 On Mon, Aug 27, 2012 at 8:35 PM, Justin Anderson magouyaw...@gmail.com
  wrote:

 Now I am following the second one...And its working perfectly...


 If it is working, then why change it?  If it ain't broken don't fix
 it...


 And also for go back to the previous layout I am just pressing the
 back button.Do I need to call the finish() methodOr the android 
 do
 it automatically..


 You do not need to call finish() yourself in this scenario.


 And I noticed that when close the application by calling finish() the
 program is exiting. But In Application-mange application it showing an
 option for force stop..


 This is how Android works... just let it work its magic.


 Is there any method to  exit  application properly ?.


 No...

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



 On Mon, Aug 27, 2012 at 5:43 AM, Renuka Deshpande 
 renukanil.deshpa...@gmail.com wrote:

 Hello,

 Let OS kill the application. see these
 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon


 http://stackoverflow.com/questions/5100728/how-to-force-stop-my-android-application-programatically


 http://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically


 When you press back the current activity is automatically finish and
 removed from stack, so when you start same activity only one instance 
 will
 be there. You dont need to finish activity programmatically yourself when
 you press back, Os does that.


 On Mon, Aug 27, 2012 at 3:44 PM, Haris haris...@gmail.com wrote:



 Hai all

   For my application I am using more than one layout, and I nedd to
 switch from layout to layout  
 I think there are two methods for this.

 1. Using setContentView switch to new layout.
 2. Or by creating new activity switch to new layout.

 Now I am following the second one...And its working perfectly...

 So which one I should use for my application...?

 And also for go back to the previous layout I am just pressing the
 back button.Do I need to call the finish() methodOr the android 
 do
 it automatically..

 And I noticed that when close the application by calling finish()
 the program is exiting. But In Application-mange application it 
 showing an
 option for force stop..

 Is there any method to  exit  application properly ?.

 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




 --
 Thanks  Regards,
 Renuka

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




 --
 * Haris PP*

   *09975847673(pune)
09744593643(kerala)*


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

[android-developers] Re: how to obtain NOT ENCODED polylines using the com.google.android.maps package

2012-08-28 Thread GerarCR
Thanks!
I´ve already used a decoder like this in my app.
I´m pretty sure that google don´t give any polyline support because they 
don,t want you to use their GPS routes to make any kind of GPS guide 
sistem, as they say in their terms of service:

*8. License Restrictions.  *
*8.7. use the Service or Content with any products, systems, or 
applications for or in *
*connection with (a) real time navigation or route guidance based on 
position *
*input from a sensor (including but not limited to any visual or audible 
turn-byturn route guidance); or (b) any systems or functions for automatic 
or *
*autonomous control of vehicle behavior; or (c) dispatch, fleet management, 
*
*business asset tracking, or similar enterprise applications (for avoidance 
of *
*doubt, you are permitted to use the Service to create Maps API *
*Implementations to track people or assets equipped with a sensor, where 
the *
*tracking of the people or assets is not critical to the core business or 
service of *
*the application user.  For example, you are permitted to use the Maps APIs 
to *
*create “Friend Finder” applications that allow consumers to track the 
locations *
*of their friends’ mobile devices, but you are not permitted to use the 
Maps APIs *
*to create “Business Asset Tracking” applications that track or locate 
business or *
*government users’ field sales or field service personnel, vehicles or 
other *
*assets that are critical (not incidental) to the core business or service 
of the *
*application user);*


On Monday, August 27, 2012 5:43:20 PM UTC+2, gattytto wrote:


 http://jeffreysambells.com/2010/05/27/decoding-polylines-from-google-maps-direction-api-with-java

 This is a decoder that will return a list of geopoints.. I just don't get 
 it, google coders forgot to add polyline support to their android 
 libraries? there's not even a simple implementation of the 
 encoding/decoding process WTF?

 On Wednesday, January 4, 2012 1:13:36 PM UTC-3, GerarCR wrote:

 Sorry, i think i didn't explained myself well.

 When you ask for a route using the Google Maps API, it returns an encoded 
 polyline of points of this route. 

 That is the polyline that i want to decode in my Android App (or obtain 
 it decoded if it is possible).

 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] Multiple Package name in a Single Applicaiton

2012-08-28 Thread karuna vikas
Hi Everybody ,
I am Creating a  application with a multiple functionality like 
Music Player  video Player, I have to create a Music Player application in 
a packagenam1 and Video Player in a packagename2 but these two packages 
have to be in a Single Package i.e., packagename.

   Kindly tell some links to get clear about this concept... 
 



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

[android-developers] Writing to External SD

2012-08-28 Thread Dirk Vranckaert
I have an issue with writing on external SD...

Writing on the external SD as Google puts it is not difficult 
with Environment.getExternalStorageDirectory().
However I want to make a difference for my users so they can choose to 
either backup their data to the 'on device' external memory and the 'SD 
Card' the user put in the device (if any).

If both are available the Environment.getExternalStorageDirectory() method 
always gives me the SD memory build in the device.
If only the SD-card is present I have the SD-card reference.
Currently I solved it by letting the user manually enter the location URI 
of the SD-card, but that's not user-friendly at all so I'dd rather have a 
way to just let them choose between 'On device storage' and 'SD-card 
storage' and let me retrieve the URI myself...

Is there a clean way (or maybe a library) to do so?

Kr,

Dirk

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

[android-developers] JellyBean problem on Long click when context menu and android:autolink= all

2012-08-28 Thread Jason Sesso
It seems that you. Need to add the onlongclick method. I just did this 
recently.  Ill get you an example in awhile. 

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


[android-developers] Iam new to developing a android app ( stuck in mainactivity class)

2012-08-28 Thread Jason Sesso
Put it below.

OnCreate(blah blah) {



}

sendMessage() {


}

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


[android-developers] Writing to External SD

2012-08-28 Thread Jason Sesso
Create a dialog. For them to choose and then save the preference.

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

2012-08-28 Thread Fabien R
On 27/08/2012 20:14, vivek singh wrote:
 I forget to mention that i contacted twice BEFORE the release of my app 
 mentioning the name issue
   
You should have waited for their answer BEFORE releasing your app.
-
Fabien

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

2012-08-28 Thread Asheesh Arya
android sdk provide partial fuctionality !!! its work on some real device
not fully supported!!! you got the recorded file but when you want to
listen that recorded file it play on some real device not all.
http://forum.xda-developers.com/showthread.php?t=1441643
http://stackoverflow.com/questions/4862857/how-to-record-call-in-android-is-it-possible
  for recording functionality please refer this-
http://code.google.com/p/android/issues/detail?id=4075

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] glGenTextures return 0 and got call to OpenGL ES API with no current context (logged once per thread)

2012-08-28 Thread Latimerius
Hello,

Activity.onCreate() runs on application's main thread which is not
associated with a GL context, hence the error message.

The usual way is to have a rendering thread which you can either
associate with a GL context yourself by using EGL calls, or you can
have the Android framework help you with it if you use GLSurfaceView.
The latter is simpler if you are no expert (and given the somewhat
unpredictable behaviour of EGL on Android).  Check this out for a good
explanation how to get going with GLSurfaceView:

http://android-developers.blogspot.cz/2009/04/introducing-glsurfaceview.html


On Tue, Aug 28, 2012 at 4:11 AM, Li Sun lisundr...@gmail.com wrote:
 Hi,

 I just met a issue of  glGenTextures. I wrote the below codes on
 Activity.onCreate() function

 int[] mTextureNames = new int[1];
 GLES20.glGenTextures(1,mTextureNames,0);
 SurfaceTexture mSurfaceTexture = new
 SurfaceTexture(mTextureNames[0]);

 but mTextureNames[0] is always 0 and got the log call to OpenGL ES API with
 no current context (logged once per thread).  I think i may need to do some
 initialization work before calling the source code. Would someone help to
 tell me what's the steps ? Thanks a lot!

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

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

2012-08-28 Thread TreKing
On Mon, Aug 27, 2012 at 1:14 PM, vivek singh vivek.r...@gmail.com wrote:

 I forget to mention that i contacted twice BEFORE the release of my app
 mentioning the name issue


No response != consent to publish your app.

Did I mention I'm not a lawyer?

-
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: TWO APPS WITH SAME NAME

2012-08-28 Thread sparky
Since nobody seems to have answered your question from the technical
sense, I will. What Android (and Google Play) uses to decide if two
apps are the same is the full.package.name. As long as the package
names are unique, the system doesn't care if they have the same name.

On Aug 27, 7:26 pm, vivek singh vivek.r...@gmail.com wrote:
 Hi
 I released my app on google play on 15th august.
 I saw another app with same name released on  23 august.
 Is it OK?

 regards
 vivek

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 obtain the value of leftEye position by Android 4.0 API

2012-08-28 Thread Elease

Hello : 
 
 
I used the Android 4.0 Face Detection API (hardware.camera.Face) to detect 
the faces.
The face detection API has many object to get the values like leftEye to 
get the left eye's point and mouth to get the mouth position. 
This URL is about the Face detect API : 
http://developer.android.com/reference/android/hardware/Camera.Face.html

But I try this API to get these object values, only rect and score had 
the valid values. 
The Android Developer pages on the URL interprets the API may failed on 
some hardware.

I implement this API on HTC One X , and just could get rect and score 
values.
Could anyone can help me to solve this problem ?
Please let me known if your device can support the API and work perfectly.  
 
Thanks a lot !

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

[android-developers] Empty Extras in SDK Manager

2012-08-28 Thread ccjohn
I have downloaded the manager which version is new one (20.0.3). After I 
installed it, it can fetch the add-on schema #5 and repository schema #7 
successfully.

But the Extras folder is empty and cannot be expanded. What's happening?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: NFC detection of tag with NDEF URL always launch browser

2012-08-28 Thread Andrea Corzani
Hello,
i'm also interested in this question.
I wrote into a MifareTag a new URI: http://developer.android.com/index.html 
using application NXPTagWriter.
My demo application activity has this intentFilter on Manifest:

intent-filter
action android:name=android.nfc.action.NDEF_DISCOVERED /
category android:name=android.intent.category.DEFAULT /
data android:scheme=http
android:host=developer.android.com
android:pathPrefix=/index.html /
/intent-filter

That should match with the URI on the tag.

Unfortunately, the android browser is always started instead my app.
Have you solved the problem?
Thanks

Andrea


Il giorno venerdì 10 febbraio 2012 17:38:54 UTC+1, NameZero912 ha scritto:

 Hi, 

 I'm wondering whether (with android 4.x) it is possible to change the 
 behavior that a detected tag that contains, say, 1 NDEF message with 1 
 record (URI http://...) automatically launches the browser. I'm 
 developing an application that is supposed to launch automatically 
 when a tag that contains a URL starting with a certain pattern (http:// 
 www.somedomain/*) is detected. Using foreground-dispatching does of 
 course work, but I'd also like my app to appear in the NFC activity 
 dialog chooser (which it does in v2.3.6, but in v4.x the browser is 
 always launched automatically). 

 Please also tell if there currently is no way of achieving this, so 
 that I can stop investigating.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'

2012-08-28 Thread Jason Sesso
I'm trying to understand mavens purpose

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-28 Thread B.Arunkumar
Hi,

   Thank you for your mail. In the Application.mk, we have specified:

APP_ABI := armeabi-v7a

and in the Android.mk we have specified:

ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS := -DHAVE_NEON=1
LOCAL_MODULE := OnVRView
LOCAL_SRC_FILES += VideoDecoder.cpp.neon
LOCAL_ARM_NEON := true
endif

and so only the armeabi-v7a library gets generated in the project when
compiled. Now when we upload the app to the PlayStore, will the app
atleast not be visible to non armv-7 devices? So what you are saying
is, check if armv-7 devices have neon support or not??

Thank you,
B.Arunkumar.

On Aug 28, 12:27 pm, Doug beafd...@gmail.com wrote:
 No.  Neon instructions are not part of the ABI specification, which is what
 the device uses to determine which .so to load.  You have to detect that at
 runtime OR you have to make the user make an informed decision about which
 shared library to use (which drastically decreases usability of your app).

 Doug







 On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote:

  Hi,

     What about upload to the Google PlayStore? If we compile the app
  for armv7 neon support, is it that Google PlayStore will automatically
  restrict the app from being seen on non-neon devices?

  Thank you,
  B.Arunkumar

  On Aug 22, 1:54 pm, B.Arunkumar awsnetworkrecor...@gmail.com
  wrote:
   Hi,

        We have an app which is compiled for arm-v7 neon with appropriate
   definitions in Application.mk and Android.mk. Is there any way to
   prevent installation  on Non Neon devices with an appropriate message
   Cannot install. Currently when I install the application by either
   debug or run mode, the application installs on the device but when
   opened. it crashes with an
   ExceptionInInitializer error.

   Thank you,
   B.Arunkumar

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


[android-developers] Dear Developers

2012-08-28 Thread parthi
 how can i create dynamically widgets in android using json parser is it 
possible to create 

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

2012-08-28 Thread Thesalan
Why do you want to use JSON?

Android use XML, not JSON..

Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it 
 possible to create 

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

2012-08-28 Thread Parthi K
Dear  Thesalan ,
 thanks to answer 
Thesalan  right now i am working web services layout and widgets want
to generate dynamically .so i tried android support JSON



 String json =   {\EditText\ :{\id\:\edit\, \data\: \Click
Here\, \size\: 200, \style\: \bold\, \name\: \text1\,
\vOffset\: 100,\hOffset\: 250,\alignment\: \center\ })};



json object created this json object converted to string




 JSONObject jsonObj = null;
 {
try {
jsonObj = new JSONObject(json);
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace(); }
try {

JSONObject menu = jsonObj.getJSONObject(EditText);
String id=menu.getString(id);
String  data =menu.getString(data);
String size =menu.getString(size);
String style =menu.getString(style);
String vOffset =menu.getString(vOffset);
String hOffset =menu.getString(hOffset);
String alignment =menu.getString(alignment);
String jsonresult = id:  + id +data:+data+size:+size
+style:+style+voffset:+vOffset+hoffset:+alignment:+alignment ;
//MyView(jsonresult);
}
catch(Exception e){
 e.printStackTrace();
}



using this string want to pass one surfaceview  i dont know how can i pass
surfaceview strings


surface view only draw method it will support only canvas so how can i
pass string here ..pl reply

On Tue, Aug 28, 2012 at 3:18 PM, Thesalan thesa...@gmail.com wrote:

 Why do you want to use JSON?

 Android use XML, not JSON..

 Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it
 possible to create

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

2012-08-28 Thread Thesalan
I just a beginner in Android development, so I don't know if it's 
possible...

But, I don't think that you are on the good way... Send interface and code 
by web it's not advisable.
If you really want to do this (to not integrate UI in your app), maybe you 
have to look for an HTML interface or webview...

If you really want to do this, you have to manually parse the json and 
create the java elements... ( if ( json == textview) if ( json.child 
== id). )


Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it 
 possible to create 

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

2012-08-28 Thread Thesalan
I just a beginner in Android development, so I don't know if it's 
possible...

But, I don't think that you are on the good way... Send interface and code 
by web it's not advisable.
If you really want to do this (to not integrate UI in your app), maybe you 
have to look for an HTML interface or webview...

If you really want to do this, you have to manually parse the json and 
create the java elements... ( if ( json == textview) if ( json.child 
== id). )


Le mardi 28 août 2012 12:00:14 UTC+2, parthi a écrit :

 Dear  Thesalan ,
  thanks to answer 
 Thesalan  right now i am working web services layout and widgets want 
 to generate dynamically .so i tried android support JSON 



  String json =   {\EditText\ :{\id\:\edit\, \data\: \Click 
 Here\, \size\: 200, \style\: \bold\, \name\: \text1\, 
 \vOffset\: 100,\hOffset\: 250,\alignment\: \center\ })};



 json object created this json object converted to string 




  JSONObject jsonObj = null;
  {
 try {
 jsonObj = new JSONObject(json);
  } catch (JSONException e) {
 // TODO Auto-generated catch block
 e.printStackTrace(); } 
 try {
  
  JSONObject menu = jsonObj.getJSONObject(EditText);
 String id=menu.getString(id);
  String  data =menu.getString(data);
 String size =menu.getString(size);
  String style =menu.getString(style);
 String vOffset =menu.getString(vOffset);
  String hOffset =menu.getString(hOffset);
 String alignment =menu.getString(alignment);
  String jsonresult = id:  + id +data:+data+size:+size 
 +style:+style+voffset:+vOffset+hoffset:+alignment:+alignment ;
 //MyView(jsonresult);
 }
 catch(Exception e){
  e.printStackTrace();
 }



 using this string want to pass one surfaceview  i dont know how can i pass 
 surfaceview strings 


 surface view only draw method it will support only canvas so how can i 
 pass string here ..pl reply 

 On Tue, Aug 28, 2012 at 3:18 PM, Thesalan thes...@gmail.com javascript:
  wrote:

 Why do you want to use JSON?

 Android use XML, not JSON..

 Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it 
 possible to create 

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

2012-08-28 Thread Parthi K
thanks dudee...

On Tue, Aug 28, 2012 at 3:52 PM, Thesalan thesa...@gmail.com wrote:

 I just a beginner in Android development, so I don't know if it's
 possible...

 But, I don't think that you are on the good way... Send interface and code
 by web it's not advisable.
 If you really want to do this (to not integrate UI in your app), maybe you
 have to look for an HTML interface or webview...

 If you really want to do this, you have to manually parse the json and
 create the java elements... ( if ( json == textview) if ( json.child
 == id). )


 Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it
 possible to create

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-28 Thread RichardC
You need to do a runtime test. Read: android-ndk-r8b/docs/CPU-FEATURES.html

On Tuesday, August 28, 2012 10:41:12 AM UTC+1, B.Arunkumar wrote:

 Hi, 

Thank you for your mail. In the Application.mk, we have specified: 

 APP_ABI := armeabi-v7a 

 and in the Android.mk we have specified: 

 ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) 
 LOCAL_CFLAGS := -DHAVE_NEON=1 
 LOCAL_MODULE := OnVRView 
 LOCAL_SRC_FILES += VideoDecoder.cpp.neon 
 LOCAL_ARM_NEON := true 
 endif 

 and so only the armeabi-v7a library gets generated in the project when 
 compiled. Now when we upload the app to the PlayStore, will the app 
 atleast not be visible to non armv-7 devices? So what you are saying 
 is, check if armv-7 devices have neon support or not?? 

 Thank you, 
 B.Arunkumar. 

 On Aug 28, 12:27 pm, Doug beafd...@gmail.com wrote: 
  No.  Neon instructions are not part of the ABI specification, which is 
 what 
  the device uses to determine which .so to load.  You have to detect that 
 at 
  runtime OR you have to make the user make an informed decision about 
 which 
  shared library to use (which drastically decreases usability of your 
 app). 
  
  Doug 
  
  
  
  
  
  
  
  On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote: 
  
   Hi, 
  
  What about upload to the Google PlayStore? If we compile the app 
   for armv7 neon support, is it that Google PlayStore will automatically 
   restrict the app from being seen on non-neon devices? 
  
   Thank you, 
   B.Arunkumar 
  
   On Aug 22, 1:54 pm, B.Arunkumar awsnetworkrecor...@gmail.com 
   wrote: 
Hi, 
  
 We have an app which is compiled for arm-v7 neon with 
 appropriate 
definitions in Application.mk and Android.mk. Is there any way to 
prevent installation  on Non Neon devices with an appropriate 
 message 
Cannot install. Currently when I install the application by either 
debug or run mode, the application installs on the device but when 
opened. it crashes with an 
ExceptionInInitializer error. 
  
Thank you, 
B.Arunkumar 


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

2012-08-28 Thread vinay kumar
May I know what is the issue you are facing with?

On Tue, Aug 28, 2012 at 12:26 PM, Pau Rodríguez Coloma paro...@gmail.comwrote:

 Please, help...

 El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma
 escribió:

 Hi,

  I'm want to set the background of a RelativeLayout like the attached
 png. For the moment I'm using a bitmap definition xml named
 background_dark.xml like:


 ?xml version=1.0 encoding=utf-8?

 bitmap 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
 

 android:src=@drawable/fondo_**oscuro

 android:tileMode=repeat

 /bitmap


 And using it as the background drawable in my RelativeLayout:


 RelativeLayout

 android:layout_width=fill_**parent

 android:layout_height=fill_**parent

 android:layout_below=@+id/**headerLayout

 android:background=@drawable/**background_dark

 /RelativeLayout


 But I want to make the same effect without using the png file, i.e. using
 only shapes and layer-list. The number of lines has to be different
 depending of the screen size, only the separation between lines are
 determinated.


 Does anyone know how can I do this?


 Thanks in advance.


 NOTE: Sorry about my english.

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

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 4:09 AM, karuna vikas kvk2551...@gmail.com wrote:
 Hi Everybody ,
 I am Creating a  application with a multiple functionality like
 Music Player  video Player, I have to create a Music Player application in
 a packagenam1 and Video Player in a packagename2 but these two packages
 have to be in a Single Package i.e., packagename.

Kindly tell some links to get clear about this concept...

You can only have one app, known by one package name, in an APK file.
You are welcome to have your Java classes use whatever package names
you want, but from the user's standpoint, it is one app (e.g., it is
one entry in the Play Store, it is one entry in the installed apps
list in Settings).

-- 
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 4.1 Available!

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


Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
That's rather strange, particularly considering that ViewPager is part of
the Android Support package, not the firmware.

If you can create a complete sample project that demonstrates this, upload
the source somewhere, as I'd like to take a look at it.

On Mon, Aug 27, 2012 at 4:29 AM, Thesalan thesa...@gmail.com wrote:

 Hi!

 I started Android development last week, and I have a problem with a code
 on some devices :

 I have to develop an application with a specific controller like a
 horizontal wheel. To do this, I want to use the ViewPager, with
 setClipChildren(false) to extend the view. I based on the following code :
 https://gist.github.com/8cbe094bb7a783e37ad1

 The result looks like this :


 https://lh4.googleusercontent.com/-DjFOnG7O0wY/UDstWN3AE2I/AfE/yWpndOBTWIA/s1600/emulator.png
 The ViewPager here is just on Item4, and with setClipChildren(false) we
 can see the other item.

 This works greats on emulator (tested on API 7 to 16) and some devices!

 But I encounter some problems on more recent devices, like HTC One X
 (Android 4.0.4) and a Nexus S (CM10 - Android 4.1.1) : the ViewPager
 doesn't really extended! Just the current item is shown, and when you are
 sliding, the next item is shown :


 https://lh3.googleusercontent.com/-clS7voj3rLk/UDsvfP1HnhI/AfM/K8uMV_9PLFA/s1600/onex_current.png

 When sliding :


 https://lh5.googleusercontent.com/-3tYaKu_Oz7w/UDsvnljXJ0I/AfU/JEaCZolThJ4/s1600/onex_sliding.png



 Anybody else already encounter this problem? I think is an optimization on
 these devices, but how can I bypass this?

 Thanks in advance!



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




-- 
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 4.1 Available!

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

Re: [android-developers] Re: Use of shapes for background

2012-08-28 Thread vinay kumar
I mean to ask is there any problem with .png file.

On Tue, Aug 28, 2012 at 5:08 PM, vinay kumar vk872...@gmail.com wrote:

 May I know what is the issue you are facing with?


 On Tue, Aug 28, 2012 at 12:26 PM, Pau Rodríguez Coloma 
 paro...@gmail.comwrote:

 Please, help...

 El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma
 escribió:

 Hi,

  I'm want to set the background of a RelativeLayout like the attached
 png. For the moment I'm using a bitmap definition xml named
 background_dark.xml like:


 ?xml version=1.0 encoding=utf-8?

 bitmap 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
 

 android:src=@drawable/fondo_**oscuro

 android:tileMode=repeat

 /bitmap


 And using it as the background drawable in my RelativeLayout:


 RelativeLayout

 android:layout_width=fill_**parent

 android:layout_height=fill_**parent

 android:layout_below=@+id/**headerLayout

 android:background=@drawable/**background_dark

 /RelativeLayout


 But I want to make the same effect without using the png file, i.e.
 using only shapes and layer-list. The number of lines has to be different
 depending of the screen size, only the separation between lines are
 determinated.


 Does anyone know how can I do this?


 Thanks in advance.


 NOTE: Sorry about my english.

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

2012-08-28 Thread karuna vikas
thanks Murphy,, I  got the point what you are saying...  In a Single 
Android Package, we can use multiple java packages ... Right ? 

On Tuesday, August 28, 2012 1:39:42 PM UTC+5:30, karuna vikas wrote:

 Hi Everybody ,
 I am Creating a  application with a multiple functionality 
 like Music Player  video Player, I have to create a Music Player 
 application in a packagenam1 and Video Player in a packagename2 but 
 these two packages have to be in a Single Package i.e., packagename.

Kindly tell some links to get clear about this concept... 
  

 


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

[android-developers] Listening multiple button

2012-08-28 Thread Haris


  Hai all..

For my application I am using several buttons...
Is it possible to listen multiple button at the same time..
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: Listening multiple button

2012-08-28 Thread Thesalan
Yes of course!

In the layout, you have just to specify the name of the function that you 
want to trigger in the attribute onClick of each buttons

Le mardi 28 août 2012 14:27:34 UTC+2, Haris a écrit :



   Hai all..

 For my application I am using several buttons...
 Is it possible to listen multiple button at the same time..
 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: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 8:10 AM, karuna vikas kvk2551...@gmail.com wrote:
 thanks Murphy,, I  got the point what you are saying...  In a Single Android
 Package, we can use multiple java packages ... Right ?

You can use 1,000 Java packages within an Android app, if the mood
strikes you, and you like typing.

-- 
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 4.1 Available!

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


[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse

Mark Murphy schrieb:

On Tue, Aug 28, 2012 at 8:10 AM, karuna vikas kvk2551...@gmail.com wrote:

thanks Murphy,, I  got the point what you are saying...  In a Single Android
Package, we can use multiple java packages ... Right ?


You can use 1,000 Java packages within an Android app, if the mood
strikes you, and you like typing.



You can also distribute the 1000 java packages across
multiple APK. Then see to it that these APK share process
ID and user ID. Then one APK can access the other APK
withou getting file read errors.

You can then use a PathClassLoader in one of the APKs
to load the classes from the other APKs. This is
a more tight coupling than calling a service of the
other APK.

If you don't assign an intent to an APK, it will not
be listed in the application panel, but it will be
still listed in the table of your downloaded
applications.

I am currently experimenting with such a setup to
deliver a framework, where I can load plugins one
after the other (*). Works fine so far, but not sure whether
this is canonical for Android. It is simply a port
of a concept used in a Swing application.

Maybe for Android there is a different way to deliver
libraries to an existing APK, preferably from a store.

Comments welcome

Bye

(*) You can see a screenshot here:
https://plus.google.com/u/0/10325981227445618/posts/Lhiqu79xutr
Jekejeke Minlog is an APK without an intent
Jekejeke Runtime is an APK with a main intent


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


Re: [android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 8:56 AM, Jan Burse janbu...@fastmail.fm wrote:
 You can also distribute the 1000 java packages across
 multiple APK. Then see to it that these APK share process
 ID and user ID. Then one APK can access the other APK
 withou getting file read errors.

sharedUserId is not recommended for SDK apps.

-- 
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 4.1 Available!

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


[android-developers] Android devices and use of MM/INCH

2012-08-28 Thread Thesalan
For a project, I have to use real size, like millimeters and inches. But on 
some devices, these values are false!

I have tested on some devices, and it appears that on HTC One X and HTC 
Wildfire, 10mm = 11/12mm... But on Nexus One, Nexus S, Galaxy S2 these 
sizes are right!

To do this, I use this code :

float pxCm = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_MM, 10,

  r.getDisplayMetrics());


Someone have already encounter this problem? If yes, how have you bypass 
this?


Thanks in advance

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

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse

Mark Murphy schrieb:

On Tue, Aug 28, 2012 at 8:56 AM, Jan Burse janbu...@fastmail.fm wrote:

You can also distribute the 1000 java packages across
multiple APK. Then see to it that these APK share process
ID and user ID. Then one APK can access the other APK
withou getting file read errors.


sharedUserId is not recommended for SDK apps.



Not recommended in general or for SDK apps? Why for
SDK apps, you refer to some particular issue?

I found this:
http://java-hamster.blogspot.ch/2010/05/androids-shareduserid.html
In the above some issues are listed. Do you mean
these? I guess they are SDK independent...

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

2012-08-28 Thread Marina Cuello
I didn't test it yet, but I'll need to add that option soon and I
found this blog about it
http://renzhi.ca/2012/02/03/how-to-list-all-sd-cards-on-android/

Marina

On Tue, Aug 28, 2012 at 5:39 AM, Jason Sesso djse...@gmail.com wrote:
 Create a dialog. For them to choose and then save the preference.

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

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 9:09 AM, Jan Burse janbu...@fastmail.fm wrote:
 sharedUserId is not recommended for SDK apps.

 Not recommended in general or for SDK apps?

My understanding is that sharedUserId was really designed for apps
that ship as part of the firmware.

 Why for
 SDK apps, you refer to some particular issue?

 I found this:
 http://java-hamster.blogspot.ch/2010/05/androids-shareduserid.html
 In the above some issues are listed. Do you mean
 these? I guess they are SDK independent...

Those are specific problems that I am aware of. I seem to recall
Dianne Hackborn steering us away from sharedUserId, though I am having
some difficulty finding the particular post.

I'd use other mechanisms, such as a custom signature-level permission
and a ContentProvider, rather than sharedUserId.

-- 
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 4.1 Available!

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


Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
I'll try to take a look at this later today.

On Tue, Aug 28, 2012 at 8:54 AM, Thesalan thesa...@gmail.com wrote:

 Thanks a lot!!

 The project is attached to this post, at this lighter version (like we can
 found here https://gist.github.com/8cbe094bb7a783e37ad1)

 I repeat : this works greats on emulator and older devices, but not on my
 HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10
 (Android 4.1.1)


 Le mardi 28 août 2012 13:44:28 UTC+2, Mark Murphy (a Commons Guy) a écrit :

 That's rather strange, particularly considering that ViewPager is part of
 the Android Support package, not the firmware.

 If you can create a complete sample project that demonstrates this,
 upload the source somewhere, as I'd like to take a look at it.

 On Mon, Aug 27, 2012 at 4:29 AM, Thesalan thes...@gmail.com wrote:

  Hi!

 I started Android development last week, and I have a problem with a
 code on some devices :

 I have to develop an application with a specific controller like a
 horizontal wheel. To do this, I want to use the ViewPager, with
 setClipChildren(false) to extend the view. I based on the following code :
 https://gist.github.com/**8cbe094bb7a783e37ad1https://gist.github.com/8cbe094bb7a783e37ad1

 The result looks like this :


 https://lh4.googleusercontent.com/-DjFOnG7O0wY/UDstWN3AE2I/AfE/yWpndOBTWIA/s1600/emulator.png
 The ViewPager here is just on Item4, and with setClipChildren(false)
 we can see the other item.

 This works greats on emulator (tested on API 7 to 16) and some devices!

 But I encounter some problems on more recent devices, like HTC One X
 (Android 4.0.4) and a Nexus S (CM10 - Android 4.1.1) : the ViewPager
 doesn't really extended! Just the current item is shown, and when you are
 sliding, the next item is shown :


 https://lh3.googleusercontent.com/-clS7voj3rLk/UDsvfP1HnhI/AfM/K8uMV_9PLFA/s1600/onex_current.png

 When sliding :


 https://lh5.googleusercontent.com/-3tYaKu_Oz7w/UDsvnljXJ0I/AfU/JEaCZolThJ4/s1600/onex_sliding.png



 Anybody else already encounter this problem? I think is an optimization
 on these devices, but how can I bypass this?

 Thanks in advance!



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

 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




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

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

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




-- 
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 4.1 Available!

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

Re: [android-developers] Using startActivity( intent ) multiple times, fails.

2012-08-28 Thread Mark Jawdoszak
I think this may well do the trick!
Just when you think you've scoured the docs looking for the right answer, 
someone else goes and finds it for you :-)

And the specific email app is what our client wants.
Mind you, a chooser would be a better approach and are used elsewhere. 
 Will see about convincing them of this, instead.

On Friday, 24 August 2012 18:29:30 UTC+1, MagouyaWare wrote:

 Does this help?

 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT

 Also, why are you restricting the user to a specific email program 
 (com.android.email)?  That doesn't follow good Android practices...

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



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

2012-08-28 Thread Satya Komatineni
Victor,
I am not entirely sure. But I can suggest a couple of experiments to
debug. May be inheriting a View directly is too simplisitic. Try
inheriting a TextView first. And if it works then you can look at what
other base methods of the View you will need to inherit.

Take a look at this item from the docs

http://developer.android.com/training/custom-views/custom-drawing.html

to see what other methods you need to override.

Also if you are intending to use some custom attributes you may want
to look at some detailed notes I have gathered at

http://satyakomatineni.com/item/4169

This goes into how attrs.xml and declare styleables work.

Also let me know what you find.
Thanks
Satya
http://satyakomatineni.com/android/training
http://satyakomatineni.com
http://androidbook.com
http://twitter.com/SatyaKomatineni
On Mon, Aug 27, 2012 at 2:09 PM, Victor Reboucas vcsrebou...@gmail.com wrote:
 Hi, I'm new to Android development and I'm trying to implement a custom view
 to act as a custom menu button for my app.

 I followed the instructions at
 http://developer.android.com/training/custom-views/create-view.html but by
 the end of the implementation I get a message saying Unfortunately
 customviews1 has stopped and the app just shut's down.

 My approach is very simple and I cannot find any reference about solving
 this basic problem. Here's what I'm doing:

 1. create a new Android project in Eclipse named customviews1

 2. I run the project and it shows a Hello World TextView on the
 activity_main.xml layout file

 3. I add a new class that extends View to the src folder of the project:

 public class MyCustomView extends View {

 public MyCustomView(Context context, AttributeSet attrs) {
 super(context, attrs);
 }

 }

 4. I remove the TextView from activity_main.xml and add a customview1 to
 it:


 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
 xmlns:tools=http://schemas.android.com/tools;
 android:layout_width=match_parent
 android:layout_height=match_parent

 com.example.customviews1.MyCustomView android:id=@+id/myCustomView1 /
 /RelativeLayout

 5. I run the app again and I got the message saying Unfortunately
 customviews1 has stopped and the app shuts down.


 Is there any code I'm missing here?


 Thanks for any clue,
 Regards,
 Victor Reboucas







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

2012-08-28 Thread Mark Jawdoszak
Fantastic response, thanks!

I knew I was missing something... turns out it's not just *one* thing I was 
missing, but a whole host of them.

As I said in the other post, this was the decision made by the client, but 
would look to (and rather!) invoke a chooser for mail applications.

With regards to the launching Intent, I'm clearly missing something as to 
the best approach for this, or at least, missing an understanding of the 
mechanisms Android employs in order to launch this.  We only wanted to 
launch the Email client, be able to browse/check this, download some files 
and launch our application again.  Is there actually a better approach? 
 From what you're saying, I'm almost certainly doing it wrong - but am a 
little stumped as to the *right* way.

On Friday, 24 August 2012 19:41:13 UTC+1, Dianne Hackborn wrote:

 This is wrong in a number of ways:

 getLaunchIntentForPackage( com.android.email );

 First, com.android.email is not an API.  That is the internal identifier 
 for the current e-mail application that is part of AOSP; there is *no* 
 guarantee that such a thing will ever exist on the device.

 Second, more specific to your issue here, getLaunchIntentForPackage() 
 returns a *launch* intent, for use in semantics like an app launcher.  What 
 you are asking for is not an app launcher; you want to run flow as part of 
 your own task, not launch something different.  In particular, what this 
 Intent will do is bring the current e-mail app to the foreground *in 
 whatever state it was last in*.  The user may have been in the middle of 
 composing a message, viewing something, etc.  It isn't saying to bring them 
 to the list of e-mail messages for them to import something.

 One other thing, when you say startActivityForResult() is not working, 
 this is not because of an explicit vs. implicit Intent; this is because 
 part of what getLaunchIntentForPackage() does is set 
 FLAG_ACTIVITY_NEW_TASK, which says to launch the Intent as a separate task 
 from yours (bringing an existing task to the foreground etc), which is 
 central to the semantics of this being for app launchers not in-task UI 
 flow.

 On Thu, Aug 23, 2012 at 7:16 AM, Mark Jawdoszak 
 evil...@gmail.comjavascript:
  wrote:

 I have an intent that starts the default Android mail client:

 Intent emailIntent = this.getPackageManager().getLaunchIntentForPackage( 
 com.android.email );
 this.startActivity( emailIntent );

 Very simple stuff, and it fires off the Email client, from an Import 
 from Email button in my app.

 My application is also registered with an intent-filter to open PDF 
 files.
 So, if I use the above Intent to open up the Email client, find an email 
 with a PDF attachment, download it, launch it, select my application from 
 the chooser... then everything loads great.

 Now if I hit my Import from Email button again, the intent runs, but 
 the Email client is never brought into the foreground.

 Am I missing something when using startActivity() to (re)launch the 
 correct app?
 I have tried checking if the intent is OK by following this 
 http://developer.android.com/training/basics/intents/sending.html#Verifybut 
 it always returns true (and that makes sense, as it can find the 
 Application, but it's just not bringing it to the foreground).

 I have also tried using startActivityForResult(), but as explained in the 
 Android docs, this fires off a cancel immediately, because the Activity 
 is not Explicit, but Implicit (thought I'd try it, just in case).

 I feel like I'm missing something, a step, a call to something... or have 
 I hit upon some strange loop that works in one case, but cannot keep 
 looping?  Any help/pointers would be greatly appreciated!




 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

 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] Connection reset by peer?

2012-08-28 Thread Salih Selametoglu
Hello,

I have got a same error. Did you solve this problem?

2012/8/17 bob b...@coolfone.comze.com:
 What does it mean when you try to form a Bluetooth connection on Android and
 you get this message?

 java.io.IOException: Connection reset by peer

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



-- 
Salih SELAMETOĞLU
Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı
Teknopalas RFID Software Solutions / Software Assistant
İstanbul Üni. Bil. Müh. 4. Sınıf
Istanbul University Computer Engineering  #4
http://selametoglu.blogspot.com/
http://appworld.blackberry.com/webstore/vendor/14117  (for BlackBerry
Applications)
https://slideme.org/user/barboonia  (for Android Applications)

+90 537 279 6412

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

2012-08-28 Thread Latimerius
On Tue, Aug 28, 2012 at 3:07 PM, Thesalan thesa...@gmail.com wrote:
 For a project, I have to use real size, like millimeters and inches. But on
 some devices, these values are false!

 I have tested on some devices, and it appears that on HTC One X and HTC
 Wildfire, 10mm = 11/12mm... But on Nexus One, Nexus S, Galaxy S2 these sizes
 are right!

 To do this, I use this code :

 float pxCm = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_MM, 10,

 r.getDisplayMetrics());


 Someone have already encounter this problem? If yes, how have you bypass
 this?

One thing I noticed is that devices can lie about their DPI.   For
instance, LG P500 states it has a 160 dpi screen but if you measure
the screen and do the maths, it's actually 180 dpi.  Correspondingly,
if you compute your pixel sizes based on the 160 dpi figure to get a
specified physical size (in mm), it will come out smaller.

I'd compute the actual DPI One X and Wildfire have and compare that to
figures in DisplayMetrics.

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

2012-08-28 Thread Justin Anderson
Look at the logcat output... It should tell you why your app is crashing.

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


On Tue, Aug 28, 2012 at 7:44 AM, Satya Komatineni 
satya.komatin...@gmail.com wrote:

 Victor,
 I am not entirely sure. But I can suggest a couple of experiments to
 debug. May be inheriting a View directly is too simplisitic. Try
 inheriting a TextView first. And if it works then you can look at what
 other base methods of the View you will need to inherit.

 Take a look at this item from the docs

 http://developer.android.com/training/custom-views/custom-drawing.html

 to see what other methods you need to override.

 Also if you are intending to use some custom attributes you may want
 to look at some detailed notes I have gathered at

 http://satyakomatineni.com/item/4169

 This goes into how attrs.xml and declare styleables work.

 Also let me know what you find.
 Thanks
 Satya
 http://satyakomatineni.com/android/training
 http://satyakomatineni.com
 http://androidbook.com
 http://twitter.com/SatyaKomatineni
 On Mon, Aug 27, 2012 at 2:09 PM, Victor Reboucas vcsrebou...@gmail.com
 wrote:
  Hi, I'm new to Android development and I'm trying to implement a custom
 view
  to act as a custom menu button for my app.
 
  I followed the instructions at
  http://developer.android.com/training/custom-views/create-view.html but
 by
  the end of the implementation I get a message saying Unfortunately
  customviews1 has stopped and the app just shut's down.
 
  My approach is very simple and I cannot find any reference about solving
  this basic problem. Here's what I'm doing:
 
  1. create a new Android project in Eclipse named customviews1
 
  2. I run the project and it shows a Hello World TextView on the
  activity_main.xml layout file
 
  3. I add a new class that extends View to the src folder of the
 project:
 
  public class MyCustomView extends View {
 
  public MyCustomView(Context context, AttributeSet attrs) {
  super(context, attrs);
  }
 
  }
 
  4. I remove the TextView from activity_main.xml and add a
 customview1 to
  it:
 
 
  RelativeLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
  xmlns:tools=http://schemas.android.com/tools;
  android:layout_width=match_parent
  android:layout_height=match_parent
 
  com.example.customviews1.MyCustomView android:id=@+id/myCustomView1 /
  /RelativeLayout
 
  5. I run the app again and I got the message saying Unfortunately
  customviews1 has stopped and the app shuts down.
 
 
  Is there any code I'm missing here?
 
 
  Thanks for any clue,
  Regards,
  Victor Reboucas
 
 
 
 
 
 
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --

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


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

Re: [android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Justin Anderson
Dianne very strongly recommends that SDK apps do not use it.  There are
better ways to get the behavior you want.

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


On Tue, Aug 28, 2012 at 7:30 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Aug 28, 2012 at 9:09 AM, Jan Burse janbu...@fastmail.fm wrote:
  sharedUserId is not recommended for SDK apps.
 
  Not recommended in general or for SDK apps?

 My understanding is that sharedUserId was really designed for apps
 that ship as part of the firmware.

  Why for
  SDK apps, you refer to some particular issue?
 
  I found this:
  http://java-hamster.blogspot.ch/2010/05/androids-shareduserid.html
  In the above some issues are listed. Do you mean
  these? I guess they are SDK independent...

 Those are specific problems that I am aware of. I seem to recall
 Dianne Hackborn steering us away from sharedUserId, though I am having
 some difficulty finding the particular post.

 I'd use other mechanisms, such as a custom signature-level permission
 and a ContentProvider, rather than sharedUserId.

 --
 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 4.1 Available!

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


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

2012-08-28 Thread Justin Anderson
Or you can add the listener programatically in your code...  That is how I
prefer to set up click events.
http://developer.android.com/reference/android/view/View.html#setOnClickListener%28android.view.View.OnClickListener%29

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


On Tue, Aug 28, 2012 at 6:33 AM, Thesalan thesa...@gmail.com wrote:

 Yes of course!

 In the layout, you have just to specify the name of the function that you
 want to trigger in the attribute onClick of each buttons


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

2012-08-28 Thread Justin Anderson
I am not sure you can do that exact background with shapes defined in XML.
You can look here to see the full documentation on defining drawables in
XML:

http://developer.android.com/guide/topics/resources/drawable-resource.html

Also, I have a blog post that covers some of these... This is the first of
a three-part blog post I plan on doing to cover defining drawables in xml:

http://android-dev-tips-and-tricks.blogspot.com/2012/08/xml-drawables-part-i.html

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


On Tue, Aug 28, 2012 at 5:45 AM, vinay kumar vk872...@gmail.com wrote:

 I mean to ask is there any problem with .png file.


 On Tue, Aug 28, 2012 at 5:08 PM, vinay kumar vk872...@gmail.com wrote:

 May I know what is the issue you are facing with?


 On Tue, Aug 28, 2012 at 12:26 PM, Pau Rodríguez Coloma paro...@gmail.com
  wrote:

 Please, help...

 El viernes, 24 de agosto de 2012 12:08:54 UTC+2, Pau Rodríguez Coloma
 escribió:

 Hi,

  I'm want to set the background of a RelativeLayout like the attached
 png. For the moment I'm using a bitmap definition xml named
 background_dark.xml like:


 ?xml version=1.0 encoding=utf-8?

 bitmap 
 xmlns:android=http://schemas.**android.com/apk/res/androidhttp://schemas.android.com/apk/res/android
 

 android:src=@drawable/fondo_**oscuro

 android:tileMode=repeat

 /bitmap


 And using it as the background drawable in my RelativeLayout:


 RelativeLayout

 android:layout_width=fill_**parent

 android:layout_height=fill_**parent

 android:layout_below=@+id/**headerLayout

 android:background=@drawable/**background_dark

 /RelativeLayout


 But I want to make the same effect without using the png file, i.e.
 using only shapes and layer-list. The number of lines has to be different
 depending of the screen size, only the separation between lines are
 determinated.


 Does anyone know how can I do this?


 Thanks in advance.


 NOTE: Sorry about my english.

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



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


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

Re: [android-developers] Re: Dear Developers

2012-08-28 Thread Parthi K
Hi thanks dude i got output

On Tue, Aug 28, 2012 at 3:56 PM, Parthi K parthisof...@gmail.com wrote:

 thanks dudee...


 On Tue, Aug 28, 2012 at 3:52 PM, Thesalan thesa...@gmail.com wrote:

 I just a beginner in Android development, so I don't know if it's
 possible...

 But, I don't think that you are on the good way... Send interface and
 code by web it's not advisable.
 If you really want to do this (to not integrate UI in your app), maybe
 you have to look for an HTML interface or webview...

 If you really want to do this, you have to manually parse the json and
 create the java elements... ( if ( json == textview) if ( json.child
 == id). )


 Le mardi 28 août 2012 11:42:07 UTC+2, parthi a écrit :

  how can i create dynamically widgets in android using json parser is it
 possible to create

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

2012-08-28 Thread bob
Yes.  *Hello, Android*.

On Friday, August 24, 2012 6:22:12 PM UTC-5, Lew wrote:

 TreKing wrote:

  bob wrote:

 You will want to download a copy of MOTODEV Studio


 For what?

  
   and buy an Android book. 

 Why?

 Most information you need is somewhere on developer.android.com and 
 related sites.

 Not every book is as useful as every other. Do you have a particular book 
 in mind?

 -- 
 Lew



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

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse

Mark Murphy schrieb:

custom signature-level permission


I was googling a little bit and found the following definition:

   A permission that the system grants only if the requesting 
application is signed with the same certificate as the application that 
declared the permission. If the certificates match, the system 
automatically grants the permission without notifying the user or asking 
for the user's explicit approval.


But the same certificate is also a prerequesite for sharedUserId
to work. So I don't see any harm in using sharedUserId. What is
exactly the threat of sharedUserId, except for the bug issues
already mentioned?

Bye

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


Re: [android-developers] Re: how to set two spinners with different strings and icons?

2012-08-28 Thread Sobia Awan
yes i hve chkd whole coding many time and also chkd each spinner
has different  ID...shall i snd u code?

On Sun, Aug 26, 2012 at 1:54 AM, KinnMirr 6004...@gmail.com wrote:

 First ... the program is only doing EXACTLY what you're telling it to do.
 Believe that.

 So, somewhere you're telling it to do the same thing twice.

 Check that each spinner has a different ID
 Check your population routines target two different spinner ID.

 Then, look close at every line of code ... like it was the first time you
 wrote it and go through the PROGRAMMING again in your head.

 If that doesn't work ... you better just post the Activity and Layout here
 for others to look at.
 Maybe we can see something you're overlooking!

 Fred

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




-- 
*Sobia Awan*
*  Bs(cs)*
**

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

[android-developers] Re: Multiple Package name in a Single Applicaiton

2012-08-28 Thread Jan Burse

Jan Burse schrieb:

Mark Murphy schrieb:

custom signature-level permission


I was googling a little bit and found the following definition:

A permission that the system grants only if the requesting
application is signed with the same certificate as the application that
declared the permission. If the certificates match, the system
automatically grants the permission without notifying the user or asking
for the user's explicit approval.

But the same certificate is also a prerequesite for sharedUserId
to work. So I don't see any harm in using sharedUserId. What is
exactly the threat of sharedUserId, except for the bug issues
already mentioned?

Bye


The same error, i.e. not providing a certificate, can be done
for both methods custom signature-level permission and sharedUserId:

https://groups.google.com/d/topic/android-framework/GvdEIMlaOVg/discussion

Right?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] eclipse juno on mac os x 10.5.8 adt plugin wont run

2012-08-28 Thread Tor Norbye
ADT doesn't have a dependency on OSX, but it does depend on JDK 6 (and
Eclipse 3.6.2 or later) -- do you have JDK 6 on your system?

-- Tor


On Mon, Aug 27, 2012 at 7:26 PM, Errol r3whitme...@gmail.com wrote:

 running os x 10.5.8 with eclipse 4.2 which runs fine, but a bit slow...
 after installing software and restarting the eclipse, the android plugins
 fail to load in the preferences. is there a way to work this out for the
 better? is eclipse juno compatible with os x 10.5.8? how can I get the
 plugin to load and show in the workbench after installing?

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

2012-08-28 Thread Jason Hsu
Check out my latest Android app, the Battery Saver Flashlight.  It's 
available for free on Google Play at 
https://play.google.com/store/apps/details?id=com.jasonhsu.batterysaverflashlightfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qYXNvbmhzdS5iYXR0ZXJ5c2F2ZXJmbGFzaGxpZ2h0Il0
 
.

This flashlight app lets you conserve battery power with convenient in-app 
options to disable your power-hungry WiFi, Bluetooth, and GPS features.  At 
only 163 kB, the Battery Saver Flashlight is easy on your smartphone's 
memory as well.

The Battery Saver Flashlight offers 16 different brightness settings and 4 
different colors (red, green, yellow, and white).

The source code is available at 
https://github.com/jhsu-android/BatterySaverFlashlight .

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

[android-developers] New app: Battery Saver Flashlight

2012-08-28 Thread Jason Hsu
Check out my latest Android app, the Battery Saver Flashlight.  It's 
available for free on Google Play at 
https://play.google.com/store/apps/details?id=com.jasonhsu.batterysaverflashlight
 
.

This flashlight app lets you conserve battery power with convenient in-app 
options to disable your power-hungry WiFi, Bluetooth, and GPS features.  At 
only 163 kB, the Battery Saver Flashlight is easy on your smartphone's 
memory as well.

The Battery Saver Flashlight offers 16 different brightness settings and 4 
different colors (red, green, yellow, and white).

The source code is available at 
https://github.com/jhsu-android/BatterySaverFlashlight .

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

[android-developers] Getting Error : StackOverflowError, ActivityGroup Problem

2012-08-28 Thread Rajan
hi,
i am getting error java.lang.stackoverflow

Question
---

Activity  A (Contains 2 Tab - select second one) -- Activity  B (contain 
one button - when i clicked on button) -- Activity C ((contain one button 
- when i clicked on button @ that time i want to go back to the Activity B)

the above flow is work fine.

but,

Problem
---

Activity  A (Contains 2 Tab - select second one) -- Activity  B (contain 
one button - when i clicked on button) -- Activity C ((contain one button 
- when i clicked on button @ that time i want to go back to the Activity B) 

Now again i want to go for Activity C after pressing a button which is 
available in activity B @  that time i am getting Error 
java.lang.StackOverflowError

how can i resolve it ?


here i am putting my code
-
==
 
public class A extends TabActivity
{
@Override
protected void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);
setContentView(R.layout.adspace_tab_controller);
 final TabHost tabhost=getTabHost();


tabhost.addTab(tabhost.newTabSpec(tab1).setIndicator(tab1).setContent(new 
Intent(this, B1.class)));


tabhost.addTab(tabhost.newTabSpec(tab2).setIndicator(tab2).setContent(new 
Intent(this, B2.class)));
}
}

==
 

public class B1 extends ActivityGroup implements OnClickListener
{
private ImageView iv=null;
@Override
protected void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);
setContentView(R.layout.proposal_list);
iv=(ImageView)findViewById(R.id.iv);
proposalSearch.setOnClickListener(this);
 }
public void onClick(View v) 
{
if(v==iv)
{
Intent intent = new Intent(v.getContext(), C.class);
replaceContentView(C, intent);
}
}
public void replaceContentView(String id, Intent newIntent) 
{
View view = 
getLocalActivityManager().startActivity(id,newIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT))
 
.getDecorView();
this.setContentView(view);
} 
}

==
 

public class C extends ActivityGroup implements OnClickListener
{
private Button goback;
@Override
protected void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);
setContentView(R.layout.proposal_search);
 goback =(Button)findViewById(R.id. goback );
 goback .setOnClickListener(this);
}
public void onClick(View v) 
{
if(v== goback )
{
Intent intent = new Intent(v.getContext(), B1.class);
replaceContentView(B1, intent);
}
}
public void replaceContentView(String id, Intent newIntent) 
{
View view = 
getLocalActivityManager().startActivity(id,newIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT))
 
.getDecorView();
this.setContentView(view);
}  
}
==

please help me i didn't understand what can i do.
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

  1   2   3   >