Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Mark Murphy
On Fri, Oct 26, 2012 at 2:45 AM, Kristopher Micinski
 wrote:
> Or their company is actually TMobile...

Oh, true. A device manufacturer can do this stuff without a problem. I
was assuming that this was an SDK app, since this is a list for
developing SDK apps, but that may not have been a valid assumption.

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

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

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


Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Kristopher Micinski
On Fri, Oct 26, 2012 at 2:41 AM, Mark Murphy  wrote:
> On Fri, Oct 26, 2012 at 2:30 AM, alex kyo  wrote:
>> I am wondering if there is any way to install the app directly & silently On
>> a stock android without pushing a button.
>
> Fortunately, no, for obvious security reasons.
>
>> the rival company, of course, they won't tell us how they can do it.
>
> If they are able to do it, they are doing so presumably via some
> security hole. Be sure to point out if and when they release an app
> that does this, so we can get that security hole closed.

Or their company is actually TMobile...

kris

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


Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Mark Murphy
On Fri, Oct 26, 2012 at 2:30 AM, alex kyo  wrote:
> I am wondering if there is any way to install the app directly & silently On
> a stock android without pushing a button.

Fortunately, no, for obvious security reasons.

> the rival company, of course, they won't tell us how they can do it.

If they are able to do it, they are doing so presumably via some
security hole. Be sure to point out if and when they release an app
that does this, so we can get that security hole closed.

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

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

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


Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread alex kyo
thanks for your reply, TreKing

That's a question for a lawyer if I could afford one.

On Friday, October 26, 2012 2:51:03 AM UTC+9, TreKing wrote:
>
> On Thu, Oct 25, 2012 at 5:30 AM, alex kyo 
> > wrote:
>
>> Is it LEGAL to implement APK's silent installation for commercial use?
>
>
> That's a question for a lawyer.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread alex kyo
Thanks for your reply*, *Kris

My (3rd party)app was built to install apps on STOCK android via google 
play,
What I did was link to Play store by an url like 
https://play.google.com/store/apps/details?id=com.fusepowered.google.jawsrevenge
, and when user click INSTALL button the installation will begin.

I am wondering if there is any way to install the app directly & 
silently On a stock android without pushing a button.
I've tried the url request send by the install button, but it doesn't work 
at all.

the rival company, of course, they won't tell us how they can do it.

thanks again



On Friday, October 26, 2012 3:17:58 AM UTC+9, Kristopher Micinski wrote:
>
> On Thu, Oct 25, 2012 at 6:30 AM, alex kyo > 
> wrote: 
> > Download and install apps from google play without prompt. 
> > I know there are only 2 ways to achieve that, sign the 3rd party app 
> with a 
> > system signature or root the device. 
> > But I think both will cause security trouble and neither will be 
> acceptable 
> > to the end user. 
> > 
> > My question is 
> > Is it LEGAL to implement APK's silent installation for commercial use? 
> > 
> > I was told that our rival company made it recently. 
> > And they prepare to release their service next month. 
> > 
>
> I'm not sure what you mean, how and what are they doing, and what do 
> you want to do? 
>
> > Does google have any legal regulation on that? 
> > 
>
> Google certainly doesn't regulate it.. 
>
> kris 
>

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

[android-developers] play audio on tab click event

2012-10-25 Thread Sadhna Upadhyay
Hi everyone ,
 i am making an app  in which 10 tab and i want to play audio when i
click on tab ,and there are different-different for different tab and one
more thing that i want to swipe functionality on framelayout of tab. how to
do? if any one have any idea please share with me.

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

Re: [android-developers] android SQLite

2012-10-25 Thread Kristopher Micinski
usually the syncing with a database pattern happens via service in an
alarmmanager then updating a content provider or something of that
nature..

kris

On Fri, Oct 26, 2012 at 1:26 AM, nageswara rao Rajana
 wrote:
> Hi,
>
> In my app i should maintain a local database which contain 20 tables with
> primary and foreign keys later it should sync with remote server database.
> I have some queries following
>
> I came across that foreign key constraint is not supported.
> Can we implement Joins.
> What is maximum size of database file.
> Do we have any api's to sync with remote database.
>
> Please help me
>
> Thanking you,
> nageswararao.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] android SQLite

2012-10-25 Thread nageswara rao Rajana
Hi,

In my app i should maintain a local database which contain 20 tables with
primary and foreign keys later it should sync with remote server database.
I have some queries following

   - I came across that foreign key constraint is not supported.
   - Can we implement Joins.
   - What is maximum size of database file.
   - Do we have any api's to sync with remote database.

Please help me

Thanking you,
nageswararao.

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

2012-10-25 Thread Kristopher Micinski
depends, some libraries are not included, if it's linking against
those then that will not work..

kris

On Fri, Oct 26, 2012 at 1:05 AM, Karl Kristian Markman
 wrote:
> So basically anything that goes in Java should work in Android?
>
> On Friday, December 3, 2010 11:45:32 AM UTC+1, Atul Moglewar wrote:
>>
>> Here is the list of open source PDF libraries in Java
>> http://java-source.net/open-source/pdf-libraries
>>
>> Atul
>> On Dec 3, 10:31 am, Zsolt Vasvari  wrote:
>> > Could somebody recommend a PDF creator library for Android, or at
>> > least in Java that could be ported to Android?  It doesn't have to be
>> > anything too sophisticated, my requirements are for simple styled
>> > text.
>> >
>> > 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


[android-developers] Re: Creating a PDF on Adroid?

2012-10-25 Thread Karl Kristian Markman
So basically anything that goes in Java should work in Android? 

On Friday, December 3, 2010 11:45:32 AM UTC+1, Atul Moglewar wrote:
>
> Here is the list of open source PDF libraries in Java 
> http://java-source.net/open-source/pdf-libraries 
>
> Atul 
> On Dec 3, 10:31 am, Zsolt Vasvari  wrote: 
> > Could somebody recommend a PDF creator library for Android, or at 
> > least in Java that could be ported to Android?  It doesn't have to be 
> > anything too sophisticated, my requirements are for simple styled 
> > text. 
> > 
> > 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] Dalvik VM performance

2012-10-25 Thread Kristopher Micinski
On Wed, Oct 24, 2012 at 1:32 PM, Etienne Fortin  wrote:
> I've been wondering for a long time about performance on Android and how it
> can be improved. One area I think is overlooked is Dalvik. From what I can
> understand, Dalvik is a good VM in concept but lack the latest and greatest
> in VM technology. I've seen benchmark compared to other VM that are not very
> positive for Dalvik and the Android plattform. Or look at Android Turbo
> where a highly optimized Dalvik VM outpace anything you can challenge it
> with. And one thing I don't quite understand is the lack of focus on
> improving performance of the VM, given that it is central to all the apps on
> Android.

Dalvik's always been pretty simple, it's design strategy is built
around the Android architecture itself.  So it doesn't look like the
"latest and greatest" of a desktop VM because, quite frankly, it's
*not* a desktop VM.

Ugh.. More people giving the "Dalvik is slow" argument without
sufficient numbers to back it...  You understand that a large amount
of the app is actually spent in system code, correct?

> So one thing I was thinking is why not impement ahead of time compilation at
> installation time? People are used to have some waiting time while
> installing app. Why not use that time to compile DEX to native codes right
> away and store only that native code with the class structure? Was it tried
> before?

Have you heard of the dalvik cache?  That is exactly what is done, not
strictly at compile time but at runtime.

Why can't we do it compile time?  Because the Dalvik JIT is trace
based, not class based, meaning that the compilation strategy doesn't
work the same as (say) a HotSpot VM, trace based JIT has a unique set
of problems and tradeoffs.

You're free to look into Dalvik's trace based JIT and suggest
optimizations, doing a trace based JIT actually does change the set of
optimizations you're allowed to make (and you get better / more
accurate predictions about many things!)

kris

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


[android-developers] Re: Android maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'

2012-10-25 Thread Patrick Boos
To clarify. Eclipse has the same problem. I on accident tested the single 
test only where it worked.

On Thursday, August 23, 2012 5:56:18 PM UTC+9, blizzard wrote:
>
> Hello everyone,
>
> I'm having trouble executing instrumentation tests using the android maven 
> plugin. I have followed the "libraryprojects" example to the last detail, 
> however, there is one slight difference in my setup ~ i'm adding the 
> android support jar as an external dependency.
>
> My setup looks as follows:
>
> APK lib project (greendroid to be specific)
>
> 
>   com.google.android
>   support-v4
>   r6
> 
>
> 
> com.google.android
> android
> provided
> 
>
> 
> junit
> junit
> test
> 
> APK project
>
> 
> com.google.android
> android
> provided
> 
> 
> greendroid
> GreenDroidFragment
> 1.0.0-SNAPSHOT   
> apklib 
> 
> APK test project (and here's the problem  )
>
> 
>   com.google.android
>   support-v4
>   r6
>
> 
> com.google.android
> android
> provided
> 
> 
> com.google.android
> android-test
> provided
> 
>
> 
> com.jayway.android.robotium
> robotium-solo
> 3.2.1
> 
>
> 
> com.entersectmobile
> NMACFragment
> 1.0.0-SNAPSHOT
> apk
> provided
> 
>
> 
> com.entersectmobile
> NMACFragment
> 1.0.0-SNAPSHOT
> jar
> provided
>   
> The problem is that delvik is unable to find or link support jar upon 
> running instrumentation tests.
>
> By packaging the android support jar as part of the APK test project, 
> delvik complains that it's unable to resolve the compiled code. This is 
> because the dex output of the main APK is different from the dex output of 
> the test APK.
>
> W/dalvikvm(328): Class resolved by unexpected DEX:  
> Lcom/entersectmobile/android/nedbank/GenerateOtpFragment;(0x44edffb0):0x121de0
>  
> ref   
> [Landroid/support/v4/app/Fragment;] 
> Landroid/support/v4/app/Fragment;(0x44edffb0)
> By not packaging the android support as part of the APK test project, 
> delvik is unable to locate the compiled code. This happens when making the 
> scope provided or excluding the dependency completely.
>
> W/ClassPathPackageInfoSource(632): Cannot load class. Make sure it is in 
> your apk.
> Class name: 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'. 
> Message: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2
> The only thing I can think of is to somehow manually tell the APK test 
> project to resolve the android-support dependency from the main APK project 
> using a delvik linking mechanism.
>
> Any ideas would be much appreciated, 
> Thanks
> -Michael
>
>

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

[android-developers] Re: Android maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'

2012-10-25 Thread Patrick Boos
I think I found the problem. It has to do with RUNNING ALL TESTS. Run each 
test case one by one and the problem does not occur. No idea why. Maybe a 
bug in running all tests?

For example. I have my SampleActivityTest extends 
SingleLaunchActivityTestCase<...>.
This will have the problem:
adb shell am instrument -w 
jp.cyberagent.testgrid.android.sample.test/android.test.InstrumentationTestRunner

Adding "-e package jp.cyberagent.testgrid.android.sample.test" has the same 
problem.

whereas this will run it okay:
adb shell am instrument -w -e class 
jp.cyberagent.testgrid.android.sample.test.SampleActivityTest 
jp.cyberagent.testgrid.android.sample.test/android.test.InstrumentationTestRunner

Now the question is: WHY?

On Friday, October 26, 2012 9:12:17 AM UTC+9, Patrick Boos wrote:
>
> Experiencing same problem. If I run the tests through eclipse they run 
> fine on 2.3.
> But installing the apks by hand through adb and then running:
> adb shell am instrument -w 
> ${TEST_PACKAGE_NAME}/android.test.InstrumentationTestRunner
>
> Gives me the given error. So questions is. What is different between how 
> eclipse runs those tests?
>
> On Wednesday, August 29, 2012 5:35:52 PM UTC+9, blizzard wrote:
>>
>> The purpose of Maven ?
>>
>> Configuration controle ... release management ... reporting  the list 
>> goes on and on.
>> However, the problem I experience above occurs on both maven and ant 
>> builds.
>>
>> On Tuesday, August 28, 2012 11:31:27 AM UTC+2, Jason Sesso wrote:
>>>
>>> I'm trying to understand mavens purpose
>>
>>

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

Re: [android-developers] Android phone stolen

2012-10-25 Thread Joel Wirāmu Pauling
http://preyproject.com

First app you should install IMHO.

On 26 October 2012 14:06, Michael Leung  wrote:
> I remember some manufacturers got in-build functions for protection, like
> remote delete all files in the stolen phones
>
>
> On Fri, Oct 26, 2012 at 3:45 AM, TreKing  wrote:
>>
>> On Wed, Oct 24, 2012 at 5:57 AM, Jorge Iván Andrés Contreras Pereira
>>  wrote:
>>>
>>> Someone stole one of my Android devices, I wonder if there is any
>>> possibility of a blockade by Android (Google Play for example) to prevent
>>> the thief can activate it and use it?
>>
>>
>> Change your Google Account password. Not much more you can do as they can
>> factory reset it and use it anyway. But this has nothing to do with this
>> list.
>>
>>
>> -
>> 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
>
>
>
>
> --
> Regards,
> Michael Leung
> http://www.itblogs.info - My IT Blog
> http://diary.skynovel.info - My Blog
> http://www.michaelleung.info - My Homepage
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Android phone stolen

2012-10-25 Thread Michael Leung
I remember some manufacturers got in-build functions for protection, like
remote delete all files in the stolen phones

On Fri, Oct 26, 2012 at 3:45 AM, TreKing  wrote:

> On Wed, Oct 24, 2012 at 5:57 AM, Jorge Iván Andrés Contreras Pereira <
> jo...@contreras.com.co> wrote:
>
>> Someone stole one of my Android devices, I wonder if there is any
>> possibility of a blockade by Android (Google Play for example) to prevent
>> the thief can activate it and use it?
>
>
> Change your Google Account password. Not much more you can do as they can
> factory reset it and use it anyway. But this has nothing to do with this
> list.
>
>
> -
> 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
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

[android-developers] Palestrantes confirmados para o Javaneiros 2012

2012-10-25 Thread tgmarinho
Olá pessoal,

Conheça o Javaneiros: http://facebook.com/javaneiros e
http://www.javaneiros.com.br/2012

Temos os seguintes palestrantes confirmados para o Javaneiros 2012:

 - Felipe Furtado com a Palestra: "Quando o uso de métricas pode
atrapalhar projetos ágeis?"
 - Bruno Borges com a Palestra: "Java EE 6, GlassFish e Maven para
desenvolver com agilidade"
 - Joca Torres com a Palestra: "Bootstraped startups: os 99% dos
casos".
 - Adriano Almeida com Palestra: "Tudo é um grafo… e a gente não
sabia".

Veja os detalhes: http://www.javaneiros.com.br/2012/category/palestrantes/

Javaneiros 2012 está com um ótimo time de palestrantes!! Faça parte
dessa equipe, submeta sua Palestra, Lightning Talk ou mini-curso,
preencha uma proposta para que ela seja avaliada.

Você pode falar de Java, empreendedorismo, Agile ou outro assunto
ligado a TI e desenvolvimento de software.

Prazo para submissões: 03/11/2012

Link: http://www.javaneiros.com.br/2012/10/23/quer-palestrar-no-javaneiros/

Comemore conosco os cinco anos de #Javaneiros

Vlw

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


[android-developers] Re: Android maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'

2012-10-25 Thread Patrick Boos
Experiencing same problem. If I run the tests through eclipse they run fine 
on 2.3.
But installing the apks by hand through adb and then running:
adb shell am instrument -w 
${TEST_PACKAGE_NAME}/android.test.InstrumentationTestRunner

Gives me the given error. So questions is. What is different between how 
eclipse runs those tests?

On Wednesday, August 29, 2012 5:35:52 PM UTC+9, blizzard wrote:
>
> The purpose of Maven ?
>
> Configuration controle ... release management ... reporting  the list 
> goes on and on.
> However, the problem I experience above occurs on both maven and ant 
> builds.
>
> On Tuesday, August 28, 2012 11:31:27 AM UTC+2, Jason Sesso wrote:
>>
>> I'm trying to understand mavens purpose
>
>

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

[android-developers] Re: android.webkit.WebView

2012-10-25 Thread Lew
bob wrote:

> Let's say you want to make a chat app that uses HTML.
>
> Should you make one WebView to display all messages?  Or should you stick 
> every message in its own WebView?
>

That's a rather low-level decision that is influenced by the higher-level 
architecture and design of your app.

Which is ...?

-- 
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: How to detect tablet devices

2012-10-25 Thread bob
 

It's either humor or tumor.

On Thursday, October 25, 2012 2:50:59 PM UTC-5, Lew wrote:
>
> djhacktor wrote:
>
>> public static boolean isTablet(Context paramContext)
>>   {
>> if 
>> (((TelephonyManager)paramContext.getSystemService("phone")).getPhoneType() 
>> == 0);
>> for (boolean bool = true; ; bool = false)
>>   return bool;
>>   }
>>
>
> WTF?
>
> This is humor, right?
>
> -- 
> 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

Re: [android-developers] Google Android LVL CheckLicense on service timeout

2012-10-25 Thread Silvio Marano
Seems a different problems the mine. The apps return timeout because the 
server doesn't respond anything to my app, isn't an intermittent issue 
seems that my package is banned from LVL server for some reason... if I try 
another package name with the same app all works fine.

Il giorno giovedì 25 ottobre 2012 15:50:29 UTC+2, Kostya Vasilyev ha 
scritto:
>
> This has been going on since May. 
>
> https://groups.google.com/d/topic/android-developers/4XXgqIkgahs/discussion 
>
> -- K 
>
>
> > I have an app that use Google license protection service. I have tested 
> > successfully this app(that currently is on Google Play since a couple of 
> > weeks) and the license checking. 
> > 
> > Some days ago I have published another app with the same protection and 
> > another private 
> > 
> > static final byte[] SALT = new byte[] {} 
> > 
> > And the license checking works fine also with this app. 
> > 
> > Today I have updated a single layout of the first app published. I have 
> > tested the app and with my surprise fails the license checking with a 
> > timeout problem (and my Internet connection works fine) 
> > 10-25 01:04:16.689: I/LicenseChecker(2739): Binding to licensing 
> service. 
> > 10-25 01:04:16.709: I/LicenseChecker(2739): Calling checkLicense on 
> service 
> > for myapp.package.comu 
> > 10-25 01:04:16.709: I/LicenseChecker(2739): Start monitoring timeout. 
> > 10-25 01:04:26.719: I/LicenseChecker(2739): Check timed out. 
> > 10-25 01:04:28.579: I/LicenseChecker(2739): Binding to licensing 
> service. 
> > myapp.package.comu 
> > 10-25 01:04:28.609: I/LicenseChecker(2739): Start monitoring timeout. 
> > 10-25 01:04:38.619: I/LicenseChecker(2739): Check timed out. 
> > 
> > I have already tried to change my license response from the console 
> without 
> > success, license checking service doesn't responds anything to my app. 
> > 
> > In the second app with a different package and the same protection logic 
> > that I have published, LVL works without any problem. 
> > 
> > I cannot figure what could be the reason of this issue. 
> > 
> > I have tried also to use the same SALT array without success. 
> > 
> > Now I can only hope that buyers of the app haven't the same issue. 
> > 
> > Any idea? 
> > 
> > --
>

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

2012-10-25 Thread bob
 

Let's say you want to make a chat app that uses HTML.


Should you make one WebView to display all messages?  Or should you stick 
every message in its own WebView?

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

2012-10-25 Thread Lew
djhacktor wrote:

> public static boolean isTablet(Context paramContext)
>   {
> if 
> (((TelephonyManager)paramContext.getSystemService("phone")).getPhoneType() 
> == 0);
> for (boolean bool = true; ; bool = false)
>   return bool;
>   }
>

WTF?

This is humor, right?

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

Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread Kristopher Micinski
On Thu, Oct 25, 2012 at 6:30 AM, alex kyo  wrote:
> Download and install apps from google play without prompt.
> I know there are only 2 ways to achieve that, sign the 3rd party app with a
> system signature or root the device.
> But I think both will cause security trouble and neither will be acceptable
> to the end user.
>
> My question is
> Is it LEGAL to implement APK's silent installation for commercial use?
>
> I was told that our rival company made it recently.
> And they prepare to release their service next month.
>

I'm not sure what you mean, how and what are they doing, and what do
you want to do?

> Does google have any legal regulation on that?
>

Google certainly doesn't regulate it..

kris

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


Re: [android-developers] android.view.MotionEvent

2012-10-25 Thread Romain Guy
Because we don't use serialization. It is parcelable though.


On Thu, Oct 25, 2012 at 10:52 AM, bob  wrote:

> Anyone know why android.view.MotionEvent is not marked as Serializable?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Single Application or Kiosk Mode

2012-10-25 Thread TreKing
On Mon, Oct 22, 2012 at 12:56 PM, Erik Liddell wrote:

> Does android have any plans to do something like this or am i missing
> something?


This would be a question for the Android team, but I suspect they're not
going to commit to confirming any features they're working on.

You can check b.android.com and see if there's a feature request and follow
it if there is, or create one if there isn't.

-
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: The Gmail Public Labels API

2012-10-25 Thread bob
 

Perhaps enable GPU emulation?

On Thursday, October 25, 2012 5:07:21 AM UTC-5, mahesh K wrote:
>
>
>1.  I/TestApp(683): received accounts: [Account {name=mahe...@gmail.com 
> , type=com.google}]
>2. I/TestApp(683): Starting loader for labels of account: 
> mahe...@gmail.com 
>3. I/Choreographer(683): Skipped 39 frames!  The application may be doing 
> too much work on its main thread.
>4.  E/ActivityThread(683): Failed to find provider info for 
> com.google.android.gm
>5. I/TestApp(1033): received accounts: [Account {name=mahe...@gmail.com 
> , type=com.google}]
>6.  I/TestApp(1033): Starting loader for labels of account: 
> mahe...@gmail.com 
>7.  E/ActivityThread(1033): Failed to find provider info for 
> com.google.android.gm
>8.  I/Choreographer(1033): Skipped 57 frames!  The application may be 
> doing too much work on its main thread.
>9.  D/gralloc_goldfish(1033): Emulator without GPU emulation detected.
>10.  I/Choreographer(1033): Skipped 68 frames!  The application may be 
> doing too much work on its main thread.
>
> how to solve this issue...
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Users that have my app installed, how long until they are notified about the update?

2012-10-25 Thread TreKing
On Tue, Oct 23, 2012 at 3:10 PM, Rubbestad  wrote:

> Now, how long does it take until the new apk-file 1.1 goes live?


It varies. Shouldn't be more than a few hours.


> And the users that already have the app installed, how long until they are
> notified and can install the update?


It varies. Shouldn't be more than a few hours.

-
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] Calling Activity from Service

2012-10-25 Thread TreKing
On Thu, Oct 25, 2012 at 3:28 AM, Archana wrote:

> Basically, I want my service to wait till the result from activity B is
> obtained. Please give me some idea of how this implementation can be
> done(and which flag to set in intent)?


There isn't really a concept of "start activity for result" from a Service.
What you can do is restart the Service after the Activity Result with a new
Action type or flag within the Intent to indicate that it's for processing
a result.

-
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: Problem in the map display (gray pixels appear on the map)

2012-10-25 Thread TreKing
On Thu, Oct 25, 2012 at 4:02 AM, Pegun  wrote:

> Does anyone know how to solve this problem?


Show a screen shot of the problem and maybe some small bits of code where
you do your drawing to the map.

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

2012-10-25 Thread bob
Anyone know why android.view.MotionEvent is not marked as Serializable?

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

Re: [android-developers] Android Tablet Lockdown

2012-10-25 Thread TreKing
On Wed, Oct 24, 2012 at 1:36 PM, Alan Honeycutt
wrote:

> My suspicion is that the functionality that I'm seeking can't be achieved
> at the application level and will require a custom ROM, but I thought I'd
> poll this group before embarking down that path.


Based on discussion in this group, I believe your suspicion is correct.

-
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] Google Play outside of US and UK

2012-10-25 Thread TreKing
On Wed, Oct 24, 2012 at 3:28 AM, Frank Reiff  wrote:

> What's the way around that limitation? Surely there's commercial Android
> developers in non-Google Wallet (most of the world) countries?


These are questions for Google Play and / or Wallet and are off-topic for
this list.

-
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] The Gmail Public Labels API

2012-10-25 Thread TreKing
On Thu, Oct 25, 2012 at 5:07 AM, mahesh K  wrote:

> how to solve this issue...


how to ask an actual 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] Android phone stolen

2012-10-25 Thread TreKing
On Wed, Oct 24, 2012 at 5:57 AM, Jorge Iván Andrés Contreras Pereira <
jo...@contreras.com.co> wrote:

> Someone stole one of my Android devices, I wonder if there is any
> possibility of a blockade by Android (Google Play for example) to prevent
> the thief can activate it and use it?


Change your Google Account password. Not much more you can do as they can
factory reset it and use it anyway. But this has nothing to do with this
list.

-
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] Quick Question

2012-10-25 Thread TreKing
On Mon, Oct 22, 2012 at 2:17 PM, Kevin Davis wrote:

> In theory, it should be able to read the variable, but it is not.


Define "read the variable".

-
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] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread TreKing
On Thu, Oct 25, 2012 at 5:30 AM, alex kyo  wrote:

> Is it LEGAL to implement APK's silent installation for commercial use?


That's a question for a lawyer.

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

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

2012-10-25 Thread TreKing
On Tue, Oct 23, 2012 at 2:17 PM, keith mcelhinney  wrote:

> I am changing the source


Questions regarding changing the source are best asked on one of the other
groups, like platform or porting, I think they're called.

-
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] Direct links to download Google apps ( Android )

2012-10-25 Thread TreKing
On Mon, Oct 22, 2012 at 4:51 PM, Digma  wrote:

> My device does not support Google Play.
> I want to get direct links to download Google apps (Maps, GMail, Reader,
> etc.)
> Is it possible?
>

Legitimately? No.

-
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: setBackground() vs setBackgroundDrawable(): why deprecate?

2012-10-25 Thread Streets Of Boston
It's part of the code cleanup, to make the XML attributes conform to the 
Java setter/getter properties and vice versa.

Eg. 
Setting a background in XML is done through the *android:background*attribute.
The corresponding setter of the attribute in Java was *setBackgroundDrawable
*. 
The two attribute names are not the same: *drawable *vs *backgroundDrawable*
.
They decided to make them the same by changing the Java name of this 
attribute to *drawable *as well, resulting in a setter called *setDrawable*.

On Thursday, October 25, 2012 11:06:45 AM UTC-4, kj wrote:
>
> Hi all,
>
> I was looking over the View class source today and noticed that 
> setBackgroundDrawable() has been deprecated as of API 16 in favor of 
> setBackground(). I'm curious as to why this is, as the current 
> View.setBackground() method just calls setBackgroundDrawable(). What was 
> the reason for the change and should I being to switch my calls to 
> setBackgroundDrawable() to setBackground()?
>
> Thanks,
> KJ
>

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

Re: [android-developers] Using Android in a palm

2012-10-25 Thread Kristopher Micinski
that will be impossible, I think, without a lot of hacking on your
part, and I don't believe that device meets CTS hardware requirements.

kris

On Mon, Oct 22, 2012 at 10:55 AM, Alexsander Talles
 wrote:
> I'm really new in this area of the android, and would like to know the
> possibility to download and install the OS on a palm tungsten E2. To re-use
> it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-10-25 Thread Romain Guy
The limit varies from GPU to GPU. 2048 is the minimum maximum but it
can/will be higher on different GPUs. The limit can be queried using
Canvas.getMaxBitmapWidth/Height().
On Oct 25, 2012 6:04 AM, "Chi Ho Kwok"  wrote:

> So I ran into this limit a while ago on one of the views on 
> DigiCal 
> (the
> week one) where you can pinch to zoom, and then, we just decided to disable
> hardware acceleration. But I'm wondering - when 2560x1440 10" tablets are
> released, will a simple content view declared as
>
> http://schemas.android.com/apk/res/android";
> android:layout_width="match_parent"
> android:layout_height="match_parent" />
>
> break on those devices with "W/OpenGLRenderer(29002): Shape path too large
> to be rendered into a texture (2560x13xx, max=2048x2048)"?
>
>
> And if not, how do we check if we have to apply workarounds for max
> texture sizes on the Java side?
>
>
> Kind regards,
>
> Chi Ho Kwok
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] View videostream on Android device from IP Camera by Wi-Fi. Seeking Java Source code

2012-10-25 Thread Anatoliy Taliban
I'm seeking work source code example in Java for viewing videostream from 
IP Camera on Android device by Wi-Fi

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

[android-developers] setBackground() vs setBackgroundDrawable(): why deprecate?

2012-10-25 Thread kj
Hi all,

I was looking over the View class source today and noticed that 
setBackgroundDrawable() has been deprecated as of API 16 in favor of 
setBackground(). I'm curious as to why this is, as the current 
View.setBackground() method just calls setBackgroundDrawable(). What was 
the reason for the change and should I being to switch my calls to 
setBackgroundDrawable() to setBackground()?

Thanks,
KJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OS/X ADB can't find Android devices?

2012-10-25 Thread John Lussmyer
Turns out that MacBookPro's have crappy USB ports.
I had to use a powered USB hub to connect the phone, then it all worked.

On Wednesday, October 24, 2012 9:28:08 AM UTC-7, John Lussmyer wrote:
>
> I'm working on a new MacBook Pro running the latest OS/X 10.8.2.
> When I plug my Android phone (Pantech) into the USB port - nothing 
> happens.  (Well, the phone charges)
> ADB shows no devices.
>
> What step am I missing?
>
>

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

[android-developers] Re: What is the norm these days to save the state of a custom view

2012-10-25 Thread Satya Komatineni
Here is the conclusion I came to on this one

>> 1. Just have the activity or fragment call a dedicated save and restore 
>> methods especially if the base class of your SpecialView is View.

It is not very clean doing it this way. Especially if you could do it
well (even if that meant with some extra coding) by delegating the
state management to the view itself. However this approach (due to
clarity) could be used (like in the SnakeView API sample) if your
intention is to demonstrate something else (like how a canvas works)
and not focus on view state management.

> 2. Use the View's capabilities of onSaveInstanceState() and ignore the "null" 
> from the VIew implementation

This is an intermediate way where we are delegating the state
management to the view but used a quick and dirty approach to plug
into the framework where we don't use the BaseSavedState pattern. I
don't think this is worth the trouble unless again you are using this
to demonstrate something else. The primary problem with this is
namespace collision of the things that you stuff into the veiw state
bundle or needing to recognize your own bundle in the hierarchy.

> 3. Or use the BaseSaveState pattern that is used by things like TextView etc.

I have come to the conclusion that this is the best approach. However
if you are specializing a view group there are strategies you need to
use to deal with the "unique" id problem.

Here is a sample source code for a CircleView that uses this approach
and is pretty complete as to what is required to create a custom view

http://satyakomatineni.com/item/4330

Thanks
http://twitter.com/SatyaKomatineni
http://satyakomatineni.com
http://androidbook.com

On Wed, Oct 24, 2012 at 9:41 AM, Satya Komatineni
 wrote:
> The literature seem to indicate a number of alterantives
>
> 1. Just have the activity or fragment call a dedicated save and
> restore methods especially if the base class of your SpecialView is
> View.
> 2. Use the View's capabilities of onSaveInstanceState() and ignore the
> "null" from the VIew implementation
> 3. Or use the BaseSaveState pattern that is used by things like TextView etc.
>
> Appreciate your thoughts and comments.
>
> Thanks
> Satya

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


[android-developers] I just published on Google Play extremely beatuful and funny life wallpaper

2012-10-25 Thread cybice


Where were a lot of troubles with opengl bags and features. 
I just published on Google Play extremely beatuful and funny life wallpaper 
Bestiary.
There are hundreds of animated creatures with lots of settings. 
Watch a  video http://www.youtube.com/watch?v=hOXNxRm8dxo&hd=1
Or get it on google play 
https://play.google.com/store/apps/details?id=com.icelaba.bestiary

some screenshots:



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

[android-developers] Dalvik and the internal width of 'short' fields

2012-10-25 Thread Tamás Kovács
Hello,

Usually, Java virtual machines are known for using int-sized width for
short fields as well. Only the arrays (short[]) are exception. What
about Dalvik?

E.g. I have a class which contains 50 fields of type "short".
Sometimes in my application, 1 of these classes exist. This means
that the "short" fields should use 1MB of memory, but if Dalvik uses 4
bytes for shorts internally, then this will be 2MB memory usage.

What is the truth?

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


[android-developers] Need to Analyze a Music File

2012-10-25 Thread huntsfromshadow
Hello,

I need some advice on how to accomplish he following for a game.

I don't know if this is easier in SDK or NDK, I'm hoping SDK as I'm
much more familiar with java.

I need to open a selected song on the device and take a sample at
various points in the song.
So the numerical value at say 5,10,15 seconds.

I am not looking at playing the song  just taking the sample at the
points.

Any suggestions on how to open the music file and take the sample?

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 Android LVL CheckLicense on service timeout

2012-10-25 Thread Kostya Vasilyev
This has been going on since May.

https://groups.google.com/d/topic/android-developers/4XXgqIkgahs/discussion

-- K

2012/10/25 Silvio Marano :
> I have an app that use Google license protection service. I have tested
> successfully this app(that currently is on Google Play since a couple of
> weeks) and the license checking.
>
> Some days ago I have published another app with the same protection and
> another private
>
> static final byte[] SALT = new byte[] {}
>
> And the license checking works fine also with this app.
>
> Today I have updated a single layout of the first app published. I have
> tested the app and with my surprise fails the license checking with a
> timeout problem (and my Internet connection works fine)
> 10-25 01:04:16.689: I/LicenseChecker(2739): Binding to licensing service.
> 10-25 01:04:16.709: I/LicenseChecker(2739): Calling checkLicense on service
> for myapp.package.comu
> 10-25 01:04:16.709: I/LicenseChecker(2739): Start monitoring timeout.
> 10-25 01:04:26.719: I/LicenseChecker(2739): Check timed out.
> 10-25 01:04:28.579: I/LicenseChecker(2739): Binding to licensing service.
> myapp.package.comu
> 10-25 01:04:28.609: I/LicenseChecker(2739): Start monitoring timeout.
> 10-25 01:04:38.619: I/LicenseChecker(2739): Check timed out.
>
> I have already tried to change my license response from the console without
> success, license checking service doesn't responds anything to my app.
>
> In the second app with a different package and the same protection logic
> that I have published, LVL works without any problem.
>
> I cannot figure what could be the reason of this issue.
>
> I have tried also to use the same SALT array without success.
>
> Now I can only hope that buyers of the app haven't the same issue.
>
> Any idea?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: [Android-developers]:need help in creating bluetooth file transfer app. urgent

2012-10-25 Thread akash roy
thanx bob i  did that already...here is my sample code :


sender :

File myFile = new File(message.toURI());
nosofpackets=Math.ceil(( (int)myFile.length())/4096);
//mChatService.writeda(
message.getName(), myFile.length());
for(double i=0; i0){
Log.d(TAG, "data is there for writing");
bos.write(buffer);}

i am getting a prob ..i.e when i am sending data from one cell to another
..the receiver file is getting too large and corrupted.plz help me.
its not working properly.

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

[android-developers] Animate an icon that is moving through GeoPoints

2012-10-25 Thread shai ben shimol


i am developing an android application which is based on mapview. 

 

(a live real time bus timing application).

