[android-developers] NIO select issue make program crash(also posted this in Internal group)

2008-10-22 Thread Liu Huadong

Hi Google expert and socket expert
 We meet a crash issue when using NIO selector.
 After check the stack we find it die in free(fdset_read);

Did you meet the same issue?
Do you have solution to avoid this issue ?
Any suggestions are welcome.
Thanks

Regards
Huadong

static jint osNetworkSystem_selectImpl(JNIEnv* env, jclass clazz,
jobjectArray readFDArray, jobjectArray writeFDArray, jint
countReadC,
jint countWriteC, jintArray outFlags, jlong timeout) {
// LOGD("ENTER selectImpl");

struct timeval timeP;
int result = 0;
int size = 0;
jobject gotFD;
fd_set *fdset_read,*fdset_write;
int handle;
jboolean isCopy ;
jint *flagArray;
int val;
unsigned int time_sec = (unsigned int)timeout/1000;
unsigned int time_msec = (unsigned int)(timeout%1000)*1000;

fdset_read = (fd_set *)malloc(sizeof(fd_set));
fdset_write = (fd_set *)malloc(sizeof(fd_set));

FD_ZERO(fdset_read);
FD_ZERO(fdset_write);

for (val = 0; valGetObjectArrayElement(readFDArray,val);

handle = jniGetFDFromFileDescriptor(env, gotFD);

FD_SET(handle, fdset_read);

if (0 > (size - handle)) {
size = handle;
}
}

for (val = 0; valGetObjectArrayElement(writeFDArray,val);

handle = jniGetFDFromFileDescriptor(env, gotFD);

FD_SET(handle, fdset_write);

if (0 > (size - handle)) {
size = handle;
}
}
/* the size is the max_fd + 1 */
size =size + 1;

if (0 > size) {
result = SOCKERR_FDSET_SIZEBAD;
} else {
  /* only set when timeout >= 0 (non-block)*/
if (0 <= timeout) {

timeP.tv_sec = time_sec;
timeP.tv_usec = time_msec*1000;

result = sockSelect(size, fdset_read, fdset_write, NULL,
&timeP);

} else {
result = sockSelect(size, fdset_read, fdset_write, NULL,
NULL);
}
}

if (0 < result) {
   /*output the result to a int array*/
   flagArray = env->GetIntArrayElements(outFlags, &isCopy);

   for (val=0; valGetObjectArrayElement(readFDArray,val);

handle = jniGetFDFromFileDescriptor(env, gotFD);

if (FD_ISSET(handle,fdset_read)) {
flagArray[val] = SOCKET_OP_READ;
} else {
flagArray[val] = SOCKET_OP_NONE;
}
}

for (val=0; valGetObjectArrayElement(writeFDArray,val);

handle = jniGetFDFromFileDescriptor(env, gotFD);

if (FD_ISSET(handle,fdset_write)) {
flagArray[val+countReadC] = SOCKET_OP_WRITE;
} else {
flagArray[val+countReadC] = SOCKET_OP_NONE;
}
}

env->ReleaseIntArrayElements(outFlags, flagArray, 0);
}

free(fdset_write);
dead herefree(fdset_read);

/* return both correct and error result, let java handle the
exception*/
return result;
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem Starting new ActivityForResult

2008-10-22 Thread fahadlala

Thanks alot i got it :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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tauntz

On Tue, Oct 21, 2008 at 11:01 PM, hackbod <[EMAIL PROTECTED]> wrote:
>
> On Oct 21, 11:10 am, tauntz <[EMAIL PROTECTED]> wrote:
>> Ok, understood, these methods are non-public and reserved for Google
>> applications only ;)
>
> NO.  They are private to the SYSTEM.  They are not for application
> use.  This is because they are not stable and change across releases.
> There may be some applications in the source tree using them, but
> these applications are only shipped as part of the system image, so
> that is okay.  In other words, if you use private APIs, you can -only-
> distribute the resulting app by having a carrier bundle it with a
> phone.

I think I have a wrong understanding of SYSTEM and APPLICATIONS then :/
I always thought that (for example) the Contacts thingie is an
application and NOT a system component. But you are saying that these
methods and classes are NOT for application use.. but the Contacts
thingie uses them ergo the Contacts thingie is a system component and
not an Application that is equal to all other apps that everybody else
can create.

