[android-developers] Re: Registering - Unregistering Device from Android GCM

2012-07-11 Thread Bahadır Arslan
This subject can be closed; i couldn't find how i can do. 
I asked it android-gcm group

12 Temmuz 2012 Perşembe 09:13:20 UTC+3 tarihinde Bahadır Arslan yazdı:
>
> I am trying to add push notification feature to my application, but i have 
> strange problems.
>
> In my first try, i got regId for device; but after that device trying to 
> unregister it self from GCM; actually it succeeed becuase i lost regId but 
> not i couldn't get it again.
>
> In LogCat i see these lines.
>
> 07-12 08:40:25.615: V/GCMRegistrar(10648): Registering receiver
> 07-12 08:40:25.620: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:25.635: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:28.570: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:28.570: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:29.125: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:29.130: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:39.655: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:39.660: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:40.605: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:40.605: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:41.350: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:41.350: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
> 07-12 08:40:43.255: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
> 07-12 08:40:43.255: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
>
> I tried to implement GCM Demo Application's code to my application, so 
> here is the code.
>
> GCMRegistrar.checkDevice(this);
> GCMRegistrar.checkManifest(this);
>
> registerReceiver(mHandleMessageReceiver, new IntentFilter(
> DISPLAY_MESSAGE_ACTION));
>
> final String regId = GCMRegistrar.getRegistrationId(this);
>
> if (regId.equals("")) {
> // Automatically registers application on
> // startup.
> GCMRegistrar.register(this, SENDER_ID);
> } else {
> Log.v(TAG, "Already registered");
> // Device is already registered on GCM, needs to
> // check if it is
> // registered on our server as well.
> if (!GCMRegistrar.isRegisteredOnServer(this)) {
>
> // Try to register again, but not in the UI
> // thread.
> // It's also necessary to cancel the thread
> // onDestroy(),
> // hence the use of AsyncTask instead of a
> // raw thread.
> final Context context = this;
> mRegisterTask = new AsyncTask() {
> mRegisterTask.execute(null, null, null);
> }
> }
>
>

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

[android-developers] Registering - Unregistering Device from Android GCM

2012-07-11 Thread Bahadır Arslan


I am trying to add push notification feature to my application, but i have 
strange problems.

In my first try, i got regId for device; but after that device trying to 
unregister it self from GCM; actually it succeeed becuase i lost regId but 
not i couldn't get it again.

In LogCat i see these lines.

07-12 08:40:25.615: V/GCMRegistrar(10648): Registering receiver
07-12 08:40:25.620: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:25.635: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:28.570: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:28.570: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:29.125: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:29.130: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:39.655: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:39.660: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:40.605: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:40.605: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:41.350: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:41.350: V/GCMRegistrar(10648): Unregistering app PACKAGENAME
07-12 08:40:43.255: D/GCMRegistrar(10648): resetting backoff for PACKAGENAME
07-12 08:40:43.255: V/GCMRegistrar(10648): Unregistering app PACKAGENAME

I tried to implement GCM Demo Application's code to my application, so here 
is the code.

GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);

registerReceiver(mHandleMessageReceiver, new IntentFilter(
DISPLAY_MESSAGE_ACTION));

final String regId = GCMRegistrar.getRegistrationId(this);

if (regId.equals("")) {
// Automatically registers application on
// startup.
GCMRegistrar.register(this, SENDER_ID);
} else {
Log.v(TAG, "Already registered");
// Device is already registered on GCM, needs to
// check if it is
// registered on our server as well.
if (!GCMRegistrar.isRegisteredOnServer(this)) {

// Try to register again, but not in the UI
// thread.
// It's also necessary to cancel the thread
// onDestroy(),
// hence the use of AsyncTask instead of a
// raw thread.
final Context context = this;
mRegisterTask = new AsyncTask() {
mRegisterTask.execute(null, null, null);
}
}

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

Re: [android-developers] Listview or Table Layout- For Items with a Header and display some dynamic data rows with style

2012-07-11 Thread maccoy
Thanks for pointing to that.

On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:
>
> On Wed, Jul 11, 2012 at 12:03 AM, maccoy  wrote:
>
>> What would be the best case: Considering we have the formatting in XML 
>> and the data rows are just dynamic display of content.
>
>
> Probably ListView.
>
> http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>
On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:
>
> On Wed, Jul 11, 2012 at 12:03 AM, maccoy  wrote:
>
>> What would be the best case: Considering we have the formatting in XML 
>> and the data rows are just dynamic display of content.
>
>
> Probably ListView.
>
> http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>
On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:
>
> On Wed, Jul 11, 2012 at 12:03 AM, maccoy  wrote:
>
>> What would be the best case: Considering we have the formatting in XML 
>> and the data rows are just dynamic display of content.
>
>
> Probably ListView.
>
> http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>
On Wednesday, July 11, 2012 10:55:57 AM UTC+5:30, TreKing wrote:
>
> On Wed, Jul 11, 2012 at 12:03 AM, maccoy  wrote:
>
>> What would be the best case: Considering we have the formatting in XML 
>> and the data rows are just dynamic display of content.
>
>
> Probably ListView.
>
> http://developer.android.com/reference/android/widget/ListView.html#addHeaderView%28android.view.View,%20java.lang.Object,%20boolean%29
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

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

Re: [android-developers] Re: How to fix launching of my Android app against system's default PHONE app

2012-07-11 Thread Justin Anderson
Does this help?
http://android-developers.blogspot.com/2011/01/processing-ordered-broadcasts.html

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


On Wed, Jul 11, 2012 at 11:26 PM, Gaurav Wable  wrote:

> No reply from developers group..im shocked
>
>
> On Thursday, 5 July 2012 15:15:28 UTC+5:30, Gaurav Wable wrote:
>>
>> I made an android app to show an attractive GUI to be displayed
>> whenever there is any new outgoing call or incoming call. Whenever any
>> broadcast signal (either NEW_OTUGOING_CALL or PHONE_STATE) is
>> received, my app launches, same as the Android mobile's default PHONE
>> app.
>>
>> Sometimes my app appears on screen and sometimes the default PHONE app
>> appears on screen. How to fix it.. "only my app should be launched to
>> handle incoming/outgoing calls OR my app should be on top of default
>> PHONE app".
>>
>> Any guidance will be appreciated...and also suggest me if any other
>> solution is possible.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-11 Thread |-NK-|
Thanks..

On Jul 11, 2:41 pm, Mark Murphy  wrote:
> AFAIK,DCOMis not designed to operate over the Internet.Android
> certainly has no support forDCOMbuilt in.
>
>
>
>
>
> On Wed, Jul 11, 2012 at 1:22 AM, |-NK-|  wrote:
>
> > I have built an application (c++/c#) for windows environment.
> > I have made use of COM for communication between 2 DLLs.
>
> > However we need to develop same application forandroid.
> > I have heard thatandroiddosen't support COM.
>
> > I just want to know that whetherDCOMcan communicate withandroid
> > application over internet(i.eDCOMDLL residing on Server with windows
> > environment andandroidapplication accessing this DLL over internet).
>
> > If any one has some study material regardingDCOMwithAndroid, please
> > provide the link.
>
> > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "AndroidDevelopers" group.
> > To post to this group, send email toandroid-develop...@googlegroups.com
> > To unsubscribe from this group, send email to
> >android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide toAndroidDevelopment_ Version 3.8 Available!- Hide 
> quoted text -
>
> - Show quoted text -

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


[android-developers] Multiple screen support on Gingerbread

2012-07-11 Thread |-NK-|
I am developing an android application for android phones and tablets.
I want it to support Gingerbread.

I want to develop different GUI's for Tablets as it has much more
bigger screen than the android phone devices.

I have tried out creating different layout files for different screen
resolutions (inside layout folder).
However I have heard that this feature is supported from Android
version 3.2

Is their any way by which I can do the above functionality for
Gingerbread supported devices.(Tablets and phones).


Please correct me if my understanding is wrong.

Thanks.

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


Re: [android-developers] Google Play - Purchase receipt verification from server failing since Google Play rolled out

2012-07-11 Thread Mulsaniya Bhadresh
hi...

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

[android-developers] Re: Process 8769 terminated by signal (7)

2012-07-11 Thread B.Arunkumar
Hi,

Actually, I am facing the same problem as Andrei and I posted to the
android ndk googlegroups just yesterday that it is the same problem as
his.

http://groups.google.com/group/android-ndk/browse_frm/thread/495f7acf91f35a0c

I am yet to try out his suggestion. I will try it today and get back
to the forum.

Thank you,
B.Arunkumar

On Jul 11, 11:12 pm, Justin Buser  wrote:
> You'd really have to provide some relevant information, telling us the
> sigspec and what your apps pid happened to be when it died is not really
> enough to go on.
>
>
>
>
>
>
>
> On Friday, April 20, 2012 3:44:40 AM UTC-4, B.Arunkumar wrote:
>
> > Hi,
>
> >     We have designed an app which renders video from IP camera on the
> > Android mobile (Samsung Galaxy SII) through RTSP, the video frames get
> > decoded by ffmpeg and rendered on ImageView. We get the RTSP responses
> > and video packets from the IP camera using a socketchannel and
> > asynchronous selector. Sometimes we get this error "Process 8769
> > terminated by signal (7)" and the app crashes at the point where the
> > asynchronous selector is read and the packets get processed. Could
> > somebody give any clues on what could be the possible reasons why we
> > get this error sometimes and the app crashes?
>
> > Thank you,
> > B.Arunkumar

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


[android-developers] Re: How to fix launching of my Android app against system's default PHONE app

2012-07-11 Thread Gaurav Wable
No reply from developers group..im shocked

On Thursday, 5 July 2012 15:15:28 UTC+5:30, Gaurav Wable wrote:
>
> I made an android app to show an attractive GUI to be displayed 
> whenever there is any new outgoing call or incoming call. Whenever any 
> broadcast signal (either NEW_OTUGOING_CALL or PHONE_STATE) is 
> received, my app launches, same as the Android mobile's default PHONE 
> app. 
>
> Sometimes my app appears on screen and sometimes the default PHONE app 
> appears on screen. How to fix it.. "only my app should be launched to 
> handle incoming/outgoing calls OR my app should be on top of default 
> PHONE app". 
>
> Any guidance will be appreciated...and also suggest me if any other 
> solution is possible.

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

Re: [android-developers] AutoCompleteTextView for RTL in Android

2012-07-11 Thread Z.A Jafari
Hi Romain,

thanks for your feedback.can you provide some e.g. do you mean only
changing the locale to persian and language of the phone to persian/farsi
will allow me to trpe in persian and filter the words from the autocomplete
or what.can you please elaborate. by the way i am using gingerbread version.

cheers
zolf

On 11 July 2012 21:41, Romain Guy  wrote:

> Hi,
>
> Full RTL support for text is a feature of Android 4.1.
>
>
> On Tue, Jul 10, 2012 at 10:21 PM, Z.A Jafari  wrote:
>
>> Hello there,
>>
>> I have an autocomplete textview which is working perfect with english but
>> I want to to use it for farsi/persian language.
>>
>> Does android support it?. The data in the autocomplete is got from the
>> db. Can somebody please help me to make this work?
>>
>> please help
>>
>> cheers Zolf
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> 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
>

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

2012-07-11 Thread ashok chakravarthy
go through content provider in android

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


On Mon, Jul 2, 2012 at 5:04 PM, Ashu  wrote:

> can we connect a android application to sqlite database just like a
> connectivity of mysql to java code,,plz help me ,i am new to 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

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

2012-07-11 Thread Justin Anderson
So what are you needing help with? Creating a list view? Getting data from
a Web server?
On Jul 11, 2012 5:46 PM, "Jorge Padilla" 
wrote:

> Hi, I'm a new android developer. How I can create a listview that will be
> loaded with data from a webservice as I scroll through the list?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] First App Not Appearing

2012-07-11 Thread Justin Anderson
What do you mean by your app not "appearing"?  What is happening?
 On Jul 11, 2012 5:46 PM, "fmarquin87"  wrote:

> Hello everybody,
>
> I'm learning to build my first app using the training on
> http://developer.android.com, I've followed all the step with no
> errors, but for some reason the app isn't appearing on the emulator.
>
> According to
> http://developer.android.com/training/basics/firstapp/starting-activity.html
> I have my manifest as:
>
> http://schemas.android.com/apk/res/android";
> package="myfirstapp.app"
> android:versionCode="1"
> android:versionName="1.0" >
>
>  android:minSdkVersion="4"
> android:targetSdkVersion="15" />
>
>  android:icon="@drawable/ic_launcher"
> android:label="@string/app_name"
> android:theme="@style/AppTheme" >
>  android:name="myfirstapp.app.DisplayMessageActivity" />
> 
>
> 
>
> Can anybody please help me solve this?  I'd like to start learning
> more.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-11 Thread Sree Ramakrishna N
Android recommends stop using GIFs.


On Thursday, July 12, 2012 10:05:20 AM UTC+5:30, Sree Ramakrishna N wrote:
>
> Avoid using GIF. Use PNGs.
>
> Jpeg is accetable
>
> On Tuesday, July 3, 2012 8:52:20 PM UTC+5:30, Josh F. wrote:
>>
>> I'm wondering if it is "just me" or not, but I have a game that has been 
>> out for years now that uses GIF files for some of the bigger images (many 
>> are PNG, but some are GIF).  In the latest Android 4.1 Jelly Bean release, 
>> the emulator continues to show these images without any problems in every 
>> configuration I have tried, but the devices that are running 4.1 right now 
>> (the Nexus 7 and Galaxy Nexus) both fail to show these images in the game. 
>>  There is no crash and no other failure and the game behaves as if the 
>> images are present (some you can select/touch/etc. and it works).
>>
>> As I don't yet have a 4.1 device (unable to get tickets to Google I/O 
>> which is the only way to have a legitimate one right now) and I do not want 
>> to flash a hacked ROM on my own Galaxy Nexus test devices (we keep them 
>> stock for testing) I was hoping someone else in the community has seen this 
>> and has a recommendation.  Otherwise, it looks like I'll be doing a lot of 
>> GIF to PNG conversions for the next few days...
>>
>

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

[android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-11 Thread Sree Ramakrishna N
Avoid using GIF. Use PNGs.

Jpeg is accetable

On Tuesday, July 3, 2012 8:52:20 PM UTC+5:30, Josh F. wrote:
>
> I'm wondering if it is "just me" or not, but I have a game that has been 
> out for years now that uses GIF files for some of the bigger images (many 
> are PNG, but some are GIF).  In the latest Android 4.1 Jelly Bean release, 
> the emulator continues to show these images without any problems in every 
> configuration I have tried, but the devices that are running 4.1 right now 
> (the Nexus 7 and Galaxy Nexus) both fail to show these images in the game. 
>  There is no crash and no other failure and the game behaves as if the 
> images are present (some you can select/touch/etc. and it works).
>
> As I don't yet have a 4.1 device (unable to get tickets to Google I/O 
> which is the only way to have a legitimate one right now) and I do not want 
> to flash a hacked ROM on my own Galaxy Nexus test devices (we keep them 
> stock for testing) I was hoping someone else in the community has seen this 
> and has a recommendation.  Otherwise, it looks like I'll be doing a lot of 
> GIF to PNG conversions for the next few days...
>

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

