[android-developers] Inherited a mostly working app from Eclipse/PhoneGap. Brought up in AndroidStudio and trying to figure it all out. If my target .apk has no .class files and is all .html .js and

2016-08-18 Thread brian . scott
Hello friends - 

Long time java developer here with plenty of experience in the Eclipse 
arena, server side stuff mostly with j2ee.  

Anyways, I inherited an application from a guy that literally went out for 
a cigarette after lunch and never came back.  I've got the source project 
from his workstation and working .apks from tablet devices. 

When I look in the .apk that runs on the tablet, all I have is .html and 
.js pages.  Cordova is referenced in several places. 

I decided to try to come up to speed on the newest tools and brought his 
project folder up in Android Studio.  I'm seeing several of the .js and 
.html files that arrive in the .sdk.  

Curiously, I see a bunch of java files, which won't compile due to missing 
dependencies.  The jars they want just aren't in the resources lib on his 
machine.  I download 'em and attach them, and I get compilation and further 
in the build process. 

But I'm trying to figure out why I have java files at all.  To what end?  

Also, I'm a bit lost as to how the .apk that got published wound up with a 
bunch of cordova/.../../.js files in it.

Any help for the new idiot would be greatly appreciated.  Thanks.




-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/3ef82f7b-f9e4-4b03-89a1-02d8f02b9cff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] can inapp billing permission be optional?

2016-02-03 Thread Scott Hochberg
Hi,

Is it possible to make the inapp billing permission an optional feature of 
an app, with the user determining whether or not to include it when 
installing the app?

If so, how?   I know that device features  can have optional permissions 
through the user-feature parameter, but that doesn't seem to work for 
something like this which is not strictly a feature like a camera.

Thanks.

Scott

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a6296b77-6c7b-4683-8c2c-f33a5a931c44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Audio recording problem - fake sample rate

2016-01-14 Thread Robert Scott
Not even 44,100 works correctly on the LG-G3.  I got one of my customers to 
try an experimental version of my app on their LG-G3.  This experimental 
version used 44,100 samples per second right from the beginning.  It turns 
out that on the LG-G3 this customer has, the audio is first sampled at only 
8000 samples per second, and the up-sampled to create 44,100 samples per 
second, which does not contain all the frequency content it would have had 
if it were sampled at 44,100 to being with.  I see no way around it.


On Wednesday, December 23, 2015 at 11:52:37 AM UTC-6, Robert Scott wrote:
>
> I first call *AudioRecord.getMinBufferSize(22050...*  If this returns an 
> error (<1) then I call *AudioRecord.getMinBufferSize(44100...*  Whichever 
> one of these calls succeeds, I use that rate in my call to "*new 
> AudioRecord(..,sampleRate..)*"
>
> I don't actually have one of these misbehaving devices, so my experiments 
> so far have been with the help of my customers.
>
> -Robert Scott
>  Hopkins, MN
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1f4c4b7a-8490-4151-963c-c2ed43837755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Audio recording problem - fake sample rate

2015-12-23 Thread Robert Scott
I first call *AudioRecord.getMinBufferSize(22050...*  If this returns an 
error (<1) then I call *AudioRecord.getMinBufferSize(44100...*  Whichever 
one of these calls succeeds, I use that rate in my call to "*new 
AudioRecord(..,sampleRate..)*"

I don't actually have one of these misbehaving devices, so my experiments 
so far have been with the help of my customers.

-Robert Scott
 Hopkins, MN

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/061e6451-424d-4d40-b262-b869d7371ab5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Audio recording problem - fake sample rate

2015-12-23 Thread Robert Scott
There is an audio recording problem with some devices, even newer ones.  
The native audio recording sample rate appears to be a puny 8000 Hz, which 
means it can only render frequencies up to 4000 Hz.  This is a problem for 
my piano tuning app which must detect frequencies above 4000 Hz. to tune 
the top few notes.

So far I have only gotten reports of this problem on certain models of the 
LG G3 and the Nexus 7 (Asus).  The worst part is these devices do not 
return an error when we try to set up an audio input stream and request a 
sample rate of 22050 Hz.  Instead they take their 8000 samples per second 
and up-sample by duplicating each sample 2 or 3 times to give us audio that 
appears to be sampled at 22050 samples per second as requested, but it 
still cannot faithfully render frequencies above 4000 Hz, so our piano 
tuning app gives very strange results for the top few notes on the piano.

Does anyone here work with audio input apps and can you confirm this 
problem on any other devices?  You can test it out by sideloading our app 
from

  www.tunelab-world.com/atl.html

It will run in free-trial mode well enough to test this out.  To test for 
the sampling rate problem, tap on the large "A4" and select the note "B7" 
by tapping on the "7" first.  Then on a different device or computer, 
generate a tone at 3950 Hz.  One such on-line source is 

  onlinetonegenerator.com/

If this tone produces just one peak in the spectrum display at 3950 Hz, 
then everything is fine.  But if this produces two peaks - one at 3950 and 
the other at 4050, then you have a device that is sampling at 8000 Hz and 
then up-sampling to feed our app a fake 22050 samples per second.

-Robert Scott
 Hopkins, MN

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5ab48a86-f5a9-4996-93e8-f7abb7855104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: SSLHandshakeException errors on Android 5.0?

2014-11-19 Thread Scott Jackson
No, I am using a custom SSLSocketFactory implementation which accepts Self 
Signed Certs: 
https://github.com/daneren2005/Subsonic/blob/master/src/github/daneren2005/dsub/service/ssl/SSLSocketFactory.java

On Saturday, November 15, 2014 3:01:01 PM UTC-8, Kostya Vasilyev wrote:
>
> Do you use SSLCertificateSocketFactory (with caching?)
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/net/SSLCertificateSocketFactory.java
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/net/SSLSessionCache.java
>
> A lot of servers have been tweaked recently because of the SSLv3 
> vulnerability.
>
> This socket factory will try to use any previously negotiated (and cached) 
> protocols and ciphers, potentially failing.
>
> There is are no methods to flush the caches (Android API Council, 
> hello?)...
>
> ...but it works to delete the files (see SSLSessionCache constructor) and 
> to then reboot the device (so flush anything already loaded into memory).
>
> -- K
>
>
> 2014-11-16 1:38 GMT+03:00 Scott Jackson >
> :
>
>> I am getting a very similar error report from some users.  It seems that 
>> only people who are connecting to a default setup of Subsonic are having 
>> the issue.  Anyone who uses a NGinx/Apache front end aren't having the same 
>> issue.  The server is based on Jetty 6.  Any idea what the problem might be?
>>
>>
>> On Thursday, November 6, 2014 3:25:42 PM UTC-8, Nathan wrote:
>>>
>>> I've had two people in a row report the exact same thing with Android 
>>> 5.0 on Nexus 9. 
>>>
>>> One of them got me a log. 
>>>
>>> I am seeing a failure in contacting a server through a client 
>>> certificate for in app billing purposes
>>>
>>> Can anyone confirm any ssl based surprises in Android 5.0? 
>>>
>>> If so, not such a good job in backwards compatibility, but I guess my 
>>> expectations should be pretty low in that regard. 
>>>
>>> Nathan 
>>>
>>>
>>> 11-06 14:25:39.684 E/ServerService( 9973): Handshake failed
>>> 11-06 14:25:39.684 E/ServerService( 9973): 
>>> javax.net.ssl.SSLHandshakeException: 
>>> Handshake failed
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(
>>> OpenSSLSocketImpl.java:374)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(
>>> OpenSSLSocketImpl.java:598)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.OpenSSLSocketImpl.getOutputStream(
>>> OpenSSLSocketImpl.java:584)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at com.crittermap.iab.
>>> serverinterface.ServerService.onHandleIntent(ServerService.java:98)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> android.app.IntentService$ServiceHandler.handleMessage(
>>> IntentService.java:65)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at android.os.Handler.
>>> dispatchMessage(Handler.java:102)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> android.os.Looper.loop(Looper.java:135)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> android.os.HandlerThread.run(HandlerThread.java:61)
>>> 11-06 14:25:39.684 E/ServerService( 9973): Caused by: 
>>> javax.net.ssl.SSLProtocolException: 
>>> SSL handshake aborted: ssl=0x55a1c0b870: Failure in SSL library, usually a 
>>> protocol error
>>> 11-06 14:25:39.684 E/ServerService( 9973): error:14077438:SSL 
>>> routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error 
>>> (external/openssl/ssl/s23_clnt.c:765 0x7f8df6bfb0:0x)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
>>> 11-06 14:25:39.684 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(
>>> OpenSSLSocketImpl.java:302)
>>> 11-06 14:25:39.684 E/ServerService( 9973): ... 7 more
>>> 11-06 14:25:40.825 E/ServerService( 9973): Handshake failed
>>> 11-06 14:25:40.825 E/ServerService( 9973): 
>>> javax.net.ssl.SSLHandshakeException: 
>>> Handshake failed
>>> 11-06 14:25:40.825 E/ServerService( 9973): at 
>>> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(
>>> OpenSSLSocketImpl.java:374)
>>> 11-06 14:25:40.825 E/ServerServ

[android-developers] Re: SSLHandshakeException errors on Android 5.0?

2014-11-15 Thread Scott Jackson
I am getting a very similar error report from some users.  It seems that 
only people who are connecting to a default setup of Subsonic are having 
the issue.  Anyone who uses a NGinx/Apache front end aren't having the same 
issue.  The server is based on Jetty 6.  Any idea what the problem might be?

On Thursday, November 6, 2014 3:25:42 PM UTC-8, Nathan wrote:
>
> I've had two people in a row report the exact same thing with Android 5.0 
> on Nexus 9. 
>
> One of them got me a log. 
>
> I am seeing a failure in contacting a server through a client certificate 
> for in app billing purposes
>
> Can anyone confirm any ssl based surprises in Android 5.0? 
>
> If so, not such a good job in backwards compatibility, but I guess my 
> expectations should be pretty low in that regard. 
>
> Nathan 
>
>
> 11-06 14:25:39.684 E/ServerService( 9973): Handshake failed
> 11-06 14:25:39.684 E/ServerService( 9973): 
> javax.net.ssl.SSLHandshakeException: Handshake failed
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:374)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.getOutputStream(OpenSSLSocketImpl.java:584)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.crittermap.iab.serverinterface.ServerService.onHandleIntent(ServerService.java:98)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> android.os.Handler.dispatchMessage(Handler.java:102)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> android.os.Looper.loop(Looper.java:135)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> android.os.HandlerThread.run(HandlerThread.java:61)
> 11-06 14:25:39.684 E/ServerService( 9973): Caused by: 
> javax.net.ssl.SSLProtocolException: SSL handshake aborted: 
> ssl=0x55a1c0b870: Failure in SSL library, usually a protocol error
> 11-06 14:25:39.684 E/ServerService( 9973): error:14077438:SSL 
> routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error 
> (external/openssl/ssl/s23_clnt.c:765 0x7f8df6bfb0:0x)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
> 11-06 14:25:39.684 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
> 11-06 14:25:39.684 E/ServerService( 9973): ... 7 more
> 11-06 14:25:40.825 E/ServerService( 9973): Handshake failed
> 11-06 14:25:40.825 E/ServerService( 9973): 
> javax.net.ssl.SSLHandshakeException: Handshake failed
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:374)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.getOutputStream(OpenSSLSocketImpl.java:584)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.crittermap.iab.serverinterface.ServerService.onHandleIntent(ServerService.java:98)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> android.os.Handler.dispatchMessage(Handler.java:102)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> android.os.Looper.loop(Looper.java:135)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> android.os.HandlerThread.run(HandlerThread.java:61)
> 11-06 14:25:40.825 E/ServerService( 9973): Caused by: 
> javax.net.ssl.SSLProtocolException: SSL handshake aborted: 
> ssl=0x55a1c057e0: Failure in SSL library, usually a protocol error
> 11-06 14:25:40.825 E/ServerService( 9973): error:14077438:SSL 
> routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error 
> (external/openssl/ssl/s23_clnt.c:765 0x7f8df6bfb0:0x)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
> 11-06 14:25:40.825 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
> 11-06 14:25:40.825 E/ServerService( 9973): ... 7 more
> 11-06 14:25:41.964 E/ServerService( 9973): Handshake failed
> 11-06 14:25:41.964 E/ServerService( 9973): 
> javax.net.ssl.SSLHandshakeException: Handshake failed
> 11-06 14:25:41.964 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:374)
> 11-06 14:25:41.964 E/ServerService( 9973): at 
> com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(

[android-developers] Android WebView Hardware Rendering Weird Artifact Issue

2013-06-13 Thread Scott Deutsch
I asked the question on stackoverflow.com. Here is the link: 
http://stackoverflow.com/questions/17099402/android-webview-hardware-rendering-weird-artifact-issue
.

If any of you have a way to fix this problem, please let me know.

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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Building an accessibility app, have some high level questions

2012-11-06 Thread Scott M
Hi all,

I'm working to develop an accessibility application to allow hands free 
ability to end calls.  In determining how we're going to approach this 
problem, we've run into a few questions.

Our first intuition was to try to recognize a cue word by the caller to 
signal the end of the call.  However it would seem that access to the audio 
stream is not available, and that there is specific ability to make 
recordings but not to process the audio in real time.  Which makes sense 
considering the security issues associated (and the fact that this might be 
a privacy point protected by law?) but I guess when you're working on an 
accessibility application you don't think about what evil you could do :P.

The next thing we came to was allowing the user to be prompted to continue 
the call at specified intervals.  This approach requires us to be able to 
pause the phone call and resume our app, which could then use voice 
recognition to get user input.  The problem is that we aren't sure how we 
could pause the call from our background app.  We've looked at 
com.android.internal.telephony.ITelephony.java(gaining
 access through reflection as seems to be exhibited in hundreds of 
places on stackoverflow etc) but though this would give us the facility to 
end the call we can't use it to pause and resume.  Is there a way to do 
that?  We're open to making a wrapper app for the phone but haven't found 
any reason that it would solve our problems yet.

Thanks in advance!

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

[android-developers] Re: GridLayout Text Clipping using Support Library

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

Here is an example that now works:



http://schemas.android.com/apk/res/android";

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

  android:layout_width="match_parent"

  android:layout_height="match_parent"

  app:columnCount="2"

  app:useDefaultMargins="true" >

  

  



On Thursday, April 12, 2012 9:27:53 AM UTC-6, Scott Olcott wrote:
>
> Where are you finding the documentation?  The only documentation I have 
> seen is for the GridLayout that comes with ICS.  There is no javadocs for 
> any of the classes under android.support.v7.  There is no source for them 
> in AOSP or any samples that use them that I can find anywhere.
>
> On Tuesday, April 10, 2012 2:18:02 PM UTC-6, Dave Rozsnyai wrote:
>>
>> Same here. GridLayout library hasn't been user friendly. The 
>> documentation doesn't make any note of the fact that you need to use 
>> your own namespace for columnCount if you are targeting 4.0 and now 
>> this... I would advise people to use something else unless then really 
>> need the grid. 
>>
>> On Apr 10, 9:55 am, Scott Olcott  wrote: 
>> > This is happening on Gingerbread and ICS.  When will the source for the 
>> > support library GridLayout be available in AOSP?  Currently there is no 
>> way 
>> > to debug what is happening because there is no source available. 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > On Monday, April 9, 2012 11:28:46 AM UTC-6, Romain Guy (Google) wrote: 
>> > 
>> > > You set the width of GridLayout to "wrap_content" so it will extend 
>> as 
>> > > far as its content can go. 
>> > 
>> > > On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote: 
>> > > > I am using the GridLayout that is in r7 of the support library.  I 
>> am 
>> > > having 
>> > > > an issue with text being clipped at the edge of the screen instead 
>> of 
>> > > being 
>> > > > wrapped.  Here is a layout that reproduces the issue. 
>> > 
>> > > > > > > > xmlns:android="http://schemas.android.com/apk/res/android"; 
>> > > >  android:layout_width="wrap_content" 
>> > > >  android:layout_height="wrap_content" > 
>> > 
>> > > > > > > >   android:minWidth="100dp" 
>> > > >   android:text="test123" /> 
>> > 
>> > > > > > > > android:text="test test test test tes test tes test test 
>> test 
>> > > test 
>> > > > test test test" /> 
>> > > >  
>> > 
>> > > > When using the ICS version of GridLayout I can just add 
>> > > > android:layout_width="0dp" and 
>> android:layout_gravity="fill_horizontal" 
>> > > to 
>> > > > the TextView and it wraps the text instead clipping.  However when 
>> I try 
>> > > > that using the support library GridView the whole TextView 
>> disappears.  I 
>> > > > attached a screenshot from the Graphic Layout view in Eclipse that 
>> > > > demonstrates what is happening.  It looks like the second TextView 
>> is not 
>> > > > inheriting it's size from it's container but is the same width as 
>> the 
>> > > > device. 
>> > 
>> > > > Is there a different way to get this to work correctly? 
>> > 
>> > > > -- 
>> > > > You received this message because you are subscribed to the Google 
>> > > > Groups "Android Developers" group. 
>> > > > To post to this group, send email to 
>> android-developers@googlegroups.com 
>> > > > To unsubscribe from this group, send email to 
>> > > > android-developers+unsubscr...@googlegroups.com 
>> > > > For more options, visit this group at 
>> > > >http://groups.google.com/group/android-developers?hl=en 
>> > 
>> > > -- 
>> > > Romain Guy 
>> > > Android framework engineer 
>> > > romain...@android.com
>
>

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

[android-developers] Re: GridLayout Text Clipping using Support Library

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

On Tuesday, April 10, 2012 2:18:02 PM UTC-6, Dave Rozsnyai wrote:
>
> Same here. GridLayout library hasn't been user friendly. The 
> documentation doesn't make any note of the fact that you need to use 
> your own namespace for columnCount if you are targeting 4.0 and now 
> this... I would advise people to use something else unless then really 
> need the grid. 
>
> On Apr 10, 9:55 am, Scott Olcott  wrote: 
> > This is happening on Gingerbread and ICS.  When will the source for the 
> > support library GridLayout be available in AOSP?  Currently there is no 
> way 
> > to debug what is happening because there is no source available. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Monday, April 9, 2012 11:28:46 AM UTC-6, Romain Guy (Google) wrote: 
> > 
> > > You set the width of GridLayout to "wrap_content" so it will extend as 
> > > far as its content can go. 
> > 
> > > On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote: 
> > > > I am using the GridLayout that is in r7 of the support library.  I 
> am 
> > > having 
> > > > an issue with text being clipped at the edge of the screen instead 
> of 
> > > being 
> > > > wrapped.  Here is a layout that reproduces the issue. 
> > 
> > > >  > > > xmlns:android="http://schemas.android.com/apk/res/android"; 
> > > >  android:layout_width="wrap_content" 
> > > >  android:layout_height="wrap_content" > 
> > 
> > > >  > > >   android:minWidth="100dp" 
> > > >   android:text="test123" /> 
> > 
> > > >  > > > android:text="test test test test tes test tes test test 
> test 
> > > test 
> > > > test test test" /> 
> > > >  
> > 
> > > > When using the ICS version of GridLayout I can just add 
> > > > android:layout_width="0dp" and 
> android:layout_gravity="fill_horizontal" 
> > > to 
> > > > the TextView and it wraps the text instead clipping.  However when I 
> try 
> > > > that using the support library GridView the whole TextView 
> disappears.  I 
> > > > attached a screenshot from the Graphic Layout view in Eclipse that 
> > > > demonstrates what is happening.  It looks like the second TextView 
> is not 
> > > > inheriting it's size from it's container but is the same width as 
> the 
> > > > device. 
> > 
> > > > Is there a different way to get this to work correctly? 
> > 
> > > > -- 
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Android Developers" group. 
> > > > To post to this group, send email to 
> android-developers@googlegroups.com 
> > > > To unsubscribe from this group, 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] GridLayout Text Clipping using Support Library

2012-04-10 Thread Scott Olcott
This is happening on Gingerbread and ICS.  When will the source for the 
support library GridLayout be available in AOSP?  Currently there is no way 
to debug what is happening because there is no source available.

On Monday, April 9, 2012 11:28:46 AM UTC-6, Romain Guy (Google) wrote:
>
> You set the width of GridLayout to "wrap_content" so it will extend as
> far as its content can go.
>
> On Mon, Apr 9, 2012 at 10:24 AM, Scott Olcott  wrote:
> > I am using the GridLayout that is in r7 of the support library.  I am 
> having
> > an issue with text being clipped at the edge of the screen instead of 
> being
> > wrapped.  Here is a layout that reproduces the issue.
> >
> >  > xmlns:android="http://schemas.android.com/apk/res/android";
> >  android:layout_width="wrap_content"
> >  android:layout_height="wrap_content" >
> >
> >  >   android:minWidth="100dp"
> >   android:text="test123" />
> >
> >  > android:text="test test test test tes test tes test test test 
> test
> > test test test" />
> > 
> >
> > When using the ICS version of GridLayout I can just add
> > android:layout_width="0dp" and android:layout_gravity="fill_horizontal" 
> to
> > the TextView and it wraps the text instead clipping.  However when I try
> > that using the support library GridView the whole TextView disappears.  I
> > attached a screenshot from the Graphic Layout view in Eclipse that
> > demonstrates what is happening.  It looks like the second TextView is not
> > inheriting it's size from it's container but is the same width as the
> > device.
> >
> > Is there a different way to get this to work correctly?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] GridLayout Text Clipping using Support Library

2012-04-09 Thread Scott Olcott
Even when setting the width of the GridLayout to fill_parent or 
match_parent I get the same result.

>

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

[android-developers] GridLayout Text Clipping using Support Library

2012-04-09 Thread Scott Olcott
I am using the GridLayout that is in r7 of the support library.  I am 
having an issue with text being clipped at the edge of the screen instead 
of being wrapped.  Here is a layout that reproduces the issue.

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






When using the ICS version of GridLayout I can just add 
android:layout_width="0dp" and android:layout_gravity="fill_horizontal" to 
the TextView and it wraps the text instead clipping.  However when I try 
that using the support library GridView the whole TextView disappears.  I 
attached a screenshot from the Graphic Layout view in Eclipse that 
demonstrates what is happening.  It looks like the second TextView is not 
inheriting it's size from it's container but is the same width as the 
device.

Is there a different way to get this to work correctly? 

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

2012-04-04 Thread Ted Scott
Try here http://javaranch.com or perhaps take a Java course? Android 
development is much easier when you speak the language.


On 4/4/2012 4:48 AM, Graham Bright wrote:

Hi,

I can't figure out why I am getting and out of bounds exception ? Any
ideas



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


Re: [android-developers] ListView and Database

2012-04-01 Thread Ted Scott

On 4/1/2012 3:19 PM, Ricardo Santos wrote:

Hi Ted,
   Maybe I have understood the theory, now, but my code still do not 
work. So, my code looks like this:


//This is my list view

ListView charList = (ListView)findViewById(R.id.list);


R.id.list needs to be the id of a ListView element...

//Setting up the from String[]

String[] from = new String[]{"name"};

//Setting up the to int[]

int[] to = new int[]{R.id.lstCharacters};


//Now, I set the SimpleCursorAdapter

SimpleCursorAdapter simplCursor = new SimpleCursorAdapter(this, 
R.id.list, loadCharacterCursor, from, to);


 the R.id.list should not be a ListView, it should be resource 
identifier of a layout file that defines the views for each row in the 
list.


//Setting the adapter do the list - here it crashes.

charList.setAdapter(simplCursor);


I cant see what I'm doing wrong. Can anyone shed (some) more light to 
the subject?


I've never used a list view outside of a class extending ListActivity.


Ricardo


On Sun, Apr 1, 2012 at 12:33 AM, Ted Scott <mailto:t...@hootinholler.com>> wrote:


Hi Ricardo,

First, I'm sure others will chime in if this is bad advice, but my
understanding is that it is better to use the compatibility
package and cursor loaders and a load manager. See

http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html
and the base CursorAdapter.

That said, from is simply a list of columns in the PROJECTION
exposed by the cursor that are of interest to the ListView ids in
the to array. This is in order of the two arrays such that the
data from from[x] is passed to the view with the id in to[x].

Given the list view row definition:


http://schemas.android.com/apk/res/android";
 android:layout_width="fill_parent"
 android:layout_height="34dp"
 android:gravity="bottom"
 android:orientation="horizontal">

http://schemas.android.com/apk/res/android";
   android:id="@+id/foo"
   android:layout_width="100dp"
   android:layout_height="30dp"
   android:textSize="16dp"
   android:gravity="center_vertical"
   android:paddingLeft="5dip"
   android:singleLine="true"
   />
http://schemas.android.com/apk/res/android";
   android:id="@+id/bar"
   android:layout_width="50dp"
   android:layout_height="30dp"
   android:textSize="20dp"
   android:gravity="right|center_vertical"
   android:paddingLeft="5dip"
   android:singleLine="true"
   />


And assuming that you have column1 and column2 in your cursor's
projection, and want to map the contents of column1 to the
textview foo and column2 to textview bar, from and to would be
defined something like:

String[] from =  new String[] { "column1" , "coulmn2"};
int[] to   = new int[] { R.id.foo , R.id.bar };

Clear as mud?

-Ted


On 3/31/2012 9:36 PM, Ricardo Santos wrote:

Hello everyone!

 I have in my application, I hace a list view that needs to be
populated with data from a database, I have tested my database
and my app is handling the data correctly, but I cant populate
the list view, I have read about the SimpleCursorAdapter but I
cant understand how to use the class, specially the from and
to fields, does anyone know how to use it?

 My class is not extending ListActivity, my list view is
inside a dialog.

Ricardo
-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com
<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com
<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
You 

Re: [android-developers] ListView and Database

2012-03-31 Thread Ted Scott

Hi Ricardo,

First, I'm sure others will chime in if this is bad advice, but my 
understanding is that it is better to use the compatibility package and 
cursor loaders and a load manager. See 
http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html 
and the base CursorAdapter.


That said, from is simply a list of columns in the PROJECTION exposed by 
the cursor that are of interest to the ListView ids in the to array. 
This is in order of the two arrays such that the data from from[x] is 
passed to the view with the id in to[x].


Given the list view row definition:


http://schemas.android.com/apk/res/android";
  android:layout_width="fill_parent"
  android:layout_height="34dp"
  android:gravity="bottom"
  android:orientation="horizontal">

http://schemas.android.com/apk/res/android";
android:id="@+id/foo"
android:layout_width="100dp"
android:layout_height="30dp"
android:textSize="16dp"
android:gravity="center_vertical"
android:paddingLeft="5dip"
android:singleLine="true"
/>
http://schemas.android.com/apk/res/android";
android:id="@+id/bar"
android:layout_width="50dp"
android:layout_height="30dp"
android:textSize="20dp"
android:gravity="right|center_vertical"
android:paddingLeft="5dip"
android:singleLine="true"
/>


And assuming that you have column1 and column2 in your cursor's 
projection, and want to map the contents of column1 to the textview foo 
and column2 to textview bar, from and to would be defined something like:


String[] from =  new String[] { "column1" , "coulmn2"};
int[] to   = new int[] { R.id.foo , R.id.bar };

Clear as mud?

-Ted

On 3/31/2012 9:36 PM, Ricardo Santos wrote:

Hello everyone!

  I have in my application, I hace a list view that needs to be 
populated with data from a database, I have tested my database and my 
app is handling the data correctly, but I cant populate the list view, 
I have read about the SimpleCursorAdapter but I cant understand how to 
use the class, specially the from and to fields, does anyone know how 
to use it?


  My class is not extending ListActivity, my list view is inside a dialog.

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

2012-03-22 Thread Ted Scott

Hi Ricardo,

First let me thank you for doing the m2e-android plugin! Thank you for 
pointing out that it exists, I was very generic in my questions.


That was part of the path that got me asking about this. I started with 
trying to use ActionBarSherlock in my project and saw they seemed to be 
using maven so I thought I would give it a go. I couldn't get their 
samples going with maven under eclipse (probably my fault since I 
changed the project heirarchy) but I couldn't get the roboguice going 
easily under a pure eclipse build, but to be fair I didn't spend a lot 
of time on it as well.


I did get the gaug.es app built from the command line, and brought it 
into eclipse, stumbled over a couple of lifecycle not supported errors 
(and thanks for the ignore this in the pom support, btw) but then I hit 
the wall with the theme issue pretty much as described here: 
https://github.com/github/gauges-android/issues/14 (which I see you've 
responded to). While it's not a show stopper, it is inconvenient to 
build and deploy only from the command line and losing the build issue 
detection and support inside eclipse.


Really I was wondering if others have this all playing nice enough 
together to be building pretty complex applications with it before I 
spent too much effort on it with my app, which really is a project for 
learning the android platform more than anything.


-Ted

On 3/22/2012 10:55 AM, Ricardo Gladwell wrote:

Hi Ted

This is possible, please see the Android Connector for M2E (Maven for 
Eclipse):


http://rgladwell.github.com/m2e-android/

Regards...

--
Ricardo Gladwell 
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell

On Wednesday, March 21, 2012 4:17:41 PM UTC, Ted S. wrote:

This is somewhat off topic, but I couldn't think of a better place
to ask.

Is anyone successfully using maven and eclipse to develop android
apps?
If so, are they complex apps? I really like the dependency management
aspects of maven, but getting eclipse to play nicely with maven in an
android project is problematic. In my ideal world I would be able to
build and deploy in eclipse for development/debugging and use
maven to
do production builds.

So, have you tried and rejected using maven? Or have you tried and
gotten it to work nicely?

I'm about ready to give up on getting it all to play nicely.

-Ted

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

2012-03-22 Thread Ted Scott

On 3/21/2012 8:59 PM, James Black wrote:


I would expect that a problem is using other libraries. Are all of the 
jar files built for the Android?




Good point. Yes, the android relevant libraries are built for android. 
The major malfunction that brought the question on is a problem when 
basing a style on a style in a maven managed library. This is an 
apparently known issue with the android-maven configuration plugin and 
came up when I tried to import the gaug.es app project into eclipse and 
stumbled over a few things with the style issue unresolveable, at least 
easily.


I have it playing together for a trivial app, but I don't know where the 
pitfalls are, and I would rather focus on learning the android platform 
instead of a continuing troubleshooting of the development environment.


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

2012-03-22 Thread Ted Scott

On 3/22/2012 11:25 AM, Michael Sims wrote:

Android + Maven + Eclipse is definitely possible, but speaking from
experience, it's painful.  Tedious to get working, builds are very
very slow and fragile.  You can do it, but it'll hurt.


I think I had the pain part figured out ;) Slow, I wasn't too sure of 
and fragile is my concern that I will add some feature and hopelessly 
break the build.



For what it's worth, IntelliJ + Android + Maven works wonderfully.
Because I was working on a largish Android app that was built with
Maven, I switched to IntelliJ CE and I've been a very happy camper
since then.  Everything supported out of the box (no plugins to
install), everything cooperates, and the build is fast and stable.
Switching IDEs is a big deal though, but if you really like Maven, I
personally believe that is your best option


Since this is only my project and one with the goal of learning the 
platform, at least trying IntelliJ won't be that big of a deal. I 
thought it was commercial, but looking at the page, I think the free 
community edition would be sufficient to get a feel for the platform. I 
was concerned that if I really wanted maven support that I would have to 
revert to the command line and emacs.



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


[android-developers] Dev Environment - maven-android-eclipse

2012-03-21 Thread Ted Scott

This is somewhat off topic, but I couldn't think of a better place to ask.

Is anyone successfully using maven and eclipse to develop android apps? 
If so, are they complex apps? I really like the dependency management 
aspects of maven, but getting eclipse to play nicely with maven in an 
android project is problematic. In my ideal world I would be able to 
build and deploy in eclipse for development/debugging and use maven to 
do production builds.


So, have you tried and rejected using maven? Or have you tried and 
gotten it to work nicely?


I'm about ready to give up on getting it all to play nicely.

-Ted

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


Re: [android-developers] How to keep activity running

2012-03-19 Thread Ted Scott

On 3/19/2012 9:01 PM, Dianne Hackborn wrote:
Personally I would say that for any question that implies you are 
subclassing Application, the answer is "no". :)
Subclassing from Application doesn't let you do anything more than you 
could other ways, and there is a good chance it is going to lead you 
into a worse app design that you will ultimately be fighting with.


I just ran across roboguice. At first glance it seems like it requires 
that Application be subclassed so it can do its injection thing. Would 
you concede that use as an exception to your rule of thumb? While I 
haven't experimented with it yet (still climbing learning curves) I'm 
curious about what other developers think of it.


For something like navigation, the correct way to do this is to use a 
Service, and call Service.startForeground() when you are actively 
doing work the user cares about (navigating).  This will also require 
that you post a notification, making the user aware of what you are 
doing (which by definition they already are, since the only reason to 
be foreground is because this is something the user directly cares 
about, so the notification gives them a facility to get back to it and 
manage it).




If one needed all the state but not really a service, isn't this what 
the Activity/ActivityFragment models? The state goes in the Activity and 
it is responsible for each ActivityFragment that it hosts and is in a 
position to ensure the proper state for the given fragment. I could well 
be out in left field here being fairly new to Android, but it seems to 
me that Notification is a little limited in what can be done as far as 
user interactions go?



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Newbie question - first attempt to run App on device gets Force Close

2012-03-16 Thread Ted Scott
Double check that the emulator you run on is versioned  lower than your 
device.


Observe the launch with DDMS view which should report the exception.

Run it under the debugger on your device.

On 3/16/2012 5:14 AM, Mister Macaverty wrote:

My app runs fine on the device emulator.

When I connect it to my device, however, and I run it, it gets as far
as showing the app title then I get a Force Close message.

Any suggestions for the approach I should take for finding out what's
causing the problem?

Many thanks
MM



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


[android-developers] Followup questions about detecting install / first launch

2012-03-15 Thread Ted Scott


I'm still getting my head around the API and can use a check if I'm 
understanding this right.


On 3/15/2012 6:48 AM, Mark Murphy wrote:

On Thu, Mar 15, 2012 at 4:06 AM, giles ian  wrote:

I need to execute some code on app install event. How do i do it.

You don't.


Ok, I understand that ACTION_PACKAGE_INSTALL wasn't implemented. There 
is no broadcast to the app when its package is installed. Doesn't the 
installer from Market^H^H^H^H^H^H Play start the app as the default? I 
haven't published an app as yet so I'm not sure if it's configurable 
from the deployment console.



After some googleing i found there is no direct way. So which is the best
work around for that.

You do the work when the user first runs your app.


API 12 gave us ACTION_PACKAGE_FIRST_LAUNCH and 
ACTION_MY_PACKAGE_REPLACED. I've been writing to 8 and piggybacked my 
first run code to the DB helper, since what I'm doing needs a DB. I 
suppose it's easy enough to store an already ran flag in preferences and 
check that.


What are the techniques people have been using to manage this? Storing 
static versioning and checking it? Using the manifest versioning data? 
This may seem like a lame question, but curiosity has gotten the better 
of me. I guess what I'm asking is there are a lot of ways to skin this 
cat, what are people doing?


Is it worth using the broadcasts and maintaining  your own state to 
provide backward compatibility or is everyone saying bag that and just 
rolling their own?



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-15 Thread Ted Scott

On 3/14/2012 5:06 PM, GJTorikian wrote:
I wrote a reply to this, but I guess it was censored. I 
was complaining about manufacturer fragmentation, again.


If I have a directory like this: mnt/sdcard/app/dir

mkdirs("app/dir") fails; mkdirs("app") followed by mkdirs("app/dir") 
works. This is extremely unusual.


That's pretty much standard *nix behavior, Android being a modified 
linix kernal it's what I would expect.


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

2012-03-09 Thread Ted Scott

On 3/9/2012 1:52 PM, Mark Murphy wrote:

On Fri, Mar 9, 2012 at 1:35 PM, Ted Scott  wrote:

^_-  Support Package?! Oh, I see I have some reading to do. Thanks!
Looking at the SDK page, I don't know how I missed looking at that. Any
pointers you might have to a nutshell description or pitfalls would be
appreciated.

http://en.wikipedia.org/wiki/Nutshell

:-)


Straight lines R us

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

2012-03-09 Thread Ted Scott

On 3/9/2012 12:36 PM, Mark Murphy wrote:

On Fri, Mar 9, 2012 at 12:29 PM, Ted Scott  wrote:

feeling the frustrations of the moving platform now.

The Android Support package supports the Loader framework going back
to Android 1.6, if you are willing and able to inherit from
FragmentActivity.

^_-  Support Package?! Oh, I see I have some reading to do. Thanks! Looking 
at the SDK page, I don't know how I missed looking at that. Any pointers you 
might have to a nutshell description or pitfalls would be appreciated.

I'll have to look at the inheritance chain about being able to work 
FragmentActivity in. I have a position and expansion state tracking 
object sitting between my activity and ExpandableListActivity.

And, you can still use a ContentObserver to let you know when the
stuff you queried in your managedQuery() is altered(). It's just not
automatic (IIRC).

Ok, now that I know what to look for, I can probably figure it out. This 
may be the simplest solution. 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] Detecting if activity is running from service

2012-03-09 Thread Ted Scott

Thanks Justin!

I was already reading that page and thinking along the lines of maybe 
I'll just live with the minor issue. ;)


On 3/9/2012 11:39 AM, Justin Anderson wrote:

You can take a look at this:
http://developer.android.com/reference/android/app/ActivityManager.html#getRunningTasks%28int%29

But beware... The definition of a "running" app may not be what you 
think on Android.


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


On Fri, Mar 9, 2012 at 9:28 AM, Ted Scott <mailto:t...@hootinholler.com>> wrote:


I have a service that obtains and stores sample data from a web
service. It is triggered by alarms, gets a sample which may or may
not be new, stores it in my DB.

At that point, if a new sample was added, and the activity that
lists the samples is active, I want to notify it to refresh the
cursor to include the new sample. If the activity isn't running, I
don't care because it will be fine when it launches. If I set up a
receiver and send a broadcast won't the broadcast cause it to
launch if the activity isn't running? That is behavior that I
don't want.

This isn't really a show stopper, but I would appreciate any
strategy ideas you might have in making this happen in a
reasonable amount of effort.

-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com
<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-03-09 Thread Ted Scott


Thanks Mark.

On 3/9/2012 11:36 AM, Mark Murphy wrote:

On Fri, Mar 9, 2012 at 11:28 AM, Ted Scott  wrote:

At that point, if a new sample was added, and the activity that lists the
samples is active, I want to notify it to refresh the cursor to include the
new sample. If the activity isn't running, I don't care because it will be
fine when it launches. If I set up a receiver and send a broadcast won't the
broadcast cause it to launch if the activity isn't running? That is behavior
that I don't want.

Use an ordered broadcast to notify your foreground activity, and
possibly display a Notification if the activity is not in the
foreground:

http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html

Here is a sample demonstrating this:

https://github.com/commonsguy/cw-advandroid/tree/master/Broadcast/Ordered
I'll have a look and probably have some questions after I do. I already 
optionally send a notify that a new sample was stored.

Or, have your activity get its data from the service via a
ContentProvider, and use a ContentObserver (which happens
automagically if you are using a CursorLoader).

Ah, I'm coding to API level 8 so I'm using a managedQuery. It seemed 
like a lot of devices would be cut out if I went to a higher API level. 
I guess I'm feeling the frustrations of the moving platform now.


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


[android-developers] Detecting if activity is running from service

2012-03-09 Thread Ted Scott
I have a service that obtains and stores sample data from a web service. 
It is triggered by alarms, gets a sample which may or may not be new, 
stores it in my DB.


At that point, if a new sample was added, and the activity that lists 
the samples is active, I want to notify it to refresh the cursor to 
include the new sample. If the activity isn't running, I don't care 
because it will be fine when it launches. If I set up a receiver and 
send a broadcast won't the broadcast cause it to launch if the activity 
isn't running? That is behavior that I don't want.


This isn't really a show stopper, but I would appreciate any strategy 
ideas you might have in making this happen in a reasonable amount of effort.


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

2012-03-08 Thread Ted Scott

On 3/5/2012 10:38 PM, Zheng Martin wrote:
please go to see this topic first. 
http://stackoverflow.com/questions/9562043/expandablelistview-when-i-click-button-update-imageview#comment12121717_9562043 



I pasted the problem in stackoverflow, without any answer.

please help me to resolve it when you are free.

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 

Answered

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

2012-03-04 Thread Ted Scott
What Mark was asking is why are rows you do not need included in the 
results pointed to by the cursor.


The cursor is loaded by a DB query. That is where you should apply 
filtering, etc and the cursor should contain only what you need to 
display at that moment. If your cursor has extra data, then adjust your 
query to return only the rows you need. If you need several different 
queries you can use more than one URI in your content provider so that 
you map one URI to one query.


Choosing between an ArrayAdapter and a CursorAdapter really should be 
driven by where the data are stored and how big of a list you have. 
Without more knowlege of your app, it's hard to know which would be 
better, but in general it is silly to unload a cursor into an array for 
display when you can just use the cursor unless you have a compelling 
reason not to.


On 3/3/2012 11:28 AM, Build Account wrote:

Hello.

Well,
I don't understand what you point out 'these' part.
But simply say it again,
I'm looking for simplest way to not touch the current cursor further.
And i can not use selectionArg since that available datas are kind
of...random.(of course there is a condition to filter out row by row :
( ).

Is there any way to mask(or filter) record as what I need under cursor
adapter?
if there is no way, I may shoud use ArrayAdapter by manually

What do you think?



On Mar 3, 9:11 pm, Mark Murphy  wrote:

Why are these rows in your Cursor in the first place, if they are not
to be used?





On Sat, Mar 3, 2012 at 1:59 AM, Build Account  wrote:

Hello,
If I have a cursor and need to display as a list through adapter,
then which adapter is best under below condition?
  The cursor have datas(of course).
But this cursor contains some of rows which should not be displayed.
For example, totally 10 records, but index 1, 4, 5, 8 should not be
displayed.
(Means, not sequentially sorted. and also cannot sort it by sort
order.).
With above cursor data,
how to filter out only available datas(which index 0, 2, 3, 6, 7, 9)
in adapter?
Any ideas or way to do???
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

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


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


Re: [android-developers] nested listview

2012-02-26 Thread Ted Scott
If I understand what you mean, then yes, except it is all handled in the 
ExpandableListView. You provide 2 lists, via some adapter, one is the 
parent list and the other a child list which you get by over-riding a 
getChildren method, depending how your lists are obtained.  (In an 
implementation I did, I use a DB to back the lists, so I use a 
SimpleCursorTreeAdapter and I override getChildrenCursor) Have a look at 
the expandable list examples in the api demos, there are 3 data source 
flavors in there.


On 2/26/2012 10:24 AM, hazem omies wrote:

hi Ted ,

many thanks Ted , but i need when open item passing value to other 
intent listview ,,this is doable ??


On Sun, Feb 26, 2012 at 5:10 PM, Ted Scott <mailto:t...@hootinholler.com>> wrote:


Sounds like you want an ExpandableListView

http://developer.android.com/reference/android/widget/ExpandableListView.html



On 2/26/2012 9:25 AM, hazem omies wrote:

hi,,,

how i can make nested listview as follow :

main activity contain a listview binding from web servers XML
parser  ,,my issue is when click on item ,,the seconed
listview open
related to this item as nested ,,??


-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com
<mailto:android-developers@googlegroups.com>
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
<mailto:android-developers%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2012-02-26 Thread Ted Scott
Sounds like you want an ExpandableListView 
http://developer.android.com/reference/android/widget/ExpandableListView.html


On 2/26/2012 9:25 AM, hazem omies wrote:

hi,,,

how i can make nested listview as follow :

main activity contain a listview binding from web servers XML
parser  ,,my issue is when click on item ,,the seconed listview open
related to this item as nested ,,??



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

2012-02-23 Thread Ted Scott

That's one error and certainly explains the class not found exception.

I'm not sure but you also might need a default category for the activity 
definition.



What do you mean by you have to debug as an Android? Of course you have 
to run the code on a device to debug it. Also you won't be able to 
attach the debugger to your receiver because it will fire before the 
DDMS is attached.


On 2/23/2012 4:50 PM, YuviDroid wrote:

There's something odd with the package names :S:S:S

If your BroadcastReceiver package name is "package 
com.needham.RxBcast;" then also in the manifest you should use the 
same package:



or correct the package name and make it "package com.needham;" and the 
receiver in the manifest: .



On Thu, Feb 23, 2012 at 10:32 PM, Thomas <mailto:tbirchm...@usa.net>> wrote:


It is the program you sent me.  I noticed that I have to debug as an
Android to get the
Log.d  statements to work.



package com.needham.RxBcast;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class RxBcast extends BroadcastReceiver {

   private static final String TAG = "RxBcast77";
   private static final int NOTE_ID = 1;

   @Override
   public void onReceive(Context c, Intent i) {
   // check and handle registerable actions
   String act = i.getAction();
   Log.d(TAG, "Rxd "+ act );
   if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
   Intent si = new Intent(c, PiesOfCodActivity.class);
   si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   c.startActivity(si);
   }
   } // onReceive

}

*
package com.needham.RxBcast;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class PiesOfCodActivity extends Activity {
   /** Called when the activity is first created. */

   private static final String TAG = "RxBcast77";

   public void onCreate(Bundle savedInstanceState) {


   Log.d(TAG, "POCA777 "+ savedInstanceState );
  super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText("Hello, Pies of Cod!");
   setContentView(tv);
   }
}

**

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

    

























On Feb 23, 2:16 pm, Ted Scott mailto:t...@hootinholler.com>> wrote:
> On 2/23/2012 11:18 AM, Thomas wrote:> I've continued to
experiment.  I wanted to send an attachment file but
> > but here is a portion of the  logcat showing the RxBcast
failing at
> > bootup and after the Emulator is opened then running correctly.
> > look for **  I unlock  emulator
> > The same thing happens on my DroidX2 Fails on boot after
keyboard is
> > unlocked and then works correct when started by touching icon.
>
> > ***  Bad stuff here
> > E/AndroidRuntime(  237): FATAL EXCEPTION:
mainE/AndroidRuntime(  237):
> > java.lang.RuntimeException: Unable to instantiate receiver
> > com.needham.PiesOfCod.RxBcast: java.lang.ClassNotFoundException:
> > com.needham.PiesOfCod.RxBcast in loader
dalvik.system.PathClassLoader[/
> > data/app/com.needham.RxBcast-1.apk]E/AndroidRuntime(  237):  
 at

> >
android.app.ActivityThread.handleReceiver(ActivityThread.java:2789)E/
>
> Looks like a configuration issue. Before you started
experimenting, did
> you get the stuff I posted working?
>
> What's in your manifest? What does your project's code tree look
like?

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




--
YuviDroid
Chec

Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-23 Thread Ted Scott

On 2/23/2012 11:18 AM, Thomas wrote:

I've continued to experiment.  I wanted to send an attachment file but
but here is a portion of the  logcat showing the RxBcast failing at
bootup and after the Emulator is opened then running correctly.
look for **  I unlock  emulator
The same thing happens on my DroidX2 Fails on boot after keyboard is
unlocked and then works correct when started by touching icon.

***  Bad stuff here
E/AndroidRuntime(  237): FATAL EXCEPTION: mainE/AndroidRuntime(  237):
java.lang.RuntimeException: Unable to instantiate receiver
com.needham.PiesOfCod.RxBcast: java.lang.ClassNotFoundException:
com.needham.PiesOfCod.RxBcast in loader dalvik.system.PathClassLoader[/
data/app/com.needham.RxBcast-1.apk]E/AndroidRuntime(  237): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2789)E/

Looks like a configuration issue. Before you started experimenting, did 
you get the stuff I posted working?


What's in your manifest? What does your project's code tree look like?

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

2012-02-23 Thread Ted Scott


On 2/23/2012 11:55 AM, Kookamonga wrote:

Mark has way more experience than me, so I'll let him give the
definitive answer... But my two cents are that it depends on the
situation. :-)

I don't think there is a definitive answer here, only reasonable ones.

For example, if the widget for which you are writing the listener will
only appear in this Activity, then having the Activity itself
implement the interface is probably fine. But, say for example you're
creating some layout that appears on all of your activities (maybe a
common group of buttons or something like that), then I would create a
separate reusable listener class that saves you from having to
duplicate code.
Good point. I don't have a particular problem starting out with the 
anonymous class early in the project. When it's needed elsewhere It's a 
straight forward refactoring to extract the class. I'm pretty new to 
Android, at first glance, I'm not sure how useful this would be in the 
button group. Wouldn't each button need its own listener? Wouldn't there 
be an activity associated with them?



On Feb 23, 11:35 am, rhaazy  wrote:

I think I over estimated my ability to jump right into this without
learning a bit more about the java language.
Thanks again!
http://javaranch.com is a pretty good resource for getting up to speed 
in the language.



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


Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-21 Thread Ted Scott

On 2/21/2012 3:02 PM, Thomas wrote:

The compile error:
* PiesOfCodActivity cannot be resolved to a type

The error essentially is that the RxBcast cannot be aware of an
external app that exists on an Android somewhere.  The
PiesOfCodActivity is a retitled "helloworld" that works just fine on
my Android.
Perhaps there is some sort of intent construction where the app-to-be-
is a string that represents future runtime intentions.
Thanks for all of your good thoughts and help.
Of course not you put it in a different application. That's not what I 
thought you asked about, I thought you wanted an app that would launch 
at boot. Did you get it working with the receiver in the same package?


To launch another activity outside your package you need different 
information in the intent. One way is to specify the package of the 
other app:
Intent si = new 
Intent(Intent.ACTION_MAIN).setPackage("com.hootinholler.PiesOfCod");


The other app needs to have an action MAIN defined in its manifest and 
it also needs a category DEFAULT



I've tested this here with one application that only has the 
PiesOfCodActivity in the PiesOfCod package and another app that only has 
the RxBcast in a Pies package and constructs the intent as above.


Really this didn't take that much to solve given a little reading and 
experimentation. I agree with Tre that you should probably read up on 
Intents and how they get created and resolved.


Also I don't think it will be a good idea to have an app with no 
launchable activity as it could make it hard for users to uninstall


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

2012-02-21 Thread Ted Scott
Did you follow the steps I outlined? What intent are you speaking of 
that can't find the app? Speaking of the app, you're talking about the 
hello world or pies of cod app, right? What do you mean by an external app?


Tell us exactly what you are doing and maybe we can help.

On 2/21/2012 9:11 AM, Thomas wrote:

Thanks to all who have contributed answers to my questions.  The last
problem is that the intent cannot find the called app.  Perhaps it's a
misspelling or perhaps the fact it's an external app and I need some
slightly different intent format, or maybe lots of things.  I'll keep
at this and when I get the syntax correct, I'll post the answer.
Google searching turns up lot of commentary on the subject but all of
the snippets have proven not to work.
Best,
Tom B

On Feb 20, 6:46 pm, Ted Scott  wrote:

On 2/20/2012 2:26 PM, Thomas wrote:


I'll make another request then.  Please post the code and manifest for
a simple something that will start the "helloworld" app at bootup.
The helloworld app is just a test case to see if things are working at
bootup. I have a far more complicated embedded application to test
after that.
Best,
Tom B

You know I explained where to get the information you were missing is
at, I even explained what you were confused about.  If indeed you have a
far more complicated embedded app to test, judging by the level of your
questions and failure to understand or even explore the material given
to you, I predict you will be bricking that device.

Nonetheless for the comedic value I give you Pies Of Cod, or at least
the parts you asked for. Yes this code executes and launches the app
Pies Of Cod when it is in a proper app environment. It took me about
half an hour to cobble together. Of course you'll want to adjust the
imports and packages to fit your environment so I omitted them. The view
is the main.xml you get from an eclipse generated hello world app.

First make a new android app named PiesOfCod in your workspace. Launch
it and make sure it runs.

Then you need to create a receiver class:
public class RxBcast extends BroadcastReceiver {

  private static final String TAG = "RxBcast";
  private static final int NOTE_ID = 1;

  @Override
  public void onReceive(Context c, Intent i) {
  // check and handle registerable actions
  String act = i.getAction();
  Log.d(TAG, "Rxd "+ act );
  if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
  Intent si = new Intent(c, PiesOfCodActivity.class);
  si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  c.startActivity(si);
  }
  } // onReceive

}

Then change the strings:



Pies Of Cod!
PiesOfCod


Then adjust the manifest, yes you will have to use your package names,
etc. mine won't work for you:

























Build it, launch it, then restart the AVD that you have it installed on
and it should be open when you unlock the AVD.

Good luck with your very complicated embedded application, and please
keep us informed on how that is going.


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

2012-02-20 Thread Ted Scott

On 2/20/2012 2:26 PM, Thomas wrote:

I'll make another request then.  Please post the code and manifest for
a simple something that will start the "helloworld" app at bootup.
The helloworld app is just a test case to see if things are working at
bootup. I have a far more complicated embedded application to test
after that.
Best,
Tom B



You know I explained where to get the information you were missing is 
at, I even explained what you were confused about.  If indeed you have a 
far more complicated embedded app to test, judging by the level of your 
questions and failure to understand or even explore the material given 
to you, I predict you will be bricking that device.


Nonetheless for the comedic value I give you Pies Of Cod, or at least 
the parts you asked for. Yes this code executes and launches the app 
Pies Of Cod when it is in a proper app environment. It took me about 
half an hour to cobble together. Of course you'll want to adjust the 
imports and packages to fit your environment so I omitted them. The view 
is the main.xml you get from an eclipse generated hello world app.


First make a new android app named PiesOfCod in your workspace. Launch 
it and make sure it runs.


Then you need to create a receiver class:
public class RxBcast extends BroadcastReceiver {

private static final String TAG = "RxBcast";
private static final int NOTE_ID = 1;

@Override
public void onReceive(Context c, Intent i) {
// check and handle registerable actions
String act = i.getAction();
Log.d(TAG, "Rxd "+ act );
if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
Intent si = new Intent(c, PiesOfCodActivity.class);
si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
c.startActivity(si);
}
} // onReceive

}

Then change the strings:



Pies Of Cod!
PiesOfCod



Then adjust the manifest, yes you will have to use your package names, 
etc. mine won't work for you:


























Build it, launch it, then restart the AVD that you have it installed on 
and it should be open when you unlock the AVD.


Good luck with your very complicated embedded application, and please 
keep us informed on how that is going.


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

2012-02-20 Thread Ted Scott
Review the components section here 
http://developer.android.com/guide/topics/fundamentals.html


You are confusing a BroadcastReceiver with an Activity, and there's 
nothing you can add to the manifest to correct that since an activity 
tag can't describe or invoke a receiver. If you want to launch something 
at boot, then code a receiver that launches the app.


On 2/20/2012 10:34 AM, Thomas wrote:

Actually, I don't.  What should the manifest be in this case?
Tom B

On Feb 20, 10:05 am, TreKing  wrote:

You have the following:

public abstract class StartAtBootActivity extends *BroadcastReceiver*{




<*activity *android:name=".StartAtBootActivity"

See the problem with this scenario?

-
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] What is the significance of main.xml.out file?

2012-02-19 Thread Ted Scott

On 2/17/2012 11:27 PM, Kedar wrote:

What is the  significance of main.xml.out file?

Sometimes while debugging the application, I am getting an error in
the main.xml file

Basically it means that you have invoked some transformation on the 
main.XML file, possibly by having it selected and hitting the run button 
(there are configurations that control this behavior on the list within 
the last month)


You should probably delete it since it will confuse the build of your 
project.


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


[android-developers] Dynamic icon == widget?

2012-02-18 Thread Ted Scott
I'm running a service that monitors a metric and I want it to colorize 
the app icon dependent on the values.


Do I have to build a widget to interact with it or is there some way I 
can just replace the image?


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


[android-developers] AlarmManager - getAlarms or similar

2012-02-18 Thread Ted Scott
Is there a way to find out if I have an existing alarm waiting or do I 
have to create some sort of state variable and keep track of it?



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


[android-developers] OT: Comedy Gold

2012-02-15 Thread Ted Scott
Please don't take this the wrong way, I'm not complaining, just 
observing. I have to say that between the ESL and txt speak this list 
has some really funny moments.


The mental image I got from "pies of cod" will have me smiling for the 
rest of the week. I'm wondering if it's some new way of preparing lutefisk.


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


[android-developers] monkeyrunner

2012-02-13 Thread Scott
I am working on making some changes to the android framework layer and
building my own version. I am working based on froyo and trying to use
monkeyrunner for some testing. I have pulled the source and can build
and run in the emulator but when I try to use a monkeyrunner script I
can't seem to get anyhting to work. I built the code using lunch full-
eng and it runs fine on the device. I am just trying to get a simple
script running based on the example at
http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html
shown below with a print statement added just to see if I could get
anything to run.

# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()

print "Hello World!"

When the following line is in the script I get an error as follows.

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

Traceback (most recent call last):
File "../../MRTesting/MyTest.py, line 4, in 
from com.android.monkeyrunner import MonkeyRunner,
MonkeyDevice
ImportError: cannot import name MonkeyDevice

So if I remove MonkeyDevice from the import as shown below I get a
different error on the call to waitForConnection()

from com.android.monkeyrunner import MonkeyRunner

Traceback (most recent call last):
File "../../MRTesting/MyTest.py, line 6, in 
device = MonkeyRunner.waitForConnection()
AttributeError: type object 'com.android.monkeyrunner.MonkeyRunner'
has no attribute 'waitForConnection'

I tried modifying the call to have some arguments as indicated in the
documentation as follows but I still get the same error. The second
argument matches the value returned by a call to adb devices.

device = MonkeyRunner.waitForConnection(5, 'emulator-5554')

I have done some digging around and one person said that the shebang
needs to be at the beginning of the file as follows with the path
modified to avoid putting information in I would rather not share.

#! /home//monkeyrunner

I could not see how this would be any different than me invoking
monkeyrunner directly from the command line but I tried it and no
luck. I did not install the sdk anywhere on my system as it is
included in the build tree but it seems to me that the monkeyrunner
tool might not be able to locate it as needed but I can't find any
indication of how to fix this. I am running the following commands
when I build my system from within my build directory at the root.

. build/envsetup.sh
setpaths
lunch full-eng
make -j16

Anyone have any thoughts on this?

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


Re: [android-developers] What do you all use for automated testing?

2012-02-13 Thread Ted Scott

On 2/13/2012 8:17 AM, Mark Murphy wrote:

On Sun, Feb 12, 2012 at 7:34 PM, Todd Grigsby  wrote:

I use a college kid.  He's getting intern credits.  Highly recommended.

Yeah, but isn't automating a college kid a violation of the Geneva Convention?

:-)


Nah, provide pizza and beer and they are self-automating. YMMV

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


Re: [android-developers] building workspace lockup in eclipse

2012-02-13 Thread Ted Scott
There's  a problem in r16 when launching on v2.2 with logcat when the 
launch logcat on error is set. It causes a deadlock condition. It's 
slated for a fix on r17.


Go to window -> preferences -> android -> logcat and uncheck launch 
logcat on error.


On 2/13/2012 6:52 AM, vivek elangovan wrote:

hi members,
  * I have two Android projects in my Eclipse
workspace
  * Compiling the first  project works fine
  * The second one always hangs (at 27% complete)
  * Every time i have to restart my eclipse and have to
compile the project again

what may be the problem ?



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


Re: [android-developers] Re: Almost nobody is rating my app.

2012-02-09 Thread Ted Scott
As long as you are not tying the enhancement to a rating level, I don't 
think that would violate the policy.


Now telling whether or not someone actually rated the app is a different 
issue.


On 2/9/2012 1:18 PM, Mark Phillips wrote:


My apologies for recommending something against the market policies. I 
was not aware of that policy. I am just starting out, so I have not 
gotten that far in the process to actually put an app  on the market.


BTW, I was not advocating making an offer for a better rating. I meant 
an incentive for the user to just rate the game.


Mark

On Feb 9, 2012 11:08 AM, "a1" > wrote:


Could you release an update and offer something for the
rating? Additional levels, characters, some way to personalize
the game for the user? 



Which is, of course, violation of market content policy terms
(http://www.android.com/us/developer-content-policy.html  see
"Spam and Placement" section: "Developers also should not attempt
to change the placement of any Product in the Store by rating an
application multiple times, or by offering incentives to users to
rate an application with higher or lower ratings.")

To OP, 1 rating for ca. 400-500 user is what I'm seeing in my free
games, also take a quick look at other free games on market it's
looks like this is more or less what you should expect.

--
Bart
-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Block APK installation

2012-02-08 Thread Scott Herbert
This is just an idea...

but why not try writing a the app as a custom version of
https://github.com/android/platform_packages_apps_launcher

and having a very small internal storage, so theirs no room for any
additional APK's.

N.B. I've never even compiled the kernel, so I've no idea if this will
work, however I've looked through the code enough to believe that the
"launcher" is the home screen.

Someone tell me I'm wrong before I end-up sending this poor guy up a
blind alley.



On Jan 30, 4:49 pm, Isamar Maia  wrote:
> Yep. I knew that. I was just wondering if anybody would have a cake
> recipe on hands.
>
> But, never mind. I got that already with a custom image removing
> access with "chmod" on /system/app/ folder.
>
> Thanks anyway.
>
> Isamar
>
> 2012/1/30 Mark Murphy :
>
>
>
>
>
>
>
>
>
> > This is not possible except via custom firmware. For questions about
> > custom firmware, please visithttp://source.android.com.
>
> > On Thu, Jan 26, 2012 at 3:06 PM, Isamar Maia  wrote:
> >> Hello Guys,
>
> >> For a specific project, we need to create a custom image with an
> >> auto-start application.
>
> >> One thousand tablets will be given away for free, with this
> >> application installed and the sponsor wish to block
> >> any APK installation to avoid his campaign fails, with people selling
> >> those tablets away on Ebay.
>
> >> The purpose here is just to make it difficult, since anybody with a
> >> little more knowledge would be able to overwrite
> >> my custom image and cancel this block.
>
> >> Which executable I should work on to make it feasible ?
>
> >> Thanks a lot,
>
> >> --
> >> Isamar Maia
> >> Cel. VIVO SSA:  (55) 71-9146-8575
> >> Cel. TIM SSA: (55) 71-9185-5264
> >> Fixo:  (55) 71-4062-8688
> >> 日本: +81-(0)3-4550-1212
> >> Skype ID: isamar.maia
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 4.1 Available!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Isamar Maia
> Cel. VIVO SSA:  (55) 71-9146-8575
> Cel. TIM SSA: (55) 71-9185-5264
> Fixo:  (55) 71-4062-8688
> 日本: +81-(0)3-4550-1212
> Skype ID: isamar.maia

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

2012-02-07 Thread Robert Scott
When I try to log into android-developers I get a message that says I have been 
banned by the owner of the group.  I think this must have been a mistake.  I 
have always posted relevant and polite questions in this group.  My most recent 
postings were about audio latency measurements and their effect on applications 
that use audio.  Was this a violation because I mentioned specific Android 
devices?  If so, I can avoid doing to in the future.  Can you tell me why I 
have been banned?

Robert Scott
fixthatpi...@yahoo.com

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


[android-developers] FYI ADT r16 hangs running AVD 2.2 on relaunch or debug

2012-02-06 Thread Ted Scott
This is an update to the problem I encountered and posted on earlier. 
The fix is scheduled for r17.


There are 3 hang cases which apply to AVD 2.2:
1: Relaunching a changed application which hangs at 27% progress.
2: Launching the application in the debugger. Both cases hang when the 
"launch logcat on error" is true and logcat level is verbose.

3: Launching the DDMS perspective

The workaround is to uncheck "launch logcat" at 
window->preferences->android->LogCat


The problem report is here: 
http://code.google.com/p/android/issues/detail?id=24926



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

2012-02-03 Thread Ted Scott


I do a similar thing by running a service from an alarm, it checks 
position every 15 mins. It works while I'm just toting the phone around 
in my pocket screen locked. It even works while the app is closed as 
long as the app has been started since boot and the alarm initialized.


Maybe it has something to do with the activity being suspended?

On 1/31/2012 9:50 PM, Joshua Witter wrote:

I posted this same question on StackOverflow if anyone wants the karma
for answering it there.

This is on an Android phone running 2.3.3 Gingerbread. I am trying to
log a GPS location while the screen is off. When the screen is on, the
GPS gives correct outputs... driving around in my car I have a phone
hooked up to my laptop and I read the output with logcat. Under the
same conditions, when I turn off the screen the GPS gives the same
location over and over, until I turn on my screen again at which time
it works properly.

Here is my manifest file (note the WAKE_LOCK and GPS permissions as
well as the LocationService definition):



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

2012-02-03 Thread Ted Scott
Are you running an AVD on 2.2? There is a weird problem with eclipse and 
that version of the emulator. See issue 24926 
http://code.google.com/p/android/issues/detail?id=24926


Try this:

1. In Window ->  Preferences ->  Android ->  logcat, turn off the option to 
automatically show logcat
if there is a warning/error from an app in workspace.


On 2/3/2012 6:45 AM, vivek elangovan wrote:

Hi members,
i am using eclipse-java-indigo-SR1(32-bit ubuntu
10.04) for android projects development.If i build some application
and run it as android application it works fine,but if i make some
changes to my class files and again running it as android application
the eclipse building project and stops at 27%. And it is working fine
when I have to complete stop eclipse and start again.what may be the
problem ?



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


Re: [android-developers] Re: What do these errors mean (using Eclipse)?

2012-02-01 Thread Ted Scott

On 2/1/2012 11:01 AM, atcal wrote:

On Feb 1, 4:25 pm, Ted Scott  wrote:

On 2/1/2012 4:11 AM, atcal wrote:






I'm trying to define my own View subclass.
public class myView extends View {
  myView(Context context) {
  View(context);
  }
}
Eclipse flags the first line of my constructor with an error "Implicit
super conctructor View() is undefined. Must explicitly invoke another
constructor" and the second line is flagged with the error "The method
View(Context context) is undefined for the type myView."
What does all this mean? The android documentation shows the
constructor View(Context context) as public. Why can't I use it?

There are several reasons why View() is not available and will never be
available.

It means you don't understand class instantiation and the life cycle of
a class. This is not an Android issue at all and I suggest that you
spend some time learning Java fundamentals. These folks are generally
pretty helpful with thathttp://www.javaranch.com/- Hide quoted text -

- Show quoted text -

Ted,

Thanks. You are probably right. While I have 10 yrs experience of C++
with Windows and Java looks deceptively similar, things like this are
tripping me up. I do understand about classes and instantiating
objects but obviously not the peculiarities of Java. I've tried to
register at javaranch but the website is not fast at sending back the
registration activation email. I'll have to learn to be patient.

I meant that they have tutorials and stuff. Since you have the syntax  
etc from c++ then maybe the O'Riely book Java in a Nutshell would be 
helpful. Oh, and you can forget the evil multiple inheritance and 
pointer stuff. ;)


Probably a little tedious for you, but there is this: 
http://docs.oracle.com/javase/tutorial/java/javaOO/index.html which 
lacks a bit of detail as to why, but does cover the how of fundamentals.




--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What do these errors mean (using Eclipse)?

2012-02-01 Thread Ted Scott

On 2/1/2012 4:11 AM, atcal wrote:

I'm trying to define my own View subclass.

public class myView extends View {

 myView(Context context) {
 View(context);
 }
}

Eclipse flags the first line of my constructor with an error "Implicit
super conctructor View() is undefined. Must explicitly invoke another
constructor" and the second line is flagged with the error "The method
View(Context context) is undefined for the type myView."

What does all this mean? The android documentation shows the
constructor View(Context context) as public. Why can't I use it?


There are several reasons why View() is not available and will never be 
available.


It means you don't understand class instantiation and the life cycle of 
a class. This is not an Android issue at all and I suggest that you 
spend some time learning Java fundamentals. These folks are generally 
pretty helpful with that http://www.javaranch.com/



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


Re: [android-developers] Re: Android SDK Tools r16 and problems with Eclipse

2012-01-30 Thread Ted Scott


Out of desperation I started poking it with a stick whilst yelling 
BEHAVE! ;)


Actually, I started going through settings fairly methodically since I 
figured if not many were seeing this issue it was probably some 
configuration that isn't very common. I was pleasantly surprised when it 
started working and it's really good to have some confirmation that this 
is a real problem.


On 1/30/2012 3:07 PM, DanielleM wrote:

Ted,

Yes that actually worked for me as well!!! I don't know how you
figured that out but nice job. I never would have thought that
changing that one particular setting could have that big of an effect.

Hopefully this will get fixed now that you've filed a report.

Thanks,
Danielle

On Jan 30, 3:00 pm, Ted Scott  wrote:

Danielle,

Is your LogCat view set to 'verbose'? I just changed mine to 'debug' and
everything started working. I opened a defect report on 
this:http://code.google.com/p/android/issues/detail?id=24926

Let me know if it works for you.

-Ted

On 1/30/2012 1:10 PM, DanielleM wrote:








Yes that's my fear too. And I had been having the issues you describe
about the interface hanging at 27% when trying to re-launch an
emulator...although I'm thinking I was having those problems even
right before r16. That was very annoying but at least you could close
it, kill the process and restart and it would work. When everything
totally freezes and crashes when trying to get screen captures from
the DDMS screen is what makes it useless.
I had to transfer my files to another machine that I happened to not
have updated yet in order to get those. But that situation may not
always be possible if I'm working remotely and only have my laptop to
work on.
It's just nice to know that I'm not the only one with these issues. :)
On Jan 30, 12:52 pm, Ted Scottwrote:

I'm surprised there only seems to be you and I talking about this. I
wonder what makes us special?
I really don't want to lose the configuration in eclipse and the DBs on
my AVDs which is what I fear will happen if I have to reinstall everything.
On 1/30/2012 12:02 PM, DanielleM wrote:

I'm so glad someone else has been having these issues as well. I
haven't tried to roll back to an earlier version of the SDK yet...and
I'm afraid it's going to require a complete uninstall and re-install
which is why I've been hesitant to do this.
I hope there will be some kind of fix soon.
On Jan 27, 5:46 pm, "Ted S."  wrote:

I'm having the same problems in eclipse Indigo.
I can run an app on the emulator first time.
Reloading a changed app hangs at 27% launch. Requires relaunching eclipse,
and leaves old eclipse image running which must be killed.
Attempting to debug results in "Waiting for debugger to attach" on AVD,
eclipse never shifts to debug perspective.
This behavior is new to r16 update. I'm not sure how to back out the
update, and have not found a workaround as yet.


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

2012-01-30 Thread Ted Scott

Danielle,

Is your LogCat view set to 'verbose'? I just changed mine to 'debug' and 
everything started working. I opened a defect report on this: 
http://code.google.com/p/android/issues/detail?id=24926


Let me know if it works for you.

-Ted

On 1/30/2012 1:10 PM, DanielleM wrote:

Yes that's my fear too. And I had been having the issues you describe
about the interface hanging at 27% when trying to re-launch an
emulator...although I'm thinking I was having those problems even
right before r16. That was very annoying but at least you could close
it, kill the process and restart and it would work. When everything
totally freezes and crashes when trying to get screen captures from
the DDMS screen is what makes it useless.

I had to transfer my files to another machine that I happened to not
have updated yet in order to get those. But that situation may not
always be possible if I'm working remotely and only have my laptop to
work on.

It's just nice to know that I'm not the only one with these issues. :)

On Jan 30, 12:52 pm, Ted Scott  wrote:

I'm surprised there only seems to be you and I talking about this. I
wonder what makes us special?

I really don't want to lose the configuration in eclipse and the DBs on
my AVDs which is what I fear will happen if I have to reinstall everything.

On 1/30/2012 12:02 PM, DanielleM wrote:








I'm so glad someone else has been having these issues as well. I
haven't tried to roll back to an earlier version of the SDK yet...and
I'm afraid it's going to require a complete uninstall and re-install
which is why I've been hesitant to do this.
I hope there will be some kind of fix soon.
On Jan 27, 5:46 pm, "Ted S."wrote:

I'm having the same problems in eclipse Indigo.
I can run an app on the emulator first time.
Reloading a changed app hangs at 27% launch. Requires relaunching eclipse,
and leaves old eclipse image running which must be killed.
Attempting to debug results in "Waiting for debugger to attach" on AVD,
eclipse never shifts to debug perspective.
This behavior is new to r16 update. I'm not sure how to back out the
update, and have not found a workaround as yet.


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

2012-01-30 Thread Ted Scott
I'm surprised there only seems to be you and I talking about this. I 
wonder what makes us special?


I really don't want to lose the configuration in eclipse and the DBs on 
my AVDs which is what I fear will happen if I have to reinstall everything.


On 1/30/2012 12:02 PM, DanielleM wrote:

I'm so glad someone else has been having these issues as well. I
haven't tried to roll back to an earlier version of the SDK yet...and
I'm afraid it's going to require a complete uninstall and re-install
which is why I've been hesitant to do this.

I hope there will be some kind of fix soon.

On Jan 27, 5:46 pm, "Ted S."  wrote:

I'm having the same problems in eclipse Indigo.

I can run an app on the emulator first time.

Reloading a changed app hangs at 27% launch. Requires relaunching eclipse,
and leaves old eclipse image running which must be killed.

Attempting to debug results in "Waiting for debugger to attach" on AVD,
eclipse never shifts to debug perspective.

This behavior is new to r16 update. I'm not sure how to back out the
update, and have not found a workaround as yet.


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

2012-01-30 Thread Ted Scott

Thanks, Mark!

I just didn't know the drill, and seeing some very basic questions being 
posted got me wondering. Now that I got the flood I realize I was simply 
being impatient.


On 1/30/2012 12:10 PM, Mark Murphy wrote:

[android-developers], like most Google Groups, is moderated. The
moderator just flushed the queue. You should now be able to post
without further interruption.

Or, use StackOverflow and the android tag.

On Sun, Jan 29, 2012 at 4:16 PM, Ted S.  wrote:

I've been having problems with the r16 update to the AVD manager and
ADT in eclipse Indigo.

I've attempted to post a reply to someone else with similar issues.
I've answered a couple of other posts and I'm not seeing my posts.

Am I waiting on someone to approve me? Have I missed some step in
registering?

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

2012-01-30 Thread Ted Scott

I have an app that invokes a service in the background from an alarm:

// Ok, let's try running the service via a repeating alarm...
// We need to make a PendingIntent from the service intent...
Intent si = new Intent(this, xxxService.class);
PendingIntent pi = PendingIntent.getService(this, 0, si, 
PendingIntent.FLAG_UPDATE_CURRENT);


// Set the first time the alarm should trigger to be an hour 
ago in milliseconds...

long when = new Date().getTime() - 36;
AlarmManager alarm = (AlarmManager) 
getSystemService(Context.ALARM_SERVICE);
alarm.setInexactRepeating(alarm.RTC_WAKEUP, when, 
alarm.INTERVAL_HOUR, pi);


It does a web service call approximately every hour after the app is run 
the first time. Because it uses the Inexact method it is likely the 
phone is doing something else also. The user never sees it run.


If you are launching an Activity that needs the screen then I think that 
is when you need the NEW_ACTIVITY_FLAG? I have the following in use to 
start an activity that displays a record selected on a list:


// display the whole record in its own activity.
Intent detailIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(Sample.CONTENT_URI+"/"+id),
ctx,
xxxActivity.class);
detailIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
try {
ctx.startActivity(detailIntent);
}
catch (Exception e) {
String foo = e.getMessage();
Log.e("Caught It:",foo);
}

I'm not yet sure I'm clear myself on when the flag is required.

On 1/29/2012 1:03 PM, Kostya Vasilyev wrote:

Correct.

Keep in mind though, that, except for some specific cases (an alarm 
clock and the like), this -- an activity popping out of nowhere -- can 
be an unexpected and jarring experience for the user.


I can see it as a plot device for Final Destination 6: someone's 
bleeding to death, trying to call 911 on his Android phone, and is 
interrupted by a popup window: "5 days to Jane's birthday". Cut to black.


:)

-- Kostya

29 января 2012 г. 21:41 пользователь Rudolf Polzer 
mailto:rudolf.pol...@i-r-p.de>> написал:


The LogCat contents after the crash is

ERROR/AndroidRuntime(19994): java.lang.RuntimeException: Unable to
start receiver irp.plan.OnAlarmReceiver:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
...
ERROR/AndroidRuntime(19994): Caused by:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

So I guess I have to add the FLAG_ACTIVITY_NEW_TASK flag to the
intent to start the activity, because the startActivity() is
called from inside the message receiver OnAlarmReceiver.


Am 29.01.2012 16:09, schrieb Kostya Vasilyev:

Press F8 (Resume) in Eclipse a few times until you get the
crash dialog
on the device.

Then check the logcat.

Look for the part after "Caused by:"

-- Kostya

29.01.2012 15:21, Rudolf Polzer пишет:

The manifest file contains

within the tag.

The stack is
ActivityThread.handleReceiver(ActivityThread$ReceiverData)
line:
2639
ActivityThread.access$3100(ActivityThread, ActivityThread
$ReceiverData) line: 119
ActivityThread$H.handleMessage(Message) line: 1913
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123



-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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


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

[android-developers] r16 and eclipse - debugger and relaunch is hosed

2012-01-30 Thread Ted Scott
This is driving me nuts. A couple of others have reported it, but no one 
seems to have a work around or even why this is happening.


I had a working set of projects until the r16 SDK/ADT update. Now I can 
run an emulator with an app the first time I launch it. I cannot run or 
launch under the debugger, as the emulator hangs waiting for the 
debugger to connect. On relaunch, eclipse sits at 27% progress while 
launching app.


Eclipse must be restarted to launch, and when eclipse is stopped the run 
image of eclipse is still in memory and must be killed.


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

2011-11-06 Thread Scott Herbert
Thanks. I was sure their was an easy way. I'll double check the
settings tomrrow when I get back in front of a my laptop.

On Nov 7, 1:46 am, Nikolay Elenkov  wrote:
> On Mon, Nov 7, 2011 at 9:33 AM, Scott Herbert
>
>  wrote:
> > Sorry if this is a little off topic (it's more an eclipse questron than an
> > Android one, but as it's for an Android project...)
>
> > What the easyist way to define non Latin text (I.e. Unicode) specifiy Arabic
> > and Chinese in an Android project? When I try and copy and pasted the google
> > translated version of my strings (I accept GT isn't the best way to
> > internationalise an app but my budget is zero so...) eclipse doesn't
> > recognised the characters. Can I just convert the characters an store the
> > Unicode values? Or is their a better way?
>
> Where are you copying the strings? If you are copying them to a resource
> XML file (as you should), the encoding is UTF-8 so it should work
> automatically.
> If you are copying those in your source files as Java strings, you need to
> change the encoding of your source files to UTF-8 (the default is the platform
> default encoding): right click your project, select 'Resource' on the left
> and change 'Text file encoding' to UTF-8.

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


[android-developers] Unicode in eclipse

2011-11-06 Thread Scott Herbert
Sorry if this is a little off topic (it's more an eclipse questron than an
Android one, but as it's for an Android project...)

What the easyist way to define non Latin text (I.e. Unicode) specifiy
Arabic and Chinese in an Android project? When I try and copy and pasted
the google translated version of my strings (I accept GT isn't the best way
to internationalise an app but my budget is zero so...) eclipse doesn't
recognised the characters. Can I just convert the characters an store the
Unicode values? Or is their a better way?

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

[android-developers] Tel: and SMS: URIs

2011-10-05 Thread Scott Miller
Hi there,
I am trying to create a mobile site, which hopefully will become an
app as well. but I cannot get it to do exactly what I want.
I have created links to activate voicemail
Activate Voicemail
is there a way for msend the request automatically, without the need
for me to press the call button in the dialer?

My other question is with messaging, how can I get the sms: URI to
attach the body with the message?
I can get Request A Call to work
but when I add the body Request a Call returns "Please correct the
recipient(s) or they may not receive the message" error

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


[android-developers] In-App Billing Question

2011-08-24 Thread Scott Allender
I am attempting to integrate in app billing in an application.  My
billing service binds to Google's service fine, but when I send the
CHECK_BILLING_SUPPORTED request, I always receive a
RESULT_BILLING_UNAVAILABLE.  My phone's main account is set up as a
test account, and I have uploaded the APK (but not published) to the
market.  The bundle is sending API_VERSION = 1.  Any ideas?

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

2011-08-01 Thread Scott
Yesterday (July 29, 2011), I had two apps with ratings of
approximately 4.5 (a network calculator) and 4.0 (a spinning polyhedra
live wallpaper). That changed late last night. Approximately 50% and
75%, respectively, of my user ratings vanished! Now I have ratings of
4.3 and 3.0!

Taking a full star drop is quite a hit. Going from 4.0 to 3.0 is the
difference between, "This might be neat," to, "Meh," for most users
hunting for new applications.

It seems most of my user comments are intact.

Is anyone else having a similar problem?

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


[android-developers] Re: Problem after upgrading to revision 12

2011-07-29 Thread Scott Hammer
I'm in the same boat here. Recently updated to r12 and I can no longer
preview layouts.

On Jul 29, 1:01 pm, darrinps  wrote:
> Everything was working fine until I upgraded to revision 12. Now every
> layout I try to bring up gives me the message:
>
> LayoutLibistoorecent.Updateyourtool
>
> Well, I didupdateit!
>
> Anyone know what the problem is?
>
> Thanks.

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


[android-developers] Re: 10am TODAY is LAST CHANCE for Android ADK Open Call - Win an ADK !

2011-07-18 Thread Johno Scott
Apologies, in the rush i thought this was posting to my local Android
User Group.

On Jul 19, 8:54 am, Johno Scott
 wrote:
> This is your LAST CHANCE to get involved in this great event.
>
> Be in front of your computer at 10am today for the Round 1 quiz
>
> https://sites.google.com/site/opencallforgdd/the-challenge
>
> Good luck !
>
> Johno Scott

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


[android-developers] 10am TODAY is LAST CHANCE for Android ADK Open Call - Win an ADK !

2011-07-18 Thread Johno Scott
This is your LAST CHANCE to get involved in this great event.

Be in front of your computer at 10am today for the Round 1 quiz

https://sites.google.com/site/opencallforgdd/the-challenge

Good luck !

Johno Scott

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


[android-developers] Black Flash when changing VideoURIs in a Video View.

2011-07-11 Thread Scott G.
I have a VideoView which I want to use to play a video. The code below
works.

VideoView m_videoView;
String videoUrl = "website url deleted";
Uri video = Uri.parse(videoUrl);
m_videoView.setVideoURI(video);
m_videoView.requestFocus();
m_videoView.start();

However I see a black flash just before and after the movie clip. The
flash in itself isn't a big problem, but the blackness of it is. The
background is white, so if the flash is white, or if it disappears it
will be okay.

Thoughts?

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

2011-07-01 Thread Scott Kennedy
I figured it out.  For anyone else who might be interested, the map
tiles on Android's MapView seem to be twice as dense as the JS API's.
So if you have an existing tileset, just read them in with an
inSampleSize of 2, and adjust the positioning accordingly.

On Jul 1, 1:20 pm, Scott Kennedy  wrote:
> I have a website where I use the Javascript Maps API, and I use an
> Image Map (http://code.google.com/apis/maps/documentation/javascript/
> maptypes.html#ImageMapTypes) to display my custom tiles on top of a
> map.  These tiles use the tile/pixel coordinates as defined by Google
> in that document.  This works fine for the Javascript API.
>
> To give a better in-app experience, I'd like to use a MapView, rather
> than a WebView (or opening the browser) with the JS API.  However, I'm
> having a hard time getting the tiles to display properly in the
> MapView.  It doesn't seem to behave the same way as the JS API.  I'm
> not sure whether that's due to tile size, the projection used, or
> something else, but I was wondering if anyone had done something
> similar and could share some ideas or code on how to do this.
>
> Thanks

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


[android-developers] "Image Map Type" style Overlay in MapView

2011-07-01 Thread Scott Kennedy
I have a website where I use the Javascript Maps API, and I use an
Image Map (http://code.google.com/apis/maps/documentation/javascript/
maptypes.html#ImageMapTypes) to display my custom tiles on top of a
map.  These tiles use the tile/pixel coordinates as defined by Google
in that document.  This works fine for the Javascript API.

To give a better in-app experience, I'd like to use a MapView, rather
than a WebView (or opening the browser) with the JS API.  However, I'm
having a hard time getting the tiles to display properly in the
MapView.  It doesn't seem to behave the same way as the JS API.  I'm
not sure whether that's due to tile size, the projection used, or
something else, but I was wondering if anyone had done something
similar and could share some ideas or code on how to do this.

Thanks

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


[android-developers] Re: I keep on getting 401 when sending msg to C2DM server

2011-05-03 Thread Scott Hammer
1. Have you registered your sender email to send messages here?
http://code.google.com/android/c2dm/signup.html
2. And have you waited about 24 hours to be activated? There is a
latency to activate your account.
3. Is your sender email that you registered the device with the same
email you registered with in #1? It should be.

On May 2, 8:27 pm, "MikeG."  wrote:
> I have tried everything, as far as I know.
> Can anybody see anything bad in the following message?
>
> Thanks,
> -Michael
>
> registration_id=APA91bGe7an_cUM5I2PCbqBnE7WZYyxfSpo2CFZyGKQxkvK4Bx8HpoFO5lTNtKoJEqzarxRPYVlXv0HKKLC8dsg68e_UniwXY46O675No4_eboDEfi7jr9A&collapse_key=This
> is collapse key santance&data.message=miko ytes invites you to watch a
> stream&Authorization: GoogleLogin
> auth=DQAAALBwQNNxZ199S4vMKMMyIhOoZBAmcZgnxMUqyV9ZAqdunK0DpJd0pHh5jBCdDLfqGRMRF1G5b9nU9vLBrT95gJKx3NBSlPXSsmJddSb1zC4gThwhX83PN_7Ihpl76GXpJqtaaJLBNLTUFy1zQStzE1-
> hgffdXPjKyIomGBKxgmbIYv8IunjH5_6ktEU4TFGZ9HeZaBJYKQMwGS6eGkp8w5ySmyfB4ORI2V2a07tSH_DV4w&

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


[android-developers] Unable to install latest Android SDK on Ubuntu 10.10

2011-05-02 Thread Scott
Hi folks,

I've been trying in vein for a few days to get the latest Android SDK
to install on Ubuntu 10.10.  Here's what I'm up to:

1) Grabbed and unpacked the starter package
2) Ran tools/android
3) Clicked "Available Packages"
4) Selected all under Android Repository
5) Clicked "Install selected packages"

And kaboom (below).

I've tried it with both OpenJDK (1.6) and Sun JDK (1.6), but no dice.
Any suggestions would be greatly appreciated.

Scott

Error log:
*** glibc detected *** java: malloc(): memory corruption:
0x7f6968b12300 ***
=== Backtrace: =
/lib/libc.so.6(+0x774b6)[0x7f69720f84b6]
/lib/libc.so.6(+0x7b55f)[0x7f69720fc55f]
/lib/libc.so.6(__libc_malloc+0x6e)[0x7f69720fd38e]
/usr/lib/libpixman-1.so.0(+0x1724b)[0x7f69629c624b]
/usr/lib/libpixman-1.so.0(pixman_image_create_solid_fill+0x9)
[0x7f69629e78b9]
/usr/lib/libpixman-1.so.0(pixman_image_fill_boxes+0x23a)
[0x7f69629e163a]
/usr/lib/libcairo.so.2(+0x27c68)[0x7f6964830c68]
/usr/lib/libcairo.so.2(+0x48848)[0x7f6964851848]
/usr/lib/libcairo.so.2(+0x4b885)[0x7f6964854885]
/usr/lib/libcairo.so.2(+0x48861)[0x7f6964851861]
/usr/lib/libcairo.so.2(+0x4cac7)[0x7f6964855ac7]
/usr/lib/libcairo.so.2(+0x4cc92)[0x7f6964855c92]
/usr/lib/libcairo.so.2(+0x4d8d9)[0x7f69648568d9]
/usr/lib/libcairo.so.2(+0x4a191)[0x7f6964853191]
/usr/lib/libcairo.so.2(+0x2282a)[0x7f696482b82a]
/usr/lib/libcairo.so.2(cairo_stroke_preserve+0x1b)[0x7f696482249b]
/usr/lib/libcairo.so.2(cairo_stroke+0x9)[0x7f69648224c9]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(murrine_draw_focus+0x5e)
[0x7f696192815e]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(+0xf724)[0x7f6961918724]
/usr/lib/libgtk-x11-2.0.so.0(+0x240008)[0x7f6966d70008]
/usr/lib/libgtk-x11-2.0.so.0(+0x240115)[0x7f6966d70115]
/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7f6966c6a9d8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f6963550a6e]
/usr/lib/libgobject-2.0.so.0(+0x24a30)[0x7f6963566a30]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)
[0x7f69635680eb]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f6963568863]
/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7f6966d836df]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f6966c641b6]
/tmp/swtlib-64/libswt-pi-
gtk-3550.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1main_1do_1event
+0xc)[0x7f6967192a9d]
[0x7f696d02dca8]
=== Memory map: 
0040-00409000 r-xp  08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00608000-00609000 r--p 8000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00609000-0060a000 rw-p 9000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
02448000-02c41000 rw-p  00:00
0  [heap]
e5a0-e6ec rw-p  00:00 0
e6ec-f000 rw-p  00:00 0
f000-f295 rw-p  00:00 0
f295-faab rw-p  00:00 0
faab-fbf5 rw-p  00:00 0
fbf5-1 rw-p  00:00 0
7f695ece-7f695ecf5000 r-xp  08:01
59113551   /lib/libgcc_s.so.1
7f695ecf5000-7f695eef4000 ---p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef4000-7f695eef5000 r--p 00014000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef5000-7f695eef6000 rw-p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef6000-7f695ef4d000 r--p  08:01
15597650   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-BI.ttf
7f695ef4d000-7f695efaa000 r--p  08:01
15597651   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-I.ttf
7f695efaa000-7f695effc000 r--p  08:01
15597649   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-B.ttf
7f695effc000-7f695efff000 ---p  00:00 0
7f695efff000-7f695f0fd000 rw-p  00:00 0
7f695f0fd000-7f695f10 ---p  00:00 0
7f695f10-7f695f1fe000 rw-p  00:00 0
7f695f1fe000-7f695f203000 r-xp  08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f203000-7f695f402000 ---p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f402000-7f695f403000 r--p 4000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f403000-7f695f404000 rw-p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f404000-7f695f406000 r-xp  08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f406000-7f695f605000 ---p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f605000-7f695f606000 r--p 1000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f606000-7f695f607000 rw-p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f607000-7f695f61c000 r-xp  08:01
16385948   /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/
libnet.so
7f695f61c000-7

[android-developers] Unable to install latest Android SDK on Ubuntu 10.10

2011-05-02 Thread Scott
Hi folks,

I've been trying in vein for a few days to get the latest Android SDK
to install on Ubuntu 10.10.  Here's what I'm up to:

1) Grabbed and unpacked the starter package
2) Ran tools/android
3) Clicked "Available Packages"
4) Selected all under Android Repository
5) Clicked "Install selected packages"

And kaboom (below).

I've tried it with both OpenJDK (1.6) and Sun JDK (1.6), but no dice.
I've also tried as root, although it was my understanding that that
shouldn't be necessary.

Any suggestions would be greatly appreciated.

Scott

Error log:
*** glibc detected *** java: malloc(): memory corruption:
0x7f6968b12300 ***
=== Backtrace: =
/lib/libc.so.6(+0x774b6)[0x7f69720f84b6]
/lib/libc.so.6(+0x7b55f)[0x7f69720fc55f]
/lib/libc.so.6(__libc_malloc+0x6e)[0x7f69720fd38e]
/usr/lib/libpixman-1.so.0(+0x1724b)[0x7f69629c624b]
/usr/lib/libpixman-1.so.0(pixman_image_create_solid_fill+0x9)
[0x7f69629e78b9]
/usr/lib/libpixman-1.so.0(pixman_image_fill_boxes+0x23a)
[0x7f69629e163a]
/usr/lib/libcairo.so.2(+0x27c68)[0x7f6964830c68]
/usr/lib/libcairo.so.2(+0x48848)[0x7f6964851848]
/usr/lib/libcairo.so.2(+0x4b885)[0x7f6964854885]
/usr/lib/libcairo.so.2(+0x48861)[0x7f6964851861]
/usr/lib/libcairo.so.2(+0x4cac7)[0x7f6964855ac7]
/usr/lib/libcairo.so.2(+0x4cc92)[0x7f6964855c92]
/usr/lib/libcairo.so.2(+0x4d8d9)[0x7f69648568d9]
/usr/lib/libcairo.so.2(+0x4a191)[0x7f6964853191]
/usr/lib/libcairo.so.2(+0x2282a)[0x7f696482b82a]
/usr/lib/libcairo.so.2(cairo_stroke_preserve+0x1b)[0x7f696482249b]
/usr/lib/libcairo.so.2(cairo_stroke+0x9)[0x7f69648224c9]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(murrine_draw_focus+0x5e)
[0x7f696192815e]
/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so(+0xf724)[0x7f6961918724]
/usr/lib/libgtk-x11-2.0.so.0(+0x240008)[0x7f6966d70008]
/usr/lib/libgtk-x11-2.0.so.0(+0x240115)[0x7f6966d70115]
/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7f6966c6a9d8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7f6963550a6e]
/usr/lib/libgobject-2.0.so.0(+0x24a30)[0x7f6963566a30]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)
[0x7f69635680eb]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f6963568863]
/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7f6966d836df]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7f6966c641b6]
/tmp/swtlib-64/libswt-pi-
gtk-3550.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1main_1do_1event
+0xc)[0x7f6967192a9d]
[0x7f696d02dca8]
=== Memory map: 
0040-00409000 r-xp  08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00608000-00609000 r--p 8000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
00609000-0060a000 rw-p 9000 08:01
16385929   /usr/lib/jvm/java-6-openjdk/jre/bin/
java
02448000-02c41000 rw-p  00:00
0  [heap]
e5a0-e6ec rw-p  00:00 0
e6ec-f000 rw-p  00:00 0
f000-f295 rw-p  00:00 0
f295-faab rw-p  00:00 0
faab-fbf5 rw-p  00:00 0
fbf5-1 rw-p  00:00 0
7f695ece-7f695ecf5000 r-xp  08:01
59113551   /lib/libgcc_s.so.1
7f695ecf5000-7f695eef4000 ---p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef4000-7f695eef5000 r--p 00014000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef5000-7f695eef6000 rw-p 00015000 08:01
59113551   /lib/libgcc_s.so.1
7f695eef6000-7f695ef4d000 r--p  08:01
15597650   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-BI.ttf
7f695ef4d000-7f695efaa000 r--p  08:01
15597651   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-I.ttf
7f695efaa000-7f695effc000 r--p  08:01
15597649   /usr/share/fonts/truetype/ubuntu-font-
family/Ubuntu-B.ttf
7f695effc000-7f695efff000 ---p  00:00 0
7f695efff000-7f695f0fd000 rw-p  00:00 0
7f695f0fd000-7f695f10 ---p  00:00 0
7f695f10-7f695f1fe000 rw-p  00:00 0
7f695f1fe000-7f695f203000 r-xp  08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f203000-7f695f402000 ---p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f402000-7f695f403000 r--p 4000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f403000-7f695f404000 rw-p 5000 08:01
59113710   /lib/libnss_dns-2.12.1.so
7f695f404000-7f695f406000 r-xp  08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f406000-7f695f605000 ---p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f605000-7f695f606000 r--p 1000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f606000-7f695f607000 rw-p 2000 08:01
59113589   /lib/libnss_mdns4_minimal.so.2
7f695f607000-7f695f61c000 r-xp  08:01
16385948

[android-developers] How to receive SDP from 200 OK in SIP in responce to INVITE

2011-04-13 Thread Scott
Hi

I am sending Invite message with SDP. I intend to receive the 200OK
which has some SDP description. Can you please guide me which API
method will help me to receive it.

Is it [ onCallEstablished (SipSession session, String
sessionDescription)  ] method of android.net.sip.SipSession.Listener,
which will help  me to receive the SDP present in 200 OK in response
to INVITE Message.

Thanks

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


[android-developers] Re: info incorrect on http://developer.android.com WHICH COULD PREVENT ECLIPSE FROM RECOGNIZING YOUR DEVICE

2011-04-09 Thread scott
dejeme a decirte que no tienes que ser un "troll"  solo hay que leir y
decide si lo yo he escrito se le vaya ayudar.  Tal vez puedo utilizar
mi keyboard a pegarle en la cara

On Apr 9, 6:48 am, lbendlin  wrote:
> Ah, the juvenile excitement. Fond memories. Tell you what. Take your
> keyboard, turn it keys down, and smash it on the table a few times. Maybe
> the Caps Lock key becomes unstuck.

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


[android-developers] info incorrect on http://developer.android.com WHICH COULD PREVENT ECLIPSE FROM RECOGNIZING YOUR DEVICE

2011-04-08 Thread scott
On the following page there is info that is incorrect (correct but
missing an important piece)

http://developer.android.com/guide/developing/device.html#setting-up

It mentions if using Ubuntu Linux in order to run/debug ON your
Android device (not virtual device) you must go into ubuntu and add a
file. (see below I pasted from the site)

"If you're developing on Ubuntu Linux, you need to add a rules file
that contains a USB configuration for each type of device you want to
use for development. Each device manufacturer uses a different vendor
ID. The example rules files below show how to add an entry for a
single vendor ID (the HTC vendor ID). In order to support more
devices, you will need additional lines of the same format that
provide a different value for the SYSFS{idVendor} property. For other
IDs, see the table of USB Vendor IDs, below.
Log in as root and create this file: /etc/udev/rules.d/51-
android.rules.
For Gusty/Hardy, edit the file to read:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
For Dapper, edit the file to read:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
Now execute:
chmod a+r /etc/udev/rules.d/51-android.rules

THIS IS INSUFFICIENT.  IT SAYS TO NAME THE FILE 51-ANDROID.RULES BUT
THIS IS INCORRECT IF THE OTHER DEFAULT FILES IN THE UDEV FOLDER
CONTAIN A NUMBER HIGHER THAN 50

IN MY UDEV FOLDER FOR EXAMPLE THERE WERE ALREADY TWO DEFAULT FILES
WITH NAMES THAT INCLUDED A NUMBER HIGHER THAN 50 (70)

LINUX AUTO RUNS THE PROGRAM WITH HIGHEST NUMBER FIRST.
DEVELOPER.ANDROID ASSUMES THE OTHER DEFAULT FILES IN YOUR ETC/UDEV
FOLDER ARE NUMBER 50 SO IT SUGGEST USING 51 WHEN YOU CREATE THE NEW
FILE WHEN IN FACT IT SHOULD JUST BE A NUMBER HIGHER THAN THE FILE NAME
NUMBERS THAT ARE ALREADY IN YOUR UDEV FOLDER (IN MY CASE IT HAD TO BE
HIGHER THAN 70)

AS SOON AS i DID THIS I WAS FINALLY ABLE TO GET ECLIPSE TO RECOGNIZE
MY SAMSUNG TAB (TO USE AS AN AVD) INSTEAD OF USING A SAMSUNG AVD
EMULATOR ON MY PC

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


[android-developers] Superscripted Keys on Keyboard

2011-04-08 Thread Scott
I'm creating a custom keyboard and have been able to hack around
sufficiently except for the following:

Does anyone know how one would display superscript key labels in
addition to the normal key labels on the keyboard keys?

For example, on the qwerty keyboard, I would like to see "1" have a
superscripted "!", "2" have a superscripted "@", etc. all of which
might only be able to pressed via the alt or function key or
something. HTC had it in the hero keyboard but I can't find anywhere
how they did that and the soft keyboard example doesn't show that.

Is there a method OTHER than creating 9-patch graphics for each
independent key? (...given my design, the thought of which makes me
want to blow my brains out. :> )

Scott

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

2011-04-04 Thread Scott Deutsch
Hello group,

I would love to put an android emulator on my website so people can try my 
app right on my website. Something like the test drive feature on amazon. 
How can this be done?

Thanks group.

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

2011-03-29 Thread Scott McCormack
Based on this discussion, I've decided to use a content provider for access to 
an internal private database for my app. It simply makes the data access 
simpler for me, and there's a really nice go-by in the NotePad sample. However, 
I'm worried about your comment about the leaked database connection. I'm still 
new to this arena. What are the consequences of leaking the database 
connection? 

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


[android-developers] Setting maxWeight on a TextView

2011-03-28 Thread scott
Hi,

I'm trying to accomplish what I thought was a pretty simple layout,
but am having trouble finding my way.  Basically, I just want one
TextView immediately after another where the second one has a fixed
width and the first one can grow as large as it needs to be but will
be ellipsized so that it doesn't push the second one out of the parent
container:

|   TextView 1 text is short here: TextView 2 text
|
|   TextView 1 text is really, really long here... TextView 2 text |

Using layout_weight causes the 2nd view to be pushed all the way to
end of the container, even if it does not need to be:

|   TextView 1 text is short here:TextView 2 text
|
|   TextView 1 text is really, really long here... TextView 2 text |

I can use maxWidth on the 1st TextView and things work ok, but I don't
know the value (parent container width-TextView 2 width) without doing
some measuring at run time.  It seems like I need some hybrid maxWidth/
layout_weight mechanism.  Seems I am missing the obvious -- can
anybody point it out?

Thanks!
Scott



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


[android-developers] Re: Can somebody suggest the best book or online resource for beginning android apps development?

2011-03-22 Thread Scott
"Beginning Android 2" by Mark Murphy is a great start to understand
the fundamentals.  The flow of the book so far works well.  I
originally started with the online articles at HTTP://developer.android.com
but I prefer a physical book.  "Pro Android 2" was good but contained
more advanced concepts without as much foundation... which makes
sense.  "Android In Action" is also good but understand the
fundamentals first.  Android terminology is slightly different from
other languages, intents versus events and views instead of controls
are two examples.


On Mar 22, 7:09 am, kernelpanic  wrote:
> I have to agree -http://commonsware.com/- helped me a lot when I was
> first starting and is still something I refer to frequently.
>
> On Mar 21, 6:51 am, Narendra Padala  wrote:
>
>
>
> > Hi Flocks,
>
> > Can somebody suggest the best book or online resource for beginning android
> > apps development?
>
> > Regard's
> > Narendra

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