One of Androids main promises is that "Any app on the mobile device
can be replaced or extended -- even core components such as the dialer
or home." Now word-for-word this holds true - I can replace the
Contacts system component with a self-made Contacts application
(AFAIK.. correct me if I'm wrong)  but my replacement will always be
inferior to the Google created one because it has no access to the
various APIs that the Google created Contacts thingie has.

Sure, I understand why you don't give the same permissions to third
party apps like (for example) the Google marketplace has. (OK, in a
perfect world it SHOULD be the users choice what apps he wants to
install on his own phone.. and phone/OS manufacturers should not
restrict his/her choice based on what they think the user wants) But
currently you are using some harmless private APIs in your own
applications that ship with the device and denying access to the same
functionality/integration to other apps.

Don't get me wrong, I don't want to start a flamewar or anything like
that. It's just that I want the same integration with the system as
Google created applications have (to a reasonable extent of course..
I'm not talking about functionality that can compromise security etc).
I hope that's not too much to ask.


>> Would it be imaginable that (some time in the future) all non-public
>> APIs are in the com.google* domain and not in the same domain as all
>> the public classes (android.*)?
>
> We have been migrating private APIs to the com.android.internal
> packages, but it will NEVER be the case that everything under
> android.* is public.  Never, ever.  Just link to the SDK, which is
> guaranteed to only contain the supported public APIs, and you are
> good.

Nice to hear that you are cleaning the house (:


>> Currently it's a little confusing if I look at the source of some
>> Google app and see that it uses (for example) the method
>> lookupProviderCategoryFromId(..) from the class
>> android.provider.Contacts.ContactMethods. Now the public API has a
>> class with the exact same name and package but without the method that
>> Google uses so I always have to manually check if a method or constant
>> exists in the public API documentation when looking through the source
>> code (and after that I have to check if it also exists in the real SDK
>> since the SDK and the API documentation are also not the same). It
>> would be much easier if public and non-public stuff is in separate
>> packages (like com.sun.* in instead of java.* (J2SE)).
>
> Yes, a lot of the bundle apps shipped with the system are using
> private APIs, and this needs to be cleaned up.  This is mostly an
> artifact of the apps being developed in parallel with the platform for
> the last 2-3 years, and not having time to do a final cleanup of them
> to switch to the public APIs.  This is something that needs to be
> done.
>
> Again, if you are doing third party app development, you really need
> to be developing against the SDK.  That is what it is there for.

Finally.. someone from Google saying that not all apps are created
equal. There are Google apps that can do whatever they want to do and
then there are third party apps that can only do what Google allows
them to do. And that's perfectly fine.. that's exactly how all other
phone OSs work. It's just that some people have currently the wrong
impression that you can create applications on Android that can do
*anything* and if they see an application bundled with the system,
they have the impression that they can have an app with the exact same
functionality/system integration.

It's good that you are trying to improve this and I'll hope that
sometime in the future all apps will truly be equal (:
And again, I'm sorry if I sound offensive or whiney.. I'm trying not
to be. We all have the same common goal here - you want to make the
best mobile OS and we want to develop f

[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton

If apps can't install other apps then I'm assuming that they can't 
uninstall them either, which leads to the question; How do third party 
app directories run their own kill-list?

Although the Android doesn't force users to use Marketplace can you why, 
from a usability and functionality perspective, Marketplace already has 
an unfair advantage that can only be levelled by using non-public APIs, 
and hence why all the time bundled apps such as Marketplace uses 
non-public APIs other apps will do so?

Al.

hackbod wrote:
> On Oct 21, 1:32 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>   
>> So is Google going to provide examples of how third parties can write
>> application directories with the same level of integration into the
>> phone as Marketplace has?
>> 
>
> The only special integration the Android Market has is that it can use
> the direct call to install an app instead of going through the system
> install UI, and all this does is allow it to do the permission
> confirmation check before the user downloads an app instead of after.
> The only reason why market can do this is because it is bundled as
> part of the system image; if it wasn't, it wouldn't be able to do
> that, and likewise if someone else has a carrier bundle their app with
> a phone then they can do all of the same stuff.
>
> Also the purpose here is not to give the Android Market a special
> advantage, but to protect users: NO application installed as a third
> party app can directly install other applications, because that would
> effectively give it permission to everything in the world on the phone
> (because it could just install another app with any permissions it
> wants, with no confirmation by the user).  We thought this was a
> little too dangerous to allow, especially for the small benefit it
> provides.
>
> (Btw, Market -is- using some public APIs, in particular a download
> manager, that are not yet available in the SDK.  This is however
> something you can write yourself, and it is also an API we plan to
> make available to all apps in the future, we just didn't have time to
> get it ready for 1.0.)
>
> >
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: Uninstall packages API

2008-10-22 Thread SungSuh Park

Does it mean that only Android Market has ability to remove bad
application.

On Oct 14, 2:45 am, hackbod <[EMAIL PROTECTED]> wrote:
> Sorry, I don't think this is supported in 1.0.
>
> On Oct 13, 3:51 am, denismo <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I know there is a way touninstallapplications on emulator, using
> > ADB, but that is not available on the phone.  My application needs to
> > provide a way touninstallitself, initiated automatically or by
> > user's request through UI, with user's permission of course - it
> > doesn't need to be uncontrolled. So it should be done
> > programmatically, using some public API like PackageManager.uninstall.
> > Any ideas on how this can be done?
>
> > Thanks.
>
> > Denis- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Does Android have a timeout callback?

2008-10-22 Thread cH3Lu eu
Hi All,

Does anybody knows if I can register a function to be called at every second
within an activity? if not, what do you suggest to do if I need a widget to
refresh at every 1 second?

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 12:15 am, tauntz <[EMAIL PROTECTED]> wrote:
> I think I have a wrong understanding of SYSTEM and APPLICATIONS then :/
> I always thought that (for example) the Contacts thingie is an
> application and NOT a system component. But you are saying that these
> methods and classes are NOT for application use.. but the Contacts
> thingie uses them ergo the Contacts thingie is a system component and
> not an Application that is equal to all other apps that everybody else
> can create.
>
> One of Androids main promises is that "Any app on the mobile device
> can be replaced or extended -- even core components such as the dialer
> or home." Now word-for-word this holds true - I can replace the
> Contacts system component with a self-made Contacts application
> (AFAIK.. correct me if I'm wrong)  but my replacement will always be
> inferior to the Google created one because it has no access to the
> various APIs that the Google created Contacts thingie has.

I already explained this in the rest of my previous reply.  Yes, many
of the current system applications use private APIs, because they have
been under development for a long time (well before the first SDK
release) in parallel with the platform, and it hasn't been possible to
keep them up on the official APIs as the platform was being cleaned
up.  (Not to mention that we didn't even have a way to link against an
SDK that didn't contain private symbols until the 1.0 release, so it
is very easy to accidentally use private APIs.)

There should be nothing the regular built-in apps do that you can't do
in your own apps, except for some carefully considered scenarios, such
as dialing an emergency phone number or directly installing an app
without user intervention.  If you find something an app is doing that
you truly can't do with the SDK (not that it is just using some
convenience class that is part of the system that isn't ready for
public use), then please file a bug about it.  Or hell, submit a patch
to make that feature available with a good SDK API.

> Sure, I understand why you don't give the same permissions to third
> party apps like (for example) the Google marketplace has. (OK, in a
> perfect world it SHOULD be the users choice what apps he wants to
> install on his own phone.. and phone/OS manufacturers should not
> restrict his/her choice based on what they think the user wants)

It IS the choice of the user about what apps he wants to install.  If
you don't want to use the market, you can install them yourself with a
web browser or something else that invokes the system installer.  This
is a non-issue.

> But
> currently you are using some harmless private APIs in your own
> applications that ship with the device and denying access to the same
> functionality/integration to other apps.
>
> Don't get me wrong, I don't want to start a flamewar or anything like
> that. It's just that I want the same integration with the system as
> Google created applications have (to a reasonable extent of course..
> I'm not talking about functionality that can compromise security etc).
> I hope that's not too much to ask.

Any APIs that have been hidden in the SDK have been explicitly done so
because they will not be maintained in future releases.  For the one
specific instance I think you have brought up -- groups in contacts --
I am pretty sure this was a very last-minute addition, so we were able
to get the feature in to the 1.0 product but not in a way that could
be supported as part of the SDK.  Doing a product presents these kinds
of challenges: do we do the feature but not make it available in the
SDK, or just not do the feature at all?  I think it was much better to
have this feature for the product than not.  There is nothing
malicious about this, it's just a simple fact that making something
that can be supported forever is a public API is usually a lot more
effort than just implementing the feature for internal use.

> > Again, if you are doing third party app development, you really need
> > to be developing against the SDK.  That is what it is there for.
> Finally.. someone from Google saying that not all apps are created
> equal. There are Google apps that can do whatever they want to do and
> then there are third party apps that can only do what Google allows
> them to do. And that's perfectly fine.. that's exactly how all other
> phone OSs work. It's just that some people have currently the wrong
> impression that you can create applications on Android that can do
> *anything* and if they see an application bundled with the system,
> they have the impression that they can have an app with the exact same
> functionality/system integration.

We have NEVER said an application can do anything.  I have posted
numerous times to this list that applications can't directly install
applications without going through the system UI, as well as not being
able to place emergency calls, not being able to replace the in-call
screen or lock screen, etc.  The "

[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 12:18 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> Although the Android doesn't force users to use Marketplace can you why,
> from a usability and functionality perspective, Marketplace already has
> an unfair advantage that can only be levelled by using non-public APIs,
> and hence why all the time bundled apps such as Marketplace uses
> non-public APIs other apps will do so?

In the realm of app installation, security is really important and
tricky.  At this point, we think it is too dangerous to give a third
party application blanket access to install applications without the
user being involved.  That may change in the future, but for now that
is the way it is.  Yes, it means the Android Market app as a bundled
part of the system can do a little different UI flow than ones that
aren't bundled that way.  Sorry, that's just how it is for now.

For uninstalling apps without the user's intervention, this is
something that would be a little less scary to allow, but we didn't
have time to look into this for 1.0.

Oh and fwiw, what you are talking about here has nothing to do with
private APIs.  Yes, these APIs are not in the SDK, but even if they
were, you couldn't use them because they are protected by a permission
that you can only have granted to you if you are signed with the same
certificate as the core platform code.

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton


> There should be nothing the regular built-in apps do that you can't do
> in your own apps, except for some carefully considered scenarios, such
> as dialing an emergency phone number or directly installing an app
> without user intervention.  

Waaahh.. Since when has installing apps without user 
intervention been a good thing?,  and if it is a good thing why is it 
reserved for Googles apps?

I'm sure most app developers would LOVE to be able to install updates 
without having to force the user through the same permission set 
agreements each time the user gets a new version.

Al.

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



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-22 Thread Wesley
hi,

sound bad...
if this is the case means my app/idea is not going to work


wesley.

On Wed, Oct 22, 2008 at 2:45 PM, MoggoDude <[EMAIL PROTECTED]> wrote:

>
> Hi Guys,
>Just sending this update on the PathClassLoader problem. I
> started a blog in the android-internals group,
>
> http://groups.google.com/group/android-internals/browse_thread/thread/d53b610d51891147#
> ,
> looks like it is not possible
> to dynamically load classes in devices installed with SDK 1.0, which I
> believe will be installed on the HTC G1 coming out soon.
> The remifications being, that any app which requires dynamic class
> loading will not function properly on the HTC G1.
>
> Regards,
> MoggoDude
> >
>

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton

Friendly suggestion, read up on the lawsuits against Microsoft for not 
releasing API details (here's a recent one 
http://www.theregister.co.uk/2008/02/21/microsoft_goes_open/)

It sounds like Android, at the moment, is heading for the same path.

Al.



hackbod wrote:
> On Oct 22, 12:18 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>   
>> Although the Android doesn't force users to use Marketplace can you why,
>> from a usability and functionality perspective, Marketplace already has
>> an unfair advantage that can only be levelled by using non-public APIs,
>> and hence why all the time bundled apps such as Marketplace uses
>> non-public APIs other apps will do so?
>> 
>
> In the realm of app installation, security is really important and
> tricky.  At this point, we think it is too dangerous to give a third
> party application blanket access to install applications without the
> user being involved.  That may change in the future, but for now that
> is the way it is.  Yes, it means the Android Market app as a bundled
> part of the system can do a little different UI flow than ones that
> aren't bundled that way.  Sorry, that's just how it is for now.
>
> For uninstalling apps without the user's intervention, this is
> something that would be a little less scary to allow, but we didn't
> have time to look into this for 1.0.
>
> Oh and fwiw, what you are talking about here has nothing to do with
> private APIs.  Yes, these APIs are not in the SDK, but even if they
> were, you couldn't use them because they are protected by a permission
> that you can only have granted to you if you are signed with the same
> certificate as the core platform code.
>
> >
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: Windows driver for HTC G1 phone

2008-10-22 Thread Beau Gunderson

Also looking forward to this, kind of a dealbreaker for Windows
development. Is there a workaround?

Has anyone made a VMWare instance of the development environment
available yet? Are there any license issues with someone doing that?


On Oct 17, 11:13 am, RonS <[EMAIL PROTECTED]> wrote:
> Any idea where can I get the USB driver so that adb will see the G1?
>
> RonS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tauntz

Thanks for clearing things up! :)


On Wed, Oct 22, 2008 at 10:40 AM, hackbod <[EMAIL PROTECTED]> wrote:
>
> On Oct 22, 12:15 am, tauntz <[EMAIL PROTECTED]> wrote:
>> I think I have a wrong understanding of SYSTEM and APPLICATIONS then :/
>> I always thought that (for example) the Contacts thingie is an
>> application and NOT a system component. But you are saying that these
>> methods and classes are NOT for application use.. but the Contacts
>> thingie uses them ergo the Contacts thingie is a system component and
>> not an Application that is equal to all other apps that everybody else
>> can create.
>>
>> One of Androids main promises is that "Any app on the mobile device
>> can be replaced or extended -- even core components such as the dialer
>> or home." Now word-for-word this holds true - I can replace the
>> Contacts system component with a self-made Contacts application
>> (AFAIK.. correct me if I'm wrong)  but my replacement will always be
>> inferior to the Google created one because it has no access to the
>> various APIs that the Google created Contacts thingie has.
>
> I already explained this in the rest of my previous reply.  Yes, many
> of the current system applications use private APIs, because they have
> been under development for a long time (well before the first SDK
> release) in parallel with the platform, and it hasn't been possible to
> keep them up on the official APIs as the platform was being cleaned
> up.  (Not to mention that we didn't even have a way to link against an
> SDK that didn't contain private symbols until the 1.0 release, so it
> is very easy to accidentally use private APIs.)
>
> There should be nothing the regular built-in apps do that you can't do
> in your own apps, except for some carefully considered scenarios, such
> as dialing an emergency phone number or directly installing an app
> without user intervention.  If you find something an app is doing that
> you truly can't do with the SDK (not that it is just using some
> convenience class that is part of the system that isn't ready for
> public use), then please file a bug about it.  Or hell, submit a patch
> to make that feature available with a good SDK API.
>
>> Sure, I understand why you don't give the same permissions to third
>> party apps like (for example) the Google marketplace has. (OK, in a
>> perfect world it SHOULD be the users choice what apps he wants to
>> install on his own phone.. and phone/OS manufacturers should not
>> restrict his/her choice based on what they think the user wants)
>
> It IS the choice of the user about what apps he wants to install.  If
> you don't want to use the market, you can install them yourself with a
> web browser or something else that invokes the system installer.  This
> is a non-issue.
>
>> But
>> currently you are using some harmless private APIs in your own
>> applications that ship with the device and denying access to the same
>> functionality/integration to other apps.
>>
>> Don't get me wrong, I don't want to start a flamewar or anything like
>> that. It's just that I want the same integration with the system as
>> Google created applications have (to a reasonable extent of course..
>> I'm not talking about functionality that can compromise security etc).
>> I hope that's not too much to ask.
>
> Any APIs that have been hidden in the SDK have been explicitly done so
> because they will not be maintained in future releases.  For the one
> specific instance I think you have brought up -- groups in contacts --
> I am pretty sure this was a very last-minute addition, so we were able
> to get the feature in to the 1.0 product but not in a way that could
> be supported as part of the SDK.  Doing a product presents these kinds
> of challenges: do we do the feature but not make it available in the
> SDK, or just not do the feature at all?  I think it was much better to
> have this feature for the product than not.  There is nothing
> malicious about this, it's just a simple fact that making something
> that can be supported forever is a public API is usually a lot more
> effort than just implementing the feature for internal use.
>
>> > Again, if you are doing third party app development, you really need
>> > to be developing against the SDK.  That is what it is there for.
>> Finally.. someone from Google saying that not all apps are created
>> equal. There are Google apps that can do whatever they want to do and
>> then there are third party apps that can only do what Google allows
>> them to do. And that's perfectly fine.. that's exactly how all other
>> phone OSs work. It's just that some people have currently the wrong
>> impression that you can create applications on Android that can do
>> *anything* and if they see an application bundled with the system,
>> they have the impression that they can have an app with the exact same
>> functionality/system integration.
>
> We have NEVER said an application can do anything.  I have posted
> numerous times to

[android-developers] Re: Windows driver for HTC G1 phone

2008-10-22 Thread Beau Gunderson

Here's the link from the other thread on this topic:

http://dl.google.com/android/android_usb_windows.zip


Beau

On Oct 17, 11:13 am, RonS <[EMAIL PROTECTED]> wrote:
> Any idea where can I get the USB driver so that adb will see the G1?
>
> RonS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market - How to Submit?

2008-10-22 Thread Al Sutton

I've seen nothing about Marketplace, but AndAppStore.com is doing well 
though (45+ apps :)).

Al.

Beau Gunderson wrote:
> Any update on this? It seems crazy that there's no developer-facing
> site setup for this yet...
>
>
> Beau
>
> On Oct 14, 1:20 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>   
>> There is very little publicly available beyond that blog post, and to
>> date I've not seen anything on how to list apps in the Marketplace.
>>
>> This is why many alternatives (such ashttp://andappstore.com) have
>> started to spring up.
>>
>> Al.
>>
>> Mike Greiner wrote:
>> 
>>> Is there any information available on how we can submit applications
>>> to the Android Market ahead of the T-Mobile G1 release?
>>>   
>>> I've searched this forum and the rest of the web and there's not much
>>> information beyond Google's August 28 blog post.
>>>   
>>> Thanks,
>>> Mike
>>>   
>> --
>> Al Sutton
>>
>> W:www.alsutton.com
>> B: alsutton.wordpress.com
>> T: twitter.com/alsutton
>> 
>
> >
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: Tips for Orientation

2008-10-22 Thread blindfold

Thanks hackbod! I too had not been aware of this. I was about to
deploy
it, until I realized that blind users of my app could be
inadvertently
changing physical orientation, each time causing a soft reset of my
app
with associated hickups through the repeated calls to onCreate().
Guess
I should stick with the default keyboard controlled screen
orientation
even though screen appearance is preferably meant for landscape mode,
or in any case not make it sensor dependent even though that is cool.

Regards

On Oct 21, 12:37 am, hackbod <[EMAIL PROTECTED]> wrote:
> Don't do that, or moving between your app and others will be flicker.
> Just use android:screenOrientation="sensor".

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



[android-developers] Re: quick question on camera preview format

2008-10-22 Thread blindfold

Its encoding semantics do not seem specified anywhere. Also see
reported issue 823,

http://code.google.com/p/android/issues/detail?id=823

which I hope will be resolved soon.

Regards

On Oct 22, 2:21 am, Jason Proctor <[EMAIL PROTECTED]> wrote:
> it's declared to be YUV422SP. so this is planar with signed chrominence 
> values?
>
> tia
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Ewan Grantham
One thought on all this - if these are considered to be major issues (I'm
just wading into the waters here, so not familiar enough to give an
opinion), couldn't someone fork the project and then try to convince folks
they're better off running the "open" version of Android rather than the
Google version? Sort of like jailbreaking a PSP to add a 3rd party firmware
(as opposed to jailbreaking an iPhone which doesn't really replace the OS)?

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton

It's an option, but how many people would want to jailbreak an "open 
platform" just to use a third party application installer and/or updater?

My main concern is that Marketplace seems to be an obvious example of 
where a bundled app is getting an unfair advantage just because it's an 
approved application. This would also extend to diallers, from what 
hackbod has said it would appear that any dialler written by a third 
party won't be able to call emergency services, which is kind of crazy.

imho, on an open platform all apps should be equal.

Al.

Ewan Grantham wrote:
> One thought on all this - if these are considered to be major issues 
> (I'm just wading into the waters here, so not familiar enough to give 
> an opinion), couldn't someone fork the project and then try to 
> convince folks they're better off running the "open" version of 
> Android rather than the Google version? Sort of like jailbreaking a 
> PSP to add a 3rd party firmware (as opposed to jailbreaking an iPhone 
> which doesn't really replace the OS)?
>
>
> >


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-22 Thread Peli

You probably have to use MediaScanner:
http://code.google.com/android/reference/android/media/MediaScannerConnection.html

Peli

On Oct 22, 6:39 am, "for android" <[EMAIL PROTECTED]> wrote:
> Oh thanks Peli.Now I am able to see those files.Thanks very much.
>
> However i wanted to know where is there a way to progrmatically scan the Dev
> Tools.
>
> Thanks
> Guru
>
> On Tue, Oct 21, 2008 at 6:38 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> > You have to click "Dev Tools" (or "Ze Dev Tools") / Media scanner.
> > Once the sd card has been scanned, you should see your mp3 file in the
> > media player.
>
> > Peli
>
> > On Oct 21, 2:28 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > > Yes i see the file by the way you have specified.
>
> > > Let me explain once more.I download an mp3 and save it in the
> > SDCard.After i
> > > have saved it,should it not reflect in the mp3 files of the music icon
> > that
> > > is present on the phone.What should i do so that the file which I
> > download
> > > or save be visible in the Music or Pictures present in the phone.
>
> > > Thanks
> > > Guru.
>
> > > On Tue, Oct 21, 2008 at 5:41 PM, Peli <[EMAIL PROTECTED]> wrote:
>
> > > > I also don't understand what you do to check that you don't see the
> > > > file on the SD card.
> > > > Do you mean a real SD card that you inserted physically into your
> > > > computer?
>
> > > > Could you explain this in more detail?
>
> > > > Can you try the following in a DOS window:
> > > > adb shell
> > > > cd sdcard
> > > > ls
>
> > > > Do you see your file then?
>
> > > > Peli
>
> > > > On Oct 21, 12:45 pm, "for android" <[EMAIL PROTECTED]> wrote:
> > > > > any help?
>
> > > > > On Mon, Oct 20, 2008 at 11:26 AM, for android <[EMAIL PROTECTED]>
> > > > wrote:
> > > > > > Thanks Mega for looking into this
>
> > > > > > I am seeing the sdcard from the emulator..When i start the emulator
> > i
> > > > have
> > > > > > given the option in eclipse of the location of the sdcard.So after
> > i
> > > > > > download the file I want to view this file in the SDcard.I only see
> > > > this the
> > > > > > file in the DDMS mode,so the file has actually been downloaded.But
> > I
> > > > have
> > > > > > not been able to figure out as to what stops me from seeing the
> > file in
> > > > the
> > > > > > sdcard.
>
> > > > > > Thanks
> > > > > > Guru
>
> > > > > > On Fri, Oct 17, 2008 at 12:28 PM, Megha Joshi <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > >> 2008/10/15 guru <[EMAIL PROTECTED]>
>
> > > > > >>> I needed to download a file and store it in my sdcard.I first
> > save it
> > > > > >>> by writing in the output stream(by using openFileOutput) in the
> > > > > >>> application package.From here I copy it to my SDCard and its
> > written
> > > > > >>> on my SDCard.But when i see my SDCard in the file in the DDMS
> > mode i
> > > > > >>> am able to see that file,
>
> > > > > >> If you see the file on your sdcard in the ddms file explorer  it
> > > > should be
> > > > > >> there.
>
> > > > > >>> but in the SDCard i was not able to see that
> > > > > >>> file.
>
> > > > > >> Its not clear how you are viewing the sdcard in this case.
>
> > > > > >>> Please could anyone tell how can this be acheived.
>
> > > > > >>> heres the code snippet i use.
>
> > > > > >>> String fileName = "myFileName";
> > > > > >>> File bufferedFile = new File("/sdcard/"+fileName);
>
> > > > copyFiletoSDCard(downloadingMediaFile,bufferedFile.getAbsolutePath());
>
> > > > > >>> private void copyFiletoSDCard(File fromFile, String fileName) {
> > > > > >>>                FileInputStream from = null;
> > > > > >>>                FileOutputStream to = null;
> > > > > >>>                try {
> > > > > >>>                        from =
> > > > context.openFileInput(fromFile.getName());
> > > > > >>>                        to = new FileOutputStream(fileName);
> > > > > >>>                        byte[] buffer = new byte[4096];
> > > > > >>>                        int bytesRead;
>
> > > > > >>>                        while ((bytesRead = from.read(buffer)) !=
> > -1)
> > > > > >>>                                to.write(buffer, 0, bytesRead); //
> > > > write
> > > > > >>>                } catch(IOException ioException){
> > > > > >>>                        Log.i(getClass().getName(),"ioException
> > Msg");
>
> > > > > >>>  Log.i(getClass().getName(),ioException.getMessage());
> > > > > >>>                        ioException.printStackTrace();
> > > > > >>>                }finally {
> > > > > >>>                        if (from != null)
> > > > > >>>                                try {
> > > > > >>>                                        from.close();
> > > > > >>>                                } catch (IOException e) {
> > > > > >>>                                        ;
> > > > > >>>                                }
> > > > > >>>                        if (to != null)
> > > > > >>>                                try {
> > > > > >>>                                        to.close();
> > >

[android-developers] GPRS configuration

2008-10-22 Thread denismo

Hi,

I remember on other phones there are some settings associated with
GPRS/packet data connections, such as gateway, number, may be login,
proxy etc., I hope it rings a bell. Is there something like this on
Android? Can it be read/modified using API?

Thanks.

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



[android-developers] Re: Does Android have a timeout callback?

2008-10-22 Thread Charlie Collins

Android has java.util.Timer and related.
http://code.google.com/android/reference/java/util/Timer.html

Use that on a background thread and call back into the UI via a
Handler and Message.  But be careful about updating every second, make
sure you really need to do that.

On Oct 22, 3:36 am, "cH3Lu eu" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Does anybody knows if I can register a function to be called at every second
> within an activity? if not, what do you suggest to do if I need a widget to
> refresh at every 1 second?
>
> 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Getting source under Windows (from web interface).

2008-10-22 Thread sahn0

As we all know, Google released Android's source today.
But you can't get source if you are Windows user.
Luckily, there is a web interface (http://git.source.android.com),
which allows you to browse all files.
So I wrote very simple program that parses htmls, collects links and
downloads files.
Get it here: http://android4me.googlecode.com/files/GetWebGit.jar

Usage is very simple: GetWebGit  
E.g.: GetWebGit.jar platform/frameworks/base.git C:\Android\framework

You can also download any subfolder of any project. This requires more
work, though - go to the web interface, copy 'tree' folder's link and
supply it as  argument.
E.g.: GetWebGit.jar
http://git.source.android.com/?p=platform/build.git;a=tree;f=core/combo;h=2d6d494c1c5fad17496d32664d2ce36a9bd4e22e;hb=HEAD
core/combo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Does Android have a timeout callback?

2008-10-22 Thread Christine

I use a Handler for that, which is actually very easy. There's
examples elsewhere in this group.



On Oct 22, 3:05 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> Android has java.util.Timer and 
> related.http://code.google.com/android/reference/java/util/Timer.html
>
> Use that on a background thread and call back into the UI via a
> Handler and Message.  But be careful about updating every second, make
> sure you really need to do that.
>
> On Oct 22, 3:36 am, "cH3Lu eu" <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Does anybody knows if I can register a function to be called at every second
> > within an activity? if not, what do you suggest to do if I need a widget to
> > refresh at every 1 second?
>
> > 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting source under Windows (from web interface).

2008-10-22 Thread Anm

There is a port of git in Cygwin.  It works just fine.

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



[android-developers] Re: Does Android have a timeout callback?

2008-10-22 Thread cH3Lu eu
well it's a SeekBar which should increment its progress at every second, do
you know how can i do that? :)
Thanks.

2008/10/22 Charlie Collins <[EMAIL PROTECTED]>

>
> Android has java.util.Timer and related.
> http://code.google.com/android/reference/java/util/Timer.html
>
> Use that on a background thread and call back into the UI via a
> Handler and Message.  But be careful about updating every second, make
> sure you really need to do that.
>
> On Oct 22, 3:36 am, "cH3Lu eu" <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > Does anybody knows if I can register a function to be called at every
> second
> > within an activity? if not, what do you suggest to do if I need a widget
> to
> > refresh at every 1 second?
> >
> > 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Now the source is released what steps do we need to take to port to other hardware?

2008-10-22 Thread Matt

Now the source is released what steps do we need to take to port to
other hardware?

In particular I would like to port to the HTC prophet, but I know that
others will want to port to their own flavours of handset.

However I'd be grateful if someone could point me in the right
direction of a porting guide, or anything that I can use to get
started.



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



[android-developers] Re: Android Market - How to Submit?

2008-10-22 Thread Jamie McDonald

I guess now that the G1 has hit the shops it can't be long before we
hear something more about the Android Market. In the meantime, we are
also seeing quite a few developers uploading their Android software to
Phoload...

Jamie
www.phoload.com

On Oct 22, 10:47 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> I've seen nothing about Marketplace, butAndAppStore.com is doing well
> though (45+ apps :)).
>
> Al.
>
>
>
> Beau Gunderson wrote:
> > Any update on this? It seems crazy that there's no developer-facing
> > site setup for this yet...
>
> > Beau
>
> > On Oct 14, 1:20 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> >> There is very little publicly available beyond that blog post, and to
> >> date I've not seen anything on how to list apps in the Marketplace.
>
> >> This is why many alternatives (such ashttp://andappstore.com) have
> >> started to spring up.
>
> >> Al.
>
> >> Mike Greiner wrote:
>
> >>> Is there any information available on how we can submit applications
> >>> to the Android Market ahead of the T-Mobile G1 release?
>
> >>> I've searched this forum and the rest of the web and there's not much
> >>> information beyond Google's August 28 blog post.
>
> >>> Thanks,
> >>> Mike
>
> >> --
> >> Al Sutton
>
> >> W:www.alsutton.com
> >> B: alsutton.wordpress.com
> >> T: twitter.com/alsutton
>
> --
> Al Sutton
>
> W:www.alsutton.com
> B: alsutton.wordpress.com
> T: twitter.com/alsutton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Scroll range

2008-10-22 Thread Shade

Hello!

How can i get scroll height and scroll width of the View?

getWidth() and getHeight() return View's size
getScrollX() / getScrollY() - scroll offset.
Other functions just measure scroll bar.

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



[android-developers] onSaveInstanceState / onRestoreInstanceState Called on First Application Run

2008-10-22 Thread Mark Hansen

I'm not sure if this is intended or not, but I had some compalints
from users about my application failing on the first run after the
install.

After wiping the data on the emulator I notice when I debug that
onRestoreInstanceState and onSaveInstanceState  are called.  This is
not the case when an application is already installed.

Can someone shed some light on why this happens?  Is it initializing
something, perhaps default values from my preferences?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Market - How to Submit?

2008-10-22 Thread blindfold

I'm one of those, and have thus far been pleased with the operations
and proactive attitude of Phoload.

On Oct 22, 4:00 pm, Jamie McDonald <[EMAIL PROTECTED]> wrote:
> I guess now that the G1 has hit the shops it can't be long before we
> hear something more about the Android Market. In the meantime, we are
> also seeing quite a few developers uploading their Android software to
> Phoload...
>
> Jamiewww.phoload.com
>
> On Oct 22, 10:47 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > I've seen nothing about Marketplace, butAndAppStore.com is doing well
> > though (45+ apps :)).
>
> > Al.

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



[android-developers] Re: Camera.takePicture()

2008-10-22 Thread Hong

you need to call the Camera.takePicture(shutter, raw, jpeg)
each arg implements the corresponding callback (shutter callback,
picturecallback, picturecallback).

so if you need to get the raw data, implement a class with
picturecallback, and the onPictureTaken(byte[] raw...)
will be available for you.

but sounds like you try to get the video frame?  let me know if you succeed...

thanks


On Tue, Oct 21, 2008 at 5:57 PM, steve1 <[EMAIL PROTECTED]> wrote:
>
> I'm probably missing something obvious, so I apologize if
> this is a dumb question.
>
> Once I've registered callbacks using Camera.takePicture(),
> what does my application need to do to have those callbacks
> called?
>
> As near as I've been able to tell, the callback is executed
> during a camera preview, or by the user actually taking a
> picture using the native camera application.
>
> But I don't want to start a preview or launch the native camera
> application.  All I want is the raw image data from the camera
> hardware.
>
> Is there a way to do this?
>
> Thank you!
>
> >
>

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



[android-developers] Re: Problem with MapView

2008-10-22 Thread Sudha

hi all
I was using the Mapview and was getting the map and the application
was working fine
till to 3 pm today..
then after it started to show the grey grid... no map

those who are having the map application plz chek that agian..
is it the problem with the google server ?


On Oct 17, 7:33 pm, Matthias <[EMAIL PROTECTED]> wrote:
> oh boy... I have figured out what went wrong...
>
> I used the "geo" command to send location fixes, but this thing takes
> GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related
> API that I have ever seen does), so the map dropped me in some
> uncharted lands (which were gray...).
>
> Great, one more wasted day thanks to terrible user interface
> design. :-/
>
> On Oct 17, 4:08 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
>
>
> > darn, nevermind... the Maps demo in ApiDemos is also missing that
> > file, produces the same error, but it does show a map.
>
> > this is getting more obscure with every minute.
>
> > On Oct 17, 3:56 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
> > > Yes, I do have a location set.
>
> > > I think I know where the problem originates from though. As has
> > > appeared in the log traces before, the gray map thing seems to happen
> > > when the error "Couldn't find file /data/data//
> > > DATA_Tiles" occurs; from my understanding, this file holds the map
> > > tile data from which a map is constructed. If that file is missing,
> > > well, then no map will be rendered of course.
>
> > > I don't know why my application package is missing that file. This
> > > should be handled by the runtime of course. I will now try to manually
> > > copy that file over from another (working) package to my package and
> > > check if that'll fix it.
>
> > > On Oct 17, 3:10 pm, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > > Do you actually have a location set? I vaguely remember that I once had 
> > > > the
> > > > grey screen, where it was not the permission to get the data off the 
> > > > net,
> > > > but the fact that the view did not know what/where to view.
> > > > Ludwig
>
> > > > 2008/10/17 Matthias <[EMAIL PROTECTED]>
>
> > > > > That didn't work for me. I am still getting a grey plane where the map
> > > > > should be. :-/
>
> > > > > Any other ideas?
>
> > > > > On Aug 20, 9:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > Move the uses-permission tags above the application tag:
>
> > > > > >   > > > > android:name="android.permission.ACCESS_COARSE_LOCATION"
> > > > > > />
> > > > > >    
>
> > > > > >      > > > > > android:label="@string/app_name">
> > > > > >      
>
> > > > > > On Wed, Aug 20, 2008 at 3:44 AM, dapper <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi there,
>
> > > > > > > I am just starting out with android and for my first app after the
> > > > > > > tutorial I would like to display a Map. I have basically taken the
> > > > > > > Sample code and put it into my own project. However I only seem 
> > > > > > > to get
> > > > > > > the grey grid and no map. Can anyone help (banging my head here). 
> > > > > > > I am
> > > > > > > using 0.9.
>
> > > > > > > I know it is something stupid but can't see it.
>
> > > > > > > Thanks
>
> > > > > > > This is my main.xml
>
> > > > > > > 
> > > > > > > http://schemas.android.com/apk/res/
> > > > > > > android"
> > > > > > >        android:layout_width="fill_parent"
> > > > > > >    android:layout_height="fill_parent">
> > > > > > >     > > > > > >        android:id="@+id/map"
> > > > > > >        android:layout_width="fill_parent"
> > > > > > >        android:layout_height="fill_parent"
> > > > > > >        android:enabled="true"
> > > > > > >        android:clickable="true"
> > > > > > >        android:apiKey="mymapkey"
> > > > > > >        />
> > > > > > > 
>
> > > > > > > My code
>
> > > > > > > public class HotelCompanion extends MapActivity {
>
> > > > > > >        MapView mMapView;
>
> > > > > > >   [EMAIL PROTECTED]
> > > > > > >    public void onCreate(Bundle savedInstanceState) {
> > > > > > >        super.onCreate(savedInstanceState);
> > > > > > >        setContentView(R.layout.main);
> > > > > > >        MapView map = (MapView) findViewById(R.id.map);
> > > > > > >        MapController mc = map.getController();
> > > > > > >        mc.setZoom(9);
> > > > > > >    }
>
> > > > > > >       [EMAIL PROTECTED]
> > > > > > >        protected boolean isRouteDisplayed() {
> > > > > > >                return false;
> > > > > > >        }
> > > > > > > }
>
> > > > > > > and my manifest
>
> > > > > > > 
> > > > > > >  > > > > > > xmlns:android="http://schemas.android.com/apk/res/android";
> > > > > > >    package="dharmesh.android.hotel">
> > > > > > >     > > > > > > android:label="@string/
> > > > > > > app_name">
> > > > > > >    
>
> > > > > > >     > > > > > > android:name="android.permission.ACCESS_COARSE_LOCATION" />
> > > > > > >    
>
> > > > > > >         > > > > > > android:label="@string/app_name">
> > > > > > >            
> > > > > > >                 > > > > > > />
> > > > > >

[android-developers] Re: Problem with MapView

2008-10-22 Thread Matthias

you need a valid Google Maps API key for your app as of today. Look
for the official announcement on the Android Developers blog.

On Oct 22, 4:32 pm, Sudha <[EMAIL PROTECTED]> wrote:
> hi all
> I was using the Mapview and was getting the map and the application
> was working fine
> till to 3 pm today..
> then after it started to show the grey grid... no map
>
> those who are having the map application plz chek that agian..
> is it the problem with the google server ?
>
> On Oct 17, 7:33 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
> > oh boy... I have figured out what went wrong...
>
> > I used the "geo" command to send location fixes, but this thing takes
> > GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related
> > API that I have ever seen does), so the map dropped me in some
> > uncharted lands (which were gray...).
>
> > Great, one more wasted day thanks to terrible user interface
> > design. :-/
>
> > On Oct 17, 4:08 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
> > > darn, nevermind... the Maps demo in ApiDemos is also missing that
> > > file, produces the same error, but it does show a map.
>
> > > this is getting more obscure with every minute.
>
> > > On Oct 17, 3:56 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
> > > > Yes, I do have a location set.
>
> > > > I think I know where the problem originates from though. As has
> > > > appeared in the log traces before, the gray map thing seems to happen
> > > > when the error "Couldn't find file /data/data//
> > > > DATA_Tiles" occurs; from my understanding, this file holds the map
> > > > tile data from which a map is constructed. If that file is missing,
> > > > well, then no map will be rendered of course.
>
> > > > I don't know why my application package is missing that file. This
> > > > should be handled by the runtime of course. I will now try to manually
> > > > copy that file over from another (working) package to my package and
> > > > check if that'll fix it.
>
> > > > On Oct 17, 3:10 pm, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > > > Do you actually have a location set? I vaguely remember that I once 
> > > > > had the
> > > > > grey screen, where it was not the permission to get the data off the 
> > > > > net,
> > > > > but the fact that the view did not know what/where to view.
> > > > > Ludwig
>
> > > > > 2008/10/17 Matthias <[EMAIL PROTECTED]>
>
> > > > > > That didn't work for me. I am still getting a grey plane where the 
> > > > > > map
> > > > > > should be. :-/
>
> > > > > > Any other ideas?
>
> > > > > > On Aug 20, 9:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > > > Move the uses-permission tags above the application tag:
>
> > > > > > >   > > > > > android:name="android.permission.ACCESS_COARSE_LOCATION"
> > > > > > > />
> > > > > > >    
>
> > > > > > >      > > > > > > android:label="@string/app_name">
> > > > > > >      
>
> > > > > > > On Wed, Aug 20, 2008 at 3:44 AM, dapper <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > Hi there,
>
> > > > > > > > I am just starting out with android and for my first app after 
> > > > > > > > the
> > > > > > > > tutorial I would like to display a Map. I have basically taken 
> > > > > > > > the
> > > > > > > > Sample code and put it into my own project. However I only seem 
> > > > > > > > to get
> > > > > > > > the grey grid and no map. Can anyone help (banging my head 
> > > > > > > > here). I am
> > > > > > > > using 0.9.
>
> > > > > > > > I know it is something stupid but can't see it.
>
> > > > > > > > Thanks
>
> > > > > > > > This is my main.xml
>
> > > > > > > > 
> > > > > > > > http://schemas.android.com/apk/res/
> > > > > > > > android"
> > > > > > > >        android:layout_width="fill_parent"
> > > > > > > >    android:layout_height="fill_parent">
> > > > > > > >     > > > > > > >        android:id="@+id/map"
> > > > > > > >        android:layout_width="fill_parent"
> > > > > > > >        android:layout_height="fill_parent"
> > > > > > > >        android:enabled="true"
> > > > > > > >        android:clickable="true"
> > > > > > > >        android:apiKey="mymapkey"
> > > > > > > >        />
> > > > > > > > 
>
> > > > > > > > My code
>
> > > > > > > > public class HotelCompanion extends MapActivity {
>
> > > > > > > >        MapView mMapView;
>
> > > > > > > >   [EMAIL PROTECTED]
> > > > > > > >    public void onCreate(Bundle savedInstanceState) {
> > > > > > > >        super.onCreate(savedInstanceState);
> > > > > > > >        setContentView(R.layout.main);
> > > > > > > >        MapView map = (MapView) findViewById(R.id.map);
> > > > > > > >        MapController mc = map.getController();
> > > > > > > >        mc.setZoom(9);
> > > > > > > >    }
>
> > > > > > > >       [EMAIL PROTECTED]
> > > > > > > >        protected boolean isRouteDisplayed() {
> > > > > > > >                return false;
> > > > > > > >        }
> > > > > > > > }
>
> > > > > > > > and my manifest
>
> > > > > > > > 
> > > > > > > >  > > > > > > > xmlns:android="http://schemas.android.com/apk/

[android-developers] Re: API for route calcualtions

2008-10-22 Thread TjerkW

Indeed this should be available, .. google wanted a 'open, extensible'
api. So they should add this feature to the api also!

On Sep 26, 3:18 pm, forester404 <[EMAIL PROTECTED]> wrote:
> Hello.
> The maps application on Android can calculate shortest (or best)
> routes between 2 points on the map
> , as used in the 'Directions' function.
> Is there a way to get programmatic access to such functionality, that
> is,
> an API that allows one in his own application to enter 2 locations and
> have Android system calculate
> a path between them ?
> Thank 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] customised list adapter by extending the BaseAdapoter.

2008-10-22 Thread for android
I have created a customised list adapter by extending the BaseAdapoter.


This has many kinds of Views.Thats is button text,etc.How do I control UI
such that I am only able to click the button in the list of items


For example

Suppose this is the list
Text View1 Button1
Text View2 Button2
Text View3 Button3
Text View4 Button4

Now i donot want the text view to be clickable are selectable,how do I
acheive that?


Thanks
Guru

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



[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-10-22 Thread androidian

This doesn't seem to work (setting the hostnameverifier). I get a
ClassCastException on the line:

HttpsURLConnection uc = (HttpsURLConnection)
requestUrl.openConnection();

Here's the stacktrace:

10-22 22:54:11.110: ERROR/AndroidRuntime(192): Caused by:
java.lang.ClassCastException:
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.http.HttpGDataRequest.getRequestConnection(HttpGDataRequest.java:
307)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.http.HttpGDataRequest.(HttpGDataRequest.java:
222)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.http.GoogleGDataRequest.(GoogleGDataRequest.java:
448)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.http.GoogleGDataRequest
$Factory.getRequest(GoogleGDataRequest.java:78)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.Service.createRequest(Service.java:510)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.GoogleService.createRequest(GoogleService.java:
486)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.Service.createFeedRequest(Service.java:890)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.Service.getFeed(Service.java:726)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:583)
10-22 22:54:11.110: ERROR/AndroidRuntime(192): at
com.google.gdata.client.Service.getFeed(Service.java:746)

Of course without making it a HttpsURLConnection, we can't set the
hostname verifier.  So it's a catch 22 situation.

Has anyone actually gotten this working?



On Sep 9, 11:34 pm, stunti <[EMAIL PROTECTED]> wrote:
> You need to modify the code of gdata.
> The certificates used by HttpURLConnection are not available to
> validate thehostnameduring a SSL connexion.
> A small workaround below.
> around line 332 in com.google.gdata.client.http.HttpGDataRequest
>
> You might also want to disable GZIP compression as it seems to messed
> up the content for theXMLparser.
> I don't know if it will be fized within the next release.
>
>     HttpsURLConnection uc = (HttpsURLConnection)
> requestUrl.openConnection();
>     uc.setHostnameVerifier( new X509HostnameVerifier(){
>                 @Override
>                 public boolean verify(String host, SSLSession session) {
>                         // TODO Auto-generated method stub
>                         return true;
>                 }
>
>                 @Override
>                 public void verify(String host, SSLSocket ssl) throws 
> IOException {
>                         // TODO Auto-generated method stub
>                 }
>
>                 @Override
>                 public void verify(String host, X509Certificate cert)
>                                 throws SSLException {
>                         // TODO Auto-generated method stub
>                 }
>
>                 @Override
>                 public void verify(String host, String[] cns, String[] 
> subjectAlts)
>                                 throws SSLException {
>                         // TODO Auto-generated method stub
>                 }
>     });
>
> On Sep 8, 5:24 am, haig <[EMAIL PROTECTED]> wrote:
>
> > I am having similar problems, hope someone can help.
>
> > In my example, "myService" is a GoogleService
>
> > GoogleService myService = new GoogleService("blogger", "exampleCo-
> > exampleApp-1");
>
> > Standalone client works fine, but not in myandroidapp.
>
> > Error from logcat:
>
> >  com.google.gdata.util.AuthenticationException: Error connecting with
> > login URI
> >      at
> > com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(Unknown
> > Source)
> >      at
> > com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(Unknown
> > Source)
> >      at
> > com.google.gdata.client.GoogleService.setUserCredentials(Unknown
> > Source)
> >      at
> > com.google.gdata.client.GoogleService.setUserCredentials(Unknown
> > Source)
> >      at com.travelrecorder.network.Blogger.publish_post(Blogger.java:
> > 32)
> >      at com.travelrecorder.network.AlarmService_Service
> > $1.run(AlarmService_Service.java:71)
> >      at java.lang.Thread.run(Thread.java:914)
> >  Caused by: java.io.IOException:Hostname was not
> > verified
> >      at
> > org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket(HttpConnection.java:
> > 169)
> >      at
> > org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection
> > $HttpsEngine.connect(HttpsURLConnection.java:398)
> >      at
> > org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection...
> > 1129)
> >      at
> > org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getOutputStream(HttpsURLConnect...

[android-developers] Re: Browser based installation fails on G1

2008-10-22 Thread nknize

I'm having a similar issue, but I'm actually hosting the .apk files in
an Oracle database.  Here is a code snippet:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(apkFile), "application/" +
"vnd.android.package-archive");
MainMenuActivity.instance.startActivity(intent);

1.  The apk is successfully saved in /sdcard/download/ with the
original filename.
2. When startActivity(intent) is called.  A "Replace application"
dialog appears (when I have never once installed the application)
saying "The application you are installing will replace another
application."  And the following log is printed:

I/ActivityManager(   52): Starting activity: Intent
{ action=android.intent.action.VIEW data=file:///sdcard/download/
MiniSpaceWarAndroidApplication.apk type=app
lication/vnd.android.package-archive
comp={com.android.packageinstaller/
com.android.packageinstaller.PackageInstallerActivity} }
D/asset   (  313): failed to open Zip archive '/sdcard/download/
MiniSpaceWarAndroidApplication.apk'

3. When the user selects "ok", the InstallAppConfirmation screen comes
up and the following log is printed:

I/ActivityManager(   52): Starting activity: Intent { data=file:///
data/data/com.android.packageinstaller/files/
MiniSpaceWarAndroidApplication.apk comp={com.and
roid.packageinstaller/
com.android.packageinstaller.InstallAppConfirmation} (has extras) }
D/asset   (  313): failed to open Zip archive '/data/data/
com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
D/asset   (  313): failed to open Zip archive '/data/data/
com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk'
I/ActivityManager(   52): Displayed activity
com.android.packageinstaller/.InstallAppConfirmation: 399 ms

4. When the user selects "Install", "Application install unsuccessful"
is displayed and the following log is printed:

I/PackageInstaller(  313): downloaded app uri=file:///data/data/
com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
I/ActivityManager(   52): Starting activity: Intent { data=file:///
data/data/com.android.packageinstaller/files/
MiniSpaceWarAndroidApplication.apk comp={com.and
roid.packageinstaller/com.android.packageinstaller.InstallAppProgress}
(has extras) }
I/ActivityManager(   52): Displayed activity
com.android.packageinstaller/.InstallAppProgress: 146 ms
D/asset   (   52): failed to open Zip archive '/data/app/
vmdl14442.tmp'
W/PackageParser(   52): Unable to read AndroidManifest.xml of /data/
app/vmdl14442.tmp
W/PackageParser(   52): java.io.FileNotFoundException:
AndroidManifest.xml
W/PackageParser(   52): at
android.content.res.AssetManager.openXmlAssetNative(Native Method)
W/PackageParser(   52): at
android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:
471)
W/PackageParser(   52): at
android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:
439)
W/PackageParser(   52): at
android.content.pm.PackageParser.parsePackageName(PackageParser.java:
436)
W/PackageParser(   52): at
com.android.server.PackageManagerService.installPackageLI(PackageManagerService.java:
3102)
W/PackageParser(   52): at
com.android.server.PackageManagerService
$4.run(PackageManagerService.java:3008)
W/PackageParser(   52): at
android.os.Handler.handleCallback(Handler.java:542)
W/PackageParser(   52): at
android.os.Handler.dispatchMessage(Handler.java:86)
W/PackageParser(   52): at android.os.Looper.loop(Looper.java:
123)
W/PackageParser(   52): at
android.os.HandlerThread.run(HandlerThread.java:60)
E/PackageManager(   52): Couldn't find a package name in : /data/app/
vmdl14442.tmp
I/installd(   36): unlink /data/dalvik-cache/
[EMAIL PROTECTED]@[EMAIL PROTECTED]
I/InstallAppProgress(  313): Sleeping for 5 seconds to display screen
D/dalvikvm(   52): GC freed 5799 objects / 287216 bytes in 153ms
I/PackageInstaller(  313): downloaded app uri=file:///data/data/
com.android.packageinstaller/files/MiniSpaceWarAndroidApplication.apk
I/ActivityManager(   52): Starting activity: Intent
{ action=android.intent.action.VIEW data=file:///data/data/
com.android.packageinstaller/files/MiniSpaceWarAn
droidApplication.apk comp={com.android.packageinstaller/
com.android.packageinstaller.InstallAppDone} (has extras) }
D/dalvikvm(  313): GC freed 5228 objects / 349536 bytes in 127ms
I/ActivityManager(   52): Displayed activity
com.android.packageinstaller/.Insta
llAppDone: 304 ms

Questions:

1. Am I calling the intent with the right action? mime type?  It would
appear so.
2. Why does the "Replace application" dialog appear when the
application has never once been installed?
3. Is this method of installing non market apps allowed?

Thanks for all of the help!

- Nick

On Oct 20, 4:44 pm, Mark Hansen <[EMAIL PROTECTED]> wrote:
> Did you set the mime types .apk files on your webserver?
>
> appli

[android-developers] quick question on camera preview format

2008-10-22 Thread Jason Proctor

well, ffmpeg can decode it, so it *is* a real format. but i'm trying 
to decode a little of it myself for nefarious purposes, and ffmpeg is 
a touch difficult to read ;-) so i was hoping someone here knew the 
skinny.



>Its encoding semantics do not seem specified anywhere. Also see
>reported issue 823,
>
>http://code.google.com/p/android/issues/detail?id=823
>
>which I hope will be resolved soon.
>
>Regards
>
>On Oct 22, 2:21 am, Jason Proctor <[EMAIL PROTECTED]> wrote:
>>  it's declared to be YUV422SP. so this is planar with signed 
>>chrominence values?
>>
>>  tia
>

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



[android-developers] Re: Now the source is released what steps do we need to take to port to other hardware?

2008-10-22 Thread Andrew Stadler

Along with the open source release, some new mailing lists have been
set up which are targeted for questions like this.  Take a look at
.

In particular, you may want to subscribe to android-porting.

This list (android-developers) is described as "Discuss developing
Android applications using the Android framework. Get help with
troubleshooting apps, advice on implementation, and strategies for
improving your app's speed and user experience."

Good luck!


On Wed, Oct 22, 2008 at 6:40 AM, Matt <[EMAIL PROTECTED]> wrote:
>
> Now the source is released what steps do we need to take to port to
> other hardware?
>
> In particular I would like to port to the HTC prophet, but I know that
> others will want to port to their own flavours of handset.
>
> However I'd be grateful if someone could point me in the right
> direction of a porting guide, or anything that I can use to get
> started.
>
>
>
> >
>

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



[android-developers] Re: Getting GPS Location in Android 1.0 SDK

2008-10-22 Thread Matthias

Hi,

no, it still doesn't work as expected. It only works when going
through telnet and sending manual fixes using the geo command, but it
never works via ADB and Eclipse GUI. Bummer. I run Linux though, and I
have seen it working on my friend's Windows machine. Is that feature
platform dependent by any chance?

On Oct 16, 8:40 pm, Gautam <[EMAIL PROTECTED]> wrote:
> Thanks Ludwig for pointing me in the right direction :)
>
> I've got it working now and this is how it works for me:
>
> For getLastKnownLocation() to work, the best way is to telnet into the
> emulator geo fix command or DDMS controls using Eclipse.
> Without using one of these options above to set the location, the
> method will return null.
>
> A better way is to get the LocationAPISample and geo_sample_data 
> fromhttp://groups.google.com/group/android-developers/files
>
> The LocationSample registers a LocationListener so we keep getting
> location updates instead of just one location value plus the .gpx file
> can be used to set locations or simulate a path (cool!)
>
> @Matthias
> Let me know if my pointers help you or we can continue working to get
> this working for you as well.
>
> Thanks everyone,
> Gautam
>
> On Oct 16, 1:36 pm, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > There has been a recent exchange over 
> > this:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > Apologies if I missed a more specific problem in your question.
>
> > Ludwig
>
> > 2008/10/16 Matthias <[EMAIL PROTECTED]>
>
> > > anyone found a solution? I am still struggling over 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting source under Windows (from web interface).

2008-10-22 Thread sahn0

Also, as I just discovered, there is that lovely 'snapshot' link, in
'tree' view. Which results in .tar.gz archive.

On 22 окт, 20:23, Anm <[EMAIL PROTECTED]> wrote:
> There is a port of git in Cygwin.  It works just fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: quick question on camera preview format

2008-10-22 Thread blindfold

I noticed that data.length in the callback gave twice the number of
pixels, implying a 16 bits per pixel encoding as was discussed at

http://groups.google.com/group/android-developers/browse_thread/thread/434c60a275f3cc6f

Does ffmpeg not have some properties dialog or something such that
more information can be gleaned about the YUV422SP encoding details?

On Oct 22, 5:12 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> well, ffmpeg can decode it, so it *is* a real format. but i'm trying
> to decode a little of it myself for nefarious purposes, and ffmpeg is
> a touch difficult to read ;-) so i was hoping someone here knew the
> skinny.

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



[android-developers] quick question on camera preview format

2008-10-22 Thread Jason Proctor

yes, but the issue is whether the encoding is chunky or planar, and 
whether the chrominence values are signed. the "SP" on the end of the 
format implies both, but my decoder isn't having much luck either way.

ffmpeg is a command line program. i'm trucking through the source, 
but some of it reads a little like Martian :-)

thanks for the response. it's no big deal, i can keep trucking. i 
hoped someone on the 'droid team could provide a quick authoritative 
answer.



>I noticed that data.length in the callback gave twice the number of
>pixels, implying a 16 bits per pixel encoding as was discussed at
>
>http://groups.google.com/group/android-developers/browse_thread/thread/434c60a275f3cc6f
>
>Does ffmpeg not have some properties dialog or something such that
>more information can be gleaned about the YUV422SP encoding details?
>
>On Oct 22, 5:12 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
>>  well, ffmpeg can decode it, so it *is* a real format. but i'm trying
>>  to decode a little of it myself for nefarious purposes, and ffmpeg is
>>  a touch difficult to read ;-) so i was hoping someone here knew the
>>  skinny.
>
>

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



[android-developers] About Android Mobile Programming

2008-10-22 Thread Arjun Bajaj

Is it possible that can we make applications in The Android Phone for
Android. Can we program and build some apps in any language like Java,
XML, C# in the Phone and run it in the phone.
Please Reply at - [EMAIL PROTECTED]
Please Join My Google Group at - 
http://groups.google.com/group/android-dev-center?hl=en
Please visit My Blog at - arjunbajaj.blogspot.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MediaPlayer output monochrome video

2008-10-22 Thread muddog

Hi

I'm porting Android 1.0 to freescale mx31 3stack board.
And now the MediaPlayer is ready to play 3gp file, but it played video
with monochrome output, no colors at all.
I have tried many 3gp file, got the same result. But the video is
played well on emulator.

What's the problem?
Anybody has met that before?

The following is DispalySurface info:

I/EGLDisplaySurface( 1807): using (fd=22)
I/EGLDisplaySurface( 1807): id   = DISP3 BG
I/EGLDisplaySurface( 1807): xres = 480 px
I/EGLDisplaySurface( 1807): yres = 640 px
I/EGLDisplaySurface( 1807): xres_virtual = 480 px
I/EGLDisplaySurface( 1807): yres_virtual = 1280 px
I/EGLDisplaySurface( 1807): bpp  = 16
I/EGLDisplaySurface( 1807): r= 11:5
I/EGLDisplaySurface( 1807): g=  5:6
I/EGLDisplaySurface( 1807): b=  0:5
I/EGLDisplaySurface( 1807): width= 51 mm (239.058823 dpi)
I/EGLDisplaySurface( 1807): height   = 38 mm (427.789459 dpi)
I/EGLDisplaySurface( 1807): refresh rate = 71.36 Hz

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



[android-developers] Can't debug apps on G1

2008-10-22 Thread bhines

I can't seem to debug on the G1. "Run' works fine, but i can't get any
debugger to connect. The app just hangs on 'Waiting for Debugger"

The emulator works fine.

This is on OS X 10.5.5 with Eclipse SDK 3.4.1. (standard install)

The "Ignoring DDM send req " from dalvikvm looks suspicious to me.
USB debugging is ON on the phone, and this affects all android apps...
any ideas?
I've tried all the things on
http://code.google.com/android/kb/troubleshooting.html without
success, as well as searched the archives.


logCat output:

D/AndroidRuntime(  479): >> AndroidRuntime START
<<
D/AndroidRuntime(  479): CheckJNI is OFF
D/dalvikvm(   59): GC freed 4815 objects / 385288 bytes in 344ms
D/AndroidRuntime(  479): --- registering native functions ---
I/jdwp(  479): received file descriptor 16 from ADB
D/dalvikvm(  108): GC freed 57 objects / 2400 bytes in 316ms
D/ActivityManager(   59): Uninstalling process
com.example.android.apis
I/ActivityManager(   59): Starting activity: Intent { flags=0x1000
comp={com.example.android.apis/com.example.android.apis.ApiDemos} }
D/AndroidRuntime(  479): Shutting down VM
D/dalvikvm(  479): DestroyJavaVM waiting for non-daemon threads to
exit
I/dalvikvm(  479): DestroyJavaVM shutting VM down
D/dalvikvm(  479): HeapWorker thread shutting down
D/dalvikvm(  479): HeapWorker thread has shut down
D/jdwp(  479): JDWP shutting down net...
D/jdwp(  479): +++ peer disconnected
I/dalvikvm(  479): Debugger has detached; object registry had 1
entries
D/dalvikvm(  479): VM cleaning up
I/ActivityManager(   59): Start proc com.example.android.apis for
activity com.example.android.apis/.ApiDemos: pid=488 uid=10031
gids={1006, 3003}
D/dalvikvm(  479): LinearAlloc 0x0 used 541284 of 4194304 (12%)
I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=38
I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=52
W/ActivityThread(  488): Application com.example.android.apis is
waiting for the debugger on port 8100...
I/System.out(  488): Sending WAIT chunk
I/dalvikvm(  488): Ignoring DDM send req for type=0x57414954 len=1
I/ActivityManager(   59): Stopping service:
com.android.vending/.PackageMonitorReceiver
$UpdateCheckinDatabaseService
W/ActivityManager(   59): Launch timeout has expired, giving up wake
lock!
W/ActivityManager(   59): Activity idle timeout for
HistoryRecord{4318c480 {com.example.android.apis/
com.example.android.apis.ApiDemos}}
D/dalvikvm(  273): GC freed 667 objects / 42264 bytes in 77ms
D/dalvikvm(  235): GC freed 1453 objects / 62552 bytes in 101ms

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



[android-developers] Trying to download Android source - repo sync connection reset

2008-10-22 Thread Rob Franz

For some odd reason, I can't ever complete repo sync - connection
always resets after an arbitrary amount of time.

Has anyone noticed this kind of thing before?

Thanks
Rob

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



[android-developers] Location Based Services

2008-10-22 Thread BarbieDahl

Hello Everyone,

I am trying to use Androids location based services and I was
wondering if there are code samples available that show how to plot
points from a .kml or .gpx file on a map.  I have found many examples
using m5 but nothing for m9 or release 1.0.  Can someone help me?

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



[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-22 Thread bhines

this sounds like my problem as well.

This really should be mentioned on 
http://code.google.com/android/intro/develop-and-debug.html

thanks,

-Ben

On Oct 21, 8:42 pm, nkijak <[EMAIL PROTECTED]> wrote:
> That possibly did the trick.  I had to restart the phone.  Maybe for
> the "Debug when USB" thing to take effect?
>
> Thanks
>
> On Oct 21, 11:33 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > To debug on devices you need to set the 'debuggable' attribute of the
> > application node to true (in AndroidManifest.xml).
>
> > Make sure to set it back to false before releasing your application.
>
> > Xav
>
> > On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>
> > > I can't seem to get the eclipse debugger to attach to the G1.  I can
> > > select "Debug" from the run menu and it will compile and launch the
> > > app on the phone but eclipse never enters the debug perspective (or
> > > even asks to). The phone sits with a "Waiting for Debugger" message
> > > dialog.
> > > When I enter the Android perspective I can see the device attached,
> > > see log entries, take screenshots but I cannot see process listings
> > > and "restarting adb" results in 11 failed attempts to connect.
> > > Is there some other configuration I need to adjust in eclipse, perhaps
> > > a port number?
>
> > > Thanks,
> > > Nick

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



[android-developers] no icon in menu after install apk files to /data/app in target board

2008-10-22 Thread [EMAIL PROTECTED]

api_demo and snake icon is in menu after abd install in emulator. but
no icon in target.
emulator:
D:\andriod\android-sdk-windows-1.0_r1\tools>adb.exe shell
# cd /data/app
cd /data/app
# ls
ls
com.example.android.apis.apk
com.example.android.snake.apk
#

Target:
# cd /data/app
# ls
com.example.android.apis.apk
snake.apk
#

any idea?

Thanks
Sam

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



[android-developers] Re: MAC address?

2008-10-22 Thread an0mally

Hello, this may be the wrong place for this but how can I change the
wi-fi mac address ?

On Oct 19, 12:42 pm, Tauno T <[EMAIL PROTECTED]> wrote:
> Just a note - this string is "null" in emulator and any application
> can change the value of the string if it wants to (provided they have
> the WRITE_SETTINGS permission).
>
> Tauno
>
> On Oct 18, 1:36 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > Al Sutton wrote:
> > > Just by looking at the docs, what about getting ANDROID_ID from the
> > > System Settings?
>
> > > The docs at
> > >http://code.google.com/android/reference/android/provider/Settings.Sy...
> > > say;
>
> > >         public static final String
> > >         
> > >         ANDROID_ID
>
> > > The Android ID (a unique 64-bit value) as a hex string. Identical to
> > > that obtained by calling GoogleLoginService.getAndroidId(); it is also
> > > placed here so you can get it without binding to a service.
> > > Constant Value: "android_id"
>
> > Ooo!
>
> > That's got possibilities! It doesn't really say what the universe of
> > "unique" is, but since it's static, one would hope it is unique to the
> > device.
>
> > I'll try it out later this morning -- many thanks!
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 
> > 2009http://www.bignerdranch.com/schedule.shtml

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Romkin

I wonder how one can actually go into the function from native library
while running java activity? (debugging purposes)

On Oct 21, 10:09 pm, hackbod <[EMAIL PROTECTED]> wrote:
> On Oct 21, 1:32 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> > So is Google going to provide examples of how third parties can write
> > application directories with the same level of integration into the
> > phone as Marketplace has?
>
> The only special integration the Android Market has is that it can use
> the direct call to install an app instead of going through the system
> install UI, and all this does is allow it to do the permission
> confirmation check before the user downloads an app instead of after.
> The only reason why market can do this is because it is bundled as
> part of the system image; if it wasn't, it wouldn't be able to do
> that, and likewise if someone else has a carrier bundle their app with
> a phone then they can do all of the same stuff.
>
> Also the purpose here is not to give the Android Market a special
> advantage, but to protect users: NO application installed as a third
> party app can directly install other applications, because that would
> effectively give it permission to everything in the world on the phone
> (because it could just install another app with any permissions it
> wants, with no confirmation by the user).  We thought this was a
> little too dangerous to allow, especially for the small benefit it
> provides.
>
> (Btw, Market -is- using some public APIs, in particular a download
> manager, that are not yet available in the SDK.  This is however
> something you can write yourself, and it is also an API we plan to
> make available to all apps in the future, we just didn't have time to
> get it ready for 1.0.)

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



[android-developers] Re: GPRS configuration

2008-10-22 Thread OBAADENUSI

denismo
   I DONT KNOW HOW YOU WANT US TO HELP YOU WITH UR GPRS/PACKET DATA
CONNECTION CAUSE WILL DONT KNOW THE TYPE OF PHONE YOU ARE USING.

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



[android-developers] any demo code for speech recognizer part

2008-10-22 Thread dingguozhi User

Dear All,
I am interesting in speech recognizer part of Android SDK.
Is there any demo code for speech recognizer part?
thank u all!

your truly,
guozhi ding



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



[android-developers] Intent for sending email

2008-10-22 Thread dbradby

Hi,

I want to be able to send an email in my application, however I'm not
interested in the user entering their mail details/SMTP server. I
would like to forward the user off to another application that handles
email/contact selection.

It seems I should be able to use the Intent.ACTION_SEND.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "email text");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "subject");

startActivity(Intent.createChooser(sendIntent, "Chooser 
Title:"));

But the emulator tells me "No applications can perform this action."

Will the G1 with an email client and GMail potentially handle this
intent correctly?

Is it possible to get the GMail app installed on the emulator?

Thanks!

Daniel

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



[android-developers] Problem download source code in linux (ubuntu 8.04)

2008-10-22 Thread FERjon

I am having this problem when doing "repo sync" to get the source
code.

 :~$repo sync
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/bootloader/legacy

I get this error as the download progresses. How can I solve this
problem?


FerJon

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



[android-developers] Android email client

2008-10-22 Thread solid

I just got my brand new G1 and I was setting up my email client for my
server.  I am using imaps (port 993) with a self signed cert.
Actually it is signed by startcom (http://www.startcom.org/).
Whenever I set the configs, I get the Not trusted certificate error.
Is there a way to install a new trusted authority?  Or is there a way
to accept a certificate for all of android?  What is the timeline on
fixing the email client.

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



[android-developers] Re: ADB via USB

2008-10-22 Thread Mark Murphy

Xavier Ducrohet wrote:
> Developing on a device is very similar to using the emulator.
> Once you have enabled USB debugging in your device, it'll just work,
> as adb and DDMS will see your device.

I'm in the same boat as the OP. Here are details:

On the G1, I have "USB debugging" and "Stay awake" both checked. I also 
have the "Use for USB storage" option unchecked, though I've tried it 
both ways.

I plug the G1 into my Ubuntu 8.04 machine via a powered USB hub, and it 
is recognized:

Oct 22 12:07:51 nc8000 kernel: [1073867.494452] usb 4-1.4.3: new high 
speed USB device using ehci_hcd and address 19
Oct 22 12:07:51 nc8000 kernel: [1073867.627427] usb 4-1.4.3: 
configuration #1 chosen from 1 choice
Oct 22 12:07:51 nc8000 kernel: [378864.537868] scsi9 : SCSI emulation 
for USB Mass Storage devices
Oct 22 12:07:56 nc8000 kernel: [1073876.329063] scsi 9:0:0:0: 
Direct-Access HTC  Android Phone0100 PQ: 0 ANSI: 2
Oct 22 12:07:57 nc8000 kernel: [1073876.345904] sd 9:0:0:0: [sdc] 
Attached SCSI removable disk
Oct 22 12:07:57 nc8000 kernel: [1073876.346023] sd 9:0:0:0: Attached 
scsi generic sg3 type 0

But I get no love from adb:

[EMAIL PROTECTED]:~$ adb devices
List of devices attached
emulator-5554   device

It shows my running emulator instance and nothing else.

If I close up the emulator and try the steps all over again:

[EMAIL PROTECTED]:~$ adb devices
List of devices attached

What's curious is that I don't get "no device" per the instructions. I 
also see no sign of it via lspci -v or lspci -vv.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-developers] DDMS & 64bit Windows

2008-10-22 Thread Chris A

Hello folks,

I'm on Windows Vista Business x64, and have trouble running DDMS.bat
from the 1.0 r1 release of the Android SDK. I get the following
Exception:

05:23 E/ddms: shutting down due to uncaught exception
05:23 E/ddms: java.lang.UnsatisfiedLinkError: C:\Users\Chris\Projects
\android-sdk-windows-1.0_r1\tools\lib\swt-win32-3236.dll: Can't load
IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
123)
at org.eclipse.swt.internal.win32.OS.(OS.java:18)
at org.eclipse.swt.graphics.FontData.(FontData.java:259)
at com.android.ddms.PrefsDialog.setDefaults(PrefsDialog.java:
198)
at com.android.ddms.PrefsDialog.init(PrefsDialog.java:140)
at com.android.ddms.Main.main(Main.java:74)

Judging from the exception I've noticed two things: It appears this is
x32 only and there isn't anything available for x64, and I'm screwed
until there is an offering for x86. I have two computers which are
both running different versions of Windows Vista x64 and this will
prevent me from using DDMS, and doing any direct debugging on my phone
from my computer.

Is there any chance that an x64 version will be included in the
future, or am I resulted to developing strictly emulator and figuring
out some magical process for uploading applications to my phone (not
that DDMS appears to do this, but I have a feeling it might)?

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



[android-developers] Re: Can't debug apps on G1

2008-10-22 Thread Romain Guy

Did you set android:debuggable="true" in your AndroidManifest?

On Tue, Oct 21, 2008 at 7:26 PM, bhines <[EMAIL PROTECTED]> wrote:
>
> I can't seem to debug on the G1. "Run' works fine, but i can't get any
> debugger to connect. The app just hangs on 'Waiting for Debugger"
>
> The emulator works fine.
>
> This is on OS X 10.5.5 with Eclipse SDK 3.4.1. (standard install)
>
> The "Ignoring DDM send req " from dalvikvm looks suspicious to me.
> USB debugging is ON on the phone, and this affects all android apps...
> any ideas?
> I've tried all the things on
> http://code.google.com/android/kb/troubleshooting.html without
> success, as well as searched the archives.
>
>
> logCat output:
>
> D/AndroidRuntime(  479): >> AndroidRuntime START
> <<
> D/AndroidRuntime(  479): CheckJNI is OFF
> D/dalvikvm(   59): GC freed 4815 objects / 385288 bytes in 344ms
> D/AndroidRuntime(  479): --- registering native functions ---
> I/jdwp(  479): received file descriptor 16 from ADB
> D/dalvikvm(  108): GC freed 57 objects / 2400 bytes in 316ms
> D/ActivityManager(   59): Uninstalling process
> com.example.android.apis
> I/ActivityManager(   59): Starting activity: Intent { flags=0x1000
> comp={com.example.android.apis/com.example.android.apis.ApiDemos} }
> D/AndroidRuntime(  479): Shutting down VM
> D/dalvikvm(  479): DestroyJavaVM waiting for non-daemon threads to
> exit
> I/dalvikvm(  479): DestroyJavaVM shutting VM down
> D/dalvikvm(  479): HeapWorker thread shutting down
> D/dalvikvm(  479): HeapWorker thread has shut down
> D/jdwp(  479): JDWP shutting down net...
> D/jdwp(  479): +++ peer disconnected
> I/dalvikvm(  479): Debugger has detached; object registry had 1
> entries
> D/dalvikvm(  479): VM cleaning up
> I/ActivityManager(   59): Start proc com.example.android.apis for
> activity com.example.android.apis/.ApiDemos: pid=488 uid=10031
> gids={1006, 3003}
> D/dalvikvm(  479): LinearAlloc 0x0 used 541284 of 4194304 (12%)
> I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=38
> I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=52
> W/ActivityThread(  488): Application com.example.android.apis is
> waiting for the debugger on port 8100...
> I/System.out(  488): Sending WAIT chunk
> I/dalvikvm(  488): Ignoring DDM send req for type=0x57414954 len=1
> I/ActivityManager(   59): Stopping service:
> com.android.vending/.PackageMonitorReceiver
> $UpdateCheckinDatabaseService
> W/ActivityManager(   59): Launch timeout has expired, giving up wake
> lock!
> W/ActivityManager(   59): Activity idle timeout for
> HistoryRecord{4318c480 {com.example.android.apis/
> com.example.android.apis.ApiDemos}}
> D/dalvikvm(  273): GC freed 667 objects / 42264 bytes in 77ms
> D/dalvikvm(  235): GC freed 1453 objects / 62552 bytes in 101ms
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Problem download source code in linux (ubuntu 8.04)

2008-10-22 Thread Rob Franz
I see this one too - I posted about this earlier.  If you find out the
cause, please share!

On Wed, Oct 22, 2008 at 2:41 AM, FERjon <[EMAIL PROTECTED]> wrote:

>
> I am having this problem when doing "repo sync" to get the source
> code.
>
>  :~$repo sync
> fatal: The remote end hung up unexpectedly
> error: Cannot fetch platform/bootloader/legacy
>
> I get this error as the download progresses. How can I solve this
> problem?
>
>
> FerJon
>
> >
>

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



[android-developers] Re: Problem download source code in linux (ubuntu 8.04)

2008-10-22 Thread Rob Franz
It looks like I finally got it completed:
[EMAIL PROTECTED] /store/android $ repo sync
remote: Counting objects: 62, done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 62 (delta 13), reused 62 (delta 13)
Unpacking objects: 100% (62/62), done.
>From git://android.git.kernel.org/platform/system/extras
 * [new branch]  master -> korg/master
 * [new branch]  release-1.0 -> korg/release-1.0
 * [new tag] android-1.0 -> android-1.0

Initializing project platform/system/wlan/ti ...
remote: Counting objects: 589, done.
remote: Compressing objects: 100% (333/333), done.
remote: Total 589 (delta 240), reused 589 (delta 240)
Receiving objects: 100% (589/589), 1.89 MiB | 850 KiB/s, done.
Resolving deltas: 100% (240/240), done.
>From git://android.git.kernel.org/platform/system/wlan/ti
 * [new branch]  master -> korg/master
 * [new branch]  release-1.0 -> korg/release-1.0
 * [new tag] android-1.0 -> android-1.0
Checking out files: 100% (5583/5583), done.
Checking out files: 100% (2143/2143), done.
Checking out files: 100% (393/393), done.
Checking out files: 100% (58/58), done.
Checking out files: 100% (91/91), done.
Checking out files: 100% (3772/3772), done.
Checking out files: 100% (211/211), done.
Checking out files: 100% (2828/2828), done.
Checking out files: 100% (1099/1099), done.
Checking out files: 100% (449/449), done.
Checking out files: 100% (888/888), done.
Checking out files: 100% (7861/7861), done.
Checking out files: 100% (3969/3969), done.
Checking out files: 100% (23897/23897), done.
Checking out files: 100% (118/118), done.
Checking out files: 100% (720/720), done.
[EMAIL PROTECTED] /store/android $

Took a look and the source is there.  I think you just need to keep retrying
until it doesn't time out.

-rob


On Wed, Oct 22, 2008 at 12:19 PM, Rob Franz <[EMAIL PROTECTED]> wrote:

> I see this one too - I posted about this earlier.  If you find out the
> cause, please share!
>
>
> On Wed, Oct 22, 2008 at 2:41 AM, FERjon <[EMAIL PROTECTED]> wrote:
>
>>
>> I am having this problem when doing "repo sync" to get the source
>> code.
>>
>>  :~$repo sync
>> fatal: The remote end hung up unexpectedly
>> error: Cannot fetch platform/bootloader/legacy
>>
>> I get this error as the download progresses. How can I solve this
>> problem?
>>
>>
>> FerJon
>>
>> >>
>>
>

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



[android-developers] Announce Bookworm Android

2008-10-22 Thread pskink
hi,

i just finished first stage of my first android app - Bookworm
Android.

it is dictionary app with fast entry access thanks to T9 input method.

dictionaries have built-in btree index so even huge ones (~1 million
entries) can be searched with up to five phisical disk reads.

as i said this is the first stage (finished data access) and still ui
is not in the final form so i'd happy to receive any suggestions when
it comes to ui part.

for more info (wiki help, .apk and sample dictionaries) please refer
to:

http://code.google.com/p/android-bookworm

files are under Downloads tab

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 12:49 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> Friendly suggestion, read up on the lawsuits against Microsoft for not
> releasing API details (here's a recent 
> onehttp://www.theregister.co.uk/2008/02/21/microsoft_goes_open/)

http://git.source.android.com/

Exactly what details haven't been released?

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



[android-developers] Marketplace details now available

2008-10-22 Thread Al Sutton

http://android-developers.blogspot.com/2008/10/android-market-now-available-for-users.html

Al
http://andappstore.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 12:46 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> Waaahh.. Since when has installing apps without user
> intervention been a good thing?,  and if it is a good thing why is it
> reserved for Googles apps?

It's not a good thing.  It's just that the Android Market client that
is shipped with the phone makes sure to take care of this before the
app is downloaded.

> I'm sure most app developers would LOVE to be able to install updates
> without having to force the user through the same permission set
> agreements each time the user gets a new version.

No, you wouldn't, and Market doesn't do that either.  That would be
bad, because the user may not be aware of the previous permissions,
and the app may use new permissions.

And this one good reason why, at least for now, not allowing third
party apps to directly install without going through the system UI is
a good thing, because this is a -huge- opportunity for security
problems that mis-designed or buggy applications can open up.

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 3:37 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> My main concern is that Marketplace seems to be an obvious example of
> where a bundled app is getting an unfair advantage just because it's an
> approved application. This would also extend to diallers, from what
> hackbod has said it would appear that any dialler written by a third
> party won't be able to call emergency services, which is kind of crazy.

I agree that not being able to do emergency phone calls is
unfortunate, but there was a lot of concern about that from a security
perspective and the potential for abuse, so that is what we have.

One more time: I have posted on multiple occasions here the few things
I know of that third party apps can't do for 1.0, due to schedule
limitations for the work required or basic security reasons, so this
isn't something that has been hidden.  If you look at what is limited,
it is really rather small, in fact I think we have hit pretty much all
of them.  For a 1.0 release I am quite happy with what we have, and in
a -lot- of places we have managed to push how open things are to a
significant degree.  This of course isn't the end of things, and we'll
continue to evolve as we see what actually happens with devices out
there.

> imho, on an open platform all apps should be equal.

Nobody is disagreeing with you.

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



[android-developers] Re: Req Info abt DDMS tool

2008-10-22 Thread Dipen

Hi, Amit !

See following post, I have post the solution. I had smiliar problem
few months back when I started using Android.

http://groups.google.com/group/android-developers/browse_thread/thread/9894b3ef3415570b/defd490ab40acbf9?lnk=gst&q=ddms#defd490ab40acbf9

Regards,
Dipen

On Oct 15, 7:01 am, Amit <[EMAIL PROTECTED]> wrote:
> Hello Friends,
>
> Can u plz tell me how to use theDDMStool, I never get my application
> in the left pane. How can i useDDMSfor getting information about my
> application.
>
> Is there any documentation available forDDMStool other than the one
> provided in android documentation.
>
> If i dont use theDDMStool, instead use theDDMSperspective inside
> eclipse, i get my application in the left pane, but dont get
> Allocation Tracker Tab in the right pane, is there any option/setting
> to get this tab inDDMSperspective.
>
> Also, tell me if there is any other way to get application level
> details like memory usage and timing information.
>
> Any help appreciated.
>
> Thanks & Regards
> Amit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] R.java is never, ever, ever, ever, ever regenerated

2008-10-22 Thread misbell

I have tried everything, including the laughable suggestion of
restarting Eclipse, which of course didn't work.

There is nothing wrong with my manifest file.

The app worked perfectly until I changed it.

Then I changed added a new PNG and changed the name in the main.xml
file.

After that nothing worked because the R,java file was not updated.

Build Automatically is turned on.

using Eclipse Ganymede. Runs every demo Android app perfectly.

I mean, you have got to be kidding me. There is NO WAY to just press a
button, issue a command and regenerate the R.java file?

LOL LOL LOL What a waste of my freaking morning. What a complete and
utter waste of several hours of my time. I am laughing because I am so
pi$$ed off I can't even think of something sarcastic enough to say.

Three months of smooth iPhone development and now I am stuck having to
work with this gimrackety piece of junk.

Ok, now that I've ranted, any solutions?

M

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



[android-developers] Re: Problem download source code in linux (ubuntu 8.04)

2008-10-22 Thread Maarek

OPEN Repo and look at the link provided.

here's the new command to run repo

$ curl http://android.git.kernel.org/repo >~/bin/repo

Than the correct data will be there.

go into your "mydroid" directory and run the command they listed.

$ repo init -u git://android.git.kernel.org/platform/manifest.git

that'll start the download of the files.

finally, sync it.

$ repo sync

that's it, everything's in the mydroid directory.

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



[android-developers] Emulator clock app are not the same time with the display on top bar

2008-10-22 Thread ubuntu_user

Has anyone noticed that the time on the clock application and the time
on the top bar is not the same? It is the same when they first started
out. But then after that the one on the top bar stop updating. Is it
me?

Cheers,

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



[android-developers] Re: If delete R.java, how how can recover it?

2008-10-22 Thread misbell


No one answered this question.

Build Automatically is checked in Eclipse. Still doesn't regenerate
R.java. (Ganymede).

Also, whenit existed, I made a change to main.xml, r.java was NOT
regenerated.

There is nothing whatsoever wrong with my manifest file. The app ran
perfectly before I dared to alter the XML.

This is flakey beyond belief.

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton

It's not necessarily what hasn't been released in documentation/source 
form, it's the measures which could be seen as steps taken to 
deliberately ensure that competitors can't access the same functionality 
as is available to approved applications which have been signed by the 
platform certificate.

 From what you've said it is impossible for anyone else to deliver an 
updater which will allow the user to install an updated version of the 
application without having to go through the system UI (Does Marketplace 
have to do that?) . It would be impossible for a third party to write a 
comprehensive dialling interface because it would be blocked from making 
emergency services calls (Is the shipped dialler blocked from doing 
that?). 

It took a lot of complaints to get the anti-trust suits started, and 
they were all based around functionality which wasn't available to third 
parties, isn't that what you've just said Android has?

Al.

hackbod wrote:
> On Oct 22, 12:49 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>   
>> Friendly suggestion, read up on the lawsuits against Microsoft for not
>> releasing API details (here's a recent 
>> onehttp://www.theregister.co.uk/2008/02/21/microsoft_goes_open/)
>> 
>
> http://git.source.android.com/
>
> Exactly what details haven't been released?
>
> >
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Market Place and Trial Software?

2008-10-22 Thread cyntacks

Ok, so the Market Place will be live on Monday, AWESOME! AWESOME!
AWESOME!

But here is a question for all you developers like us who are hoping
to make some revenue off months of hard work.

Does the API currently support a way to make our applications "trial
software"? That is, making them free until "March 1st" or some other
date, at which time the user will have to pay?

Obviously getting on the phone and receiving user reviews is extremely
important, but giving away all of our hard work "just seems wrong". I
have read that over 1 million people have pre-ordered the phone, that
is a lot of free software giveaways..

What is everyone else doing? Waiting? Sayhing the heck with it and
deploying? Just looking for some advice.

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



[android-developers] Loading application to actual device through Eclipse?

2008-10-22 Thread Danny

I have created an application and would like to know how to load the
application onto an actual device through Eclipse.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to debug the source code using Eclipse

2008-10-22 Thread [EMAIL PROTECTED]

Hi

I have downloaded the Android source code. How do we add all the
source code files to an Android project in Eclipse so that we can
debug the code ?


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



[android-developers] Re: Can't debug apps on G1

2008-10-22 Thread bhines

Indeed I did not.. that isn't mentioned in the docs. :)

http://code.google.com/android/intro/develop-and-debug.html

A search for 'debuggable' on the site does not find any mention of the
property other than reference materials (and who reads every single
API reference page?)

-Ben

On Oct 22, 9:25 am, "Romain Guy" <[EMAIL PROTECTED]> wrote:
> Did you set android:debuggable="true" in your AndroidManifest?
>
>
>
> On Tue, Oct 21, 2008 at 7:26 PM, bhines <[EMAIL PROTECTED]> wrote:
>
> > I can't seem to debug on the G1. "Run' works fine, but i can't get any
> > debugger to connect. The app just hangs on 'Waiting for Debugger"
>
> > The emulator works fine.
>
> > This is on OS X 10.5.5 with Eclipse SDK 3.4.1. (standard install)
>
> > The "Ignoring DDM send req " from dalvikvm looks suspicious to me.
> > USB debugging is ON on the phone, and this affects all android apps...
> > any ideas?
> > I've tried all the things on
> >http://code.google.com/android/kb/troubleshooting.htmlwithout
> > success, as well as searched the archives.
>
> > logCat output:
>
> > D/AndroidRuntime(  479): >> AndroidRuntime START
> > <<
> > D/AndroidRuntime(  479): CheckJNI is OFF
> > D/dalvikvm(   59): GC freed 4815 objects / 385288 bytes in 344ms
> > D/AndroidRuntime(  479): --- registering native functions ---
> > I/jdwp    (  479): received file descriptor 16 from ADB
> > D/dalvikvm(  108): GC freed 57 objects / 2400 bytes in 316ms
> > D/ActivityManager(   59): Uninstalling process
> > com.example.android.apis
> > I/ActivityManager(   59): Starting activity: Intent { flags=0x1000
> > comp={com.example.android.apis/com.example.android.apis.ApiDemos} }
> > D/AndroidRuntime(  479): Shutting down VM
> > D/dalvikvm(  479): DestroyJavaVM waiting for non-daemon threads to
> > exit
> > I/dalvikvm(  479): DestroyJavaVM shutting VM down
> > D/dalvikvm(  479): HeapWorker thread shutting down
> > D/dalvikvm(  479): HeapWorker thread has shut down
> > D/jdwp    (  479): JDWP shutting down net...
> > D/jdwp    (  479): +++ peer disconnected
> > I/dalvikvm(  479): Debugger has detached; object registry had 1
> > entries
> > D/dalvikvm(  479): VM cleaning up
> > I/ActivityManager(   59): Start proc com.example.android.apis for
> > activity com.example.android.apis/.ApiDemos: pid=488 uid=10031
> > gids={1006, 3003}
> > D/dalvikvm(  479): LinearAlloc 0x0 used 541284 of 4194304 (12%)
> > I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=38
> > I/dalvikvm(  488): Ignoring DDM send req for type=0x41504e4d len=52
> > W/ActivityThread(  488): Application com.example.android.apis is
> > waiting for the debugger on port 8100...
> > I/System.out(  488): Sending WAIT chunk
> > I/dalvikvm(  488): Ignoring DDM send req for type=0x57414954 len=1
> > I/ActivityManager(   59): Stopping service:
> > com.android.vending/.PackageMonitorReceiver
> > $UpdateCheckinDatabaseService
> > W/ActivityManager(   59): Launch timeout has expired, giving up wake
> > lock!
> > W/ActivityManager(   59): Activity idle timeout for
> > HistoryRecord{4318c480 {com.example.android.apis/
> > com.example.android.apis.ApiDemos}}
> > D/dalvikvm(  273): GC freed 667 objects / 42264 bytes in 77ms
> > D/dalvikvm(  235): GC freed 1453 objects / 62552 bytes in 101ms
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem download source code in linux (ubuntu 8.04)

2008-10-22 Thread [EMAIL PROTECTED]

me too .. on my Mac I always get:

$ repo sync
git.webkit.org[0: 74.86.47.130]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
error: Cannot fetch platform/external/webkit

too bad .. didn't find a solution yet, other than retrying .. without
success so far :-(


On Oct 22, 6:19 pm, "Rob Franz" <[EMAIL PROTECTED]> wrote:
> I see this one too - I posted about this earlier.  If you find out the
> cause, please share!
>
> On Wed, Oct 22, 2008 at 2:41 AM, FERjon <[EMAIL PROTECTED]> wrote:
>
> > I am having this problem when doing "repo sync" to get the source
> > code.
>
> >  :~$repo sync
> > fatal: The remote end hung up unexpectedly
> > error: Cannot fetch platform/bootloader/legacy
>
> > I get this error as the download progresses. How can I solve this
> > problem?
>
> > FerJon

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



[android-developers] Quick notes on getting G1 and adb goign

2008-10-22 Thread Mark Murphy

Many thanks to zhobbs and the guys on IRC!

If you're having problems getting G1 and adb behaving on Linux, kill off 
the running adb process (sudo pkill adb, or possibly adb kill-server -- 
didn't try that one). That cleared things up -- adb devices showed the 
device, and adb install installed the app.

At this point, if you have no emulator running, adb commands (e.g., adb 
install) should route to the device. If you have an emulator running, 
use the -s switch to route the command to the appropriate device (e.g., 
adb -s deviceidhere shell). In the example, deviceidhere is the 
identifier listed via adb devices.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread Al Sutton


>> I'm sure most app developers would LOVE to be able to install updates
>> without having to force the user through the same permission set
>> agreements each time the user gets a new version.
>> 
>
> No, you wouldn't, and Market doesn't do that either.  That would be
> bad, because the user may not be aware of the previous permissions,
> and the app may use new permissions.
>   

But if they've already granted the permissions to the app surely they 
should only be asked about new permissions needed for the new version 
(i.e. only having to approve a subset of permissions for an upgrade and 
the full permission set for a new install ). Having to re-approve all 
permissions for an application that the user has already approved them 
for doesn't sound all that user friendly to me.

Al.

-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Re: Determining size of SD Card?

2008-10-22 Thread Alex B

This is indeed a significant issue. We should be able to check for
space availability -- this is one important source of error
information that we could be passing on to the user.

Supposedly the media is mounted:
android.os.Environment.MEDIA_MOUNTED.equals("mounted")

Supposedly I can write to the direcotry:
sampleDir.canWrite()

So I try to create a file:
mSampleFile = File.createTempFile(SAMPLE_PREFIX, SAMPLE_EXTENSION,
sampleDir);

But get this uninsightful IO error:
java.io.IOException: Cannot create: /sdcard/x28335.amr

So, one extra check could be for space -- but currently this seems to
be an API limitation.

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



[android-developers] Re: R.java is never, ever, ever, ever, ever regenerated

2008-10-22 Thread Robert Green

I've had issues with mine as well and what I've ended up doing is
closing eclipse, deleting the file from the FS, firing up eclipse
again, re-creating a blank R.java, then importing one resource and it
magically kicks back in and repopulates the whole thing.

I think it's a little buggy and they should probably try to iron that
out.

On Oct 22, 12:27 pm, misbell <[EMAIL PROTECTED]> wrote:
> I have tried everything, including the laughable suggestion of
> restarting Eclipse, which of course didn't work.
>
> There is nothing wrong with my manifest file.
>
> The app worked perfectly until I changed it.
>
> Then I changed added a new PNG and changed the name in the main.xml
> file.
>
> After that nothing worked because the R,java file was not updated.
>
> Build Automatically is turned on.
>
> using Eclipse Ganymede. Runs every demo Android app perfectly.
>
> I mean, you have got to be kidding me. There is NO WAY to just press a
> button, issue a command and regenerate the R.java file?
>
> LOL LOL LOL What a waste of my freaking morning. What a complete and
> utter waste of several hours of my time. I am laughing because I am so
> pi$$ed off I can't even think of something sarcastic enough to say.
>
> Three months of smooth iPhone development and now I am stuck having to
> work with this gimrackety piece of junk.
>
> Ok, now that I've ranted, any solutions?
>
> M
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread tomgibara

Al,

Android requires three (extrinsic) things: users, carriers and
developers. Any particular feature/restriction may be independently
regarded as good or bad by the members of these three groups.

Seeing particular security related restrictions only within the narrow
context of what suits developers and some users, ignores the
importance of carriers in cementing Android as a widely deployed
mobile platform.

Historically, for reasons I'm not knowledgeable enough to describe,
carriers have wielded a great deal of power over the devices and
applications that operate on their networks and as a consequence
developers are rightly wary of any constraints put on their
applications.

Nevertheless, it's difficult to see Android as anything but a huge
leap forward in terms of open mobile application development;
criticisms over the simplifications used to describe elements of this
hugely complex technology, don't change that.

Tom.


On Oct 22, 6:50 pm, Al Sutton <[EMAIL PROTECTED]> wrote:
> It's not necessarily what hasn't been released in documentation/source
> form, it's the measures which could be seen as steps taken to
> deliberately ensure that competitors can't access the same functionality
> as is available to approved applications which have been signed by the
> platform certificate.
>
>  From what you've said it is impossible for anyone else to deliver an
> updater which will allow the user to install an updated version of the
> application without having to go through the system UI (Does Marketplace
> have to do that?) . It would be impossible for a third party to write a
> comprehensive dialling interface because it would be blocked from making
> emergency services calls (Is the shipped dialler blocked from doing
> that?).
>
> It took a lot of complaints to get the anti-trust suits started, and
> they were all based around functionality which wasn't available to third
> parties, isn't that what you've just said Android has?
>
> Al.
>
> hackbod wrote:
> > On Oct 22, 12:49 am, Al Sutton <[EMAIL PROTECTED]> wrote:
>
> >> Friendly suggestion, read up on the lawsuits against Microsoft for not
> >> releasing API details (here's a recent 
> >> onehttp://www.theregister.co.uk/2008/02/21/microsoft_goes_open/)
>
> >http://git.source.android.com/
>
> > Exactly what details haven't been released?
>
> --
> Al Sutton
>
> W:www.alsutton.com
> B: alsutton.wordpress.com
> T: twitter.com/alsutton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Simulate key press action.

2008-10-22 Thread BeeScreen

Hi,
I am new to Android dev.
Just been asked to research if I can simulate the key press action.
Boss wants me to write a program that can press the phone keys instead
of me
pressing them. Is this possible in Android. Please point me to any
clues.
Thanks in advance.

Regards
Beescreen

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



[android-developers] Problems Testing an Installation...

2008-10-22 Thread Bill Zimmerly

I was on the T-Mobile G1 Forum when a fellow who owned a G1 posted a
message seeking a Notepad Application for the G1. (BTW, Scanning the
topics there indicate that there is crying need for one on the G1.)

http://forums.t-mobile.com/tmbl/board/message?board.id=87&thread.id=2490

Well, I used Eclipse to package the Notepad application and posted it
to my webite. Then I posted a message inviting him and others to
download it and test it out on their G1s.

As you can see from the messages exchanged, when they try to install
it on their G1s, it seems to demand access to everything. (Not good.)
I used the default Android Manifest when I built the package.

Then, I try to download and install the Application myself on the
Emulator and it complained that this CAN'T BE DONE

Is there a way to resolve this problem? (There must be.)

A sincere thanks to any of the Google Android experts who can help me
with 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 11:02 am, Al Sutton <[EMAIL PROTECTED]> wrote:
> But if they've already granted the permissions to the app surely they
> should only be asked about new permissions needed for the new version
> (i.e. only having to approve a subset of permissions for an upgrade and
> the full permission set for a new install ). Having to re-approve all
> permissions for an application that the user has already approved them
> for doesn't sound all that user friendly to me.

Both the Market and the system UI installer ask for all permissions
again.  There is no reason they both can't be changed to do something
different (in fact they share a lot of the same code).

Market and a few other things like the in-call screen are in a very
gray area between "system code" and "application code".

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



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread Rob Franz
As far as loading over USB from your machine to your phone, I don't know.
 THat would be great as an extension to Eclipse - perhaps as an option to
the 'Export' menu (deploy to phone...)
But from what I'm reading, the easiest way is to post it to a web server and
download it to your phone.

On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:

>
> I have created an application and would like to know how to load the
> application onto an actual device through Eclipse.
> >
>

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



[android-developers] Re: Android Source Code Now Available

2008-10-22 Thread hackbod

On Oct 22, 11:14 am, tomgibara <[EMAIL PROTECTED]> wrote:
> Android requires three (extrinsic) things: users, carriers and
> developers. Any particular feature/restriction may be independently
> regarded as good or bad by the members of these three groups.
>
> Seeing particular security related restrictions only within the narrow
> context of what suits developers and some users, ignores the
> importance of carriers in cementing Android as a widely deployed
> mobile platform.

Also it is very important to keep in mind that it ignores the
importance of -most- users as well.  All through the design of
Android, we have had to ask over and over again how open we can make
things for developers while at the same time protecting users who
can't and shouldn't need to care much about how to keep their phone
secure.  For example, this is the incentive behind requiring that the
user explicitly enable side-loading of applications before they can
download things directly from a web page.

We have ideas for how to improve many of these things in the future,
but what is in 1.0 is what we had time to do and what we though were
the best overall choices for all involved.

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



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread Romain Guy

You can deploy your application to your phone using the Android
Eclipse plugin. All you need is the phone plugged in USB (make sure
you have enabled USB debugging in Settings > Applications >
Development.) When you "run" your application, it will send it to the
phone, or ask you what target you want if you already have an emulator
running.

On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> As far as loading over USB from your machine to your phone, I don't know.
>  THat would be great as an extension to Eclipse - perhaps as an option to
> the 'Export' menu (deploy to phone...)
> But from what I'm reading, the easiest way is to post it to a web server and
> download it to your phone.
>
> On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
>>
>> I have created an application and would like to know how to load the
>> application onto an actual device through Eclipse.
>>
>
>
> >
>



-- 
Romain Guy
www.curious-creature.org

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



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread Rob Franz
That would make sense.  I don't have the G1 yet (not available in my non-3G
area at the moment) so i can't test.

On Wed, Oct 22, 2008 at 2:29 PM, Romain Guy <[EMAIL PROTECTED]> wrote:

>
> You can deploy your application to your phone using the Android
> Eclipse plugin. All you need is the phone plugged in USB (make sure
> you have enabled USB debugging in Settings > Applications >
> Development.) When you "run" your application, it will send it to the
> phone, or ask you what target you want if you already have an emulator
> running.
>
> On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> > As far as loading over USB from your machine to your phone, I don't know.
> >  THat would be great as an extension to Eclipse - perhaps as an option to
> > the 'Export' menu (deploy to phone...)
> > But from what I'm reading, the easiest way is to post it to a web server
> and
> > download it to your phone.
> >
> > On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
> >>
> >> I have created an application and would like to know how to load the
> >> application onto an actual device through Eclipse.
> >>
> >
> >
> > >
> >
>
>
>
> --
> Romain Guy
> www.curious-creature.org
>
> >
>

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



[android-developers] Re: Android email client

2008-10-22 Thread Timbobsteve

This probably belongs in a bug-tracker of some sort (http://
source.android.com/), and not the developer list. Also perhaps try the
android-beginners or the general discussion for assistance.

On Oct 22, 4:16 am, solid <[EMAIL PROTECTED]> wrote:
> I just got my brand new G1 and I was setting up my email client for my
> server.  I am using imaps (port 993) with a self signed cert.
> Actually it is signed by startcom (http://www.startcom.org/).
> Whenever I set the configs, I get the Not trusted certificate error.
> Is there a way to install a new trusted authority?  Or is there a way
> to accept a certificate for all of android?  What is the timeline on
> fixing the email client.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: android.net.http.AndroidHttpClient vs

2008-10-22 Thread Jack Palevich

Alas, AndroidHttpClient was present in earlier versions of the Android
SDK, but has been removed from the 1.0 version. I will update the
sample.

(There's a second problem -- the android.security.MessageDigest class
was also removed.)

On Oct 11, 10:12 pm, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> I am using Android SDK 1.0 R1 and I have a question about sending HTTP
> requests in an Android
> application.
>
> Google's Downloader application uses theAndroidHttpClientclass to
> send an HTTP request:
>
> http://code.google.com/p/apps-for-android/source/browse/trunk/Samples...
>
> line 24:
>
>   import android.net.http.AndroidHttpClient;
>
> line 432:
>
>   mHttpClient =AndroidHttpClient.newInstance(mUserAgent);
>
> I checked the online javadocs and did not find any public
> documentation forAndroidHttpClient:
>
>  http://code.google.com/android/reference/android/net/http/package-sum...
>
> Is Google's Downloader application using a public API class or an
> internal (non-public) class?
>
> Please advise.
>
> Sean

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



[android-developers] Re: Simulate key press action.

2008-10-22 Thread Declan Shanaghy

The monkey should be able to help here!
http://code.google.com/android/reference/monkey.html

It is configurable but im not sure if it meets your needs 100%.
You could enhance it, but at the very least you can copy what it does into
an app of your own.


Ah, you just reminded me of good the ole Code Monkey song!  :-D
http://www.youtube.com/watch?v=v4Wy7gRGgeA




-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of BeeScreen
Sent: Wednesday, October 22, 2008 11:15 AM
To: Android Developers
Subject: [android-developers] Simulate key press action.


Hi,
I am new to Android dev.
Just been asked to research if I can simulate the key press action.
Boss wants me to write a program that can press the phone keys instead
of me
pressing them. Is this possible in Android. Please point me to any
clues.
Thanks in advance.

Regards
Beescreen




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



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread B Sreen
Thanks for writing.. great help.
But I can find "Settings > Applications > Development."
I do not know what I am missing. Please help. - Thanks

On Wed, Oct 22, 2008 at 11:39 AM, Rob Franz <[EMAIL PROTECTED]> wrote:

> That would make sense.  I don't have the G1 yet (not available in my non-3G
> area at the moment) so i can't test.
>
>
> On Wed, Oct 22, 2008 at 2:29 PM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
>>
>> You can deploy your application to your phone using the Android
>> Eclipse plugin. All you need is the phone plugged in USB (make sure
>> you have enabled USB debugging in Settings > Applications >
>> Development.) When you "run" your application, it will send it to the
>> phone, or ask you what target you want if you already have an emulator
>> running.
>>
>> On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
>> > As far as loading over USB from your machine to your phone, I don't
>> know.
>> >  THat would be great as an extension to Eclipse - perhaps as an option
>> to
>> > the 'Export' menu (deploy to phone...)
>> > But from what I'm reading, the easiest way is to post it to a web server
>> and
>> > download it to your phone.
>> >
>> > On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I have created an application and would like to know how to load the
>> >> application onto an actual device through Eclipse.
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>>
>> --
>> Romain Guy
>> www.curious-creature.org
>>
>>
>>
>
> >
>

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



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread Danny

I have just found out how, there is a new driver out that you will
need to use before Eclipse can see your device.. more info is located
at this link
http://groups.google.com/group/android-developers/browse_thread/thread/af53210a9c41ec37/dc899a42705b0a79?show_docid=dc899a42705b0a79


On Oct 22, 11:43 am, "B Sreen" <[EMAIL PROTECTED]> wrote:
> Thanks for writing.. great help.
> But I can find "Settings > Applications > Development."
> I do not know what I am missing. Please help. - Thanks
>
> On Wed, Oct 22, 2008 at 11:39 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> > That would make sense.  I don't have the G1 yet (not available in my non-3G
> > area at the moment) so i can't test.
>
> > On Wed, Oct 22, 2008 at 2:29 PM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
> >> You can deploy your application to your phone using the Android
> >> Eclipse plugin. All you need is the phone plugged in USB (make sure
> >> you have enabled USB debugging in Settings > Applications >
> >> Development.) When you "run" your application, it will send it to the
> >> phone, or ask you what target you want if you already have an emulator
> >> running.
>
> >> On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> >> > As far as loading over USB from your machine to your phone, I don't
> >> know.
> >> >  THat would be great as an extension to Eclipse - perhaps as an option
> >> to
> >> > the 'Export' menu (deploy to phone...)
> >> > But from what I'm reading, the easiest way is to post it to a web server
> >> and
> >> > download it to your phone.
>
> >> > On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
>
> >> >> I have created an application and would like to know how to load the
> >> >> application onto an actual device through Eclipse.
>
> >> --
> >> Romain Guy
> >>www.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OAuth, HttpClient, Android 1.0

2008-10-22 Thread Sean Sullivan


As of today (October 22nd), the OAuth Java library now supports
HttpClient 4 and Android.

You'll need to checkout the trunk code from SVN and build the code
yourself.

   http://code.google.com/p/oauth/source/checkout

To use the OAuth library on Android, use the classes in the
net.oauth.client.httpclient4 package.

Sean


On Oct 11, 11:04 pm, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> I am trying to use oauth-1.3.jar in my Android application.  As far as
> I can tell,oauth-1.3.jar is
> dependent upon Apache HttpClient 3.1
>
> Has anybody been able to make this work?    (I'm aware that the
> Android platform uses the HttpClient 4 API)
>
> I opened an issue in the OAuth tracker:
>
>    http://code.google.com/p/oauth/issues/detail?id=50
>
>    http://code.google.com/p/oauth/
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Loading application to actual device through Eclipse?

2008-10-22 Thread Megha Joshi
The driver is for Windows only. Settings are in the Menu on the home screen.


2008/10/22 Danny <[EMAIL PROTECTED]>

>
> I have just found out how, there is a new driver out that you will
> need to use before Eclipse can see your device.. more info is located
> at this link
>
> http://groups.google.com/group/android-developers/browse_thread/thread/af53210a9c41ec37/dc899a42705b0a79?show_docid=dc899a42705b0a79
>
>
> On Oct 22, 11:43 am, "B Sreen" <[EMAIL PROTECTED]> wrote:
> > Thanks for writing.. great help.
> > But I can find "Settings > Applications > Development."
> > I do not know what I am missing. Please help. - Thanks
> >
> > On Wed, Oct 22, 2008 at 11:39 AM, Rob Franz <[EMAIL PROTECTED]> wrote:
> > > That would make sense.  I don't have the G1 yet (not available in my
> non-3G
> > > area at the moment) so i can't test.
> >
> > > On Wed, Oct 22, 2008 at 2:29 PM, Romain Guy <[EMAIL PROTECTED]>
> wrote:
> >
> > >> You can deploy your application to your phone using the Android
> > >> Eclipse plugin. All you need is the phone plugged in USB (make sure
> > >> you have enabled USB debugging in Settings > Applications >
> > >> Development.) When you "run" your application, it will send it to the
> > >> phone, or ask you what target you want if you already have an emulator
> > >> running.
> >
> > >> On Wed, Oct 22, 2008 at 11:27 AM, Rob Franz <[EMAIL PROTECTED]>
> wrote:
> > >> > As far as loading over USB from your machine to your phone, I don't
> > >> know.
> > >> >  THat would be great as an extension to Eclipse - perhaps as an
> option
> > >> to
> > >> > the 'Export' menu (deploy to phone...)
> > >> > But from what I'm reading, the easiest way is to post it to a web
> server
> > >> and
> > >> > download it to your phone.
> >
> > >> > On Wed, Oct 22, 2008 at 1:58 PM, Danny <[EMAIL PROTECTED]> wrote:
> >
> > >> >> I have created an application and would like to know how to load
> the
> > >> >> application onto an actual device through Eclipse.
> >
> > >> --
> > >> Romain Guy
> > >>www.curious-creature.org
> >
>

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



[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-22 Thread Xavier Ducrohet

We just updated the documentation.

Developing on devices is explained here:
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware



On Tue, Oct 21, 2008 at 11:45 PM, bhines <[EMAIL PROTECTED]> wrote:
>
> this sounds like my problem as well.
>
> This really should be mentioned on 
> http://code.google.com/android/intro/develop-and-debug.html
>
> thanks,
>
> -Ben
>
> On Oct 21, 8:42 pm, nkijak <[EMAIL PROTECTED]> wrote:
>> That possibly did the trick.  I had to restart the phone.  Maybe for
>> the "Debug when USB" thing to take effect?
>>
>> Thanks
>>
>> On Oct 21, 11:33 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>>
>> > To debug on devices you need to set the 'debuggable' attribute of the
>> > application node to true (in AndroidManifest.xml).
>>
>> > Make sure to set it back to false before releasing your application.
>>
>> > Xav
>>
>> > On Tue, Oct 21, 2008 at 8:24 PM, nkijak <[EMAIL PROTECTED]> wrote:
>>
>> > > I can't seem to get the eclipse debugger to attach to the G1.  I can
>> > > select "Debug" from the run menu and it will compile and launch the
>> > > app on the phone but eclipse never enters the debug perspective (or
>> > > even asks to). The phone sits with a "Waiting for Debugger" message
>> > > dialog.
>> > > When I enter the Android perspective I can see the device attached,
>> > > see log entries, take screenshots but I cannot see process listings
>> > > and "restarting adb" results in 11 failed attempts to connect.
>> > > Is there some other configuration I need to adjust in eclipse, perhaps
>> > > a port number?
>>
>> > > Thanks,
>> > > Nick
>
> >
>

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



[android-developers] Re: Padding Not Working in XML but does in Java

2008-10-22 Thread cyntacks

Hi everyone, just wanted to give this a bump. Anyone have this
problem? I really would like to include the padding in the XML so that
the correct padding is loaded with the correct layout auto-magically.
But without this I have to have this in the source



On Oct 21, 8:02 pm, cyntacks <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is a strange issue and I can't seem to figure out why it is
> happening. I have a set of ImageButtons in my xml Layout (inside of a
> Table/Row) which require padding. Here is a sample button:
>
> [code]
>         
> [/code]
>
> I attempt to add padding to all 4 edges, like so:
>
> [code]
>         
> [/code]
>
> But it doesn't work. BUT, if I add the padding to the button
> dynamically in the source, it does work. Like so:
>
> [code]
>         button.setPadding(5, 2, 5, 2);
> [/code]
>
> Any ideas what is going on here? This is killing me because the last
> thing I want to do is have the padding configured in the source, then
> it would have to be the same for each layout or I would have to add
> overhead into the code...
>
> As always, thanks for the help,
>
> Kevin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >