[android-developers] Re: _data column in audio_meta table

2010-03-09 Thread Scott
On Mar 2, 8:49 am, A R  wrote:
> Hi,
>
>  Does anyone know how is _data column used by RingtonePickerActivity?
> I checked the tabled using sqlite browser and it has path to the
> ringtone file. Is it possible to make RingtonePicker ask my app's
> content provider for ringtones? For eg if I enter 
> content://myprovider/ringtones/1

I can't answer your specific question about the columns in the
database, but I have worked around this area.

I have a ringtone picker that returns URI's of type 
content://myprovider/ringtone/id
that send apps playing a notification to my ContentProver for the
sound data.  This works perfectly for everything *except* the system
ringtone and notification sound (i.e. I can use my picker and
ContentProvider to provide the alarm sound,  email sound, messaging
sound, talk sound, sms sound, etc.) but when I try to use the exact
same method to set the ringtone it fails (well it sets, just the
ringtone player can't play that URI).  It appears that the ringtone
player doesn't support all URI's, but I haven't yet found
documentation that supports this theory and I've been meaning to read
the code.  It's sad because I have to do a nasty hack to get sounds in
my app to be used as ringtones by copying them to the sdcard first,
which granted works but is really messy and prone to errors if users
delete/format/eject/etc the sdcard.  My guess is that it's on purpose
to ensure that when the phone rings *some* sound comes out, just in
case the ContentProvider fails in some way.

Cheers,
Scott.

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


[android-developers] Re: App not visible in Australia

2010-03-22 Thread Scott
On Mar 21, 5:52 pm, brucko  wrote:
> String,
>
> Its right about Optus. They will not support Android Market and at one
> stage were talking of their own app store. Also drawn into this are
> the vitrual carriers TPG (which I am on), Virgin Mobile and Dodo ( I
> think). There is a forum on the problem at Whirlpool
>
> http://forums.whirlpool.net.au/forum-replies.cfm?t=1248135&p=5
>
> Which mostly is a bit of a frustrated whinge at Google and anyone in
> general before people realised Optus was not coming to the table. They
> have launched their own app store
>
> http://appstore.optusbusiness.com.au

Wow, I had no idea Optus were such pricks ... this actually makes me
feel good about leaving Optus next week when I buy my HTC Desire on
Telstra.

> On Mar 20, 8:20 pm, String  wrote:
>
> > IMHO, Google should just keep the 30% in this case. That'd give the
> > carrier a clear incentive to get their act together. But nobody asks
> > me. :^)
>
> Couldn't agree more

Or better yet give the 30% to the developer until the carrier gets
their finger out.

Cheers,
Scott.

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Creating Proxy Server

2010-03-28 Thread Scott
Looking for help with creating an http proxy server via Android. It's
a bit difficult to ask this question with examples, etc, because
networking isn't familiar to me, which means I don't quite know how to
get started, so I'll try to explain: I'm attempting to play an audio
stream using Android's MediaPlayer. It's a snap using setDataSource
and my URL string... only some phones (those still running Android
1.5) won't play the stream. Through research I've discovered that the
problem may reside with the headers associated with my stream URL,
that something in them is either missing, wrong, or simply needs to be
changed in order for the MediaPlayer not to reject the URL on
prepare() (could be length and/or content-type). I've been told that I
should attempt to solve the problem by creating an http proxy server
in my app, one where I can alter the headers to however I need them,
and then attach to the stream through this new proxy... but I haven't
the slightest idea on how to do this. Anyone have advice? I'd greatly
appreciate a point in the right direction through code, not just
suggestions like "look up HttpClient in the SDK", because I've been
through all of that and am getting nowhere. 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Android 2.0 battery level

2009-11-10 Thread Scott
I don't know if this is an Android 2.0 or a Motorola Droid issue, but
I noticed that the battery level only reports in increments of 10's.
For example 70%, 60% etc. Any apps or widgets also can only see this
as well. Is this a bug, what happened to the detailed stats?

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


[android-developers] Point Sprite support

2009-10-05 Thread Scott

Can someone confirm for me that point sprites are not currently
supported in Android? Calling gl.glEnable(GL11.GL_POINT_SPRITE_OES) is
triggering a GL_INVALID_ENUM error, so I assume this is the case, but
I'd appreciate a confirmation before I proceed with an alternate
design.

Thank you,
Scott

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



[android-developers] Re: Point Sprite support

2009-10-06 Thread Scott

Thanks for the tip, Robert. GL_OES_point_sprite is indeed output as an
extension on the G1, but not in the emulator. I can at least explore
this functionality if not as conveniently debug it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Point Sprite support

2009-10-12 Thread Scott

All right. Perhaps a silly follow-on question. If the hardware
supports point sprites, but does not support non-power-of-two
textures, then can I support non-power-of-two image dimensions for my
point sprites? I realize I can copy an image into a portion of a
larger sized power-of-two texture, but I don't believe I can blit that
portion of the texture as a point sprite. Can someone please confirm?

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



[android-developers] Re: Possible to calculate yaw,pitch,roll from x,y,z magnetic field values alone?

2009-10-19 Thread Scott

I'm afraid it's not mathematically possible to generate a full
attitude solution from a single vector observation (mag vector,
gravity vector, etc..). There simply isn't enough information there.
It doesn't matter if you're not pointed along the mag field, you will
still only get a partial attitude solution in the shape of a cone
centered around the mag field. This has been an issue in the aerospace
industry for a while now, and usually the problem is solved by
combining information from two or more sensors. In this case, the
Android API is probably using the mag field and what it assumes is a
gravity vector from the accelerometer (that's why the solution is
affected by external accelerations).

If you're interested in how to generate an attitude solution from two
vector observations, you should look up the TRIAD algorithm for
attitude determination.

Cheers,
Scott


On Oct 12, 4:25 am, DD  wrote:
> Hi, is it possible to calculate yaw,pitch,roll solely from x,y,z
> magnetic field values obtained from the magnetometer, for example,
> according to physics? How? Thanks a lot!

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



[android-developers] Hang on resume with OpenGL

2009-10-28 Thread Scott

We've modified our Android 1.5r2 build to enable the
Window.FEATURE_OPENGL flag in order to support a mixture of 2D and 3D
effects in a single layout. In general, our activity is working fine,
except for resume. We consistently crash or hang on resume.

I've been focusing on narrowing down the hang problem at the moment.
The code consistently never returns from a call to glDeleteTextures()
in SkGLDevice_SWLayer's destructor. SkGLDevice_SWLayer is being used
due to a call to Canvas's saveLayer() in our modified version of
TextView. With Window.FEATURE_OPENGL enabled, skia refuses to blit
text unless an offscreen has been created This seemed like a
reasonable workaround given that I didn't fully comprehend the
recommended fixes in SkGLDevice::drawText().

I don't expect that fixing text rendering will solve my problems,
because removing the saveLayer() call still yields problems in resume.
I'm guessing that OpenGL needs to be reset in some way on resume.

Does anyone have any suggestions?

Thank you,
Scott.

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



[android-developers] TextView Dynamic Size

2010-01-22 Thread Scott
I want to create a TextView that will stretch the width of the screen
and use a textsize that will keep the text on one line and fill the
width. So bigger words would be smaller fontsize and smaller words
would be bigger font size. I tried digging around in the docs under
TextView but could not find what I needed.

Any suggestions? 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 to clear all activity in the stack below the latest activity?

2009-12-23 Thread Scott
Here's a simple solution:

A startActivityForResult -> B startActivityForResult -> C and when
user goes to D, finish C with RESULT_OK (or any result code you want).
Then finish B itself when receive the result in onActivityResult

There's a limitation about this solution is that B and A won't
actually be destroyed until user exit D. However, this is not
noticeable by the user.

-Scott
On Dec 24, 5:33 am, jotobjects  wrote:
> Assuming A,B,C,D are in the same application, a possible solution is
> for A and D to be sub-activities of an ActivityGroup AD.  AD is the
> main app activity that normally starts A but with some intent (and
> with FLAG_ACTIVITY_CLEAR_TOP)  will instead start D.
>
> On Dec 23, 9:17 am, Sam  wrote:
>
> > Anyone? There must be someone else who has ran into a similiar issue.
>
> > On Dec 22, 12:41 pm, Sam  wrote:
>
> > > All the current discussions involves clearing all activites above an
> > > existing activyt, but I'm trying to find a way to clear all the
> > > activities before the latest activity in the stack.
>
> > > So my scenario is A -> B -> C and then when a user goes to Activity D,
> > > activies A,B,C should be cleared from the activity stack.
> > > FLAG_ACTIVITY_CLEAR_TOP seems to only clear any activites above an
> > > existing activity.
>
> > > Anybody run into this scenario and found 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] Re: AsyncTask & Queries

2009-12-28 Thread Scott
In this case you need an AsyncQueryHandler instead of AsyncTask.
Give the SimpleCursorAdapter a null cursor and set autoRequry to
false. Query database with AsyncQueryHandler.startQuery() and set the
cursor to the adapter when query completed.

--Scott
On Dec 27, 3:23 pm, Realm X  wrote:
> Hi Android Devs,
>
> Can anyone point me to a good example where a AsyncTask queries a
> local SQLite database and then updates the UI successfully. I have a
> database which I query using doInBackground... create a new custom
> SimpleCursorAdapter (overriding onViewBind), return the adapter
> (SimpleCursorAdapter), then in postExecute() create ListView adapter
> which is set to the the SimpleCursorAdapter, that was returned, then I
> set the listview adapter using SetAdapter(adapter);...
>
> For some reason I throw an exception on fillWindow.java:200
>
> Can anyone help me with the matter.
>
> Thanks!
> Longshore

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

2009-06-21 Thread Scott

I too had this problem, but I found a work around by toggling off
the "Orientation" setting under "Sound & display".  My assumption
was that the SensorManager is conflicting with the Camera's desire
to be in Landscape mode, just a guess, but the with that setting
off I was able to test my apps using the camera. Scott

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



[android-developers] Re: Android Toast Duration

2009-07-26 Thread Scott

Toast.LENGTH_LONG is only a constant number of milliseconds.  You can
use any number of milliseconds if you like but there might be a
maximum.

Example:
t.setDuration();

Scott

On Jul 23, 10:31 pm, Mohamed Amir  wrote:
> Thank you for all those who replied.
>
> But Toast is the only UI component I could find that appears over the
> incoming call dialog.  I need to show some information when an
> incoming call arrives.  This is why I am using the Toast.
>
> On Jul 24, 1:34 am, Dianne Hackborn  wrote:
>
> > It sounds like you are abusing toasts.  How about just showing your own
> > dialog that is set up to not get focus or be touchable?  You can use this
> > background to make it look like a toast:
>
> >http://developer.android.com/reference/android/R.drawable.html#toast_...
>
> > And this animation style for the same fade effect:
>
> >http://developer.android.com/reference/android/R.style.html#Animation...
>
> > On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir wrote:
>
> > > Is there a way to make the Toast last for longer time?
>
> > > I have tried this code
>
> > >                        Toast t = new Toast(this);
> > >                        View v = View.inflate(this, R.toast_layout, null);
> > >                        t.setView(v);
> > >                        t.setDuration(Toast.LENGTH_LONG);
> > >                        t.show();
> > >                        t.show();
> > >                        t.show();
>
> > > By calling show() method more than once, I hoped this would give a
> > > similar effect to lasting for longer time with some flickering, but I
> > > didn't see any difference.
> > > Is there some limit to the number of times that show() method can be
> > > called on the same Toast? e.g. just once per toast instance and
> > > further calling has no effect?
>
> > > Any ideas to increase that duration?
>
> > > Thank you.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
>
>

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



[android-developers] monkeyrunner

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

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

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

print "Hello World!"

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

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

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

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

from com.android.monkeyrunner import MonkeyRunner

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

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

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

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

#! /home//monkeyrunner

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

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

Anyone have any thoughts on this?

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


[android-developers] Android Market user ratings disappeared on July 29, 2011

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

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

It seems most of my user comments are intact.

Is anyone else having a similar problem?

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


[android-developers] Android API for retrieving list of apps in Market

2008-12-15 Thread Scott

I'm looking for a way to get a list of all the apps available in the
Android Market.  I'm guessing the market interfaces with some sort of
database that stores the information, so I'm hoping there's some sort
of API I could reference to retrieve this information.  This is so I
can work on a web market for Android for users to view outside their
handset.

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



[android-developers] Re: Problem accessing Google Weather API

2009-02-17 Thread Scott

You may find that if you have the code that goes and grabs the code
identify itself as the following user agent: "Mozilla/5.0" the code
will once again work.

I had this problem with a perl weather fetching script and solved it
by having my http fetch software "LWP::UserAgent" identify as "Mozilla/
5.0". This solution may die though if it is applied too much.

Cheers,

-Scott

On Feb 16, 2:32 am, "pillsoon.p...@gmail.com"
 wrote:
> I have same problem, too. It was working fine, but suddenly only
> saying FileNotFoundException.
>
> I haven't found any question or posting about this problem for 4 days.
> So, I guess it's only for some country.
>
> I guess you are in Japan, right? I'm in Korea. That's why I'm thinking
> like that.
>
> I think if this problem is common for all, there should be some
> complaints.
>
> I'm trying to fix this. If you find a solution first, please share it.
>
> Thanks and good luck!
>
> On 2월12일, 오후10시38분, Rockingteam  wrote:
>
> > Hi,
>
> > I have an application that uses GoogleWeatherAPI.
> > The application was working fine till yesterday night and today
> > morning all of sudden am getting an exception that says :
>
> >http://403Unauthorizedaccess
> > java.io.FileNotFoundException:http://www.google.com/ig/api?weather=Tokyo,Japan
>
> > Is there any change in the service provided by Google.
>
> > Looking forward for help on this.
>
> > Thanks in advance.

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



[android-developers] Common Libraries

2010-04-14 Thread scott
I am currently moving from Xcode and iPhone development to Android
with Eclipse. I want to have a shared code project so that I can store
all the code to be shared across apps in one common library. However
it would appear that the only android project available is for
applications and not for code libs how can i 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Common Libraries

2010-04-15 Thread scott


On Apr 15, 9:35 am, Mario Zechner  wrote:
> Assuming your lib is written in Java you simply create a normal Java
> application in Eclipse and let it have a dependency to the lowest
> Android platform jar you want to support. In your Android project you
> can then either directly reference thecommonlibrary project or
> generate a jar from the library project which you make the Android
> project dependent on. The Android platform jar can be found in the SDK
> folder.

I am new to Eclipse how do i do this?

>
> If your lib is written in C/C++ (which i actually assume as you said
> you move over from the IPhone) then you can again create a seperate
> project in Eclipse, put a jni/ folder in it that houses all your C/C++
> code along with an Android.mk for the build rules. There's ways to
> directly compile in Eclipse, i suggest googling for "cdt android ndk".
> The problem will be that you will need to copy the shared library over
> to your Android project each time it is rebuild. This can be automated
> to some extend but will probably result in hardcoding a path to write
> the shared library file to in some script, not the nicest solution.
> Getting the ADT plugin to copy over the libs/armeabi folder from a
> referenced project to an Android project does not work yet which is a
> bit of a bummer.
>
> hth
>
> On 14 Apr., 20:38, scott  wrote:
>
>
>
> > I am currently moving from Xcode and iPhone development to Android
> > with Eclipse. I want to have a shared code project so that I can store
> > all the code to be shared across apps in onecommonlibrary. However
> > it would appear that the only android project available is for
> > applications and not for code libs how can i 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] Re: Common Libraries

2010-04-15 Thread scott
Thank you for your help I worked out how to link the files.

On 15 Apr, 09:35, Mario Zechner  wrote:
> Assuming your lib is written in Java you simply create a normal Java
> application in Eclipse and let it have a dependency to the lowest
> Android platform jar you want to support. In your Android project you
> can then either directly reference the common library project or
> generate a jar from the library project which you make the Android
> project dependent on. The Android platform jar can be found in the SDK
> folder.
>
> If your lib is written in C/C++ (which i actually assume as you said
> you move over from the IPhone) then you can again create a seperate
> project in Eclipse, put a jni/ folder in it that houses all your C/C++
> code along with an Android.mk for the build rules. There's ways to
> directly compile in Eclipse, i suggest googling for "cdt android ndk".
> The problem will be that you will need to copy the shared library over
> to your Android project each time it is rebuild. This can be automated
> to some extend but will probably result in hardcoding a path to write
> the shared library file to in some script, not the nicest solution.
> Getting the ADT plugin to copy over the libs/armeabi folder from a
> referenced project to an Android project does not work yet which is a
> bit of a bummer.
>
> hth
>
> On 14 Apr., 20:38, scott  wrote:
>
>
>
> > I am currently moving from Xcode and iPhone development to Android
> > with Eclipse. I want to have a shared code project so that I can store
> > all the code to be shared across apps in one common library. However
> > it would appear that the only android project available is for
> > applications and not for code libs how can i 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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Itemized Overlays...Not drawing a collection but refreshing????

2010-04-22 Thread Scott
I'm trying to write code that draws accuracy circles around a gps
location based on a time param. I have no problem setting up the GPS,
or of calculating how to draw the circles...What's been killing me is
that the Overlays always overwrite one another...So I can never have
more than one circle...I've looked at all the examples and tutorials
online but they seem to be obsessed with putting in icons or with
Drawing from some database or array...If I understood correctly I
should be able to do itemizedoverlays and just draw as i go without
having to track each readout in an arrayHELP WHAT AM I DOING
WRONG? PS This code also crashes if I touch the map now.

MY CLASS
public class HelloItemizedOverlay extends ItemizedOverlay {
private List items;
private Drawable marker;
public HelloItemizedOverlay() {
super(null);
items = new ArrayList();
}
@Override
protected OverlayItem createItem(int index) {
return (OverlayItem)items.get(index);
}
@Override
public int size() {
return items.size();
}
@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow)
{
super.draw(canvas, mapView, shadow);
if (TempLat > 0) {
Point center = new Point();
Point left = new Point();
Point screenPts = new Point();
Projection projection = mapView.getProjection();
float[] result = new float[1];
Location.distanceBetween(TempLat, TempLon, TempLat,
TempLon +1, result);
float longitudeLineDistance = result[0];
GeoPoint leftGeo = new GeoPoint((int)(TempLat*1e6),(int)
((TempLon-TempAccy/longitudeLineDistance)*1e6));
projection.toPixels(leftGeo, left);
projection.toPixels(p, center);
int radius = center.x - left.x;
accuracyPaint.setAntiAlias(true);
accuracyPaint.setStrokeWidth(2.0f);
accuracyPaint.setColor(0xffff);
accuracyPaint.setStyle(Style.STROKE);
canvas.drawCircle(center.x, center.y, radius,
accuracyPaint);
accuracyPaint.setColor(0x18ff);
accuracyPaint.setStyle(Style.FILL);
canvas.drawCircle(center.x, center.y, radius,
accuracyPaint);
}
}
public void addItem(OverlayItem item) {
items.add(item);
populate();
}
}

MY ONCREATE INITIALIZATION CALL

super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mapView = (MapView) findViewById(R.id.myGMap);
LinearLayout zoomLayout = (LinearLayout)findViewById(R.id.zoom);
View zoomView = mapView.getZoomControls();
mapView.setSatellite(true);
zoomLayout.addView(zoomView,
new LinearLayout.LayoutParams(
LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
mapView.displayZoomControls(true);
mc = mapView.getController();
mc.setZoom(1;
accuracyPaint = new Paint();
overlay = new HelloItemizedOverlay();
..

MY ONLOCATIONCHANGED EVENT

public void onLocationChanged(Location location) {
MSGSTXT.setText("Location Found...");
TempTime = location.getTime();
TempLat = location.getLatitude();
TempLon = location.getLongitude();
TempAccy = location.getAccuracy();
TempSpeed = location.getSpeed();
TempBear = location.getBearing();
TempAlt = location.getAltitude();
p = new GeoPoint(
(int) (TempLat * 1E6),
(int) (TempLon * 1E6));
mc.animateTo(p);
mapView.getOverlays().add(overlay);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Itemized Overlays...Not drawing a collection but refreshing????

2010-04-23 Thread Scott
Isn't Itemized Overlay supposed to stack drawn objects...This is
called everytime the locationchanged event triggers...So It should be
drawing multiple circles..Instead i only ever see the newest
one...They do not accumulate like i wanted.

Sorry if a canned answer for the PS part felt in order..I just threw
that in because I wasn't sure if it was a side effect or a seperate
issue..If I got the first part solved I was going to tackle that
next...I am a Java Noob...But I'm not lazy.
I'm an apt programmer in several different languages, but this
itemizedOverlay thing is kicking my but.

On Apr 22, 9:27 pm, "~ TreKing"  wrote:
> On Thu, Apr 22, 2010 at 9:49 AM, Scott  wrote:
> > What's been killing me is that the Overlays always overwrite one
> > another...So I can never have more than one circle...HELP WHAT AM I
> > DOING WRONG?
>
> Besides the fact that you're only drawing one circle?
>
> > PS This code also crashes if I touch the map now.
>
> OK. And what do you want us to do about that? Perhaps looking at the
> debugger and the call stack so see WHERE the app crashes will be of
> assistance?
>
> ---­--
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Itemized Overlays...Not drawing a collection but refreshing????

2010-04-23 Thread Scott
I'd be happy to send you the Code if I count on you not Hurting my
feelings after you see the carnage I'm doing to java whilst learning
the language.


On Apr 22, 9:27 pm, "~ TreKing"  wrote:
> On Thu, Apr 22, 2010 at 9:49 AM, Scott  wrote:
> > What's been killing me is that the Overlays always overwrite one
> > another...So I can never have more than one circle...HELP WHAT AM I
> > DOING WRONG?
>
> Besides the fact that you're only drawing one circle?
>
> > PS This code also crashes if I touch the map now.
>
> OK. And what do you want us to do about that? Perhaps looking at the
> debugger and the call stack so see WHERE the app crashes will be of
> assistance?
>
> ---­--
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Itemized Overlays...Not drawing a collection but refreshing????

2010-04-23 Thread Scott
Thank You that helped immensly (I THINK) 8^)...I think i understand.
If you don't mind i'm going to word this another way and see if I
REALLY UNDERSTAND.

If i were to send a drawable object..i.e. PNG icon like all the
examples the Overlay will accumulate them (add item)...However...My
Draw is done on a clean Slate ontop of the overlay...Basically the
overlay is cleaned out and refreshed with each item(icon) added So the
draw is cleaned on each additem...So If that is correct or close to
correct? Then am I to understand that itemized Overlays are just for
icons, or can i move my Draw to another location in this class, Like
before the populate to make the circles accumulate and just send a
darn icon into additem whether I want an icon or not?

IN OTHER WORDS Can i collect anything other than icons in an itemized
overlay? Unfortunately I need to do this project to solve a work
related problem...otherwise i'd have tackled something much different.

PS everything else in Java has been a breeze except understanding some
of the class @OVERRIDE stuff...Besides for it being work related...I
Can't help taking on learning projects like this..Thanks for the
advice and help thus far.

PSS i didn't expect you to go line by line through my code..I've been
in my share of forums and user groups..trust me I understand...I was
half tempted to break protocol allot earlier when i saw you on allot
of pages re: itemized Overlays, but couldn't do it.

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


[android-developers] Re: Itemized Overlays...Not drawing a collection but refreshing????

2010-04-23 Thread Scott
That was AWESOME and really helps.
So it leaves me only with one last Question...How do I do a drawcircle
on the Overlay instead of Sending an icon?
Every example I see involves placing an image marker..I don't see any
examples for drawing
Do you have a snippet of how you draw into an itemizedoverlay so that
it doesn't clear as my method does?


On Apr 23, 1:22 pm, "~ TreKing"  wrote:
> On Fri, Apr 23, 2010 at 11:18 AM, Scott  wrote:
> > If you don't mind i'm going to word this another way and see if I REALLY
> > UNDERSTAND.
>
> Let's do it.
>
> > If i were to send a drawable object..i.e. PNG icon like all the examples
> > the Overlay will accumulate them (add item)...
>
> The OverlayItem you send in addItem does NOT HAVE TO be an image, or any
> drawable item for that matter, though it usually is. It's just something
> with a position that can be represented on the map.
>
> > However...My Draw is done on a clean Slate ontop of the overlay...Basically
> > the overlay is cleaned out and refreshed with each item(icon) added
>
> Yes.
>
> > So the draw is cleaned on each additem...So If that is correct or close
> > to correct?
>
> Sort of. addItem just adds another OverlayItem to the collection of items.
> Calling draw, by default, simply draws all the items that are in the
> collection. When you add a new item it does invalidate the list causing a
> redraw.
>
> > Then am I to understand that itemized Overlays are just for icons,
>
> It's just a collection of things to place on a map, which are usually
> represented by icons. They can be whatever you want though.
>
> > or can i move my Draw to another location in this class,
>
> You don't want to be calling draw() on your own. This is called as necessary
> when the map view needs to be drawn (when you scroll, zoom, add new items,
> etc).
>
> > Like before the populate to make the circles accumulate and just send
> > a darn icon into additem whether I want an icon or not?
>
> I'm not sure what you said here.
>
> > IN OTHER WORDS Can i collect anything other than icons in an
> > itemized overlay?
>
> Yes, you can collect anything you want, as long as it's an OverlayItem. You
> can define your own OverlayItem class that has more properties attached to
> it besides the image and location. If you look at my website and
> screenshots, you'll see that I use the map to show bus and stop icons. The
> bus's in particular have a custom draw function that work similarly to what
> you're doing.
>
> I call super.draw() to draw the icon, then I iterate over the collection of
> items (each of which is a custom BusOverlayItem that has extra information)
> to do custom drawing to display a bus number and another image of an arrow
> that is oriented to show the bus direction.
>
> Draw is called ONCE for the one ItemizedOverlay (which represents the
> collection of buses) and I, in turn, handle drawing each individual bus.
>
> Make sense?
>
> ItemizedOverlay can get confusing because it's one Overlay object as far as
> the map is concerned, but is actually a collection of similar items treated
> uniformly. Just remember that when you're doing custom drawing on it you
> have to draw each individual item in the collection as necessary.
>
> ---­--
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Sending scores to the internet

2010-05-15 Thread Scott
On May 15, 8:45 pm, Simone  wrote:
> Is it possible for me to add this feature in my game? I just need a
> little storage space somewhere on the internet to put the names and
> scores of the best players.
> Anyone?

http://appengine.google.com/

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

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

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

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

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

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


[android-developers] Lists in tabs

2010-07-12 Thread Scott
Hey guys, I'm new to android development but I have run through
various tutorials and am slowly grasping how to develop apps.  I
modified the Tab Layout tutorial on the android dev website to fit my
needs, and now I need to add a list on to each tab I have created.
there are a total of seven tabs and each will have it's on specific
list.  If someone could point me in the right direction to adding a
list per tab that would be great.  Each tab has it's own class file,
would I add the list items as strings in the strings.xml then add code
to each tab's class file in order to populate the tab?  This was the
only thing I have found so far, but it hasn't worked.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Any chance to deactivate the lock pattern in Froyo from code?

2010-08-10 Thread scott
The "No Lock" app works for me on Froyo.
Not sure what I am missing in this discussion.
http://www.appbrain.com/app/org.jraf.android.nolock

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

2011-01-14 Thread Scott

> You may have seen the numerous developer blogs posts on preparing for larger
> screens and such. :)

I've thought about it and come up with two ways to better allow apps
to use that bigger real-estate.
A) Add a new Resource size (current: hdpi, mdpi, ldpi) such as an
'xhdpi' or 'tdpi' tag for tablet screen sizes (most likely option,
IMO, based on the Gingerbread changes to the status bar icons with the
addition of the -v9 suffix for those directories)
i) Very simple, and natural next step.
B) Allow nested activities to allow developers to quickly transition
their apps from smart-phone based to tablet-based. Then people could
easily transition apps to Tablet form factors.
i) Example: Have a listView of emails on the left that sends
intents to the right half of the screen to display those emails.
ii) Although it doesn't flow the regular way android applications
are architectured, I think it would quickly allow developers to make
their apps awesome for tablets without putting in a lot of man hours
to change their apps.
iii) Could be done by adding an extra piece of information to the
intent,  Much like a web page with multiple frames works.

Those were my guesses, but based on Dianne's answer, I think it's safe
to assume that A will come. All of the current blog posts encourage
developers to make use of the resource architecture that's been
implemented in Android.
screen geometry post: 
http://android-developers.blogspot.com/2010/09/screen-geometry-fun.html
Example blog post on uses-features in tablets and Google TV:
http://android-developers.blogspot.com/2010/10/five-steps-to-future-hardware-happiness.html

This is just my opinion, looking at the situation and such.

Hope this helps people also speculating about what Honeycomb will
bring.

Thanks for reading,
Scott MacWatters

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-18 Thread Scott
A Bluetooth enabled pitot-static sensor would work if the difference
between ground speed and air speed is insignificant.  :-)

http://bags.oxaero.com/PCA_eGyro.php


On Jan 12, 7:52 pm, metal mikey  wrote:
> You could use the phone's camera to take video of the car's
> speedometer and use image analysis to determine what the speedometer
> indicates the speed as. LOL :D

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


[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-19 Thread Scott
At first, yes.

The hardware requirement may be overkill but it depends on the
situation.  There are Bluetooth enabled hardware and apps for
monitoring engine performance in cars.  I started flying single-engine
airplanes and after some searching I found the Bluetooth enabled pitot-
static system, which is another option for this discussion.

On Jan 18, 7:30 pm, DanH  wrote:
> Now you're just being silly.
>
> On Jan 15, 7:30 am, Scott  wrote:
>
>
>
>
>
>
>
> > A Bluetooth enabled pitot-static sensor would work if the difference
> > between ground speed and air speed is insignificant.  :-)
>
> >http://bags.oxaero.com/PCA_eGyro.php
>
> > On Jan 12, 7:52 pm, metal mikey  wrote:
>
> > > You could use the phone's camera to take video of the car's
> > > speedometer and use image analysis to determine what the speedometer
> > > indicates the speed as. LOL :D

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


[android-developers] Why 2 less Zoom levels in API than in Google Maps App in my Area

2010-05-21 Thread Scott
I noticed while programming the Maps API, that in my Area my Map has
two less zoom levels than the Google Maps App has?? I also noticed
that the style of the map is different?

Is this normal???

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


[android-developers] Multiple Overlays Want to Redraw only one or attach my own Canvas to Mapview and control when it refreshes

2010-05-21 Thread Scott
I have succesfully created a tiled map Overlay that grabs tiles from a
server and displays them on my map after it caches them on the SD
card. My program is going to have two modes tracking and not
tracking...This Tile Overlay I want to refresh when the User is in
tracking Mode, or in either mode when the user Zooms or pans (this is
working fine!!!)...
I want to create a second Overlay or utilize the pre mentioned
itemized overlay to show to Other objects
An Arrow at your current location and a compass in the corner.
The Arrow is to show your location and Point towards your bearing when
Your speed is > 1, and is to show your location and your Orientation
from the sensor when you are not moving. If you are still in Tracking
mode it will continually center the map around you...if you are in Non-
Tracking mode it will let you wander off the map...but will still show
your orientation and or if speed > 1 bearing if still in
view...Basically a look around mode.

My problem is that in continually refreshing the arrow it also forces
all the tiles to refresh Even though they are stored on the SD card
this is ridiculous...making any calls to the ItemizedOverlay or any
Scroll 0,0 or AnimateTo call Automatically wipes out the canvas and
requires a redraw of all my tiles, Also redrawing the Arrow and
Compass from the sensor also has the same effect...which means I'm
constantly redrawing tiles wether i need to or not.

Is there away to apply another canvas ontop of my map view? that won't
refresh unless i tell it to? Iv'e a couple ways.


Code: Select all
paint.setColor(0x6600);
paint.setStrokeWidth(3);
paint.setStyle(Style.FILL_AND_STROKE);
Bitmap bitmapr = Bitmap.createBitmap(mapView.getWidth()/2,
mapView.getHeight()/2, Bitmap.Config.ARGB_);
Canvas GARB = new Canvas(bitmapr);
GARB.drawCircle(30, 30, 30, paint);
GARB.drawLine(0, 0, mapView.getWidth()/2, mapView.getHeight()/2,
paint);
  //TRIED THESE NO LUCK
 findViewById(R.id.myGMap).draw(GARB);
 findViewById(R.id.MapLayout).draw(GARB);
 mapView.draw(GARB);
 itemizedOverlay.draw(GARB, mapView, false);
Come to think of it I'd rather have control of Two canvasas ontop of
the map and Just use the Overlay draw method to send information to my
own classes that determine if a redraw of my canvas's are necessary.
But none of the above methods work.

I'm also interested in taking it to the next level when i get this
figured out.
http://www.anddev.org/viewtopic.php?p=30997
To orient the map based on bearing(speed>1)/Orientation(speed <1)...
...and to allow user to zoom further in than the API allows.

PS Why does The Google Maps App have to more zoom levels on the map
(no Sat) than the API Mapcontrol Allows in my area?flipper44
Freshman


Posts: 3
Joined: Thu Apr 22, 2010 3:03 pm
Location: Appleton, WI
Private message

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Why 2 less Zoom levels in API than in Google Maps App in my Area

2010-05-21 Thread Scott
I have no view turned on SAT is Off, terrain is off, everything is off
in Both...Try it in your area..I get 20 on Maps Application 18 in my
API app???

On May 21, 1:04 pm, mike  wrote:
> On 05/21/2010 11:01 AM, Scott wrote:> I noticed while programming the Maps 
> API, that in my Area my Map has
> > two less zoom levels than the Google Maps App has?? I also noticed
> > that the style of the map is different?
>
> > Is this normal???
>
> Is this possibly a difference between satellite and terrain
> views? Terrain views typically have fewer zoom levels.
>
> Mike
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: In Gps app, Reduce the Distance & Time to 5m/10min , 10m/25sec.

2010-05-21 Thread Scott
Are you using milliseconds instead of minutes...???

On May 21, 9:59 am, subrat kumar panda 
wrote:
> hello all,
> Is it possible to reduce the distance & time to 5m/10min , 10m/25sec.
> where i test my app with min distance & time
> 20m/1min,50m/1min,100m/1min,300m/2min .
> i made some changes to my app for  these data: 5m/10min , 10m/25sec, &
> test my app.but didn't work.
>
> if anybody have knowledge please help me.
>
> Thanks in advance,
>
> Best Regards
> Subrat kumar panda.
> India
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: info incorrect on http://developer.android.com WHICH COULD PREVENT ECLIPSE FROM RECOGNIZING YOUR DEVICE

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

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

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


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

2011-04-13 Thread Scott
Hi

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

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

Thanks

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


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

2011-05-02 Thread Scott
Hi folks,

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

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

And kaboom (below).

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

Any suggestions would be greatly appreciated.

Scott

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

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

2011-05-02 Thread Scott
Hi folks,

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

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

And kaboom (below).

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

Scott

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

[android-developers] Not able to receive UDP Data

2011-03-17 Thread Scott
Hi

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

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

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

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

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

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


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

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


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

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


[android-developers] Setting maxWeight on a TextView

2011-03-28 Thread scott
Hi,

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

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

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

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

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

Thanks!
Scott



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


[android-developers] Superscripted Keys on Keyboard

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

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

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

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

Scott

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


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

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

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

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

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

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

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

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

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

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


[android-developers] How do you copy a SQLite database from the device to your PC

2010-03-22 Thread scott gellock
Hello,

I have a app in development.  It write data to a SQLite database.  I've
tested the app on my NexusOne over the weekend and have a bunch of data now
in the database.  I'd like to copy the database off of the phone and onto my
dev machine.

I've tried to use adb pull  
but it gives me a Permission Denied error.

Regards - Scott

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread David Scott
I think it's safe to assume that the figure of 2-4 weeks realistically
only applied to the US.
I guess outside of the US we will be waiting longer, although finger
crossed!


On Mar 29, 1:03 pm, ratson  wrote:
> Hungary, still waiting ;) i guess EU shall receive N1s in the next
> days...
>
> On márc. 29, 11:25, Paul  wrote:
>
>
>
> > Germany, still waiting.
> > ... and growing nervous :)- 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-31 Thread David Scott
It seems no one has got anything outside of the US / Canada, so it's
not a problem with just a few people, it's everyone.

I'm in the UK and 2-4 weeks would be Saturday for me. If they are
being sent from the US you have to expect them to take longer. If they
are coming from the EU though, it shouldn't take much longer. I'm
pretty certain the 2-4 weeks estimate only applied to the US though,
as per most things...

I doubt Google will have any information so it's just playing the
waiting game.

On Mar 31, 12:36 pm, Richard  wrote:
> Okay, thanks.
>
> I guess I'll email them when the time comes around...
>
> I know we shouldn't really complain - we are getting these phones for
> free. But if they say 2-4 weeks and it's not there, I feel like maybe
> the dispatchers are being a little careless - maybe even lost some
> orders.
>
> Also Thomas: I get two emails everytime I post on this group, one from
> dreamhost.com and another from naver.com - in (what I guess is)
> Japanese. Very strange.
>
> On Mar 31, 12:28 pm, Thomas Riley  wrote:
>
>
>
> > I quoted the 4 week contact thing from the original FAQ
>
> >http://sites.google.com/site/developermarketandroidgiveaway/faq
>
> > And glad i'm not the only one getting these annoying emails! It's
> > extremely strange...
>
> > On Mar 31, 12:24 pm, Richard  wrote:
>
> > > That happens to me Thomas - when I post anything on this group.
>
> > > I'm in the UK, and I've just checked with FedEx. They have nothing
> > > dispatched to me in the last 2 weeks.
> > > Can anyone confirm that it's FedEx in Europe too?
>
> > > Where does it say in your confirmation email to notify them if it
> > > hasn't arrived within 4 weeks?
> > > Mine simply says:
> > > "If you need to make any changes to your information above, please
> > > contact us at android-market-seed...@google.com as soon as possible.
> > > Otherwise, you should receive your phone in 2-4 weeks!"
>
> > > That 4 weeks expires on Friday, and considering FedEx have nothing
> > > dispatched yet - that's unlikely to happen.
>
> > > Thanks,
> > > Richard
>
> > > On Mar 31, 12:10 pm, Thomas Riley  wrote:
>
> > > > What's also annoying me if everytime I post on this thread I get this
> > > > email!
>
> > > > "
> > > > We're sorry.. your email was unable to be processed by our automatic
> > > > support system, and so is being returned to you.
>
> > > > We could not find your email address in our customer database and so
> > > > couldn't accept your email. Due to the HUGE volume of spam we receive
> > > > at this address, we've been forced to implement this new policy.
>
> > > > Therefore, please just re-submit your message at:
>
> > > >      http://www.dreamhost.com/contact.cgi
>
> > > > All messages submitted through that form are guaranteed to be
> > > > received,
> > > > even if you aren't currently a customer!
>
> > > > Our apologies for the inconvenience,
> > > > --
> > > > The Happy DreamHost Support Team!
> > > > "
>
> > > > Argh, whats going on!
>
> > > > On Mar 31, 12:07 pm, Thomas Riley  wrote:
>
> > > > > Serious though, the FAQ says "Please allow 2-4 weeks from the date of
> > > > > submission of the form for delivery of the phone. If you do not
> > > > > receive the phone within that timeframe, please send an email to
> > > > > android-market-seed...@google.com."
>
> > > > > Do we just need to wait, or is it worth contacting?
>
> > > > > I'm not really bothered about waiting, but since FedEx have no pending
> > > > > deliveries in their system for me I makes me thinks a mistake has been
> > > > > made at Brightpoints/Brightstars end!
>
> > > > > On Mar 31, 10:30 am, David Horn  wrote:
>
> > > > > > Do as I say, not as I do etc. ;-)
>
> > > > > > On Mar 30, 11:57 pm, Thomas Riley  wrote:
>
> > > > > > > Yes David I "would suggest that you wait until after the deadline
> > > > > > > before
> > > > > > > whining- uh, asking where it is."
>
> > > > > > > ;-)
>
> > > > > > > On Mar 30, 10:53 pm, David Horn  wrote:
>
> > > > > > > > It looks to me like the system sent out US Nexus's first, then 
> > > > > > > > US
> > > > > > > > Droids, and hopefully us EU yokels will get a Nexus later this 
> > > > > > > > week.
>
> > > > > > > > I say hopefully, as I launched into a bit of an attack on 
> > > > > > > > someone
> > > > > > > > whose phone hadn't turned up with 2 days of the deadline to 
> > > > > > > > run; and
> > > > > > > > now I'm in that situation with a few days off work flinching 
> > > > > > > > every
> > > > > > > > time a van goes past the house and wishing Google would hurry 
> > > > > > > > up.  Has
> > > > > > > > anyone tried phoning Brightpoint to ask what the plan is?
>
> > > > > > > > Dave.
>
> > > > > > > > On Mar 30, 10:47 pm, Breezy  wrote:
>
> > > > > > > > > Received my Droid in Alabama today.- 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@g

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread David Scott
A triangle usually represents the fact that you are roaming. In this
case it seems to be because it has connected to a network that is not
the default.

On Apr 1, 4:58 pm, android app  wrote:
> Thanks.  Mine works now.
>
> There was no 3G icon.  I first tried the airplane mode and turned off
> wifi.  After turning off airplane mode, there was a warning sign
> saying "lost data connectivity ...leaving home network".  Then I
> enabled data roaming. 3G is working now.  :-)
>
> Just one more questions.  There is always an empty triangle icon (or
> symbol "Delta") in the status bar.  Does your phone have it? What does
> it mean?
>
> On Apr 1, 10:58 am, timedilation  wrote:
>
>
>
> > I didn't do anything specific on the device. Just turned on wi-fi.
> > Then some time later I saw the 3G icon displayed. After that I turned
> > off wi-fi and the 3G data plan tookover - maps, market, youtube etc...
>
> > On Apr 1, 10:22 am, android app  wrote:
>
> > > Can you use 3G for web?
>
> > > I haven't figure out how?
>
> > > On Apr 1, 8:57 am, timedilation  wrote:
>
> > > > Somehow I didn't have to do any activation of my Droid. Not sure if
> > > > this is done automatically as soon as you connect to a wi-fi. But I am
> > > > able to see my phone number and make calls too. I dont have a verizon
> > > > plan (I am on AT&T). Will this service simply stop working after 30
> > > > days?
>
> > > > On Mar 31, 9:48 am, timedilation  wrote:
>
> > > > > Got DROID in Boca Raton FL this morning. Anyone willing to swap their
> > > > > N1?
> > > > > My pkg was delivered by FedEx from BrightPoint
>
> > > > > On Mar 31, 8:49 am, Warren  wrote:
>
> > > > > > Got a Droid from FedEx near Des Moines Iowa today.
>
> > > > > > Thanks Google.
>
> > > > > > Curiously, when I called FedEx last week trying to track the package
> > > > > > (as many of us did) they said they didn't have a package for me.
>
> > > > > > On Mar 30, 5:14 pm, Andrei  wrote:
>
> > > > > > > got Droid in FL today
> > > > > > > Thank you Google
>
> > > > > > > On Mar 30, 5:47 pm, Breezy  wrote:
>
> > > > > > > > Received my Droid in Alabama today.- 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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-developers] Selling apps from Canada in the Market?

2010-04-06 Thread Scott Elcomb
On Mon, Apr 5, 2010 at 10:06 AM, Brill Pappin  wrote:
> Does anyone have any idea when Google plans to allow us Canadian
> developers to actually create accounts for selling apps in the Market?
>
> I am completely flabbergasted that I can't set that up. Major FAIL.

Hey Brill,

Long time no see!  I have to completely agree with you on the FAIL --
this has been outstanding for quite some time.

I was under the impression that once we were able to purchase apps
from the market we'd also be able to sell; I paid my fee right away
and became a registered Android developer...  We can offer free apps
but still can't sell.

I suppose it was an error on my part making that particular connection
between market and checkout, but I'm holding out and hoping this will
be resolved in the near term.  Lord knows there is a large number of
developers in Canada just waiting to make a splash.  :-)

-- 
  Scott Elcomb
  http://www.psema4.com/   @psema4

  Member of the Pirate Party of Canada
  http://www.pirateparty.ca/

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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Re: Need an invitation to google Wave?

2009-11-09 Thread Scott Diener
I would like an invitation to google wave

sdiene...@gmail.com

On Nov 6, 7:11 pm, Braders  wrote:
> Hi,
>
> I would love a Google Wave invite, my email is
> seobrad...@googlemail.com I would be so gratefull if you could
> dominate me.
>
> Hope you dont mind the post, thanks for your time.
>
> Simon Bradley
>
> On Nov 7, 12:50 am, Lorys Pognon  wrote:
>
>
>
> > Hi I would like to have one
>
> > On Sun, Nov 1, 2009 at 7:20 AM, Auguste Lunang wrote:
>
> > > Hi,
> > > i have some google wave. invits to share. tell me if u want ..
> > > thx
>
> > >  --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@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


Re: [android-developers] Permission to use bindAppWidgetId()

2009-11-09 Thread scott zhi
You may change the Launcher's certificate from share to system. But that's
not safe. You can also use the setting to bind.

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

[android-developers] Will the droid with andoid 2.0 get updates that give us more home screens>?

2009-11-09 Thread Scott Diener
I love my droid.

But it seems unfair that the best android device has the least amount
of home screens.

Three isnt nearly enough.

The HTC eris has seven.

The hero has 10

What is up with this.

Why are we getting punished.

Please let me know if there are updates that will give us more.

even iphone has 11

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

2009-11-09 Thread scott zhi
You can modify the Launcher. Add pictures and modify the List(or map)
defined in java.

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

[android-developers] Marketplace restrictions on app with no launcher?

2009-11-20 Thread Scott Liu
Hi all,

I couldn't find reference to it in the Google documentation, but are
there any restrictions on creating
an application with no launcher and selling it on Android Marketplace?

Thanks,
Scott

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


[android-developers] Tapping activity after startActivityForResult

2009-11-23 Thread Michael Scott
Hi,

I have two buttons in an activity/view A0, b1 and b2 that respectively
starts (for result) the activities A1 and A2. After tapping/clicking
b1 I quickly tap b2 aswell. The result will be that both A1 and A2 are
launched. Is there any obvious way to not have this behaviour, i.e. to
"lock" A0? I am thinking of overriding dispatchTouchEvent to consume
everything after the call to startActivityForResult, but it seems a
bit much...

Best regards,
Michael

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


[android-developers] Re: Updates to the Android SDK

2009-12-06 Thread George Scott
My development system:  Windows 7 64-bit, 4GB RAM, 2.1 Dual Core
notebook

Eclipse development issue:

I've updated the needed bits for Android development with Eclipse for
Java.  However, I do not choose to use the emulator, I prefer testing
on my Droid mobile phone.

When I try to "Run" my application in the Eclipse IDE it shows an
error of "ERROR: Application requires API version 6. Device API
version is 5 (Android 2.0)"

Also in the Android Device Chooser dialog there is a red "X" in the
Target column.

Is this something to do with the USB drivers?  If so, I've already
tried pointing the Device Manager applet to pickup any new drivers
from "C:\android-sdk-windows\usb_driver" on my system, where they
reside.

Further ideas are welcomed and would be most appreciated.  I'm a new
developer and am really looking forward to the possibilities with the
Android platform.

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


[android-developers] auto-repeat Buttons

2009-09-02 Thread Scott Powell

Just wanting to put some love out there, and refer to a blog post I
just added on the above, which -seems- to be missing as a standard UI
View. Enjoy:
http://blog.spleenware.com/2009/09/auto-repeat-buttons-in-android.html

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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-15 Thread Scott Powell

Depressing, indeed. I was naively hoping Australia would get on the
merchant list soon (ie. in the month) but doesn't look like Google
really care about the $$. In the scheme of things, it's only a tiny
drop in the ocean compared to their main earners.

On Sep 16, 2:38 am, karthikr  wrote:
> Guys I am losing my patience,
>
> All that we are asking is for google to give us an update.
>
> Its been so many months and its very much depressing.
>
> I am fed up of sending mails to tha android market support over all
> these days without even a single reply.
>
> Someone from google please please please reply to this, give us an
> update...so that we can atleast look at alternate ways.
>
> We have been waiting for a reply from you...and we still are..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Playing recorded sounds in Android 1.5

2009-05-03 Thread Scott Slaugh

Hi,

I have an application that I developed using the Android 1.1 SDK that
I am trying to port to Android 1.5.  In my application, I record a
sound through the microphone and then do various things with it,
including playing it back using a MediaPlayer object.  My code works
fine when I use the 1.1 target, but when I use a 1.5 target I get this
error when setting up the player:

Command PLAYER_SET_DATA_SOURCE completed with an error or info
PVMFErrNotSupported
error (1, -4)
Couldn't setup MediaPlayer
java.io.IOException: Prepare failed.: status=0x1
   at android.media.MediaPlayer.prepare(Native Method)
   at org.byu.chum.AudioUtils.AudioRecording.stopRecording
(AudioRecording.java:92)
   at org.byu.chum.SoundRecorder.Recorder$StopListener.onClick
(Recorder.java:198)
   ...

It seems like Android isn't liking the format of my media, but I don't
know why, since I just recorded that very format on the Android
device.  Here's the code that is throwing the error:

 player = new MediaPlayer();
 try {
 player.setDataSource(recordFile.toString());
 player.prepare();
 }
 catch (IOException e) {
 Log.e("playRecording", "Couldn't setup MediaPlayer", 
e);
 }

Has anyone seen this or does anybody have any ideas on what might be
causing this problem?

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: Playing recorded sounds in Android 1.5

2009-05-11 Thread Scott Slaugh

I'm just using the built in MediaRecorder and MediaPlayer clases, so,
no I'm not using alsa_sound.

However, thanks to some help I was able to discover that the problem
is being caused by the permissions set on the recorded file, which is
not world-readable in Android 1.5.  I was able to fix this by
inserting the following code:

//set player permissions
 String command = "chmod 666 " + recordFile.toString();
 try {
Runtime.getRuntime().exec(command);
} catch (IOException e1) {
Log.e("SetPermissions", "Couldn't set permissions", e1);
}

If I execute that before creating the MediaPlayer, my code works
fine.  But, does anyone know of a better way to set the permissions
correctly besides using the exec command?

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



[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-11 Thread Scott Slaugh

Nobody else uses the recording, but I do have several other functions
that use information that I can get from using a File object instead
of a FileDescriptor, such as file size.

On May 11, 3:16 pm, Marco Nelissen  wrote:
> Does anyone else besides you need to be able to play back the recording?
> If not, try opening the file yourself and then passing its FileDescriptor to
> setDataSource(), instead of specifying the path.
>
> On Mon, May 11, 2009 at 1:39 PM, Scott Slaugh  wrote:
>
> > I'm just using the built in MediaRecorder and MediaPlayer clases, so,
> > no I'm not using alsa_sound.
>
> > However, thanks to some help I was able to discover that the problem
> > is being caused by the permissions set on the recorded file, which is
> > not world-readable in Android 1.5.  I was able to fix this by
> > inserting the following code:
>
> > //set player permissions
> >  String command = "chmod 666 " + recordFile.toString();
> >  try {
> >        Runtime.getRuntime().exec(command);
> > } catch (IOException e1) {
> >        Log.e("SetPermissions", "Couldn't set permissions", e1);
> > }
>
> > If I execute that before creating the MediaPlayer, my code works
> > fine.  But, does anyone know of a better way to set the permissions
> > correctly besides using the exec command?
>
> > Scott
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh

Here's what I ended up doing when I get the file, which allows me to
continue using the file like I was, but also sets the permissions
correctly without using a shell command.

private File getAudioFile(String extension)
throws IOException {

String fileName = "recording" + extension;
FileOutputStream fos = context.openFileOutput(fileName,
Context.MODE_WORLD_READABLE|Context.MODE_WORLD_WRITEABLE);
fos.close();

return context.getFileStreamPath(fileName);
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Playing recorded sounds in Android 1.5

2009-05-13 Thread Scott Slaugh

It's not an issue right now, but I decided it would probably be wiser
to leave the file private in case it becomes an issue in the future,
and changed my code to use a file descriptor.

Thanks for your help!

On May 13, 9:20 am, Marco Nelissen  wrote:
> That allows any other application to read or overwrite your file. Is that
> what you want?
>
> On Wed, May 13, 2009 at 8:06 AM, Scott Slaugh  wrote:
>
> > Here's what I ended up doing when I get the file, which allows me to
> > continue using the file like I was, but also sets the permissions
> > correctly without using a shell command.
>
> > private File getAudioFile(String extension)
> >        throws IOException {
>
> >        String fileName = "recording" + extension;
> >        FileOutputStream fos = context.openFileOutput(fileName,
> > Context.MODE_WORLD_READABLE|Context.MODE_WORLD_WRITEABLE);
> >        fos.close();
>
> >                return context.getFileStreamPath(fileName);
> >     }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] RemoteViews setSelected

2010-01-28 Thread Michael Scott
Hi,

I am trying to do aRemoteViews.setBoolean(R.id.a_text_view,
"setSelected", true) on a text view in a homescreen widget to select
the view, but I only get the textview to display a text like "error
expanding view"(!). The log says:
android.widget.RemoteViews$ActionException: view:
android.widget.TextView can't use method with RemoteViews: setSelected
(boolean).

Ok, so I cannot use setSelected (through reflection) on the remote
text view(?). But I would still like to set it to selected to get the
maquee-scrolling going again (which worked with the initial view,
before the update of the text).

Any ideas?
Thanks!

/Michael

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


[android-developers] Re: RemoteViews setSelected

2010-01-29 Thread Michael Scott
Great! Thank you!
/Michael

On Jan 28, 4:19 pm, "Mark Murphy"  wrote:
> > I am trying to do aRemoteViews.setBoolean(R.id.a_text_view,
> > "setSelected", true) on a text view in a homescreen widget to select
> > the view, but I only get the textview to display a text like "error
> > expanding view"(!). The log says:
> > android.widget.RemoteViews$ActionException: view:
> > android.widget.TextView can't use method withRemoteViews: setSelected
> > (boolean).
>
> > Ok, so I cannot use setSelected (through reflection) on the remote
> > text view(?). But I would still like to set it to selected to get the
> > maquee-scrolling going again (which worked with the initial view,
> > before the update of the text).
>
> Re-inflate the view and update the whole thing, just as you did with the
> initial view.
>
> Unfortunately, lots of useful methods (e.g., setSelected()) are not
> annotated to be allowed for use viaRemoteViews.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html

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


[android-developers] TextView & StaticLayout

2010-02-01 Thread Michael Scott
Hi,

I'm trying to calculate whether a string will fit into a textview or
not, using a StaticLayout and the trimming the string to fit. But
cannot figure out what the actual width and height of the "printable"
textarea of the textview, how to subtract(?) padding, margins etc from
the height and width set in the layout. How is the textarea of a
textview defined?

/Michael

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


[android-developers] AppWidgets and permissions

2010-02-19 Thread Michael Scott
Hi,

I've developed an appWidget by inheriting AppWidgetProvider and adding
it to the manifest as a receiver with the appwidget-metatag. Works
fine.
Two questions though:

1. It seems that the only reason to add APPWIDGET_UPDATE to the
intentfilter of the receiver is to let the widgetpicker recognize it
as an appwidget? The intents (update/enable/disable) it received no
matter if they are included in the intentfilter or not. How come?

2. When adding a permission to the receiver to disable spoofed
intents, I actually expected the APPWIDGET_XXX intents not to be
received since they are(?) sent from a sender without the permission.
Not so, they arrived just as before. How is this possible? Do these
intents get some special treatment by the system?

/Michael

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


Re: [android-developers] Re: Serious android app problem in Canada

2010-02-22 Thread Scott Elcomb
On Mon, Feb 15, 2010 at 11:26 PM, markusn82  wrote:
> I'm in the exact same boat as you Ian. I don't know why Google hasn't
> at least given us a timeline on when Canadians will be able to sell
> apps. For all we know, this will never happen. C'mon Google.. Give us
> at least some answer to keep us devoted to the platform!
[snip]

I've been working on plans to develop and sell apps on the Market
since I got my first android device a few weeks ago... this is very
unsettling.

I truly hope this is resolved in the very near term.

-- 
  Scott Elcomb
  http://www.psema4.com/   @psema4

  Member of the Pirate Party of Canada
  http://www.pirateparty.ca/

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

2010-02-23 Thread Michael Scott
bump!

On Feb 19, 3:54 pm, Michael Scott  wrote:
> Hi,
>
> I've developed anappWidgetby inheriting AppWidgetProvider and adding
> it to the manifest as a receiver with theappwidget-metatag. Works
> fine.
> Two questions though:
>
> 1. It seems that the only reason to add APPWIDGET_UPDATE to the
> intentfilter of the receiver is to let the widgetpicker recognize it
> as anappwidget? The intents (update/enable/disable) it received no
> matter if they are included in the intentfilter or not. How come?
>
> 2. When adding a permission to the receiver to disable spoofed
> intents, I actually expected the APPWIDGET_XXX intents not to be
> received since they are(?) sent from a sender without the permission.
> Not so, they arrived just as before. How is this possible? Do these
> intents get some special treatment by the system?
>
> /Michael

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


[android-developers] DynamicLayout and StringBuilder

2009-12-11 Thread Michael Scott
Hi,

I am writing a custom View that uses a DynamicLayout to write text on
the screen. The DynamicLayout is constructed with a StringBuilder that
I use to change the text. This works fine, but my problem is that when
I add linebreaks to the string, sb.append("\n"), they show up as
squares on the screen and no linebreaking is done... Does anyone have
an idea what I may miss here?

/Michael

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


[android-developers] Display Contacts "You don't have any contacts to display" possibly caused by NullPointerException: null

2009-12-17 Thread Scott W
Hi,

I'm developing a Names based on the code for Google Contacts. I have
got my application running and can save new names to the sqlite
database.

However, I cannot display records after saving them. The UI displays
"You don't have any contacts to display".

I think it may relate to a "NullPointerException: null" error that I
see in Eclipse.

Has anyone come across this or able to offer some ideas to help me
retrieve/display records after saving them?

Background:

I don't want my Names synchronised with Google's Contacts, so I'm not
using the Contacts API provided by Android. My Names application is to
be a module in a bigger application.

My Names and NamesProvider application in based on source code of the
Contacts and ContactsProvider packages downloaded from the Git
repository at http://android.git.kernel.org/ and changing it to run as
my Names application on the Android emulator.

I have been patching it up using more code from the repository as well
as sticking in empty classes/methods where I think functionality isn't
required (e.g. the telephone functionality). The goal is to make have
this code working before making changes to remove the redundant
functionality from the UI.

So far I have managed to make my Names application load up and display
the "You have no contacts" screen.

I am also able to add contacts and they are successfully stored within
this application's own contacts database. I am then able to see these
records via the sqlite command line.

The problem is that returning to the contacts list displays the "You
don't have any contacts to display" message instead of the newly added
contact. I have checked the database using SQLite and the information
is successfully stored in the correct location.

I currently have a few theories for why this is happening:

1) The res/layout-finger/contacts_list_content.xml file is called by
the code in ContactList. Looking at this file in the layout tab in
Eclipse shows NullPointerException: null. Commenting out the
FocusRequestingListView attribute removes this in place of an "Empty"
screen. However, LogCat never shows a NullPointerException during
execution.

2) My query may not be reaching the database. I have renamed packages
to force it to install on the emulator, so it is possible this is
causing the query to not be received by the database correctly, giving
an empty list of contacts. I don't know where in the Contacts code
this query occurs so I am unable to test it. If possible, could
someone point me in the right direction?

3) The query is structured incorrectly. I have had to change some
constant names to the values themselves as they weren't resolving
properly. It could be that I have renamed a constant incorrectly, but
it is still a valid attribute within the database with an empty field,
causing the query to return empty data.

Personally, I think 1) or 2) are the most likely causes but any help
at all would be massively appreciated.
Thanks in advance
Scott

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


[android-developers] Re: Display Contacts "You don't have any contacts to display" possibly caused by NullPointerException: null

2009-12-18 Thread Scott W
Just a quick follow-up:

Using the built-in search facility, I am able to "view" names, however
no information is displayed. I believe the problem here is the same as
the Names list. Looking at res/layout-finger/contact_card_layout.xml
in Eclipse is a NullPointerException: null. Again, LogCat shows no
error output.

Interestingly, when I search for a name, the search suggestions box
displays contact information e.g. phone number, email address but
selecting the name doesn't show this information.

In addition, the "Edit" button is greyed out and not selectable.

I have done some testing and the queries for Names are not being
directed to Android's Contacts provider.

Cheers,
Scott

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


[android-developers] Re: Display Contacts "You don't have any contacts to display" possibly caused by NullPointerException: null

2009-12-29 Thread Scott W
Hi,

If anyone could help me find the code for queryEntities function?

I've been looking at the ViewContactActivity.java and digging through
the querying code gets me to the following function call under
AsyncQueryHandler.java:

resolver.queryEntities(args.uri, args.selection, args.selectionArgs,
args.orderBy);

I've been trying to find out how this function works by going through
the git repository and had no real joy, help would be appreciated.

Scott

On Dec 18, 10:43 am, Scott W  wrote:
> Just a quick follow-up:
>
> Using the built-in search facility, I am able to "view" names, however
> no information is displayed. I believe the problem here is the same as
> the Names list. Looking at res/layout-finger/contact_card_layout.xml
> in Eclipse is a NullPointerException: null. Again, LogCat shows no
> error output.
>
> Interestingly, when I search for a name, the search suggestions box
> displays contact information e.g. phone number, email address but
> selecting the name doesn't show this information.
>
> In addition, the "Edit" button is greyed out and not selectable.
>
> I have done some testing and the queries for Names are not being
> directed to Android's Contacts provider.
>
> Cheers,
> Scott

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


[android-developers] Logs from framework.jar

2009-12-29 Thread Michael Scott
Hi,

Why does no logprints from the framework-code (Telephony) show up in
logcat? Is there a setting somewhere I should turn on or something?

Thanks,
Michael

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


[android-developers] Re: Logs from framework.jar

2010-01-02 Thread Michael Scott
Anyone?

On 29 Dec 2009, 19:29, Michael Scott  wrote:
> Hi,
>
> Why does no logprints from theframework-code (Telephony) show up in
> logcat? Is there a setting somewhere I should turn on or something?
>
> Thanks,
> Michael

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


[android-developers] Re: Logs from framework.jar

2010-01-04 Thread Michael Scott
Yes, that did it! Thank you!
What(where) sets classes to log to the "radio" buffer?
/MS

On Jan 2, 7:28 pm, jotobjects  wrote:
> try -
>
>      logcat -b radio
>
> See adb settings here -
>
>      http://developer.android.com/guide/developing/tools/adb.html#logcat
>
> On Jan 2, 10:24 am, jotobjects  wrote:
>
> > Can you provide more detail about the scenario - what are you running
> > on the device, what logging are you expecting, and how are you
> > examining logcat?
>
> > On Jan 2, 10:10 am, Michael Scott  wrote:
>
> > > Anyone?
>
> > > On 29 Dec 2009, 19:29, Michael Scott  wrote:
>
> > > > Hi,
>
> > > > Why does no logprints from theframework-code (Telephony) show up in
> > > > logcat? Is there a setting somewhere I should turn on or something?
>
> > > > Thanks,
> > > > Michael
>
>

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


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

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

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

Thanks

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


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

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

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

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


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

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


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


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

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

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

You have the following:

public abstract class StartAtBootActivity extends *BroadcastReceiver*{




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

See the problem with this scenario?

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


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


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

2012-02-20 Thread Ted Scott

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

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



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


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


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


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

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

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

}

Then change the strings:



Pies Of Cod!
PiesOfCod



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


























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


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


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


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

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


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

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

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

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

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


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

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

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

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

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

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

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

}

Then change the strings:



Pies Of Cod!
PiesOfCod


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

























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

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


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


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

2012-02-21 Thread Ted Scott

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

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

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


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


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



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


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


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


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


Re: [android-developers] Re: Beginner Question

2012-02-23 Thread Ted Scott


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

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

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

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



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

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



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


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

2012-02-23 Thread Ted Scott

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

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

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

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


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

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


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

2012-02-23 Thread Ted Scott

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

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



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


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

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

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



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



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


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



package com.needham.RxBcast;

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


public class RxBcast extends BroadcastReceiver {

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

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

}

*
package com.needham.RxBcast;

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

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

   private static final String TAG = "RxBcast77";

   public void onCreate(Bundle savedInstanceState) {


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

**

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

    

























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

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

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




--
YuviDroid
Chec

Re: [android-developers] nested listview

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


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

hi,,,

how i can make nested listview as follow :

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



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


Re: [android-developers] nested listview

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


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

hi Ted ,

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


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


Sounds like you want an ExpandableListView

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



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

hi,,,

how i can make nested listview as follow :

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


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

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


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


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

Re: [android-developers] Re: CursorAdapter? or OtherAdapter?

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


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


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


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

Hello.

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

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

What do you think?



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

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





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

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

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

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


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


Re: [android-developers] Android customize expandable list view encountered a problem

2012-03-08 Thread Ted Scott

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



I pasted the problem in stackoverflow, without any answer.

please help me to resolve it when you are free.

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

Answered

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


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

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


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


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


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


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

2012-03-09 Thread Ted Scott


Thanks Mark.

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

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

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

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

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

Here is a sample demonstrating this:

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

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

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


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


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

2012-03-09 Thread Ted Scott

Thanks Justin!

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


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

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

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


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


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


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

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

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

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

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


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


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

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

2012-03-09 Thread Ted Scott

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

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

feeling the frustrations of the moving platform now.

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

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

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

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

Ok, now that I know what to look for, I can probably figure it out. This 
may be the simplest solution. Thanks.


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


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

2012-03-09 Thread Ted Scott

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

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

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

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

:-)


Straight lines R us

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


Re: [android-developers] Re: Galaxy Nexus is not properly implementing getExternalStorageDirectory; can anyone confirm?

2012-03-15 Thread Ted Scott

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


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

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


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


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


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

2012-03-15 Thread Ted Scott


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


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

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

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

You don't.


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



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

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


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


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


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



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


Re: [android-developers] Newbie question - first attempt to run App on device gets Force Close

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


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

Run it under the debugger on your device.

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

My app runs fine on the device emulator.

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

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

Many thanks
MM



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


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

2012-03-19 Thread Ted Scott

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


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


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




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



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


  1   2   3   >