[android-developers] Not able to receive UDP Data

2011-03-17 Thread Scott
Hi

I am trying to receive UDP data sent from server to my android
emulator client. But i am not able to receive the UDP data in my
android client application which is running on emulator.
packet = new DatagramPacket(buf, buf.length);
socket.receive(packet);

1) Can you please let me know how to fix it and receive UDP data on
emulator from server application running on some other system.

2) Will i face same problem in receving UDP data if i run my client on
the Android hardware/Android based mobile.

3) Will i face similar problem in receving the TCP based data when
running the application on the Android Emulator.

Kindly pleas guide/help me to get the answers to the above queries.

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


[android-developers] Styles not styling in Eclipse?

2011-03-14 Thread Scott McCormack
I've tried using some styles, both standard android:style ones and
those of my own creation, and for some reason the Graphical Layout
view of Eclipse won't display my views in the defined styles.  They
simply default to the standard default style.  Is this common?  See my
xml below.

In styles.xml:



#00



In list_item.xml (ignore the "...", I just shortened it up):






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

2011-03-14 Thread Scott McCormack
Assuming I can safely place ads in my apps in such a way that they
aren't bothered by it, is 10-20 clicks per 1000 an appropriate
estimate to use for budgeting?


On Mar 11, 9:13 am, Justin Giles  wrote:
> Having ads in an app isn't totally fruitless.  Look at Angry Birds on
> Android...what was it?  $1 million/month back in November just from ads?
>  The catch is you have to have enough of a user base to make it worthwhile.
>  While there are some here that are making pennies a day on ads, there are
> others that are making hundreds, if not thousands a day.  You need to really
> evaluate for a particular app if a) does it have enough of a user base to
> generate many clicks (think about 10-20 clicks per 1000 ad views) and b) do
> I have a place in my app that I can safely place an ad without angering my
> users and such that it will be viewed frequently and for longer than 10
> seconds.
>
>
>
>
>
>
>
> On Fri, Mar 11, 2011 at 7:38 AM, Jake Colman  wrote:
>
> > So assuming that the majority of users will simply ignore the ads,
> > adding them to an app is not a particularly good way to make any money.
> > I thought you get paid per ad that is displayed even without a click.
> > After all, you still gave the advertiser the eyeballs.
>
> > > "LC" == LAM Creations  writes:
>
> >    LC> You do not get paid per impression and CPM varies a lot daily
> >   LC> from a few cents - $100+ just depends.
>
> >   LC> --
> >   LC> You received this message because you are subscribed to the Google
> >   LC> Groups "Android Developers" group.
> >    LC> To post to this group, send email to
> > android-developers@googlegroups.com
> >   LC> To unsubscribe from this group, send email to
> >   LC> android-developers+unsubscr...@googlegroups.com
> >   LC> For more options, visit this group at
> >   LC>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Jake Colman -- Android Tinkerer
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Which Mobile Advertising Site?

2011-03-11 Thread Scott McCormack
Thanks for the heads up about APP/Leads. I looked into it, and will definitely 
add it to my list of options. 

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

2011-03-11 Thread Scott McCormack
$0.20 per click sounds good. What is a typical amount per impression? 

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

2011-03-09 Thread Scott Davies


On 11-03-09 5:30 PM, "Kenny Riddile"  wrote:

>On 3/9/2011 5:13 PM, TreKing wrote:
>> On Wed, Mar 9, 2011 at 4:10 PM, Kenny Riddile > <mailto:kfridd...@gmail.com>> wrote:
>>
>> Singletons are global variables.
>>
>>
>> Uh ... no ... no they're not.
>>
>> 
>>-
>>
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>> transit tracking app for Android-powered devices
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>Assuming the singleton is modifiable via its interface, then for all
>intents and purposes, yes, they are.

I think the idea is that because the singleton is encapsulated, you at
least have some business logic around mutating them, whereas the "classic"
global variable is visible AND mutable without restrictions.

- Scott


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

2011-02-26 Thread Scott Deutsch
I know that v = 2piR/T. 

How would polar coord work?

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

[android-developers] Math question

2011-02-26 Thread Scott Deutsch
Hello Group,

I have a couple of questions.

1. Lets say I calculate a circle say 14 points in a circle. I have an object 
following those points for so many times for an animation. Now, since there 
are different screen sizes, The speed of following those points will vary on 
each mobile device. So my first question is how can I make it constant no 
matter the radius size and screen size?

2, The following code to the points in the circle works, but sometimes, the 
will jerk the object because it overshot it or something. I am checking by 
distance between two points. What is a better way to do follow points in a 
circle that doesnt jerk? I am all ears, but this one is not as critical as 
the first question.

Thanks group.

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

2011-02-26 Thread Scott Deutsch
Ok, so I figured out how to resize bitmaps, but now I am trying to
figuare out how to resize a Media (which plays a gif...unless there is
a better way to play gifs?).

For those looking on how to resize a bitmap do the following:

1. get the width and height of screen/view.
2. set a ratioWidth var to ScreenWidth/WidthDevelopedFor
3. set a ratioHeight var to ScreenHeight/HeightDevelopedFor
4. then in your bitmap after you decode the resource, next do
Bitmap.createScaledBitmap. In the new x do
BitmapVar.getWidth()*ratioWidth and in the new y do
BimapVar.getHeight()*ratioHeight.

Hope that helps.


So, back to my question, how do you resize some Media class? I was
thinking canvas.scale and canvas.translate, but that really isnt
working. Again..if there is a better way to play gifs, i am all ears.

Thanks.

On Feb 26, 10:21 am, Scott Deutsch  wrote:
> Hello Group,
>
> I was wondering how do you scale a bitmap to look good on any screen size
> (Using surfaceview and canvas). I already know the canvas width and canvas
> height. So, what would the calculation be?
>
> Example lets say I have a picture that is 100x100 and the phone size is
> 1920x1200 (just for the sake of it). Now when displaying that on the phone,
> it will look small. So, how do i scale that up to be bigger based on the
> aspect ratio or resolution. Just say the developed phone resolution was
> 480x854 (so all pics was created after that res).
>
> So, if the resolution is smaller i want to scale the bitmap down, and if it
> is bigger, i want to scale it up.
>
> Any feedback is appreciated, thanks.

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


[android-developers] Bitmap Question

2011-02-26 Thread Scott Deutsch
Hello Group,

I was wondering how do you scale a bitmap to look good on any screen size 
(Using surfaceview and canvas). I already know the canvas width and canvas 
height. So, what would the calculation be?

Example lets say I have a picture that is 100x100 and the phone size is 
1920x1200 (just for the sake of it). Now when displaying that on the phone, 
it will look small. So, how do i scale that up to be bigger based on the 
aspect ratio or resolution. Just say the developed phone resolution was 
480x854 (so all pics was created after that res).

So, if the resolution is smaller i want to scale the bitmap down, and if it 
is bigger, i want to scale it up.

Any feedback is appreciated, thanks.

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

Re: [android-developers] @override question

2011-02-23 Thread Scott Davies
Hi,

As mentioned by Marcin and Kevin, this is to notify the compiler that you
are over-riding a method from it's base/parent/super class.  The @ syntax
is Java's (5.x and later, if I'm not mistaken), method of denoting meta
data markup attribute, similar to the [ ] syntax in C#.

If you're looking for more Java info, "Java for Android" (see:
http://www.amazon.com/Learn-Java-Android-Development-Friesen/dp/1430231564/
ref=sr_1_1?s=books&ie=UTF8&qid=1298501972&sr=1-1), is quite good.  I have
no ties to the author, but I own a copy and have found it useful for
brushing up on Java language and syntax.  It's well written.

For Android specific stuff, you'll need to read up on the Android
platform.  Manning has some great books available.

- Scott

On 11-02-23 5:45 PM, "Marcin Orlowski"  wrote:

>On 23 February 2011 01:13, Jeraldo  wrote:
>> hi, im just starting to learn android development. i have dont have
>> much background with java. my question is what does the "@override"
>> mean when developing android apps?
>
>http://tinyurl.com/ycq4gy2
>
>-- 
>Regards,
>Marcin
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, send email to
>android-developers+unsubscr...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en
>


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


Re: [android-developers] Re: How to detect tablet devices

2011-02-23 Thread Scott Davies
Dianne, I'm confused.

If your response had six "no's", I'd know not to do this for sureŠbut with
just five ?

This appears to be a grey issueŠ :)

- Scott

From:  Dianne Hackborn 
Reply-To:  
Date:  Wed, 23 Feb 2011 09:27:13 -0800
To:  
Cc:  carlo 
Subject:  Re: [android-developers] Re: How to detect tablet devices

No no no no no.

getResources().getConfiguration() tells you this kind of stuff about the
device.

Look for LARGE or XLARGE screen size, depending on what you want to do.

And of course you can have your resources adjust automatically by using
things like layout-xlarge.

On Mon, Feb 21, 2011 at 6:09 AM, carlo  wrote:
> Thank you all
> 
> Here is the code I use for my app:
> 
> public boolean isTablet() {
> try {
> // Compute screen size
> DisplayMetrics dm =
> context.getResources().getDisplayMetrics();
> float screenWidth  = dm.widthPixels / dm.xdpi;
> float screenHeight = dm.heightPixels / dm.ydpi;
> double size = Math.sqrt(Math.pow(screenWidth, 2) +
> Math.pow(screenHeight, 2));
> // Tablet devices should have a screen size greater than 6
> inches
> return size >= 6;
> } catch(Throwable t) {
> Log.error(TAG_LOG, "Failed to compute screen size", t);
> return false;
> }
> }
> 
> Any comments/suggestions?
> 
> On 16 Feb, 12:07, carlo  wrote:
>> > The question is simple... is there a (simple) way todetectif the
>> > current device, on which my application is running, is atablet?
>> > I know I could rely on the screen resolution, but I was wondering if
>> > there is a more deterministic way...
>> >
>> > Thanks in advance
>> > Carlo
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> <mailto:android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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


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

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

Re: [android-developers] Nexus-style reference implementation for tablets with Honeycomb

2011-02-15 Thread Scott Davies
Thanks for your reply, Mark!

Are you planning on doing tablet development ?  If so, what tablet will
you be using as a ref implementation ?  I've heard some rumblings of more
Honeycomb tablets "slated" (sorry, couldn't resist...), for announcement
at MWC.

Regards,

Scott

On 11-02-11 5:02 PM, "Mark Murphy"  wrote:

>None have been announced, sorry.
>
>On Sun, Feb 6, 2011 at 4:57 AM, Scott Davies 
>wrote:
>> Hi,
>>
>> I'd like to do some development with the Android platform (the
>> underlying OS stack and firmware).  I recently read that the tablet
>> being used in last week's Honeycomb presentation was a Motorola Xoom.
>> I have also read that Motorola will not allow customers (end customers
>> - obviously, Google had full access for development), to modify the
>> bootloader and firmware (and I would presume the OS).
>>
>> In light of this, I am aware that for the phone profile, the Nexus
>> series from Google allows full modification.  I would like to target
>> Honeycomb tablets and was wondering: will there be a Nexus-style
>> reference implementation tablet for Honeycomb ?  If so, what would be
>> the estimated ship date (Q2, etc.), for such a device for Canada ?
>>
>> Thanks,
>>
>> Scott
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
>-- 
>Mark Murphy (a Commons Guy)
>http://commonsware.com | http://github.com/commonsguy
>http://commonsware.com/blog | http://twitter.com/commonsguy
>
>Android App Developer Books: http://commonsware.com/books
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, 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: Bluetooth - Health Device Profile (HDP) and Continua

2011-02-11 Thread Scott Davies
Hi guys,

Read your messages and checked out the sample code at the URL listed.  Out
of curiosity - to do the Bluetooth networking, are you making calls from
your native code via the NDK to the kernel for the referenced Bluetooth
library ?

Thanks,

Scott

On 11-02-07 12:44 AM, "Praneeth"  wrote:

>I guess u should look at how other profiles have registered for their
>SDP records and do the same for HDP.
>
>For example look at OPP.
>
>You can check for files like sdptool.c where u can add u r code for
>registering ur sdp records.
>
>Did this help u?
>
>
>On Feb 2, 12:45 pm, John  wrote:
>> I am trying to build an application that connects to Continua
>> certified client devices using Bluetooth. The primary problem I have
>> run into is that I cannot create a service discovery profile (SDP)
>> because it crashes when I try to call sdp_record_register.  I could
>> have a bug in my code, but from my research it looks like the process
>> requires root permission to register the SDP record.
>>
>> I used a code sample
>>fromhttp://people.csail.mit.edu/albert/bluez-intro/x604.html
>> to try and register a RFCOMM SDP record and added log statements so I
>> know it is the call to sdp_record_register that is failing.
>>
>> Am I correct with my assumption that it is not possible to create SDP
>> records and therefore not possible to implement Bluetooth HDP?
>>
>> If I am wrong, can you point me in the correct direction to implement
>> the Bluetooth HDP with implementing the Continua Specification as the
>> final goal?
>>
>> If I am correct, who can I work with and/or what steps can I take to
>> help make the Bluetooth HDP part of the official Android SDK?
>>
>> Thank you,
>> -John
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, 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] Nexus-style reference implementation for tablets with Honeycomb

2011-02-11 Thread Scott Davies
Hi,

I'd like to do some development with the Android platform (the
underlying OS stack and firmware).  I recently read that the tablet
being used in last week's Honeycomb presentation was a Motorola Xoom.
I have also read that Motorola will not allow customers (end customers
- obviously, Google had full access for development), to modify the
bootloader and firmware (and I would presume the OS).

In light of this, I am aware that for the phone profile, the Nexus
series from Google allows full modification.  I would like to target
Honeycomb tablets and was wondering: will there be a Nexus-style
reference implementation tablet for Honeycomb ?  If so, what would be
the estimated ship date (Q2, etc.), for such a device for Canada ?

Thanks,

Scott

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

2011-02-10 Thread Scott
Glad this thread is still alive and silly.

Seriously, take a look at the LocationManager class in the docs.
There are constants for specifying GPS_PROVIDER, NETWORK_PROVIDER, or
PASSIVE_PROVIDER.  The accuracy will depending on the provider but the
same code for determining position (and speed) will be the same via
the LocationListener class and Location class.  The "Unlocking
Android" book from Manning Publications has an example.  You may be
able to download the example from the Manning site.

As for the 'poor signal in a car' argument, I accidentally dropped my
phone inside a small airplane and could not find it. The plane had
those silver sunlight reflectors over every window after landing.  I
used MyLookout to find its position and the GPS was able to obtain a
position when the phone was under the seat and in the cockpit with
reflective shades.

On Feb 9, 8:38 pm, metal mikey  wrote:
> So, summarising: just hold the phone near the window.

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


  1   2   3   >