2012-07-11 Thread Raymond Rodgers

On 07/07/2012 11:03 AM, Raymond Rodgers wrote:

On 07/06/2012 11:31 AM, Justin Anderson wrote:

Please post the relevant code...

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

public class MyActivity extends FragmentActivity {
SectionsPagerAdapter mSectionsPagerAdapter;
ViewPager mViewPager;
static final String PREFS_FILE = "InstallLog.prefs";
static final boolean  DEBUG_MODE = true;
public static final int SCAN_UPDATE = 0xdeadbeef;
public static final int SCAN_DONE = 0xdeaddead;
static MyActivity MA = null;
TextView statusTextItem = null;
Handler scanDialogUpdateHandler = new Handler() {

@Override
public void handleMessage(Message msg) {
switch(msg.what)
{
case MyActivity.SCAN_UPDATE:
{
if(statusTextItem == null)
statusTextItem = 
(TextView)MyActivity.MA.findViewById(R.id.statusTextItem);

Log.e("myapp", "detected " + (String)msg.obj);
if(statusTextItem != null)
{
Log.e("myapp","Changing the status text to '" + 
(String)msg.obj +"'");

statusTextItem.setText((String)msg.obj);
statusTextItem.invalidate();
}
}break;
case MyActivity.SCAN_DONE:
{
//kill the dialog
MA.scanFrag.dismiss();
}break;
default:
super.handleMessage(msg);
}
}

};
FragmentTransaction fragTran;
FragmentManager fragMan;
ScanDialogFragment scanFrag;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyActivity.MA = this;
setContentView(R.layout.build_layout);
this.statusTextItem = 
(TextView)findViewById(R.id.statusTextItem);


   // Create the adapter that will return a fragment for each of 
the three primary sections

// of the app.
mSectionsPagerAdapter = new 
SectionsPagerAdapter(getSupportFragmentManager());



// Set up the ViewPager with the sections adapter.
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setAdapter(mSectionsPagerAdapter);
int entries = this.countEntries();
if( entries == 0 )
{
fragMan = getSupportFragmentManager();
fragTran = fragMan.beginTransaction();
scanFrag = new ScanDialogFragment();
scanFrag.setCancelable(false);
scanFrag.show(fragTran, "progress");
Intent serviceIntent = new Intent(this, 
RecordActivityService.class);

serviceIntent.setAction(RecordActivityService.PERFORM_SCAN);
startService(serviceIntent);
//fragTran.commit(); // commented out due to crash on startup 
when present

}
}

}

public class RecordActivityService extends Service implements
UncaughtExceptionHandler {
private Thread thread;
private Runnable doStartScan = new Runnable() {
public void run() {
performScan();
}
};
private void performScan()
{
Log.i("myapp", "Perform scan");
List myInfo = new List();
// getContentResolver().insert(Uri.parse(MyContentProvider.AC_URI), 
values);

Uri uri = Uri.parse(MyContentProvider.AC_URI);
ContentValues values = new ContentValues();
Message msg = null;
MyInfo info = null;
for(int index = 0 ; index < myInfo.size(); index++)
{
info = myInfo.get(index);
//populate ContentProvider; MyActivity.countEntries() 
counts these entries

values.put("data_1",info.getName() );
values.put("data_2",info.getData(2) );
values.put("data_3",info.getData(3) );
getContentResolver().insert(uri, values);
values.clear();
msg = new Message();
msg.what = MyActivity.SCAN_UPDATE;
msg.obj = info.getName();
MyActivity.scanDialogUpdateHandler.sendMessage(msg);
msg = null;
}
MyActivity.scanDialogUpdateHandler.sendEmptyMessage(MyActivity.SCAN_DONE); 


this.stopSelf();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// TODO Auto-generated method stub
int retval = super.onStartCommand(intent, flags, startId);
thread = new Thread(null,doStartScan,"perform_scan");
thread.start();
}
}

The following is the ScanDialogFragment.

public class ScanDialogFragment extends DialogFragment
{
public ScanDialogFragment()
{

}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup 
container,

Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.scanningdialogview, 
container);

return view;
 

Re: [android-developers] Re: Get Passwords from Webview

2012-07-11 Thread Mani
Thanks to both for your answers,
Yes, my use case is smth like password Vault.
@Kris, I am able to keep users in the same tab. So thats not my worry. Have 
u seen LastPass, thats quite amazing.
Well I dont think its snooping if you tell user that the app is meant to 
store/synch passwords across browsers or devices, like LastPass has done. 
I would appreciate if you can provide some on technical feasibility or 
direction on how this can be achieved..

Thanks
Mani

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

[android-developers] optimized the 4.0 gallery , showing > 1000 pictures on the screen as fluent as iphone does without blocking and black slots even if you scroll very fast. is here any job oppo in A

2012-07-11 Thread 伟刘
hi all.

I optimized the 4.0 gallery and showing > 1000 pictures on the screen as
fluent as iphone does even if you scroll very fast. No blocking and no
black slot

My purpose to show this is to find a job chance in America,  could any one
kindly recommend me in your company? thanks a lot!

br

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

[android-developers] optimized the 4.0 gallery , showing > 1000 pictures on the screen as fluent as iphone does even if you scroll very fast. want find a job chance in America

2012-07-11 Thread 伟刘
hi all.

I optimized the 4.0 gallery and showing > 1000 pictures on the screen as
fluent as iphone does even if you scroll very fast. No blocking and no
black slot

My purpose to show this is find a job chance in America,  could any one
kindly recommend me in your company? thanks a lot!

br

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

2012-07-11 Thread amro alfares
hello 
i will be more than happy to help 
just ask :) 
we all here help :) 

On Wednesday, July 11, 2012 8:31:06 AM UTC-7, Rene.M wrote:
>
> Hey guys, 
> im new to this Forum as i started to dive into android programming, I 
> stumbled across some problems.
> Well im pretty much at the beginning of the "Get Startet" -tour. Im trying 
> to understand the things that the tutorial explains but
> even if im copy and pasting the code, it still shows me errors on certain 
> parts.
> At the Step "Building your first app" . I tried all night to find the 
> mistake before posting (and searching) on the forum.. but no use.
>
> My first Programming expirience where in C++. Which I learned at home and 
> gave me a good start for college.
> I live in germany and im 21 Years young. I wanted to start programming 
> with android because i wanted my own personal apps.
> that are perfectly suited for me and my social contacts. If i have a good 
> idea someday i might even put some apps in the Market . who knows. but i 
> know this will only work with the help of some 
> expirienced Programmers. 
> So thanks
>

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

[android-developers] Re: Android Barcode Scanner Not reading some barcodes.

2012-07-11 Thread gjs
Hi,

Perhaps try another device.

regards

On Wednesday, July 11, 2012 9:01:01 PM UTC+10, Reji Joseph wrote:
>
>
>
> I am working on a Project which uses the Barcode Scanner for  redeem 
> points. I have tried Zxing,QR Droid, Red Laser,Scan Life,Shop Savy etc 
> usig HTC EVO 3D. None of them read all barcodes. But Zbar for IOS reading 
> all the same codes.I think its the problem with hardware of the device.Any 
> Comments 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] Google Play - Purchase receipt verification from server failing since Google Play rolled out

2012-07-11 Thread andronica
I'm a developer and have server receipt validation implemented for In app 
purchases in our app. It means, after getting a successful purchase 
response from google play client (from app), sending it over to our 
servers, where it does the receipt verification with google servers. It was 
working with no issues until March 12th, 2012. Around that time, Google 
Play was rolled out. Now, the receipt verification fails without any error 
or helpful message. Do you have any idea whats going on?

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

[android-developers] sapserver web service

2012-07-11 Thread MERT TUNÇBİLEK
Hi,
 how can i cosume a web service WSDL file that generated by sapserver ? In
android.

Thanks.

M.T.

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

[android-developers] In App Billing Limits

2012-07-11 Thread sam
I would like to know what the maximum number of items that can be
placed in In App billing for both Android. I seem to remember reading
around 3000 but I cannot find the reference.

Also if 3000 is the maximum what are the legitimate way to get around
this. My app will sell content and I thought a possible way around the
problem would be to have a central app that shows the content, then a
number of different libraries where you can purchase the content.
Would that be a viable work around?

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


[android-developers] Google Cloud Messaging client not receiving responses from server

2012-07-11 Thread Valdomero
Hi everyone,

Using the GCM demo project I managed to registrer a few devices (in the web 
site, running in a Tomcat server, I can see them listed) but when I click 
on the Send Message button nothing happens on the client side, no message 
is received.

The Tomcat log shows this:

0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET / HTTP/1.1" 200 11444
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.css HTTP/1.1" 
200 5926
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.png HTTP/1.1" 
200 5103
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-upper.png 
HTTP/1.1" 200 3103
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-nav.png HTTP/1.1" 
200 1401
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /asf-logo.png 
HTTP/1.1" 200 17811
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-middle.png 
HTTP/1.1" 200 1918
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-button.png 
HTTP/1.1" 200 713
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /favicon.ico 
HTTP/1.1" 200 21630
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:06 +0200] "GET /gcm HTTP/1.1" 404 974
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo HTTP/1.1" 
302 -
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo/ HTTP/1.1" 
200 134
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo/favicon.png 
HTTP/1.1" 200 949
172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 -
172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 -
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:43 +0200] "GET /gcm-demo/ HTTP/1.1" 
200 235
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:52 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:09 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:33 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:41 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:35 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:56 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319
172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 -
172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 -
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:28:51 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:29:02 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:56:09 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403
0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:12:21 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403
0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:37:13 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403

Any clue?

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] CTS - Failure testes

2012-07-11 Thread John Lewis
Hi all,
I'm running CTS tests on a android 3.2 tablet. It takes about 4/5 hours to 
complete.

Is there any way to run again only failure/timeout tests and update the 
results file?

Ex.
I run the first test.

start --plan CTS

When it finish, I get the .xml file with the report. 
15 tests failure and 3 had timeout.
How can I run again only those 18 tests, and update the report?
I didn't want to run all the tests again, neither have 2 diferent reports. 
I wanted to run only those failure test and the the updated result in the 
same report.

Thanks for your support.

Have a nice day.

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

2012-07-11 Thread li shengmei
welcome

On Wed, Jul 11, 2012 at 10:00 AM, 伟刘  wrote:

>  I am a fresher here and say hello to all of 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

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

[android-developers] Beginner Q. Learning Part 1

2012-07-11 Thread Rene.M
Hey guys, 
im new to this Forum as i started to dive into android programming, I 
stumbled across some problems.
Well im pretty much at the beginning of the "Get Startet" -tour. Im trying 
to understand the things that the tutorial explains but
even if im copy and pasting the code, it still shows me errors on certain 
parts.
At the Step "Building your first app" . I tried all night to find the 
mistake before posting (and searching) on the forum.. but no use.

My first Programming expirience where in C++. Which I learned at home and 
gave me a good start for college.
I live in germany and im 21 Years young. I wanted to start programming with 
android because i wanted my own personal apps.
that are perfectly suited for me and my social contacts. If i have a good 
idea someday i might even put some apps in the Market . who knows. but i 
know this will only work with the help of some 
expirienced Programmers. 
So 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] First App Not Appearing

2012-07-11 Thread fmarquin87
Hello everybody,

I'm learning to build my first app using the training on
http://developer.android.com, I've followed all the step with no
errors, but for some reason the app isn't appearing on the emulator.

According to 
http://developer.android.com/training/basics/firstapp/starting-activity.html
I have my manifest as:

http://schemas.android.com/apk/res/android";
package="myfirstapp.app"
android:versionCode="1"
android:versionName="1.0" >









Can anybody please help me solve this?  I'd like to start learning
more.

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


[android-developers] Resusable "rate me" dialog, as a DialogFragment

2012-07-11 Thread Luong Bui
Hope it helps!

http://malubu.wordpress.com/2012/07/10/take-a-rate-take-a-dialog/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sending file using Android built-in OPP Bluetooth transfer

2012-07-11 Thread Tobias Moe Thorstensen
Hi Diego!

First of all, thanks for a nice example. Iam able to send files from my 
android device no a non-android device. But thats not  exactly what I am 
looking for. 

I have a device which supports the OBEX OPP, this has an send function for 
sending files to other bluetooth enabled devices. I want this device to 
send a file to my android phone. Do you know how I can do so? I've tried 
the Android Bluetooth chat example, but when I try to open a 
BluetoothServerSocket to this device, I only got a IOException. Could you 
help me? I've been trying this for weeks now, with no luck. 

I'd appreciate very much! 

Thanks in advance

kl. 19:40:03 UTC+2 tirsdag 16. august 2011 skrev Diego følgende:
>
> Hello,
>
> I'm trying to send files using Bluetooth on Android without any user 
> interaction (except for the mandatory ones for the first setup).
>
> I know that:
> - the reccomended method is using the ACTION_SEND Intent, but that 
> requires 
> user interaction;
> - there is no API to do so;
> - there are APIs for direct Input/OutputStream communication (Serial Port 
> Profile);
> - the system application (packages/apps/bluetooth) implements OPP profile 
> with 
> OBEX;
> - there are applications that implement file tranfer over current APIs 
> (Androbex, Bluetooth File Transfer);
> - there seems to be a way to send files exploiting the bluetooth system 
> service 
> (packages/apps/bluetooth):
>
> http://stackoverflow.com/questions/5577481/sending-a-file-using-bluetooth-obex-
> object-push-profile-opp
>
> Has anybody been able to make the suggestion in the previous link to work? 
> I've attached the code of an example application that should do the same 
> thing 
> as the description, but nothing happens.
>
> If you want you can try the code (just remember to change the device name 
> to 
> one known by your smartphone).
>
> This approach seems to exploit how the system application internally works:
> http://tinyurl.com/3h2jfmv
> but doesn't seem to work (at least not in all the cases).
>
> I've tried also removing all the dependecies off the system bluetooth 
> application, but it's not really easy, even if I think it's possible.
>
> Thank you for any help!
>
> Regards,
> Diego
>
>

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

[android-developers] Programatically setting Linear Layout parameters i.e. Wrap_content and match parent

2012-07-11 Thread marcpolo
Hi,

I'd like to have two views within a horizontal linear layout and 
programatically align them as follows.

View A should be of fixed width on the left hand side and View B should 
fill the remainder of the space. I tried setting the following layout 
parameters

ViewA.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 
LayoutParams.MATCH_PARENT, 0));
ViewB.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, 
LayoutParams.MATCH_PARENT, 1));

