Re: [android-developers] How to get handle for cut copy paste menus from the system genereted action bar in android

2012-11-08 Thread Alan Jeon
I found this video. kikin for android adds additional function to 
acionmode to other app. 
Is this possible? How do you think?

On Wednesday, July 4, 2012 11:34:21 PM UTC+9, Mark Murphy (a Commons Guy) 
wrote:

 On Wed, Jul 4, 2012 at 10:26 AM, Bunty syed 
 itsmea...@gmail.comjavascript: 
 wrote: 
  For action bar , 
  I got a callback public void onActionModeStarted(ActionMode mode)  where 
 I 
  remove cut copy paste menus 
  
  But for attached screenshot edit button, I am not able to get any 
 callback. 
  
  Do u know any callback which is called on invoking tat menu  

 It might be a context menu (see onCreateContextMenu()), but on some 
 devices, the device manufacturer has replaced the context menu with 
 their own thing. It is not possible for you block cut/copy/paste 
 across all devices, even for your own app. 

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

 Android Training... At Your Office: http://commonsware.com/training 


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

Re: [android-developers] How to get handle for cut copy paste menus from the system genereted action bar in android

2012-11-08 Thread Alan Jeon
I missed video link. check this out.

http://www.kikin.com/blog/2012/10/kikin-contextual-search-demo-mailwebmaps/http://www.kikin.com/blog/2012/10/kikin-contextual-search-demo-mailwebmaps/http://www.kikin.com/blog/2012/10/kikin-contextual-search-demo-mailwebmaps/

On Thursday, November 8, 2012 6:29:03 PM UTC+9, Alan Jeon wrote:

 I found this video. kikin for android adds additional function to 
 acionmode to other app. 
 Is this possible? How do you think?

 On Wednesday, July 4, 2012 11:34:21 PM UTC+9, Mark Murphy (a Commons Guy) 
 wrote:

 On Wed, Jul 4, 2012 at 10:26 AM, Bunty syed itsmea...@gmail.com wrote: 
  For action bar , 
  I got a callback public void onActionModeStarted(ActionMode mode) 
  where I 
  remove cut copy paste menus 
  
  But for attached screenshot edit button, I am not able to get any 
 callback. 
  
  Do u know any callback which is called on invoking tat menu  

 It might be a context menu (see onCreateContextMenu()), but on some 
 devices, the device manufacturer has replaced the context menu with 
 their own thing. It is not possible for you block cut/copy/paste 
 across all devices, even for your own app. 

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

 Android Training... At Your Office: http://commonsware.com/training 



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

[android-developers] Merge two apk on Google Play

2012-11-08 Thread devAndroidHU
Hi,

I have two different package today for the same application:
- one for all languages except hungarian
- one for hungarian language

I did that long time ago when the hungarian language was not proposed as a 
description language. Now it's the case, so i would like to get ride of the 
hungarian language package.

What would be the best practise for this ? I would like to that the current 
user of the hungarian app don't lose the future update of the app. 

Thanks for your feedback !

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

[android-developers] Camera filtered video

2012-11-08 Thread Pavel Ryabenko


I can't understand how to display filtered video from camera on Android *
correctly*...

I wrote for sdk-8, so I've used the scheme below:

   1. Camera.setPreviewDisplay(*null*); // use null surface holder to 
   identify the fact that I don't want to see raw camera preview.
   2. Camera.setPreviewCallbackWithBuffer() + Camera.addCallbackBuffer() // 
   to get camera data, modify it and draw on my GLSurfaceView

And this scheme is wonderful works on 2.2.* androids... and I had been 
happy, until didn't try application on 4.* =) my callback function for 
receive frame data doesn't called at all!

According documentation, I shouldn't use *null* as argument for *
setPreviewDisplay*... without surface instance, video stream will not 
run... but if I give him surface he will start drawing camera raw preview 
on that surface

*The question is*: How can I correctly draw filtered camera video by my 
self on GLSurfaceView without displaying raw preview?!

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

2012-11-08 Thread Andrew Long
I can only seem to run the SDK manager in Eclipse. When I select it from 
windows explorer (even as administrator) nothing seems to happen. Any 
pointers?

Many thanks

Andy

On Monday, 1 October 2012 08:17:58 UTC+1, ALAN IVAN AYALA NAVA wrote:



 El viernes, 17 de agosto de 2012 12:13:11 UTC-5, Divya escribió:

 Hi, 

 I had the smae problem. I could install the support library when I ran 
 SDK 
 Manager as an administrator by right click on SDK manager.exe 

 Thanks 



 Thanks Divya, it works 


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

[android-developers] Bring activity to foreground when call redeived

2012-11-08 Thread Stefan
Hy,

I'm developping a SIP application. The problem is when the activty is 
closed with Home - Button and a call receive in the Broadcastreceiver i'm 
not able to bring the activity back to foreground.
I tried with:

if (!activity.hasWindowFocus()) {
 Intent i = activity.getIntent();
 i.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
 activity.startActivity(i);
}

Best regards

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

[android-developers] Re: File not found

2012-11-08 Thread Andrew Long
Thanks for your help, but when I can only seem to open the SDK manager from 
within Eclipse. When I try and run the SDK Manager.exe from windows 
explorer (even as administrator) nothing happens. Am I missing something?

Andy

On Saturday, 18 August 2012 13:01:03 UTC+1, Swami R wrote:

 Hi All,
   I have just joined andriod developers.
 When i try to update my sdk manager it is giving the following error. 
 please help me out in this issue.

 Preparing to install archives
 Downloading Android SDK Tools, revision 20.0.3
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\tools_r20.0.3-windows.zip (Access is denied)
 Downloading Android SDK Platform-tools, revision 14
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\platform-tools_r14-windows.zip (Access is 
 denied)
 Downloading Documentation for Android SDK, API 16, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\docs-16_r02.zip (Access is denied)
 Downloading SDK Platform Android 4.1, API 16, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\android-16_r02.zip (Access is denied)
 Downloading SDK Platform Android 4.0.3, API 15, revision 3
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\android-15_r03.zip (Access is denied)
 Downloading Samples for SDK API 16, revision 1
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\samples-16_r01.zip (Access is denied)
 Downloading Samples for SDK API 15, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\samples-15_r02.zip (Access is denied)
 Downloading ARM EABI v7a System Image, Android API 15, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\sysimg_armv7a-15_r02.zip (Access is denied)
 Downloading Sources for Android SDK, API 16, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\sources-16_r02.zip (Access is denied)
 Downloading Sources for Android SDK, API 15, revision 2
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\sources-15_r02.zip (Access is denied)
 Downloading Android Support Library, revision 10
 File not found: C:\Program Files 
 (x86)\Android\android-sdk\temp\support_r10.zip (Access is denied)
 Skipping 'ARM EABI v7a System Image, Android API 16, revision 2'; it 
 depends on 'SDK Platform Android 4.1, API 16, revision 2' which was not 
 installed.
 Done. Nothing was installed.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 fetch album art taken from ID3 tag of an mp3 file in android?

2012-11-08 Thread Anthony Pangestu


I'm making a music player application but I dont know how to show the album 
art or the cover art of the song as it plays. I'm thinking of fetching it 
in the java file and showing it into the xml file. Anybody can help?

I've tried something like this but it doesnt work:

View view = null;@SuppressWarnings(null)String coverPath = 
songsList.get(songIndex).get(MediaStore.Audio.Albums.ALBUM_ART);Drawable img = 
Drawable.createFromPath(coverPath);@SuppressWarnings(null)ImageView 
coverAlbum=(ImageView)view.findViewById(R.id.songThumbnail);
coverAlbum.setImageDrawable(img);

Here's the xml for the album art:

LinearLayout
android:id=@+id/songThumbnail
android:layout_width=fill_parent
android:layout_height=wrap_content
android:paddingTop=10dp
android:paddingBottom=10dp
android:gravity=center
android:layout_below=@id/player_header_bg
ImageView 
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@drawable/default /
 /LinearLayout

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

[android-developers] xmlpullparser problem

2012-11-08 Thread 黄兴华
I want get the xml string from an object using XmlPullParser,and  
the final xml strings should be something like this below:

?xml version='1.0' encoding= 'UTF-8'?
soap:Envelope   
xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   

soap:Body 

GenerateToken xmlns =http://yoid.org/; 

rasPublicKey 
W954egzsko/0f7ZBrJJzNYTOH9zvevkRxNNldyEUsAAKjJhsdps=  
   /rasPublicKey 

password 
   dk7876
/password 

/GenerateToken 
/soap:Body 

/soap:Envelope

But,it comes out to be wrong. like this:

?xml version='1.0' encoding= 'UTF-8'?
n0:Envelope  
xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:n0=soap 

n0:Body 

GenerateToken xmlns =http://yoid.org/; 

rasPublicKey 
W954egzsko/0f7ZBrJJzNYTOH9zvevkRxNNldyEUsAAKjJhsdps=  
   /rasPublicKey 

password 
   dk7876
/password 

/GenerateToken 
/n0:Body 

/n0:Envelope

What is going wrong? I have no idea.
Someone can help me?  


--  
Nick Hwang
已使用 Sparrow (http://www.sparrowmailapp.com/?sig)

已使用 Sparrow (http://www.sparrowmailapp.com/?sig)

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

[android-developers] QR generator Apps

2012-11-08 Thread avaiya kirti
Hello, i am new for android development, and i am going to develop QR code 
generator application so how i can move next step by step?

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

[android-developers] ProgressBar proportions problem

2012-11-08 Thread Filipe Batista
Hi,
I have a ProgressBar (indeterminate) inside a LinearLayout, when i open the 
app in phone with ICS the progressbar spinner keeps the right proportions, 
but when i open the app in a phone with Gingerbread or Froyo the 
progressbar spinner appears distorted. My ProgressBar is defined this way:

ProgressBar
android:id=@+id/spinner
android:layout_width=0dip
android:layout_height=50dip
android:layout_gravity=center
android:layout_marginRight=6dip
android:layout_weight=1.5
android:indeterminate=true
android:visibility=visible /

What can be causing this?
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=enattachment: Screenshot from 2012-11-07 10:55:29.pngattachment: Screenshot from 2012-11-07 10:56:16.png

[android-developers] Tablet Video application : screen duplication from another tablet - Any idea ?

2012-11-08 Thread G. G.
Hello,

I'd like to know if anyone thinks it could be possible (and, if possible, 
how) to create a tablet application that would display what's happening on 
another tablet (on the same wireless network) 

It could be for the same tablet model, same android version, and, if 
necessary, the tablets could even be linked to each other with a cable.

The application would allow a tablet to behave just like a clone screen you 
would plug to your computer...

Any idea ? Thanks in advance.

Regards,

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

[android-developers] Developers opinions required on internal SD card devices error

2012-11-08 Thread Zen Masta
Need fellow developers to look onto this problem and give your opinions. 
Problem regards to “too many open files” error message.

http://code.google.com/p/android/issues/detail?id=39002

I'll deeply appreciated 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] Android Developement Reference (CHM)

2012-11-08 Thread daoxiaoyue2012
To better facilitate the development of this Android application, I
would like to share this CHM documentation that is built based on the
application's SDK. This solution is targeted to provide fast indexing
and search for functions and libraries. If you have any questions,
please email me at yjzh...@daojia580.com. You can down it from here:
http://default.daojia01.com/android(chm).zip

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

2012-11-08 Thread dzeikei
This was a great help :)

Basically the fix is to set the width of the TextViews to 0dp so it doesn't 
default to match_parent when it wraps

On Friday, 20 April 2012 02:03:43 UTC+10, Scott Olcott wrote:

 Thanks to this 
 https://groups.google.com/d/msg/android-developers/QgN2B9CdQOo/0xdpwulIdCcJfrom
  Tor Norbe I was able to figure out how to get this working.  I think 
 then main issue that was causing this to not work was I wasn't using the 
 right namespace which should be  xmlns:app=
 http://schemas.android.com/apk/res-auto;. 

 Here is an example that now works:

 ?xml version=1.0 encoding=utf-8?

 android.support.v7.widget.GridLayout xmlns:android=
 http://schemas.android.com/apk/res/android;

   xmlns:app=http://schemas.android.com/apk/res-auto;

   android:layout_width=match_parent

   android:layout_height=match_parent

   app:columnCount=2

   app:useDefaultMargins=true 

   TextView

 app:layout_column=0

 app:layout_gravity=left

 app:layout_row=0

 android:text=Label /

   TextView

 android:layout_width=0dp

 app:layout_column=1

 app:layout_gravity=fill_horizontal

 app:layout_row=0

 android:text=test test test test test test test test test test test 
 test test test test test test test /

 /android.support.v7.widget.GridLayout

 On Thursday, April 12, 2012 9:27:53 AM UTC-6, Scott Olcott wrote:

 Where are you finding the documentation?  The only documentation I have 
 seen is for the GridLayout that comes with ICS.  There is no javadocs for 
 any of the classes under android.support.v7.  There is no source for them 
 in AOSP or any samples that use them that I can find anywhere.

 On Tuesday, April 10, 2012 2:18:02 PM UTC-6, Dave Rozsnyai wrote:

 Same here. GridLayout library hasn't been user friendly. The 
 documentation doesn't make any note of the fact that you need to use 
 your own namespace for columnCount if you are targeting 4.0 and now 
 this... I would advise people to use something else unless then really 
 need the grid. 

 On Apr 10, 9:55 am, Scott Olcott scottolc...@gmail.com wrote: 
  This is happening on Gingerbread and ICS.  When will the source for 
 the 
  support library GridLayout be available in AOSP?  Currently there is 
 no way 
  to debug what is happening because there is no source available. 
  
  
  
  
  
  
  
  On Monday, April 9, 2012 11:28:46 AM UTC-6, Romain Guy (Google) wrote: 
  
   You set the width of GridLayout to wrap_content so it will extend 
 as 
   far as its content can go. 
  
   On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote: 
I am using the GridLayout that is in r7 of the support library.  I 
 am 
   having 
an issue with text being clipped at the edge of the screen instead 
 of 
   being 
wrapped.  Here is a layout that reproduces the issue. 
  
android.support.v7.widget.GridLayout 
xmlns:android=http://schemas.android.com/apk/res/android; 
 android:layout_width=wrap_content 
 android:layout_height=wrap_content  
  
TextView 
  android:minWidth=100dp 
  android:text=test123 / 
  
TextView 
android:text=test test test test tes test tes test test 
 test 
   test 
test test test / 
/android.support.v7.widget.GridLayout 
  
When using the ICS version of GridLayout I can just add 
android:layout_width=0dp and 
 android:layout_gravity=fill_horizontal 
   to 
the TextView and it wraps the text instead clipping.  However when 
 I try 
that using the support library GridView the whole TextView 
 disappears.  I 
attached a screenshot from the Graphic Layout view in Eclipse that 
demonstrates what is happening.  It looks like the second TextView 
 is not 
inheriting it's size from it's container but is the same width as 
 the 
device. 
  
Is there a different way to get this to work correctly? 
  
-- 
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 
  
   -- 
   Romain Guy 
   Android framework engineer 
   romain...@android.com



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

[android-developers] Re: jpg to video

2012-11-08 Thread Eivind Aanestad
Did you find the answer? I am having the same problem and I'm stuck because 
I can't find a solution to this.

kl. 21:23:54 UTC+1 søndag 26. februar 2012 skrev hispasat følgende:

 Hi, 
 I'm making an application that has to create a video from an image 
 sequence. I searched online but have not found any class or library to 
 do it. 
 Does anyone know any way? 
 The idea is to create a video to upload to YouTube. Greetings.

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

2012-11-08 Thread David Schreiber
Hello there,

I have a question regarding possible best practices using Android APK 
expansion files (OBB).

We have an app with a larger *main expansion file. *Developer docs 
recommend pushing updates to users using a *patch expansion file.* When 
having a bigger update (lets say approximately half the size of the main 
file) that replaces large parts of the main file, wouldn't it be better to 
provide a new main file.

It isn't quite clear which approach is more useful:

   - When using a patch file new users would need to download the main 
   file, as well as the patch file - resulting in two large downloads, where 
   only one large download (an updated main file) would also work.
   - On the other hand, when updating the main file to a new version, 
   existing users would need to download the whole content again (where only a 
   patch would do the same).

Best way, would be a updated main file for the new APK version - this can 
be downloaded by new users - plus a patch file for existing users.

Is it possible to have following expansion file structure

   - main.5.my.application.obb, and
   - patch.5.my.application.obb

when uploading a new APK update with appVersion 5 in Manifest?

Thanks for the information!

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

[android-developers] Re: Can't find my application when searching it on Google Play

2012-11-08 Thread Don Cowan
I did some research and a presentation on this topic that might 
help: http://www.youtube.com/watch?v=8KGkKYsqLR8

On Friday, June 22, 2012 1:55:08 PM UTC-7, funkydev wrote:


 Hello,

 My company has had an application on the Google Play for a long time now. 
 The problem that we are facing is that when searching our company name 
 (which is part of the application name) on Google Play, it doesn't come up 
 and we only see our competitors. Since our company name is a misspelling of 
 a real name (think Tek instead of Tech) my guess is that the search 
 engine just fixes it (from Tek to Tech) before executing the search since 
 most of the results that we are getting are our competitors, but not 
 us...another data point is that when trying to look up our company name 
 with , it does come up first on the list (e.g., searching Tek) - a fact 
 that only strengthen my hypothesis. 

 Is there anything that we can do on our side in order to eliminate this 
 behavior? Is there any way Google can help us to solve this problem? We 
 added all relevant keywords everywhere in the app description but to no 
 avail. This is hurting our sales dramatically. 

 Please advise. Thank you. 

 Funkydev


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

[android-developers] Re: Getting Listed in Google Play

2012-11-08 Thread Don Cowan
I did some research and a presentation on this topic.  It might help 
you: http://www.youtube.com/watch?v=8KGkKYsqLR8

On Thursday, August 23, 2012 6:05:59 PM UTC-7, Jordan Johnson wrote:

 Hey, I've had my app up on Google Play for over a month now, still not a 
 single download on it :/

 I've tried searching the word Toddler (the apps called Toddler Time) into 
 Google Play and still, after searching through the whole list as far as it 
 extends it wont show up.

 Can anyone tell me how to get higher up in the manual search 
 listings? There is irrelevant stuff coming up when I search Toddler, and 
 even though that's in my app name, mines still not there. 

 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] [VideoEditor] android.view.InflateException: Binary XML file line #21: Error inflating class unknown

2012-11-08 Thread MYS
Dear all:
I meet the exception in my Android 4.1.1 device.
Anybody can help for this?
P.S if  we don't change any codes in AP , how can we analyze for this?
DPI or resolution ? My device is DPI:240 .
Thanks.

01-05 00:00:08.887 E/AndroidRuntime( 5281): FATAL EXCEPTION: main
01-05 00:00:08.887 E/AndroidRuntime( 5281): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.google.android.videoeditor/com.android.videoeditor.ProjectsActivity}:
 
android.view.InflateException: Binary XML file line #21: Error inflating 
class unknown
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2089)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3523)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.access$700(ActivityThread.java:135)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.os.Handler.dispatchMessage(Handler.java:99)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.os.Looper.loop(Looper.java:137)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.main(ActivityThread.java:4791)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
java.lang.reflect.Method.invokeNative(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
java.lang.reflect.Method.invoke(Method.java:511)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
dalvik.system.NativeStart.main(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: 
android.view.InflateException: Binary XML file line #21: Error inflating 
class unknown
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.createView(LayoutInflater.java:613)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.Activity.setContentView(Activity.java:1867)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
com.android.videoeditor.ProjectsActivity.onCreate(ProjectsActivity.java:92)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.Activity.performCreate(Activity.java:5008)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2028)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 12 more
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: 
java.lang.reflect.InvocationTargetException
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
java.lang.reflect.Constructor.constructNative(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.view.LayoutInflater.createView(LayoutInflater.java:587)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 25 more
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: 
java.lang.UnsupportedOperationException: Can't convert to dimension: 
type=0x1
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.content.res.TypedArray.getDimensionPixelOffset(TypedArray.java:430)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.widget.GridView.init(GridView.java:132)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at 
android.widget.GridView.init(GridView.java:110)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 28 more
01-05 00:00:08.977 D/PowerManagerService(  713): releaseWakeLock flags=0x1 
tag=SCREEN_FROZEN
01-05 00:00:08.977 W/ActivityManager(  713):   Force finishing activity 

[android-developers] Too many files error on internal SD card devices

2012-11-08 Thread Zen Masta


Currently beta testing new Android game, soon to be released. Beta testers 
complained that the game *crashes with the “too many open files” error 
message*. Simulation of the problem on  the AVD emulator however couldnt be 
reproduced. The problem only involved *Galaxy S3* and *Asus Nexus 7*testers.

This bug issue on Android's bug tracker seems similar to my problem, 
architecture 
problem which effects all Internal SD cards devices:

*http://code.google.com/p/android/issues/detail?id=39002*http://code.google.com/p/android/issues/detail?id=39002

These devices are *limited to 1024* file descriptors. Anyone experience the 
same problem?


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

[android-developers] need suggestion for large data structure + number crunch

2012-11-08 Thread Diddum
Hi all,
I'm trying to port an old c/c++ program of mine to the Java/Android world
and I need a few general suggestions.

My app has a static array (say 2Mbytes) which on
start has to be preprocessed to build a working array
of about 40Mbytes.

The app has just two text field (one for input, one for output)
and a start/stop button(s).

The user enters something in the input field, press Start and
the app perform an intensive computation on the large array
and produces an output.

If the computation takes too long, the user can press Stop
and start again.

Which is the best way to structure this kind of app in Java for Android?

Should I use an Activity for data preprocessing and graphic interface and
a Service for computation (to which I must pass a reference to the large
data structure) ?

I just need some general advice. 
(If this is not the right group for this kind of question,
please suggest me where to ask.)
Thanks,
Giovanni

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

[android-developers] Problem with downloading files from pps android

2012-11-08 Thread Cruni Esteban
I am developing a apps with PhoneGap, in this apps I display a web page 
whit iframe sustitute, the problem is that this web page show a link to 
download a file, when I run my apps not let me download it. 

which may be the problem? 

I would appreciate 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] Re: Google play (Android market) not giving the result with app name.

2012-11-08 Thread Don Cowan
I did some research and a presentation on this topic that might 
help: http://www.youtube.com/watch?v=8KGkKYsqLR8

On Tuesday, March 13, 2012 6:08:39 AM UTC-7, Maheshkumar Gangula wrote:

 Hi all,

 We have uploaded an application into android market(Google Play) few days 
 ago. It is successfully uploaded and able to go to the app by using its URL 
 but, when we search it with Name of the app we are not able to get the app 
 in the result list.

 What is the problem.

 Please help me.

 Thanks.


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

[android-developers] Maps API Key doesn't seem to work.

2012-11-08 Thread Electric Shipwright
Hi guys! -I've searched the forum but the proposed solutions to similar 
problems doesn't do it for me;
When I define my MapView with the API Key generated from the MD5 sum 
off of the debug keystore file, the maps load up fine on my device. (and 
the emulator)
When I define my MapView with the API Key generated from the MD5 sum 
off of the release keystore file, the maps are blank.

I checked the signing keystore several times, as well as its MD5 sum and 
the resulting API Key, and everything seems to be in order.

I'd like to generate a new keystore and upload the app with that, but the 
Map Feature is an addition to an existing app on the store,
so I can't (easily) upload it without creating a new Google Play entry. I'm 
clueless on what to do, I've been fighting with this for a week now.

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

2012-11-08 Thread Kalidas Pandian
Can we create our own library in java???
or
how can we set a tamil language as a locale?

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

[android-developers] Why does using a glsurfaceview on top of a camera preview with TextureView fail (but surfaceview is OK)

2012-11-08 Thread Iain Malcolm
I've been updating my app which runs a glsurface on top of a camera preview.
It works fine with the camera preview running into a surfaceview

but when I the camera preview to use a texture (which looks like a cleaner 
way of doing it with and gives more flexibility) it does not work.

With a TextureView ,the camera preview works fine until I add the 
glsurfaceview, at which point all the transparent bits go black.

If I use a SurfaceView then the camera preview shows through the transarent 
bits just fine.

I have a very simple view hierarchy: here are the 2 versions:

version that works
   android.widget.RelativeLayout 
 android.widget.TextView 
 com.iain.camera.CameraView (1) = extends SurfaceView 
 com.iain.graphicbase.GlSurface (1) = extends GLSurfaceView


version that blanks the camera preview
   android.widget.RelativeLayout 
 android.widget.TextView 
 com.iain.camera.CameraView (1) =  extends TextureView 
 com.iain.graphicbase.GlSurface (1)  = extends GLSurfaceView

rather hacked about code with working version active and textureview 
version commented out attached

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

import java.io.IOException;
import java.util.EnumSet;
import java.util.List;

import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.SurfaceTexture;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
import android.hardware.Camera.Size;
import android.util.AttributeSet;
import android.view.Display;
import android.view.Surface;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.TextureView;
import android.view.WindowManager;

import com.iain.ui.PootableElement;
import com.iain.utils.LogAreas;
import com.iain.utils.LoggerFrag;
import com.iain.utils.LoggerTag;
import com.iain.utils.LoggerFrag.LogLevels;

//public class CameraView  extends TextureView implements TextureView.SurfaceTextureListener,
public class CameraView  extends SurfaceView implements  SurfaceHolder.Callback,
 LoggerTag, PootableElement {
 
  public CameraView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
LoggerFrag.addEntry(logarea, loglevel, this, constructor1, null);
constructorSetup(context);
  }
  public CameraView(Context context, AttributeSet attrs) {
super(context, attrs);
LoggerFrag.addEntry(logarea, loglevel, this, constructor2, null);
constructorSetup(context);
  }
  public CameraView(Context context) {
super(context);
LoggerFrag.addEntry(logarea, loglevel, this, constructor3, null);
constructorSetup(context);
  }

  //The first rear facing camera
  int  defaultCameraId = -1;
  Camera   currentCam = null;
  boolean  orientIsLandscape;
  Size previewSize;
  ListSize   camPreviewSizes;
  int lastSurfaceWidth = 0;
  int lastSurfaceHeight = 0;
//  SurfaceTexture surfTexture;
  SurfaceHoldersholder;
  
  
  Camera.Parameters lastparams = null;
  int maxExpComp = 0;
  int minExpComp = 0;
  int expcomp = 0;


  private void constructorSetup(Context c) {

int camCount = Camera.getNumberOfCameras();
CameraInfo camInfo = new CameraInfo();
for (int i = 0; i  camCount; i++) {
  Camera.getCameraInfo(i, camInfo);
  if (camInfo.facing == CameraInfo.CAMERA_FACING_BACK) {
defaultCameraId= i;
  }
}
if (LoggerFrag.checkActive(logarea, loglevel)) {
  LoggerFrag.addCallEntry(logarea, loglevel, this, constructorSetup, default camera is  + defaultCameraId);
}

//TODO
//setSurfaceTextureListener(this);

// Install a SurfaceHolder.Callback so we get notified when the
// underlying surface is created and destroyed.
sholder = getHolder();
sholder.addCallback(this);


//setHasOptionsMenu(mNumberOfCameras  1);
if (LoggerFrag.checkActive(logarea, loglevel)) {
  LoggerFrag.addCallExit(logarea, loglevel, this, constructorSetup, null);
}
  }

  @Override
  public void onPViewConnected(SharedPreferences sp) {
LoggerFrag.addCallEntry(logarea, loglevel, this, onPViewConnected, connect to camera  + defaultCameraId);
// Open the default i.e. the first rear facing camera.

//View sb = this.getActivity().findViewById(R.id.compx);
//if (sb instanceof SeekBar) {
//  LoggerFrag.addCallEntry(myloglev, EnumSet.of(LogLevels.guiEvents), this, onResume, seekbar found);
//  SeekBar x = (SeekBar)sb;
//  x.setOnSeekBarChangeListener(this);
//} 
LoggerFrag.addCallExit(logarea, loglevel, this, onResume, camera is 
+ ((currentCam == null) ? NULL 

[android-developers] onClick() is fired twice.

2012-11-08 Thread jhan
Hello, 

I have a problem about Button's onClick(). 

I startActivity() in onClick() handler. And if I tapped a button twice very 
quickly,
it started activity twice. (therefore there are two instances of the same 
activity).

I think it is (or should be) very simple for a button to start another 
activity and
following code snippet is the straight-forward way to do that.

snippet

public class MainActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button b = (Button) findViewById(R.id.button);
b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(MainActivity.this, SubActivity.class));
}

});
}
}

/snippet

To re-produce the undesired behavior, I added Thread.sleep(1000) in 
onClick().

snippet
@Override
public void onClick(View v) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
startActivity(new Intent(MainActivity.this, SubActivity.class));
}
/snippet

Now, I can tap a button twice while it is shown as pressed and the 
SubActivity
is started twice.

I googled  for solution and found lots of hacks to avoid this 
double-tapping problem.
However, if it is required to do some special trick whenever I want to 
start an activity 
by clicking a button, it can be a big problem as a GUI framework.
(I cannot think of a framework which requires a special handling 
for every button click event to avoid double-clicking)

Is there a standard way of starting activity by clicking a button without 
worrying the double-clicking issues?

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] A proplem with the floating window

2012-11-08 Thread ivan shi
I developed a floating window, when I need to change the position of the 
floating window,I call WindowManager.updateViewLayout to update the layout. 
If the initial coordinates x 0, adjust it to 500, this box is sliding past, 
android show herea sliding animation. I do not want this effect, want to 
jump directly to box in the past, do not know how to engage,who can help me?

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

[android-developers] Wifi direct BUSY error code

2012-11-08 Thread Hurshal Patel
Hi,

I'm working on a wifi direct service to detect nearby peers and provide 
connection information to other applications. I am basing my code off of 
the wifi direct demo, but wifi direct seems to be pretty unreliable.

When I try to connect 2 devices, I usually get a BUSY error code, which 
just says that the system is too busy to process the request. I have 
written my service to retry connections multiple times, but it seems that 
once I get a BUSY error code, the only way to get it to work again is to 
reboot both devices. I have also tried programmatically toggling wifi off 
and on after disconnecting, but that doesn't solve the problem.

Does anyone have experience with wifi direct? I have a feeling its 
something small that I'm missing because there are third party apps like 
Wifi Shoot which use wifi direct and don't have any of these problems. I 
would also appreciate any open sourced applications that use wifi direct, 
as I only have the demo code to refer to.

Thanks,
Hurshal

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

[android-developers] Badoo style interface?

2012-11-08 Thread Joseph Helou
I am new to android but making fast progress, i hit a wall when i tried to 
replicate the layout of Badoo's profile activity (for those of u familiar 
with the mobile app) and the usual google search as starting point didn't 
get me anywhere. to describe what i'm trying to do in a few words imagine a 
user profile page that has the user's images zoomable and scrollable in 
full screen + when the screen is tapped it shows or hides other controls on 
the screen (which are overlayed on top of the picture).

any pointers in the right direction would be very helpfull
thank you

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

[android-developers] Contextual Action Bar With Landscape Fragments and Selected Item Highlight

2012-11-08 Thread Jim Stewart
In portrait mode I have one Fragment List View (A).  When I click on the 
item it launches a new activity which in turn loads a new fragment (B) to 
display the selected record.  When I 'LongHold' on one item in (A) the CAB 
launches where I then 'Single Click' on lines to add/subtract lines to the 
'Number of Selected' and have an option to delete.  All is good in this 
mode.

In landscape mode I have something similar working except the 'B' fragment 
is launched in its own Frame so it appears alongside the list fragment (A).

The problem I am having is trying to 'highlight' the item I picked from the 
list (A) for the details being displayed (B).

public void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
mListener.displayMarkers(id);
getListView().setItemChecked(position, true);
}

As soon as I setItemChecked the Contextual action bar launches.  I only 
want the Contextual action bar to launch on the initial 'long click' same 
as it does in portrait mode.

I checked how Google are doing this and in GMAIL inbox landscape on a 
tablet, single click highlights the item in the list and displays the email 
in the detail 'frame'. a 'long click' launches the CAB for the line you 
selected. You can continue to single click on lines to see the details but 
you 'long click' to add items to the CAB.  Interestingly the cell 
background is different based on whether it is selected or long clicked in 
the CAB.

The contextual action bar is configured as follows

getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);
getListView().setMultiChoiceModeListener(multiChoiceModeListener);

The code for the multiCoiceModeListener is as follows

MultiChoiceModeListener multiChoiceModeListener = new 
MultiChoiceModeListener() {

@Override
public void onItemCheckedStateChanged(ActionMode mode, int position,
long id, boolean checked) {
mListener.removeFragmentWhenCABStarted();
if (checked) {
++mNumberOfSelectedItems;
} else {
--mNumberOfSelectedItems;
}
// Refresh the menu - Edit is only available when one item is
// selected
mode.invalidate();
mode.setTitle(String.valueOf(mNumberOfSelectedItems) +  selected);
}

@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
// Respond to clicks on the actions in the CAB
switch (item.getItemId()) {
case R.id.menu_delete:
confirmDelete();
return true;
case R.id.menu_edit:
edit();
return true;
default:
return false;
}
}

@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
// Inflate the menu for the CAB
MenuInflater inflater = mode.getMenuInflater();
inflater.inflate(R.menu.main_fragment_context_menu, menu);
mode.setTitle(String.valueOf(mNumberOfSelectedItems) +  selected);
mActionMode = mode;
return true;
}

@Override
public void onDestroyActionMode(ActionMode mode) {
mNumberOfSelectedItems = 0;
}

@Override
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
menu.findItem(R.id.menu_delete).setVisible(true);
menu.findItem(R.id.menu_edit).setVisible(true);
if (mNumberOfSelectedItems  1) {
menu.findItem(R.id.menu_edit).setVisible(false);
}
return true;
}
};



So to the questions.

1. How would you control the CAB based on Long Holds the way Google are 
doing it?
2. How can I select a line (or change its background) without launching the 
CAB?
3. Am I over thinking this and you have a much easier solution

Any assistance would be appreciated.

Thanks,

Jim

 

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

[android-developers] [Help][MonkeyRunner] Touch behavior is recognized as long press

2012-11-08 Thread 成善洲
I use monkeyrunner to control camcorder to play existed video. 
The command is : 
device.touch(100,100, MonkeyDevice.DOWN_AND_UP)
But the real behavior is long press the video and the details manu will 
show instead of play this video.
 
Is there any method to resolve this problem?

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

Re: [android-developers] How to scroll/move text within TextView on home screen widget ?

2012-11-08 Thread Jonathan Yanes
Hello i know this is a couple of years later, so i am hoping there is an 
answer here.  I have a setup similar to what is described and my target is 
Android 4.1, however no matter what i do, i can not make the widget 
scrollable.   

Did you all resolve this?

On Wednesday, April 21, 2010 6:18:48 AM UTC-4, Ravi wrote:

 Hi All, 

 I have created a widget to be displayed on android emulator's home 
 screen to display some long text. In my main.xml layout file i've 
 already set TextView properties like singleLine=true, 
 ellipsize=marquee, focusable=true etc, but still when my widget is 
 displayed on home screen text does not move/scroll. 


 - main.xml layout file  

 ?xml version=1.0 encoding=utf-8? 
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/ 
 android 
 android:layout_width=fill_parent 
 androidrientation=vertical 
 android:layout_gravity=center 
 android:layout_height=wrap_content android:background=@drawable/ 
 background 
 TextView android:id=@+id/widget_textview 
 android:text=@string/widget_text 
 android:layout_height=wrap_content 
 android:layout_width=wrap_content 
 android:layout_gravity=center_horizontal|center 
 android:layout_marginTop=5dip 
 androidadding=10dip 
 android:textColor=@android:color/black 
 android:singleLine=true 
 android:ellipsize=marquee 
 android:focusable=true / 
 /LinearLayout 


 - end of main.xml layout file  



 - My WidgetProvider.java file -- 

 package com.android.weatherdata; 

 import android.util.Log; 
 import android.widget.RemoteViews; 
 import android.appwidget.AppWidgetManager; 
 import android.appwidget.AppWidgetProvider; 
 import android.content.Context; 
 import android.content.Intent; 
 import android.app.PendingIntent; 

 public class WeatherWidget extends AppWidgetProvider{ 

 private static final String TAG = WeatherWidget; 

 @Override 
 public void onUpdate(Context context, AppWidgetManager 
 appWidgetManager, int[] appWidgetIds) 
 { 
 Log.d(WEATHER-WIDGET, onUpdate(): ); 

 final int N = appWidgetIds.length; 
 // Perform this loop procedure for each App Widget that belongs to 
 this provider 
 for (int i=0; iN; i++) { 
 int appWidgetId = appWidgetIds[i]; 

 // Create an Intent to launch ExampleActivity 
 Intent intent = new Intent(context, Weather.class); 
 PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, 
 intent, 0); 

 Log.i(WEATHER-WIDGET,  Create and Attach Text-view click handler 
 ); 
 // Get the layout for the App Widget and attach an on-click listener 
 to the button 
 RemoteViews views = new RemoteViews(context.getPackageName(), 
 R.layout.main); 
 views.setOnClickPendingIntent(R.id.widget_textview , pendingIntent); 

 // Tell the AppWidgetManager to perform an update on the current App 
 Widget 
 appWidgetManager.updateAppWidget(appWidgetId, views); 
 } 
 } 
 } 


 - End of WidgetProvider file 

 When i add widget on home screen than only some part of text is 
 displayed as  Latest Weather Infor but i would like to write the 
 code in such a way that the complete text should scroll till the 
 complete string/text is displayed. 


 Please suggest whether i need to change my layout file or what logic i 
 can write so that i can scroll the text. 

 Thanks in advance, 
 Ravi 

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

[android-developers] Writable File

2012-11-08 Thread João Ferreira
Hello everyone!

Can anyone tell me why I cannot set a variable of type 'File' to 
'writable'? when I simply want to write on there, the information I get 
from an http request, where I send a sql statement to an online database?

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: Your Registration to Google Play is still being processed.

2012-11-08 Thread 李绪春
I also meet this problem, i registration on october 31, the now, it also 
show processing, i want to know, how much time to approved the account

On Friday, October 26, 2012 9:46:36 AM UTC+8, Carlos Martinez wrote:

 i have this problem too, made the registration October 22, they charged 
 me, but account is still processing, google wallet says the payment is 
 pending, but they already charged me the money to my debit card, and my 
 tickets just are ignored, 4 days have passed..

 On Tuesday, August 14, 2012 3:55:47 AM UTC, El Ilmy wrote:

 So me more terrible! After 5 days and 5 times submit issue report still 
 have this message. (T_T) 

 On Monday, 16 July 2012 21:26:05 UTC+8, Craig Bradley wrote:

 Just to let you know, I still have this message after joining yesterday. 
 Just be patient and wait for the payment to clear. If you read the links 
 that people have posted you will have seen that until they know you have 
 paid for sure you wont be able to access it. In the mean time, if you have 
 an app ready then upload it and sort out your promotional material. 

 On Monday, July 16, 2012 7:20:48 AM UTC+1, elirev4 wrote:

 I registered to the Google Play Developers 24 hours ago and this 
 message Your Registration to Google Play is still being processed. is 
 still there...


 How much time will I have to wait for Google to approve my account?



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

[android-developers] Can I get SharedPreferences outside activity or service without Context object.

2012-11-08 Thread Jayawant Jagtap
Hello,
 
I want to get instance of the SharedPreferences in the class which is not 
derived from Activity or Service, Can I get it without paasing Context 
object to that class.
 
class Helper{
private SharedPreferences mPref = *null* ;
private String data=;

private *static* *final* String *KEY* = key;

public static void init(Context a){
mPref= a.getSharedPreferences(*PREF_FILE*, 0);

data=mPref.getString(*KEY*, **);
}
 
public string getdata{
return data;   //In this method if data is empty string due 
to init method is not called in some case,I want to call init() method from 
here.
}   //But I don't have context object. I 
can't call init  before each getdata() call because there also context 
object is not available in some cases.
}  // I can store Context object as Helper 
class variable,but it is failing if first getdata() call executes before 
init() call.

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

2012-11-08 Thread Houstar Hou
Yes,My OS is archlinux.As we know,the deveplopers of archlinux care about 
64bit OS Now!!but the set of android sdk is 32.

On Tuesday, December 22, 2009 7:17:02 AM UTC+8, Nanard wrote:

 Hi,

 I wonder if someday the SDK will run fine on Linux 64 bits.  I
 understand it's not a priority for Google team, but 64bits desktop OS
 are becoming common...

 My case : Mandriva 2010 64 bits, Eclipse 64 bits, SDK 1.6 : OK to
 create code  launch emulator.


 But :
 - adb never find my phone linked to USB cable (it was OK before on
 Mandriva 32 bits)
 - TTS also doesn't work well on the emulator  (it was OK in Mandriva
 32 bits).

 Do you think the problem is with Mandriva ?  or in Android SDK ?



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

2012-11-08 Thread JonPM
Hey all, just wondering if it is ok to have multiple dev accounts to 
publish from?  I have an LLC for my app business and would like to have 
different accounts under this LLC.  Is this ok?  Main reason is there is a 
vast difference of the types of apps I publish, and I'd like to be able to 
separate them under different dev names in the store.  

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

[android-developers] Handsfree Bluetooth LCD

2012-11-08 Thread Li
Please help. I want my application to send a string to my headset/handsfree 
device's LCD as Android do when a call is received (sends the phone number 
and the contact name), but I can't found any documentation about this.

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

[android-developers] Updating app with keystore not being valid long enough

2012-11-08 Thread Kevin Penhoat
Is there any way to change my keystore values so it'll be valid longer? 
When I uploaded the app it was 33 years or something, now it's become 50! 
What do do

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

[android-developers] Anyone interested on a small MicroSD to MicroUSB adapter?

2012-11-08 Thread Leonardo Matute
MicroSD to MIcroUSB adapter that works with Android devices, for those 
Nexus family devices that licks the native MicroSd socket.

http://igg.me/p/258138?a=1643239

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

2012-11-08 Thread Luiz Felipe Zafra Saggioro
I'm wondering if it's possible to play a video with external subtitles on 
Android. Did anyone do that?
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] license development

2012-11-08 Thread Lilia Quituisaca Samaniego


Dear,

The National Institute of Ecuador (INEC), you need to purchase a corporate 
license development for which we need Android issued a statement that in 
Ecuador there is no direct suppliers to purchase developer licenses.

After that we can enforce the transaction by buying internationally. The 
information requested is for governmental purposes.

Thank you 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] Android touch input doesn't poll often enough

2012-11-08 Thread WebbyTabletDev
I'm using javascript and the HTML5 canvas to try and add a simple signature 
field to a system that is otherwise very simple.  But the touch input i'm 
getting from android, using only the following code to try and minimise the 
javascript code, doesn't pool the data enough.  I need to be getting 3x (at 
least) as many input events for a touch than I'm getting now ( android 2.3, 
galaxy s3 ).   Is there anything I can do to improve this? 

_xyz.line.push( { _x: e.touches[0].pageX - _xyz.offsetx, _y: 
e.touches[0].pageY - _xyz.offsety } ); 

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

2012-11-08 Thread Lucky
Hi,

 i try to developed app using C2DM notification process but i can't do this.
 Please help me if any one have any idea 
 show me Details and proper method how to do this :) 

thanks 
lokesh patel

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

[android-developers] reg: APP INSTALLER ISSUE

2012-11-08 Thread Kondlada
Hi all,

I am having parent Application who has to install child 
application which has protection level signatures in manifest file such 
that the application can be run from parent app store.


 The issue is when we use Implicit Intent to invoke application installer 
activity after installing the application it has two button's to show *OPEN 
AND DONE. *Open button has to be disabled or has to catch 
the receiver action  such that default open action should not work as it 
get crashes because of manifest protection level. 

  ALL your valuable suggestions are appreciated much, as I see a similar 
kind of issue did not got any kind of replies so please try show me a way 
out from the current issue.

Regards,
Kondlada

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

2012-11-08 Thread Leonardo Avena
Hello
 I know that with Android 4.1 we have the speech to text offline. How can I 
implement this? Where is the documentation? Is it the samething we do in 
previouses Android releases? Thank

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

[android-developers] window.onerror in Cordova ?

2012-11-08 Thread Marlon Brenes
 
 
Hey,

Do you know if window.onerror is supported in Android 2.3 (API 10) using 
Cordova 1.7 or higher ?.

I'm working on a plugin for logging errors, exceptions etc into a file.

I now for sure that window.onerror works on a Browser environment and I can 
override that to handle unexpected error messages.

But window.onerror is null when I built an Android project.

Do you know a workaround for this or if Android has some feature for catch 
any exception that could  occurred from the javascript side using cordova ?

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] Retaining a login id in an app

2012-11-08 Thread Peter Weinberg
  

I am having an app written that requires the user to log in with a login id 
and password. I want the app to remember the last login id so that the user 
does not have to retype it every time. My Android developer tells me this 
cannot be done, but I am skeptical. Does anyone have any views/words of 
wisdom for me?

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

Re: [android-developers] Re: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

2012-11-08 Thread Mugabi Allan
I am having the same problem and after following some of the threads, I 
still have no success I get the following in my Console

 [2012-11-06 22:31:23 - GoogleMaps] Installation error: 
INSTALL_FAILED_MISSING_SHARED_LIBRARY
[2012-11-06 22:31:23 - GoogleMaps] Please check logcat output for more 
details.
[2012-11-06 22:31:23 - GoogleMaps] Launch canceled!

And my Log cat gives the error 

Package com.codecommunity.googlemaps requires unavailable shared library 
com.google.android.maps ; failing


Any Ideas on how i can solve the problem?

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

[android-developers] Re: Google Voice call logging on Samsung Galaxy S3 T-Mobile (SGH T-999)

2012-11-08 Thread Matt Tymes
I have the same issue on T-Mobile Galaxy S3.  Is this confined to only the 
TMobile variants and could this have anything to do with TMobile's WiFi 
calling?  I've verified that calls are logged correctly when the calls are 
not made through Google Voice and vice-versa.  I also have a most-likely 
unrelated error (REG09 Missing 911 Address) which really means I need to 
input some info.  I'll add this information tonight to see if it has any 
impact on the issue with Google Voice.

On Thursday, August 30, 2012 7:51:13 AM UTC-5, aeromiles wrote:

 Is anyone working on a fix so that Google Voice will properly log calls on 
 the Galaxy S3? All outbound calls are logging as the GV Gateway number, not 
 the actual call recipients number.


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

[android-developers] Looking for developers to work together

2012-11-08 Thread J. Chef Kennedy
Hi,

I'm quite new to this group and totally new to android developing. But I'm 
looking for some guys to start a little project. The problem for me is that 
I don't have any experiences in developing android apps. I have general 
programming experience. I hope I can find some guys to make a brand new 
kind of apps...
I hope to get some answers :)

J. Chef Kennedy

PS I hope everybody can read my english, it's not my first language :)

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

[android-developers] Linking an Android app to Facebook and Twitter - help needed

2012-11-08 Thread Peter Weinberg
  

I am having an app written in Android that requires each user to become a 
member of the service being offered. I would also like the user to be able 
to link their app account to both their Facebook and Twitter accounts, to 
give them the ability to generate posts and tweets directly from my app to 
the Facebook wall or Twitter account. I also want to establish the link and 
authorization up front so that the user does not have to log into Facebook 
and Twitter every time he/she wants to send a post or tweet. My developers 
tell me this cannot be done. Any thoughts - need some help here! less…

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

[android-developers] Greetings / SOAP Extensions

2012-11-08 Thread Rubem Nascimento da Rocha
Hi, folks!

I'm Rubem Rocha, from Manaus-AM (Brazil). I have 36 years-old and I'm
working with Mono for Android 4.2.4. Since now, I hope to contribute with
some valuable contributions.

I'm still working with ASP.NET XML Web Services because of current
application infrastructure used by the company. So I need to know how I can
write SOAP extensions to use with my Mono for Android applications.

One more thing: by now, I can't write WCF services because our MfA app
architecture is strongly binded with ASP.NET XML Web Services access
mechanism.

Any suggestions?

Since now, thanks in advance!

Rubem Rocha
MCP / MCPD ASP.NET / MfA Developer
Manaus, AM - Brazil

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

[android-developers] selecting colors and populating lists

2012-11-08 Thread peter black
Hello all-
I am trying to make a color chooser application so my users can compile 
their selected colors in to a list that I can use in my interpreter. I am 
using the ambilwarna dialog for the color chooser. I have made 10 box.xml 
files (box1.xml, box2.xml etc..) and formatted them to be small red 
squares. Below is my code. My question is, how do I get color chosen from 
ambilwarna dialog and send that color to my box1.xml android:color tag? 



package com.example.testercolor;
 
import yuku.ambilwarna.AmbilWarnaDialog;
import yuku.ambilwarna.AmbilWarnaDialog.OnAmbilWarnaListener;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
 
public class MainActivity extends Activity {
private Button colorShow1;
private Button colorShow2;
private Button colorShow3;
private Button colorShow4;
private Button colorShow5;
private Button colorShow6;
private Button colorShow7;
private Button colorShow8;
private Button colorShow9;
private Button colorShow10;
 
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
 
// Getting reference to the button
colorShow1 = (Button) findViewById(R.id.color1);
colorShow2 = (Button) findViewById(R.id.color2);
colorShow3 = (Button) findViewById(R.id.color3);
colorShow4 = (Button) findViewById(R.id.color4);
colorShow5 = (Button) findViewById(R.id.color5);
colorShow6 = (Button) findViewById(R.id.color6);
colorShow7 = (Button) findViewById(R.id.color7);
colorShow8 = (Button) findViewById(R.id.color8);
colorShow9 = (Button) findViewById(R.id.color9);
colorShow10 = (Button) findViewById(R.id.color10);
// Defining click event listener for the button
OnClickListener clickListener = new OnClickListener() {
 
@Override
public void onClick(View v) {
colorpicker();
}
};
 
// Setting click event listener for the button
colorShow1.setOnClickListener(clickListener);
colorShow2.setOnClickListener(clickListener); 
colorShow3.setOnClickListener(clickListener);
colorShow4.setOnClickListener(clickListener);
colorShow5.setOnClickListener(clickListener);
colorShow6.setOnClickListener(clickListener);
colorShow7.setOnClickListener(clickListener); 
colorShow8.setOnClickListener(clickListener);
colorShow9.setOnClickListener(clickListener);
colorShow10.setOnClickListener(clickListener);

}
 
public void colorpicker() {
// initialColor is the initially-selected color to be shown in 
the rectangle on the left of the arrow.
// for example, 0xff00 is black, 0xffff is blue. Please 
be aware of the initial 0xff which is the alpha.
 
AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, 0xffff, 
new OnAmbilWarnaListener() {
 
// Executes, when user click Cancel button
@Override
public void onCancel(AmbilWarnaDialog dialog){
}
 
// Executes, when user click OK button
@Override
public void onOk(AmbilWarnaDialog dialog, int color) {
Toast.makeText(getBaseContext(), Selected Color :  + 
color, Toast.LENGTH_LONG).show();
}
});
dialog.show();
}
 

}

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

2012-11-08 Thread Praveen Kumar
*How to  Clear the Cache in Android Application P**rogrammatically ?*



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

[android-developers] how to get access to mouse in windows pc via wifi from an android device

2012-11-08 Thread Tanmoy Mahajan
I am developing an app, that needs to get control of the mouse in windows 
via wifi, from my phone. how do I do that?

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

[android-developers] Re: Problems with the Power/Lock button after 4.1.2 update (Samsung Nexus S)

2012-11-08 Thread Ranj
Hello,

Its odd. I too am facing the same problem. The power button of my Nexus S 
is not responding since 4.1.2 update. I didnt have any issues with 4.1.1. 
It would be nice if some one could help. Thanks.

On Monday, 22 October 2012 12:44:18 UTC+5:30, VladP wrote:

 Hi 

 I'm facing some problems with the power button of my Nexus S after 
 installing the 4.1.2 JellyBean update. The thing is that after two days of 
 using the new update the screen became to turn itself on like i would press 
 the power button and on saturday evening the button stopped to respond at 
 all. Any 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

[android-developers] testing internal dev environment with adroid emulator

2012-11-08 Thread Camario
Guys:
I am a newbie to development, and what I am trying to do after installing 
the necessary sdk's  tools, is being able to access our internal dev 
environment. This environment is only accessible through our internal 
network. With my PC I am able to access it when connected through via VPN 
when I am away from the office, and through our internal proxy when I am at 
the office.
How can I accomplish the same using the emulator...so I cna test the test 
site, and be able to authenticate and log in

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] android.view.WindowLeaked Exception android

2012-11-08 Thread Rachita Nanda
This exception occurs when we try to create a View when the Activity that 
holds the view has already exited. I used dialog boxes in my activity, and 
sometimes when I abruptly exit the activity by pressing onKey down , this 
exception was thrown. Actually, I clicked on a button that shows a dialog 
box but before the dialog could appear/dismiss, I exited the activity. 
Hence, the solution is this is to dismiss all the dialog boxes /views if 
they are active in the onDestroy() method . It a very good practice to use 
onDestroy() to release all the resources used in the activity and to call 
the garbage collector for clean up.

Refer here for the complete code 
http://www.creatiosoft.com/forum/showthread.php?tid=137

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

2012-11-08 Thread mind riot
It can be done without sub-layouts.

Two views:
http://stackoverflow.com/a/13280255/1011746

Three views:
http://stackoverflow.com/a/13279846/1011746


On Tuesday, April 10, 2012 1:54:33 AM UTC-5, Zsolt Vasvari wrote:

 AFAIK, you cannot.  You will have to frame them using a sub-layout.

 On Monday, April 9, 2012 11:56:56 AM UTC+8, Put_tiMe wrote:

 In a relative layout, how do I center align two *child* elements.
 The two elements could be of different widths.
  
 They appear one below the other and are horizontally center aligned.
  
  



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

[android-developers] Re: How do I sell apps from South Africa?

2012-11-08 Thread Craig Newton
Hi MeltdownZA,

I have encountered that exact same issue. Unfortunately you would have to 
setup a bank account in the UK or US and have a shell company. I have not 
done that, but the company I work for has.

The only way I got to sell my apps on Android was to use the Amazon App 
Store instead. They send you cheques to your South African mailbox when it 
reaches a threshold you set.

I sell my apps on Apple iOS App Store as well with no problems at all. Much 
better sales from iOS than from Android. 

Most Android users want everything for free, you could give it away for 
free on Google Play and just put in Ad support. Sell your app without ads 
on the Amazon Android Market and the Apple Store (if you have ported to 
iOS), please checkout cocos2d-x, it is truly cross platform and easy to 
code using C++.

Feel free to contact me if you have any more questions.

Best Regards,
Craig Newton

On Sunday, July 8, 2012 9:48:32 PM UTC+2, MeltdownZA wrote:

 We have an upcoming title we'd like to sell via the Google Play store.
 From the research I've done, it seems that we can sell apps if we are in 
 South Africa.

 Yet when I registered a Google Play developer account, and paid the $25, 
 and I registered, South Africa is not in the list of countries I can 
 register for as a developer.
 What is the correct approach to take for this?

 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] Callback MainActivity class from non-Activity extented class

2012-11-08 Thread Krzysztof K
I've a two classes;  MainActivity.java which is Activity extented and 
CallRec.java which extends BroadcastReceiver (so I can't extend this with 
Activity class). One of the CallRec.java methods is triggered by system 
broadcast intent (TelephonyManager.EXTRA_STATE) . All I want to do is send 
back some data from CallRec to MainActivity to display it. I've tried to 
send intent from CallRec to MainActivity but Eclipse throws an error: The 
constructor error Intent(CallReceiver, ClassMainActivity) is undefinied.

Please help, I'm stuck with 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] About facebook

2012-11-08 Thread pavithra
Hi!
  I am developing one application and in need to use the facebook chat with 
my application. Can you help me with the source code and clear description.

Regards,
Pavithra.N

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

2012-11-08 Thread Michael Maher
android:paddingBottom=16dp... in you listview will do the trick. Set it 
to whatever dp you require

On Saturday, October 1, 2011 12:04:12 PM UTC+1, charlie babitt wrote:

 Hallo! 

 In my activity I have a list view and I want to have a sliding drawer 
 at the bottom of the screen. The handle of the sliding drawer has a 
 solid image and the size of the whole screen width. The problem now 
 is, that the last row of the list is not visible anymore, since it is 
 below the sliding drawer's handle. What is the best solution to solve 
 it. 
 My layout looks as follows: 

 Activity layout: 
 RelativeLayout android:layout_width=fill_parent 
 android:layout_height=fill_parent xmlns:android=http:// 
 schemas.android.com/apk/res/android 

 fragment 
 android:name=test.sample.ListFragment 
 android:layout_width=wrap_content 
 android:layout_height=wrap_content 
 android:id=@+id/listfragment / 


 SlidingDrawer android:id=@+id/slidingdrawer 
 android:layout_width=fill_parent 
 android:layout_height=fill_parent 
 android:handle=@+id/slidingdrawer.handle 
 android:content=@+id/ 
 slidingdrawer.content 
 include android:layout_gravity=bottom 
 android:id=@+id/slidingdrawer.handle 
 layout=@layout/ 
 slidingdrawerhandle / 
 include android:id=@+id/slidingdrawer.content 
 layout=@layout/slidingdrawercontent 
 android:layout_width=fill_parent 
 android:layout_height=fill_parent / 
 /SlidingDrawer 
 /RelativeLayout 

 My Handle Layout: 

 ?xml version=1.0 encoding=utf-8? 
 RelativeLayout android:background=@drawable/handle_background 
 android:layout_width=fill_parent 
 android:layout_height=wrap_content 
 xmlns:android=http://schemas.android.com/apk/res/android; 
 LinearLayout android:layout_gravity=center 
 android:orientation=horizontal 
 android:layout_width=wrap_content 
 android:layout_height=wrap_content 
 android:layout_centerInParent=true 
 TextView android:textSize=14.0sp 
 android:textStyle=bold 
 android:textColor=@android:color/white 
 android:layout_gravity=center_vertical 
 android:layout_width=wrap_content 
 android:layout_height=wrap_content 
 android:text=News 
 android:singleLine=true 
 android:shadowColor=@android:color/ 
 black 
 android:shadowRadius=2.0 / 
 /LinearLayout 
 /RelativeLayout 

 Do you have any idea how I could fix this? 
 Thanks 
 Charlie

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

[android-developers] Notification area: persistent email/gmail icons

2012-11-08 Thread RafalS
Hi!

Scenario:

   - Samsung Galaxy Note
   - Android version 4.0.4
   - Gmail client online
   - Email client online
   - another terminal (PC) used as a primary email and gmail reader, 
   imap(s) used for synchronization.


Current behavior, events chronologically:

   1. a message arrives to the email or gmail account
   2. a new email or gmail notification icon populates the notification area
   3. primary terminal is used to read (change the message's status to 
   read)
   4. the read status is synchronized from PC to email or gmail server
   5. the new email or gmail notification icon does not disappear 
   (despite background synchronization)

Preferred behavior, events chronologically:

   1. a message arrives to the email or gmail account
   2. a new email or gmail notification icon populates the notification area
   3. primary terminal is used to read (change the message's status to 
   read)
   4. the read status is synchronized from PC to email or gmail server
   5. the new email or gmail notification icon disappears as soon as 
   Samung synchronizes email or gmail ibox.

Conclusion: the notification icon is expected to disappear automatically as 
proposed in pt. 5.

Await your comments,
Rafal.

   

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

2012-11-08 Thread naxwp


I'm currently working on a cool Android game which was about to be released 
real soon. Some of our beta testers started complaining that the game 
crashes with the “too many open files” error message. I've tried simulating 
this problem on the AVD emulator but couldn't reproduce the error.

Afterwards, I realized that only our Galaxy S3 and Asus Nexus 7 testers 
were complaining.

I found this bug issue on Android's bug tracker and it sounds quite similar 
to what is happening to me:
*http://code.google.com/p/android/issues/detail?id=39002*http://code.google.com/p/android/issues/detail?id=39002

This sounds like a serious architecture problem which effects all Internal 
SD cards devices. 

*These devices are limited to 1024 file descriptors only!*

Can anybody confirm this problem?

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

[android-developers] Re: How to proguard my project with library project.

2012-11-08 Thread Robert Wang
What do you mean? can you be more specific? What's is the error if there is 
an error log?

On Wednesday, May 30, 2012 11:46:25 PM UTC-4, 林思然 wrote:

 After updated to adt18, I can't proguard my project.


 https://lh6.googleusercontent.com/-krui2nM0Ul0/T8bpius5GTI/ADk/2QdqhjrS-Hg/s1600/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg



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

2012-11-08 Thread Robert Wang
For my project I need to be building a custom build of Android, and I'm 
looking to set up the source code in Intellij.

The source code is obtained from [Android Open Source Project][1] with the 
[these instructions][2]. I would like to modify the Java code of some of 
the base modules (eg. content provider), and would like to do this in 
Intellij since that is my main IDE for android development.

  [1]: http://source.android.com/source/index.html
  [2]: http://source.android.com/source/downloading.html

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

[android-developers] Confused about multiple different account types and emails needed

2012-11-08 Thread Stuart Heinrich
I am a bit confused about all the different types of accounts that are 
needed for testing and then actually running in-app billing...

a) Publisher account
b) Merchant account
c) Sandbox merchant account
d) Sandbox buyer account
e) Primary account on testing phone

As far as email addresses go, I am confused on the restrictions.  I want to 
setup the simplest and most convenient possible setup here for testing.

Can a==b?
Can b==c?
Can d==e?
Can a==e?

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

2012-11-08 Thread Hrishikesh Barman
Reset Your factory settings and it will work finerember to take a 
backup..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: disable scrolling touch events in ScrollView, just want to to scroll programmatically

2012-11-08 Thread Saubhagya Chaudhary
yes there is a simple way to stop scrollview to scroll you can do it like 
this:-

scrollview.setOnTouchListener(new OnTouchListener() {

   @Override
   public boolean onTouch(View v, MotionEvent event) 
   {

  return !enable;
   }});

when you set enable variable to true it will start scrolling and when you 
set it to false it stop scrolling.


On Monday, 10 August 2009 14:20:48 UTC+5:30, rukiman wrote:

 Just wondering if there is an easier way to simply stop ScrollView 
 from being scrolled via touch inputs? I will programmatically get the 
 ScrollView to scroll to top or bottom. 

 As a last resort, I guess I will have to inherit from ScrollView and 
 capture all the ontouch events. But wondering if there is an easier 
 way before I take this approach? 

 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] Android USB gadget driver - make into loadable kernel module

2012-11-08 Thread Ryan Leonard
Hello all,

My question is, is it possible to build the linux kernel for an android 
device without the usb gadget driver built-in? My motivation and what I 
have tried thus far is listed below.

I am attempting to emulate the behavior of connecting and disconnecting an 
android phone from a given host. I have looked through many methods to try 
to emulate this behavior, and the solution I am working on now is:
1. build a kernel WITHOUT support for usb gadget
2. build a kernel module that supports usb gadget
3. put together an application to insmod/rmmod the resulting kernel module

I have done all three parts, and now I am seeing kernel panics. In 
particular there are two actions that result in kernel panics
1. Plug android device WITHOUT usb gadget support into a host (the 
enumeration must be causing the panic)
2. insmod and rmmod the kernel module, then insmod it again (kernel module 
name is android.ko and the resulting kernel log messages that happen just 
before panic are below)
[  257.163085] sysfs: cannot create duplicate filename 
'/devices/platform/omap/musb-omap2430/musb-hdrc/gadget/lun0'
[  257.163177] Modules linked in: android(+) [last unloaded: android]

I am working with the Samsung Galaxy Nexus. I have verified the kernel 
building process and the module building process by making a stock kernel 
and a simple kernel module. So the issue IS particularly with the usb 
gadget driver module and/or the kernel without built-in android gadget usb.

Best,
Ryan Leonard

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

[android-developers] Error: Failed lot load

2012-11-08 Thread Hrishikesh Barman
I put the .png file in my drawable folders and When i Try to put a 
background image this error appears and no image loads,:
 and this error appears 

*Failed lot load 
C:\Users\Hrishikesh\Documents\workplace\Khol\res\drawable-hdpi\latest.png*
*Exception details are logged in Window  Show View  Error Log*
*
*
*
*
*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] Does anyone know if the Andriod development tools work with this Chinese phone?

2012-11-08 Thread russell hanabusa
I am trying to decide if I should invest time in this phone.
 
Question:
 Does anyone know if the Andriod development tools work with this Chinese 
phone?
 
*Rugged mobile phone HF/UHF RFID Reader 
(IP65)*http://www.alibaba.com/product-gs/661906679/Rugged_mobile_phone_HF_UHF_RFID.html
 
http://www.alibaba.com/product-gs/661906679/Rugged_mobile_phone_HF_UHF_RFID.html
 
 
If you can provide some insight I would be grateful.
 
Thank you,
 
Russell

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

[android-developers] Miracast?

2012-11-08 Thread Robert Hattan
I would recommend Google better advertise Miracast capability with Android 
4.2.  It hasn't been explained very well to consumers and if existing 
hardware is upgraded to Android 4.2 will it support Miracast.  Similar to 
listing phones on Android.com, it would be nice to see a list of Miracast 
supported TVs, etc.  Even more exciting would be the ability to share an 
Android 4.2 phone with an Android tablet as a future feature.

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

[android-developers] Failed to open libwvm.so error message from Android MediaCodec.configure function while trying to encode audio from WAV to AMR format

2012-11-08 Thread shakti sourav sahu
Hi,

I am getting the following error when trying to use android MediaCodec 
class to encode audio.

 MediaCodec codec = MediaCodec.createEncoderByType(audio/;);
MediaFormat toFormat = MediaFormat.createAudioFormat(audio/3gpp, 
8000, 1);
codec.configure(toFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);

This is where it fails to configure.

10-31 12:00:40.634: E/WVMExtractor(19862): Failed to open libwvm.so
10-31 12:00:40.644: I/OMXClient(19862): Using client-side OMX mux.
10-31 12:00:40.665: E/ACodec(19862): [OMX.google.aac.encoder] 
configureCodec returning error -38
10-31 12:00:40.665: E/MediaCodec(19862): Codec reported an error. (omx 
error 0x80001001, internalError -38)
10-31 12:00:40.665: W/System.err(19862): java.lang.IllegalStateException
10-31 12:00:40.674: W/System.err(19862): at 
android.media.MediaCodec.native_configure(Native Method)
10-31 12:00:40.674: W/System.err(19862): at 
android.media.MediaCodec.configure(MediaCodec.java:257)

Any pointers would be highly appreciated.

Thanks
Shakti

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

[android-developers] Switch VideoView between Preview and Fullscreen mode

2012-11-08 Thread Roman Ilin
Hi *,

I develop tv player with Android SDK 4.0.3
I have TVChannelActivity and TVPlayerActivity.
TVChannelActivity contains 3 Fragments.
1st column ChannelsListFragment
2nd column TVPlayerFragment and EPGGuideFragment.

TVPlayerFragment uses VideoView.
TVPlayerActivity contains TVPlayerFragment only and has those 2 lines in 
onCreate(...)

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN);

to work in full screen mode.
Wenn I select one channel in ChannelsListFragment then after 2-3 seconds 
buffering of video stream I can see preview of the tv.
If I click on the same channel again then I switch to TVPlayerActivity.

And here is my problem:
If I transfer tv channels stream url to TVPlayerActivity and set this url 
to TVPlayerFragment's VideoView then buffering happens again and user waits 
2-3 seconds until video starts.
If I stay in TVChannelActivity and simply try to hide ChannelsListFragment 
and EPGGuideFragment then:
1) my TVPlayerFragment doesn't resize
2) I can not call requestWindowFeature(Window.FEATURE_NO_TITLE); because 
GUI has been drawn.

What should I do?
Can I use the same instance of TVPlayerFragment in TVChannelsActivity and 
TVPlayerActivity?
Or should I create some art of MediaPlayer singleton that I can share 
between all TVPlayerFragments?

Best regards
Roman

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

2012-11-08 Thread satheesh
Compare to xml parsing json is very leightweight, it takes less time to 
download the file in to your system.
Fob mobiles mostly preffered is json.


On Thursday, November 8, 2012 9:06:14 AM UTC+5:30, Sadhna Upadhyay wrote:

 Hi everybody,
   Please tell me in detail about JSON parsing and why 
 it is used in Android.








 


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

[android-developers] Set up box development

2012-11-08 Thread sebastian ortiz
Hello
This is my first post on this group, some weeks ago I began to explore the 
Android world, and I would like to know if some of you have had experience 
with a development project over set up boxes
I am planning to buy a single piece for testing this is the link

http://haho.en.alibaba.com/product/548497135-212224247/HD_1080P_Google_TV_box_set_top_box_with_DVB_T2_antenna.html

My doubts are:
1. I can use the same tools as in development for mobiles?
2. What IDEs or tools I need to download?
3. Is there an specific API reference, forums, community for this kind of 
development?
4. All the information I can get for learn more about, coding, API, 
debugging, etc

Thanks you all :D

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

2012-11-08 Thread Swapnil Deshmukh
Hi friends,
I have implemented the same and its working.But just want to know how to 
control(play /pause adding custom buttons) video playing in webview 

On Wednesday, 4 July 2012 19:37:49 UTC+5:30, arun kumar wrote:


  Change it with object tag. I mean, you must use object instead iframe. An 
 example here:

 object width=480 height=330param name=movie 
 value=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;rel=0   
 /paramparam name=allowFullScreen value=true/param
 param name=allowscriptaccess value=always/param
 embed src=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;rel=0 
 type=application/x-shockwave-flash width=480 height=330 
 allowscriptaccess=always allowfullscreen=true //object
 Use the code below:

 webview.getSettings().setPluginsEnabled(true);
 webview.getSettings().setJavaScriptEnabled(true);
 webview.getSettings().setAllowFileAccess(true);
 webview.loadUrl(url);
 Try this and if your problem solved :)






 On Wed, Jul 4, 2012 at 7:34 PM, arun kumar hariar...@gmail.comjavascript:
  wrote:

 Hai please add these lines and Have you tried including the class and 
 type? class=youtube-player type=text/html in your embed code?
   mWebView.getSettings().setJavaScriptEnabled(true);
 mWebView.getSettings().setPluginsEnabled(true);

 On Wed, Jul 4, 2012 at 7:29 PM, Hitendrasinh Gohil 
 hitendr...@gmail.comjavascript:
  wrote:

 Dear arun,

 Without internet connection it is not possible to see even thumbnail for 
 video.


 On Wed, Jul 4, 2012 at 7:21 PM, arun kumar hariar...@gmail.comjavascript:
  wrote:

 set internet permission in android.manifest file 
  uses-permission android:name=android.permission.INTERNET /


 On Wed, Jul 4, 2012 at 7:18 PM, Hitendrasinh Gohil 
 hitendr...@gmail.com javascript: wrote:

 any help,pls?


 On Wed, Jul 4, 2012 at 6:36 PM, Hitendrasinh Gohil 
 hitendr...@gmail.com javascript: wrote:

 Hi,

 I am trying to play youtube video in webview by following embed code. 
 Video thumbnail is shown but when i click on that nothing is played.

 iframe class=youtube-player type=text/html width=640 
 height=385 src=http://www.youtube.com/embed/*VIDEO_ID*; 
 frameborder=0
 /iframe

 I have tested it with samsung galaxy tab(3.2) which has a flash 
 support.
 can anybody tell me what could be problem?

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




 -- 
 regards,
 Hitendrasinh Gohil

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




 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

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




 -- 
 regards,
 Hitendrasinh Gohil

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




 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

  


 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: java.lang.IllegalStateException in Media.configure() with the new MediaCodec API

2012-11-08 Thread shakti sourav sahu
Hi folks,

I am facing the same error when I am trying to do an audio encode from WAV 
to AMR on android emulator

Here is my code.
MediaCodec codec = MediaCodec.createEncoderByType(audio/3gpp);
MediaFormat toFormat = MediaFormat.createAudioFormat(audio/3gpp, 
8000, 1);
codec.configure(toFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);

And I get the following errors. First of all it seems it can't open the 
libwvm.so file which seems suspicious.
Next it fails at the MediaCodec.configure functions.

10-31 11:20:30.333: E/WVMExtractor(18234): Failed to open libwvm.so
10-31 11:20:30.343: I/OMXClient(18234): Using client-side OMX mux.
10-31 11:20:30.363: E/ACodec(18234): [OMX.google.amrnb.encoder] 
configureCodec returning error -38
10-31 11:20:30.363: E/MediaCodec(18234): Codec reported an error. (omx 
error 0x80001001, internalError -38)
10-31 11:20:30.363: W/System.err(18234): java.lang.IllegalStateException
10-31 11:20:30.383: W/System.err(18234): at 
android.media.MediaCodec.native_configure(Native Method)
10-31 11:20:30.383: W/System.err(18234): at 
android.media.MediaCodec.configure(MediaCodec.java:257)

If anyone has got past it, please reply.

Thanks
Shakti
352 222 6866

On Monday, September 17, 2012 8:07:29 PM UTC-7, David Hagege wrote:

 Hi,

 I have a strange issue regarding the new MediaCodec API on Jellybean.
 The native function android.media.MediaCodec.native_configure is throwing 
 a java.lang.IllegalStateException.
 I'm using the OMX.TI.DUCATI1.VIDEO.H264E codec on a Galaxy Nexus (maguro).

 Here is my Scala code:


 class ScreenshotView(context: Context, attr: AttributeSet, style: Int)
 extends SurfaceView(context, attr, style) with SurfaceHolder.Callback {
 private def startEncoder = {
 var surface = getHolder.getSurface
 var codec: MediaCodec = MediaCodec.createEncoderByType(video/avc)
 codec.configure(MediaFormat.createVideoFormat(video/avc,
   getWidth, getHeight), surface, null, 
 MediaCodec.CONFIGURE_FLAG_ENCODE)
 }
 }

  



 When calling the startEncoder method, the codec.configure() fails.
 Here is what I can see in the logcat:

 I/OMXClient( 1193): Using client-side OMX mux.
 E/OHELP   ( 1193): CODEC:android.media.MediaCodec@42124b70
 E/OHELP   ( 1193): MediaFormat:{height=1038, width=720, mime=video/avc}
 E/ACodec  ( 1193): [OMX.TI.DUCATI1.VIDEO.H264E] configureCodec returning 
 error -38
 E/MediaCodec( 1193): Codec reported an error. (omx error 0x80001001, 
 internalError -38)
 D/AndroidRuntime( 1193): Shutting down VM
 W/dalvikvm( 1193): threadid=1: thread exiting with uncaught exception 
 (group=0x41bf3300)
 E/AndroidRuntime( 1193): FATAL EXCEPTION: main
 E/AndroidRuntime( 1193): java.lang.IllegalStateException
 E/AndroidRuntime( 1193):at 
 android.media.MediaCodec.native_configure(Native Method)
 E/AndroidRuntime( 1193):at 
 android.media.MediaCodec.configure(MediaCodec.java:257)


 If I'm looking at the JNI, here is where the exception is thrown 
 (frameworks/base/media/jni/android_media_MediaCodec.cpp:338):


 static jint throwExceptionAsNecessary(
 JNIEnv *env, status_t err, const char *msg = NULL) {
 if (err = ERROR_DRM_WV_VENDOR_MIN  err = ERROR_DRM_WV_VENDOR_MAX) {
 // We'll throw our custom MediaCodec.CryptoException
 throwCryptoException(env, err, msg);
 return 0;
 }
 switch (err) {
 case OK:
 return 0;
 case -EAGAIN:
 return DEQUEUE_INFO_TRY_AGAIN_LATER;
 case INFO_FORMAT_CHANGED:
 return DEQUEUE_INFO_OUTPUT_FORMAT_CHANGED;
 case INFO_OUTPUT_BUFFERS_CHANGED:
 return DEQUEUE_INFO_OUTPUT_BUFFERS_CHANGED;
 default:
 {
 jniThrowException(env, java/lang/IllegalStateException, 
 NULL);   /// I'm getting there 
 break;
 }
 }
 return 0;
 }


 This call is made in the last line of 
 android_media_MediaCodec_native_configure() (line 389):

 err = codec-configure(format, surfaceTexture, crypto, flags);
 throwExceptionAsNecessary(env, err); 




 Is there anything I'm doing wrong?
 My surface is valid (isValid() is returning true). Everything passed to 
 codec-configure() in the JNI seems to be ok too.
 Any clues?

 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] Best Practices for releasing Views controlled by Adapter

2012-11-08 Thread Rick Gavin
Hi All,
when a Fragment is being closed, what is the correct way to clean up the 
memory that is being used by a GridView that is being supplied data by an 
Adapter subclass.   

The GridView items are layouts that include an ImageView and a text label.

in the Fragment's onDestroyView, do you simply set the GridView's adapter 
to null or should you be doing any other specifics to expunge memory, in 
either the Adapter subclass or at the Fragment level?

thanks for any pointers, I'm trying to track down an OutOfMemory bomb after 
switching tabs a number of times.

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

[android-developers] Sound Making App..

2012-11-08 Thread Hrishikesh Barman
Hello, i am very new to this group and i am currently developing an app 
that is much like the tabla app. Can anyone help me out with it as m not a 
developer , I just want to know how do i put an image and make the image 
sound different when tapped on different places. Hope i will get help from 
you all..   

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

2012-11-08 Thread Robert Wang


For my project I need to be building a custom build of Android, and I'm 
looking to set up the source code in Intellij.

The source code is obtained from Android Open Source 
Projecthttp://source.android.com/source/index.html with 
the these instructions http://source.android.com/source/downloading.html. 
I would like to modify the Java code of some of the base modules (eg. 
content provider), and would like to do this in Intellij since that is my 
main IDE for android 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] Standalone TTS library

2012-11-08 Thread uacaman
 

I would like to integrate TTS in my application, however the TTS available 
for Android does not support that many languages and also I don’t want the 
user to have to install something else to make TTS work. Ideally I would 
ship a static library in the apk with only the language needed.

acapelaTTS from http://www.acapela-group.com/ is perfect but it seems they 
do not make their product available to a simple mortal.

The search for such library is hard as the term TSS is used to refer to the 
installable library in android, for that I ask: Do you know any static TTS 
library for android? It does not have to be free but I can’t pay kidney for 
it!


Uacaman

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 distinguish url redirection and normal link click in webview?

2012-11-08 Thread Sylvain R.
Hi,
I'm facing this problem and found this answer on Stackoverflow.
It is not perfect but can help. Depends on the html page.

http://stackoverflow.com/questions/3852414/in-a-webview-is-there-a-way-for-shouldoverrideurlloading-to-determine-if-it-is-c

Best regards,
Sylvain

On Wednesday, July 25, 2012 7:27:18 AM UTC+2, Adi wrote:

 Hi Hendy, 

 even I am facing this problem , and it is so ridiculous that since 1 year 
 we dind get any solution...please reply with the solution u applied for 
 this problem.

 thanks in advance

 Adithya
 Android developer  

 On Thursday, 10 March 2011 13:29:21 UTC+5:30, Hendy wrote:

 The default behaviour of webview is to open a new browser window when 
 url redirection happends or a link in the current page is clicked. 

 I know that implementing my own WebViewClient and override 
 shouldOverrideUrlLoading can handle both of this. But how to 
 distinguish these two? Because the redirection can be considered as 
 the same content of the original url. But new link url is different.



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

[android-developers] Different apps on multiple displays

2012-11-08 Thread Vladek Sobolevsky
Hi,
I have following question :
We are trying to check if android has a support of running different apps 
on multiple displays ?
E.g having one app on one display and another app on second display. Our 
device has an multiple frame buffers support.
Does Android support such scenario or is there any plans to support these 
in the feature ?

Thank You,
Vladik

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

2012-11-08 Thread Sergey Ivanov
I think it's not a good idea to create sites as SO. It will be much better 
if a lot of information would be presented on 1 site (StackOverflow).
I not appreciate this.
Successful development requires reading the documentation which is written 
in English.
In addition, SO has already collected enough developers who want to help 
others. And it's not a good idea to invite them to other websites (I tried 
to use similiar site on my native language but I found it unuseful).

Sorry for my English. It's not good enough :(

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

[android-developers] Error replacing two fragments with scrollviews

2012-11-08 Thread Jeff Tycz
I have 2 fragments and both have`Scrollviews in them, I make a selection 
from a ListView and that replaces the first fragment with the other 
fragment that has the scrollview. 

The problem is that when I try to replace the fragment with the new one I 
get an error saying ScrollView can only contain one direct child which it 
does, it has one RelativeLayout which holds all the content.

If i take the ScrollView out of the first fragments view I do not get the 
error and the fragment gets replaced fine but I need the scrollview in the 
first fragment.

What is causing this issue, does replacing a fragment not remove the view 
fully?

StackTrace:

11-01 18:45:00.895: E/AndroidRuntime(3833): FATAL EXCEPTION: main
11-01 18:45:00.895: E/AndroidRuntime(3833): 
java.lang.IllegalStateException: ScrollView can host only one direct child
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.widget.ScrollView.addView(ScrollView.java:229)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:840)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.BackStackRecord.run(BackStackRecord.java:635)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1397)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.FragmentManagerImpl$1.run(FragmentManager.java:426)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.os.Handler.handleCallback(Handler.java:615)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.os.Handler.dispatchMessage(Handler.java:92)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.os.Looper.loop(Looper.java:137)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
android.app.ActivityThread.main(ActivityThread.java:4745)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
java.lang.reflect.Method.invokeNative(Native Method)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
java.lang.reflect.Method.invoke(Method.java:511)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
11-01 18:45:00.895: E/AndroidRuntime(3833): at 
dalvik.system.NativeStart.main(Native Method)

*xml that holds the fragments*

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent 
android:orientation=horizontal


fragment
android:id=@+id/frameOne
android:name=com.tyczj.bowling.BowlersListFragment
android:layout_width=300dp
android:layout_height=match_parent
android:background=@drawable/list_background_holo /

fragment android:name=com.tyczj.bowling.BowlerEntryFrag
android:id=@+id/frameTwo
android:layout_height=match_parent
android:layout_width=fill_parent/


/LinearLayout

*First fragment with the scrollview*
*
*
?xml version=1.0 encoding=utf-8?
ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent
android:background=@drawable/wood_floor 

RelativeLayout android:layout_width=match_parent
android:layout_height=wrap_content

TextView
   android:id=@+id/textView2
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:layout_marginLeft=40dp
   android:layout_marginTop=30dp
   android:text=Add Bowler
   android:textAppearance=?android:attr/textAppearanceLarge
   android:textColor=#33b5e5
   android:textSize=40dp /

   FrameLayout
   android:id=@+id/line
   android:layout_width=fill_parent
   android:layout_height=3dp
   android:layout_alignParentLeft=true
   android:layout_below=@+id/textView2
   android:layout_marginLeft=20dp
   android:layout_marginRight=20dp
   android:layout_marginTop=8dp
   android:background=@drawable/ab_solid_custom_blue_inverse_holo 

   /FrameLayout
   
   TextView
   android:id=@+id/textView1
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:layout_alignLeft=@+id/line
   android:layout_below=@+id/line
   android:layout_marginTop=20dp
   android:text=@string/bNameTV
   android:textAppearance=?android:attr/textAppearanceMedium /
   

   EditText
   android:id=@+id/editText1
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   

[android-developers] Replacing double whitespace with single whitespace

2012-11-08 Thread Solo
Given a string: (1+2)*(3/4)-(5+6)
I want to add whitespaces to it, so it becomes: ( 1 + 2 ) * ( 3 / 4 ) - ( 5 
+ 6 )

This is my function for this, but it makes double whitespaces. 
Can anyone help me please?

public void addSpaces (){
 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\+,  + );
 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\-,  - );
 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\*,  * );
 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\/,  / );

 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\(,  ( );
 editTextInputDataTemp = editTextInputDataTemp.replaceAll(\\),  ) );

} 


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

[android-developers] Create session and check the value

2012-11-08 Thread Bhargav Suthar
i have some doubts in session activity.. if any one has brief description 
about that plz  give me... 

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

[android-developers] Mapping between vies in separete Layout

2012-11-08 Thread Tanvir Hossain


https://lh3.googleusercontent.com/-9K4BjapIE7k/UI-66rYp28I/ACQ/7TuB2jgnuUI/s1600/ASD007.jpg
Hello, I m new to android. I want to point at the locations on an image. 
Hence, I put the image in a layout and the buttons in another but i cant 
draw the lines for pointing.I want to achieve the above scenario. (the 
squared texts are 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

[android-developers] Does Jellybean support SCEP?

2012-11-08 Thread Vijay
Hi,

I would like to know if Jellybean has support for SCEP or any other 
certificate enrollment protocol so that a device can request a certificate 
from a CA and install it over the air instead of sideloading a certificate 
or emailing it. I know Android has support for key generation, storage etc 
but are there APIs for the whole certificate enrollment process?

Vijay

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

[android-developers] I have query on listing the data in listview........

2012-11-08 Thread Bhargav Suthar
I want to display all the data on my list view but below code sawing me 
only one data  which i have inserted last.




DBHandlerclass dbHandl = new DBHandlerclass(getApplicationContext());
ListPOJO_Student studentList = dbHandl.getAllContacts();
int std = studentList.size();
ArrayAdapterString adapter = null;
for(int i=0;i=std;i++)
{
for (POJO_Student pj : studentList) {
String Emailid = pj.getId();
String Fname = pj.getFname();
String Lname =pj.getLname();
 String[] log = {Emailid+\n +Fname+\n +Lname};
adapter = new ArrayAdapterString(this,R.layout.student_list,
  R.id.txt_list,log);

 
}
setListAdapter(adapter);
} 
   
 }

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

[android-developers] About (1, -1004) error when Widevine DRM streaming video play.

2012-11-08 Thread Sheva Ma
Hi,

Did anyone who get the same error when playing Widevine DRM protected
streaming video?

I have got the  DrmEvent of type DRM_INFO_PROCESSED.

Thanks,
Sheva

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

[android-developers] Handler Tutorial Implementation to Update Text View

2012-11-08 Thread DiscoS2
Hi,
 
I know the tutorial is old (2007) but I have been having trouble (Getting 
GC_CONCURRENT in LogCat) update my TextView's text using a timer and timer 
task implementation so I decided to give it a try.

I implemented it just the way you have but still I am getting GC_CONCURRENT 
calls every time its called.

Could it be the way I am accessing and keeping a reference to the TextView 
because when I get rid of that line there aren't any GC_CONCURRENT issues.

At the moment here is how I declare my TextView.

private TextView durationValueTxtView;


In onCreateView

this.durationValueTxtView = (TextView) 
view.findViewById(R.id.durationValueLbl);


I then call this method in my runnable.

public void updateViewWithTrack(CCTrack track) {

this.durationValueTxtView.setText(TIME);

}


Can anyone see anything wrong with what I'm doing?


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

[android-developers] SDK Tool Uninstall (New to developing, Difficult question)

2012-11-08 Thread Chris Brassell
Ok developers serious question. I downloaded the SDK tools, I then after 
using it for a few minutes decided it was in the wrong area of my computer 
after seeing the path lead into my temp folder. So I decided to put it in 
(x86) Program Files. I installed it and decided once again because my 
O.C.D. (obsessive compulsive disorder) to uninstall one more time to fix 
the desired path. I went afk for about 10 minutes while uninstalling SDK 
tools. I noticed that the paths on the deletion process was not just the 
SDK tools. It was the entire x86 Program Files that were uninstalling. I 
lost around 50gigs of data from this process. What is the solution to 
getting it back? Already tried system restore, no restore points were set 
or apparently deleted.
Also would that not be a coding issue with the uninstall button for the SDK 
tools? 

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

[android-developers] Designing graphics for different devices/screens?

2012-11-08 Thread Søren Neigaard
Hi,

Im experienced iOS developer but totally new to Android, so you will get 
some newbie questions from in the comming weeks :)

I have to build a Android app that has a full screen image and also all 
kinds of different images. Now on iOS we live in a protected world and 
designing a full screen image is very easy as I only have so few screen 
sizes to design it for, but for Android it seems I'm  in for a whole 
different problem here. I have read about the small/normal/large/xlarge and 
ldpi/mdpi/hdpi/xhdpi 
and I can see that most coverage is on normal+hdpi. But how do I design a 
full screen graphics that works well on Android devices, what sizes should 
it be? I cant find any info on that, so if I want to make a full size 
background image for normal+hdpi then what size should that be? And should 
I leave extra space at top/bottom or the sides to make it work on 
different screen ratios or how does one go about designing this?

Ok as you can see I'm totally new here and a bit puzzled, I hope you can 
get me started on the right foot.

Thank you
Søren

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