[android-developers] New Developer Distribution Agreement

2009-11-10 Thread Rich
 I don't speak legalese, I speak code!.. What is the TL;DR of this?
What am I agreeing to here?

Thanks,
Rich

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

2009-11-11 Thread Rich
Is nobody from Google going to chime in on any of these threads?

This is a total fucking farce if you ask me, just another example of
Google not giving any respect to the development community. They're
already taxing us, and now they're changing the rules, upping the
refund period and holding us responsible for refunds? Without even
being decent enough to tell us in plain english? What a joke.

R

On Nov 11, 3:16 am, Al Sutton  wrote:
> This is being discussed on -discuss and I believe that the changes
> can't be enforced until they've complied with section 14.1 (in both
> new and old agreements) of the agreement which states;
>
> "14.1 Google may make changes to this Agreement at any time by sending
> the Developer notice by email describing the modifications made"
>
> Al.
>
> The -discuss thread is 
> athttp://groups.google.co.uk/group/android-discuss/browse_thread/thread...
>
> On 11 Nov, 06:49, dan raaka  wrote:
>
>
>
> > It will be good to see the diff between the old and the new one.
>
> > -Dan
>
> > On Tue, Nov 10, 2009 at 4:47 PM, Rich  wrote:
> > >  I don't speak legalese, I speak code!.. What is the TL;DR of this?
> > > What am I agreeing to here?
>
> > > Thanks,
> > > Rich
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@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: New Developer Distribution Agreement

2009-11-11 Thread Rich
But Al Sutton is just a guy. I want a response from Google.

They seem to have no strategy whatsoever with regards to the market
and seem to be completely ignoring independent developers.

The whole market situation is a giant clusterfuck. It's horribly
buggy, it's closed-source and we have an extremely limited way of
receiving payments, a way which is again taxed by Google. Now, they're
changing the terms of the market without any explanation, assuming
most developers just click "Accept," as we don't have any other choice
if we want to be making money.

Essentially, I see this as a case of taxation without representation.
I'm frustrated with the market/payment situation on a daily basis, as
I'm sure many of you are, and this unexplained ToS change is just
another way of screwing devs. I'm fed up. Android will only ever be
full of gimmicky, worthless applications unless Google give some
respect to people who are actually trying to make a professional
living off of the market.

R

On Nov 11, 3:32 pm, Streets Of Boston  wrote:
> Chill out! :=)
>
> To me it looks like a more tight-knit version of their earlier
> agreement.
>
> About the 48hour:
> That was already happening, kind-of. I had some refunds that were
> about 36 hours after the sale. Am i happy with this long period, no...
> but it's nothing new, i think.
>
> The main changes seem to come regarding (involuntary) takedowns of
> your application (e.g. copyright infringement, legal issues with your
> app, etc). See Al' post in 'Discussion' about that.
>
> On Nov 11, 3:09 pm, Rich  wrote:
>
>
>
> > Is nobody from Google going to chime in on any of these threads?
>
> > This is a total fucking farce if you ask me, just another example of
> > Google not giving any respect to the development community. They're
> > already taxing us, and now they're changing the rules, upping the
> > refund period and holding us responsible for refunds? Without even
> > being decent enough to tell us in plain english? What a joke.
>
> > R
>
> > On Nov 11, 3:16 am, Al Sutton  wrote:
>
> > > This is being discussed on -discuss and I believe that the changes
> > > can't be enforced until they've complied with section 14.1 (in both
> > > new and old agreements) of the agreement which states;
>
> > > "14.1 Google may make changes to this Agreement at any time by sending
> > > the Developer notice by email describing the modifications made"
>
> > > Al.
>
> > > The -discuss thread is 
> > > athttp://groups.google.co.uk/group/android-discuss/browse_thread/thread...
>
> > > On 11 Nov, 06:49, dan raaka  wrote:
>
> > > > It will be good to see the diff between the old and the new one.
>
> > > > -Dan
>
> > > > On Tue, Nov 10, 2009 at 4:47 PM, Rich  wrote:
> > > > >  I don't speak legalese, I speak code!.. What is the TL;DR of this?
> > > > > What am I agreeing to here?
>
> > > > > Thanks,
> > > > > Rich
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to 
> > > > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com > > > >  cr...@googlegroups.com>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en-Hide quoted 
> > > > >text -
>
> > - Show quoted text -

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


[android-developers] Task or application equivalent of onPause

2009-11-15 Thread Rich
My application uses a remote service to play audio.  I do this so that
no activity owns the playback of the audio - the user can trigger some
audio to be played from one Activity, and the audio will continue to
play as they navigate around the app.  I do, however, want to tell the
service to pause or stop playing audio when the user "unloads" the app
either by backing out or hitting Home.  When the app was a single
activity, I was doing this in onPause.  So, I guess I'm essentially
looking for "onPause" at the application/task level.  Does such thing
exist?  If not, what is the "best practice" way of getting notified
that the task has been put on hold by the user either backing all the
way out or hitting Home?

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


[android-developers] Task life cycle and activity launch mode question(s)

2009-11-15 Thread Rich
I read up on "tasks" and the activity life cycle.  Single top launch
mode seems to give me (in theory) what I'd like to have for my app,
but it's not currently working as expected.  It sounds simple enough,
so I can't imagine I'm doing this incorrectly.  From my understanding,
"single top" means that my activity can be navigated to in many ways,
but per Task it will act as a singleton instance moving it to the top
of the Task stack when launched.  Therefore, if I do either of the
following: declare the activity's launchMode to be singleTop in the
manifest OR launch my activity by intent with the
FLAG_ACTIVITY_SINGLE_TOP flag I will get this behavior.

I have tried both methods by themselves and both together, and I don't
get this behavior.  I have a very simple app with two Activities.
MainActivity is my "landing page" where a user can select an artist
and launch the ArtistActivity with that artist's id.  The user can
navigate back to the landing page with a menu item as well as the back
button.  If the user goes back and forth by menu item clicks, a stack
of activities seems to be built so that successively hitting the back
button will take them step by step backwards through the actions
they've taken.  I was under the impression that by declaring both
activities as android:launchMode="singleTop" and/or launching them
with the properly flagged intent (intent.addFlag
(Intent.FLAG_ACTIVITY_SINGLE_TOP), that hitting the back key would
only take them through an activity once before "exiting" (visually
hiding) the app.

Am I getting this wrong?  And if so (or not), how do I get my app with
only two activities to treat the activities as a stack where my
"landing page" (MainActivity) is always on the bottom?  Hitting Back
from MainActivity always exits (unloads/pauses?) the app (task?), and
hitting Back from ArtistActivity always returns to a singleton
instance of MainActivity.

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

2009-11-15 Thread Rich
Try RelativeLayout instead of LinearLayout.  There are a lot of
attributes you can use within a RelativeLayout that help you position
the elements according to their siblings.

http://developer.android.com/reference/android/widget/RelativeLayout.html
http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html

On Nov 13, 12:32 pm, jdekeij  wrote:
> Hoi,
>
> I try to get a button below my gameboard, however the gameboard
> overrides the button. When placed above the gameboard every thing is
> alright.
> The gameboard is named ¨reversi.com.BoardView¨
>
> 
> http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>
>     >
>                 android:id="@+id/reversimessage"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:layout_marginTop="10dip"
>         android:text="Success with the match"
>     />
>
>  android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="Takeback"/>
>
>  android:id="@+id/reversi"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"/>
> 
>
> Help is very much appreciated
> Jasper de Keijzer

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

2009-08-13 Thread Rich

Well, I've filed the bug report:
http://code.google.com/p/android/issues/detail?id=3531&sort=-id&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary

But nothing seems to be happening on those reports, it's just pages
and pages of untouched bug reports?

What should I do? I have to cripple my application just to avoid this
stupid segfault?

Rich

On Jul 30, 1:25 pm, fadden  wrote:
> On Jul 29, 6:31 pm, Rich  wrote:
>
> > D/libc-abort( 1180): abort() called in pid 1180
> > I/DEBUG   (  551): *** *** *** *** *** *** *** *** *** *** *** *** ***
> > *** *** ***
> > I/DEBUG   (  551): Build fingerprint: 'generic/google_sdk/generic/:1.5/
> > CUPCAKE/148875:eng/test-keys'
> > I/DEBUG   (  551): pid: 1180, tid: 1190  >>> org.ale.abtc <<<
> > I/DEBUG   (  551): signal 11 (SIGSEGV), fault addr deadbaad
>
> Can you send me an APK or command-line Java program that causes this?
> (I can't find the symbols for that build.)  Better yet, file a bug
> report on b.android.com and attach it.
>
> Running out of sockets should not cause a native library to call abort
> ().  Usually that happens when something calls malloc() or free(), and
> dlmalloc discovers that the heap is corrupt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Using Prebuilt Toolchain with configure and make

2009-05-30 Thread Rich

Hello!

I'd like to know more about porting C applications to native ARM for
use on Android devices.

I can make simple programs using the prebuild toolchain which comes
with the source, but how can I use this toolchain with applications
which are more than one file and require configure and make? (I'm
trying with Vim for starters).

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



[android-developers] StackOverflow, Threads and Stack Sizes

2010-02-02 Thread Rich
at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltaChain
(IndexPack.java:483)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltas(IndexPack.java:
477)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveDeltas(IndexPack.java:444)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltaChain
(IndexPack.java:483)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltas(IndexPack.java:
477)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveDeltas(IndexPack.java:444)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltaChain
(IndexPack.java:483)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltas(IndexPack.java:
477)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveDeltas(IndexPack.java:444)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltaChain
(IndexPack.java:483)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveChildDeltas(IndexPack.java:
477)
E/AndroidRuntime(22372):at
org.eclipse.jgit.transport.IndexPack.resolveDeltas(IndexPack.java:444)

To make the stack bigger, I tried running it in a thread with an
increased size:

long l = 2097152;
final ThreadGroup tg = new ThreadGroup("biggerthreads");
Runnable r = new Runnable(){
public void run(){
myCodeIsInHere();
}
};

final Thread t = new Thread(tg, r, "threadr", l);
t.run();

But I haven't found a definitive value for how large that stack can be
(or even if this method actually works), just something on the web
which said '256k,' which wasn't very helpful.

Can somebody explain to me about more about how the stack works in
android? It feels like I'm hitting an arbitrary boundary here rather
than an actual device limitation, so I'd like to know a bit more about
how I can avoid this. I'd greatly prefer to run this thread in a
bloated stack than refactor the innards of my code if at all possible
(programmers are lazy, don'tcha know), and this is a once-in-a-
lifetype type operation that the user can be told to sit and wait
through anyway.

Thanks so much!
Rich

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

2010-02-02 Thread Rich
Because hey, why the hell not.

What about the stacksize argument to the Tread constructor? Is it
always 8k, not matter is sent?

R

On Feb 2, 6:34 pm, Michael MacDonald 
wrote:
> Rich wrote:
> > Hello!
>
> > I've been looking around trying to find a definitive answer on this
> > with no success, perhaps you guys can give me something concrete?
> > Also, it doesn't help that Android dev has teamed up with the
> > StackOverflow website, as it means that any questions relating to
> > ACTUAL StackOverflows have become ungoogleable. :)
>
> > What are the size and depth limits of an application stack?
>
> > My app crashes like this:
>
> Why in the world would you be trying to run git on the phone?!?
>
> In any case, the stack size I believe is 8k; you can have 8k bytes on
> the stack before it blows 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: StackOverflow, Threads and Stack Sizes

2010-02-03 Thread Rich
Quietly bumping..

R

On Feb 2, 11:14 pm, Rich  wrote:
> Because hey, why the hell not.
>
> What about the stacksize argument to the Tread constructor? Is it
> always 8k, not matter is sent?
>
> R
>
> On Feb 2, 6:34 pm, Michael MacDonald 
> wrote:
>
> > Rich wrote:
> > > Hello!
>
> > > I've been looking around trying to find a definitive answer on this
> > > with no success, perhaps you guys can give me something concrete?
> > > Also, it doesn't help that Android dev has teamed up with the
> > > StackOverflow website, as it means that any questions relating to
> > > ACTUAL StackOverflows have become ungoogleable. :)
>
> > > What are the size and depth limits of an application stack?
>
> > > My app crashes like this:
>
> > Why in the world would you be trying to run git on the phone?!?
>
> > In any case, the stack size I believe is 8k; you can have 8k bytes on
> > the stack before it blows 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] Bind a list of items to a view that doesn't act like a list

2009-12-16 Thread Rich
I have a collection of objects that I want to display in a scroll
viewer.  I played around with a ListView and setting things like
setting focusable to false or clickable to false, etc, but it didn't
look/act like I wanted it to.  I just want scrollable text (don't
highlight each item when focused or touched, don't highlight the list
itself when focused or touched, but allow me enough "focusability" to
actually scroll the thing, etc).  I tried ALOT of attributes on the
ListView and the child items to turn off its "listiness", but none
worked as expected and always left a trace of list behavior.

The only way I have gotten this to work to my liking is to loop
through my list, construct a bunch of TextViews and add them to a
LinearLayout, but I hate the way the code looks.  I also considered
building an html string with the Html helper functions, but that's
weak from both a code standpoint and because css doesn't seem to be
supported (and I'm not going back to font tags!).

I can't seem to find a stream lined way to do this.  Is there such a
thing as defining a layout in xml and binding it to some kind of list
without creating something that acts like a list view?

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


[android-developers] Enumerate activity history stack

2009-12-18 Thread rich
When debugging I've sometimes wanted a tool that would list running
tasks and show which activities are on the history stack for each
task. I can get a list of tasks by calling
ActivityManager.getRunningTasks(). Each
ActivityManager.RunningTaskInfo object in the list gives me
interesting information such as the base activity, top activity, and
number of activities in the task. I haven't found a way to actually
enumerate all the activities in the task's history stack. Is there a
way to get at such information?

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


[android-developers] Generating Entropy (Kernel level)

2010-01-12 Thread Rich
Hello!

I've developed an application which requires quite a lot of entropy
from the kernel. what devices feed to entropy in the kernel? What is
the best way to generate more entropy? Can I turn on the accelormeters
to generate more entropy? What if I listen to touch-screen events?

Thanks for your time!
Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Generating Entropy (Kernel level)

2010-01-18 Thread Rich
I'm gonna bump this because it didn't display properly before - why
does that happen with this group sometimes?

R

On Jan 12, 5:06 pm, Rich  wrote:
> Hello!
>
> I've developed an application which requires quite a lot ofentropy
> from the kernel. what devices feed toentropyin the kernel? What is
> the best way to generate moreentropy? Can I turn on the accelormeters
> to generate moreentropy? What if I listen to touch-screen events?
>
> Thanks for your time!
> Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Generating Entropy (Kernel level)

2010-01-19 Thread Rich
I hate to do this, but I'm gonna keep bumping this until somebody
chimes in. I know this isn't an easy question - any Android kernel
hackers know anything about this?

R

On Jan 18, 6:39 pm, Rich  wrote:
> I'm gonna bump this because it didn't display properly before - why
> does that happen with this group sometimes?
>
> R
>
> On Jan 12, 5:06 pm, Rich  wrote:
>
> > Hello!
>
> > I've developed an application which requires quite a lot ofentropy
> > from the kernel. what devices feed toentropyin the kernel? What is
> > the best way to generate moreentropy? Can I turn on the accelormeters
> > to generate moreentropy? What if I listen to touch-screen events?
>
> > Thanks for your time!
> > Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Generating Entropy (Kernel level)

2010-01-20 Thread Rich
Hi gls and Atsuo - thanks for your replies!

gls - I'm not looking for raw entropy specifically, what I need is
more cryptographically secure entropy in /dev/urandom. I'm wondering
if having my application 'turn on' or read from the accelerometers or
touch screen even events will make that go faster.

Atsuo - I had a look through hw_random and the Documentation, but it's
not quite what I'm looking for, I don't just need an RNG, I need more
entropy in /dev/u/random

Does this make sense? Do accelerometers feed to urandom?
Thanks so much
Rich

On Jan 19, 8:02 pm, Atsuo Igarashi  wrote:
> Hi,
>
> Do you mean rng (random number generator)?
> if so, you can see some drivers in drivers/char/hw_random/.
>
> Regards,
> Atsuo
>
> On Jan 20, 3:49 am, Rich  wrote:
>
> > I hate to do this, but I'm gonna keep bumping this until somebody
> > chimes in. I know this isn't an easy question - any Android kernel
> > hackers know anything about this?
>
> > R
>
> > On Jan 18, 6:39 pm, Rich  wrote:
>
> > > I'm gonna bump this because it didn't display properly before - why
> > > does that happen with this group sometimes?
>
> > > R
>
> > > On Jan 12, 5:06 pm, Rich  wrote:
>
> > > > Hello!
>
> > > > I've developed an application which requires quite a lot ofentropy
> > > > from the kernel. what devices feed toentropyin the kernel? What is
> > > > the best way to generate moreentropy? Can I turn on the accelormeters
> > > > to generate moreentropy? What if I listen to touch-screen events?
>
> > > > Thanks for your time!
> > > > Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Generating Entropy (Kernel level)

2010-01-20 Thread Rich
Sorry, that should be /dev/random not urandom.

R

On Jan 20, 2:28 pm, Rich  wrote:
> Hi gls and Atsuo - thanks for your replies!
>
> gls - I'm not looking for rawentropyspecifically, what I need is
> more cryptographically secureentropyin /dev/urandom. I'm wondering
> if having my application 'turn on' or read from the accelerometers or
> touch screen even events will make that go faster.
>
> Atsuo - I had a look through hw_random and the Documentation, but it's
> not quite what I'm looking for, I don't just need an RNG, I need 
> moreentropyin /dev/u/random
>
> Does this make sense? Do accelerometers feed to urandom?
> Thanks so much
> Rich
>
> On Jan 19, 8:02 pm, Atsuo Igarashi  wrote:
>
> > Hi,
>
> > Do you mean rng (random number generator)?
> > if so, you can see some drivers in drivers/char/hw_random/.
>
> > Regards,
> > Atsuo
>
> > On Jan 20, 3:49 am, Rich  wrote:
>
> > > I hate to do this, but I'm gonna keep bumping this until somebody
> > > chimes in. I know this isn't an easy question - any Android kernel
> > > hackers know anything about this?
>
> > > R
>
> > > On Jan 18, 6:39 pm, Rich  wrote:
>
> > > > I'm gonna bump this because it didn't display properly before - why
> > > > does that happen with this group sometimes?
>
> > > > R
>
> > > > On Jan 12, 5:06 pm, Rich  wrote:
>
> > > > > Hello!
>
> > > > > I've developed an application which requires quite a lot ofentropy
> > > > > from the kernel. what devices feed toentropyin the kernel? What is
> > > > > the best way to generate moreentropy? Can I turn on the accelormeters
> > > > > to generate moreentropy? What if I listen to touch-screen events?
>
> > > > > Thanks for your time!
> > > > > Rich
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Preferred method of copying arrays

2009-07-22 Thread Rich

Hello!

Arrays.copyOfRange() is unavailable in Android, so I'm wondering what
the preferred method of copying arrays is. Manually over a loop, or
System.arraycopy()?

Also, what was the reason behind the decision to not include
Arrays.* ?

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



[android-developers] Maximum Number of Connections

2009-07-29 Thread Rich

Hello!

I've written an application which involves a lot of simultaneous
connections to different servers. I've noticed some big stability
issues with this as sometimes the program crashes totally (not just
ANR, but a segfault type thing). What's the recommended number of
maximum simultaneous connections for speed and stability?

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



[android-developers] Maximum Number of Connections

2009-07-29 Thread Rich

Hello!

I've written an application which involves a lot (currently 25) of
simultaneous peer-to-peer connections. This seems to cause the
application to fail (not ANR, a segfaulty thing) sometimes. What is an
appropriate amount of simultaneous connections to use? Is there a hard
limit or good rule of thumb?

Thanks!
Rich

(Sorry if this is double posted)

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

2009-07-29 Thread Rich

Yes. I probably should have been more specific about that. Don't have
a trace to look at right at this moment, I'll post one next time it
happens.

On Jul 29, 2:30 pm, Marco Nelissen  wrote:
> What is a "segfault type thing"? Are you seeing crashes in native code?
>
> On Wed, Jul 29, 2009 at 10:10 AM, Rich  wrote:
>
> > Hello!
>
> > I've written an application which involves a lot of simultaneous
> > connections to different servers. I've noticed some big stability
> > issues with this as sometimes the program crashes totally (not just
> > ANR, but a segfault type thing). What's the recommended number of
> > maximum simultaneous connections for speed and stability?
>
> > Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Maximum Number of Connections

2009-07-29 Thread Rich

I've posted this already but I think Google Groups was throwing a
wobbly cause it ended up in a group called AA-CCNA-O05..

Anyway, output:

D/libc-abort( 1180): abort() called in pid 1180
I/DEBUG   (  551): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (  551): Build fingerprint: 'generic/google_sdk/generic/:1.5/
CUPCAKE/148875:eng/test-keys'
I/DEBUG   (  551): pid: 1180, tid: 1190  >>> org.ale.abtc <<<
I/DEBUG   (  551): signal 11 (SIGSEGV), fault addr deadbaad
I/DEBUG   (  551):  r0 0003  r1 deadbaad  r2 0027  r3 6150
I/DEBUG   (  551):  r4 6128  r5 afe2fef8  r6 afe39dd0  r7 8088
I/DEBUG   (  551):  r8 44d23da0  r9 42397eb8  10 42397ea8  fp 0001
I/DEBUG   (  551):  ip 001b  sp 44d23ce8  lr afe1ff33  pc
afe1066a  cpsr 2030
I/DEBUG   (  551):  #00  pc 0001066a  /system/lib/libc.so
I/DEBUG   (  551):  #01  pc afae  /system/lib/libc.so
I/DEBUG   (  551):  #02  pc 0001293a  /system/lib/
libnativehelper.so
I/DEBUG   (  551):  #03  pc e3b4  /system/lib/libdvm.so
I/DEBUG   (  551): stack:
I/DEBUG   (  551): 44d23ca8  01c84282
I/DEBUG   (  551): 44d23cac  007076e0
I/DEBUG   (  551): 44d23cb0  afe39f90
I/DEBUG   (  551): 44d23cb4  afe39fe4
I/DEBUG   (  551): 44d23cb8  
I/DEBUG   (  551): 44d23cbc  afe13e4d  /system/lib/libc.so
I/DEBUG   (  551): 44d23cc0  ad084a98
I/DEBUG   (  551): 44d23cc4  3ac170c5
I/DEBUG   (  551): 44d23cc8  ad084a98
I/DEBUG   (  551): 44d23ccc  6128
I/DEBUG   (  551): 44d23cd0  afe2fef8  /system/lib/libc.so
I/DEBUG   (  551): 44d23cd4  afe39dd0
I/DEBUG   (  551): 44d23cd8  8088  /system/lib/libicudata.so
I/DEBUG   (  551): 44d23cdc  afe10663  /system/lib/libc.so
I/DEBUG   (  551): 44d23ce0  df002777
I/DEBUG   (  551): 44d23ce4  e3a070ad
I/DEBUG   (  551): #00 44d23ce8  0018c5f8  [heap]
I/DEBUG   (  551): 44d23cec  afe0e940  /system/lib/libc.so
I/DEBUG   (  551): 44d23cf0  0018c5f8  [heap]
I/DEBUG   (  551): 44d23cf4  afe3c980
I/DEBUG   (  551): 44d23cf8  2bb0
I/DEBUG   (  551): 44d23cfc  fbdf
I/DEBUG   (  551): 44d23d00  afe39dd0
I/DEBUG   (  551): 44d23d04  0018c5f0  [heap]
I/DEBUG   (  551): 44d23d08  8018c678  /system/lib/libicudata.so
I/DEBUG   (  551): 44d23d0c  afe0afb3  /system/lib/libc.so
I/DEBUG   (  551): #01 44d23d10  001ad668  [heap]
I/DEBUG   (  551): 44d23d14  ad03475d  /system/lib/libdvm.so
I/DEBUG   (  551): 44d23d18  afe3c980
I/DEBUG   (  551): 44d23d1c  afe39dd0
I/DEBUG   (  551): 44d23d20  a000  [heap]
I/DEBUG   (  551): 44d23d24  4384d668
I/DEBUG   (  551): 44d23d28  0018c5f8  [heap]
I/DEBUG   (  551): 44d23d2c  ad0346c9  /system/lib/libdvm.so
I/DEBUG   (  551): 44d23d30  001ad668  [heap]
I/DEBUG   (  551): 44d23d34  030c
I/DEBUG   (  551): 44d23d38  0018c5f8  [heap]
I/DEBUG   (  551): 44d23d3c  ad21293f  /system/lib/
libnativehelper.so
I/WindowManager(  581): WIN DEATH: Window{43729d28 org.ale.abtc/
org.ale.abtc.dl paused=false}
I/ActivityManager(  581): Process org.ale.abtc (pid 1180) has died.
D/Zygote  (  553): Process 1180 terminated by signal (11)
W/InputManagerService(  581): Got RemoteException sending setActive
(false) notification to pid 1180 uid 10020

Running on the emulator.

On Jul 29, 8:25 pm, Roman  wrote:
> There is no precised answer possible to your question about speed and
> stability of your connection. My comments below are only looking at
> the usage of the radio interface itself. I have no real information
> about how many sockets your device can handle.
>
> It depends on a lot of factors 
>
> 1. Which radio interface are you using? Wifi is faster than Edge/3G
> but signal strength could drop very fast when you move away from the
> AP.
> 2. In case of Wifi how crowded is your network? If you have a lot of
> user than Wifi gets congested
> 3. Which kind of traffic are you looking at? Streaming on Wifi has
> different requirements than browsing the web. Mixing both type of
> traffics impacts stability.
> 4. In cellular networks the bandwidth you are getting depends on the
> number of users in a cell
> 5. Speed of your cellular data connection depends on the distance to
> the BS
>
> It would be also helpful to find out about when exactly you run in the
> seg fault.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Jul 29, 10:10 am, Rich  wrote:
>
> > Hello!
>
> > I've written an application which involves a lot of simultaneous
> > connections to different servers. I've noticed some big stability
>

[android-developers] Two issues saving heap dumps...

2011-05-24 Thread Rich
I was watching the Google I/O video on Memory Management, and the presenter 
said that if you open a heap dump in MAT that you obtained from DDMS you 
have to convert it with the hprof tool with a -conv flag. He invoked this at 
the command line, so I attempted to do the same.  I am on Windows, and I get 
an error that the command does not exist.  Is this command not part of the 
Android, Eclipse or MAT tools?  Since there was no mention of any additional 
install required, I expected to find this in the eclipse or mat directories 
as a .bat file or something to that effect.

I know that I can generate it from within Eclipse, but then I have to go 
hunting through my AppData for the temp file generated.  When I generate the 
heap dump in Eclipse, the dump is saved to a temp file which is opened as 
plain text in the editor.  I'm unable to save this because I get an error 
that "some characters cannot be mapped using "Cp1252" char encoding".  I 
read that the way to set another default encoding (UTF-8, for example) that 
would allow me to save it is to go to File - Properties.  The problem is 
that when I attempt to do that, I get another error dialog saying that there 
are no property pages for .hprof.

I am able to navigate into my temp directory and pull out the hprof file and 
open in MAT, but that's a bit of a pain.  Anyone have any recommendations on 
either or both issues?

Thanks!
Rich

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

[android-developers] Displaying tabular data

2011-06-10 Thread Rich
In the past when I have needed to display large data sets in a table, I've 
just looped over the data and on every iteration I'd inflate an xml layout 
representing a TableRow, obtain references to the child controls, set their 
properties from the data source and add the row to a TableLayout.  When just 
displaying simple rows of data or items in a grid, I use an adapter.  Am I 
doing this correctly, or is there a way to use an adapter to display tabular 
data with column alignment like in a TableLayout?  Or, is there some way to 
apply the ViewHolder pattern to the way I'm manually adding rows to a 
TableLayout to avoid the extra calls to inflate xml and get references to 
child controls (findViewById)?

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

2011-06-13 Thread Rich
I have installed a number of apps that have their own image gallery 
functionality (not using another app via intents).  The default view is 
usually a list of the folders in my SD card that contain images (usually 
with some kind of thumbnail representing the folder), and then when I drill 
down into one of these folders they display the thumbs of the images that 
the folder contains.

Is the folder list part of the MediaStore api, or are the developers doing 
this manually (query the file system for a list of folders, scan files in 
folder for common image extensions, etc)?  The tutorials I'm finding online 
for creating an image gallery using the MediaStore api usually just query 
the whole SD card and fill a GridView with a Cursor returned from 
managedQuery.  Are there better tutorials and documentation for making a 
custom image gallery?

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: How much HTML5 does the Honeycomb Android Browser support?

2011-06-15 Thread Rich
Doesn't it depend on the browser?  On my Asus Transformer, with 3.1, I
get the following:

Default browser: 218 +3
Dolphin HD 5.0.6: 218 +3
Firefox 4.0.1: 235 +9

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


[android-developers] Loading local javascript files in webview

2011-07-04 Thread Rich
Hi,

I have a slight issue with loading javascript files within a webview I
have created, I am storing everything within the assets directory so
all the files are local to the app and I have tried to load them a
couple of different ways but neither seemed to work:



strangely the CSS works fine via '../'

Javascript is enabled aswell.

Does anyone know why this may be happening i could embed all the code
but that would just be quite a mess and not how I want to do it
ideally.

Thanks if anyone knows a solution.

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


[android-developers] Nested dialogs

2013-03-14 Thread Rich
I have a search results screen with a complex set of filters that I'm in 
the process of building out.  I'm giving the user a filter icon in the 
ActionBar that will pop up a dialog with filter options.  I feel that this 
is pretty standard.  I don't want the user to feel like they're navigating 
away when modifying their filters, so I'm not showing a full screen filter 
activity.  Now it's time to implement a few multi-select fields.  So, on my 
filter which is already a dialog on top of the search results activity, I'm 
going to pop up another dialog with the multi-select options.  This doesn't 
feel great, and I've seen others express that nested dialogs are a bad user 
experience and I mostly agree with this sentiment.  This has to be a common 
case though, so what is typically the way around this?  Is making my filter 
dialog into a full screen activity my best bet?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Re: Unique ID, but not IMEI, IMSI, MAC, AndroidID

2011-12-04 Thread Rich
http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

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

2011-10-09 Thread Rich
In the scope of an inner class, use OuterClass.this to refer to the 
Activity.  So, if your activity class is named MainActivity, call 
MainActivity.this.startActivityForResult(intent).

The other option is to define a method in the activity that does this work 
and call the Activity's method from the onClickListener

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 and Elcipse create new project error: SDK not installed and missing a file.

2012-04-30 Thread Rich
I'm having a problem creating a new Android project in Eclipse. I have 
installed Eclipse, ADT 18.0.0 and the latest SDK 19 but I get an error when 
I try and create a new project. I'm able to select an Android project type 
but when I get it a name I get the error that I don't have the latest SDK 
and that I'm missing the file /tools/lib/progaurd-project.txt. I see that 
file in the folder from where the original SDK was downloaded and 
extracted. Am I to copy that file to another location or is the SDK 
installer/wizard to do that. I'm running Fedora 16 fully patched.



Rich

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 SDK and Eclipse Error "You don't have the latest SDK installed"

2012-04-30 Thread Rich
Hello,

I'm having a problem creating a new Android project in Eclipse. I have
installed Eclipse, ADT 18.0.0 and the latest SDK 19 but I get an error
when I try and create a new project. I'm able to select an Android
project type but when I get it a name I get the error that I don't
have the latest SDK and that I'm missing the file /tools/lib/progaurd-
project.txt. I see that file in the folder from where the original SDK
was downloaded and extracted. Am I to copy that file to another
location or is the SDK installer/wizard to do that. I'm running Fedora
16 fully patched.

Thanks,

Rich

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


[android-developers] Does internationalization increase visibility of your app in the various stores?

2012-05-06 Thread Rich
If I provide string resources in various languages, will my app show up 
more prominently in either or both Google Play and/or Amazon App Store when 
viewed in countries where those languages are more prominent?  I changed 
language settings on my device from English to Spanish, and I didn't see a 
single difference in Google Play, but I was still in the US so I don't know 
if that has anything to do with it.  Also, do I not show up in certain 
countries if I don't provide string resources for their national 
language(s)?

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

[android-developers] Re: Your content must have a listview whose id attribute is 'android.R.id.list'

2011-08-11 Thread Rich
All you should need is:

android:id="@android:id/list"
 


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

[android-developers] Re: BitmapFactory.decodeStream() blocking

2011-08-22 Thread Rich
Hey...I had a similar issue that I just fixed today, and this information 
might help.

I had code I was using all over the place that would be downloading data and 
images with a single HttpClient and everything was fine.  When I moved this 
code over to a project that was downloading a bunch of images in a row, 
sometimes it would hit a point where it would block almost exactly as you're 
describing.  I did a ton of troubleshooting with my HttpClient instance, the 
HttpParams, moving from AsyncTask to a single background thread running in 
serial, etc.

I took a step back and started using a single AndroidHttpClient per-request 
and closing it after I was done downloading the stream and decoding the 
bitmap.  No more blocking.  The issue is that the HttpClient will clean 
itself up, but sometimes not in time and the next request would come in and 
cause a deadlock.

If you're not explicitly cleaning up the HttpClient 
(AndroidHttpClient.close), give it a try.

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

[android-developers] Re: Problems with ListView using buttons on each row

2008-12-02 Thread Rich

It's actually pretty simple, but it took me a little while to figure
out.  You have to set the list to allow its items to be focusable, and
then set whichever items you want to be clickable, focusable, and have
a background to display when clicked.

So first, call setItemsCanFocus(true) on your list.  If you are using
a ListActivity, you can get the list by calling getListView().

Then, when you are inflating your views for each row in the list, for
each view you want to be clickable, do the following:
  setClickable(true);
  setFocusable(true);
  setBackgroundResource(android.R.drawable.menuitem_background);

This will display the typical orange "highlight" behind the clickable
views, but you can create a different color drawable if you prefer.

If you have a couple of views (such as multiple TextViews) that you
want to group together into one clickable view, just group them in a
ViewGroup such as LinearLayout, and set these properties on that
ViewGroup.

Good luck!
-rich

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



[android-developers] Re: Issue with installing ADT for Eclipse Ganymede 3.4

2008-10-28 Thread Rich

I'm getting this error now. Also using Ubuntu, Sun-Java-6.

Ever solve this, Frantz?

=/

On Oct 5, 5:23 pm, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
> Nobody has an idea ?
>
> On 4 oct, 14:42, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
>
> > Yeah, i've realized after post that the problem wasn't the same.
>
> > I've tried to use the archive in order to install and i got this when
> > I'm trying to make a new Android project :
>
> > Plug-in com.android.ide.eclipse.adtwas unable to load class
> > com.android.ide.eclipse.adt.project.internal.NewProjectWizard.
> > An error occurred while automatically activating bundle
> > com.android.ide.eclipse.adt(581).
>
> > When I want to set the parameters of the plugin I got a new error :
> > Unable to create the selected preference page.
> > An error occurred while automatically activating bundle
> > com.android.ide.eclipse.adt(581).
>
> > Any idea around all this problem ? I found nothing around
> > troubleshooting that could be helpful
>
> > Thank you
>
> > Fräntz
>
> > On 4 oct, 14:18, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > The issue with updating via the update site is different.
>
> > > For that one, make sure you have tried the "troubleshooting" steps in
> > > the install doc:
>
> > >http://code.google.com/android/intro/installing.html.
>
> > > Note that if you can't get to the update site, you can usually still
> > > download the plugin locally and install it as a local archive (see the
> > > troubleshooting section).
>
> > > On Oct 4, 7:21 am, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
>
> > > > I got the same problem... The path given on android website is 
> > > > :https://dl-ssl.google.com/android/eclipse/
>
> > > > This give me an error in my firefox browser, is this a problem that
> > > > came from google's server ?
>
> > > > On 20 sep, 04:04, Trevor <[EMAIL PROTECTED]> wrote:
>
> > > > > I'm having this issue as well, only after having installed everything
> > > > > just today to start developing.
>
> > > > > Using Ubuntu Hardy
>
> > > > > Eclipse SDK Version: 3.2.2
> > > > > Build id: M20070212-1330 (Ubuntu version: 3.2.2-5ubuntu2)
>
> > > > > Update Manager for Eclipse also seems to be taking an eternity to run
> > > > > as well. Perhaps the issues are linked?
>
> > > > > On Sep 19, 2:35 am, Sidhartha <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi All,
>
> > > > > > I am trying to insatll theADTplug-in for Eclipse Ganymede 3.4 using
> > > > > > the archive path. I had provided the archive for installing theADT.
> > > > > > It gives me an error stating some resource files are missing. When i
> > > > > > try to create a new project i get the following error:
>
> > > > > > The selected wizard could not be started.
> > > > > >   Plug-in com.android.ide.eclipse.adtwas unable to load class
> > > > > > com.android.ide.eclipse.adt.project.internal.NewProjectWizard.
> > > > > >   com/android/ide/eclipse/adt/project/internal/NewProjectWizard
> > > > > > (Unsupported major.minor version 49.0)
>
> > > > > > This was working till Sep 17th, not sure i some new version's been
> > > > > > released. Could someone provide some pointers as how to solve this
> > > > > > issue.
>
> > > > > > Thanks,
> > > > > > Sidhartha

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



[android-developers] Editing the incoming call dialog

2008-11-25 Thread Rich

Can anyone offer some advice on how I can add/replace text on the
dialog displayed when an incoming call is ringing? I guess I need a
way to get a handle on the view.

Thanks
Rich

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



[android-developers] Re: Editing the incoming call dialog

2008-11-26 Thread Rich

Presumably though I could popup some new view on part of the screen
though, like the whitepages caller ID application?

I'm using PhoneStateListener to detect an incoming call, how can I
then popup a view on part of the screen?

Thanks

On Nov 25, 6:09 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> Sorry, you can't do this with the SDK.
>
> On Tue, Nov 25, 2008 at 4:00 AM, Rich <[EMAIL PROTECTED]> wrote:
>
> > Can anyone offer some advice on how I can add/replace text on the
> > dialog displayed when an incoming call is ringing? I guess I need a
> > way to get a handle on the view.
>
> > Thanks
> > Rich
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] 3G network response different from Wifi

2009-01-25 Thread Rich

Hello!

I've written a port scanner for Android. It works properly when using
a connection over Wifi, but on the mobile (3G) connection, everything
reports a false positive.

Why is this? I don't know very much about the way the mobile data
network is structured and I'd like to know more. Is my service
provider meddling with the connections, or have I just done something
wrong?

Thanks!
Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: 3G network response different from Wifi

2009-01-25 Thread Rich

Thanks for the reply!
There is apparently a port scanner for Windows Mobile, but it isn't
open source so I can't take a look at it, and it doesn't mention
anything about 3G or different providers anyway.

This is pale in comparison to nmap, which as a bunch of low level
tricks. This is just attempting to make tcp/udp connections on each
successive port using the native connect() method (a port of a program
called JMap).

Hrmm. Other threads on this list mention something about T-Mobile
running a proxy service of some sort and I'm wondering if this is
important. I just don't see what would make it work on a wifi network
and not on 3G!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: 3G network response different from Wifi

2009-01-26 Thread Rich

Somebody on anddev mentioned that this may be an issue related to
NAT.. anything I can do about that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] App source from Git not compatible with current SDK?

2009-02-07 Thread Rich

I loaded up the Alarm Clock app from the current git (http://
android.git.kernel.org/?p=platform/packages/apps/
AlarmClock.git;a=snapshot;h=c8208f9f6ff76479da3b1eb0cedbd5500b8be1f4;sf=tgz)
into eclipse, and there are a lot of errors, unfound imports and
things like that.

Are the 'cupcake' versions of the /apps/ incompatible with the current
SDK? Should I bother trying to fix them?

Thanks!
Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: App source from Git not compatible with current SDK?

2009-02-07 Thread Rich

I see..

If that's the case, how were they compiled? Do you have a private SDK
different from our SDK?

Is there anyway I would be able to get this code to compile?

As far as I can tell, the only two unresolvable problems seem to be a
missing intent, Intent.FLAG_ACTIVITY_NO_USER_ACTION and reference to a
Vibrator() class (heh). The Intent seems like a possibly unsolvable
part.

So what should I do.. Will I be able to clean this code up and use it,
or should I just wait for the GPowers to be release a full SDK?

I'm fairly miffed about this quite honestly, as what is the point of
having this as an open source project if we can't even compile the
code to be working on.

Rich

On Feb 7, 6:20 pm, Romain Guy  wrote:
> The system apps are not SDK compliant yet. We'd like to fix them but no eta
> yet.
>
> On Feb 7, 2009 2:07 PM, "Rich"  wrote:
>
> I loaded up the Alarm Clock app from the current git (http://
> android.git.kernel.org/?p=platform/packages/apps/
> AlarmClock.git;a=snapshot;h=c8208f9f6ff76479da3b1eb0cedbd5500b8be1f4;sf=tgz)
> into eclipse, and there are a lot of errors, unfound imports and
> things like that.
>
> Are the 'cupcake' versions of the /apps/ incompatible with the current
> SDK? Should I bother trying to fix them?
>
> Thanks!
> Rich
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: App source from Git not compatible with current SDK?

2009-02-08 Thread Rich

Thank you very much, this was very helpful. My apologies for jumping
to conclusions! I'm usually suspicious of the way corporations involve
themselves with with F/OSS, but this seems to be entirely on the
level. Good show.

Thanks again!
Rich

On Feb 7, 10:03 pm, Dianne Hackborn  wrote:
> They are compiled against the framework library, before the non-SDK symbols
> have been stripped from it.  The platform build system -can- build against
> the SDK version, but that feature didn't exist until very late in to the 1.0
> platform, so many of the apps don't use it, and so as much as one tries to
> avoid it they will end up unintentionally using non-SDK methods.  Also there
> was a lot of cleanup of the SDK that happened late in 1.0, when there wasn't
> time to update all of the existing apps to use new official SDK APIs.
>
> As for the Intent flag, that is actually a new feature in Cupcake (which is
> in the SDK), so it just means you are trying to build a post-1.0 application
> against the 1.0 SDK.  There is a very good chance this won't work, like
> here.  If you want to build against the 1.0 SDK, you really should do this
> from the 1.0 version of the app.  I don't know about the Vibrator thing;
> there is certaily a public API for controlling the vibrator.
>
> Some specific answers:
>
> On Sat, Feb 7, 2009 at 6:39 PM, Rich  wrote:
> > If that's the case, how were they compiled? Do you have a private SDK
> > different from our SDK?
>
> Build it with the platform build system, as everyone else who currently
> works on the app does.  There is nothing hidden about this.
>
> > So what should I do.. Will I be able to clean this code up and use it,
> > or should I just wait for the GPowers to be release a full SDK?
>
> There is nothing being kept from you.  The full complete source to the
> platform is right up there in git for you to do whatever you want with it.
>
> > I'm fairly miffed about this quite honestly, as what is the point of
> > having this as an open source project if we can't even compile the
> > code to be working on.
>
> Before publicly getting miffed at people (about stuff they gave you for free
> no less), it is good to have an idea of what you are getting miffed about.
> :}
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Best low-end test devices?

2014-04-04 Thread Rich
What are some recommendations for good devices to test for users on the 
lower end of the price, quality, and screen resolution/density scale?  My 
every day workflow is to test on Nexus 5 and Galaxy S3, and my coworkers 
cover a lot of other high end phones (LG G2, Galaxy S4, Nexus 4).  I'd love 
to see what everything looks like on a lower end screen but on a device 
that still represents what real users would have.  According to Flurry, 99% 
of my users on the main app I work on are all on high end devices (with 
greater than 500k users, mostly in US and AUS).

Thanks,

Rich

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


[android-developers] Re: How to inject mock objects in Android?

2014-04-04 Thread Rich
I created a class that I call ServiceLocator that allows me to do 
lightweight dependency injection (as opposed to using a heavy library that 
requires annotation and/or reflection).

You can declare interfaces for things that you need mocked, register them 
with their proper implementations in your Application.onCreate, but then in 
your unit tests re-register those interfaces to the mock objects.  I've 
found that when I need to wait for Application.onCreate to finish in my 
unit tests, I derive them from ActivityTestCase and call 
getInstrumentation().waitForIdleSync();

Here's my class - you can copy it, or use the library it's in if you'd like.
https://github.com/aguynamedrich/beacon-utils/blob/master/Library/src/us/beacondigital/utils/ServiceLocator.java

in Application.onCreate, you'd do

ServiceLocator.register(FooInterface.class, FooImplementation.class);

And in your unit test setup, you'd do

ServiceLocator.register(FooInterface.class, MockFooImpl.class);

Then, in your code, you'd resolve your interfaces with

ServiceLocator.resolve(FooInterface.class);

Documented roughly here:
https://github.com/aguynamedrich/beacon-utils#to-use-servicelocator-as-a-dependency-container

On Sunday, March 23, 2014 9:37:13 PM UTC-7, Yuvi wrote:
>
>
>  Hi,
> 
> I am facing issue while unit testing :
>
> // Service class that have to be tested.
>
> class FooService extends Service{
>
> public static FooService sFooService;
>
> private Bar mBar = new Bar();
> //Other private objects
>
> @Override
> protected void onCreate()
> {
> sFooService = this;
> }
>
> public static FooService getInstance()
> {
> return sFooService;
> }
>
> @Override
> protected void onDestroy()
> {
> sFooService = null;
> }
>
> public void doSomething()
> {
> //do Some stuff here
> if(done)
> {
> mBar.perfomAction(true);
> // Now this performAction method doing many stuffs using some 
> other classes
> // that may have dependency and initialized from some else. Hence 
> throwing exceptions.
> // Therefore need to mock Bar class. but how ??
> }
> else
> {
> mBar.perfomAction(false);
> }
> }}
>
>
> // Test Class
>
> class FooTest extends ServiceTestCase{
>
> protected void setUp() throws Exception
> {
> super.setUp();
> MockitoAnnotations.initMocks(this);
> startService(new Intent(getContext(), FooService.class));
>
> }
>
> protected void tearDown() throws Exception
> {
> super.tearDown();
> }
>
> public void testdoSomething()
> {
> Bar bar = mock(bar.class);
> doThrow(new RuntimeException re).when(bar).performAction(true);
>
> //How to inject bar mocked object?
>
> assertNotNull(FooService.getInstance());
>
> try
> {
> FooService.getInstance().doSomeThing();
> Assert.Fail("Runtime exception should be thrown");
> }
> catch (RuntimeException re)
> {
>
> }
> }}
>
>
> Now, here how can I inject bar mocked object which is created using 
> Mockito ?
>
> I have googled this, and found that some guys suggested to create getter 
> and setter for Bar class. Which I don't think is a valid solution, because 
> there could be number of private object, that will be visible to outside 
> FooService class.
>
> Regards,
>
> Yuvi
>
>

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


[android-developers] Re: Seeking layout advice

2014-04-04 Thread Rich
I think that if you're worried about the soft keyboard covering your 
buttons, it'd be best to move from a dialog to a full screen activity.  
What I do to get around the soft keyboard covering my buttons at the bottom 
of an activity is to put all of the content inside of a ScrollView except 
for the bottom buttons.  That way when the soft keyboard collapses part of 
the layout, it (as far as I can tell from my own test devices) doesn't 
cover the action buttons.  You can also use an ActionBar button for the 
save action and use the back button as cancel (probably a better design 
than mine).  The Google apps usually have a checkbox in the ActionBar for 
Save and consider that back button as the intention to cancel the action.

On Friday, April 4, 2014 5:59:43 AM UTC-7, Simon Giddings wrote:
>
> I am working on an application where the user can create a list of items 
> (songs).
> The user can also add a text block to the list - text to be read as an 
> introduction to the next sequence of songs, for example.
>
> It is with this "text editer" activity that I am having trouble deciding 
> where to put things.
> I am displaying it as a dialog and have therefore placed "cancel" and "ok" 
> buttons at the bottom of the layout.
> However, this means that they are hidden by the virtual keyboard when the 
> focus is on the edittext widget.
>
> In addition, I wanted to add the ability to paste text copied from 
> elsewhere - another app, a web page.
>
> After having looked in the design guides ... I am no further forward.
>
> Should I rather be placing the cancel and ok buttons at the top of the 
> layout ?
> Should this rather be a full screen activity where I use the action bar to 
> place a paste button ?
> If I do this, should the cancel and ok buttons also be in the action bar ?
>
> I hope someone can advise me with this as I am stuck at this point.
>

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


[android-developers] Prescale Background Example / Speeding up WebViews

2010-04-28 Thread Rich
I've created a custom ViewGroup (based off of the Launcher) that
allows paging scrolls between some WebViews. Problem is that it
doesn't scroll as smoothly as I want it to. I've been following Romain
Guy's 2008 advice, but I don't see any massive improvements. Is it
because I am using WebViews, or am I just doing the prescaling wrong?
This is my code:

 Bitmap originalImage =
BitmapFactory.decodeResource(getResources(), R.drawable.redbg);

 originalImage = Bitmap.createScaledBitmap(
 originalImage,  // bitmap to resize
 ((WindowManager)
getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getWidth(),   
 //
new width
 ((WindowManager)
getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getHeight(),  
 //
new height
 true);  // bilinear filtering

 getWindow().setBackgroundDrawable(new
BitmapDrawable(originalImage));

called from onCreate. Is the right?

If not, what can I do to fix it? If not, what else can I do to speed
up the scrolling?

Thanks so much!
Rich

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


[android-developers] Arbitrary MMS Attachments in EXTRA_STREAM

2010-04-28 Thread Rich
Hello!

Are arbitrary MMS attachments allowed? I've found some old posts
saying that only image attachments are allowed, and my code
(intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+epath));)
seems not to work. Theoretically, MMS should allow any data type,
right? So how am I supposed to attach my arbitrary data? Or is this
not currently possible.

Thanks so much.
Rich

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

2010-04-29 Thread Rich
The groups site buried this before it was visible yesterday, I'm gonna
bump it again and hope Romain sees it..

If it's worth mentioning during a Google I/O talk, probably worth
having some confirmed example code on the web then, right? :)

Rich

On Apr 28, 5:20 pm, Rich  wrote:
> I've created a custom ViewGroup (based off of the Launcher) that
> allows paging scrolls between some WebViews. Problem is that it
> doesn't scroll as smoothly as I want it to. I've been following Romain
> Guy's 2008 advice, but I don't see any massive improvements. Is it
> because I am using WebViews, or am I just doing the prescaling wrong?
> This is my code:
>
>                  Bitmap originalImage =
> BitmapFactory.decodeResource(getResources(), R.drawable.redbg);
>
>                  originalImage = Bitmap.createScaledBitmap(
>                              originalImage,          // bitmap to resize
>                              ((WindowManager)
> getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getWidth(),     
>    //
> new width
>                              ((WindowManager)
> getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getHeight(),    
>    //
> new height
>                              true);                  // bilinear filtering
>
>                  getWindow().setBackgroundDrawable(new
> BitmapDrawable(originalImage));
>
> called from onCreate. Is the right?
>
> If not, what can I do to fix it? If not, what else can I do to speed
> up the scrolling?
>
> Thanks so much!
> Rich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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: Arbitrary MMS Attachments in EXTRA_STREAM

2010-04-29 Thread Rich
The more Googling I do about this issue, the more it seems like
Android is incapable of non-image attachments - at least through the
native Intent services. But how deep does this limitation go? If I
roll my own Messaging, are my own attachments feasable? Or, will this
be changed in 2.2?

R

On Apr 28, 7:07 pm, Rich  wrote:
> Hello!
>
> Are arbitrary MMS attachments allowed? I've found some old posts
> saying that only image attachments are allowed, and my code
> (intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+epath));)
> seems not to work. Theoretically, MMS should allow any data type,
> right? So how am I supposed to attach my arbitrary data? Or is this
> not currently possible.
>
> Thanks so much.
> Rich
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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: Prescale Background Example / Speeding up WebViews

2010-05-03 Thread Rich
Anybody using this approach?

R

On Apr 29, 1:35 pm, Rich  wrote:
> The groups site buried this before it was visible yesterday, I'm gonna
> bump it again and hope Romain sees it..
>
> If it's worth mentioning during a Google I/O talk, probably worth
> having some confirmed example code on the web then, right? :)
>
> Rich
>
> On Apr 28, 5:20 pm, Rich  wrote:
>
>
>
>
>
> > I've created a custom ViewGroup (based off of the Launcher) that
> > allows paging scrolls between some WebViews. Problem is that it
> > doesn't scroll as smoothly as I want it to. I've been following Romain
> > Guy's 2008 advice, but I don't see any massive improvements. Is it
> > because I am using WebViews, or am I just doing the prescaling wrong?
> > This is my code:
>
> >                  Bitmap originalImage =
> > BitmapFactory.decodeResource(getResources(), R.drawable.redbg);
>
> >                  originalImage = Bitmap.createScaledBitmap(
> >                              originalImage,          // bitmap to resize
> >                              ((WindowManager)
> > getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getWidth(),   
> >      //
> > new width
> >                              ((WindowManager)
> > getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getHeight(),  
> >      //
> > new height
> >                              true);                  // bilinear filtering
>
> >                  getWindow().setBackgroundDrawable(new
> > BitmapDrawable(originalImage));
>
> > called from onCreate. Is the right?
>
> > If not, what can I do to fix it? If not, what else can I do to speed
> > up the scrolling?
>
> > Thanks so much!
> > Rich
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://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 
> athttp://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] App Widget with AlarmManager... full example source?

2010-09-07 Thread Rich
Hi all,

I've created a simple app widget for personal use that queries a
site from the internet, parses the XML received and displays some info
from it.  I'm using a Droid X, if that makes a difference; both in the
emulator and as physical hardware, developing in the Android version
of the MotoDev IDE.

No matter what I put in updatePeriodMillis, the shortest refresh
time I can get is 30 minutes (I thought this was a 1.6 only bug but
apparently not since I'm running 2.1) and I want it to refresh every 5
minutes, with some caveats.  I don't want the widget to refresh when
the screen is off and I want it to refresh immediately upon waking up
the screen.  My search for information says to set updatePeriodMillis
to 0 and use the AlarmManager instead, but I can't find any complete
code examples on just how to do this.

Obviously, I'm new to Android development, and Java in general
actually, but I've been a developer for a very long time with
experience in just about every other language.  Currently working in
C#, so I thought I'd be able to jump in fairly easily.  Can anyone
point me to sample code or an open source project that does what I'm
looking for?  I have other questions, but until I get this piece
working they don't really matter.  :)

Ricoware

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

2010-09-11 Thread Rich
 Motorola has AVDs for their phones.  Here's the link to the install 
instructions.  I'm not sure which phones have AVDs, I'm using the Droid 
X version though and it works great.


http://developer.motorola.com/docstools/library/Installing_the_Motorola_SDK_Add-on/

Rich


On 9/11/2010 4:24 AM, mathijs wrote:

Hi,

We recently launched an update to our app in which we skinned the
button background colors lighter than the default theme. Only through
bad user comments we found out that the Droid X&  Droid 2 have a
default theme with dark buttons and white text, so the white text
became unreadable on our lighter buttons.
As we're in Europe, we don't have access to either a Droid X or Droid
2 to test, and we haven't found out how we can set the emulator to
emulate how our app would look on those phones.

The UI of android apps becomes more and more important because users
don't like an app to be the default black theme anymore. Are there any
tools planned to help developers make sure their apps are usable on
all customized versions of Android that are out there?

Best regards,

Mathijs / AppBrain team



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


[android-developers] FullScreen/NoTitleBar/Landscape activity incosistently shifting visually

2011-01-27 Thread Rich
I have an activity with a somewhat complicated view.  Not complicated in a 
technical sense...there's just a lot going on.  All activities in this 
particular app are set to FullScreen NoTitleBar, and they're all set to 
Landscape orientation.  I noticed early on in development when the app is 
hidden and then resumes, there was an infrequent tendency for the layout to 
slide down vertically as if to make room for the titlebar and statusbar.

Later on in development, the app now calls out to various external intents. 
 I notice now that there is more of a tendency to make this same shift when 
resuming from an externally handled fired intent (such as creating a 
"chooser" intent or picking an image).  I am able to reproduce it 
inconsistently using the exact same steps...sometimes it happens sometimes 
it doesn't.  It seems as if there's a race condition in between various 
phases of measuring and laying out.  I assume that one of these steps that 
the system is doing for me is checking for fullscreen and notitlebar, and 
making the necessary shift.  This is probably happening late in some cases.

I put a bunch of logging, and calls to invalidate(), requestLayout(), etc 
trying to maybe catch the race condition, but the problem seems external to 
my layouts.  The top() and bottom() values of my root layout are always 0 
and the height of my screen, respectively, even when I'm logging this while 
the issue is occurring.

I asked this on StackOverflow, and neither of the two suggestions I was 
given worked (setting the fullscreen/notitlebar business in both the xml and 
in code, and calling getWindow().getDecorView().invalidate(); ).

Is there some other method of the Window, WindowManager or any other system 
view-related object that I can force a full remeasure, redraw, re-check for 
current theme/style flags?

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] Announcing: The Android Developers Union

2011-03-01 Thread Rich
Hello, fellow Android devs!

I'm sure many of you, like myself, have been fed up with Google
because of their
lackluster support for the Android market.
In response, I am forming a Union of Android Developers. The demands
are laid out here: http://www.andevuni.org/
This is the statement of intent:

   We, the members and supporters of the Android Developers Union,
are fed up with the conditions of the Android Market. We are tired of
being treated like sharecroppers on Google's digital plantation! We
have compiled a list of seven demands which Google can implement to
improve the Market. Implementing these demands will absolutely improve
the working conditions for Android developers, thereby improving the
Android ecosystem and giving a better experience to our customers.
   If our demands are not met, we will move our applications to
alternative marketplaces or the web, cease Android development in
favor of other more open platforms, we will dissuade other developers
from developing Android projects, and we will work tirelessly to
counter any of Google's hypocritical claims about Openness in the
media.
  These are our demands! They are simple and they are attainable, so
we hope that Google will do the right thing!

 * Renegotiation of the 32% Google-tax on applications sales
 * Remedy to the Order of Entry Effect
 * Public Bug Tracking
 * Increased Payment Options
 * Codified Rules and a Removal Appeal Process
 * Communication and Engineering Liaison
 * Algorithmic Transparency

Please! Join the mailing list, sign the petition, and make a stink!
We are doing this because we _love Android_ and we want it to thrive,
which it can't
do until we developers and our customers are treated fairly and given
a reasonable
place to sell our wares!

Thanks very much for your attention!.
Rich

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

2011-03-01 Thread Rich
How is it silly? Many developers have had their apps removed without
warning and it's frankly unacceptable. I make my _living_ off of
application develop and this kind of instability is intolerable,
especially considering that Google has taxed me out of over ten
thousand dollars.

Just because market conditions are better than other places, doesn't
mean that they are good, and not worth improving. (And, quite frankly,
there are many reasons which Apple's App Store are superior in terms
of curation, quality, and customer navigability of new apps.)

And yes, of course the aesthetic is a tongue in cheek joke, but the
demands are very real.

R

On Mar 1, 9:27 pm, TreKing  wrote:
> On Tue, Mar 1, 2011 at 8:10 PM, Rich  wrote:
> > Please! Join the mailing list, sign the petition, and make a stink!
>
> While I appreciate your effort and agree with your intent, this is rather
> pointless. Your phrasing is childish and the graphic on the site is comical
> at best. No one is going to take this seriously - particularly the people
> that you're targeting.
>
> Here's some fun reading:
>
> http://groups.google.com/group/android-discuss/browse_thread/thread/8...http://groups.google.com/group/android-developers/msg/ab94cdf1c46d90d2
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Announcing: The Android Developers Union

2011-03-01 Thread Rich
I'm sorry Romain - I will remove your email from the list!

Do you have any contact information for somebody who would be more
willing to listen to our grievances? Please email me off list if there
are other email address you want removed.

R

On Mar 1, 10:38 pm, morrildl  wrote:
> I'm sorry you are not satisfied with the experience you've had with
> Android Market so far. I look forward to seeing your applications on
> other platforms.
>
> Please note that the page you have put up encourages people to send
> unsolicited email of a commercial nature in bulk. Spamming or a call
> to spam someone is an unacceptable use of this group. Please review
> the group charter athttp://source.android.com/community/groups-charter.html
> and reconsider your spam campaign.
>
> - Dan
>
> On Mar 1, 6:56 pm, Rich  wrote:
>
>
>
>
>
>
>
> > How is it silly? Many developers have had their apps removed without
> > warning and it's frankly unacceptable. I make my _living_ off of
> > application develop and this kind of instability is intolerable,
> > especially considering that Google has taxed me out of over ten
> > thousand dollars.
>
> > Just because market conditions are better than other places, doesn't
> > mean that they are good, and not worth improving. (And, quite frankly,
> > there are many reasons which Apple's App Store are superior in terms
> > of curation, quality, and customer navigability of new apps.)
>
> > And yes, of course the aesthetic is a tongue in cheek joke, but the
> > demands are very real.
>
> > R
>
> > On Mar 1, 9:27 pm, TreKing  wrote:
>
> > > On Tue, Mar 1, 2011 at 8:10 PM, Rich  wrote:
> > > > Please! Join the mailing list, sign the petition, and make a stink!
>
> > > While I appreciate your effort and agree with your intent, this is rather
> > > pointless. Your phrasing is childish and the graphic on the site is 
> > > comical
> > > at best. No one is going to take this seriously - particularly the people
> > > that you're targeting.
>
> > > Here's some fun reading:
>
> > >http://groups.google.com/group/android-discuss/browse_thread/thread/8...
>
> > > ---
> > >  --
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices

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


[android-developers] Re: Problems with audio playback on froyo

2010-07-07 Thread Rich
I'm bumping this because a fundamental component of the Android system
is broken, there have been numerous reports and not a single person
from the Android dev team have spoken about this after weeks. Please
reply soon! There are hundreds of broken apps on the market.

R

On Jun 18, 4:45 pm, Rich  wrote:
> Same thing here - you're not the only one. The newMediaPlayeris
> absolute garbage, trying to decipher the error codes is like reading
> tea leaves (And they told us this was going to be 
> fixed:http://www.mail-archive.com/android-developers@googlegroups.com/msg20...
> - they just made it worse!) Further discussion here:
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> and
>
> http://forum.rhapsody.com/rhapsody/topics/app_force_closes_in_froyo_w...
>
> No proposed workarounds, not a peep from any Google employees.
>
> Very disappointing response so far. Fortunately 2.2 isn't deployed on
> any retail devices, but it sure sucks if you've only got a Nexus on
> 2.2
>
> Let me know if you come up with some solution,
> Rich
>
> On Jun 2, 5:29 pm, RC  wrote:
>
> > I'm having a problem withMediaPlayerplaying a stream. It goes along
> > fine and then I get the following.
>
> > I/AwesomePlayer(   59): prefetcher is done preparing
> > E/MediaPlayer( 6358): error (1, -2147483648)
> > E/MediaPlayer( 6358): Error (1,-2147483648)
> > W/TimedEventQueue(   59): Event 2 was not found in the queue, already
> > cancelled?
> > V/TuneWiki( 6358): Client closed connection!
> > V/TuneWiki( 6358): java.net.SocketException: Connection reset by peer
> > V/TuneWiki( 6358):     at
> > org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native
> > Method)
>
> > This is only happening in the newFroYo(Android 2.2) release where
> > the media player was changed.
>
> > All streaming works up to Android 2.1, and with Android 2.2 we get
> > squelches, pops, and other bad noise and then the connection
> > terminates.
>
> > I have looked at one possibility being the change from HTTP/1.0 to
> > HTTP/1.1 requests. I'm not sure if Stagefright can be told to make
> > HTTP/1.0 connections but it appears to work for a couple seconds and
> > then everything falls apart and the media player quits.
>
> > Anyone have thoughts about what has changed and what might be needed
> > to work with the new media player properly?

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


[android-developers] Re: Problems with audio playback on froyo

2010-07-07 Thread Rich
Okay! Sorry I got all uppity.

Here's the solution:
http://code.google.com/p/npr-android-app/source/diff?spec=svn77&r=77&format=side&path=/trunk/Npr/src/org/npr/android/news/PlaybackService.java

Rich

On Jul 7, 11:04 am, Rich  wrote:
> I'm bumping this because a fundamental component of the Android system
> is broken, there have been numerous reports and not a single person
> from the Android dev team have spoken about this after weeks. Please
> reply soon! There are hundreds of broken apps on the market.
>
> R
>
> On Jun 18, 4:45 pm, Rich  wrote:
>
> > Same thing here - you're not the only one. The newMediaPlayeris
> > absolute garbage, trying to decipher the error codes is like reading
> > tea leaves (And they told us this was going to be 
> > fixed:http://www.mail-archive.com/android-developers@googlegroups.com/msg20...
> > - they just made it worse!) Further discussion here:
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > and
>
> >http://forum.rhapsody.com/rhapsody/topics/app_force_closes_in_froyo_w...
>
> > No proposed workarounds, not a peep from any Google employees.
>
> > Very disappointing response so far. Fortunately 2.2 isn't deployed on
> > any retail devices, but it sure sucks if you've only got a Nexus on
> > 2.2
>
> > Let me know if you come up with some solution,
> > Rich
>
> > On Jun 2, 5:29 pm, RC  wrote:
>
> > > I'm having a problem withMediaPlayerplaying a stream. It goes along
> > > fine and then I get the following.
>
> > > I/AwesomePlayer(   59): prefetcher is done preparing
> > > E/MediaPlayer( 6358): error (1, -2147483648)
> > > E/MediaPlayer( 6358): Error (1,-2147483648)
> > > W/TimedEventQueue(   59): Event 2 was not found in the queue, already
> > > cancelled?
> > > V/TuneWiki( 6358): Client closed connection!
> > > V/TuneWiki( 6358): java.net.SocketException: Connection reset by peer
> > > V/TuneWiki( 6358):     at
> > > org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native
> > > Method)
>
> > > This is only happening in the newFroYo(Android 2.2) release where
> > > the media player was changed.
>
> > > All streaming works up to Android 2.1, and with Android 2.2 we get
> > > squelches, pops, and other bad noise and then the connection
> > > terminates.
>
> > > I have looked at one possibility being the change from HTTP/1.0 to
> > > HTTP/1.1 requests. I'm not sure if Stagefright can be told to make
> > > HTTP/1.0 connections but it appears to work for a couple seconds and
> > > then everything falls apart and the media player quits.
>
> > > Anyone have thoughts about what has changed and what might be needed
> > > to work with the new media player properly?

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


[android-developers] no resource found that matches the given name(at 'label' with value "@string/about_title"

2010-11-23 Thread rich
hey guys, im using a tutorial from the book hello android and i have
come across said error, any help would be great as its for a uni
project, files are below

manifest.xml

http://schemas.android.com/apk/res/android";
  package="org.example.sudoku"
  android:versionCode="1"
  android:versionName="1.0">
















strings.xml



Sudoku
Android Sudoku
Continue
New Game
About
\
Sudoku is a logic-based number placement puzzle.
Starting with a partially completed 9x9 grid, the
objective is to fill the grid so that each row,
each column, and each of the 3x3 boxes contains
the digits
1 to 9 exactly once.

Exit



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


[android-developers] Windows drivers, inf file, and device ID's

2010-11-24 Thread Rich
Unless I'm doing something wrong and have wrong information, whenever
I have a new device that I want to deploy an application to from a
Windows dev machine, I have to make sure that I have the device ID in
my android_winusb.inf file.  When I switched phones recently, this was
the solution I came up with by googling the problem (new phone not
showing up in launch dialog) and it worked.

My coworker has a Motorola Devour and I'm having the same problem.  I
plug his phone into my dev machine and attempt to deploy, but his
device doesn't show up in the list (he has debugging turned on, my app
has debugging enabled in the manifest, and the USB connected alerts
show up on his phone when connected).

I can't find a device id for my inf file for a Motorola Devour
anywhere online.  Anyone have any ideas?  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: Windows drivers, inf file, and device ID's

2010-11-24 Thread Rich
Thanks...you were right.  Motorola has their own drivers I had to
install.

On Nov 24, 12:12 pm, Kostya Vasilyev  wrote:
> A few things you can try are:
>
> - Check Motorola's developer network site for their own driver
>
> - Use a hardware information program, such as Lavalys Everest or Piriform
> Speccy to find out the USB vendor and device ids (the latter is free, the
> former is more comprehensive and has a trial version).
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
> 24.11.2010 19:39 пользователь "Rich"  написал:
>
>
>
>
>
>
>
> > Unless I'm doing something wrong and have wrong information, whenever
> > I have a new device that I want to deploy an application to from a
> > Windows dev machine, I have to make sure that I have the device ID in
> > my android_winusb.inf file. When I switched phones recently, this was
> > the solution I came up with by googling the problem (new phone not
> > showing up in launch dialog) and it worked.
>
> > My coworker has a Motorola Devour and I'm having the same problem. I
> > plug his phone into my dev machine and attempt to deploy, but his
> > device doesn't show up in the list (he has debugging turned on, my app
> > has debugging enabled in the manifest, and the USB connected alerts
> > show up on his phone when connected).
>
> > I can't find a device id for my inf file for a Motorola Devour
> > anywhere online. Anyone have any ideas? 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 > cr...@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] Criteria to show up in new "Related" tab in market