Whenever I set the weight of ViewA to 0, only ViewA is displayed. I 
expected a value of 0 to mean that ViewA doesn't get stretched.

When I set ViewA::Weight = 4, and ViewB::Weight = 1, ViewA is a quarter of 
the size of ViewB. I expected the reverse.

WRAP_CONTENT  seems to have no effect.

This seems straightforward when using the manifest file, however I am 
modifying existing code that requires me to set these values 
programatically. Could someone help me.

Thanks in advance.

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

[android-developers] Android 4.1, HLS streaming and HTML5

2012-07-11 Thread Ben
I am looking for a way to deliver live streaming through the android
browser for 4.1. I currently use flash however as I understand flash
will not be supported in 4.1 and above.

I have tried using the html5 video tag and a HLS stream however I have
only been successful with getting the sound and no video.

I was wondering if anyone has had any luck?

I am testing this on the android emulator

Ben

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


[android-developers] cant create VM using AVD in windows 7 x64

2012-07-11 Thread Zaher Ghaibeh
I have installed the Android SDK tools 20, it used to work when I was using 
18

but now when I try to create a VM I got this error http://d.pr/i/lXup 
which is related to the sdcard ..

I tried to create a card manually and attach it to the device ..
but the device stuck on the android logo and thats it ..

am using titanium so here is the log

[INFO] logfile = C:\Users\c\My Documents\Titanium Studio 
Workspace\cc APP\build.log
[INFO] Launching Android emulator...one moment
[INFO] Creating 64M SD card for use in Android emulator
[INFO] Creating new Android Virtual Device (13 WXGA800)
[ERROR] Invalid argument size '64M'
[ERROR] 
[ERROR] mksdcard: create a blank FAT32 image to be used with the 
Android emulator
[ERROR] usage: mksdcard [-l label]  
[ERROR] 
[ERROR]   if  is a simple integer, it specifies a size in bytes
[ERROR]   if  is an integer followed by 'K', it specifies a size 
in KiB
[ERROR]   if  is an integer followed by 'M', it specifies a size 
in MiB
[ERROR]   if  is an integer followed by 'G', it specifies a size 
in GiB
[ERROR] 
[ERROR] Minimum size is 9M. The Android emulator cannot use smaller 
images.
[ERROR] Maximum size is 1099511627264 bytes, 1073741823K, 1048575M or 
1023G
Error: 'C:\Users\c\.titanium\titanium_13_WXGA800.sdcard' is not 
recognized as a valid sdcard value.
Value should be:
1. path to an sdcard.
2. size of the sdcard to create: [K|M]
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File 
"C:\Users\\AppData\Roaming\Titanium\mobilesdk\win32\2.1.0.GA\android\builder.py",
 
line 2199, in 
[ERROR] s.run_emulator(avd_id, avd_skin, avd_name, avd_abi, 
add_args)
[ERROR]   File 
"C:\Users\\AppData\Roaming\Titanium\mobilesdk\win32\2.1.0.GA\android\builder.py",
 
line 476, in run_emulator
[ERROR] avd_name = self.create_avd(avd_id, avd_skin, avd_abi)
[ERROR]   File 
"C:\Users\\AppData\Roaming\Titanium\mobilesdk\win32\2.1.0.GA\android\builder.py",
 
line 438, in create_avd
[ERROR] inifilec = open(inifile,'r').read()
[ERROR] IOError: [Errno 2] No such file or directory: 
'C:\\Users\\\\.android\\avd\\titanium_13_WXGA800.avd\\config.ini'

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

[android-developers] Issue with Google Cloud Messaging

2012-07-11 Thread Valdomero


Using the GCM demo project I managed to registrer a few devices (in the web 
site, running in a Tomcat server I can see them listed) but when I click on 
the Send Message button nothing happens on the client side, no message is 
received.

The Tomcat log shows this:

0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET / HTTP/1.1" 200 11444 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.css HTTP/1.1" 
200 5926 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /tomcat.png 
HTTP/1.1" 200 5103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET 
/bg-upper.png HTTP/1.1" 200 3103 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 
+0200] "GET /bg-nav.png HTTP/1.1" 200 1401 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:10:57 +0200] "GET /asf-logo.png HTTP/1.1" 200 17811 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET /bg-middle.png 
HTTP/1.1" 200 1918 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 +0200] "GET 
/bg-button.png HTTP/1.1" 200 713 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:10:57 
+0200] "GET /favicon.ico HTTP/1.1" 200 21630 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:11:06 +0200] "GET /gcm HTTP/1.1" 404 974 0:0:0:0:0:0:0:1 - 
- [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo HTTP/1.1" 302 - 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET /gcm-demo/ HTTP/1.1" 
200 134 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:11:30 +0200] "GET 
/gcm-demo/favicon.png HTTP/1.1" 200 949 172.20.5.53 - - 
[11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register HTTP/1.1" 200 - 
172.20.5.53 - - [11/Jul/2012:11:14:27 +0200] "POST /gcm-demo/register 
HTTP/1.1" 200 - 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:43 +0200] "GET 
/gcm-demo/ HTTP/1.1" 200 235 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:14:52 
+0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:15:09 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:33 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:15:41 +0200] "POST 
/gcm-demo/sendAll HTTP/1.1" 200 319 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:23:35 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 319 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:23:56 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 319 172.20.5.53 - - [11/Jul/2012:11:28:21 +0200] "POST 
/gcm-demo/register HTTP/1.1" 200 - 172.20.5.53 - - [11/Jul/2012:11:28:21 
+0200] "POST /gcm-demo/register HTTP/1.1" 200 - 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:11:28:51 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 403 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:29:02 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403 0:0:0:0:0:0:0:1 - - [11/Jul/2012:11:56:09 +0200] "POST 
/gcm-demo/sendAll HTTP/1.1" 200 403 0:0:0:0:0:0:0:1 - - 
[11/Jul/2012:12:12:21 +0200] "POST /gcm-demo/sendAll HTTP/1.1" 200 403 
0:0:0:0:0:0:0:1 - - [11/Jul/2012:12:37:13 +0200] "POST /gcm-demo/sendAll 
HTTP/1.1" 200 403

Any clue?

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: ADT plugin disappeared from Eclipse after update

2012-07-11 Thread Stephen Wright
>From the command line you should be able to execute the program "android " 
which will bring up the Android SDK Manager. 
Here I found that the *Android SDK Platform-tools* for the rev 20 were not 
installed.
Install whatever is missing and then the ADT should work fine again.

An alternative to update all platforms and walk away for a while is to 
execute:   
android-sdk-linux/tools/android update sdk --no-ui

Regards,

Steve

--

On Sunday, 1 July 2012 09:25:59 UTC+1, Arul Govindaraj wrote:
>
> The ADT Eclipse just disappeared after the latest update, I guess "Rev. 
> 20". Its not there in the new project wizard, perspectives, preference, 
> etc. It was just fine till yesterday. Could someone help me resolve.
>
> My OS: Ubuntu 12.04
> With Eclipse Version: 3.7.2
>
> When I try to install again it says, its already installed. Error details 
> below:
> Cannot complete the request.  See the error log for details.
> "Android Development Tools" will be ignored because it is already 
> installed.
>
> Thanks
>

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

[android-developers] how to mount sd card android phone and pc simultaneously

2012-07-11 Thread MR MANISH
how to mount sd card android phone and pc simultaneously

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

[android-developers] Listview with data from webservice

2012-07-11 Thread Jorge Padilla
Hi, I'm a new android developer. How I can create a listview that will be 
loaded with data from a webservice as I scroll through the list?

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

2012-07-11 Thread Abdul Qadir


Dear All,
can anyone tell me how to set loader on starting new activity in android on 
onCreate event.


Regards,

Abdul QadirSr. Software Developer & System AnalystPak Limousine Services (PVT) 
Ltd.Contact: +92-322-2547505Email: qadironl...@gmail.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: ADT plugin disappeared from Eclipse after update

2012-07-11 Thread Stephen Wright
I've just upgraded today (11-July-2012) and the same has happened. 
ADT Plugin - http://dl-ssl.google.com/android/eclipse was used as the 
available software location for the Eclipse plugin but, although the ADT 
appears to be installed, it is not available from the Eclipse Platform.

I'm also using Ubuntu 12.04 (64-bit) with Eclipse 3.7.2

Has anyone found a way to reactivate the ADT with this release?

Regards,

Steve

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

[android-developers] newbie question

2012-07-11 Thread ideaman
Hi,
I have installed Eclipse Juno 4.2
the Android SDK
the Eclipse plugin
and have Java 7 update 3 and Java 6 update 30
Everything seems ok, besides one small problem, it doesn't work.
I create a new Android project and then I have the following errors:
on the Android Manifest.xml I have 2 of these errors: 
com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Parser 
exception for C:\Users\Daniel\workspace\Talk1\AndroidManifest.xml: The 
markup in the document following the root element must be well-formed.
on the mainActivity .java I have the following error: in this line => 
setContentView(R.layout.activity_main); I see on the side "R cannot be 
resolved into a variable". 
This happens immediately after the wizard finishes, I didn't have the 
chance to make any changes or write a line of code and I already have 
errors that I don't know how to solve.
Please HELP!!

Daniel


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

Re: [android-developers] repo: command not found

2012-07-11 Thread biscuit
For those who may have problems for getting the repo, I added this post.
Without login to the registered Google 
account, 
error msg will come out like: 

Traceback (most recent call last):
  File "/Users/lhong23/.repo/repo/main.py", line 385, in 
_Main(sys.argv[1:])
  File "/Users/lhong23/.repo/repo/main.py", line 365, in _Main
result = repo._Run(argv) or 0
  File "/Users/lhong23/.repo/repo/main.py", line 137, in _Run
result = cmd.Execute(copts, cargs)
  File "/Users/lhong23/.repo/repo/subcmds/init.py", line 319, in Execute
self._SyncManifest(opt)
  File "/Users/lhong23/.repo/repo/subcmds/init.py", line 141, in 
_SyncManifest
m.PreSync()
  File "/Users/lhong23/.repo/repo/project.py", line 2166, in PreSync
cb = self.CurrentBranch
  File "/Users/lhong23/.repo/repo/project.py", line 565, in CurrentBranch
b = self.work_git.GetHead()
  File "/Users/lhong23/.repo/repo/project.py", line 1935, in GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: 
'/Users/lhong23/.repo/manifests/.git/HEAD'

So, you need to login to the registered Google 
account and 
then be able to download the repo.
$ repo init -u https://android.googlesource.com/platform/manifest -b 
android-4.0.1_r1

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

[android-developers] AbsListAdapter.setAdapter() api 11 but why does it exists on api 8?

2012-07-11 Thread Allan Gregor Guevarra
I am using api 8 for my current development.

currently, I am trying to develop a custom view based on AbsListView.

problem occurs at setAdapter because it is said to be on api 11.

the big question that comes up in my head now is... why on earth is this 
code legal and running on api 8?

AbsListView absListView = (AbsListView)findViewById(R.id.listView);
absListView.setAdapter(existingAdapter);


R.id.listView is a ListView.

so.. yeah.. the heck is happening?!

thanks

- allan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Lat/long coord to pixel screen XY coord without showing MapView

2012-07-11 Thread Abdul Wahab
Hi Machete, would you share the idea, I just read your post, need similar 
technique of have a image screen shot of lat/long,,,
thanks in advance

On Wednesday, January 26, 2011 6:50:26 PM UTC+5, Machete wrote:
>
> Hi Hari and Treking, thanks for the msgs, I get the idea, I will try 
> to do it and post here the code. 
>
>
> thanks 
>
>
> On Jan 14, 8:03 pm, TreKing  wrote: 
> > On Fri, Jan 14, 2011 at 1:51 PM, Hari Edo  wrote: 
> > >  (1) there's no way to know the X Y on the screen from the 
> > >   latitude and longitude, 
> > 
> > Sure there is - it's whatever you want it to be. 
> > 
> > If you have an aerial view picture that's some given size (SX by SY) 
> then 
> > the Lat / long of the top lef correspond to [0, 0] and the Lat / long of 
> the 
> > bottom right corresponds to [SX, SY]. From there simple math will let 
> your 
> > correlate a given lat / long pair to a relative x/y screen location 
> given 
> > your min and max lat and long bounds defined by your image. 
> > 
> > This of course assumes you're not zooming in and out. 
> > 
> > 
> --- 
> -- 
> > TreKing  - Chicago 
> > transit tracking app for Android-powered devices

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

[android-developers] how to mount sd card android phone and pc simultaneously

2012-07-11 Thread MR MANISH


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

2012-07-11 Thread shubh
Hello , in my case in my screen say have three button to play three 
different video, when i choose any second video, then during time of buffer 
want to repaint with initial state.
in my case it showing previous video screen .

any help over this?



On Sunday, March 7, 2010 6:48:21 PM UTC+5:30, Alvaro Villoria Saez wrote:
>
> Hi all!
>
> We are developing a graphic adventure engine for Android , and we are
> not being able to draw and play video on the same Activity .
>
> We are currently using a SurfaceView to draw the games , and it would
> be great to play videos on that surfaceView ..
>
>  * We tried changing SurfaceHolders surfaceType  dinamically
> (  SURFACE_TPYE_NORMAL <-> SURFACE_TYPE_PUSH_BUFFERS )
>  * We also tried to use two SurfaceViews , one for drawing the game
> and one for rendering videos .. but using  two surfaceViews seems to
> be not supported ...
>
> Any ideas to deal with this would be very helpful!
>
> Thanks in advance ;D!
>
> Alvaro
>
>

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

[android-developers] Hi / Stories From America

2012-07-11 Thread Margaret C. Laureys
Hello there,

How’re you doing?



Oh! I’ve just begun writing blogs you know, and it seems really interesting
to reach out to the world audience at large and gather opinion.



You could call me a beginner but do let me know your inputs / feedback /
comments on my pages… please.



~~~***~~~



Pin me on Pinterest @ http://pinterest.com/margaretlaureys/



Pin my Blog - Of Church and State and Crips and Bloods on pinterest @
http://pinterest.com/margaretlaureys/of-church-and-state-and-crips-and-bloods/



Pin my Blog - Snitching-by-Margaret-Laureys  on pinterest @
http://pinterest.com/margaretlaureys/snitching-by-margaret-laureys/



Pin my Blog - F.I.S.H by Margaret Laureys  on pinterest @
http://pinterest.com/margaretlaureys/f-i-s-h-by-margaret-laureys



I’m on Blogster too @ http://www.blogster.com/margaret-c-laureys



Follow My Blog on Snitching by Margaret Laureys on Blogster @
http://www.blogster.com/margaret-c-laureys/snitching-by-margaret-laureys



Follow My Blog on Crips and Bloods By Margaret C. Laureys @
http://www.blogster.com/margaret-c-laureys/of-church-and-state-and-crips-and-bloods-by-margaret-c-laureys



Follow My Blog on F.I.S.H by Margaret Laureys @
http://www.blogster.com/margaret-c-laureys/fish-by-margaret-laureys



Add me on Plaxo @ http://margaret-c-laureys.myplaxo.com/



Follow My Blog on eduBlogs @ http://margaretclaureys.edublogs.org



Follow My Blog on F.I.S.H by Margaret Laureys @
http://margaretclaureys.edublogs.org/2012/06/26/f-i-s-h-by-margaret-laureys/



Follow My Blog on Crips and Bloods By Margaret C. Laureys @
http://margaretclaureys.edublogs.org/2012/06/26/of-church-and-state-and-crips-and-bloods-by-margaret-c-

laureys/



Follow My Blog on Snitching by Margaret Laureys on Blogster @
http://margaretclaureys.edublogs.org/2012/06/26/snitching-by-margaret-laureys/



Blog me on Movabletype @
http://www.movabletype.org/cgi-bin/mt/mt-cp.cgi?__mode=view&blog_id=2&id=543738



Follow my Experiences @ classroom20  @
http://www.classroom20.com/profile/MargaretCLaureys



My Blog on crips-and-bloods @
http://www.classroom20.com/profiles/blogs/of-church-and-state-and-crips-and-bloods-by-margaret-c-laureys



My Blog on F.I.S.H @
http://www.classroom20.com/profiles/blogs/f-i-s-h-by-margaret-laureys



My Blog on snitching @
http://www.classroom20.com/profiles/blogs/snitching-by-margaret-laureys



Find my Profile at Kidblog @
http://kidblog.org/MargaretLaureys/author/MargaretCLaureys/



Follow my Blog on snitching @
http://kidblog.org/MargaretLaureys/margaretclaureys/snitching-by-margaret-laureys/



Follow my Blog on crips-and-bloods @
http://kidblog.org/MargaretLaureys/margaretclaureys/of-church-and-state-and-crips-and-bloods-by-margaret-c-laureys/



Follow my Blog on F.I.S.H @
http://kidblog.org/MargaretLaureys/margaretclaureys/f-i-s-h-by-margaret-laureys/



My Wikispaces Profile @ https://margaret-c-laureys.wikispaces.com/



Read my blog post F.I.S.H @
https://margaret-c-laureys.wikispaces.com/F.I.S.H+by+Margaret+Laureys



Read my blog post on crips-and-bloods @
https://margaret-c-laureys.wikispaces.com/Of+Church+and+State+and+Crips+and+Bloods+By+Margaret+C.+Laureys



Read my blog post on snitching @
http://margaret-c-laureys.wikispaces.com/Snitching+by+Margaret+Laureys



JOIN My profile on posterous @ http://margaret-c-laureys.posterous.com/



Checkout My Blog on snitching @
http://margaret-c-laureys.posterous.com/snitching-by-margaret-laureys



Checkout My Blog on crips-and-bloods @
http://margaret-c-laureys.posterous.com/of-church-and-state-and-crips-and-bloods-by-m



Checkout My Blog on F.I.S.H @
http://margaret-c-laureys.posterous.com/fish-by-margaret-laureys



Find my Profile at rollr @ http://margaretlaureys.rollr.com/



Follow my Blog on crips-and-bloods @
http://margaretlaureys.rollr.com/posts/of-church-and-state-and-crips-and-bloods-by-margaret-c-laureys



Follow my Blog on snitching @
http://margaretlaureys.rollr.com/posts/snitching-by-margaret-laureys



Follow my Blog on F.I.S.H @
http://margaretlaureys.rollr.com/posts/fish-by-margaret-laureys

~~~***~~~





Many Thanks,

Margaret Carroll Laureys

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Is it possible to open an Audio Recorder by more than one app using OpenSL?

2012-07-11 Thread Nathan Waters
Did you end up finding an answer to this?

If AudioRecord can only be accessed by one app at a time, is there a way to 
simply hand-over the resource when it's requested and then reinitialize 
afterwards?


On Monday, 19 March 2012 04:14:05 UTC+11, smichak wrote:
>
> Hi, 
>
> I am writing an application that runs as a background service 
> recording and analyzing audio samples. I have noticed that it is 
> impossible to use the SDK's AudioRecord class for accessing the 
> microphone simultaneously by more than one application. I was 
> wondering whether it would be possible to do that using the Native 
> Audio API, i.e. OpenSL ES. Can anyone provide insight on why this may 
> or may not work? 
>
>
>
> Micha

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

2012-07-11 Thread MR MANISH
how to mount sd card android phone and pc simultaneously

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

2012-07-11 Thread Trevor Johns
On Jul 11, 1:55 pm, bob  wrote:
> Is there any way for an app to reboot an Android Ice Cream sandwich phone?

Not on user builds, no.

-- Trevor

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

2012-07-11 Thread Francisco M. Marzoa Alonso
I agree with Kaiser. Better to store those files outside, in the SDCard for
example, and save only file path and metadata in the DB.

I have done things like that on them past with PostgreSQL and MySQL and I
do not found a real advantage and several complications. You can use binary
columns (BLOB) to store files there. I do not know if SQLite supports
something similar, but you can always encode binary data in Base64 or so...
Anyeay, I would not do it If I were you.

Also bear in mind that SQLite stores a whole database in a single file, so
I am pretty sure that you will have real problems with that approach using
big media files sooner than later.
El 11/07/2012 12:25, "Anton Kaiser"  escribió:

> Don't do that. There is really no need to bloat databases with files. Save
> the file on the file system and create an entry for it with the needed meta
> data and the file path.
> I know that is not what you wanted to hear, but I'm sure you can't give me
> a good reason to do it your way ;)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Localization support of messages coming from server

2012-07-11 Thread Francisco M. Marzoa Alonso
Probably the best way is to do l10n in the server side also as Justin
suggest. But if you can't, you may try another approach if messages from
server are limited and has no variable parameters, using a HashMap so each server string message is mapped to a resource id.

But note this solution is not valid if the server sends strings with
variable parameters such as "you have run 11 miles" where them number of
miles may vary.

You can still handle these cases using regular expresions but it gets more
complicated, so if you have control over the server the real solution is,
as told, implement l10n also on it.
El 11/07/2012 12:45, "Reddy"  escribió:

> Hi All,
>
> I am creating an application which supports multiple languages. Everything
> is fine for static string data. But how can i handle the messages coming
> from server to display in corresponding language.
>
> Regards,
> Murali
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: OpenMAXAL state after HW decoder error

2012-07-11 Thread MR
Let me explain a little bit more the sequence in case somebody has an idea 
of what could be done in this case.

1.- Realize and create the engine, output mux and media player
2.- start pushing date through the buffer queue interface and change the 
state of the media player using the Playback interface to 
XA_PLAYSTATE_PLAYING
3.- I get an error notification through a callback registered through the 
prefetch status interface
4.- I call clear on the buffer queue interface, I change the state of the 
media player to XA_PLAYSTATE_STOPPED
5.- I call Destroy to the media player XAObjectItf, since this is a 
synchronous call we hang in there and the API never returns

I noticed that if I comment out the Destroy call on the MediaPlayer object 
I can pass that point and call destroy on the OutputMix object and the 
Engine but it seems that none of those calls actually happens because 
they're still being referenced by the media player. These logs are printed 
out:

07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) for 
OutputMix ignored; 1 players attached 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) not 
allowed 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; 2 total active objects 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; active object ID 2 at 0x2c1078 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; active object ID 3 at 0x2c1f20

I think this will probably could leave a leak but at least I still have 
control over the app.
Let me know if there is another way to bypass this error
thx
Memo

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

2012-07-11 Thread MR
Let me explain a little bit more the sequence in case somebody has an idea 
of what could be done in this case.

1.- Realize and create the engine, output mux and media player
2.- start pushing date through the buffer queue interface and change the 
state of the media player using the Playback interface to 
XA_PLAYSTATE_PLAYING
3.- I get an error notification through a callback registered through the 
prefetch status interface
4.- I call clear on the buffer queue interface, I change the state of the 
media player to XA_PLAYSTATE_STOPPED
5.- I call Destroy to the media player XAObjectItf, since this is a 
synchronous call we hang in there and the API never returns

I noticed that if I comment out the Destroy call on the MediaPlayer object 
I can pass that point and call destroy on the OutputMix object and the 
Engine but it seems that none of those calls actually happens because 
they're still being referenced by the media player. These logs are printed 
out:

07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) for 
OutputMix ignored; 1 players attached 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) not 
allowed 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; 2 total active objects 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; active object ID 2 at 0x2c1078 
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for 
engine ignored; active object ID 3 at 0x2c1f20

I think this will probably could leave a leak but at least I still have 
control over the app.
Let me know if there is another way to bypass this error
thx
Memo

On Tuesday, July 10, 2012 6:11:08 PM UTC-7, MR wrote:
>
> Hi
> I'm currently using the OpenMaxAL interface provided in Android 4.0.x to 
> render a h264/AAC mpeg2-ts stream. There is one particular file that 
> triggers an error inside the decoder of my Galaxy Nexus. The error looks 
> like this:
>
> 07-10 16:47:51.031   116   116 E IMGSRV  : :0: gralloc_device_alloc: 
> Invalid color format (2130706433)
> 07-10 16:47:51.031   116   116 W GraphicBufferAllocator: alloc(1536, 1184, 
> 2130706433, 2b00, ...) failed -22 (Invalid argument)
> 07-10 16:47:51.031   116   116 E SurfaceFlinger: 
> GraphicBufferAlloc::createGraphicBuffer(w=1536, h=1184) failed (Invalid 
> argument), handle=0x0
> 07-10 16:47:51.031   116   116 E SurfaceTexture: [SurfaceView] 
> dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
> 07-10 16:47:51.031   119  2869 E ACodec  : dequeueBuffer failed: Invalid 
> argument (22)
> 07-10 16:47:51.031   119  2869 E ACodec  : Failed to allocate output port 
> buffers after port reconfiguration (error 0xffea)
> 07-10 16:47:51.031   119  2865 E NuPlayer: Received error from video 
> decoder, aborting playback.
> 07-10 16:47:51.031   119  2865 E NuPlayer: video track encountered an 
> error (-2147483648)
> 07-10 16:47:51.031  2825  2864 E libOpenSLES: Error after prepare: 1
>
> After I catch the error using the prefetch status interface I try to stop 
> all my rendering activities and start tearing down everything, but the app 
> seems to become unresponsive once I call Destroy to the XAObjectItf 
> interface of the media player object. Is this a known issue?
> thx
> Memo
>

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

2012-07-11 Thread Memo Rodriguez
Let me explain a little bit more the sequence in case somebody has an idea
of what could be done in this case.

1.- Realize and create the engine, output mux and media player
2.- start pushing date through the buffer queue interface and change the
state of the media player using the Playback interface to
XA_PLAYSTATE_PLAYING
3.- I get an error notification through a callback registered through the
prefetch status interface
4.- I call clear on the buffer queue interface, I change the state of the
media player to XA_PLAYSTATE_STOPPED
5.- I call Destroy to the media player XAObjectItf, since this is a
synchronous call we hang in there and the API never returns

I noticed that if I comment out the Destroy call on the MediaPlayer object
I can pass that point and call destroy on the OutputMix object and the
Engine but it seems that none of those calls actually happens because
they're still being referenced by the media player. These logs are printed
out:

07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) for
OutputMix ignored; 1 players attached
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x2c1078) not
allowed
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for
engine ignored; 2 total active objects
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for
engine ignored; active object ID 2 at 0x2c1078
07-11 11:28:31.687  1960  2012 E libOpenSLES: Object::Destroy(0x26b2f0) for
engine ignored; active object ID 3 at 0x2c1f20

I think this will probably could leave a leak but at least I still have
control over the app.
Let me know if there is another way to bypass this error
thx
Memo

On Tue, Jul 10, 2012 at 6:11 PM, MR  wrote:

> Hi
> I'm currently using the OpenMaxAL interface provided in Android 4.0.x to
> render a h264/AAC mpeg2-ts stream. There is one particular file that
> triggers an error inside the decoder of my Galaxy Nexus. The error looks
> like this:
>
> 07-10 16:47:51.031   116   116 E IMGSRV  : :0: gralloc_device_alloc:
> Invalid color format (2130706433)
> 07-10 16:47:51.031   116   116 W GraphicBufferAllocator: alloc(1536, 1184,
> 2130706433, 2b00, ...) failed -22 (Invalid argument)
> 07-10 16:47:51.031   116   116 E SurfaceFlinger:
> GraphicBufferAlloc::createGraphicBuffer(w=1536, h=1184) failed (Invalid
> argument), handle=0x0
> 07-10 16:47:51.031   116   116 E SurfaceTexture: [SurfaceView]
> dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
> 07-10 16:47:51.031   119  2869 E ACodec  : dequeueBuffer failed: Invalid
> argument (22)
> 07-10 16:47:51.031   119  2869 E ACodec  : Failed to allocate output port
> buffers after port reconfiguration (error 0xffea)
> 07-10 16:47:51.031   119  2865 E NuPlayer: Received error from video
> decoder, aborting playback.
> 07-10 16:47:51.031   119  2865 E NuPlayer: video track encountered an
> error (-2147483648)
> 07-10 16:47:51.031  2825  2864 E libOpenSLES: Error after prepare: 1
>
> After I catch the error using the prefetch status interface I try to stop
> all my rendering activities and start tearing down everything, but the app
> seems to become unresponsive once I call Destroy to the XAObjectItf
> interface of the media player object. Is this a known issue?
> thx
> Memo
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Get Passwords from Webview

2012-07-11 Thread Kristopher Micinski
Presumably the use case for this will be something like storing
passwords, etc.., in a "password vault."  If this is the case you
cannot do so, without writing your own browser, you shouldn't be
snooping around with the user's information anyway, and the second
they click a link to navigate to another page, control will go away
from your app anyway,

kris

On Wed, Jul 11, 2012 at 5:06 PM, Ali Chousein  wrote:
> If you do that nobody will be using your app.
>
> -
> Ali Chousein
> https://play.google.com/store/apps/details?id=com.apps.social_nav
> https://play.google.com/store/apps/details?id=com.apps.weather_buddy
> http://www.paygol.com/android/implementation
>
>
> On Wednesday, July 11, 2012 5:54:12 AM UTC+2, Mani wrote:
>>
>> I want to save a copy of all usernames/passwords and website URLs that
>> user enters on my webview.
>> I want to know how this can be implemented in my application.
>> Any direction will be helpful...
>>
>>
>> Thanks
>> Mani
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Building location aware app

2012-07-11 Thread TreKing
On Wed, Jul 4, 2012 at 4:58 PM, Ibukun Adeniyi wrote:

> how can i store locations on the google maps api.


You can't "store locations on the google maps api". Please clarify your
question.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Do services run in the background?

2012-07-11 Thread TreKing
On Wed, Jul 11, 2012 at 3:52 PM, Cythes  wrote:

> What I mean by this is that I have an app that I want to to kill the GUI
> on or have it run in the background. What is the best way to go about doing
> this?
>

Yes, a Service.


> How do I make my app run constantly?
>

You don't. Android will kill your app if needed. Why do you want to run
"constantly"?


> But not apparent to the users?
>

The user can see which apps are running by checking the system stats. You
can't hide from this. Why would you need to, unless you're developing
spyware or something?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Do services run in the background?

2012-07-11 Thread Lew
Cythes wrote:
>
> What I mean by this is that I have an app that I want to to kill the GUI 
> on or have it run in the background. What is the best way to go about doing 
> this?
>
> "This"?

What you mean by what, exactly?

One way is

 
Explore the API for more.

How do I make my app run constantly?
>

Background tasks will run apparently constantly, at least.
 
> But not apparent to the users?

But that might yet be apparent to the users.

-- 
Lew

 

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

[android-developers] Re: Get Passwords from Webview

2012-07-11 Thread Ali Chousein
If you do that nobody will be using your app. 

- 
Ali Chousein 
https://play.google.com/store/apps/details?id=com.apps.social_nav 
https://play.google.com/store/apps/details?id=com.apps.weather_buddy 
http://www.paygol.com/android/implementation


On Wednesday, July 11, 2012 5:54:12 AM UTC+2, Mani wrote:
>
> I want to save a copy of all usernames/passwords and website URLs that 
> user enters on my webview. 
> I want to know how this can be implemented in my application.
> Any direction will be helpful...
>
>
> Thanks
> Mani
>

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

[android-developers] reboot method?

2012-07-11 Thread bob
 

Is there any way for an app to reboot an Android Ice Cream sandwich phone?


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

[android-developers] Do services run in the background?

2012-07-11 Thread Cythes
What I mean by this is that I have an app that I want to to kill the GUI on 
or have it run in the background. What is the best way to go about doing 
this?

How do I make my app run constantly?
But not apparent to the users?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 replace GLSurfaceView with TextureView in Android Ice Cream Sandwich?

2012-07-11 Thread mor...@gmail.com
Hi Romain,

I am wondering about the Thread.sleep() call in the rendering thread's run 
loop. Is that technically necessary? If so, may I ask why? And if so, then 
how would one implement a high-framerate OpenGL game (for instance) using 
TextureView?

What prompted these questions is that I have run into a few devices where 
this code 'crashes' with (randomly) one of the two following errors. Are 
you able to comment on this?


   1. queueBuffer: slot 2 is current! 
   2. dequeueBuffer: buffer 0 is both FREE and current! 
   


Many thanks,
-Nathan Morse


On Wednesday, November 23, 2011 9:17:28 AM UTC-8, Romain Guy (Google) wrote:
>
> GLSurfaceView handles GL setup for you, which TextureView will not do. A 
> TextureView can be used as the native window when you create an EGL 
> surface. Here is an example (the interesting part is the call 
> to eglCreateWindowSurface()):
>
> @Override
> public void onSurfaceTextureAvailable(SurfaceTexture surface, int 
> width, int height) {
> mRenderThread = new RenderThread(getResources(), surface);
> mRenderThread.start();
> }
>
> private static class RenderThread extends Thread {
> private static final String LOG_TAG = "GLTextureView";
>  
> static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
> static final int EGL_OPENGL_ES2_BIT = 4;
>
> private volatile boolean mFinished;
>
> private final Resources mResources;
> private final SurfaceTexture mSurface;
> 
> private EGL10 mEgl;
> private EGLDisplay mEglDisplay;
> private EGLConfig mEglConfig;
> private EGLContext mEglContext;
> private EGLSurface mEglSurface;
> private GL mGL;
>
> RenderThread(Resources resources, SurfaceTexture surface) {
> mResources = resources;
> mSurface = surface;
> }
>
> private static final String sSimpleVS =
> "attribute vec4 position;\n" +
> "attribute vec2 texCoords;\n" +
> "varying vec2 outTexCoords;\n" +
> "\nvoid main(void) {\n" +
> "outTexCoords = texCoords;\n" +
> "gl_Position = position;\n" +
> "}\n\n";
> private static final String sSimpleFS =
> "precision mediump float;\n\n" +
> "varying vec2 outTexCoords;\n" +
> "uniform sampler2D texture;\n" +
> "\nvoid main(void) {\n" +
> "gl_FragColor = texture2D(texture, outTexCoords);\n" +
> "}\n\n";
>
> private static final int FLOAT_SIZE_BYTES = 4;
> private static final int TRIANGLE_VERTICES_DATA_STRIDE_BYTES = 5 * 
> FLOAT_SIZE_BYTES;
> private static final int TRIANGLE_VERTICES_DATA_POS_OFFSET = 0;
> private static final int TRIANGLE_VERTICES_DATA_UV_OFFSET = 3;
> private final float[] mTriangleVerticesData = {
> // X, Y, Z, U, V
> -1.0f, -1.0f, 0.0f, 0.0f, 0.0f,
>  1.0f, -1.0f, 0.0f, 1.0f, 0.0f,
> -1.0f,  1.0f, 0.0f, 0.0f, 1.0f,
>  1.0f,  1.0f, 0.0f, 1.0f, 1.0f,
> };
>
> @Override
> public void run() {
> initGL();
> 
> FloatBuffer triangleVertices = 
> ByteBuffer.allocateDirect(mTriangleVerticesData.length
> * 
> FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer();
> triangleVertices.put(mTriangleVerticesData).position(0);
>
> int texture = loadTexture(R.drawable.large_photo);
> int program = buildProgram(sSimpleVS, sSimpleFS);
>
> int attribPosition = glGetAttribLocation(program, "position");
> checkGlError();
>  
> int attribTexCoords = glGetAttribLocation(program, 
> "texCoords");
> checkGlError();
>
> int uniformTexture = glGetUniformLocation(program, "texture");
> checkGlError();
>
> glBindTexture(GL_TEXTURE_2D, texture);
> checkGlError();
>
> glUseProgram(program);
> checkGlError();
>
> glEnableVertexAttribArray(attribPosition);
> checkGlError();
>
> glEnableVertexAttribArray(attribTexCoords);
> checkGlError();
>
> glUniform1i(uniformTexture, texture);
> checkGlError();
> 
> while (!mFinished) {
> checkCurrent();
>
> glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
> checkGlError();
>
> glClear(GL_COLOR_BUFFER_BIT);
> checkGlError();
>
> // drawQuad
> 
> triangleVertices.position(TRIANGLE_VERTICES_DATA_POS_OFFSET);
> glVertexAttribPointer(attribPosition, 3, GL_FLOAT, false,
> TRIANGLE_VERTICES_DATA_STRIDE_BYTES, 
> triangleVertic

[android-developers] Re: Some Silly error, tailed with a huge headache.

2012-07-11 Thread Cythes
Nothing changed actually

On Wednesday, July 11, 2012 3:57:25 PM UTC-4, Cythes wrote:
>
> Alright I will give that a shot and get back to you ASAP
>
> On Wednesday, July 11, 2012 3:51:17 PM UTC-4, Nobu Games wrote:
>>
>> Something before or after these two lines must be syntactically incorrect 
>> like a missing opening or closing bracket for example.
>>
>> It is usually next to impossible that Eclipse is wrong about that.
>>
>> However, what I noticed since the latest ADT Rev 20 update is that 
>> Eclipse quite often does not refresh its error markers anymore after 
>> editing / fixing problems. You may want to clean the project and look 
>> whether the syntax error messages are gone then.
>>
>>
>> On Wednesday, July 11, 2012 2:37:58 PM UTC-5, Cythes wrote:
>>>
>>> For some reason eclipse thinks the ()'s are wrong. Here is the code for 
>>> that part...
>>>
>>> notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
>>> intent);   
>>>   mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
>>>
>>> Any idea what can be causing 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] Re: Some Silly error, tailed with a huge headache.

2012-07-11 Thread Cythes
Alright I will give that a shot and get back to you ASAP

On Wednesday, July 11, 2012 3:51:17 PM UTC-4, Nobu Games wrote:
>
> Something before or after these two lines must be syntactically incorrect 
> like a missing opening or closing bracket for example.
>
> It is usually next to impossible that Eclipse is wrong about that.
>
> However, what I noticed since the latest ADT Rev 20 update is that Eclipse 
> quite often does not refresh its error markers anymore after editing / 
> fixing problems. You may want to clean the project and look whether the 
> syntax error messages are gone then.
>
>
> On Wednesday, July 11, 2012 2:37:58 PM UTC-5, Cythes wrote:
>>
>> For some reason eclipse thinks the ()'s are wrong. Here is the code for 
>> that part...
>>
>> notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
>> intent);   
>>   mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
>>
>> Any idea what can be causing this?
>>
>

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

Re: [android-developers] Re: android:windowIsFloating

2012-07-11 Thread Dianne Hackborn
A non-fullscreen window wraps its content.  If your content is allowing
itself to be wrapped at a size smaller than works, you have a problem with
the layout in your window.

On Wed, Jul 11, 2012 at 10:55 AM, Kristoffer wrote:

> Hello.
> its the same if i use that, the window will be the same size as the
> content.
>
> Den onsdagen den 11:e juli 2012 kl. 19:34:24 UTC+2 skrev skink:
>
>>
>>
>> Kristoffer wrote:
>> > Hello.
>> > Iam trying to make a nice looking "popup" window
>> > iam almost there with the help of android:windowIsFloating in my theme
>> but
>> > the thing is that the new window is wraping content to set its size.
>> > What i want is that the new window should almost fill the whole screen,
>> it
>> > should just be little smaller that the background activity just to show
>> > thats its a popup window.
>> >
>> > Yes, sure i could hardcode a size but i want it to look good on any
>> size so
>> > the best would be if i some way could set the size to like 80 % of
>> screen
>> > size?
>> > maybe there is a default android theme that i could use?
>>
>>
>> sure it is:
>>
>> 
>>
>> pskink
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Some Silly error, tailed with a huge headache.

2012-07-11 Thread Nobu Games
Something before or after these two lines must be syntactically incorrect 
like a missing opening or closing bracket for example.

It is usually next to impossible that Eclipse is wrong about that.

However, what I noticed since the latest ADT Rev 20 update is that Eclipse 
quite often does not refresh its error markers anymore after editing / 
fixing problems. You may want to clean the project and look whether the 
syntax error messages are gone then.


On Wednesday, July 11, 2012 2:37:58 PM UTC-5, Cythes wrote:
>
> For some reason eclipse thinks the ()'s are wrong. Here is the code for 
> that part...
>
> notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
> intent);   
>   mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);
>
> Any idea what can be causing 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] TCP socket problem on 4.0.3 GTI9100 (and some other devices of 4.0.3/4.0.4)

2012-07-11 Thread RQ


We have an Android networking application using the Android C NDK. It works 
well (both UDP and TCP) until we tested it on some 4.0.3 and 4.0.4 
devices.  With some 4.0.3/4 devices using TCP, the app sometimes can't 
receive server messages.  UDP continues to work as expected.

The symptom is:
When server has significant traffic to send to my app, the app receives 
(using recv(...)) the messages in bundled manner, i.e. recv() retrieves 
multiple incoming messages (the last one sometimes being incomplete, this 
is fine because my app keeps it and waits for rest of message in future 
recv()). After this bundled recv, sometimes my app no longer receives 
incoming messages, although wireshark shows that send still went through.

Note that:
* It doesn't always fail. However when it fails, the most recently received 
message was a bundled one.
* Bundle size doesn't seem to matter. Sometimes bigger bundle (e.g. 2471 
bytes) might succeed, while a bundle of 1448 may be followed by a stuck 
recv()
* After the bundled recv(), my app does perform new recv, just no data 
returned

Appreciate your help.

Rob

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

[android-developers] Some Silly error, tailed with a huge headache.

2012-07-11 Thread Cythes
For some reason eclipse thinks the ()'s are wrong. Here is the code for 
that part...

notifyDetails.setLatestEvent(Infocontext, contentTitle, contentText, 
intent);   
  mNotificationManager.notify(SIMPLE_NOTFICATION_ID, notifyDetails);

Any idea what can be causing 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] Re: Opinions on using large static arrays

2012-07-11 Thread Hydde
Originally I intended at developing an app for 2.2 and above, but seeing as 
2.3 offers quite an improvement on the database aspect I might as well slap 
on a gingerbread version.

The guide which you linked is what I first thought of doing, but as you 
stated, it seems to have stability issues.  Your suggestion seems to be 
quite straight forward and stable, so I'm going to follow your approach.

Thanks for the advice!

On Tuesday, July 10, 2012 4:46:51 PM UTC+2, Nobu Games wrote:
>
> You can load pre-made SQLite database files without a problem. If you want 
> to use the 
> SQLiteOpenHelperfor
>  that you need to add another meta data table required by it for 
> localization purposes. The approach is described in following blog article: 
> http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
>
> However, quite a few people who used that approach were complaining about 
> exceptions and other problems on the first attempt at opening that pre-made 
> file. Therefore and for other reasons I don't use SQLiteOpenHelper and make 
> instead direct use of 
> SQLiteDatabaseand
>  its openDatabase methods.
>
> The advantage of that is that you can specify any path for your database 
> file as opposed to SQLiteOpenHelper which only allows you to open database 
> files in a specific app directory. On top of that, you also don't need to 
> add any meta data.
>
> I'm currently working on an app with a static database which is a 
> dictionary I created on my PC using SQLite 3. I can load that file without 
> a problem on Android.
>
> I assume you're going to bundle that big database file as an asset with 
> your app. As far as I know file sizes > 1MB can cause problems for Android 
> versions < 2.3. If you want to support pre 2.3 Android devices you'll need 
> to split your database file into several smaller files of about 1MB size. 
> You can use the Linux command line tool split for that:
>
> split --bytes=1m -d /path/to/big/asset /path/to/output/filename-prefix
>>
>>
> In your app you need to read these asset file chunks and join them again 
> into a single file.
>
> As for using an in-memory solution for all your data: I really wouldn't do 
> that, since it sounds like you're dealing with an amount of data that could 
> easily consume most of the available heap space for your app.
>
>
> On Monday, July 9, 2012 3:28:11 PM UTC-5, Hydde wrote:
>>
>> Hi,
>>
>> I'm quite new to Android and Java programming.  I'm currently designing 
>> an app which is supposed to utilize a medium-size database (6-7MB).  This 
>> database is static meaning there won't be any updates/deletes or inserts to 
>> it. It's basically a bulk of data.
>>
>> I've been googling around and don't seem to find a solid way of 
>> integrating a premade DB into an app.  Most guides seem to start from an 
>> empty DB which builds up as the app runs.  I've only found a single solid 
>> guide on how to implement a premade database into an app and it basically 
>> causes the DB to double in size.
>>
>> So now I'm thinking of just loading the data completely into the memory 
>> as  multiple sorted static array strings and querying those arrays through 
>> java logic. (Note that reading speed of the data is absolutely vital).  But 
>> knowing that memory available to apps is limited I'm in doubt.
>>
>> Are there any other advantages/disadvantages to this approach?
>>
>

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