im using the "overlay" class for this purpose (inserting the icons etc'). i 
am recieving an array of GeoPoints, and i need to create an animation in 
which a certain icon is moving through the GeoPoints index route.

 

(in short - an icon that represents a bus which is moving on a certain road 
/ route)

how can this animation be achieved?

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

[android-developers] Factory Reset Log?

2012-10-25 Thread Matt Bromley
Hi. We have a problem with a few HTC Desire S handsets which users claim 
have 'lost all apps by themselves'. It appears that the handsets have been 
factory reset to circumvent MDM. Is there a system log that records if and 
when the phone has been restored to factory settings?

Thanks, Matt.

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

2012-10-25 Thread Silvio Marano
I have an app that use Google license protection service. I have tested 
successfully this app(that currently is on Google Play since a couple of 
weeks) and the license checking. 

Some days ago I have published another app with the same protection and 
another private 

static final byte[] SALT = new byte[] {}

And the license checking works fine also with this app.

Today I have updated a single layout of the first app published. I have 
tested the app and with my surprise fails the license checking with a 
timeout problem (and my Internet connection works fine)
10-25 01:04:16.689: I/LicenseChecker(2739): Binding to licensing service.
10-25 01:04:16.709: I/LicenseChecker(2739): Calling checkLicense on service 
for myapp.package.comu
10-25 01:04:16.709: I/LicenseChecker(2739): Start monitoring timeout.
10-25 01:04:26.719: I/LicenseChecker(2739): Check timed out.
10-25 01:04:28.579: I/LicenseChecker(2739): Binding to licensing service.
myapp.package.comu
10-25 01:04:28.609: I/LicenseChecker(2739): Start monitoring timeout.
10-25 01:04:38.619: I/LicenseChecker(2739): Check timed out.

I have already tried to change my license response from the console without 
success, license checking service doesn't responds anything to my app.

*In the second app with a different package and the same protection logic 
that I have published, LVL works without any problem. *

I cannot figure what could be the reason of this issue.

I have tried also to use the same SALT array without success.

Now I can only hope that buyers of the app haven't the same issue. 

Any idea?

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

[android-developers] Users that have my app installed, how long until they are notified about the update?

2012-10-25 Thread Rubbestad
Hi!

I uploaded an application and after only ten downloads were made I noticed 
a big error in the 1.0 apk-file. I fixed the problem, generated a new file 
and uploaded it. Deactivated the old one, activated the new one and added 
som text about the new 1.1 version. Saved and everything seems fine.

Now, how long does it take until the new apk-file 1.1 goes live? And the 
users that already have the app installed, how long until they are notified 
and can install the update?

Since it was a major error I need the new version to go live as soon as 
possible before people start posting bad comments and give low ratings :/

Thank you!

// Mike, Sweden

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

Re: [android-developers] android.intent.action.HEADSET_PLUG Permission

2012-10-25 Thread Kassim Lovett
 I am in the same predicament of needing to send this action in an intent 
but receiving this security exception in the logs. Has an answer or ANY 
further information been found on this issue? ANY information or help is 
greatly appreciated.

On Monday, August 6, 2012 11:17:39 AM UTC-4, Guy kun wrote:
>
> Having the same issue, stack trace: 
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): java.lang.SecurityException: 
> Permission Denial: not allowed to send broadcast 
> android.intent.action.HEADSET_PLUG from pid=6898, uid=10062
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.os.Parcel.readException(Parcel.java:1425)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.os.Parcel.readException(Parcel.java:1379)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:1995)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.app.ContextImpl.sendOrderedBroadcast(ContextImpl.java:1013)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.content.ContextWrapper.sendOrderedBroadcast(ContextWrapper.java:329)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> xxx.xxx.Service.TelephonyHook.answerPhoneHeadsethook(TelephonyHook.java:53)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> xxx.xxx.Service.TelephonyHook.answerCall(TelephonyHook.java:60)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> xxx.xxx.Service.xxx.processConnectionEvent(xxx.java:719)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> xxx.xxx.Service.ServiceTCPHandler.handleMessage(ServiceTCPHandler.java:89)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.os.Handler.dispatchMessage(Handler.java:99)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.os.Looper.loop(Looper.java:137)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> android.app.ActivityThread.main(ActivityThread.java:4896)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> java.lang.reflect.Method.invokeNative(Native Method)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> java.lang.reflect.Method.invoke(Method.java:511)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
>
> 08-06 16:05:53.915: E/AndroidRuntime(6898): at 
> dalvik.system.NativeStart.main(Native Method)
>
> On Thursday, August 2, 2012 2:15:08 PM UTC+1, Mark Murphy (a Commons Guy) 
> wrote:
>>
>> On Thu, Aug 2, 2012 at 9:00 AM, Incorporate Apps 
>> > wrote: 
>> > As of JB 4.1 Google has introduced some sort of permission check on 
>> this 
>> > broadcastreceiver. Does anyone know what permission is needed, either 
>> in 
>> > sendOrderedBroadcast or in the manifest? 
>> > 
>> > Here is the error 
>> > 
>> > java.lang.SecurityException: Permission Denial: not allowed to send 
>> > broadcast android.intent.action.HEADSET_PLUG 
>>
>> Can you show more of the stack trace? 
>>
>> -- 
>> Mark Murphy (a Commons Guy) 
>> http://commonsware.com | http://github.com/commonsguy 
>> http://commonsware.com/blog | http://twitter.com/commonsguy 
>>
>> Android Training in DC: http://marakana.com/training/android/ 
>>
>

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

[android-developers] Android/Windows Dual boot

2012-10-25 Thread Mad-Doggie
Hi Guys

I'm hoping you guys can help me. I have windows 8 RC on my notebook, and i 
found a link a short while back to download and install android on my PC. I 
created a second partition on my HDD, shoved in the android 4.0 CD and ran 
the installation, selecting ext3 as the file system and selecting GRUB as 
the boot loader. When i restarted, GRUB didn't load, and i was presented 
with my windows 8 login screen. Now i didn't give up there, i spent days, 
on and off trying to get this dual boot to work but i think that the 
windows 8 boot loader is a little fussy and refuses to be kicked off. what 
i managed to do so far is add android to the BCD menu, and all i need to do 
now is point the BCD file to another file that will boot android (I have 
android as a selection in the boot menu of windows, but when i choose it 
the BCD doesn't point it to a bootable file). If anybody knows what file i 
can use to boot into my android (i.e, what does GRUB execute to start the 
booting process of android).

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] The Gmail Public Labels API

2012-10-25 Thread mahesh K



   1.  I/TestApp(683): received accounts: [Account {name=mahesh...@gmail.com, 
type=com.google}]
   2. I/TestApp(683): Starting loader for labels of account: mahesh...@gmail.com
   3. I/Choreographer(683): Skipped 39 frames!  The application may be doing 
too much work on its main thread.
   4.  E/ActivityThread(683): Failed to find provider info for 
com.google.android.gm
   5. I/TestApp(1033): received accounts: [Account {name=mahesh...@gmail.com, 
type=com.google}]
   6.  I/TestApp(1033): Starting loader for labels of account: 
mahesh...@gmail.com
   7.  E/ActivityThread(1033): Failed to find provider info for 
com.google.android.gm
   8.  I/Choreographer(1033): Skipped 57 frames!  The application may be doing 
too much work on its main thread.
   9.  D/gralloc_goldfish(1033): Emulator without GPU emulation detected.
   10.  I/Choreographer(1033): Skipped 68 frames!  The application may be doing 
too much work on its main thread.
   
how to solve this issue...

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

[android-developers] Single Application or Kiosk Mode

2012-10-25 Thread Erik Liddell
Since ICS, android has taken away the ability to override and/or completely 
disable system level navigation (ie, home, back, recent application and 
system settings pop up)   This is obviously to prevent malicious apps from 
essentially taking over the user's device.  But working in an industry 
where a great portion of our clients run retail environments that require 
tablets in a sort of kiosk mode so that customers can not exit the app, and 
go into settings ect. , it is proving difficult to push for them to go 
android vs iOs.   iOs 6 now offers a single app mode that allows the user 
to put a password on the device and once in an app lock it in that app so 
that the user can not exit the app unless they hit the home button three 
times and enter a password.  Does android have any plans to do something 
like this or am i missing something?

Erik 

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

[android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-25 Thread alex kyo
Download and install apps from google play without prompt.
I know there are only 2 ways to achieve that, sign the 3rd party app with a 
system signature or root the device.
But I think both will cause security trouble and neither will be acceptable 
to the end user.

My question is 
Is it LEGAL to implement APK's silent installation for commercial use?

I was told that our rival company made it recently.
And they prepare to release their service next month.

Does google have any legal regulation on that?


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

[android-developers] Problem in smoothscrolling of horizontal scrollview ?

2012-10-25 Thread Mangesh
Hi All,
  I've implemented custom listview with textview and one horizontal 
scrollbar. Horizontal scrollbar is applied to set of images inside it.
  But, I'm facing problem in the smoothness of horizontal 
scrollbar. While scrolling it, it gets stuck in between after scroll of 2-3 
images. Even I've used fling() function which accepts velocity as a 
parameter ! But, still not showing any of the effect?
   So, how to provide smoothness to that horizontal scrollview ?

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

[android-developers] Tablet overlay issue

2012-10-25 Thread keith mcelhinney
I am changing the source for to do the following:

make status bar bigger and located on top
add custom button bar on left side
have apps not be able to cover button or status bar

I have this working but run against a problem that I can not for the life 
of me figure out.  Everything shows up where it should except the overlay 
when a system dialog is show (ie app shutdown unexpectedly).  I have output 
all of the info in the PhoneWindowManager and it is getting the proper 
values.  I even tried by catching the attrs.type == TYPE_SYSTEM_ALERT 
in layoutWindowLw to make sure and it has the right values.  The overlay is 
always in the upper right corner but it is the right size (if it was in the 
lower left I would be all set).  Could the overlay be something different 
than what I am getting in the layoutWindowLw?  If so, where do I change 
that?

Any help would be greatly appreciated!

-Keith

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

[android-developers] Quick Question

2012-10-25 Thread Kevin Davis
Hi there,

I'm having a problem with calling in a Tab. If you look at the following 
code:

TabHost tabs = (TabHost) findViewById(R.id.tabHost); and the following code 
from my xml file:




You will see that I have an id variable named tabHost. In theory, it should 
be able to read the variable, but it is not. Is there a reason why?

Thank you,
Kevin Davis

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

2012-10-25 Thread Jorge Iván Andrés Contreras Pereira
Hi,

Someone stole one of my Android devices, I wonder if there is any 
possibility of a blockade by Android (Google Play for example) to prevent 
the thief can activate it and use it?

Thank you, Best regards.

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

[android-developers] Re: Chances of TELEPHONY_SERVICE return null

2012-10-25 Thread Karl Geerts
Context.TELEPHONY_SERVICE should return "phone" so no ;)

Op woensdag 24 oktober 2012 15:33:37 UTC+2 schreef thejaswi s het volgende:
>
> Is there any chances of getting TELEPHONY_SERVICE as null ?
>  
> TelephonyManager teleman = (TelephonyManager) getBaseContext()
> .getSystemService(Context.TELEPHONY_SERVICE);
>
> I mean is there any chances of getting teleman as null in the above line ? 
>
> Thanks in advance for reply.
>

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

[android-developers] openGL not removing all lines/points

2012-10-25 Thread Karl Geerts
Hello,

I've been looking all over the internet but I cant figure out what I did 
wrong. So I'm trying to graphicly show the audio recording. So it has to be 
realtime. I checked all my points and they are normal. But I get a lot of 
lines (if I use the GL10.GL_LINES) or a lot of static points (when using 
GL10.GL_POINTS). Now I don't know where the lines come from and why they're 
not removed. Anyone that has an idea? Or a great example with a refreshing 
of the vertex array every ondraw method.

I added my renderer class and a screenshot from my phone when testing (made 
with GL_LINES, points is a bit hard to see). 

Any help would be great.
Thanks,
Karl

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

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.application.HeartMonitorMain;
import android.listeners.OnNewDataAvailableListener;
import android.opengl.GLSurfaceView.Renderer;
import android.opengl.GLU;
import android.util.Log;

public class VisualizerRenderer implements Renderer, OnNewDataAvailableListener {
	private static final String TAG = "VisualizerRenderer";

	private static final int bufferSize = 2878;
	private VisualizerView main;
	private FloatBuffer buffer = FloatBuffer.allocate(bufferSize);
	private int counter = 0;
	private float cameraDistance = 10f;
	private float openGlViewWidth = 10f;
	private float amplitude = 0;
	public boolean autoAmplitude = true;
	private long previousFrame;

	public VisualizerRenderer(VisualizerView main) {
		if (main == null) {
			throw new IllegalArgumentException(
	"We need a view to retrieve data!");
		}
		this.main = main;
	}

	@Override
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		previousFrame = System.currentTimeMillis();
		gl.glClearColor(1.0f, 1.0f, 1.0f, 0.0f);
		gl.glClearDepthf(Math.abs(cameraDistance) + 1);
		gl.glViewport(0, 0, main.getWidth(), main.getHeight());
		gl.glMatrixMode(GL10.GL_PROJECTION);
		gl.glLoadIdentity();
	}

	@Override
	public void onSurfaceChanged(GL10 gl, int width, int height) {
		Log.d(TAG + ".onSurfaceChanged", "Changed size (" + width + "," + height + ")");
		gl.glViewport(0, 0, width, height);
		gl.glMatrixMode(GL10.GL_PROJECTION);
		gl.glLoadIdentity();
		gl.glLineWidth(5f);
		float ratio = (float) width / height;
		gl.glClearDepthf(Math.abs(cameraDistance) + 1f);
		gl.glFrustumf(-ratio, ratio, -1f, 1f, 1f, Math.abs(cameraDistance) + 1);
		
		ByteBuffer bBuffer = ByteBuffer.allocateDirect(bufferSize * 4);
		bBuffer.order(ByteOrder.nativeOrder());
		buffer = bBuffer.asFloatBuffer();
		openGlViewWidth = Math.abs(cameraDistance) * 2f * ratio;
		buffer.put(new float[] { -openGlViewWidth / 2f, 0,
openGlViewWidth / 2f, 0 });
		counter = 4;
	}

	@Override
	public void onDrawFrame(GL10 gl) {
		gl.glMatrixMode(GL10.GL_MODELVIEW);
		gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
		gl.glLoadIdentity();

		GLU.gluLookAt(gl, 0f, 0f, cameraDistance, 0f, 0f, 0f, 0f, 1f, 0f);
		gl.glFrontFace(GL10.GL_CW);
		gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
		gl.glColor4f(1f, 0f, 0f, 0f);
		if (counter != 4) {
			gl.glLineWidth(5f);
		} else {
			gl.glLineWidth(0.1f);
		}
		
		buffer.position(0);
		gl.glVertexPointer(2, GL10.GL_FLOAT, 0, buffer);
		gl.glDrawArrays(GL10.GL_POINTS, 0, counter);

		gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
		gl.glFlush();
		synchronized(this){
			gl.glFinish();
		}
		int error = gl.glGetError();
		if (error > 0) {
			Log.e(TAG + ".onDrawFrame", "OpenGL end error = " + error);
		}
		long fps = (System.currentTimeMillis() - previousFrame);
		if(fps > 0){
			HeartMonitorMain.getInstance().setFps((int) Math.floor(1000/fps));
		}
		HeartMonitorMain.getInstance().setAmplitude();
		previousFrame = System.currentTimeMillis();
	}

	@Override
	public void newDataAvailable(byte[] buffer) {
		Thread t = new Thread(new VisualizeDataMonoRunnable(buffer));
		t.start();
	}

	@Override
	public void endOfDataInput() {
		main.onPause();
		ByteBuffer bBuffer = ByteBuffer.allocateDirect(bufferSize * 4);
		bBuffer.order(ByteOrder.nativeOrder());
		buffer = bBuffer.asFloatBuffer();

		buffer.clear();
		buffer.position(0);
		buffer.put(new float[] { -openGlViewWidth / 2f, 0,
openGlViewWidth / 2f, 0 });
		counter = 4;
	}

	@Override
	public void startOfDataInput() {
		main.onResume();
	}

	private class VisualizeDataMonoRunnable implements Runnable {

		private byte[] buffer;

		public VisualizeDataMonoRunnable(byte[] buffer) {
			super();
			if (buffer == null) {
throw new IllegalArgumentExcepti

[android-developers] Re: My first app, live wallpaper open gl 2.0

2012-10-25 Thread 주노파파
congratulation! let's use, now.

2012년 10월 25일 목요일 오전 8시 5분 5초 UTC+9, cybice 님의 말:
>
> You can preview at youtube
> http://www.youtube.com/watch?v=hOXNxRm8dxo&hd=1
> google play]
> https://play.google.com/store/apps/details?id=com.icelaba.bestiary
>

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

[android-developers] Replacing the Incoming Call Screen

2012-10-25 Thread Eric Brynsvold
This has been addressed a few times in the past on this forum, but nothing 
in the last year+, so I wanted to see if anything had changed.  Is it at 
all possible to hide the incoming call screen in order to display a small 
overlay for the incoming call?  I can launch my app by listening to 
the android.intent.action.PHONE_STATE action, but I can not abort the 
broadcast (as it is non-ordered) and I can not hide the default screen.  I 
found an app on the Play 
Storethat 
claims to do this, but it doesn't work on my Galaxy Nexus (4.1.2) or 
my Galaxy S1 (2.3.7), so they may be using some sort of hack that doesn't 
work on all phones.

I understand the security concerns for opening this up to app developers, 
but I think it would still be very useful if we could figure out a way to 
make it safe for the users as well.

Thanks,
Eric Brynsvold

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OS X 10.8 (Mountain Lion) on MacBook Pro: adb devices and adb wait-for-device not working??

2012-10-25 Thread John Lussmyer
Did you ever find a solution?  I'm currently seeing the same problem.

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

[android-developers] Edit/remove entries in the Settings.secure database

2012-10-25 Thread James King
I am working on an issue with my Xperia P (but the issue is also present on 
the Xperia S and Sola) with the US firmware version.  There is an APN that 
can't be removed for T-Mobile.  I was able to remove it from the 
telephony.db but in the settings.secure database there is an entry for 
tether_dun_apn and tether_dun_required.  I want to remove those two 
entries.  I have a rooted phone but when trying to remove those entries 
from the database I get an error 5: database is locked message.

Anyone have a way to can edit/remove those entries?

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

[android-developers] OS/X ADB can't find Android devices?

2012-10-25 Thread John Lussmyer
I'm working on a new MacBook Pro running the latest OS/X 10.8.2.
When I plug my Android phone (Pantech) into the USB port - nothing 
happens.  (Well, the phone charges)
ADB shows no devices.

What step am I missing?

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

2012-10-25 Thread Duẩn Nguyễn Đức
Hi,
 
I'm developing an android application. I want to create a web service to 
connect database server. And use  ksoap2 to connect to webservice.
Can anybody help me, how to security in webservice and how to connect from 
android to that webservice. Has anything like session
 
I hace searched on the internet, found some thing like:
 List headers = new ArrayList(); 
headers.add(new HeaderProperty("Authorization", "Basic XX")); 
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); 
Object result = null;
final Object response = androidHttpTransport.call(SOAP_ACTION, envelope,headers
);
 
http://stackoverflow.com/questions/5501743/webservice-http-authentication-ksoap2-on-android
 
but i don't know how it security?
 
Can anybody help me, thanks a lot. I'm new bee
 

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

Re: [android-developers] play Audio one by one automatically

2012-10-25 Thread hardik shah
Use this method and call next song on this method.

Mediaplayer.setOnCompletionListener(new OnCompletionListener()
{
 @Override
public void onCompletion(MediaPlayer mp) {
 }
});

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

[android-developers] Change EditText text

2012-10-25 Thread AbsurdExistence
Hi,

I'm making an app to communicate with an arduino with a bluetooth shield. 
I'm starting off with the bluetooth chat example and just adding what I 
need. I created an activity with an array of check boxes (because the app 
is for controlling the polarizations of an antenna array) and I have a 
submit button in the view also. I want to click the submit button and have 
the information about the check boxes be sent to the EditText field in the 
bluetooth chat example and then be able to click send. For some reason, I'm 
not able to edit the EditText field in the app and the app keeps crashing. 
I'm trying

((EditText) findViewById(R.id.edit_text_out)).setText("test");

This is in the method that is called by the submit button below my array of 
checkboxes.

Thanks for the help

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

[android-developers] Send SMS of 160 character

2012-10-25 Thread Pallavi
Hi,

I am trying to send SMS of full 160 character. By 
using GsmAlphabet.gsm8BitUnpackedToString(pdu,0,160) , I am able to send 
SMS of 160 character but it dose not support character 
like ~,^,{,},[,],|,\,€ since it returns decimal of 4 while other character 
returning decimal of 2 for GSM 7-bit default alphabet.
Please , let me know if there is any way to do it.

Thank You,
Pallavi.

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

[android-developers] gcm starter. problem with google's demo gcm project.

2012-10-25 Thread gillib
Hi. I recently started to program android applications.
Before I started I had only C# experience. And now I'm writing the code in 
Java.


I read google's gcm tutorial and it was very helpful!
But I have a problem. I can't manage to import the server side program as a 
project. I want to do it for a few reasons: to get errors when i change the 
code, to be able to debug it. and also because I have trouble connecting 
the program to a My SQL server (problem with importing the JDBC driver 
file).
I wonder:
Which compiler the developers used?
?What kind of project is it? regular java project? Web project ect
How can I import it into eclipse?
How can I import it into the compiler the developers used?

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

[android-developers] Re: Is this a bug at TabHost / TabActivity?

2012-10-25 Thread hobart
Hi:
I want  to you know ,  when you write the two codes in your 
TabActivity:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
WindowManager.LayoutParams.FLAG_FULLSCREEN); this means your TabActivity is 
full screen ,however ,your IntentGroup1.class is not  full screen .Because 
your View show in the IntentGroup1.class,so the two codes 
:requestWindowFeature(Window.FEATURE_NO_TITLE);getWindow().setFlags(WindowManager.LayoutParams
 
 ,FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)
should write your IntentGroup1.class.i hope it will do help you.
   sorry ,my english is not good ,i hope you understand.

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

[android-developers] Re: My First App

2012-10-25 Thread Michael Knight
yes it works but wouldn't that technically be considered a bug as the other 
packages don't require elevation?

On Thursday, October 4, 2012 11:29:54 PM UTC-7, Aristo Michael wrote:
>
> Thanks its works for me too
>
>
>>

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

2012-10-25 Thread Hussein Mohamed Elbaroudy
I'm developing a painting app, with canvas and SurfaceView, and I want to 
record user operations, and generate video.

In this moment I'm trying: 

public static Bitmap captureView(View v) {
Log.v(CAPTURE_TAG, "init");
v.setDrawingCacheEnabled(true);
v.buildDrawingCache(true);
Bitmap b = Bitmap.createBitmap(v.getDrawingCache());
//v.destroyDrawingCache();
v.setDrawingCacheEnabled(false); // clear drawing cache
Log.v(CAPTURE_TAG, "Fin:");
return b;
}
and I call this every 50ms, using timer, and AsynTask, on AsynkTask, on 
onPostExecute method I save the bitmap in external storage:

public class takeCaptureTask extends AsyncTask {

@Override
protected void onPostExecute(Bitmap result) {
Log.v("taskCapt", "Fin - InitSave");
new saveCaptureTask().execute(result);
}

@Override
protected void onPreExecute() {
super.onPreExecute();
Log.v("taskCapt", "init");
}

@Override
protected Bitmap doInBackground(View... params) {
return Utils.captureView(params[0]);
}
}

And finally generate video using NDK and ffmpeg.

My problem is the performance, using this, every screenshot take 200ms 
(5FPS), and I need at least 15 FPS.

My questions are:
1- I'm in the correct way to do the screen recording without root? 
2- can I take screenshot of canvas using other methods?
-> I found two methods, this, and save copy of canvas bitmap, but 
two solutions have very poor performance
3- It's posible take screenshots from NDK without root? in this case, 
how?
4- It's faster save data to External Storage using NDK?
5- How buffer a lot of images to process it later? 

My appologies for my bad English.

Thanks a lot for your help!

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

[android-developers] Re: SDK Manager does not fetch any package for installation (no error reported)

2012-10-25 Thread Deng Xiufeng
I met the same  issue on Ubuntu on latest sdk 20.0.3.
And the options  --proxy-host 1.234.567.890 --proxy-port 88 don't help
 
On Tuesday, July 31, 2012 6:11:33 PM UTC+8, Rushabh Kanti wrote:
>
> I have Android SDK Manager v20 on Windows 7 32 bit
>  
> It does not fetch any package for installation. And there is no error 
> reported
>  
> *
>
> Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
>
> Fetched Add-ons List successfully
>
> Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
>
> Done loading packages.
>
> Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
>
> Fetched Add-ons List successfully
>
> Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml
>
> Done loading packages.
>
> Fetching URL: 
> https://dl-ssl.google.com/android/repository/repository-7.xml
>
> Done loading packages.
>
> Fetching URL: 
> https://dl-ssl.google.com/android/repository/repository-7.xml
>
> Done loading packages.
>
> But there is nothing fetched. What could be the reason.
>
> *
>
>

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

[android-developers] Dalvik VM performance

2012-10-25 Thread Etienne Fortin
I've been wondering for a long time about performance on Android and how it 
can be improved. One area I think is overlooked is Dalvik. From what I can 
understand, Dalvik is a good VM in concept but lack the latest and greatest 
in VM technology. I've seen benchmark compared to other VM that are not 
very positive for Dalvik and the Android plattform. Or look at Android 
Turbo where a highly optimized Dalvik VM outpace anything you can challenge 
it with. And one thing I don't quite understand is the lack of focus on 
improving performance of the VM, given that it is central to all the apps 
on Android. 

So one thing I was thinking is why not impement ahead of time compilation 
at installation time? People are used to have some waiting time while 
installing app. Why not use that time to compile DEX to native codes right 
away and store only that native code with the class structure? Was it tried 
before?

Etienne

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

[android-developers] Saving Images to SD Cards on All Devices

2012-10-25 Thread Kyle Dalrymple
Hello all,

My app involves selecting an image from the device's gallery and then 
saving a smaller version of that image to a folder on the SD Card. The 
problem I'm running into is that some users are reporting that the images 
aren't getting saved to the folder. Most users, however, report that the 
app is working fine and I can't tell what is happening to these other few 
users. So far, the devices that are reported to be running into the issue 
are as follows: Huawei T-Mobile myTouch, Samsung GT-S5830i, HTC Evo 4G, and 
the Samsung Galaxy S2. I myself have a Motorola Atrix 2 and I've had no 
such issue.

My manifest has the tag in it already. Most of my code comes from 
stackoverflow solutions to get an image from the gallery and then save it 
to the sd card.

Getting image from gallery:

public void onActivityResult(int requestCode, int resultCode, Intent data) 
{
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) 
{
 switch(requestCode) 
 {
case SELECT_IMAGE:
 image_dir = getPath(data.getData());

 Bitmap myBitmap = decodeFile(new File(image_dir));

 resizedBitmap = Bitmap.createScaledBitmap(myBitmap, 
(int)(myBitmap.getWidth()/2), (int)(myBitmap.getHeight()/2), true);
 break;
 }
}
else
{
 image_dir = "None";
}
}

Saving the image to the SD Card:

OutputStream fOut = null;
File file = new 
File(Environment.getExternalStorageDirectory()+"/MyApp",imgname+".jpg");
fOut = new FileOutputStream(file);

resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);
fOut.flush();
fOut.close();

And this all seems to work out fine for most users, but for some users the 
image isn't getting saved. Could this be a permissions issue or some sort 
of setting I've overlooked in the code itself? Any help is appreciated.

Thanks,

Kyle

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

[android-developers] Direct links to download Google apps ( Android )

2012-10-25 Thread Digma
Hi!
My device does not support Google Play. 
I want to get direct links to download Google apps (Maps, GMail, Reader, 
etc.)
Is it 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

[android-developers] Google Play outside of US and UK

2012-10-25 Thread Frank Reiff
Hi, 

I'm a Mac developer living in Luxembourg (Europe). As far as I can see the 
only way of selling on Google Play is via a Google Wallet merchant account, 
but Google Wallet doesn't support Luxembourgian accounts. What's the way 
around that limitation? Surely there's commercial Android developers in 
non-Google Wallet (most of the world) countries?

Best regards,

Frank

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

[android-developers] Having issue with smiley's integration in android

2012-10-25 Thread praveen g
 0 down vote 
favorite
 
*1*
   
In my app i need to integrate commenting functionality which includes 
smiley.And i am successfully showing the smiley's in android edit text 
box.But i am struck at... after writing the complete comment with smiley's 
user will click send.After user clicking the enter i need to send the 
comment as a text(need to replace smile with its code as string like ":-)") 
. How to convert that smiley image to its respective code. Please any one 
help me to get out of this.

And to convert text to smileys i am using the bellow code

ImageGetter imageGetter = new ImageGetter() {
public Drawable getDrawable(String source) {
Drawable d = getResources().getDrawable(
cstlistemoji.images[index]);
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
}
};
cs = Html.fromHtml(
"", imageGetter, null);
System.out.println("cs is:- " + cs);
edttxtemoji.append(cs);


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

Re: [android-developers] start service from service

2012-10-25 Thread djhacktor
Make alarm watcher which can check if your service is running at some 
duration if not it shoot up your service !! need more help let me noe

On Thursday, 25 October 2012 00:54:38 UTC+5:30, Subodh Nijsure wrote:
>
> On Wed, Oct 24, 2012 at 12:46 AM, Live Happy 
> > 
> wrote: 
> > I have a service in my application but this service stop working after 
> time 
> > and i want to keep the service keep working without stopping and for 
> that i 
> > try to start the same service from onDestroy method when it dieing but 
> its 
> > not work even the written log not appear ,so  it is possible to call the 
> > service from itself and if it  not may i create another service who do 
> the 
> > same work and they call each other when one of them stopped, so when in 
> > onDestory i cant call it so how to call it?, wish that someone can help 
> me 
> > with this situation thx on advance 
>
> Have you tried returning START_STICKY in onStartCommand() of the 
> service. It is supposed to keep the service running till user 
> explicitly stops the service. 
>
> Ref: 
> http://developer.android.com/reference/android/app/Service.html#onStartCommand%28android.content.Intent,%20int,%20int%29
>  
>
> -Subodh
>  
> > 
>

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

[android-developers] Integrate web analytics with Google Play stats

2012-10-25 Thread Dale Bertrand

Does anyone know if it's possible to integrate my web analytics with my 
Google Play stats?  I'd like to know where my visitors who _download_ my 
app are coming from.  Right now I can only see who clicks on the Google 
Play button on my website.

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

[android-developers] Getting custom input/info from peer devices in WiFi Direct

2012-10-25 Thread A. Farhan
Hello. I am new to this Android programming. Is it possible to display any 
custom data from other WiFi Direct peers other than client info?

The scenario is like this:

Client A & B uses WiFi Direct app with custom coding. The custom coding is 
an additional button to prompt for status text and stored it into a String 
variable. Let say client A sets his status msg "I am online!". So, client A 
and B start connecting to each other. And my question is, "Is it possible 
Client B to get the client A status message to be displayed in Client B 
WiFi Direct app?"

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

[android-developers] ACTION_SET_ALARM intent failed with "Unfortunately, Clock has stopped." message

2012-10-25 Thread Konstantin Gavriel
App failed  on Samsung Galaxy Note running ICS version 4.0.4, but on most 
works fine.

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

2012-10-25 Thread Synaion
Hi, I don't mean to thread jack but i've searched all over the internet on 
this already and i've found nothing. Could any of you familiar help me?



I've quadruple checked that $signature, $data, and $pubkeyid exists and is 
imported.
but for some reason i am still getting the result "bad". 

If you guys think that its still my pubkeyid then please tell me step by 
step on how to get
the android developer public key to .pem because heres what i've done.
1. installed openssl for windows 64 
2. ran the script "openssl enc -base64 -d -in publickey.base64 -A | openssl 
rsa -inform DER -pubin > pub.pem"
3. took pub.pem and uploaded it to server
i've also tried to delete the linebreak after END but i get errors on not 
given right to openssl_verify.

Additionally i've ran the same variables through BillingSecurity and i got 
a success. But the same variables just don't seem to be working here.

My openssl version on the server is 1.0.0

On Tuesday, June 21, 2011 1:50:58 PM UTC-7, facetious wrote:
>
> Just to make your life a little easier (and remove some dependency on 
> non-PHP tools): 
>
> $public_key_str = " portal. Load from DB or file if you choose.>"; 
> $cert = "-BEGIN PUBLIC KEY-\r\n" . 
> chunk_split($public_key_str, 64, "\r\n") . "-END PUBLIC KEY-"; 
>
> No more relying on openssl pipes for you! :) 
>
> Cheers, 
> Ian MacDonald 
>
> On Apr 25, 10:30 pm, Nate Totura  wrote: 
> > Thanks for the help, you were correct, the data I was using to test 
> > everything was in a file an had an extra newline appended to the end. 
> > 
> > On Apr 20, 7:37 pm, Nikolay Elenkov  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > On Thu, Apr 21, 2011 at 6:24 AM, Nate Totura  
> wrote: 
> > 
> > > > Still no luck, I am pretty confident I am sending the PHP routines 
> > > > correctly formatted data. 
> > 
> > > > A followup question: 
> > > > How can I verify the signature and data using only openssl, here is 
> > > > what I am currently doing: 
> > 
> > > >   openssl dgst -sha1 -verify public.key.ssl -signature signature.bin 
> > > > data 
> > 
> > > What you are doing is correct. Just make sure that the data file has 
> > > no trailing newlines (use a binary editor to remove them, or save as 
> > > binary from your Java or PHP program). I just tried it with a response 
> from 
> > > Market, it verifies OK.

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

[android-developers] http post NetworkOnMainThreadException

2012-10-25 Thread aueddonline
Below I have some of my MainActivity class which starts by making a http 
post request to the web server running on my development laptop. The 
webpage outputs some JSON also shown below; However I am getting 
a NetworkOnMainThreadException when running the app. I can go into the 
browser within the emulator and bring up the php page no problem. I also 
have the following permission set in my manifest xml; **. Any Help 
out there?

[{"city_id":"1","city_name":"Adotol"},{"city_id":"2","city_name":"Aberdeen"}][{"city_id":"1","city_name":"Adotol"},{"city_id":"2","city_name":"Aberdeen"}]
  
 


public class MainActivity extends ListActivity {


JSONArray jArray;
String result = null;
InputStream is = null;
StringBuilder sb=null;


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.id.list);


ArrayList nameValuePairs = new ArrayList();
//http post
try{
HttpClient httpclient = new DefaultHttpClient();
String phpaddress = "*http://10.0.2.2/androidselectservice.php*";;
System.out.println("'"+phpaddress+"'");
HttpPost httppost = new HttpPost(phpaddress);
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
}catch(Exception e){
Log.e("log_tag", "Error in http connection "+e.toString());
}

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

[android-developers] build another voice to voice recognition ...

2012-10-25 Thread catafest
Hi .
I want to create a voice speaker for my android .
For example using my voice to respond on voice recognition .
Where I found the infos to build the new voice ?
Thank you very much .
Regards.

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


[android-developers] 2048 pixels limit of hardware acceleration

2012-10-25 Thread Chi Ho Kwok
So I ran into this limit a while ago on one of the views on 
DigiCal 
(the 
week one) where you can pinch to zoom, and then, we just decided to disable 
hardware acceleration. But I'm wondering - when 2560x1440 10" tablets are 
released, will a simple content view declared as

http://schemas.android.com/apk/res/android";
android:layout_width="match_parent"
android:layout_height="match_parent" />

break on those devices with "W/OpenGLRenderer(29002): Shape path too large 
to be rendered into a texture (2560x13xx, max=2048x2048)"?


And if not, how do we check if we have to apply workarounds for max texture 
sizes on the Java side?


Kind regards,

Chi Ho Kwok

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

[android-developers] Using Android in a palm

2012-10-25 Thread Alexsander Talles
I'm really new in this area of the android, and would like to know the 
possibility to download and install the OS on a palm tungsten E2. To re-use 
it.

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

[android-developers] Re: application in Long press Home button(Recent task info)

2012-10-25 Thread Robert Dautov
If you want to hide your task from Recent tasks then add following flag to 
intent when starting activity of the task:

FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS

If this flag is set, your task will never be showen in Recent tasks.

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

2012-10-25 Thread Ai Eh
I'm also interested. Or at least change refresh rate in case of a low 
signal. I'm leaving next to the border and it's quite annoying that I 
cannot force phone to stay in home network as long as possible.

пятница, 15 января 2010 г., 10:24:40 UTC+1 пользователь SGAdrian написал:
>
> Hi,
>
> is there a way to change network operator or list available networks
> from the public API:s?
>
> BR,
> Sven
>
>

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

[android-developers] Why android same UID to two different applications.

2012-10-25 Thread Noor
Hi,

I know the word *"different" *is little bit controversial in the title 
because I am using same package name in both applications but both 
applications have different signing certificates. I know that package name 
has to be different if I want them to be treated different. 

What I am not able to figure out is that why android assigns same UID to 
another application if it has the same package name of prior application 
but signed from different certificate. Is there any role certificates plays 
in the assignment of UID to application. If not then this will result in a 
security flaw because a hacker can see the secret items from keystore of an 
application if he install his malware application with same package name 
even if it is signed from different certificate (Installation of malware 
application requires deletion of actual app).

Thanks,

Noor

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

[android-developers] Battery Draining increases on rooted 4.1.1

2012-10-25 Thread Chao Xu
Hi All,

I built the AOSP downloaded from google's official site, Model number is 
"Full AOSP on Maguro", version is 4.1.1. My device is Galaxy Nexus. 

After I flashed the phone, I found that the battery draining surged. In 
fact, after I had turned on the airplane mode and turned off the screen, 
and I had turned off all background apps, the current was around 50mA, and 
sometimes surged up to 200mA. On the other hand, on my another Galaxy 
Nexus, which is running the off-the-shelf Android 4.1.2, the current was 
around 10mA when under the same situation.

I don't know whether this is a known issue. Please help! 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] Can a modifier key fallback on an action?

2012-10-25 Thread Nick Badal
I'm working on an input device that has a button that I'd like to act both 
as a home button when pressed by itself, but also work as a modifier for 
the other buttons on the device.

I know you can do this in the kcm file with other buttons, and have 
something like:

key ESCAPE {
> base:   fallback BACK
> alt, meta:  fallback HOME
> ctrl:   fallback MENU
> }


Is it possible to have something like:

key CTRL_LEFT {
> base:   fallback HOME
> {SOMETHING HERE}:   CTRL_LEFT
> }


so that I can press that button with another button and have it not 
fallback on HOME?

Thanks in advance! :D

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

[android-developers] How to reproduce android monkey crash?

2012-10-25 Thread foxeater


i test the smart phone of android, in command line mode for input :

adb shell monkey -v 1

the result 
is--:
procrank:
// Exception from procrank:
java.io.IOException: Error running exec(). Command: [procrank] Working 
Directory: null Environment: null
..
.
.
..
...
.
// anr traces status was 0
meminfo:
// meminfo status was 0
** Monkey aborted due to error.
Events injected: 21566
:Dropped: keys=6938 pointers=1 trackballs=0 flips=0
## Network stats: elapsed time=454194ms (0ms mobile, 0ms wifi, 454194ms not 
connected)
** System appears to have crashed at event 21566 of 100 using seed 0

-

Could i reproduce the event that 21566 of 10 using seed 0?

and just do the single event 21566 of 10?

(someone tell me the method that "adb shell am start",but i am not 
proficient this command.)
android  
command-line
 adb  
monkey

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

[android-developers] displaying text in a language not installed in Locale

2012-10-25 Thread BasilwithTomato
Hi, 

I am doing a research project where I'd need an app to be translated in 
Telugu (south-eastern Indian language). It is mentioned that JellyBean 
officially supports this language 
(http://www.android.com/about/jelly-bean/). I have a translated xml file in 
my /values folder for telugu and plan to use this by having a toggle button 
in my app that would switch over to telugu. However, this seems to ask for 
the language to installed in the Locale. And I don't see the Telugu in 
Languages & input. Is there a way I can download and install the font 
(without having to root) ? (I use a Nexus 7). My simple requirement is for 
the strings in my apps to be displayed in telugu. A cumbersome alternative 
seems to be converting the text into images (with translated text).

Any pointers would be very helpful.

Cheers


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