2010-12-08 Thread Rich
I would assume that the major driver behind what shows up in the
related tab is relevance by keywords in the name and description of an
app, but does anyone know specifically any other criteria behind
this?  I have an app that I release a little over a week ago that is
not showing up in the Related tab of any similar apps nor for apps
that show up in the Related tab for mine.  And, I have a much older
app that has been released for months that shows up just where I'd
expect it to.  I don't believe it has to do with ratings and downloads
because my premium app that does show up in Related has about 1/10th
the downloads of my newer one that isn't showing up, and all of them
are 4 stars and up.  I was pretty SEO minded with the description, so
the age of the app is the only limiting factor I can think of.  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] What's the general consensus on the non-Android affiliated app stores?

2010-12-09 Thread Rich
I have gotten a few emails from proprietary app stores that offer
distribution to their network of devices that don't come with the
Android Market.  Are these a sham?  Are there any legit ones that
stand out?  I like the idea of one centralized market so that my
download/rating metrics are accurate, and I imagine that the apk's
must be pretty easy to crack open and decompile, but I was curious to
see what the community thinks.  The one email in particular I just
received is from a company called Handster offering distribution on HP
and LG devices.  Anyone heard of them and/or have dealings with them?

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


[android-developers] Samsung-Specific Media Player Errors

2010-12-09 Thread Rich
Hello!

I'm having some significant issues with MP3 streaming on large files
on Samsung Devices with Android 2.1 (ie, the Samsung Galaxy S). This
is using mfrederick's NPR-code for streaming mp3 support. Has anybody
else encountered this? Does anybody have a Samsung phone which allows
side-loading who would be willing to help debug this?

Here is the dump trace. "SISO" apparently means Samsung India Software
Operations


12-07 17:39:35.812 D/MediaPlayerService( 2209): getPlayerType : url =
http://127.0.0.1:60943/http://mymp3.mp3, filePath =
http://127.0.0.1:60943/http://mymp3.mp3
12-07 17:39:35.812 D/( 2209): SISO TEST registering
PVMFRecognizerPluginFactory
12-07 17:39:35.812 D/( 2209): SISO TEST registering
PVMFRecognizerPluginFactory success
12-07 17:39:35.822 E/( 2209): III Inside Constructor of
PVMFMemoryBufferWriteDataStreamImpl
12-07 17:39:35.912 I/System.out( 2935): interface name: null
12-07 17:39:38.515 I/AudioHardwareALSA( 2209): Output standby
called!!. Turn off PCM device.
12-07 17:39:41.147 D/dalvikvm( 2935): GC freed 890 objects / 108752
bytes in 93ms
12-07 17:39:45.377 E/MediaPlayer( 2935): message received msg=3,
ext1=0, ext2=0
12-07 17:39:45.377 E/MediaPlayer( 2935): callback application
12-07 17:39:45.377 E/MediaPlayer( 2935): back from callback
12-07 17:39:45.392 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin() plugin found
12-07 17:39:45.392 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::DestroyRecognizerPlugin()
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin()
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::CreateRecognizerPlugin() plugin found
12-07 17:39:45.412 D/( 2209): PVFile::GetFileName
12-07 17:39:45.412 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.412 D/( 2209): SISO TEST
PVOMA1FFRecognizerFactory::DestroyRecognizerPlugin()
12-07 17:39:45.417 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:45.417 E/( 2209): III Inside Constructor of
PVMFMemoryBufferReadDataStreamImpl
12-07 17:39:55.817 E/PlayerDriver( 2209): Command (6) was cancelled

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


[android-developers] Force a full screen Activity to remeasure/redraw on resume?

2010-12-09 Thread Rich
The app I'm working on is set to NoTitleBar and Fullscreen, and the
activities are all in landscape mode. Sometimes when I return to the
application after it has been paused, the Activity looks as if it's
shifted down to make space for the title bar. If I navigate to another
Activity or even do some action that pops up a dialog, it quickly
corrects itself - the activity jumps up to full screen and remeasures
all the child views. I would like to do something like this by default
when the Activity resumes.  Is there a method in Activity that I can
call to manually retrigger the measure/layout process and possibly
applying the NoTitleBarFullScreen theme?  And if so, are there any
possible issues with doing this manually?

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

2010-09-25 Thread Rich
I'm curious as to why Android has to unmount the SD card at all?  Was
this a simple design choice or is it a hardware limitation with USB?
Or something else entirely?


On Sep 24, 7:50 pm, Dianne Hackborn  wrote:
> It's not a marketing thing, it's a basic characteristic of the SD card not
> being available all the time.

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


[android-developers] Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread Rich
I uploaded an update to one of my apps.  I caught a bug in testing
shortly after.  I noticed that the Upload Upgrade link had
disappeared, and I only have the ability to completely remove the
application.  I uploaded the last update yesterday, so it has been
about 15 hours.  I'm guessing there is a 24 hour waiting period so
that you don't flood the market with updates, but I can't find
documentation to confirm.

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


[android-developers] Re: Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread Rich
Any idea why I would only see a [ remove ] link where the Upload
Upgrade link was yesterday?  My other app, that I haven't updated in a
while has the Upload Upgrade link still.

On Oct 12, 8:42 am, Kumar Bibek  wrote:
> There's no time limit. You can update your app technically, every
> second/milisecond :)
>
> -Kumar Bibekhttp://techdroid.kbeanie.com
>
> On Oct 12, 5:26 pm, Rich  wrote:
>
>
>
> > I uploaded an update to one of my apps.  I caught a bug in testing
> > shortly after.  I noticed that the Upload Upgrade link had
> > disappeared, and I only have the ability to completely remove the
> > application.  I uploaded the last update yesterday, so it has been
> > about 15 hours.  I'm guessing there is a 24 hour waiting period so
> > that you don't flood the market with updates, but I can't find
> > documentation to confirm.

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


[android-developers] Re: Is there a time limit I must wait between uploading updates to a single app?

2010-10-12 Thread Rich
Thanks.  That's exactly what happened.

On Oct 12, 12:49 pm, TreKing  wrote:
> On Tue, Oct 12, 2010 at 8:21 AM, Rich  wrote:
> > Any idea why I would only see a [ remove ] link where the Upload Upgrade
> > link was yesterday?
>
> It's possible you never submitted the original update. If you select a new
> version to upload, that button switches to "Remove" so you can cancel the
> update. This will NOT remove your app from the Market place (that's
> "Unpublish").
>
> Hit the "remove" button and see what version it shows. If it's your old
> version, you never published that update.
>
> Welcome to the Android Market Developer "Tools".
>
> --- 
> --
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: Problems with audio playback on froyo

2010-06-18 Thread Rich
Same thing here - you're not the only one. The new MediaPlayer is
absolute garbage, trying to decipher the error codes is like reading
tea leaves (And they told us this was going to be fixed:
http://www.mail-archive.com/android-developers@googlegroups.com/msg20549.html
- they just made it worse!) Further discussion here:

http://groups.google.com/group/android-developers/browse_thread/thread/cbb43110a138fa71/2b1ad409a262a711?lnk=gst&q=froyo+mediaplayer#2b1ad409a262a711

http://groups.google.com/group/android-developers/browse_thread/thread/c946b5ac03557fbc/c98e09bed9080b6e?lnk=gst&q=froyo+mediaplayer#c98e09bed9080b6e

and

http://forum.rhapsody.com/rhapsody/topics/app_force_closes_in_froyo_when_you_play_music

No proposed workarounds, not a peep from any Google employees.

Very disappointing response so far. Fortunately 2.2 isn't deployed on
any retail devices, but it sure sucks if you've only got a Nexus on
2.2

Let me know if you come up with some solution,
Rich

On Jun 2, 5:29 pm, RC  wrote:
> I'm having a problem withMediaPlayerplaying a stream. It goes along
> fine and then I get the following.
>
> I/AwesomePlayer(   59): prefetcher is done preparing
> E/MediaPlayer( 6358): error (1, -2147483648)
> E/MediaPlayer( 6358): Error (1,-2147483648)
> W/TimedEventQueue(   59): Event 2 was not found in the queue, already
> cancelled?
> V/TuneWiki( 6358): Client closed connection!
> V/TuneWiki( 6358): java.net.SocketException: Connection reset by peer
> V/TuneWiki( 6358):     at
> org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native
> Method)
>
> This is only happening in the newFroYo(Android 2.2) release where
> the media player was changed.
>
> All streaming works up to Android 2.1, and with Android 2.2 we get
> squelches, pops, and other bad noise and then the connection
> terminates.
>
> I have looked at one possibility being the change from HTTP/1.0 to
> HTTP/1.1 requests. I'm not sure if Stagefright can be told to make
> HTTP/1.0 connections but it appears to work for a couple seconds and
> then everything falls apart and the media player quits.
>
> Anyone have thoughts about what has changed and what might be needed
> to work with the new media player properly?

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


[android-developers] Task or application equivalent of onPause

2009-11-15 Thread Rich Stern
My application uses a remote service to play audio.  I do this so that
no activity owns the playback of the audio - the user can trigger some
audio to be played from one Activity, and the audio will continue to
play as they navigate around the app.  I do, however, want to tell the
service to pause or stop playing audio when the user "unloads" the app
either by backing out or hitting Home.  When the app was a single
activity, I was doing this in onPause.  So, I guess I'm essentially
looking for "onPause" at the application/task level.  Does such thing
exist?  If not, what is the "best practice" way of getting notified
that the task has been put on hold by the user either backing all the
way out or hitting Home?

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

[android-developers] Task life cycle and activity launch mode question(s)

2009-11-15 Thread Rich Stern
I read up on "tasks" and the activity life cycle.  Single top launch
mode seems to give me (in theory) what I'd like to have for my app,
but it's not currently working as expected.  It sounds simple enough,
so I can't imagine I'm doing this incorrectly.  From my understanding,
"single top" means that my activity can be navigated to in many ways,
but per Task it will act as a singleton instance moving it to the top
of the Task stack when launched.  Therefore, if I do either of the
following: declare the activity's launchMode to be singleTop in the
manifest OR launch my activity by intent with the
FLAG_ACTIVITY_SINGLE_TOP flag I will get this behavior.

I have tried both methods by themselves and both together, and I don't
get this behavior.  I have a very simple app with two Activities.
MainActivity is my "landing page" where a user can select an artist
and launch the ArtistActivity with that artist's id.  The user can
navigate back to the landing page with a menu item as well as the back
button.  If the user goes back and forth by menu item clicks, a stack
of activities seems to be built so that successively hitting the back
button will take them step by step backwards through the actions
they've taken.  I was under the impression that by declaring both
activities as android:launchMode="singleTop" and/or launching them
with the properly flagged intent (intent.addFlag
(Intent.FLAG_ACTIVITY_SINGLE_TOP), that hitting the back key would
only take them through an activity once before "exiting" (visually
hiding) the app.

Am I getting this wrong?  And if so (or not), how do I get my app with
only two activities to treat the activities as a stack where my
"landing page" (MainActivity) is always on the bottom?  Hitting Back
from MainActivity always exits (unloads/pauses?) the app (task?), and
hitting Back from ArtistActivity always returns to a singleton
instance of MainActivity.

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

[android-developers] OpenGL 2D Game Framework

2009-09-18 Thread rich...@stickycoding.com

I've been working on a game framework for a little while, and while
its far from perfect, I've put the current version online.

To be honest, I haven't used much OpenGL in the past. Before last week
I had never tried using it.
If anyone would like to take a look, please do, I'd appreciate all the
help possible on speeding it up.
There are many features I have in mind and am planning at the minute,
but so far it supports:

# Texture and Sprite management
# Text, using TTF fonts
# Organised layers
# Two audio management classes, one optimized for music, the other for
sound effects
# Sprite dynamics (acceleration, terminal velocity, collisions)
# Animation
# Handlers to manage events fired through movement, animation, screen
touches, accelerometer input, device shaking and collisions
# Several minor features aimed at speeding development, such as screen
settings and vibration

The code is at http://code.google.com/p/rokon/

Again, I'd very much appreciate advice or help with any bugs you can
see, 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: OpenGL 2D Game Framework

2009-09-20 Thread rich...@stickycoding.com

Alright, thanks for the suggestions you sent me Lance, it did make a
noticeable difference.
I also changed a lot of things that were causing garbage, and added in
a new particle engine.
For anyone who's nosey, you can take a look here at the new features
http://www.youtube.com/watch?v=jWYL-L7HnEE


I seem to be having some problems with the sound however. I can use
MediaPlayer to play music, and framerate doesn't really drop. Or I can
use SoundPool for effects, and framerate doesn't really drop. But if I
use them at the same time (to have Music, and Sound Effects) the drop
in framerate seems to greatly exceed the two alone combined. Is there
a reason for this, or any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenGL 2D Game Framework

2009-09-21 Thread rich...@stickycoding.com

Definitely a good idea Fred, something else that I put into the TODO
list, thanks.
1.6 wasn't out when I was working the audio part of the engine, so it
never crossed my mind.


Also, I've been working on a game from the engine myself, and I've
made a nifty path following modifier, that will get take a sprite and
follow it smoothly (using natural cubic splines) along a series of x/y
points, rotating if it needs to. If anyones interested, it'll be in
the next update of the engine on the site in a couple of days :)


On Sep 20, 3:48 pm, "Fred Grott(Android Expert)"
 wrote:
> how about using the new sound track engine in Android 1.6? JetBoy?
>
> On Sep 20, 8:28 am, "rich...@stickycoding.com"
>
>
>
>  wrote:
> > Alright, thanks for the suggestions you sent me Lance, it did make a
> > noticeable difference.
> > I also changed a lot of things that were causing garbage, and added in
> > a new particle engine.
> > For anyone who's nosey, you can take a look here at the new 
> > featureshttp://www.youtube.com/watch?v=jWYL-L7HnEE
>
> > I seem to be having some problems with the sound however. I can use
> > MediaPlayer to play music, and framerate doesn't really drop. Or I can
> > use SoundPool for effects, and framerate doesn't really drop. But if I
> > use them at the same time (to have Music, and Sound Effects) the drop
> > in framerate seems to greatly exceed the two alone combined. Is there
> > a reason for this, or any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: OpenGL 2D Game Framework

2009-09-21 Thread rich...@stickycoding.com

Thanks for the suggestions guys, really appreciate it. I've had dozens
of suggestions and thankyou's emailed in today alone.

In regards to licensing, I was going to keep it as GPL for a little
while longer.

I figured, with the engine at the state its in now, its unlikely you
will be able to make a profitable, stable game ready for the market
without fixing some of the bugs and issues that it has. Which would
mean an encouragement for people to make suggestions and
contributions.

When the engine is in a better shape, I have full intentions of making
it totally free to use in any of your commercial games.


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

2009-09-21 Thread rich...@stickycoding.com

Alright, I'll take it on board and think about changing it. I really
don't mind if people do whatever they want to with the code, just
thought it might encourage a little more of a push on the
contributions. But considering it, you might be right that its putting
people off.

Maybe change things next update :)

Richard

On Sep 22, 12:28 am, Dan Sherman  wrote:
> I'm not gunna try to talk you out of it, it's your code, and you should pick
> the license that suits your ambitions for the project.
>
> However, I can see it putting off a lot of users that might be interested in
> working with it, who can't justify sinking weeks of time into a planned
> commercial game, with no real way of knowing if/when the license will change
> to be favorable enough to release the game.
>
> I'm not too knowledgable on the LGPL, but the Mozilla license would be
> something to look into.
>
> Regardless, the project looks good.
>
> - Dan
>
> On Mon, Sep 21, 2009 at 7:21 PM, Jason Proctor <
>
>
>
> jason.android.li...@gmail.com> wrote:
>
> > IMHO, this purpose would be better served by adopting a more liberal
> > "library" type licence like LGPL or Mozilla.
>
> > full GPL puts a lot of people off, for reasons already covered.
>
> > >Thanks for the suggestions guys, really appreciate it. I've had dozens
> > >of suggestions and thankyou's emailed in today alone.
>
> > >In regards to licensing, I was going to keep it as GPL for a little
> > >while longer.
>
> > >I figured, with the engine at the state its in now, its unlikely you
> > >will be able to make a profitable, stable game ready for the market
> > >without fixing some of the bugs and issues that it has. Which would
> > >mean an encouragement for people to make suggestions and
> > >contributions.
>
> > >When the engine is in a better shape, I have full intentions of making
> > >it totally free to use in any of your commercial games.
>
> > >Richard
>
> > --
> > jason.vp.engineering.particle
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Emulating OpenGL

2009-09-30 Thread rich...@stickycoding.com

I've been building my game using a real device, and it gets a steady
50fps. But when I try it on the emulator, it rarely goes above 12.

I'm assuming the emulator is using software rather than hardware to do
all its drawing. I'm trying to make a video of my game - using fraps
(or something similar). But its just not going to work if it looks
unplayable. I've noticed some videos of games for Android that use
OpenGL, and seem to play back at a normal rate - as if they have
gotten the emulator to run games smoothly

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



[android-developers] question about Snake game in sample code-- getting the snake tiles on to same coordinate plane as SnakeView

2011-06-09 Thread rich friedel
I don't have access to the snake game code at the moment but if I had to guess, 
I'd say that the (7, 3) coords are where the touchevent takes place on the body 
part and (90, 40) refers to where the touchevent takes place in the entire view.

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

2011-06-10 Thread rich friedel
I don't know that there is a difference between the emulator and a physical 
device when it comes to the LogCat, variable state and what-not. Besides, not 
only can you run the app on the device but fully debug as well, so I don't see 
a legitimate reason to not use a physical device... unless of course you cannot 
obtain one for whatever reason. With that said, the emulator is PAINFULLY slow 
thus I would highly recommend: use physical device whenever possible and always 
test on a physical device before release!

As someone else mentioned, pretty much any device is suitable. One thing that I 
recommend though, no matter the device, I like to keep one device as close to 
vanilla stock as possible so that I have a baseline performance for an app. If 
you have a modded OS, sometimes funky weird things start happening.

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


Re: [android-developers] Is there any way to disable landscape mode for widget?

2011-06-10 Thread rich friedel
I'm not sorry! I am glad this is not possible... I would be pissed if ONE out 
of a possible 80 widgets locked my homescreen into a specific display mode.

Maybe I'm being harsh but come on, if you're going to do something, think 
first! This request is right up there with those people who want to do things 
like control the "Home" button action.

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

2011-06-10 Thread rich friedel
Yeah the LG Ally is the bane of my existence! I am actually considering getting 
one used so that I can test on it. That ONE device has something weird going on 
that makes my app useless. It's the only phone that does this too, well at 
least the only one that's been reported to consistantly fail out of the 20,000+ 
 downloads

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


[android-developers] Is it necessary to always create a new service for every broadcast received to avoid ANRs? Implications?

2011-06-10 Thread rich friedel
If I'm not mistaken, a service can only be started once. All subsequent calls 
will just defer to the already running service.

Sounds to me like something is not being released and is hanging the UI thread.

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


Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread rich friedel
To add to that you are also saying that while using your app I might have to 
go back through 9 activities to get to my home screen??? Then on top of that 
you want to disable the home button, my only means of NOT going through 9 
potential activities *obviously I could also pull the battery*

You might wish to reconsider your programming techniques!

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

[android-developers] Re: what do you think of interstitial ads on apps

2011-06-10 Thread rich friedel
Just one guy's opinion...

The whole Ad debate is what it is and devs using ads... yeah I get it. 
With that said, Pandora went to these HUGE, and IMHO very intrusive, ads 
recently which instantly caused me to uninstall it and use another app.

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

Re: [android-developers] Re: How can I know when the home button has been pressed?

2011-06-10 Thread rich friedel
Argggh You sir are evil LOL :)

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

2011-06-12 Thread rich friedel
What security implications arise from allowing the device to take screenshots? 
I see that line of reasoning toss about a lot to describe why something doesn't 
work automatically.

I don't understand why this couldn't be something that is normally available... 
all it would require is a simple permission.

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

2011-06-12 Thread rich friedel
I agree that an app taking a screenshot of extremely private information is 
a high security risk. However, how is that any different than allowing an 
application access to my contacts, browser, phone state, etc... As an 
example take LauncherPro, because it is a complete launcher it requires 
nearly every permission available. I can only trust that the dev isn't 
stealing all my information.

Often times, that line of reasoning is tossed about due to legitimate
security concerns. You are certainly welcome to disagree with those
concerns, of course.

I am real big on security. I have to say though that for the screenshot 
issue, I don't see how it is any different than any other app that has 
access to my personal information. Like I said make it a requirement to add 
the permission. Just like any other app, it is up to the user to 
discriminate against any potential nefarious app by reading those 
permissions.

Similarly, you are welcome to your opinion regarding the efficacy of
the permission system for preventing users from malware.

Again, there are many many apps that require worse permissions than a 
screenshot.

Finally, if it was truly as high a risk as is said, I would assume 
(not guarantee though) that with all the rooted devices, various mods and 
screenshot apps that are out there and running that anything bad would have 
surely at least peeked its ugly head by 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

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-13 Thread rich friedel
I am only throwing the permissions thing out there as it was the easiest to 
illustrate my point. I fully understand the implications of an app having 
the ability to take a screenshot. However, sometime this is a reasonable 
need by a user. What I was trying to say is that there must be a better way 
than to just say: It's a security risk therefore it is not feasible.

And you address that here:

If/when we do have an API for an application to take a screenshot, this will 
probably be something along the lines of making a request for the 
screenshot, resulting in the system taking the screenshot and showing it to 
the user for them to confirm they want it given to the app before it is 
actually returned.

That, to me, would be a perfectly acceptable solution where you would make 
it so there is no other option but to show what image the app just grabbed 
and it would be managed by the system.

As far as permissions go and their vagueness making them useless... well 
that is a whole other debate. 

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

2011-06-21 Thread rich friedel
Don't know if y'all know or not but there is already something implemented 
in Android specifically for caching temporary information...

*Saving cache files*
If you'd like to cache some data, rather than store it persistently, you 
should use 
getCacheDir()
 to 
open a File  that 
represents the internal directory where your application should save 
temporary cache files.
When the device is low on internal storage space, Android may delete these 
cache files to recover space. However, you should not rely on the system to 
clean up these files for you. You should always maintain the cache files 
yourself and stay within a reasonable limit of space consumed, such as 1MB. 
When the user uninstalls your application, these files are removed.

http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
 


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

2011-06-21 Thread rich friedel
Yes it is possible to play Words With Friends in the emulator.

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

2011-06-22 Thread rich friedel
>From the article... 
http://developer.android.com/resources/tutorials/views/hello-gridview.html

1. Start a new project named *HelloGridView*.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: ADK on WIndows 7 64 bit with 64 bit JDK - emulator hanging

2011-06-22 Thread rich friedel
Most likely you need to wait for it to finish loading... ESPECIALLY if you 
are running it for the first time!

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

2011-06-22 Thread rich friedel
Just get the content of the SMS and do a simple if/else check. If it is your 
text then disable the sound using AudioManager something like this...

private static AudioManager audioManager;

@Override
public void onCreate() {
super.onCreate();
audioManager = (AudioManager)this.getSystemService(AUDIO_SERVICE);
...
}
private void disableNotifySound(String pTextToCheck) {
String _theString = "...something...";
if(pTextToCheck == _theString) {
audioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, 
false);
} else {
audioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, 
true);
}
}

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

2011-06-22 Thread rich friedel
I use the IOException in a try/catch block and if there is an error, which 
there will be because it cannot connect, I just move on.

This allows me to "check network state" without the permission.

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

2011-06-22 Thread rich friedel
btw, this only happens to be the way I ended up working around having to add 
an unnecessary permission. It is kludgy for sure. I would have prefered to 
know before I even make the call if the network is 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

  1   2   3   4   >