2012-07-11 Thread santy
I´ve solved the problem installing and opening a compass app. I think the 
compass app has activated the magnetic field again, but I would like to 
know if I can activate it from code. Thank you


El miércoles, 11 de julio de 2012 20:29:35 UTC+2, santy escribió:
>
> Hello. I am using the magnetic field of my samsung galaxy nexus and it was 
> working fine until today. I don´t know why but azimuth is always 0.0 now. 
> Does anyone know what happens?
> 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] Enable Magnetic Field

2012-07-11 Thread santy
Hello. I am using the magnetic field of my samsung galaxy nexus and it was 
working fine until today. I don´t know why but azimuth is always 0.0 now. 
Does anyone know what happens?
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] Setting and Using a Specific APN for Certain HTTP Calls

2012-07-11 Thread Edmund
Hi All,

I was wondering if there was a specific way to use a specific APN for just 
certain HTTP calls for a regular marketplace App.
I found this:

*You can programmatically query and set the preferred APN using the uri 
content://telephony/carriers/preferapn. To set a new preferred APN you have 
to pass in the database ID of an existing APN entry. The following function 
can do this if you pass in the display name of the APN (eg: 
setPreferredApn(context, 
"Giffgaff");)
public static final Uri APN_TABLE_URI = Uri.parse(
"content://telephony/carriers");
public static final Uri APN_PREFER_URI = Uri.parse(
"content://telephony/carriers/preferapn");
 public static boolean setPreferredApn(Context context, String name) {
 boolean changed = false;
 String columns[] = new String[] { Carriers._ID, Carriers.NAME };
 String where = "name = ?";
 String wargs[] = new String[] {name};
 String sortOrder = null;
 Cursor cur = context.getContentResolver().query(APN_TABLE_URI, columns, 
where, wargs, sortOrder);
 if (cur != null) {
 if (cur.moveToFirst()) {
 ContentValues values = new ContentValues(1); values
values.put("apn_id", cur.getLong(0));
 if (context.getContentResolver().update(APN_PREFER_URI, values, null, null) 
== 1) changed
 changed = true;
 } cur
cur.close();
 }
 return changed;
}
I guess I should add that you need WRITE_APN_SETTINGS permission and need 
to import android.provider.Telephony and android.provider.Telephony.Carriers
*

But even if this works it looks like it sets it for the whole device. I 
just want to use a specific APN for a specific HTTP call or even for my app 
only. Not for the whole device.

Is this possible with the SDK as a regular app? And can this be 
accomplished if my app is a System App instead?

Thanks,
--Edmund 

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

2012-07-11 Thread Justin Buser
You'd really have to provide some relevant information, telling us the 
sigspec and what your apps pid happened to be when it died is not really 
enough to go on.

On Friday, April 20, 2012 3:44:40 AM UTC-4, B.Arunkumar wrote:
>
> Hi, 
>
> We have designed an app which renders video from IP camera on the 
> Android mobile (Samsung Galaxy SII) through RTSP, the video frames get 
> decoded by ffmpeg and rendered on ImageView. We get the RTSP responses 
> and video packets from the IP camera using a socketchannel and 
> asynchronous selector. Sometimes we get this error "Process 8769 
> terminated by signal (7)" and the app crashes at the point where the 
> asynchronous selector is read and the packets get processed. Could 
> somebody give any clues on what could be the possible reasons why we 
> get this error sometimes and the app crashes? 
>
> Thank you, 
> B.Arunkumar

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

[android-developers] Re: android:windowIsFloating

2012-07-11 Thread Kristoffer
Hello.
its the same if i use that, the window will be the same size as the content.

Den onsdagen den 11:e juli 2012 kl. 19:34:24 UTC+2 skrev skink:

>
>
> Kristoffer wrote: 
> > Hello. 
> > Iam trying to make a nice looking "popup" window 
> > iam almost there with the help of android:windowIsFloating in my theme 
> but 
> > the thing is that the new window is wraping content to set its size. 
> > What i want is that the new window should almost fill the whole screen, 
> it 
> > should just be little smaller that the background activity just to show 
> > thats its a popup window. 
> > 
> > Yes, sure i could hardcode a size but i want it to look good on any size 
> so 
> > the best would be if i some way could set the size to like 80 % of 
> screen 
> > size? 
> > maybe there is a default android theme that i could use? 
>
>
> sure it is: 
>
>  
>
> pskink

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

Re: [android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-11 Thread Romain Guy
The fix is unfortunately not in 4.1.1. An easy workaround is to put your
GIF in drawable-nodpi/ instead and to perform the scaling use
Bitmap.createScaledBitmap() (this API does not cause the bug to happen.)
Alternatively you should think about using PNG instead. GIFs scaled at
runtime are converted to ARGB_ bitmaps so you lose the benefit of low
memory usage anyway.


On Wed, Jul 11, 2012 at 10:27 AM, Josh F.  wrote:

> Thanks Romain, I really appreciate you fixing this without even a bug
> report being filed.  We were using the same GIF for multiple densities as
> the auto-scaling worked quite well for us, so that must have been the
> problem.  Can you clarify if this was fixed in the 4.1.1 that is now being
> released or if we should expect it in a future update?  We have some plans
> for other games and features to existing that may benefit from GIF again so
> it would help to know when/if we should consider using them again.  Thanks
> again!
>
> On Wednesday, July 11, 2012 10:10:44 AM UTC-7, Romain Guy (Google) wrote:
>>
>> I found and fixed the bug by the way. It occurs only when the bitmap
>> loaded from the GIF has the wrong density and gets auto-scaled by the
>> framework.
>>
>>
>> On Tue, Jul 10, 2012 at 6:19 PM, Bradley Hekman wrote:
>>
>>> Josh, I encountered the same problem in my app while running on
>>> hardware. I'm just going to switch over to png..
>>>
>>> On Saturday, July 7, 2012 2:39:27 AM UTC-4, Zsolt Vasvari wrote:

 If this happens on hardware but not on the emulator, my guess is that
 this is not really a PNG/GIF issue.  I couldn't get Google I/O tickets
 either, so I cannot help.

 On Friday, July 6, 2012 11:50:43 PM UTC+8, Josh F. wrote:
>
> I will create the bug report as soon as I can get a development device
> with this actual build on it as it does not happen in the emulator.  As it
> stands right now you had to be at Google I/O to get one and tickets sold 
> so
> fast I was not able to get one.  To test this issue and the fix I have had
> to rely on my users who were there and have a Galaxy 7, which is not going
> to work to create a sample project example of the issue required to post 
> an
> official bug report.  Hopefully in a few weeks I'll get my Galaxy 7 and do
> just that.
>
> If someone in the community has a device that they would be willing to
> test with me on, I can send sample files/etc. to create the bug report
> sooner.
>
> On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy)
> wrote:
>>
>> > This is a bug in
>> > Android 4.1 Jelly Bean as released on current devices and I hope
>> that they
>> > fix it before full retail devices ship or this thread will get very
>> busy.
>>
>> Please feel free to file a bug report on http://b.android.com, with
>> a
>> sample project demonstrating the issue.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.7
>> Available!
>>
>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>>
>>   --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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: android:windowIsFloating

2012-07-11 Thread skink


Kristoffer wrote:
> Hello.
> Iam trying to make a nice looking "popup" window
> iam almost there with the help of android:windowIsFloating in my theme but
> the thing is that the new window is wraping content to set its size.
> What i want is that the new window should almost fill the whole screen, it
> should just be little smaller that the background activity just to show
> thats its a popup window.
>
> Yes, sure i could hardcode a size but i want it to look good on any size so
> the best would be if i some way could set the size to like 80 % of screen
> size?
> maybe there is a default android theme that i could use?


sure it is:



pskink

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


Re: [android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-11 Thread Josh F.
Thanks Romain, I really appreciate you fixing this without even a bug 
report being filed.  We were using the same GIF for multiple densities as 
the auto-scaling worked quite well for us, so that must have been the 
problem.  Can you clarify if this was fixed in the 4.1.1 that is now being 
released or if we should expect it in a future update?  We have some plans 
for other games and features to existing that may benefit from GIF again so 
it would help to know when/if we should consider using them again.  Thanks 
again!

On Wednesday, July 11, 2012 10:10:44 AM UTC-7, Romain Guy (Google) wrote:
>
> I found and fixed the bug by the way. It occurs only when the bitmap 
> loaded from the GIF has the wrong density and gets auto-scaled by the 
> framework.
>
>
> On Tue, Jul 10, 2012 at 6:19 PM, Bradley Hekman wrote:
>
>> Josh, I encountered the same problem in my app while running on hardware. 
>> I'm just going to switch over to png..
>>
>> On Saturday, July 7, 2012 2:39:27 AM UTC-4, Zsolt Vasvari wrote:
>>>
>>> If this happens on hardware but not on the emulator, my guess is that 
>>> this is not really a PNG/GIF issue.  I couldn't get Google I/O tickets 
>>> either, so I cannot help.
>>>
>>> On Friday, July 6, 2012 11:50:43 PM UTC+8, Josh F. wrote:

 I will create the bug report as soon as I can get a development device 
 with this actual build on it as it does not happen in the emulator.  As it 
 stands right now you had to be at Google I/O to get one and tickets sold 
 so 
 fast I was not able to get one.  To test this issue and the fix I have had 
 to rely on my users who were there and have a Galaxy 7, which is not going 
 to work to create a sample project example of the issue required to post 
 an 
 official bug report.  Hopefully in a few weeks I'll get my Galaxy 7 and do 
 just that.

 If someone in the community has a device that they would be willing to 
 test with me on, I can send sample files/etc. to create the bug report 
 sooner.

 On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy) 
 wrote:
>
> > This is a bug in 
> > Android 4.1 Jelly Bean as released on current devices and I hope 
> that they 
> > fix it before full retail devices ship or this thread will get very 
> busy. 
>
> Please feel free to file a bug report on http://b.android.com, with a 
> sample project demonstrating the issue. 
>
> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> _The Busy Coder's Guide to Android Development_ Version 3.7 Available! 
>
  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> -- 
> Romain Guy
> Android framework engineer
>
>  

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

2012-07-11 Thread CX
By the time my message got approved it was buried fairly deep. I would love 
to know whether this can be done.

On Tuesday, July 10, 2012 10:38:17 AM UTC-4, CX wrote:
>
> Hi,
>
> I've been googling for hours with no answer to this question.
>
> I want to enable my webview so that sites can request the location of the 
> phone. For instance, when you browse to maps.google.com in the default 
> browser google will request your location then send you there on the map 
> when you agree. In my webview it does nothing. Also, the crosshair icon 
> that is supposed to take you to your current location does nothing when 
> pressed.
>
> Thanks
>

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

[android-developers] Re: WebView in Andoird 3.x and 4.x does not load JavaScript files

2012-07-11 Thread Streets Of Boston
Are you seeing any lines written in the LogCat (generated by the browser) 
that could indicate what is going on?

On Wednesday, July 11, 2012 9:37:27 AM UTC-4, rhansen wrote:
>
> Hey,
>
> We are currently developing an app by using HTML5, JavaScript and CSS in 
> order to have some platform independence. 
>
> On Android we do the following:
> We created a webview which downloads an HTML5 webpage from a server. The 
> HTML5 file includes round about 40 JavaScript files. But somehow in the 
> middle of downloading the JavaScript files the WebView simply stops. 
> Therefore 'window.load' is not called and our JavaScript will never 
> execute. This only happens on Android 3.x and 4.x. On Android 2.x (as well 
> as Safari and Chrome (Desktop) and all iOS devices) it works without any 
> problems. I downloaded Chrome for Android 4.x and used its remote debugging 
> capabilities. It shows the same behaviour: It starts downloading the 
> JavaScript files and stops somewhere in the middle. It does not seem to be 
> up to a specific file though. Chrome stops on random files. 
>
> At the moment this really stops us from developing for Android. We bought 
> several devices (e.g. Galaxy S3) for testing, most of them equipped with 
> Android 3.x and 4.x.
>
> I highly appreciate any hint in to the right direction to make it run. Any 
> hint or workaround is very welcome. Even if we need to "adapt" our server 
> for Android.
>
> Thanks
> 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

Re: [android-developers] AutoCompleteTextView for RTL in Android

2012-07-11 Thread Romain Guy
Hi,

Full RTL support for text is a feature of Android 4.1.


On Tue, Jul 10, 2012 at 10:21 PM, Z.A Jafari  wrote:

> Hello there,
>
> I have an autocomplete textview which is working perfect with english but
> I want to to use it for farsi/persian language.
>
> Does android support it?. The data in the autocomplete is got from the db.
> Can somebody please help me to make this work?
>
> please help
>
> cheers Zolf
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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

Re: [android-developers] Re: Android 4.1 Jelly Bean & GIF Images Not Showing?

2012-07-11 Thread Romain Guy
I found and fixed the bug by the way. It occurs only when the bitmap loaded
from the GIF has the wrong density and gets auto-scaled by the framework.


On Tue, Jul 10, 2012 at 6:19 PM, Bradley Hekman wrote:

> Josh, I encountered the same problem in my app while running on hardware.
> I'm just going to switch over to png..
>
> On Saturday, July 7, 2012 2:39:27 AM UTC-4, Zsolt Vasvari wrote:
>>
>> If this happens on hardware but not on the emulator, my guess is that
>> this is not really a PNG/GIF issue.  I couldn't get Google I/O tickets
>> either, so I cannot help.
>>
>> On Friday, July 6, 2012 11:50:43 PM UTC+8, Josh F. wrote:
>>>
>>> I will create the bug report as soon as I can get a development device
>>> with this actual build on it as it does not happen in the emulator.  As it
>>> stands right now you had to be at Google I/O to get one and tickets sold so
>>> fast I was not able to get one.  To test this issue and the fix I have had
>>> to rely on my users who were there and have a Galaxy 7, which is not going
>>> to work to create a sample project example of the issue required to post an
>>> official bug report.  Hopefully in a few weeks I'll get my Galaxy 7 and do
>>> just that.
>>>
>>> If someone in the community has a device that they would be willing to
>>> test with me on, I can send sample files/etc. to create the bug report
>>> sooner.
>>>
>>> On Friday, July 6, 2012 8:27:14 AM UTC-7, Mark Murphy (a Commons Guy)
>>> wrote:

 > This is a bug in
 > Android 4.1 Jelly Bean as released on current devices and I hope that
 they
 > fix it before full retail devices ship or this thread will get very
 busy.

 Please feel free to file a bug report on http://b.android.com, with a
 sample project demonstrating the issue.

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

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

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




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

Re: [android-developers] ListView - Expandable items and scrolling

2012-07-11 Thread Justin Anderson
>
> (Never thought of using *notifyDataSetChanged *on a non changed data to
>> force refresh :p)
>>
> Except that the data is changed... remember, you are now keeping track of
> the last clicked position as part of your data model.
>

And you not only have to change the view for the last clicked item, but you
also have to change the view of the previous last clicked item back to its
normal state...


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


On Wed, Jul 11, 2012 at 11:06 AM, Justin Anderson wrote:

> (Never thought of using *notifyDataSetChanged *on a non changed data to
>> force refresh :p)
>>
> Except that the data is changed... remember, you are now keeping track of
> the last clicked position as part of your data model.
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Wed, Jul 11, 2012 at 10:49 AM, Tolriq  wrote:
>
>> (Never thought of using *notifyDataSetChanged *on a non changed data to
>> force refresh :p)
>>
>
>

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

[android-developers] Obscure Google Framework bug with javascript bookmarks

2012-07-11 Thread CX
I discovered an obscure Google framework bug and thought I would share it 
with the developers.

If you have Google Framework installed and browse to a site in IE that has 
put in the meta tag to disable the IE compatibility button ( meta 
content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' ), any javascript 
bookmark buttons you have will not work (such as bit.ly and the 'pin it' 
button from pinterest). In IE9 the bookmark will do nothing, in IE8 you get 
an ugly popup that simply says 'Unspecified Error'.

Also the Google toolbar searchbox does not fully function (hitting enter 
doesn't submit search and it also doesn't automatically show search 
results) when IE is in this state.

Example of sites that creates this behavior: http://www.businessweek.com , 
http://themeforest.net/ , https://bitly.com/ etc.

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

2012-07-11 Thread Justin Anderson
>
> (Never thought of using *notifyDataSetChanged *on a non changed data to
> force refresh :p)
>
Except that the data is changed... remember, you are now keeping track of
the last clicked position as part of your data model.

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


On Wed, Jul 11, 2012 at 10:49 AM, Tolriq  wrote:

> (Never thought of using *notifyDataSetChanged *on a non changed data to
> force refresh :p)
>

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

2012-07-11 Thread Kristoffer
Hello.
Iam trying to make a nice looking "popup" window
iam almost there with the help of android:windowIsFloating in my theme but 
the thing is that the new window is wraping content to set its size.
What i want is that the new window should almost fill the whole screen, it 
should just be little smaller that the background activity just to show 
thats its a popup window.
 
Yes, sure i could hardcode a size but i want it to look good on any size so 
the best would be if i some way could set the size to like 80 % of screen 
size?
maybe there is a default android theme that i could use?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView in Andoird 3.x and 4.x does not load JavaScript files

2012-07-11 Thread MathieuB
Do you absolutely need to load the files from a server? You could put them 
in the asset folder.

>
>

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

2012-07-11 Thread Tolriq
Well must I admit this is the correct way to handle the item row change.  
(Never thought of using *notifyDataSetChanged *on a non changed data to 
force refresh :p)

This will cause 10 or more lines to redraw instead of just a change of 
visibility of one view but since only happening on item click this should 
not hurt too much.

I'll still have the scrolling problem due to async listview refresh but 
since I got the solution for this I'll go on the correct road for adapter 
at least :)

Thanks,
Tolriq.

Le mercredi 11 juillet 2012 18:29:29 UTC+2, MagouyaWare a écrit :
>
> You are not looking at it from the right perspective...  I promise that if 
> you do it the way that I explained it will work.
>
> The listview is nothing more than a visual representation of your data 
> model.  The fact that one item in this list needs to be displayed 
> differently from the rest is something that should be part of the data 
> model.
>
> The adapter's job is to take your data and adapt it to a visual 
> representation.  The getView() method is not called for selection.  The 
> getView() method on the adapter is called by the listview every single time 
> it needs to get that visual representation of your data.
>
> So, again, here are the steps to take to get this working... I have added 
> a few things for clarity:
>
>1. Subclass an adapter class of your choosing (I usually like to use 
>BaseAdapter, but I have also subclassed ArrayAdapter before). 
>2. Have the adapter keep track of the position of the last clicked 
>item.  I would probably do this by having a member variable on the 
> adapter, 
>and a getter and setter to change it.  That way, in your onItemClick() 
>method you can set that value on your adapter, *and then call 
>notifyDataSetChanged() on your adapter.  This will cause the listview to 
>refresh itself and call getView() for all the items it needs to display.
>*
>3. When you implement getView() on your adapter, check if the current 
>position is the position of the last clicked item and handle it 
>appropriately.  *The way I would do what you are trying to accomplish 
>is as follows:*
>   1. *If the position passed in to getView() is the same as the 
>   member variable that keeps track of the last clicked item, then set the 
>   "gone" part of your view to View.VISIBLE* 
>   2. *If the position passed in to getView() is NOT the same as the 
>   member variable, then set the "gone" part of your view to View.GONE
>   *
>4. If you do this right, you most likely won't have to deal with all 
>of the code to manually resize an item in the list...
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Wed, Jul 11, 2012 at 10:10 AM, Tolriq  wrote:
>
>> Thanks for answer.
>>
>> Changing the view is not the problem it's more telling the listview that 
>> the item have changed.
>>
>> I already have a custom Cursor adapter but the getview is not called for 
>> click only for select.
>>
>> The need is to get sure that the listview scroll enough for the entire 
>> row to be visible.
>>
>> Whatever way I'll do the listview would not have the correct information 
>> at the moment i send therequestChildRectangleOnScreen to assure visiblity 
>> of row :(
>>
>> Tolriq.
>>
>>
>> Le mercredi 11 juillet 2012 17:27:21 UTC+2, MagouyaWare a écrit :
>>
>>> I'm not sure I understand exactly what you are trying to do...  But from 
>>> the code you posted, it looks like you are wanting to change the view of 
>>> the last clicked item somehow.  This should really be handled by the 
>>> getView() method of your adapter.  You would need to write a custom adapter 
>>> to do this but that is the correct way to handle something like this.
>>>
>>> Here are some high level steps to help you get started:
>>>
>>>1. Subclass an adapter class of your choosing (I usually like to use 
>>>BaseAdapter, but I have also subclassed ArrayAdapter before)
>>>2. Have the adapter keep track of the position of the last clicked 
>>>item.  I would probably do this by having a member variable on the 
>>> adapter, 
>>>and a getter and setter to change it.  That way, in your onItemClick() 
>>>method you can set that value on your adapter 
>>>3. When you implement getView() on your adapter, check if the 
>>>current position is the position of the last clicked item and handle it 
>>>appropriately.
>>>4. If you do this right, you most likely won't have to deal with all 
>>>of the code to manually resize an item in the list...
>>>
>>> Hope that helps...
>>>
>>> Thanks,
>>> Justin Anderson
>>> MagouyaWare Developer
>>> http://sites.google.com/site/**magouyaware
>>>
>>>
>>> On Wed, Jul 11, 2012 at 6:42 AM, Tolriq  wrote:
>>>
 Hello,

 I'm currently facing a problem and the solution I use does not satisfy 
 me.
 I'm 

Re: [android-developers] Connection reset by peer - Bluetooth

2012-07-11 Thread mike digioia
Are you getting any data from your file to the remote side? Or nothing? Is
fragmentation handled?
On Jul 11, 2012 12:28 AM, "Deepak Kumar"  wrote:

>  Hi All,
>
>
>
> I am trying to transfer file from one device to another using
> Bluetooth. But, I am getting following “Connection reset by peer”
> exception:-
>
>
>
> java.io.IOException: Connection reset by peer
>
> 07-11 12:20:29.042: W/System.err(8598):at
> android.bluetooth.BluetoothSocket.readNative(Native Method)
>
> 07-11 12:20:29.042: W/System.err(8598):at
> android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:336)
>
> 07-11 12:20:29.042: W/System.err(8598):at
> android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
>
> 07-11 12:20:29.042: W/System.err(8598):at
> java.io.InputStream.read(InputStream.java:157)
>
> 07-11 12:20:29.042: W/System.err(8598):at
> com.example.bluetoothapi8file.BluetoothChatService$ConnectedThread.run(BluetoothChatService.java:421)
>
>
>
>
>
>
>And, it will write the file completely from client side but on
> server side it was not read completely.
>
>
>
>If I will comment the code
>
> mmOutStream.close();//In client side -> write(File
> fileIn) method
>
> Then it will transfer the file completely.
>
>
>
>But in that case control will never comes out of the *while
> loop* written in server side read(File fileIn) method.
>
>
>
>So, control will not comes to line
>
>
>
>   mHandler.obtainMessage(BluetoothMainActivity.MESSAGE_READ_COMPLETED,
> -1, -1);   //In Server side -> read(File fileIn) method
>
>
>
>   and I cannot send msg or update the UI.
>
>
>
>   Please provide me some solution as early as possible.
>
>
>
> *Client Side:-*
>
> *//Code for Writing to the *mmOutStream (read chunk of bytes from File)
>
> *public* *void* write(File fileIn) {
>
> *byte*[] buffer = *new* *byte*[1024];
>
> *try* {
>
>  mmFileInStream = *new* FileInputStream(fileIn);
>
>  *long* *total_bytes* = 0;
>
>  *int* byteRead = 0;
>
>  *while* ((byteRead = mmFileInStream.read(buffer)) !=
> -1) {
>
>System.*out*.println("Write: " + byteRead);
>
>total_bytes += byteRead;
>
>mmOutStream.write(buffer, 0, byteRead);
>
>  }
>
>  Log.*d*(*TAG*, "Writing to the outstream
> completed))");
>
> } *catch* (Exception e) {
>
>  e.printStackTrace();
>
> }
>
> *finally* {
>
>  *try* {
>
>*if* (mmFileInStream != *null*) {
>
> mmFileInStream.close();
>
>}
>
>*if* (mmOutStream != *null*) {
>
> *mmOutStream**.close();*   *//if
> commented*
>
>}
>
>*if* (mmSocket != *null*) {
>
>  /*try {
>
>  mmSocket.close();
>
>  } catch (IOException e) {
>
>  //catch logic
>
>  }*/
>
>  }
>
>  } *catch* (Exception e) {
>
>e.printStackTrace();
>
>  }
>
> }
>
>
>
>}
>
>
>
> *Server Side:-*
>
> *//Code for Writing to the *mmFileOutStream (read chunk of bytes from
> mmInStream)
>
> *public* *void* read(File fileIn) {
>
>  mmFileOutStream = *new* FileInputStream(fileIn);
>
>  try {
>
> long total_bytes = 0;
>
> *int* byteRead = 0;
>
> while ((byteRead = mmInStream.read(buffer)) != -1) {
>
>  System.out.println("read: " + byteRead);
>
>  total_bytes += byteRead;
>
>  mmFileOutStream.write(buffer, 0, byteRead);
>
>
>
> }
>
> Log.d(TAG, "Inside finally block
> MESSAGE_READ_COMPLETED");
>
>
>
> * mHandler.obtainMessage(BluetoothMainActivity.MESSAGE_READ_COMPLETED,
> -1, -1);*
>
>
>
>} catch (Exception e) {
>
> Log.d(TAG, "Inside Catch with 
> *erroe*block"+e.toString());
>
>
>
> e.printStackTrace();
>
>} finally {
>
> Log.d(TAG, "Inside finally block");
>
> try {
>
>  if (mmInStream != null) {
>
>mmInStream.close();
>
>  }
>
>  if (mmFileOutStream != null) {
>
>  mmFileOutStream.close();
>
>  }
>
> 

Re: [android-developers] ListView - Expandable items and scrolling

2012-07-11 Thread Justin Anderson
You are not looking at it from the right perspective...  I promise that if
you do it the way that I explained it will work.

The listview is nothing more than a visual representation of your data
model.  The fact that one item in this list needs to be displayed
differently from the rest is something that should be part of the data
model.

The adapter's job is to take your data and adapt it to a visual
representation.  The getView() method is not called for selection.  The
getView() method on the adapter is called by the listview every single time
it needs to get that visual representation of your data.

So, again, here are the steps to take to get this working... I have added a
few things for clarity:

   1. Subclass an adapter class of your choosing (I usually like to use
   BaseAdapter, but I have also subclassed ArrayAdapter before).
   2. Have the adapter keep track of the position of the last clicked
   item.  I would probably do this by having a member variable on the adapter,
   and a getter and setter to change it.  That way, in your onItemClick()
   method you can set that value on your adapter, *and then call
   notifyDataSetChanged() on your adapter.  This will cause the listview to
   refresh itself and call getView() for all the items it needs to display.*
   3. When you implement getView() on your adapter, check if the current
   position is the position of the last clicked item and handle it
   appropriately.  *The way I would do what you are trying to accomplish is
   as follows:*
  1. *If the position passed in to getView() is the same as the member
  variable that keeps track of the last clicked item, then set the "gone"
  part of your view to View.VISIBLE*
  2. *If the position passed in to getView() is NOT the same as the
  member variable, then set the "gone" part of your view to View.GONE
  *
   4. If you do this right, you most likely won't have to deal with all of
   the code to manually resize an item in the list...


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


On Wed, Jul 11, 2012 at 10:10 AM, Tolriq  wrote:

> Thanks for answer.
>
> Changing the view is not the problem it's more telling the listview that
> the item have changed.
>
> I already have a custom Cursor adapter but the getview is not called for
> click only for select.
>
> The need is to get sure that the listview scroll enough for the entire row
> to be visible.
>
> Whatever way I'll do the listview would not have the correct information
> at the moment i send therequestChildRectangleOnScreen to assure visiblity
> of row :(
>
> Tolriq.
>
>
> Le mercredi 11 juillet 2012 17:27:21 UTC+2, MagouyaWare a écrit :
>
>> I'm not sure I understand exactly what you are trying to do...  But from
>> the code you posted, it looks like you are wanting to change the view of
>> the last clicked item somehow.  This should really be handled by the
>> getView() method of your adapter.  You would need to write a custom adapter
>> to do this but that is the correct way to handle something like this.
>>
>> Here are some high level steps to help you get started:
>>
>>1. Subclass an adapter class of your choosing (I usually like to use
>>BaseAdapter, but I have also subclassed ArrayAdapter before)
>>2. Have the adapter keep track of the position of the last clicked
>>item.  I would probably do this by having a member variable on the 
>> adapter,
>>and a getter and setter to change it.  That way, in your onItemClick()
>>method you can set that value on your adapter
>>3. When you implement getView() on your adapter, check if the current
>>position is the position of the last clicked item and handle it
>>appropriately.
>>4. If you do this right, you most likely won't have to deal with all
>>of the code to manually resize an item in the list...
>>
>> Hope that helps...
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/**magouyaware
>>
>>
>> On Wed, Jul 11, 2012 at 6:42 AM, Tolriq  wrote:
>>
>>> Hello,
>>>
>>> I'm currently facing a problem and the solution I use does not satisfy
>>> me.
>>> I'm pretty sure there's a correct way to handle this case so I ask here
>>> :)
>>>
>>> My problem is simple I have a listview with items that have a gone part
>>> that I show on the last clicked item.
>>> This part works well, I also want the clicked item to be fully visible
>>> and here's comes trouble.
>>>
>>> With non expanding item it's easy to do with
>>> requestChildRectangleOnScreen but in my case I can't find a way for the
>>> list to be aware of the new size of the item so it will only scroll the
>>> item to show the expanded part.
>>> The solution I use is if the requestChildRectangleOnScreen was in effect
>>> or if item is last or before last item then scroll by the size of the
>>> expanded item (that i get via measure).
>>>
>>> This works but not perfect sinc

[android-developers] Re: ListView - Expandable items and scrolling

2012-07-11 Thread Tolriq
Finally after writing my response I think about better search on google :)

And the solution is logical after I put better words on the problem :

listView.post(new Runnable() {

@Override
public void run() {
listView.requestChildRectangleOnScreen(view,
new Rect(0, 0, view.getRight(), 
view.getHeight()), false);
}
});

This will make the scroll happens after the redraw so works with correct 
measures.

Le mercredi 11 juillet 2012 14:42:45 UTC+2, Tolriq a écrit :
>
> Hello,
>
> I'm currently facing a problem and the solution I use does not satisfy me.
> I'm pretty sure there's a correct way to handle this case so I ask here :)
>
> My problem is simple I have a listview with items that have a gone part 
> that I show on the last clicked item.
> This part works well, I also want the clicked item to be fully visible and 
> here's comes trouble.
>
> With non expanding item it's easy to do with requestChildRectangleOnScreen 
> but in my case I can't find a way for the list to be aware of the new size 
> of the item so it will only scroll the item to show the expanded part.
> The solution I use is if the requestChildRectangleOnScreen was in effect 
> or if item is last or before last item then scroll by the size of the 
> expanded item (that i get via measure).
>
> This works but not perfect since sometimes I scroll the list (when i 
> before last item) when it would not have been needed :(
>
> The code used : 
>
> public void onItemClick(AdapterView arg0, View arg1, int i, 
>> long l) {
>> // TODO Auto-generated method stub
>> if (curView != null) {
>> try {
>> curView.setVisibility(View.GONE);
>> } catch (Exception e) {
>> }
>> }
>>
>> ListView listView = (ListView) 
>> findViewById(R.id.mediaslist_list);
>>
>> curView = ((RelativeLayout) 
>> arg1.getTag(R.id.movieslist_item_details));
>> curView.setVisibility(View.VISIBLE);
>> int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, 
>> MeasureSpec.UNSPECIFIED);
>> int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, 
>> MeasureSpec.UNSPECIFIED);
>> curView.measure(widthMeasureSpec, heightMeasureSpec);
>>
>> if (listView.requestChildRectangleOnScreen(arg1, new 
>> Rect(0, 0, arg1.getRight(),
>> arg1.getHeight()), false)
>> || listView.getLastVisiblePosition() <= (i + 1)) {
>> listView.smoothScrollBy(curView.getMeasuredHeight(), 
>> 150);
>> }
>> }
>>
>
> If someone have the correct way to handle this case thanks for answering :)
>  
> Regards,
> Tolriq.
>
>

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

2012-07-11 Thread Dianne Hackborn
It's a bug in the app; the app isn't using the standard action bar.

On Wed, Jul 11, 2012 at 6:44 AM, Kiview wrote:

> But why do the google apps (like Google+) use overflow in the action bar
> on devices with physical menu button if this is considered bad?
>
>
> Am Dienstag, 5. Juni 2012 22:30:49 UTC+2 schrieb Dianne Hackborn:
>
>> Oh good lord, don't freaking do that.
>>
>> On Tue, Jun 5, 2012 at 12:10 PM, b0b  wrote:
>>
>>>
>>>
>>>
 Unless I missed something in the previous discussions, or there has
 been a breakthrough since, there is NO possible way to make the
 overflow button show up if there is a physical hardware key.



>>> There is. With hack below you can force the appearance of the overflow
>>> menu even if there is a physical button menu
>>> with target SDK >= 14. Of course you must never use it since it is a
>>> horrible hack, and nobody shall use hacks ever, especially on Android !
>>>
>>> static public void setHasPermanentMenuKey(Context context, boolean
>>> value) {
>>> if (isICSOrLater()) {
>>> ViewConfiguration config = ViewConfiguration.get(context)**;
>>> try {
>>> Field f = ViewConfiguration.class
>>> .getDeclaredField("**sHasPermanentMenuKey");
>>> f.setAccessible(true);
>>> if (f != null) {
>>> f.set(config, value);
>>> log.info("Successfully hacked permanent menu key");
>>> }
>>> } catch (Exception ex) {
>>> log.info("Unable to hack permanent menu key: " + ex);
>>> }
>>> }
>>> }
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@**
>>> googlegroups.com 
>>> To unsubscribe from this group, send email to
>>> android-developers+**unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/android-developers?hl=en
>>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see and
>> answer them.
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Run background thread or service till application is in foregrouund.

2012-07-11 Thread Dianne Hackborn
There is no need to use a service for this.  Why do you want a service?  If
your application is in the foreground, then you know it is running, so you
don't need a service to keep it running.

On Tue, Jul 10, 2012 at 10:14 PM, NayAnesh Gupte
wrote:

> Hello all,
>
> I want to run a background thread or service till application is in
> foreground. Means i want that service to run in background only if any
> activity of an application is in foreground and visible.
> when application is in background or not running i.e no activity is in
> foreground or visible it should stop service or cancel that background
> thread.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




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

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

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

Re: [android-developers] ListView - Expandable items and scrolling

2012-07-11 Thread Tolriq
Thanks for answer.

Changing the view is not the problem it's more telling the listview that 
the item have changed.

I already have a custom Cursor adapter but the getview is not called for 
click only for select.

The need is to get sure that the listview scroll enough for the entire row 
to be visible.

Whatever way I'll do the listview would not have the correct information at 
the moment i send therequestChildRectangleOnScreen to assure visiblity of 
row :(

Tolriq.


Le mercredi 11 juillet 2012 17:27:21 UTC+2, MagouyaWare a écrit :
>
> I'm not sure I understand exactly what you are trying to do...  But from 
> the code you posted, it looks like you are wanting to change the view of 
> the last clicked item somehow.  This should really be handled by the 
> getView() method of your adapter.  You would need to write a custom adapter 
> to do this but that is the correct way to handle something like this.
>
> Here are some high level steps to help you get started:
>
>1. Subclass an adapter class of your choosing (I usually like to use 
>BaseAdapter, but I have also subclassed ArrayAdapter before)
>2. Have the adapter keep track of the position of the last clicked 
>item.  I would probably do this by having a member variable on the 
> adapter, 
>and a getter and setter to change it.  That way, in your onItemClick() 
>method you can set that value on your adapter 
>3. When you implement getView() on your adapter, check if the current 
>position is the position of the last clicked item and handle it 
>appropriately.
>4. If you do this right, you most likely won't have to deal with all 
>of the code to manually resize an item in the list...
>
> Hope that helps...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Wed, Jul 11, 2012 at 6:42 AM, Tolriq  wrote:
>
>> Hello,
>>
>> I'm currently facing a problem and the solution I use does not satisfy me.
>> I'm pretty sure there's a correct way to handle this case so I ask here :)
>>
>> My problem is simple I have a listview with items that have a gone part 
>> that I show on the last clicked item.
>> This part works well, I also want the clicked item to be fully visible 
>> and here's comes trouble.
>>
>> With non expanding item it's easy to do with 
>> requestChildRectangleOnScreen but in my case I can't find a way for the 
>> list to be aware of the new size of the item so it will only scroll the 
>> item to show the expanded part.
>> The solution I use is if the requestChildRectangleOnScreen was in effect 
>> or if item is last or before last item then scroll by the size of the 
>> expanded item (that i get via measure).
>>
>> This works but not perfect since sometimes I scroll the list (when i 
>> before last item) when it would not have been needed :(
>>
>> The code used : 
>>
>> public void onItemClick(AdapterView arg0, View arg1, int 
>>> i, long l) {
>>> // TODO Auto-generated method stub
>>> if (curView != null) {
>>> try {
>>> curView.setVisibility(View.GONE);
>>> } catch (Exception e) {
>>> }
>>> }
>>>
>>> ListView listView = (ListView) 
>>> findViewById(R.id.mediaslist_list);
>>>
>>> curView = ((RelativeLayout) 
>>> arg1.getTag(R.id.movieslist_item_details));
>>> curView.setVisibility(View.VISIBLE);
>>> int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, 
>>> MeasureSpec.UNSPECIFIED);
>>> int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, 
>>> MeasureSpec.UNSPECIFIED);
>>> curView.measure(widthMeasureSpec, heightMeasureSpec);
>>>
>>> if (listView.requestChildRectangleOnScreen(arg1, new 
>>> Rect(0, 0, arg1.getRight(),
>>> arg1.getHeight()), false)
>>> || listView.getLastVisiblePosition() <= (i + 1)) 
>>> {
>>> listView.smoothScrollBy(curView.getMeasuredHeight(), 
>>> 150);
>>> }
>>> }
>>>
>>
>> If someone have the correct way to handle this case thanks for answering 
>> :)
>>  
>> Regards,
>> Tolriq.
>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at

[android-developers] Re: Game development car acceleration sound

2012-07-11 Thread Nobu Games
First of all you could sample a variety of real car acceleration sounds and 
play them back on acceleration. You need to have that in tune with the time 
it takes until your game car is at full speed. Let's assume it takes 8 
seconds from a total halt to full speed. You need an acceleration sound of 
that length.

If your game car slows down and accelerates again, you need to calculate 
the correct playback start position within your acceleration sound file 
based on the current speed.

Alternatively you can just dynamically pitch up / down an engine sound loop 
according to the current speed. Changing pitch can be easily done by 
changing the playback speed / rate. However, these looped sounds tend to 
sound a bit artificial.

On Tuesday, July 10, 2012 3:57:22 PM UTC-5, Tim wrote:
>
> Hey all,
> It is no problem for me to play "constant" engine sounds but have someone 
> of you an idea how I can manage accelerations sounds (i.e. car)? 
> I have no idea how I can create those.
>
>
>

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

2012-07-11 Thread Justin Anderson
>
> i am a php web developer
>
> i made a full php website with mysql database
>
> and i want to make an appliation to run on android phones. i want to
> display all my website data

You essentially have two options here:

   1. Create a native android application and use web services to display
   the data
   2. Create a web app that uses WebView to display your web page:
   http://developer.android.com/guide/webapps/index.html

(i already made android version for my website)
>
Given this information, I would probably recommend option number two to
start with.  However, note that when doing this, users don't get the native
look and feel of an Android app... I have seen some cases where this
doesn't matter, but in a lot of cases these apps get bad reviews.

my problem is that i dont know how to connect to my website using an
> android application..
>
That depends on which option you are going with...

for example:facebook is made by PHP but it has an application that
> runs on android mobile
>
I am 99% sure that the Facebook app went with option #1... It is a bit more
expensive and time consuming to develop but generally results in better
reviews and customer satisfaction.

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


On Wed, Jul 11, 2012 at 1:35 AM, TreKing  wrote:

> On Wed, Jul 4, 2012 at 4:26 AM, John Zakaria wrote:
>
>> my problem is that i dont know how to connect to my website using an
>> android application..
>>
>
> Look up URLConnection.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-07-11 Thread Paul
Hola,
I am looking at similar things with an S III.

However *you can not do any card emulation* on an Android by default. 
I have only heard of people achieveing this on special flashed ROMs of 
Android - eg on the old "Nexus S" phone. I don't know if someone has 
achieved it on newer phones like S III.

Certainly any person's phone with any normal Android version will not do 
card emulation and not be able to open doors, sorry!

Paul

On Sunday, July 1, 2012 9:17:23 AM UTC+1, Cristina Jerez wrote:
>
> Hi
>
> I'm a university student and I'm starting in android development. I have a 
> question with the mode card emulator .
>
> It is possible that a phone with android (in our case we have a Galaxy S 
> III) can act as a Mifare card to communicate with NFC elements of the 
> building and to open doors? O r only the terminal can read Mifare targets?
> How can develop the first action?
>
> Thanks!
>

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

Re: [android-developers] Run background thread or service till application is in foregrouund.

2012-07-11 Thread Justin Anderson
>
> I want to run a background thread or service till application is in
> foreground.
>
Ok...

Means i want that service to run in background only if any activity of an
> application is in foreground and visible.
>
You want the service to run when ANY activity is visible? That would be all
the time... There is always an application that is visible.  Otherwise
there wouldn't be a UI on the screen...  Or you are wanting the service to
run if one of YOUR activities is visible?

when application is in background or not running i.e no activity is in
> foreground or visible it should stop service or cancel that background
> thread.
>
So what do you want?  First you said you want your service to run until
your application is in the foreground.  Now you are saying you want your
service to run only when you application is visible...

A couple questions:

   - What have you tried so far?
   - What specifically are you having a problem with?

My advice:

   - Read this: http://catb.org/esr/faqs/smart-questions.html
   - Do some work on your own
   - Ask a more specific question


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


On Tue, Jul 10, 2012 at 11:14 PM, NayAnesh Gupte
wrote:

> I want to run a background thread or service till application is in
> foreground.

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

[android-developers] Eclipse Juno: Does not want to play well with android SDK.

2012-07-11 Thread Cythes
So I keep trying to install the new SDK but every time I do it says most of 
the stuff is already installed. However, I cant find android anywhere 
in eclipse 4.2 Any help regarding this matter would be greatly appreciated. 
-Thanks

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

Re: [android-developers] Bitmap Quality

2012-07-11 Thread Justin Anderson
What does your code look like?  And, have you considered just using an
ImageView?

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


On Tue, Jul 10, 2012 at 10:45 PM, roadysix  wrote:

> Hello all, I've recently been trying to teach myself how to develop apps
> for Android and for the most part its going well.
> However I happen to have stumbled upon an irritating problem for which I
> cannot find a solution on the web.
>
> The quality of the images I am displaying in the emulator and device is
> very poor, as if the image is being compressed at build time.
> I have tried setting various options in the BitmapFactory.Options class
> though to no avail.
>
> I was wondering if anyone else had come across this kind of problem before
> and could let me know what I'm doing 
> wrong.
> Seems like the banding artefacts you would see after converting an image
> to a lossy compression format such as JPEG.
> The image when displayed on my phone through other apps (such as the
> Gallery) looks as it should, so there has to be something I can do.
>
> I'm overriding the onDraw method and using the provided Canvas object of a
> custom View class to draw my images.
>
> 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

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