[android-developers] Re: "Proguard, Android, and the Licensing Server", or...

2010-09-24 Thread Indicator Veritatis
Google has too long a history of stonewalling and foot dragging. You
NEED that kind of 'motivation' -- unless you finally learn to take
responsibility for committing to fix your bugs without such unpleasant
prodding.

When, for example, are you going to fix AAC+ support in StageFright?
When will you fix 5211? It has been open since Dec 4, 2009! And what
about 2207? It has been open for longer, since March 2009. And it is
much more serious. You are losing customers because of this bug, yet
you do nothing.

Finally, would you consider the previous poster's proposal of "running
for the hills" more motivating? Which would you rather have?
Developers abandoning the Android platform because of the poor
prognosis for Proguard, or developers who stick with the platform but
loudly call for badly needed change?

On Sep 23, 9:34 pm, Dianne Hackborn  wrote:
> On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis wrote:
>
> > But rather than run for the hills, we should pepper Google with
> > uncomplimentary speculations concerning their motives for this "turd
> > layering" until they 'fess up and give us a release date for a version
> > of ADT that will allow us to include Proguard in an Eclipse build
> > WITHOUT these problems.
>
> You sure know how to motivate people.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] AudioManger and ACTION_SCO_AUDIO_STATE_CHANGED

2010-09-24 Thread Anzi
Hi,

I am registered for ACTION_SCO_AUDIO_STATE_CHANGED action during run
time. But my receiver not called, even if i try to connection the
bluetooth headset using AudioManger.startBluetoothSco() Or by using
the bluetooth settings.

Help me if any one is familiar with this.


Regards,
Anzi

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


[android-developers] Re: New ADT available.

2010-09-24 Thread Zarah Dominguez
Hi again,


Was able to make it work by uninstalling Eclipse, including all
versions in /Users//.eclipse, re-installing it then adding
the Update site again.


-Zarah.

On Sep 24, 2:27 pm, Zarah Dominguez  wrote:
> Saw this problem too.
>
> Tried uninstalling then re-installing the plugins, but still no
> Android options anywhere.
>
> Eclipse sees my Android projects as Java projects.
>
> Were you able to solve it?
>
> - Zarah.
>
> On Sep 24, 10:02 am, String  wrote:
>
>
>
> > I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> > 3.5, with virtually no other plugins installed...
>
> > - When I select Help > Check for Updates, it simply says "Nothing to
> > update"
>
> > - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp >
> > Install New Software, it shows me ADT 0.9.9, but the install fails
> > with the following message:
>
> > Android DDMS will be ignored because it is already installed, and
> > updates are not permitted.
> > Android Development Tools will be ignored because it is already
> > installed, and updates are not permitted.
>
> > - Following up on that, I went into Help > About Eclipse >
> > Installation Details, and there too, Update and Uninstall are disabled
> > (grayed out) for both ADT and DDMS.
>
> > Any ideas?
>
> > String
> > On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
> > > Hi all,
>
> > > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> > > 0.9.8 that was released last week.
> > > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> > > Xav
> > > --
> > > Xavier Ducrohet
> > > Android SDK Tech Lead
> > > Google Inc.
>
> > > Please do not send me questions directly. Thanks!

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


[android-developers] Delete SMS

2010-09-24 Thread perumal316
Hi All,

I am writing my own SMS application that will display a toast of my
message once it arrive. Now is it possible to delete the message after
the display of the toast, so that it will not go into the native SMS
application?

Thanks In Advance,
Perumal

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


[android-developers] Re: "Proguard, Android, and the Licensing Server", or...

2010-09-24 Thread gjs
Hi,

I'd love to be in a position of being concerned about piracy, LVL,
Progard & obfuscated stack traces.

But alas I'm still one of the many dev's situated in a region
(Australia) were I can buy apps from the Android Market but not
publish a paid app.

This is a big ongoing disincentive and leaves me to just publish free
apps for kudos alone.

Regards

Plugs his free app anyway -

Imageotag is a precision field camera app for Android V1.5+ devices.
Imageotag snaps 16:9 geo-tagged images, embedding GPS & NET location,
accelerometer, bearing, compass, date, light lux, magnetic field,
pitch, proximity, roll, speed, temperature & time data.
Imageotag creates Google Earth Tours from GPS image sequences.

http://www.imageotag.com






On Sep 24, 5:04 pm, Indicator Veritatis  wrote:
> Google has too long a history of stonewalling and foot dragging. You
> NEED that kind of 'motivation' -- unless you finally learn to take
> responsibility for committing to fix your bugs without such unpleasant
> prodding.
>
> When, for example, are you going to fix AAC+ support in StageFright?
> When will you fix 5211? It has been open since Dec 4, 2009! And what
> about 2207? It has been open for longer, since March 2009. And it is
> much more serious. You are losing customers because of this bug, yet
> you do nothing.
>
> Finally, would you consider the previous poster's proposal of "running
> for the hills" more motivating? Which would you rather have?
> Developers abandoning the Android platform because of the poor
> prognosis for Proguard, or developers who stick with the platform but
> loudly call for badly needed change?
>
> On Sep 23, 9:34 pm, Dianne Hackborn  wrote:
>
>
>
> > On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis 
> > wrote:
>
> > > But rather than run for the hills, we should pepper Google with
> > > uncomplimentary speculations concerning their motives for this "turd
> > > layering" until they 'fess up and give us a release date for a version
> > > of ADT that will allow us to include Proguard in an Eclipse build
> > > WITHOUT these problems.
>
> > You sure know how to motivate people.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.

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


Re: [android-developers] Re: Layar API

2010-09-24 Thread Pedro Teixeira

Yeah.. I figured that out :/

Open ... until their limits.. so Apple'ish
Anyway, can't I even include Layar in my application? Even If I have  
to use all their design and code?


Does anyone know other markerless examples? ARToolKit and probably the  
spinoffs make use of markers which is not what I'm aiming to. I'd like  
to use POI's


thanks

On Sep 23, 2010, at 3:26 PM, JP wrote:


I understand there is no API for Layar. You can become a "developer"
which in Layar's world means adding content and presentation inside
their walled garden. As far as I understand, you cannot roll your own
app though.

Generally, I am not aware of any "easy" AR API. There's a few you
could check out, like ARToolKit and spinoffs (mind the licensing), or
perhaps Qualcomm's brand spanking but still in private Beta API.



On Sep 23, 4:20 am, Pedro Teixeira  wrote:

I'm sorry..

I also would like to know, if anyone has used Layar.. and even if I
can't custumize it and have to use their API.
Can I include it in my application as a ''background'' service ? I'd
like to be able for example to add a POI from my android APP, even if
it can only be seen in Layar..

Please let me know everything you know about this AR API. Because
before I start digging further on it I don't want to loose to much
time to find out most of the things can't be done there.. and for  
that

I would use wikitude or something similar..

Thank you for your time

On Sep 23, 2010, at 11:29 AM, Pedro Teixeira wrote:




Hi..



I've been trying to find Layar API but I don't see it anywhere..
Isn't the API free to download as Wikitude?


I was hopping to add an AR feature on my application using Layar  
API,

but I'd like to use my own server, design, etc .. can I do that?


Is that possible with Layar? Or if not.. is there any easy AR API  
that

allows this?



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


Pedro Teixeira

www.pedroteixeira.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Pedro Teixeira

www.pedroteixeira.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] New app listing order in Market app search

2010-09-24 Thread Mark Carter
Before today, when entering a search term into the Market app, the
results at the top of the search would all be exact matches of that
search term against the app name. For example, type "translate" and
the user will see all the apps called "translate" before the "Google
Translate" result (which is by far the most downloaded translate app).

Now, this no longer happens. If you type "translate" the first result
is "Google Translate" (and no preference is given to exact matches).

Anyone else notice this?

Note: posted on this forum partly because hardly anyone reads Android
Discuss, and partly because developers need to know how their apps are
being prioritized in app search results).

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


Re: [android-developers] Re: Layar API

2010-09-24 Thread Pedro Teixeira
Ok I've decided for Wikitude which is the one that seems to have the  
requirements I need.


Thank you for your answer ;)

On Sep 23, 2010, at 3:26 PM, JP wrote:


I understand there is no API for Layar. You can become a "developer"
which in Layar's world means adding content and presentation inside
their walled garden. As far as I understand, you cannot roll your own
app though.

Generally, I am not aware of any "easy" AR API. There's a few you
could check out, like ARToolKit and spinoffs (mind the licensing), or
perhaps Qualcomm's brand spanking but still in private Beta API.



On Sep 23, 4:20 am, Pedro Teixeira  wrote:

I'm sorry..

I also would like to know, if anyone has used Layar.. and even if I
can't custumize it and have to use their API.
Can I include it in my application as a ''background'' service ? I'd
like to be able for example to add a POI from my android APP, even if
it can only be seen in Layar..

Please let me know everything you know about this AR API. Because
before I start digging further on it I don't want to loose to much
time to find out most of the things can't be done there.. and for  
that

I would use wikitude or something similar..

Thank you for your time

On Sep 23, 2010, at 11:29 AM, Pedro Teixeira wrote:




Hi..



I've been trying to find Layar API but I don't see it anywhere..
Isn't the API free to download as Wikitude?


I was hopping to add an AR feature on my application using Layar  
API,

but I'd like to use my own server, design, etc .. can I do that?


Is that possible with Layar? Or if not.. is there any easy AR API  
that

allows this?



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


Pedro Teixeira

www.pedroteixeira.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Pedro Teixeira

www.pedroteixeira.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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sipdroid build problem

2010-09-24 Thread maxsap
Thank you a lot Kostya, you have to use -t 8 to build it correctly,
this is a problem posted on a lot of sites but no answer yet, but that
worked I am going to post it on sipdroids forums to help others as
well.
regards maxsap

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


[android-developers] Update to 0.9.9 causing a little misery :).

2010-09-24 Thread Brad Gies
 Anyone know why I would be getting the errors below. The message below 
is showing up in the Console view, and I'm getting a "Conversion to 
Dalvik format failed with error 1".


My app has been working quite well for some time, and I just tried to 
update the SDK and DDMS to 0.9.9, and now it won't build.


I've done a search for the CharBuffer class and don't find any matches 
in my files, but I am using several API's (BUMP, C2DM, Admob). I 
definitely don't use any of the core-library in my code. If the error 
message is correct, I just can't quite figure out how to tell which API 
is the problem without almost wiping out my code base, or starting a new 
project and copying a few files at a time.


Oh... but the two files at the bottom of the file are missing 
android-6\sdk.properties and android-5\sdk.properties. Anyone know where 
I find them?


I have tried uninstalling and reinstalling but so far, no joy :).


[2010-09-24 00:54:43 - HotTonight]
trouble processing "java/nio/CharBuffer.class":
[2010-09-24 00:54:43 - HotTonight]
Attempt to include a core class (java.* or javax.*) in something other
than a core library. It is likely that you have attempted to include
in an application the core library (or a part thereof) from a desktop
virtual machine. This will most assuredly not work. At a minimum, it
jeopardizes the compatibility of your app with future versions of the
platform. It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine distribution,
as opposed to compiling an application -- then use the
"--core-library" option to suppress this error message.

If you go ahead and use "--core-library" but are in fact building an
application, then be forewarned that your application will still fail
to build or run, at some point. Please be prepared for angry customers
who find, for example, that your application ceases to function once
they upgrade their operating system. You will be to blame for this
problem.

If you are legitimately using some code that happens to be in a core
package, then the easiest safe alternative you have is to repackage
that code. That is, move the classes in question into your own package
namespace. This means that they will never be in conflict with core
system classes. If you find that you cannot do this, then that is an
indication that the path you are on will ultimately lead to pain,
suffering, grief, and lamentation.

[2010-09-24 00:54:43 - HotTonight] 1 error; aborting
[2010-09-24 00:54:43 - HotTonight] Conversion to Dalvik format failed 
with error 1
[2010-09-24 00:54:47 - SDK Manager] Warning: Error parsing 'C:\Program 
Files\Android\SDK\platforms\android-5\sdk.properties': 
java.io.FileNotFoundException: C:\Program 
Files\Android\SDK\platforms\android-5\sdk.properties (The system cannot 
find the file specified).
[2010-09-24 00:54:47 - SDK Manager] Warning: Error parsing 'C:\Program 
Files\Android\SDK\platforms\android-6\sdk.properties': 
java.io.FileNotFoundException: C:\Program 
Files\Android\SDK\platforms\android-6\sdk.properties (The system cannot 
find the file specified).
[2010-09-24 00:58:16 - SDK Manager] Warning: Error parsing 'C:\Program 
Files\Android\SDK\platforms\android-5\sdk.properties': 
java.io.FileNotFoundException: C:\Program 
Files\Android\SDK\platforms\android-5\sdk.properties (The system cannot 
find the file specified).
[2010-09-24 00:58:16 - SDK Manager] Warning: Error parsing 'C:\Program 
Files\Android\SDK\platforms\android-6\sdk.properties': 
java.io.FileNotFoundException: C:\Program 
Files\Android\SDK\platforms\android-6\sdk.properties (The system cannot 
find the file specified).




--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

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


[android-developers] Re: ListView with rows that contain a button

2010-09-24 Thread viktor
Hi John, it is possible, in my example, I use ListView and all list
items contain "button" (LinearLayout with selector), it works fine, I
can push on item or on "button". And I set click listener for all
buttons.

I hope my information will be helpful.

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


Re: [android-developers] GPRS Problem

2010-09-24 Thread neeta rayate
hi,

   I think in that u have to add permission in Manifest file that Fine
Access Location.

regards
Neeta

On Fri, Sep 17, 2010 at 2:14 PM, Muhammad Irfan  wrote:

> Hi,
>
> In mainfest file plz add the internet permissions after the application
> tag.
>
> Here is sample comde...
>
>  
> 
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:name="android.permission.ACCESS_COARSE_LOCATION">
> 
>
>
>
> 
>
> Regards,
>
>
> On Fri, Sep 17, 2010 at 9:20 AM, mayank bisht wrote:
>
>> I have android HTC mobile os version - 1.6 . I have GPRS setting in my
>> mobile. I can access internet through mobile.  But in my programme to
>> findout my current latitude and longitude i checked the gps enabled it
>> shows false.Can anyone help me why it is so ? My code is below
>>
>>
>>  LocationManager mlocManager =
>> (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>>  LocationListener mlocListener = new location();
>>
>>  List providers = mlocManager.getAllProviders();
>>
>>  boolean gprsenabled =
>> mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER);
>>  Toast.makeText(getApplicationContext(),
>> ((Boolean)gprsenabled).toString(), Toast.LENGTH_LONG).show();
>>
>>  boolean ntwrkenabled =
>> mlocManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
>>  Toast.makeText(getApplicationContext(),
>> ((Boolean)ntwrkenabled).toString(), Toast.LENGTH_LONG).show();
>>
>>if(gprsenabled)
>>
>> mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
>> mlocListener);
>>
>>if(!gprsenabled)
>>
>> mlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
>> 0, 0, mlocListener);
>>
>> if(!gprsenabled && !ntwrkenabled)
>> Toast.makeText(getApplicationContext(), "No GPRS and No CellId is
>> enabled", Toast.LENGTH_LONG).show();
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Can we send MMS from one emulator to another emulator.

2010-09-24 Thread David Turner
Unfortunately no,

Briefly, the MMS protocol requires active participation from the "base
stations", which are not emulated.


On Fri, Sep 24, 2010 at 8:20 AM, nomi  wrote:

> Hi to all,
>
> In my dummy application i want to send MMS.
> But i don't know how to check it.I know that we can send SMS from one
> emulator to another but,
> is it possible for MMS?  If yes then how it can be done.
> Thanks to all.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread Anm

The timing of this week's blog post was perfect.  It was exactly what
I intended to do today.  And the extra Ant step worked fine, and I can
see Proguard obfuscate my files into bin/obf/obfuscated.jar (yes, I
tweaked the file names and paths a little bit), the resulting App-
release.apk does not include the obfuscated files.  My first hint was
my stack traces, but I confirmed it with dedexer.

Has anyone else verified their .apk?  How does the compile step know
what .class files to use? (I'm hoping its not assuming some hard coded
path.)


Anm

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


[android-developers] Re: Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread sblantipodi
what is the blog post you are talking about?

On Sep 24, 11:22 am, Anm  wrote:
> The timing of this week's blog post was perfect.  It was exactly what
> I intended to do today.  And the extra Ant step worked fine, and I can
> see Proguard obfuscate my files into bin/obf/obfuscated.jar (yes, I
> tweaked the file names and paths a little bit), the resulting App-
> release.apk does not include the obfuscated files.  My first hint was
> my stack traces, but I confirmed it with dedexer.
>
> Has anyone else verified their .apk?  How does the compile step know
> what .class files to use? (I'm hoping its not assuming some hard coded
> path.)
>
> Anm

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


[android-developers] Re: Activity onResumed not getting called

2010-09-24 Thread Albert
Is it possible by using different activity attributes to:

-Have the app launch from the last activity IF the process of the app
has not being killed

The issue is that the info that the app needs is downloaded and parsed
at the entry point of the app, then depending of where you go it
downloads more data, so if the app tries to launch an activity that
does not have the info it needs to display... I would like to keep the
activity available but only for as long as the process is active.

Thanks a lot, im playing around with the attributes but no luck yet.

Alberto

On Sep 24, 12:49 am, Dianne Hackborn  wrote:
> What you are seeing is the normal user interaction.  The user is not aware
> the process has been killed, so they expect to return to the app in the way
> they last saw it.
>
> alwaysRetainTaskState is a totally separate thing, and allows you to turn
> off a facility where if the user hasn't been in your app for a while, upon
> returning to it its task can be reset.  This is independent of whether or
> not its process needs to be restarted.
>
>
>
>
>
> On Thu, Sep 23, 2010 at 8:22 AM, Albert  wrote:
>
> > It looks like attribute this could solve the issue:
>
> > --- 
> > -
> > android:alwaysRetainTaskState
>
> > Whether or not the state of the task that the activity is in will
> > always be maintained by the system — "true" if it will be, and "false"
> > if the system is allowed to reset the task to its initial state in
> > certain situations. The default value is "false". This attribute is
> > meaningful only for the root activity of a task; it's ignored for all
> > other activities.
> > Normally, the system clears a task (removes all activities from the
> > stack above the root activity) in certain situations when the user re-
> > selects that task from the home screen. Typically, this is done if the
> > user hasn't visited the task for a certain amount of time, such as 30
> > minutes.
> > However, when this attribute is "true", users will always return to
> > the task in its last state, regardless of how they get there. This is
> > useful, for example, in an application like the web browser where
> > there is a lot of state (such as multiple open tabs) that users would
> > not like to lose.
>
> > --- 
> > 
>
> > I will try it and post back the results.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Android market time to refund.

2010-09-24 Thread sblantipodi
Hi,
can you refresh my mind please?

How much time a customers have to ask for a refund once he bought our
software from the market?

Thanks.

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


[android-developers] How to decrypt an XML file?

2010-09-24 Thread draf...@gmail.com
 0  down vote  favorite


I am trying to to download and decrypt an encrypted XML file.

I have implemented the download part and have tested with an
unencrypted file and it works fine.

However I now need to be able to download an XML file that has been
encrypted using AES and the key ""

So I am only concerned with decryption as the encryption on the XML
file is already done.

Here is my code so far:

 public NodeList getXMLDoc(){
URL url;
NodeList nl = null;

try{
String xmlFeed = context.getString(R.string.xml_feed);
try {
url = new URL(xmlFeed);
URLConnection urlConnection;
urlConnection = url.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection)
urlConnection;
int responseCode = httpConnection.getResponseCode();

if(responseCode == HttpURLConnection.HTTP_OK){

String bytes = toHex("");
SecretKeySpec skeySpec = new
SecretKeySpec(toByte(bytes), "AES");
try {
c.init(Cipher.DECRYPT_MODE, skeySpec);
//c.doFinal();
} catch (InvalidKeyException e) {
e.printStackTrace();
}
InputStream in = httpConnection.getInputStream();
CipherInputStream cis = new CipherInputStream(in,
c);
DocumentBuilderFactory dbf;
dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();

Document dom = db.parse(cis);

Element docEle = dom.getDocumentElement();

nl = docEle.getElementsByTagName(TAG_CHAR);

}
}
catch (MalformedURLException e) {

e.printStackTrace();
}
catch (IOException e) {

e.printStackTrace();
} catch (ParserConfigurationException e) {

e.printStackTrace();
} catch (SAXException e) {

e.printStackTrace();
}
}
finally{

}
return nl;
}

At the minute I am trying to decrypt the whole file using
CipherInputStream is this the correct approach?

My code above gives me the following exception:

WARN/System.err(5274): java.io.IOException: last block incomplete in
decryption

Is this a setup error or what might be causing this error?

Are there any tutorials on how to decrypt an XML file in Android/Java?

Am I going in the right direction as to how to decrypt the file or is
my code completely wrong?

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


[android-developers] Re: Http chunked response and Connection Reset by Peer error

2010-09-24 Thread Cydrike
There's nothing in logcat apart from garbage collector actions.
I'm already listening to ConnectivityManager
(ConnectivityManager.CONNECTIVITY_ACTION) and TelephonyManager
(PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) events to track
network modifications. Nothing is caught when the problem occurs.

I'm going to check on server side if the connection is still alive or
not. I'll give you the information as soon as possible.


On 23 sep, 22:58, Kostya Vasilyev  wrote:
> Oh, and check the logcat - I think you should see connection manager events
> at the time your connection goes bad.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 23.09.2010 14:00 пользователь "Cydrike"  написал:
>
> Hello Kostya,
>
> I've tried what you said but my problem remains. I'm fact the problem
> only occurs when the device goes in sleep mode. If I let it connected
> to my PC (the screen never goes totally black), every thing is working
> fine. I've got a wakeLock in my application:
>
> final PowerManager pm = (PowerManager)
> getSystemService(Context.POWER_SERVICE);
> m_partialWakeLock = pm.newWakeLock((PowerManager.PARTIAL_WAKE_LOCK |
> PowerManager.ACQUIRE_CAUSES_WAKEUP), APPLICATION_NAME);
>
> I've implemented something that connect to my server each 3min when in
> sleep mode. It's not using the connection which is supposed to be
> alive because I can't send data on it. The server is as is and I can't
> change anything on it. This mechanism works, I manage to successfully
> connect to my server. But still after 5min my opened connection
> doesn't receive data anymore.
>
> Something in the sleep mode is putting my connection in "hold", I
> don't know. I'm not even sure that the connection is closed. It seems
> it's just stuck somewhere.
>
> The server is closing correclty any connection since when not in sleep
> mode I always detect it. So my first message has wrong information.
>
> Cédric
>
> On 22 sep, 12:26, Kostya Vasilyev  wrote:>   Like I said 
> before, detecting a ...
> > >>> Kostya Vasilyev -- WiFi Manager + pretty widget --
>
> http://kmansoft.wordpress.com-Masquerletexte des messages précédents -
>
> > >>> - Afficher le texte des messages précédents -- Masquer le texte des
>
> messages précédents -> >>...
> > Kostya Vasilyev -- WiFi Manager + pretty widget --
>
> http://kmansoft.wordpress.com-Masquer le texte des messages précédents -
>
>
>
> > - Afficher le texte des messages précédents -
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" g...

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


[android-developers] Re: Can we send MMS from one emulator to another emulator.

2010-09-24 Thread Ketan Parmar

It there any other way to test MMS send/receive ?  any third party
utility ? sendbox type ?


On Sep 24, 2:21 pm, David Turner  wrote:
> Unfortunately no,
>
> Briefly, the MMS protocol requires active participation from the "base
> stations", which are not emulated.
>
>
>
> On Fri, Sep 24, 2010 at 8:20 AM, nomi  wrote:
> > Hi to all,
>
> > In my dummy application i want to send MMS.
> > But i don't know how to check it.I know that we can send SMS from one
> > emulator to another but,
> > is it possible for MMS?  If yes then how it can be done.
> > Thanks to all.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Simple Context Menus

2010-09-24 Thread Brion Emde
You should look at the Context menu examples in this article:
http://developer.android.com/guide/topics/ui/menus.html

You are setting up an Options menu, not a context menu.

On Sep 23, 7:40 pm, rb  wrote:
> Hi,
>
> I am attempting to create a simple context menu that will show another
> screen and have some functionality.  What is happening is that if I
> select menu, I get the items (context menu) then when I select one of
> them, it does nothing.  What am I missing here?   Once you click on
> the item, should it not execute the class that you have indicated?
>
> Here's my code:
>
> This is in the main application:
> package com.calculator;
>
> import android.app.Activity;
> import android.content.Intent;
> import android.graphics.Color;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.Button;
> import android.widget.TextView;
>
> public class Calculator extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
> ... code of the project 
>
>     // context menu
>     public boolean onCreateOptionsMenu(android.view.Menu menu) {
>         super.onCreateOptionsMenu(menu);
>         menu.add("Setup")
>                 .setIcon(android.R.drawable.ic_menu_preferences)
>                 .setIntent(new Intent(this, setup.class));
>         menu.add("About")
>                 .setIcon(android.R.drawable.ic_menu_info_details)
>                 .setIntent(new Intent(this, about.class));
>         return true;
>     }
>
> }
>
> --
>
> Here's the code for the "setup.java" class.  I have created a layout
> page called "setup.xml".
> All this should do is show me.
>
> package com.calculator;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.Toast;
>
> public class setup extends Activity {
>
>         �...@override
>             public void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                         setContentView(R.layout.setup);
>          }
>
> }
>
> --
>
> I have placed the setContentView(R.layout.setup); in the main and used
> different coding for context menus and it did show me the other
> screen, but if I select menu, it gives me the same context menu.  I
> figure that the above code would direct me to the individual class
> where you can code it specifically and show what you want.   Any ideas
> on what I am missing here?   Please forgive me as I am new to this.
> Any complete code would be appreciated.

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


[android-developers] Re: How to remove a notification with flag FLAG_NO_CLEAR ?

2010-09-24 Thread NRV
OK, I found the problem. In fact there where 2 problems :
- I have to restart completely the emulator between each code change.
Redeploying the application usually works, but, for some strange
reason not with the notifications.
- I was keeping a reference on the notification. I now recreate a new
instance when I want to update it.

I now works fine with the NO_CLEAR flag.

On 23 sep, 21:40, TreKing  wrote:
> On Thu, Sep 23, 2010 at 1:42 PM, DanH  wrote:
> > What happens if you clear the flag before trying the cancel?
>
> I think he tried that:
>
> On Thu, Sep 23, 2010 at 3:19 AM, Nicolas HERVE  wrote:
> > Then I tried to change the flags before canceling
> > notification.flags = Notification.DEFAULT_ALL;
> > notificationManager.notify(1, notification);
>
> > None works ...
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: LVL returns LICENSED with anonymous accounts...

2010-09-24 Thread MarcoAndroid
Update: I uploaded and saved my exported signed app via the dev-
console but did not publish it.
With my test account on N1 I am now able to get returned from LVL what
I set in the dev console. So I'm not always getting LICENSED back, but
what I set the test response to, so it is configurable, so that's
great :)

On 22 sep, 14:43, MarcoAndroid  wrote:
> I do see this behaviour too (though dev account on emulator and test
> account on N1). My next thing to try would be uploading my app (but
> not publishing it) to see if that then gives back what I set in the
> dev console... Though from previous answers I probably get back
> LICENSED which as you say is not very handy for real device testing...
>
> On 27 aug, 11:21, Mark Carter  wrote:
>
>
>
> > Can anyone else confirm this please?
>
> > On Aug 20, 11:27 am, Mark Carter  wrote:
>
> > > This is not what I'm seeing.
>
> > > I'm writing a new app which has never been published or in draft.
>
> > > I have two devices. One (N1, running 2.2), I'm logged into my main
> > > Google account (which has the Developer account). The other (Hero
> > > running 2.1-update1) is a test account I use (no developer account).
>
> > > When I use the N1, I always get the response specifed in my Dev
> > > Console settings.
> > > When I use the Hero, I always get ERROR_NOT_MARKET_MANAGED.
>
> > > It appears the logic goes something like this for non-Market
> > > (published or draft) apps:
>
> > > Check the user has a Dev account.
> > > If so, use the response set there.
> > > If not, return ERROR_NOT_MARKET_MANAGED.
>
> > > Notice, its the setting for the user, not the dev (because theMarket
> > > does not know who the dev is), that is used.
>
> > > Anyone confirm this?
>
> > > On Aug 7, 1:26 am, Trevor Johns  wrote:
>
> > > > If an app is not published AND not draft, then you'll get
> > > > ERROR_NOT_MARKET_MANAGED.
>
> > > > If an app is in draft (never published), then we sendLICENSEDfor all
> > > > requests for that app.
>
> > > > If an app is published (or has been published then unpublished), then
> > > > the response
> > > > is driven by the dev console settings for the developer/testers, and 
> > > > purely
> > > > by purchase history for everyone else.
>
> > > > --
> > > > Trevor Johns
> > > > Google Developer Programs, Androidhttp://developer.android.com
>
> > > > On Thu, Aug 5, 2010 at 4:18 AM, Mark Carter  
> > > > wrote:
> > > > > So to confirm. If an app is not published (nor draft) then the 
> > > > > response is
> > > > > dictated by the user's (i.e. the user running the app, not the one who
> > > > > developed the app) setting in the Dev Console. If the user does not 
> > > > > have a
> > > > > Dev account (like many beta testers) then the response will be like 
> > > > > "Respond
> > > > > normally"?
>
> > > > > If the app is published (or draft) then the response is driven 
> > > > > primarily by
> > > > > the dev's console settings and secondarily by theMarketlicense server
> > > > > (storing who has paid for what).
>
> > > > >  I think the first part could catch a lot of people out...
>
> > > > > On 5 August 2010 11:03, Trevor Johns  wrote:
>
> > > > >> If the app isn't in AndroidMarket, the license server will return
> > > > >> ERROR_NOT_MARKET_MANAGED. LicenseValidator considers that to be a 
> > > > >> fatal
> > > > >> error due to programmer error, and should invoke the 
> > > > >> applicationError()
> > > > >> callback method.
>
> > > > >> My understanding from the server team is that uploading a draft 
> > > > >> version is
> > > > >> supposed to be sufficient to avoid getting ERROR_NOT_MARKET_MANAGED. 
> > > > >> (In the
> > > > >> case of existing applications, you'll also need to increment your 
> > > > >> version
> > > > >> code.)
>
> > > > >> The other way you'll avoid this is precisely as Mark mentioned. If we
> > > > >> don't find the application, we check to see if the current user has a
> > > > >> developer account, and will send a test response (if one is set) 
> > > > >> using the
> > > > >> user's RSA keypair.
>
> > > > >> --
> > > > >> Trevor Johns
>
> > > > >> On Wed, Aug 4, 2010 at 12:30 AM, Kirky  
> > > > >> wrote:
>
> > > > >>> Trevor,
>
> > > > >>> Can you clarify what the licensing server returns if the App is not 
> > > > >>> in
> > > > >>> the AndroidMarket? In my experience (and it seems other people) it 
> > > > >>> is
> > > > >>> returningLICENSED. This does not seem sensible to me.
>
> > > > >>> Thanks
>
> > > > >>> Rob
>
> > > > >>> On Aug 4, 3:23 am, Trevor Johns  wrote:
>
> > > > >>> --
> > > > >>> You received this message because you are subscribed to the Google
> > > > >>> Groups "Android Developers" group.
> > > > >>> To post to this group, send email to 
> > > > >>> android-developers@googlegroups.com
> > > > >>> To unsubscribe from this group, send email to
> > > > >>> android-developers+unsubscr...@googlegroups.com > > > >>>  cr...@googlegroups.com>
> > > > >>> For more options, visit this group at
> > > > >>>http://gro

[android-developers] Question about rotate bitmap with Canvas.rotate

2010-09-24 Thread chaozh
As we know, we can rotate a bitmap through 2 ways.
The 1st way is:
Matrix mt = new Matrix();
mt.postRotate(degree);
Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
canvs.drawBitmap(bitmap, 0, 0, paint);

In this way, we always need create new bitmap for every rotation, it
is not good way for high performance game or app.

The 2nd way is:
canvas.save();
canvas.rotate(degree);
canvas.drawBitmap(bitmap, 0, 0, paint);
canvas.restore();

In this way, we avoid creating new bitmap frequently, but the rotation
bitmap is distortion, the bitmap quality is worse than first way.

So, Is there 3rd way to rotate bitmap with high performance and good
quality?
Your any comments are really appreciated!

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


[android-developers] Re: UnsatisfiedLinkError: Library XXXX not found

2010-09-24 Thread DanH
You've got to be real careful about loading native classes, and, in
particular, not load them twice under two different loaders.  (At
least that's my vague recollection.)

On Sep 23, 10:12 pm, ls02  wrote:
> So what's the proper way to deal with such issue?
>
> On Sep 23, 10:39 pm, DanH  wrote:
>
> > On regular Java systems this can occur when the native class gets
> > loaded by the wrong class loader.  And there are a couple of other
> > obscure causes with regard to class loading, IIRC.
>
> > On Sep 23, 7:34 pm, ls02  wrote:
>
> > > From time to time we get from customers the following error
>
> > > java.lang.UnsatisfiedLinkError: Library 
> > > not found
>
> > > with stack coming from static class method that loads our shared
> > > library
>
> > > The library is obviously there and ussually powering off and on the
> > > phone fixes the issue. However what's the source of this error at
> > > first place?- Hide quoted text -
>
> > - Show quoted text -

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


[android-developers] Re: Question about rotate bitmap with Canvas.rotate

2010-09-24 Thread Andreas
1) You should avoid to creat a new Matrix every time you call the draw
funktion. You can to this by passing a static Matrix Reference to your
draw function.

2) Creating bitmaps on a draw Method is not good performance wise.
Preload the Images you want up in front.

3) On Canvas drawing you have a special draw Method you should use in
combination with a Bitmap and a Matrix:

void android.graphics.Canvas.drawBitmap(Bitmap bitmap, Matrix matrix,
Paint paint)

4) The Coords of your Bitmap should be set in the Matrix by calling:

boolean android.graphics.Matrix.postTranslate(float dx, float dy)
boolean android.graphics.Matrix.postRotate(float degrees, float px,
float py)

Hope this helps

Greetings


On 24 Sep., 13:22, chaozh  wrote:
> As we know, we can rotate a bitmap through 2 ways.
> The 1st way is:
> Matrix mt = new Matrix();
> mt.postRotate(degree);
> Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
> canvs.drawBitmap(bitmap, 0, 0, paint);
>
> In this way, we always need create new bitmap for every rotation, it
> is not good way for high performance game or app.
>
> The 2nd way is:
> canvas.save();
> canvas.rotate(degree);
> canvas.drawBitmap(bitmap, 0, 0, paint);
> canvas.restore();
>
> In this way, we avoid creating new bitmap frequently, but the rotation
> bitmap is distortion, the bitmap quality is worse than first way.
>
> So, Is there 3rd way to rotate bitmap with high performance and good
> quality?
> Your any comments are really appreciated!

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


[android-developers] Synchronization period

2010-09-24 Thread Roman Mazur
What is the method to define a sync period for some account?
ContentResolver allows to set automatic sync flag only. But what is
period?
Have I missed something?
Or have I to schedule sync requests myself using the AlarmManager?

Thanks.

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


[android-developers] HTC Wildfire didn't find my app on the market

2010-09-24 Thread Marco Alexander Schmitz
Hi,

I'd like to speak about a very strange problem.

The HTC Wildfire (OS 2.1) didn't find my app at the android market,
altough HTC Magic (OS 1.6), HTC Desire (OS 2.2) and Nexus One OS 2.2)
do so.

This was my problematic scenario:


default.properties:
target=android-3

AndroidManifest.xml:



The solution was quite simple:

default.properties:
target=android-4

AndroidManifest.xml:



Best regards,
Marco

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


[android-developers] Twitter on 1.5 sense aka hero off of G1

2010-09-24 Thread William Dizon
I've been flashing some old 1.5 firmware versions of the Hero rom for my G1
and the Twitter app doesn't respond. I did my whole sign in thing with
success bit the app keeps giving me a "Unknown response from Twitter.com."
Is there a way to fix this?
Thankyou, Bill

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

[android-developers] Re: Question about rotate bitmap with Canvas.rotate

2010-09-24 Thread chaozh
Hi:

Thanks your reply.
Your suggestion is good, I've optimized these in my real code. The
above is just simple example.
The source bitmap is preloaded before, but for solution 1, the
rotation bitmap always be created as need. This is performance key in
my codes.
I don't want to create it every time.
For solution 2, the creating step is avoid, but the rotation bitmap's
quality is not good as solution 1, it is distorted. this is also not I
wanted.
So I hope someone can give another solution to solve my problem.
I'm not sure the GL surfaceview is better or not. But I don't want to
use GL in my app since there is no any 3D requirement.
Thanks a lot!

On Sep 24, 7:50 pm, Andreas  wrote:
> 1) You should avoid to creat a new Matrix every time you call the draw
> funktion. You can to this by passing a static Matrix Reference to your
> draw function.
>
> 2) Creating bitmaps on a draw Method is not good performance wise.
> Preload the Images you want up in front.
>
> 3) On Canvas drawing you have a special draw Method you should use in
> combination with a Bitmap and a Matrix:
>
> void android.graphics.Canvas.drawBitmap(Bitmap bitmap, Matrix matrix,
> Paint paint)
>
> 4) The Coords of your Bitmap should be set in the Matrix by calling:
>
> boolean android.graphics.Matrix.postTranslate(float dx, float dy)
> boolean android.graphics.Matrix.postRotate(float degrees, float px,
> float py)
>
> Hope this helps
>
> Greetings
>
> On 24 Sep., 13:22, chaozh  wrote:
>
>
>
>
>
>
>
> > As we know, we can rotate a bitmap through 2 ways.
> > The 1st way is:
> > Matrix mt = new Matrix();
> > mt.postRotate(degree);
> > Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
> > canvs.drawBitmap(bitmap, 0, 0, paint);
>
> > In this way, we always need create new bitmap for every rotation, it
> > is not good way for high performance game or app.
>
> > The 2nd way is:
> > canvas.save();
> > canvas.rotate(degree);
> > canvas.drawBitmap(bitmap, 0, 0, paint);
> > canvas.restore();
>
> > In this way, we avoid creating new bitmap frequently, but the rotation
> > bitmap is distortion, the bitmap quality is worse than first way.
>
> > So, Is there 3rd way to rotate bitmap with high performance and good
> > quality?
> > Your any comments are really appreciated!

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


[android-developers] Re: Image Zomming using finger touch.

2010-09-24 Thread Spiral123
The Sony Ericsson guys did a tutorial on this:
http://blogs.sonyericsson.com/developerworld/2010/05/18/android-one-finger-zoom-tutorial-part-1/

On Sep 23, 3:31 pm, Ajmer Singh  wrote:
> Hi All
>
> I need to implement the Image zoom in and zoom out functionality using the
> finger touch,like we have it in Android  phone Image gallery,
> Please let me know how can i do this in my app.Does any had done this
> before.
>
> Please help.
>
> --
> Thanks and Regards
> Ajmer Singh

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


[android-developers] Task Manager Killing process. Incomplete kill.

2010-09-24 Thread Ajith Kamath
Hi all

I am facing following issue with respect to FORCE KILL :

Following is done after BT is on:

1. idle - applications - gallery - camera - Select any one image
2. menu - share - bluetooth - 'scan for devices' touch

After this our task manager app is activated by home key longpress.
i kill Gallery and Opp app.
Now when i push back button , Device picker screen is still displaying.

This is because BluetoothSettings was not killed by taskmanager when opp was
killed.

Can you please suggest any solution for this.

Also When you kill the process , even onPause, onStop or onDestroy is NOT
called.
Is there any function which is called when Force kill of Process is done?!!

Please advice.

Thanks & Regards,
Ajith

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

Re: [android-developers] Re: "Proguard, Android, and the Licensing Server", or...

2010-09-24 Thread Xavier Ducrohet
We are working on direct support in ADT/Ant. We just decided to
release a quick blog post on how to manually add this to Ant since
it's somewhat easy to do (unlike ADT).

However, proguard does need to know about which class to not obfuscate
and there is no way we can figure it out programmatically. Proguard
itself does try to detect reflection usage, but if it's too dynamic
(for instance the class/method/field to use by reflection is dynamic
and too complex to see where the value is coming from) it will fail.

The proguard config file shown in the Dan's blog post (a different Dan
btw) provides exclusion for the common cases:
- anything that extends Activity, Service, Application,
BroadcastReceiver, ContentProvider as those are referenced in the
manifest.
- anything that has native method as the name of the class is used to
find the native function name
- anything that has a constructor similar to a View, to no rename
custom views as their name are referenced in layouts

This should cover all the default cases. Now, if you do some fancy
reflection you will have some problem, and will have to tell proguard
what to not obfuscate, but there's nothing we can do about and any
obfuscators will have similar problems.

We are looking at implementing Proguard in ADT/Ant in a way that makes
it easy to plug a different obfuscator, so if you prefer a different
solution you will hopefully be able to use it, but I'm pretty sure
you'll have the same issues.

Unfortunately I can't give a release date for the next version, but we
usually try to release new tools every 2-3 months.

Xav

On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis  wrote:
> It is not just you. I was pretty disappointed when I read that post,
> too. I did get a kick out of seeing what a menacing appearance Dan has
> with his new beard and moustache, though;)
>
> I am amazed that Google seems to think it is acceptable to force the
> user to maintain two different build systems -- one for Eclipse and
> one for the recommended independent installation of Ant -- and also
> maintain a text file with a list of classes not to obfuscate. It is
> too obvious that this is a task ADT should be doing.
>
> But rather than run for the hills, we should pepper Google with
> uncomplimentary speculations concerning their motives for this "turd
> layering" until they 'fess up and give us a release date for a version
> of ADT that will allow us to include Proguard in an Eclipse build
> WITHOUT these problems.
>
> On Sep 22, 9:59 pm, JP  wrote:
>> Just read the latest Android Developer blog 
>> post.http://android-developers.blogspot.com/2010/09/proguard-android-and-l...
>> Quite the beast. And Proguard cannot even be used with confidence
>> ("it’s still possible that in edge cases you’ll end up seeing
>> something like a ClassNotFoundException").
>>
>> Is it just me getting irritated where this seems to be going?
>> In my more active days developing, pretty graphic slang was applies to
>> efforts like this: "Turd layering". Meaning: More dependencies, more
>> procedure, more sources of error, and it doesn't even work "right". In
>> of itself, adding innocent looking steps to a release procedure (for
>> some relatively obscure benefit) might be marginally worthwhile, but
>> in the bigger picture, releasing an app increasingly becomes a burden.
>> Dare you miss a step. Or try to teach somebody else how to go through
>> a release and verify it. Or you want to go and rebuild a development
>> environment. Or lose the ominous reference file (mapping.txt)...
>>
>> Anybody care to disagree and convince me this all nice and dandy and
>> we don't have to literally run for the hills?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: "Proguard, Android, and the Licensing Server", or...

2010-09-24 Thread Xavier Ducrohet
BTW, I would be interested in hearing the problem people have
switching between Ant and ADT.

We are trying to make sure that one can use both at the same time. I
think it makes sense to use ADT during development but use Ant for
automated builds for instance.

I do realize Ant is much more customizable than ADT so going from a
heavily customized Ant to ADT might be impossible, but if you use
Eclipse it should be relatively easy to compile your project with Ant.
For simple project, all you need to do is run the 'android update
project' command, and then run "ant debug" or "ant release".

If there is something preventing you from doing it, please let me
know, as I think we should probably fix this.

thanks,
Xav

On Fri, Sep 24, 2010 at 6:00 AM, Xavier Ducrohet  wrote:
> We are working on direct support in ADT/Ant. We just decided to
> release a quick blog post on how to manually add this to Ant since
> it's somewhat easy to do (unlike ADT).
>
> However, proguard does need to know about which class to not obfuscate
> and there is no way we can figure it out programmatically. Proguard
> itself does try to detect reflection usage, but if it's too dynamic
> (for instance the class/method/field to use by reflection is dynamic
> and too complex to see where the value is coming from) it will fail.
>
> The proguard config file shown in the Dan's blog post (a different Dan
> btw) provides exclusion for the common cases:
> - anything that extends Activity, Service, Application,
> BroadcastReceiver, ContentProvider as those are referenced in the
> manifest.
> - anything that has native method as the name of the class is used to
> find the native function name
> - anything that has a constructor similar to a View, to no rename
> custom views as their name are referenced in layouts
>
> This should cover all the default cases. Now, if you do some fancy
> reflection you will have some problem, and will have to tell proguard
> what to not obfuscate, but there's nothing we can do about and any
> obfuscators will have similar problems.
>
> We are looking at implementing Proguard in ADT/Ant in a way that makes
> it easy to plug a different obfuscator, so if you prefer a different
> solution you will hopefully be able to use it, but I'm pretty sure
> you'll have the same issues.
>
> Unfortunately I can't give a release date for the next version, but we
> usually try to release new tools every 2-3 months.
>
> Xav
>
> On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis  
> wrote:
>> It is not just you. I was pretty disappointed when I read that post,
>> too. I did get a kick out of seeing what a menacing appearance Dan has
>> with his new beard and moustache, though;)
>>
>> I am amazed that Google seems to think it is acceptable to force the
>> user to maintain two different build systems -- one for Eclipse and
>> one for the recommended independent installation of Ant -- and also
>> maintain a text file with a list of classes not to obfuscate. It is
>> too obvious that this is a task ADT should be doing.
>>
>> But rather than run for the hills, we should pepper Google with
>> uncomplimentary speculations concerning their motives for this "turd
>> layering" until they 'fess up and give us a release date for a version
>> of ADT that will allow us to include Proguard in an Eclipse build
>> WITHOUT these problems.
>>
>> On Sep 22, 9:59 pm, JP  wrote:
>>> Just read the latest Android Developer blog 
>>> post.http://android-developers.blogspot.com/2010/09/proguard-android-and-l...
>>> Quite the beast. And Proguard cannot even be used with confidence
>>> ("it’s still possible that in edge cases you’ll end up seeing
>>> something like a ClassNotFoundException").
>>>
>>> Is it just me getting irritated where this seems to be going?
>>> In my more active days developing, pretty graphic slang was applies to
>>> efforts like this: "Turd layering". Meaning: More dependencies, more
>>> procedure, more sources of error, and it doesn't even work "right". In
>>> of itself, adding innocent looking steps to a release procedure (for
>>> some relatively obscure benefit) might be marginally worthwhile, but
>>> in the bigger picture, releasing an app increasingly becomes a burden.
>>> Dare you miss a step. Or try to teach somebody else how to go through
>>> a release and verify it. Or you want to go and rebuild a development
>>> environment. Or lose the ominous reference file (mapping.txt)...
>>>
>>> Anybody care to disagree and convince me this all nice and dandy and
>>> we don't have to literally run for the hills?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK T

[android-developers] LVL licensing and versioning question

2010-09-24 Thread MarcoAndroid
Hello,

Using the licensing technique described here
http://developer.android.com/guide/publishing/licensing.html
I'm trying to test what happens when:
- I would upgrade my LVL protected app to a new version
- Some user hasn't upgraded yet
Will the user with the old version still be able to continue? Will the
licensing server return LICENSED_OLD_KEY as I expect it to, and thus
allow access?

The scenario I used to test this:
- uploaded to market a signed version 1.0.0 (did not publish it) of my
app which has never been published nor uploaded before
- setup test account and let the test response be LICENSED
- on Nexus1 tested and verified that when using the apk (so the one in
/bin), LICENSED is returned.
- increased versionCode and versionName to 1.0.1, signed and uploaded
that version to market (didn't publish)
- on N1 installed the new apk (again the newly compiled one from
/bin). LVL returns NOT_MARKET_MANAGED so indicating that it's
not available in the market. But I expected LICENSED_OLD_KEY to be
returned.

Am I trying something that's not possible to test? From other posts
like this one: 
http://groups.google.com/group/android-developers/browse_thread/thread/b83cc702603b0ee3/74a2ed31e4c1
and this one: 
http://groups.google.com/group/android-developers/browse_thread/thread/1ff17c6bf409cba2/be147a98af3cd1fc
is suggested that the above scenario should work...

If this is not possible to test before publishing an app, did anybody
try this out in the field: will LICENSED_OLD_KEY be returned for older
versions that previously got LICENSED as an answer?

Any ideas?

Regards,
Marco

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


Re: [android-developers] Re: "Proguard, Android, and the Licensing Server", or...

2010-09-24 Thread Justin Giles
I think for most of us it is just the idea of going from a familiar, known
setup to something new with potential pitfalls that could potentially cause
delay in releasing apps initially.  I personally look forward to trying the
build with Ant as I like to customize things, however, it seems that
everyone (including myself) love just hitting the "Easy Button" sometimes.

On Fri, Sep 24, 2010 at 8:05 AM, Xavier Ducrohet  wrote:

> BTW, I would be interested in hearing the problem people have
> switching between Ant and ADT.
>
> We are trying to make sure that one can use both at the same time. I
> think it makes sense to use ADT during development but use Ant for
> automated builds for instance.
>
> I do realize Ant is much more customizable than ADT so going from a
> heavily customized Ant to ADT might be impossible, but if you use
> Eclipse it should be relatively easy to compile your project with Ant.
> For simple project, all you need to do is run the 'android update
> project' command, and then run "ant debug" or "ant release".
>
> If there is something preventing you from doing it, please let me
> know, as I think we should probably fix this.
>
> thanks,
> Xav
>
> On Fri, Sep 24, 2010 at 6:00 AM, Xavier Ducrohet  wrote:
> > We are working on direct support in ADT/Ant. We just decided to
> > release a quick blog post on how to manually add this to Ant since
> > it's somewhat easy to do (unlike ADT).
> >
> > However, proguard does need to know about which class to not obfuscate
> > and there is no way we can figure it out programmatically. Proguard
> > itself does try to detect reflection usage, but if it's too dynamic
> > (for instance the class/method/field to use by reflection is dynamic
> > and too complex to see where the value is coming from) it will fail.
> >
> > The proguard config file shown in the Dan's blog post (a different Dan
> > btw) provides exclusion for the common cases:
> > - anything that extends Activity, Service, Application,
> > BroadcastReceiver, ContentProvider as those are referenced in the
> > manifest.
> > - anything that has native method as the name of the class is used to
> > find the native function name
> > - anything that has a constructor similar to a View, to no rename
> > custom views as their name are referenced in layouts
> >
> > This should cover all the default cases. Now, if you do some fancy
> > reflection you will have some problem, and will have to tell proguard
> > what to not obfuscate, but there's nothing we can do about and any
> > obfuscators will have similar problems.
> >
> > We are looking at implementing Proguard in ADT/Ant in a way that makes
> > it easy to plug a different obfuscator, so if you prefer a different
> > solution you will hopefully be able to use it, but I'm pretty sure
> > you'll have the same issues.
> >
> > Unfortunately I can't give a release date for the next version, but we
> > usually try to release new tools every 2-3 months.
> >
> > Xav
> >
> > On Thu, Sep 23, 2010 at 6:50 PM, Indicator Veritatis 
> wrote:
> >> It is not just you. I was pretty disappointed when I read that post,
> >> too. I did get a kick out of seeing what a menacing appearance Dan has
> >> with his new beard and moustache, though;)
> >>
> >> I am amazed that Google seems to think it is acceptable to force the
> >> user to maintain two different build systems -- one for Eclipse and
> >> one for the recommended independent installation of Ant -- and also
> >> maintain a text file with a list of classes not to obfuscate. It is
> >> too obvious that this is a task ADT should be doing.
> >>
> >> But rather than run for the hills, we should pepper Google with
> >> uncomplimentary speculations concerning their motives for this "turd
> >> layering" until they 'fess up and give us a release date for a version
> >> of ADT that will allow us to include Proguard in an Eclipse build
> >> WITHOUT these problems.
> >>
> >> On Sep 22, 9:59 pm, JP  wrote:
> >>> Just read the latest Android Developer blog post.
> http://android-developers.blogspot.com/2010/09/proguard-android-and-l...
> >>> Quite the beast. And Proguard cannot even be used with confidence
> >>> ("it’s still possible that in edge cases you’ll end up seeing
> >>> something like a ClassNotFoundException").
> >>>
> >>> Is it just me getting irritated where this seems to be going?
> >>> In my more active days developing, pretty graphic slang was applies to
> >>> efforts like this: "Turd layering". Meaning: More dependencies, more
> >>> procedure, more sources of error, and it doesn't even work "right". In
> >>> of itself, adding innocent looking steps to a release procedure (for
> >>> some relatively obscure benefit) might be marginally worthwhile, but
> >>> in the bigger picture, releasing an app increasingly becomes a burden.
> >>> Dare you miss a step. Or try to teach somebody else how to go through
> >>> a release and verify it. Or you want to go and rebuild a development
> >>> environment. Or lose the ominous r

[android-developers] Re: How to decrypt an XML file?

2010-09-24 Thread Donal Rafferty
Updated Code:

public NodeList getRoutingDoc(){
URL url;
NodeList nl = null;

try{
String xmlFeed = context.getString(R.string.xml_feed) +
IMEI + ".xml";
try {
url = new URL(xmlFeed);
URLConnection urlConnection;
urlConnection = url.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection)
urlConnection;
int responseCode = httpConnection.getResponseCode();

if(responseCode == HttpURLConnection.HTTP_OK){
String bytes = toHex("");
Key skeySpec = new SecretKeySpec(toByte(bytes), "AES");

InputStream in = httpConnection.getInputStream();
System.out.println(toByte(bytes));
Cipher c = Cipher.getInstance("AES/CFB8/NoPadding");
c.init(Cipher.DECRYPT_MODE, skeySpec, new
IvParameterSpec(toByte(bytes)));
CipherInputStream cis = new CipherInputStream(in, c);
cis.read(new byte[16]);
BufferedReader br = new BufferedReader(new
InputStreamReader(cis));
System.out.println("Got message");
System.out.println(br.readLine());

DocumentBuilderFactory dbf;
dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();

Document dom = db.parse(in);
//cis.close();
Element docEle = dom.getDocumentElement();

nl = docEle.getElementsByTagName(TAG_CHAR);

}
}
catch (MalformedURLException e) {

e.printStackTrace();
}
catch (IOException e) {

e.printStackTrace();
} catch (ParserConfigurationException e) {

e.printStackTrace();
} catch (SAXException e) {

e.printStackTrace();
} catch (InvalidKeyException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvalidAlgorithmParameterException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchPaddingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
finally{

}
return nl;
}



I have updated my code to the latest version I have.

I am now using the CipherInputStream properly I think and getting the file
in but the System.out.println gives me the following output:

INFO/System.out(7880): � =k�K V�  a ��_|F��(#
 -ï¿½Ñ ï¿½ �u ���n�| �� ~��� �9�< í�|T��sU 
Wlj�9�qeo� M%�t�V�V�3Q" �
 T�Yq?��E��� �H%f 
o���M�un��-���ȓ������ ��i���b�_"��F)�`"�

So it looks as if its no decrypting it at all or not decrypting it
properly??

Can anyone see what I am doing wrong?


On Fri, Sep 24, 2010 at 10:44 AM, draf...@gmail.com wrote:

>  0  down vote  favorite
>
>
> I am trying to to download and decrypt an encrypted XML file.
>
> I have implemented the download part and have tested with an
> unencrypted file and it works fine.
>
> However I now need to be able to download an XML file that has been
> encrypted using AES and the key ""
>
> So I am only concerned with decryption as the encryption on the XML
> file is already done.
>
> Here is my code so far:
>
>  public NodeList getXMLDoc(){
>URL url;
>NodeList nl = null;
>
>try{
>String xmlFeed = context.getString(R.string.xml_feed);
>try {
>url = new URL(xmlFeed);
>URLConnection urlConnection;
>urlConnection = url.openConnection();
>HttpURLConnection httpConnection = (HttpURLConnection)
> urlConnection;
>int responseCode = httpConnection.getResponseCode();
>
>if(responseCode == HttpURLConnection.HTTP_OK){
>
>String bytes = toHex("");
>SecretKeySpec skeySpec = new
> SecretKeySpec(toByte(bytes), "AES");
>try {
>c.init(Cipher.DECRYPT_MODE, skeySpec);
>//c.doFinal();
>} catch (InvalidKeyException e) {
>e.printStackTrace();
>}
>InputStream in = httpConnection.getInputStream();
>CipherInputStream cis = new CipherInputStream(in,
> c);
>DocumentBuilderFactory dbf;
> 

[android-developers] Re: Activity onResumed not getting called

2010-09-24 Thread Albert
> -Have the app launch from the last activity IF the process of the app
> has not being killed

OK, it now works and behaves as I wanted. I could not do it through
activities attributes so I set a static variable that would signal
whether the process is alive or dead, if dead I just launch my main
screen and I clear the stack using the flags...

If anyone has a better solution I'm all ears.

Cheers,
Alberto


On Sep 24, 10:33 am, Albert  wrote:
> Is it possible by using different activity attributes to:
>
> -Have the app launch from the last activity IF the process of the app
> has not being killed
>
> The issue is that the info that the app needs is downloaded and parsed
> at the entry point of the app, then depending of where you go it
> downloads more data, so if the app tries to launch an activity that
> does not have the info it needs to display... I would like to keep the
> activity available but only for as long as the process is active.
>
> Thanks a lot, im playing around with the attributes but no luck yet.
>
> Alberto
>
> On Sep 24, 12:49 am, Dianne Hackborn  wrote:
>
>
>
> > What you are seeing is the normal user interaction.  The user is not aware
> > the process has been killed, so they expect to return to the app in the way
> > they last saw it.
>
> > alwaysRetainTaskState is a totally separate thing, and allows you to turn
> > off a facility where if the user hasn't been in your app for a while, upon
> > returning to it its task can be reset.  This is independent of whether or
> > not its process needs to be restarted.
>
> > On Thu, Sep 23, 2010 at 8:22 AM, Albert  wrote:
>
> > > It looks like attribute this could solve the issue:
>
> > > ---
> > >  -
> > > android:alwaysRetainTaskState
>
> > > Whether or not the state of the task that the activity is in will
> > > always be maintained by the system — "true" if it will be, and "false"
> > > if the system is allowed to reset the task to its initial state in
> > > certain situations. The default value is "false". This attribute is
> > > meaningful only for the root activity of a task; it's ignored for all
> > > other activities.
> > > Normally, the system clears a task (removes all activities from the
> > > stack above the root activity) in certain situations when the user re-
> > > selects that task from the home screen. Typically, this is done if the
> > > user hasn't visited the task for a certain amount of time, such as 30
> > > minutes.
> > > However, when this attribute is "true", users will always return to
> > > the task in its last state, regardless of how they get there. This is
> > > useful, for example, in an application like the web browser where
> > > there is a lot of state (such as multiple open tabs) that users would
> > > not like to lose.
>
> > > ---
> > >  
>
> > > I will try it and post back the results.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.

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


[android-developers] How to generate a java doc for an android project?

2010-09-24 Thread Lidia
Hello to all,

Does someone know how to generate a javadoc for an android project?

I found  searching the net this info http://www.androidjavadoc.com/?p=63
,
but i don't understand where can i find the file "droiddoc.mk":
"All javadoc stuff is concentrated in the ROOT/build/core/droiddoc.mk"

Please help me someone
Lidia

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


[android-developers] "recv failed, errno = 11 (Try again)" when trying to play video from certain hosts

2010-09-24 Thread Aleksander Kmetec
Hello, everyone!

Whenever I try to play a video from certain hosts (in this case it's
Softlayer's CDN) I get the "Sorry, this video cannot be played" error.
Just before te error, several "E/HTTPStream(   67): recv failed, errno
= 11 (Try again)" messages get written to the device log. The same
thing happens whether I create a VideoView in an app or try opening
the video from the browser.

This same video plays fine on Android if I open it from my development
box. It also plays fine on iOS devices and in desktop browsers.

Does anyone know what could be causing these problems? Does HTTPStream
expect any special behavior from the remote server?

I'm using Android 2.2 on HTC Desire.
Video URL, sample code and logcat output pasted below.

Regards,
Aleksander


--

http://cdn.celtra.com/v1/ads/430/compiled/WebPage/reps/8d861e3a73c86e78b1a83e714c31dfe382f5d7cce6bdbfde25cb99501b6c0d0b-mp4.mp4

--

String videoUrl = "http://cdn.celtra.com/v1/ads/430/compiled/WebPage/
reps/8d861e3a73c86e78b1a83e714c31dfe382f5d7cce6bdbfde25cb99501b6c0d0b-
mp4.mp4";

VideoView mVideoView = (VideoView) findViewById(R.id.video);
mVideoView.setVideoURI(Uri.parse(videoUrl));
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();

--
I/MediaPlayer( 3154): MediaPlayer
I/MediaPlayer( 3154): MediaPlayer setDataSource(context, uri,headers)
D/MediaPlayer( 3154): Couldn't open file on client side, trying server
side
V/MediaPlayerService(   67): Client(31) constructor
V/MediaPlayerService(   67): Create new client(31) from pid 3154,
url=http://cdn.celtra.com/v1/ads/430/compiled/WebPage/reps/
8d861e3a73c86e78b1a83e714c31dfe382f5d7cce6bdbfde25cb99501b6c0d0b-
mp4.mp4, connId=31
V/MediaPlayerService(   67): setDataSource(http://cdn.celtra.com/v1/
ads/430/compiled/WebPage/reps/
8d861e3a73c86e78b1a83e714c31dfe382f5d7cce6bdbfde25cb99501b6c0d0b-
mp4.mp4)
V/MediaPlayerService(   67): player type = 4
D/MediaPlayerService(   67): player type = STAGEFRIGHT_PLAYER
V/MediaPlayerService(   67):  create StagefrightPlayer
D/AwesomePlayer(   67): [U5B] reset (382)
D/AwesomePlayer(   67): [U5B] reset_l (388)
D/AwesomePlayer(   67): [U5B] reset_l (478)
V/MediaPlayerService(   67):  setDataSource
I/StagefrightPlayer(   67): setDataSource('http://cdn.celtra.com/v1/
ads/430/compiled/WebPage/reps/
8d861e3a73c86e78b1a83e714c31dfe382f5d7cce6bdbfde25cb99501b6c0d0b-
mp4.mp4')
D/AwesomePlayer(   67): [U5B] reset_l (388)
D/AwesomePlayer(   67): [U5B] reset_l (478)
I/MediaCIQ( 3154): [enableCIQ]
I/MediaCIQ( 3154):   (1) MediaCIQ.java, Func:enableCIQ, Line:136
I/MediaCIQ( 3154):   (2) MediaPlayer.java, Func:setDataSource, Line:
765
I/MediaPlayer( 3154): disable CIQ
I/MediaPlayer( 3154): MediaPlayer setDisplay()
V/MediaPlayerService(   67): [31] setVideoSurface(0x19be8)
V/MediaPlayerService(   67): [31] setVideoSurface(0x19c20)
V/MediaPlayerService(   67): [31] setAudioStreamType(3)
V/MediaPlayerService(   67): [31] prepareAsync
W/HTTPStream(   67): Calling connect()...
W/HTTPStream(   67): Returned from connect()...
D/MediaExtractor(   67): [U5B] Create (47)
I/HTTPStream(   67): 2896 Bytes read, progress 2896/65536

... more of the same ...

I/HTTPStream(   67): 1448 Bytes read, progress 64582/65536
I/HTTPStream(   67): 954 Bytes read, progress 65536/65536
V/MediaExtractor(   67): Autodetected media content as 'video/mpeg4'
with confidence 0.50
D/AwesomePlayer(   67): [U5B] setDataSource_l (350)
W/HTTPStream(   67): Calling connect()...
W/HTTPStream(   67): Returned from connect()...
E/HTTPStream(   67): recv failed, errno = 11 (Try again)
I/HTTPDataSource(   67): Retry ... 2 times left

... more of the same ...

I/HTTPDataSource(   67): Retry ... 0 times left
W/HTTPStream(   67): Calling connect()...
W/HTTPStream(   67): Returned from connect()...
I/HTTPDataSource(   67): retrying connection succeeded.
E/HTTPStream(   67): recv failed, errno = 11 (Try again)

--

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


Re: [android-developers] Update to 0.9.9 causing a little misery :).

2010-09-24 Thread Xavier Ducrohet
Hi,

First, you can ignore the error about missing sdk.properties, that's
not important (especially if you don't compile against API 5 or 6). It
is a stupid bug though and it should get fixed.

What version of ADT did you update from? ADT 0.9.9 is really just a
minor fix from ADT 0.9.8 (released 2 weeks ago or so), which had much
more changes.

Now onto your problem. The issue with dx is that it throws a lot of
exceptions when it's not happy but they are hidden from the tools
calling them. One thing to do is to move your build to verbose (in the
Eclipse preferences under Android/build), so you'll see what exception
was thrown with a message about the reason. Then we'll can figure out
what's wrong.

Xav

On Fri, Sep 24, 2010 at 1:49 AM, Brad Gies  wrote:
>  Anyone know why I would be getting the errors below. The message below is
> showing up in the Console view, and I'm getting a "Conversion to Dalvik
> format failed with error 1".
>
> My app has been working quite well for some time, and I just tried to update
> the SDK and DDMS to 0.9.9, and now it won't build.
>
> I've done a search for the CharBuffer class and don't find any matches in my
> files, but I am using several API's (BUMP, C2DM, Admob). I definitely don't
> use any of the core-library in my code. If the error message is correct, I
> just can't quite figure out how to tell which API is the problem without
> almost wiping out my code base, or starting a new project and copying a few
> files at a time.
>
> Oh... but the two files at the bottom of the file are missing
> android-6\sdk.properties and android-5\sdk.properties. Anyone know where I
> find them?
>
> I have tried uninstalling and reinstalling but so far, no joy :).
>
>
> [2010-09-24 00:54:43 - HotTonight]
> trouble processing "java/nio/CharBuffer.class":
> [2010-09-24 00:54:43 - HotTonight]
> Attempt to include a core class (java.* or javax.*) in something other
> than a core library. It is likely that you have attempted to include
> in an application the core library (or a part thereof) from a desktop
> virtual machine. This will most assuredly not work. At a minimum, it
> jeopardizes the compatibility of your app with future versions of the
> platform. It is also often of questionable legality.
>
> If you really intend to build a core library -- which is only
> appropriate as part of creating a full virtual machine distribution,
> as opposed to compiling an application -- then use the
> "--core-library" option to suppress this error message.
>
> If you go ahead and use "--core-library" but are in fact building an
> application, then be forewarned that your application will still fail
> to build or run, at some point. Please be prepared for angry customers
> who find, for example, that your application ceases to function once
> they upgrade their operating system. You will be to blame for this
> problem.
>
> If you are legitimately using some code that happens to be in a core
> package, then the easiest safe alternative you have is to repackage
> that code. That is, move the classes in question into your own package
> namespace. This means that they will never be in conflict with core
> system classes. If you find that you cannot do this, then that is an
> indication that the path you are on will ultimately lead to pain,
> suffering, grief, and lamentation.
>
> [2010-09-24 00:54:43 - HotTonight] 1 error; aborting
> [2010-09-24 00:54:43 - HotTonight] Conversion to Dalvik format failed with
> error 1
> [2010-09-24 00:54:47 - SDK Manager] Warning: Error parsing 'C:\Program
> Files\Android\SDK\platforms\android-5\sdk.properties':
> java.io.FileNotFoundException: C:\Program
> Files\Android\SDK\platforms\android-5\sdk.properties (The system cannot find
> the file specified).
> [2010-09-24 00:54:47 - SDK Manager] Warning: Error parsing 'C:\Program
> Files\Android\SDK\platforms\android-6\sdk.properties':
> java.io.FileNotFoundException: C:\Program
> Files\Android\SDK\platforms\android-6\sdk.properties (The system cannot find
> the file specified).
> [2010-09-24 00:58:16 - SDK Manager] Warning: Error parsing 'C:\Program
> Files\Android\SDK\platforms\android-5\sdk.properties':
> java.io.FileNotFoundException: C:\Program
> Files\Android\SDK\platforms\android-5\sdk.properties (The system cannot find
> the file specified).
> [2010-09-24 00:58:16 - SDK Manager] Warning: Error parsing 'C:\Program
> Files\Android\SDK\platforms\android-6\sdk.properties':
> java.io.FileNotFoundException: C:\Program
> Files\Android\SDK\platforms\android-6\sdk.properties (The system cannot find
> the file specified).
>
>
>
> --
> Sincerely,
>
> Brad Gies
> ---
> Bistro Bot - Bistro Blurb
> http://bgies.com
> http://bistroblurb.com
> http://ihottonight.com
> http://forcethetruth.com
> ---
>
> Everything in moderation, including abstinence
>
> Never doubt that a small group of thoughtful, c

[android-developers] Re: Threading and the emulator

2010-09-24 Thread kypriakos

Hey Chris

not a bad idea - I will give that a shot. I do see the gc endlessly
working during
and around the suspension time.

Thanks

On Sep 24, 12:29 am, Chris Stratton  wrote:
> Garbage collecting might suspend your thread.  But then so might
> trying to write to the log when the garbage collector is also writing
> to it.
>
> If you want to investigate this, I'd try logging time stamps to a pre-
> allocated buffer for a while, then dumping them out all at once or
> doing some statistics on the interval data.
>
> On Sep 22, 10:34 am, kypriakos  wrote:> Hi all,
>
> > Are there any limits on the number of threads or any constraints
> > on how the emulator (under Eclipse) schedules the application
> > threads? I get suspended threads that don't really wait on anything
> > but rather get bumped out from execution time ... I will try using the
> > Debug class to get some statistics on the thread alloc etc. even
> > though
> > the DDMS does that already.
>
> > One example is, I have a simple class that simply prints a '.' every
> > 3 seconds - well, the LogCat shows the emulator collecting garbage
> > objects but the thread is suspended and does not print the '.' ... I
> > may
> > be missing something simple here
>
> > Thanks

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


Re: [android-developers] Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread Xavier Ducrohet
some classes will not be obfuscated like classes extending Activity,
Service, and other classes referenced in the manifest.

The way the obfuscation works is that it creates a jar file of your
application code (should be in bin/obf/original.jar I think) which is
then obfuscated.

This is the line:
  
in the ant xml fragment you import into your build file.

since you changed the file names a bit make sure the line

still sets the out.dex... prop to contain the proguard'ed jar file.

On Fri, Sep 24, 2010 at 2:22 AM, Anm  wrote:
>
> The timing of this week's blog post was perfect.  It was exactly what
> I intended to do today.  And the extra Ant step worked fine, and I can
> see Proguard obfuscate my files into bin/obf/obfuscated.jar (yes, I
> tweaked the file names and paths a little bit), the resulting App-
> release.apk does not include the obfuscated files.  My first hint was
> my stack traces, but I confirmed it with dedexer.
>
> Has anyone else verified their .apk?  How does the compile step know
> what .class files to use? (I'm hoping its not assuming some hard coded
> path.)
>
>
> Anm
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: New ADT available.

2010-09-24 Thread Xavier Ducrohet
hmm I'm not sure why this would happen.

Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago). 0.9.9
is just a very minor fix over 0.9.8

Xav

On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez
 wrote:
> Saw this problem too.
>
> Tried uninstalling then re-installing the plugins, but still no
> Android options anywhere.
>
> Eclipse sees my Android projects as Java projects.
>
> Were you able to solve it?
>
>
> - Zarah.
>
>
>
> On Sep 24, 10:02 am, String  wrote:
>> I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
>> 3.5, with virtually no other plugins installed...
>>
>> - When I select Help > Check for Updates, it simply says "Nothing to
>> update"
>>
>> - When I enterhttps://dl-ssl.google.com/android/eclipse/into Help >
>> Install New Software, it shows me ADT 0.9.9, but the install fails
>> with the following message:
>>
>> Android DDMS will be ignored because it is already installed, and
>> updates are not permitted.
>> Android Development Tools will be ignored because it is already
>> installed, and updates are not permitted.
>>
>> - Following up on that, I went into Help > About Eclipse >
>> Installation Details, and there too, Update and Uninstall are disabled
>> (grayed out) for both ADT and DDMS.
>>
>> Any ideas?
>>
>> String
>> On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>>
>>
>>
>> > Hi all,
>>
>> > We've just pushed ADT 0.9.9 which contains an important fix from ADT
>> > 0.9.8 that was released last week.
>> > More info:http://developer.android.com/sdk/eclipse-adt.html
>>
>> > Xav
>> > --
>> > Xavier Ducrohet
>> > Android SDK Tech Lead
>> > Google Inc.
>>
>> > Please do not send me questions directly. Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: Android market time to refund.

2010-09-24 Thread Streets Of Boston
Customers can uninstall their app within about 24-48 hours (the exact
number of hours is not quite clear to me), without your intervention
and their purchase is nullified.

After that period, their credit-card (through Google Checkout) gets
charged and the purchase has been made.

Customers can no longer get an automatic refund after this.

But they can contact you and ask for a refund from you. Through their
name and/or order-number, you can refund the purchase to the customer
yourself by going to your checkout.google.com account. When you do
cancel the order for them, the app will be un-installed from the
phone.


On Sep 24, 5:34 am, sblantipodi  wrote:
> Hi,
> can you refresh my mind please?
>
> How much time a customers have to ask for a refund once he bought our
> software from the market?
>
> Thanks.

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


[android-developers] How do I override

2010-09-24 Thread petter
templates/android_rules.xml has a javac rule which says:

http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListView with rows that contain a button

2010-09-24 Thread John Gaby
Thanks for the reply.

Did you do anything special to make it work?  Can you suggest why it
is not working for me?  I am using a custom ViewGroup for the row
views.  Is there something I need to be doing there?

Thanks

On Sep 24, 2:11 am, viktor  wrote:
> Hi John, it is possible, in my example, I use ListView and all list
> items contain "button" (LinearLayout with selector), it works fine, I
> can push on item or on "button". And I set click listener for all
> buttons.
>
> I hope my information will be helpful.

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


Re: [android-developers] How do I override

2010-09-24 Thread Xavier Ducrohet
Right now, your only choice is to duplicate the whole "compile" target
into your build.xml file.

Copy it before the call to the custom task , and edit the parts
you want (in this case the encoding).

Xav

On Fri, Sep 24, 2010 at 7:30 AM, petter  wrote:
> templates/android_rules.xml has a javac rule which says:
>
> 
> How can I override this to use UTF-8 from my own build.xml file? It
> seems like one should be able to use presetdef to override this, but I
> can't figure out how.
>
> //Petter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: How do I override

2010-09-24 Thread petter
Thank you for your reply Xavier.

OK, I'll just duplicate the whole compile target which seem to work
fine, except that I was hoping to find a way of simply overriding the
single encoding attribute...

//Petter

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


[android-developers] Install to sd and alarms

2010-09-24 Thread Peter Sinnott
I am thinking of adding install to sd support to my app but it seems
sd and the alarms manager do not mix well.
So far I have tried receiving ACTION_MEDIA_MOUNTED intents so I can
reregister my alarms but the intent is never fired. Is there any easy
hook I can use to register alarms when my app becomes available after
the sd card is remounted?

My app isn't very large but I think users will appreciate any internal
memory I free up since Android phones don't seem to have very much of
it.

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


Re: [android-developers] Re: Android market time to refund.

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 9:08 AM, Streets Of Boston
wrote:

> Customers can uninstall their app within about 24-48 hours (the exact
> number of hours is not quite clear to me), without your intervention and
> their purchase is nullified.
>

Offiically it's 48 hours. TOS, 3.4: "You authorize Google to give the buyer
a full refund of the Product price if the buyer requests the refund within
48 hours after purchase."

However, it does seem like it's more like 24. If you look at Google Checkout
and find the last sale that was charged, it's usually just over 24 hours (at
least for me), which I assume means they can no longer refund.

If it makes a difference to you, I would assume 24.

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

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

[android-developers] TableLayout text wrapping issue

2010-09-24 Thread Doug Gordon
 I was configuring a two-column table where the TextView column on the 
right sometimes has a long text string and I wanted it to wrap around 
and expand the table cell vertically as it would in HTML. I found that I 
had to configure the TextView with layout height & width of wrap_content 
in order for it to wrap, but I was losing some of the text content as if 
the TextView were extending to the right of the edge of the screen 
before wrapping.


I finally got it to work by applying shrinkColumns to the RH column. It 
now wraps properly, but I'm a bit at a loss to explain this behavior. Is 
this a quirk of this layout type?


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


Re: [android-developers] Re: How do I override

2010-09-24 Thread Xavier Ducrohet
since the encoding attribute value is encoded that's not possible.

I'm going to make it a property so that you'll be able to override it.
Quite a simple change really.

On Fri, Sep 24, 2010 at 7:56 AM, petter  wrote:
> Thank you for your reply Xavier.
>
> OK, I'll just duplicate the whole compile target which seem to work
> fine, except that I was hoping to find a way of simply overriding the
> single encoding attribute...
>
> //Petter
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


[android-developers] Re: Getting Images From Gallery - Not All Work?

2010-09-24 Thread Matt M
Any help truly appreciated!

On Sep 24, 12:27 am, Matt M  wrote:
> Hello,
>
> I am simply trying to get the path of an image that the user selects
> and then convert it into a bitmap. The problem is, only some of the
> images in the gallery work when selected (by "work" I mean they are
> found to be a file that exists), while the others claim the file does
> not exist (even though the image is showing up in the gallery?). Even
> more strange is that this doesn't seem to be consistent, an image that
> was at one point considered to "exist" now claims to be nonexistent.
>
> My code is below:
>
> -The Intent-
> Intent intent = new Intent(Intent.ACTION_PICK);
> intent.setType("image/*");
> startActivityForResult(intent, GALLERY_ACTIVITY);
>
> -onActivityForResult-
> Uri uri = intent.getData();
>
> String [] proj={MediaStore.Images.Media.DATA};
> Cursor cursor = managedQuery(uri,proj,null,null,null);
> int column_index =
> cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
> cursor.moveToFirst();
>
> BitmapFactory.Options opts = new BitmapFactory.Options();
> opts.inSampleSize = 2;
> Bitmap b =
> BitmapFactory.decodeFile(cursor.getString(column_index),opts);
>
> Any ideas on this will be greatly appreciated, thank you!
>
> Matt.

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


[android-developers] Re: trying to get checkbox and image in same line

2010-09-24 Thread Wall-E
This is the image of what's happening:

http://imgur.com/mvOgL.png

What I want is for the lightbulb image/animation to be next to the
text ('1').  What is happening is that when I set the animation it
places it correctly in the ImageView I created inside the LayoutView
but when I add the CheckBox which is done dynamically it goes to the
next line.

What I'm sure I need to do is to create an layout where both the
CheckBox and the image/animation reside and then add that to the
LayoutView inside the ScrollView but I'm not quite sure how to do
that.

Here is a screenshot of my layout:

http://imgur.com/WB4iq.png



On Sep 23, 5:54 pm, TreKing  wrote:
> On Thu, Sep 23, 2010 at 4:14 PM, Wall-E  wrote:
> > I can get the animation to display but it's not on the same line after the
> > text of the CheckBox.  They both (CheckBox and Animation) get displayed but
> > on seperate lines.
>
> Can you post a picture? It would help clarify what you're trying to achieve.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: How to decrypt an XML file?

2010-09-24 Thread Donal Rafferty
Another update:

I have changed the code to test encryption first and then decryption so the
code is now as follows:

[CODE]Cipher c = Cipher.getInstance("AES/CFB8/NoPadding");

ObjectOutputStream oos = new ObjectOutputStream(new
FileOutputStream(keyFile));
oos.writeObject(skeySpec);

c.init(Cipher.ENCRYPT_MODE, skeySpec);
CipherOutputStream cos = new CipherOutputStream(new
FileOutputStream(testFile), c);
PrintWriter pw = new PrintWriter(new OutputStreamWriter(cos));
pw.println("Stand and unfold yourself");
pw.close();
oos.writeObject(c.getIV());
oos.close();

c.init(Cipher.DECRYPT_MODE, skeySpec, new IvParameterSpec(toByte(bytes)));
CipherInputStream cis = new CipherInputStream(new FileInputStream(testFile),
c);
Log.d("", br.readLine());[/CODE]

This log now prints out the following:

[CODE]DEBUG/(13642): �l�Ť���Õ*(��� yourself[/CODE]

So it looks like its decoding the last part of it but not the rest?

Any ideas?

On Fri, Sep 24, 2010 at 2:23 PM, Donal Rafferty  wrote:

>
> Updated Code:
>
> public NodeList getRoutingDoc(){
>
>
> URL url;
> NodeList nl = null;
>
> try{
>
> String xmlFeed = context.getString(R.string.xml_feed) + IMEI + 
> ".xml";
>
>
> try {
> url = new URL(xmlFeed);
>
> URLConnection urlConnection;
> urlConnection = url.openConnection();
>
> HttpURLConnection httpConnection = (HttpURLConnection) 
> urlConnection;
>
> int responseCode = httpConnection.getResponseCode();
>
> if(responseCode == HttpURLConnection.HTTP_OK){
>
> String bytes = toHex("");
>
>
> Key skeySpec = new SecretKeySpec(toByte(bytes), "AES");
>
> InputStream in = httpConnection.getInputStream();
>
> System.out.println(toByte(bytes));
>
> Cipher c = Cipher.getInstance("AES/CFB8/NoPadding");
>
> c.init(Cipher.DECRYPT_MODE, skeySpec, new 
> IvParameterSpec(toByte(bytes)));
>
>
> CipherInputStream cis = new CipherInputStream(in, c);
>
>
> cis.read(new byte[16]);
>
> BufferedReader br = new BufferedReader(new 
> InputStreamReader(cis));
>
> System.out.println("Got message");
>
> System.out.println(br.readLine());
>
>
> DocumentBuilderFactory dbf;
> dbf = DocumentBuilderFactory.newInstance();
>
> DocumentBuilder db = dbf.newDocumentBuilder();
>
>
> Document dom = db.parse(in);
>
> //cis.close();
>
> Element docEle = dom.getDocumentElement();
>
> nl = docEle.getElementsByTagName(TAG_CHAR);
>
> }
> }
> catch (MalformedURLException e) {
>
> e.printStackTrace();
> }
> catch (IOException e) {
>
> e.printStackTrace();
> } catch (ParserConfigurationException e) {
>
> e.printStackTrace();
> } catch (SAXException e) {
>
> e.printStackTrace();
>
> } catch (InvalidKeyException e) {
>
> // TODO Auto-generated catch block
> e.printStackTrace();
>
> } catch (InvalidAlgorithmParameterException e) {
>
> // TODO Auto-generated catch block
> e.printStackTrace();
>
> } catch (NoSuchAlgorithmException e) {
>
> // TODO Auto-generated catch block
> e.printStackTrace();
>
> } catch (NoSuchPaddingException e) {
>
> // TODO Auto-generated catch block
>
> e.printStackTrace();
>
> }
> }
> finally{
>
> }
> return nl;
> }
>
>
>
> I have updated my code to the latest version I have.
>
> I am now using the CipherInputStream properly I think and getting the file
> in but the System.out.println gives me the following output:
>
> INFO/System.out(7880): � =k�K V� a ��_|F��(# -ï¿½Ñ ï¿½
> �u ���n�| �� ~��� �9�< í�|T��sU
> Wlj�9�qeo� M%�t�V�V�3Q" �T�Yq?��E��� �H%f
> o���M�un��-���ȓ������ �[&��%��M �.�jq+��,�b�����
> ��~����)��*ܨ )��>
> ��i���b�_"��F)�`"�
>
> So it looks as if its no decrypting it at all or not decrypting it
> properly??
>
> Can anyone see what I am doing wrong?
>
>
>
> On Fri, Sep 24, 2010 at 10:44 AM, draf...@gmail.com wrote:
>
>>  0  down vote  favorite
>>
>>
>> I am trying to to download and decrypt an encrypted XML file.
>>
>> I have implemented the download part and have tested with an
>> unencrypted file and it works fine.
>>
>> However I now need to be ab

[android-developers] Re: How to decrypt an XML file?

2010-09-24 Thread DanH
There are a lot of subtleties to encryption/decryption having to do
with block size, pre-priming the buffers, and padding at the end.
It's more than just getting the algorithm and key right.

On Sep 24, 4:44 am, "draf...@gmail.com"  wrote:
>  0  down vote  favorite
>
> I am trying to to download and decrypt an encrypted XML file.
>
> I have implemented the download part and have tested with an
> unencrypted file and it works fine.
>
> However I now need to be able to download an XML file that has been
> encrypted using AES and the key ""
>
> So I am only concerned with decryption as the encryption on the XML
> file is already done.
>
> Here is my code so far:
>
>  public NodeList getXMLDoc(){
>         URL url;
>         NodeList nl = null;
>
>         try{
>             String xmlFeed = context.getString(R.string.xml_feed);
>             try {
>                 url = new URL(xmlFeed);
>                 URLConnection urlConnection;
>                 urlConnection = url.openConnection();
>                 HttpURLConnection httpConnection = (HttpURLConnection)
> urlConnection;
>                 int responseCode = httpConnection.getResponseCode();
>
>                 if(responseCode == HttpURLConnection.HTTP_OK){
>
>                     String bytes = toHex("");
>                     SecretKeySpec skeySpec = new
> SecretKeySpec(toByte(bytes), "AES");
>                     try {
>                         c.init(Cipher.DECRYPT_MODE, skeySpec);
>                         //c.doFinal();
>                     } catch (InvalidKeyException e) {
>                         e.printStackTrace();
>                     }
>                     InputStream in = httpConnection.getInputStream();
>                     CipherInputStream cis = new CipherInputStream(in,
> c);
>                     DocumentBuilderFactory dbf;
>                     dbf = DocumentBuilderFactory.newInstance();
>                     DocumentBuilder db = dbf.newDocumentBuilder();
>
>                     Document dom = db.parse(cis);
>
>                     Element docEle = dom.getDocumentElement();
>
>                     nl = docEle.getElementsByTagName(TAG_CHAR);
>
>                     }
>             }
>             catch (MalformedURLException e) {
>
>                 e.printStackTrace();
>             }
>             catch (IOException e) {
>
>                 e.printStackTrace();
>             } catch (ParserConfigurationException e) {
>
>                 e.printStackTrace();
>             } catch (SAXException e) {
>
>                 e.printStackTrace();
>             }
>             }
>             finally{
>
>             }
>         return nl;
>     }
>
> At the minute I am trying to decrypt the whole file using
> CipherInputStream is this the correct approach?
>
> My code above gives me the following exception:
>
> WARN/System.err(5274): java.io.IOException: last block incomplete in
> decryption
>
> Is this a setup error or what might be causing this error?
>
> Are there any tutorials on how to decrypt an XML file in Android/Java?
>
> Am I going in the right direction as to how to decrypt the file or is
> my code completely wrong?

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


Re: [android-developers] Update to 0.9.9 causing a little misery :).

2010-09-24 Thread Brad Gies

 Thanks for the quick reply Xav, but I guess you're off the hook :).

I was using 0.9.7 Never got around to updating to 0.9.8 :).

BUT... this morning, I can't duplicate the problem. All I did, was 
changed the build to verbose, added one space to one of my strings to 
force it to rebuild, and it worked just fine :).


No, I'm not compiling against 5 or 6 (and probably never will again). I 
have minSDKVersion at 4 and compiling against 8. I don't see the error 
about the missing files this morning either.


One thing I did notice last night is that the emulator started up very 
fast compared to what it had been doing... not sure if that was just 
coincidence or not :), but it was a pleasant surprise.



Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead



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


Re: [android-developers] Re: How to decrypt an XML file?

2010-09-24 Thread Donal Rafferty
I am aware of that.

Hence why I am asking for help in identifying which "subtlety" may be
causing the issue.

On Fri, Sep 24, 2010 at 4:51 PM, DanH  wrote:

> There are a lot of subtleties to encryption/decryption having to do
> with block size, pre-priming the buffers, and padding at the end.
> It's more than just getting the algorithm and key right.
>
> On Sep 24, 4:44 am, "draf...@gmail.com"  wrote:
> >  0  down vote  favorite
> >
> > I am trying to to download and decrypt an encrypted XML file.
> >
> > I have implemented the download part and have tested with an
> > unencrypted file and it works fine.
> >
> > However I now need to be able to download an XML file that has been
> > encrypted using AES and the key ""
> >
> > So I am only concerned with decryption as the encryption on the XML
> > file is already done.
> >
> > Here is my code so far:
> >
> >  public NodeList getXMLDoc(){
> > URL url;
> > NodeList nl = null;
> >
> > try{
> > String xmlFeed = context.getString(R.string.xml_feed);
> > try {
> > url = new URL(xmlFeed);
> > URLConnection urlConnection;
> > urlConnection = url.openConnection();
> > HttpURLConnection httpConnection = (HttpURLConnection)
> > urlConnection;
> > int responseCode = httpConnection.getResponseCode();
> >
> > if(responseCode == HttpURLConnection.HTTP_OK){
> >
> > String bytes = toHex("");
> > SecretKeySpec skeySpec = new
> > SecretKeySpec(toByte(bytes), "AES");
> > try {
> > c.init(Cipher.DECRYPT_MODE, skeySpec);
> > //c.doFinal();
> > } catch (InvalidKeyException e) {
> > e.printStackTrace();
> > }
> > InputStream in = httpConnection.getInputStream();
> > CipherInputStream cis = new CipherInputStream(in,
> > c);
> > DocumentBuilderFactory dbf;
> > dbf = DocumentBuilderFactory.newInstance();
> > DocumentBuilder db = dbf.newDocumentBuilder();
> >
> > Document dom = db.parse(cis);
> >
> > Element docEle = dom.getDocumentElement();
> >
> > nl = docEle.getElementsByTagName(TAG_CHAR);
> >
> > }
> > }
> > catch (MalformedURLException e) {
> >
> > e.printStackTrace();
> > }
> > catch (IOException e) {
> >
> > e.printStackTrace();
> > } catch (ParserConfigurationException e) {
> >
> > e.printStackTrace();
> > } catch (SAXException e) {
> >
> > e.printStackTrace();
> > }
> > }
> > finally{
> >
> > }
> > return nl;
> > }
> >
> > At the minute I am trying to decrypt the whole file using
> > CipherInputStream is this the correct approach?
> >
> > My code above gives me the following exception:
> >
> > WARN/System.err(5274): java.io.IOException: last block incomplete in
> > decryption
> >
> > Is this a setup error or what might be causing this error?
> >
> > Are there any tutorials on how to decrypt an XML file in Android/Java?
> >
> > Am I going in the right direction as to how to decrypt the file or is
> > my code completely wrong?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Cannot select rows from a ListView which contains Button controls

2010-09-24 Thread John Gaby
I have the following, very simple test program for using a ListView.
I create a ListView and set it as the content view.  I set a
ListAdapter which supplies the rows.  There are 30 rows, and each row
consists of a LinearLayout ViewGroup.  Into that ViewGroup, I place a
TextView and a Button.  When I run the program, I find that I cannot
select rows of the list.  I can, however, scroll the list and click
the button.

If I remove the button from the LinearLayout (so that it contains only
the TextView), then I am able to select rows of the list.  I would
like to be able to have buttons on my individual row views, and still
be able to select rows of the list.  I received a previous comment
saying that this was possible, but I am at a loss as to how to
accomplish it.

Can anyone give me a clue?

Thanks.

public class ListViewTest extends Activity implements ListAdapter
{
 intm_count;
 DataSetObserver m_observer;

 public ListViewTest()
 {
  m_count  = 30;
  m_observer = null;
 }

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
ListView lv = new ListView(this);
lv.setAdapter(this);
lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
setContentView(lv);
   }

 @Override
 public boolean areAllItemsEnabled() {
  return true;
 }

 @Override
 public boolean isEnabled(int position) {
  return true;
 }

 @Override
 public int getCount()
 {
  return m_count;
 }

 @Override
 public Object getItem(int position) {
  return null;
 }

 @Override
 public long getItemId(int position) {
  return 0;
 }

 @Override
 public int getItemViewType(int position) {
  return 0;
 }

 @Override
 public View getView(int position, View convertView, ViewGroup
parent)
 {
  LinearLayout vg = new LinearLayout(this);

  TextView tv = new TextView(this);
  tv.setText("ListItem");

  Button bv = new Button(this);
  bv.setText("Button");

  vg.addView(tv);
  vg.addView(bv);

  return(vg);
 }

 @Override
 public int getViewTypeCount() {
  return 1;
 }

 @Override
 public boolean hasStableIds() {
  return false;
 }

 @Override
 public boolean isEmpty() {
  return false;
 }

 @Override
 public void registerDataSetObserver(DataSetObserver observer)
 {
  m_observer = observer;
 }

 @Override
 public void unregisterDataSetObserver(DataSetObserver observer) {

 }
}

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


[android-developers] Re: How to decrypt an XML file?

2010-09-24 Thread DanH
Why are you specifying an initialization vector for decrypt and not
encrypt?

On Sep 24, 10:37 am, Donal Rafferty  wrote:
> Another update:
>
> I have changed the code to test encryption first and then decryption so the
> code is now as follows:
>
> [CODE]Cipher c = Cipher.getInstance("AES/CFB8/NoPadding");
>
> ObjectOutputStream oos = new ObjectOutputStream(new
> FileOutputStream(keyFile));
> oos.writeObject(skeySpec);
>
> c.init(Cipher.ENCRYPT_MODE, skeySpec);
> CipherOutputStream cos = new CipherOutputStream(new
> FileOutputStream(testFile), c);
> PrintWriter pw = new PrintWriter(new OutputStreamWriter(cos));
> pw.println("Stand and unfold yourself");
> pw.close();
> oos.writeObject(c.getIV());
> oos.close();
>
> c.init(Cipher.DECRYPT_MODE, skeySpec, new IvParameterSpec(toByte(bytes)));
> CipherInputStream cis = new CipherInputStream(new FileInputStream(testFile),
> c);
> Log.d("", br.readLine());[/CODE]
>
> This log now prints out the following:
>
> [CODE]DEBUG/(13642): �l�Ť���Õ*(��� yourself[/CODE]
>
> So it looks like its decoding the last part of it but not the rest?
>
> Any ideas?
>
> On Fri, Sep 24, 2010 at 2:23 PM, Donal Rafferty  wrote:
>
> > Updated Code:
>
> > public NodeList getRoutingDoc(){
>
> >         URL url;
> >         NodeList nl = null;
>
> >         try{
>
> >             String xmlFeed = context.getString(R.string.xml_feed) + IMEI + 
> > ".xml";
>
> >             try {
> >                 url = new URL(xmlFeed);
>
> >                 URLConnection urlConnection;
> >                 urlConnection = url.openConnection();
>
> >                 HttpURLConnection httpConnection = (HttpURLConnection) 
> > urlConnection;
>
> >                 int responseCode = httpConnection.getResponseCode();
>
> >                 if(responseCode == HttpURLConnection.HTTP_OK){
>
> >                     String bytes = toHex("");
>
> >                     Key skeySpec = new SecretKeySpec(toByte(bytes), "AES");
>
> >                     InputStream in = httpConnection.getInputStream();
>
> >                     System.out.println(toByte(bytes));
>
> >                     Cipher c = Cipher.getInstance("AES/CFB8/NoPadding");
>
> >                     c.init(Cipher.DECRYPT_MODE, skeySpec, new 
> > IvParameterSpec(toByte(bytes)));
>
> >                     CipherInputStream cis = new CipherInputStream(in, c);
>
> >                     cis.read(new byte[16]);
>
> >                     BufferedReader br = new BufferedReader(new 
> > InputStreamReader(cis));
>
> >                     System.out.println("Got message");
>
> >                     System.out.println(br.readLine());
>
> >                     DocumentBuilderFactory dbf;
> >                     dbf = DocumentBuilderFactory.newInstance();
>
> >                     DocumentBuilder db = dbf.newDocumentBuilder();
>
> >                     Document dom = db.parse(in);
>
> >                     //cis.close();
>
> >                     Element docEle = dom.getDocumentElement();
>
> >                     nl = docEle.getElementsByTagName(TAG_CHAR);
>
> >                     }
> >             }
> >             catch (MalformedURLException e) {
>
> >                 e.printStackTrace();
> >             }
> >             catch (IOException e) {
>
> >                 e.printStackTrace();
> >             } catch (ParserConfigurationException e) {
>
> >                 e.printStackTrace();
> >             } catch (SAXException e) {
>
> >                 e.printStackTrace();
>
> >             } catch (InvalidKeyException e) {
>
> >                 // TODO Auto-generated catch block
> >                 e.printStackTrace();
>
> >             } catch (InvalidAlgorithmParameterException e) {
>
> >                 // TODO Auto-generated catch block
> >                 e.printStackTrace();
>
> >             } catch (NoSuchAlgorithmException e) {
>
> >                 // TODO Auto-generated catch block
> >                 e.printStackTrace();
>
> >             } catch (NoSuchPaddingException e) {
>
> >                 // TODO Auto-generated catch block
>
> >                 e.printStackTrace();
>
> >             }
> >             }
> >             finally{
>
> >             }
> >         return nl;
> >     }
>
> > I have updated my code to the latest version I have.
>
> > I am now using the CipherInputStream properly I think and getting the file
> > in but the System.out.println gives me the following output:
>
> >     INFO/System.out(7880): � =k�K V� a ��_|F��(# -ï¿½Ñ ï¿½
> > �u ���n�| �� ~��� �9�< í�|T��sU
> > Wlj�9�qeo� M%�t�V�V�3Q" �    T�Yq?��E��� �H%f
> > o���M�un��-���ȓ������ > �[&��%��M �.�jq+��,�b�����
> > ��~����)��*ܨ )��>
> > ��i���b�_"��F)�`"�
>
> > So it looks as if its no decrypting it at all or not decrypting it
> > properly??
>
> > Can anyone see what I am doin

[android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
Hi,

Is there a way to leave a version of an app on the marketplace (which
is 1.5 compatible) and then put up a new version which is 1.6 and
above compatible? The idea being that any 1.5 users going to
marketplace can only download the 1.5 version, everyone else sees the
1.6+ version?

I'm running into frequent view inflation issues on 1.5, it's like
trying to develop for ie6. I have a version of the app which works
great on 1.6+, limps along on 1.5. I'd like to just cut support for
1.5 here, and move on with 1.6+ since I'm spending too much time
trying to make sure the views don't blow up on 1.5. Any way to do
this?

Thanks

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


Re: [android-developers] Update to 0.9.9 causing a little misery :).

2010-09-24 Thread Brad Gies
 Just for future reference, I think I figured out what happened, and 
I'm pretty sure it's the same thing that happened with the guys in the 
other thread ("New ADT Available").


When I updated, I still had my project open. After the update, I got a 
million errors about missing imports (all Android related), and noticed 
that the Google APIs were missing, so I added them. BUT... what I didn't 
notice at the time was that they were actually there, just not under 
Google API's. They had moved to the "Referenced Libraries" section, so 
when I added them back, both the maps and android .jar's were in my 
project twice.


I noticed it just before I went to bed last night and deleted the extra 
ones. Then this morning, I recompiled and everything worked.


Probably the error about the CharBuffer.class was just that it happened 
to be the first class the compiler noticed in the extra jars.


Hope that helps someone else :).


Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 24/09/2010 6:56 AM, Xavier Ducrohet wrote:

Hi,

First, you can ignore the error about missing sdk.properties, that's
not important (especially if you don't compile against API 5 or 6). It
is a stupid bug though and it should get fixed.

What version of ADT did you update from? ADT 0.9.9 is really just a
minor fix from ADT 0.9.8 (released 2 weeks ago or so), which had much
more changes.

Now onto your problem. The issue with dx is that it throws a lot of
exceptions when it's not happy but they are hidden from the tools
calling them. One thing to do is to move your build to verbose (in the
Eclipse preferences under Android/build), so you'll see what exception
was thrown with a message about the reason. Then we'll can figure out
what's wrong.

Xav

On Fri, Sep 24, 2010 at 1:49 AM, Brad Gies  wrote:

  Anyone know why I would be getting the errors below. The message below is
showing up in the Console view, and I'm getting a "Conversion to Dalvik
format failed with error 1".

My app has been working quite well for some time, and I just tried to update
the SDK and DDMS to 0.9.9, and now it won't build.

I've done a search for the CharBuffer class and don't find any matches in my
files, but I am using several API's (BUMP, C2DM, Admob). I definitely don't
use any of the core-library in my code. If the error message is correct, I
just can't quite figure out how to tell which API is the problem without
almost wiping out my code base, or starting a new project and copying a few
files at a time.

Oh... but the two files at the bottom of the file are missing
android-6\sdk.properties and android-5\sdk.properties. Anyone know where I
find them?

I have tried uninstalling and reinstalling but so far, no joy :).


[2010-09-24 00:54:43 - HotTonight]
trouble processing "java/nio/CharBuffer.class":
[2010-09-24 00:54:43 - HotTonight]
Attempt to include a core class (java.* or javax.*) in something other
than a core library. It is likely that you have attempted to include
in an application the core library (or a part thereof) from a desktop
virtual machine. This will most assuredly not work. At a minimum, it
jeopardizes the compatibility of your app with future versions of the
platform. It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine distribution,
as opposed to compiling an application -- then use the
"--core-library" option to suppress this error message.

If you go ahead and use "--core-library" but are in fact building an
application, then be forewarned that your application will still fail
to build or run, at some point. Please be prepared for angry customers
who find, for example, that your application ceases to function once
they upgrade their operating system. You will be to blame for this
problem.

If you are legitimately using some code that happens to be in a core
package, then the easiest safe alternative you have is to repackage
that code. That is, move the classes in question into your own package
namespace. This means that they will never be in conflict with core
system classes. If you find that you cannot do this, then that is an
indication that the path you are on will ultimately lead to pain,
suffering, grief, and lamentation.

[2010-09-24 00:54:43 - HotTonight] 1 error; aborting
[2010-09-24 00:54:43 - HotTonight] Conversion to Dalvik format failed with
error 1
[2010-09-24 00:54:47 - SDK Manager] Warning: Error parsing 'C:\Program
Files\Android\SDK\platforms\android-5\sdk.properties':
java.io.FileNotFoundException

Re: [android-developers] Re: trying to get checkbox and image in same line

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 10:35 AM, Wall-E  wrote:

> What is happening is that when I set the animation it places it correctly
> in the ImageView I created inside the LayoutView but when I add the CheckBox
> which is done dynamically it goes to the next line.
>

Ah, I see. I think your problem is using LinearLayout - that's just how it
works, putting views in sequential order.
I suggest your use a RelativeLayout and play with the properties. It should
be fairly easy to get this the way you want.

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

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

[android-developers] Re: UnsatisfiedLinkError: Library XXXX not found

2010-09-24 Thread ls02
But we have one single shared library that is used by numerious
classes and instances. Note, the problem occurs very seldom. I never
personally saw it.

On Sep 24, 7:38 am, DanH  wrote:
> You've got to be real careful about loading native classes, and, in
> particular, not load them twice under two different loaders.  (At
> least that's my vague recollection.)
>
> On Sep 23, 10:12 pm, ls02  wrote:
>
>
>
> > So what's the proper way to deal with such issue?
>
> > On Sep 23, 10:39 pm, DanH  wrote:
>
> > > On regular Java systems this can occur when the native class gets
> > > loaded by the wrong class loader.  And there are a couple of other
> > > obscure causes with regard to class loading, IIRC.
>
> > > On Sep 23, 7:34 pm, ls02  wrote:
>
> > > > From time to time we get from customers the following error
>
> > > > java.lang.UnsatisfiedLinkError: Library 
> > > > not found
>
> > > > with stack coming from static class method that loads our shared
> > > > library
>
> > > > The library is obviously there and ussually powering off and on the
> > > > phone fixes the issue. However what's the source of this error at
> > > > first place?- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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


Re: [android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 11:32 AM, Mark Wyszomierski wrote:

> Any way to do this?
>

Set the 1.5 version to max and target SDK = 3 and the 1.6+ version to maxSDK
= 8 (or whatever) and target to whatever you prefer, then update to Market.
It should automatically filter your apps based on the platform the user is
running, so only 1.5 users will see the 1.5 version and everyone else will
see the 1.6 version.

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

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

[android-developers] Increase Internet speed by 20%

2010-09-24 Thread Sami
http://softsami.blogspot.com/2010/09/you-know-that-microsoft-uses-20.html

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


[android-developers] Re: UnsatisfiedLinkError: Library XXXX not found

2010-09-24 Thread DanH
This is an area that is poorly described in the docs (if at all).  The
real specification is in the JCK test cases, which is why I gained a
slight familiarity with it.  You have to read the test cases and
figure out why your Java implementation is failing them to
"understand" the spec.

My vague recollection (this was actually someone else's problem to
debug) is that you can have some classes being loaded under a user
class loader and have the native class be "demand loaded" under that
loader.  Then go back and load some other classes in a different class
loader context and have the native class be loaded again.  This breaks
things.  The "fix" is to pre-load the native classes somehow.

But I'm not convinced that even anyone at Sun understood this
completely.

On Sep 24, 11:54 am, ls02  wrote:
> But we have one single shared library that is used by numerious
> classes and instances. Note, the problem occurs very seldom. I never
> personally saw it.
>
> On Sep 24, 7:38 am, DanH  wrote:
>
> > You've got to be real careful about loading native classes, and, in
> > particular, not load them twice under two different loaders.  (At
> > least that's my vague recollection.)
>
> > On Sep 23, 10:12 pm, ls02  wrote:
>
> > > So what's the proper way to deal with such issue?
>
> > > On Sep 23, 10:39 pm, DanH  wrote:
>
> > > > On regular Java systems this can occur when the native class gets
> > > > loaded by the wrong class loader.  And there are a couple of other
> > > > obscure causes with regard to class loading, IIRC.
>
> > > > On Sep 23, 7:34 pm, ls02  wrote:
>
> > > > > From time to time we get from customers the following error
>
> > > > > java.lang.UnsatisfiedLinkError: Library 
> > > > > not found
>
> > > > > with stack coming from static class method that loads our shared
> > > > > library
>
> > > > > The library is obviously there and ussually powering off and on the
> > > > > phone fixes the issue. However what's the source of this error at
> > > > > first place?- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

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


[android-developers] Re: UnsatisfiedLinkError: Library XXXX not found

2010-09-24 Thread DanH
Ah, it kinda came back to me a little more.  In your particular case
where you have multiple classes referencing the lib you see this:
Native class A is loaded under loader X and loads the lib under that
loader.  Native class B is loaded under loader Y and attempts to load
the lib under that loader.  But a lib can only be loaded once, under
one loader.

On Sep 24, 11:54 am, ls02  wrote:
> But we have one single shared library that is used by numerious
> classes and instances. Note, the problem occurs very seldom. I never
> personally saw it.
>
> On Sep 24, 7:38 am, DanH  wrote:
>
> > You've got to be real careful about loading native classes, and, in
> > particular, not load them twice under two different loaders.  (At
> > least that's my vague recollection.)
>
> > On Sep 23, 10:12 pm, ls02  wrote:
>
> > > So what's the proper way to deal with such issue?
>
> > > On Sep 23, 10:39 pm, DanH  wrote:
>
> > > > On regular Java systems this can occur when the native class gets
> > > > loaded by the wrong class loader.  And there are a couple of other
> > > > obscure causes with regard to class loading, IIRC.
>
> > > > On Sep 23, 7:34 pm, ls02  wrote:
>
> > > > > From time to time we get from customers the following error
>
> > > > > java.lang.UnsatisfiedLinkError: Library 
> > > > > not found
>
> > > > > with stack coming from static class method that loads our shared
> > > > > library
>
> > > > > The library is obviously there and ussually powering off and on the
> > > > > phone fixes the issue. However what's the source of this error at
> > > > > first place?- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

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


[android-developers] Tool/Tab Bar at bottom with HTC Sense-like UI?

2010-09-24 Thread belliott
I am new to Android development and trying to figure out how to create
an HTC Sense-like toolbar at the bottom of my screen. This would be
like the People app on the HTC Droid Incredible that has icons at the
bottom and clear black button that sliders horizontally over the black
and white icons. The active icon will be displayed in color as the
user moves the black button around.

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


Re: [android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
Right now, I'll generate two apks:

   Foo.apk
   Foo-1.5-final.apk

They'll both have the same package names. Should I just change the
'versionName' in the manifest:

// Foo.apk


// Foo-1.5.apk


then upload Foo.apk as usual (os targets updated of course), and
Foo-1.5-final.apk should be uploaded as a completely separate application to
marketplace, right? Then I basically have to tell 1.5 users that they should
search for Foo-1.5-final if they want to use my app, they won't see Foo.apk
at all.

Is that right?

Thanks


On Fri, Sep 24, 2010 at 12:56 PM, TreKing  wrote:

> On Fri, Sep 24, 2010 at 11:32 AM, Mark Wyszomierski wrote:
>
>> Any way to do this?
>>
>
> Set the 1.5 version to max and target SDK = 3 and the 1.6+ version to
> maxSDK = 8 (or whatever) and target to whatever you prefer, then update to
> Market. It should automatically filter your apps based on the platform the
> user is running, so only 1.5 users will see the 1.5 version and everyone
> else will see the 1.6 version.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: HTC Wildfire didn't find my app on the market

2010-09-24 Thread Lance Nanek
The Wildfire is a small screen device. The change you did changes the
default for if your app supports small screen devices. Documented
here:
http://developer.android.com/guide/topics/manifest/supports-screens-element.html

On Sep 24, 7:53 am, Marco Alexander Schmitz
 wrote:
> Hi,
>
> I'd like to speak about a very strange problem.
>
> The HTC Wildfire (OS 2.1) didn't find my app at the android market,
> altough HTC Magic (OS 1.6), HTC Desire (OS 2.2) and Nexus One OS 2.2)
> do so.
>
> This was my problematic scenario:
>
> default.properties:
> target=android-3
>
> AndroidManifest.xml:
> 
>
> The solution was quite simple:
>
> default.properties:
> target=android-4
>
> AndroidManifest.xml:
> 
>
> Best regards,
> Marco

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


[android-developers] Re: New ADT available.

2010-09-24 Thread Zarah Dominguez
Hi Xav,

I updated from 0.9.7 to 0.9.9.  I haven't updated my other workstation
though (it's also still on 0.9.7), how do you suggest I proceed?

Uninstalling and then installing Eclipse seems to be a lot of trouble
for a plug in update. Any ideas? :)



Thanks,
Zarah.


On Sep 24, 10:08 pm, Xavier Ducrohet  wrote:
> hmm I'm not sure why this would happen.
>
> Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago). 0.9.9
> is just a very minor fix over 0.9.8
>
> Xav
>
> On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez
>
>
>
>
>
>  wrote:
> > Saw this problem too.
>
> > Tried uninstalling then re-installing the plugins, but still no
> > Android options anywhere.
>
> > Eclipse sees my Android projects as Java projects.
>
> > Were you able to solve it?
>
> > - Zarah.
>
> > On Sep 24, 10:02 am, String  wrote:
> >> I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> >> 3.5, with virtually no other plugins installed...
>
> >> - When I select Help > Check for Updates, it simply says "Nothing to
> >> update"
>
> >> - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp >
> >> Install New Software, it shows me ADT 0.9.9, but the install fails
> >> with the following message:
>
> >> Android DDMS will be ignored because it is already installed, and
> >> updates are not permitted.
> >> Android Development Tools will be ignored because it is already
> >> installed, and updates are not permitted.
>
> >> - Following up on that, I went into Help > About Eclipse >
> >> Installation Details, and there too, Update and Uninstall are disabled
> >> (grayed out) for both ADT and DDMS.
>
> >> Any ideas?
>
> >> String
> >> On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
> >> > Hi all,
>
> >> > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> >> > 0.9.8 that was released last week.
> >> > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> >> > Xav
> >> > --
> >> > Xavier Ducrohet
> >> > Android SDK Tech Lead
> >> > Google Inc.
>
> >> > Please do not send me questions directly. Thanks!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
>
> Please do not send me questions directly. Thanks!

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


[android-developers] Designing TabHost

2010-09-24 Thread FrEaKmAn
Hello

I'm trying to design 2 custom tabs in my TabHost. I apply a


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


















as background drawable to both tabs. First problem that I noticed is
that I cannot define text colors. It just uses some default settings
that are useless. I tried to apply different states colors in my
themes but it does not work. For some reason it ignores it!

Second problem are corners. As you can see in code, I defined corners.
For some reason they are ignored, why?

Third problem is a border. I have a large, full width black border
under tabs. How to get rid of it or at least change its color? As I
understand, this is a part of FrameLayout under TabWidget...

Best regards,
Erol

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


[android-developers] Re: Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Pent
> They'll both have the same package names. Should I just change the
> 'versionName' in the manifest:

Market won't let you upload two different apps with the same package
name.
Wouldn't for me, anyway.

I have a separate cupcake build, but the package name has 'cupcake'
appended.

I set:

Cupcake: minsdk 3, maxsdk 3
Other: minsdk 4

Pent

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


[android-developers] Re: Capturing / saving a download link

2010-09-24 Thread Lance Nanek
http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading%28android.webkit.WebView,%20java.lang.String%29

On Sep 23, 12:23 pm, Neilz  wrote:
> Hi all. I have a WebView, which will contain links to documents, in
> this case PDF files. The default action (at least on my device) seems
> to be to open the URL with the browser, which in turn causes them to
> be saved in the default download location.
>
> I want to intercept this in my code, so that I can get hold of the
> file and save it to whatever location I choose.
>
> Is this possible?

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


[android-developers] Re: New ADT available.

2010-09-24 Thread Mark Carter
I can confirm there was no problem updating from 0.9.8 to 0.9.9.

On Sep 24, 7:25 pm, Zarah Dominguez  wrote:
> Hi Xav,
>
> I updated from 0.9.7 to 0.9.9.  I haven't updated my other workstation
> though (it's also still on 0.9.7), how do you suggest I proceed?
>
> Uninstalling and then installing Eclipse seems to be a lot of trouble
> for a plug in update. Any ideas? :)
>
> Thanks,
> Zarah.
>
> On Sep 24, 10:08 pm, Xavier Ducrohet  wrote:
>
>
>
> > hmm I'm not sure why this would happen.
>
> > Did you update from 0.9.7 or from 0.9.8 (released 2 weeks ago). 0.9.9
> > is just a very minor fix over 0.9.8
>
> > Xav
>
> > On Thu, Sep 23, 2010 at 11:27 PM, Zarah Dominguez
>
> >  wrote:
> > > Saw this problem too.
>
> > > Tried uninstalling then re-installing the plugins, but still no
> > > Android options anywhere.
>
> > > Eclipse sees my Android projects as Java projects.
>
> > > Were you able to solve it?
>
> > > - Zarah.
>
> > > On Sep 24, 10:02 am, String  wrote:
> > >> I'm unable to upgrade my ADT in [a quite fresh install of] Eclipse
> > >> 3.5, with virtually no other plugins installed...
>
> > >> - When I select Help > Check for Updates, it simply says "Nothing to
> > >> update"
>
> > >> - When I enterhttps://dl-ssl.google.com/android/eclipse/intoHelp>
> > >> Install New Software, it shows me ADT 0.9.9, but the install fails
> > >> with the following message:
>
> > >> Android DDMS will be ignored because it is already installed, and
> > >> updates are not permitted.
> > >> Android Development Tools will be ignored because it is already
> > >> installed, and updates are not permitted.
>
> > >> - Following up on that, I went into Help > About Eclipse >
> > >> Installation Details, and there too, Update and Uninstall are disabled
> > >> (grayed out) for both ADT and DDMS.
>
> > >> Any ideas?
>
> > >> String
> > >> On Sep 23, 10:13 pm, Xavier Ducrohet  wrote:
>
> > >> > Hi all,
>
> > >> > We've just pushed ADT 0.9.9 which contains an important fix from ADT
> > >> > 0.9.8 that was released last week.
> > >> > More info:http://developer.android.com/sdk/eclipse-adt.html
>
> > >> > Xav
> > >> > --
> > >> > Xavier Ducrohet
> > >> > Android SDK Tech Lead
> > >> > Google Inc.
>
> > >> > Please do not send me questions directly. Thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Xavier Ducrohet
> > Android SDK Tech Lead
> > Google Inc.
>
> > Please do not send me questions directly. Thanks!

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


Re: [android-developers] Re: Image Zomming using finger touch.

2010-09-24 Thread Ajmer singh
Hi

Thanks for your reply it did help a lot.


On Fri, Sep 24, 2010 at 5:53 PM, Spiral123  wrote:

> The Sony Ericsson guys did a tutorial on this:
>
> http://blogs.sonyericsson.com/developerworld/2010/05/18/android-one-finger-zoom-tutorial-part-1/
>
> On Sep 23, 3:31 pm, Ajmer Singh  wrote:
> > Hi All
> >
> > I need to implement the Image zoom in and zoom out functionality using
> the
> > finger touch,like we have it in Android  phone Image gallery,
> > Please let me know how can i do this in my app.Does any had done this
> > before.
> >
> > Please help.
> >
> > --
> > Thanks and Regards
> > Ajmer Singh
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
*Thanks and Regards
Ajmer Singh*

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

Re: [android-developers] Re: Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread Mark Wyszomierski
>> Market won't let you upload two different apps with the same package
name.

Ah ok that's what I was thinking. Ok thanks for all the info,

Mark


On Fri, Sep 24, 2010 at 1:37 PM, Pent  wrote:

> > They'll both have the same package names. Should I just change the
> > 'versionName' in the manifest:
>
> Market won't let you upload two different apps with the same package
> name.
> Wouldn't for me, anyway.
>
> I have a separate cupcake build, but the package name has 'cupcake'
> appended.
>
> I set:
>
> Cupcake: minsdk 3, maxsdk 3
> Other: minsdk 4
>
> Pent
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Update to 0.9.9 causing a little misery :).

2010-09-24 Thread Brad Gies
 Just as a follow up to my previous email, and with a little more 
clarity now that I am fully awake


I think the moral of the story is "Don't be an idiot and update the 
Android tools with your project open" ;).


I'm fairly sure this is exactly what happened: When the Android SDK/DDMS 
was uninstalled, the path to them was not, so they now showed up as just 
normal included libraries. When the SDK/DDMS was reinstalled, it didn't 
add the path to my project because it was already there, or probably it 
never does because that is done when the project is created. When I 
first tried to build the project after the update, it did build because 
the maps.jar and android.jar were in the project, but I didn't have any 
of the tools and couldn't use DDMS because Eclipse didn't recognize them 
as Android.


In my case, I then added the maps.jar and android.jar back in the proper 
place, but because they were already a referenced library, I got the 
error about including core classes. In the case of the people on the 
other thread, they just have the two .jar files in the wrong section, so 
they can build but the Android tools aren't being recognized.




Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead



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


Re: [android-developers] How to fix: method getSharedPreferences(String, int) is undefined?

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 1:43 AM, Mystique  wrote:

>  "The method getSharedPreferences(String, int) is undefined for the type
> EventsData".
>
> Does it mean I need to extend both SQLLiteOpenHelper and Activity?
>

It means the the method you are trying to use, getSharedPreferences(String,
int), is not a declared method of the class you're using it in, in this case
"EventsData".

You cannot use a method in a class if it's not defined for that class.


> How to do that or how to fix this?
>

Probably just pass a context, the sharedpreference object, or the preference
value itself to your function from wherever you're calling "ABC".

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

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

[android-developers] Re: Setting layout attributes based on android OS version?

2010-09-24 Thread Mark Wyszomierski
Using a relative layout did help in this case - after some more
testing, I found that TextView is still causing problems when
maxLines=1 / singleLine=true. Taking the same relative layout, I can
toggle those on and off, and cause a stackoverflowexception when
they're on. This is only on 1.5, later os versions work great.

Is there a way to specify a 1.5 layout folder though, similar to the
drawable resources, or landscape folders? Something like:

   /layout
  mylayout.xml

  /layout-v3
  mylayout.xml

if running on 1.5, then the second layout would be used, if not, then
the layout in the general /layout folder would be used?:

Thanks


On Sep 14, 3:21 pm, Kostya Vasilyev  wrote:
> I wonder what would happen of you used RelativeLayout for the entire list
> item.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 14.09.2010 23:04 пользователь "Mark Wyszomierski" 
> написал:
>
> A bit of additional information found through more testing - if I
> restrict each of the textviews to be at most one line with the
> following:
>
>  android:maxLines="1"
>  android:singleLine="true"
>
> then it works fine (even with the background drawable set). If I let
> any one of the text views go more than one line in height, the
> exception will be thrown. It is thrown as soon as I start scrolling
> (for example, even if I scroll very slowly, by one pixel). My list
> adapter isn't getting called to fetch another view as all are on
> screen at this point, it looks like some drawing state which happens
> when the list is being animated maybe? I'm not sure what other
> combinations I can try here in attributes on the text views, I was
> hoping that setting:
>
>  android:ellipsize="none"
>  android:singleLine="false"
>
> would get around whatever state it being hit, but no luck,
>
> Thanks
>
> On Sep 14, 11:29 am, Mark Wyszomierski  wrote:
>
>
>
> > Cool I'll check out those facil...

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


Re: [android-developers] Re: Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 4:33 AM, sblantipodi
wrote:

> what is the blog post you are talking about?


http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html

If you're on this list, you should probably also be following this blog.

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

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

[android-developers] GeoCoding fails after SDK upgrade to 8

2010-09-24 Thread Bret Foreman
I recently upgraded my SDK from 7 to 8. One of my applications uses
Google GeoCoding, specifically the Geocoder object. After the upgrade,
when I call the getFromLocation method, it doesn't return any
addresses and I see a message in the logcat to the effect that GLS
failed with status 20. My Google Maps API key is working fine because
I'm seeing the map tiles, but GeoCoding is broken. It works fine if I
run a previous (SDK 7) build of my app. Any ideas about what might be
wrong?

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


Re: [android-developers] Re: LVL returns LICENSED with anonymous accounts...

2010-09-24 Thread Mark Carter
Yes, the problem is for apps which have neither been published nor are in
draft.

In this scenario, it really does not make sense that the response is based
on the user's developer console settings. It would be much better if it
always returned ERROR_NOT_MARKET_MANAGED.

On 24 September 2010 13:17, MarcoAndroid  wrote:

> Update: I uploaded and saved my exported signed app via the dev-
> console but did not publish it.
> With my test account on N1 I am now able to get returned from LVL what
> I set in the dev console. So I'm not always getting LICENSED back, but
> what I set the test response to, so it is configurable, so that's
> great :)
>
> On 22 sep, 14:43, MarcoAndroid  wrote:
> > I do see this behaviour too (though dev account on emulator and test
> > account on N1). My next thing to try would be uploading my app (but
> > not publishing it) to see if that then gives back what I set in the
> > dev console... Though from previous answers I probably get back
> > LICENSED which as you say is not very handy for real device testing...
> >
> > On 27 aug, 11:21, Mark Carter  wrote:
> >
> >
> >
> > > Can anyone else confirm this please?
> >
> > > On Aug 20, 11:27 am, Mark Carter  wrote:
> >
> > > > This is not what I'm seeing.
> >
> > > > I'm writing a new app which has never been published or in draft.
> >
> > > > I have two devices. One (N1, running 2.2), I'm logged into my main
> > > > Google account (which has the Developer account). The other (Hero
> > > > running 2.1-update1) is a test account I use (no developer account).
> >
> > > > When I use the N1, I always get the response specifed in my Dev
> > > > Console settings.
> > > > When I use the Hero, I always get ERROR_NOT_MARKET_MANAGED.
> >
> > > > It appears the logic goes something like this for non-Market
> > > > (published or draft) apps:
> >
> > > > Check the user has a Dev account.
> > > > If so, use the response set there.
> > > > If not, return ERROR_NOT_MARKET_MANAGED.
> >
> > > > Notice, its the setting for the user, not the dev (because theMarket
> > > > does not know who the dev is), that is used.
> >
> > > > Anyone confirm this?
> >
> > > > On Aug 7, 1:26 am, Trevor Johns  wrote:
> >
> > > > > If an app is not published AND not draft, then you'll get
> > > > > ERROR_NOT_MARKET_MANAGED.
> >
> > > > > If an app is in draft (never published), then we sendLICENSEDfor
> all
> > > > > requests for that app.
> >
> > > > > If an app is published (or has been published then unpublished),
> then
> > > > > the response
> > > > > is driven by the dev console settings for the developer/testers,
> and purely
> > > > > by purchase history for everyone else.
> >
> > > > > --
> > > > > Trevor Johns
> > > > > Google Developer Programs, Androidhttp://developer.android.com
> >
> > > > > On Thu, Aug 5, 2010 at 4:18 AM, Mark Carter <
> mjc1...@googlemail.com> wrote:
> > > > > > So to confirm. If an app is not published (nor draft) then the
> response is
> > > > > > dictated by the user's (i.e. the user running the app, not the
> one who
> > > > > > developed the app) setting in the Dev Console. If the user does
> not have a
> > > > > > Dev account (like many beta testers) then the response will be
> like "Respond
> > > > > > normally"?
> >
> > > > > > If the app is published (or draft) then the response is driven
> primarily by
> > > > > > the dev's console settings and secondarily by theMarketlicense
> server
> > > > > > (storing who has paid for what).
> >
> > > > > >  I think the first part could catch a lot of people out...
> >
> > > > > > On 5 August 2010 11:03, Trevor Johns  wrote:
> >
> > > > > >> If the app isn't in AndroidMarket, the license server will
> return
> > > > > >> ERROR_NOT_MARKET_MANAGED. LicenseValidator considers that to be
> a fatal
> > > > > >> error due to programmer error, and should invoke the
> applicationError()
> > > > > >> callback method.
> >
> > > > > >> My understanding from the server team is that uploading a draft
> version is
> > > > > >> supposed to be sufficient to avoid getting
> ERROR_NOT_MARKET_MANAGED. (In the
> > > > > >> case of existing applications, you'll also need to increment
> your version
> > > > > >> code.)
> >
> > > > > >> The other way you'll avoid this is precisely as Mark mentioned.
> If we
> > > > > >> don't find the application, we check to see if the current user
> has a
> > > > > >> developer account, and will send a test response (if one is set)
> using the
> > > > > >> user's RSA keypair.
> >
> > > > > >> --
> > > > > >> Trevor Johns
> >
> > > > > >> On Wed, Aug 4, 2010 at 12:30 AM, Kirky 
> wrote:
> >
> > > > > >>> Trevor,
> >
> > > > > >>> Can you clarify what the licensing server returns if the App is
> not in
> > > > > >>> the AndroidMarket? In my experience (and it seems other people)
> it is
> > > > > >>> returningLICENSED. This does not seem sensible to me.
> >
> > > > > >>> Thanks
> >
> > > > > >>> Rob
> >
> > > > > >>> On Aug 4, 3:23 am, Trevor Johns  wrote:
> >
> > > > > >>> --
> > > > 

[android-developers] HTC Legend missing BOND_BONDING

2010-09-24 Thread Rafał Grzybowski
I need to discover Bluetooth pairing phase in order to modify my
application behavior, for instance not to close the connection during
onPause. I decided to listen for ACTION_BOND_STATE_CHANGED and
discover BOND_BONDING state and it worked well. At least for my HTC
Wildfire, but for HTC Legend bond state changes from BOND_NONE
immediately to BOND_BONDED after successful pairing skipping
BOND_BONDING state.

Any idea how to discover pairing process?

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


Re: [android-developers] Re: Setting layout attributes based on android OS version?

2010-09-24 Thread Kostya Vasilyev
Sure, you can use alternative resource qualifiers with "layout", including
API version.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

24.09.2010 22:23 пользователь "Mark Wyszomierski" 
написал:

Using a relative layout did help in this case - after some more
testing, I found that TextView is still causing problems when
maxLines=1 / singleLine=true. Taking the same relative layout, I can
toggle those on and off, and cause a stackoverflowexception when
they're on. This is only on 1.5, later os versions work great.

Is there a way to specify a 1.5 layout folder though, similar to the
drawable resources, or landscape folders? Something like:

  /layout
 mylayout.xml

 /layout-v3
 mylayout.xml

if running on 1.5, then the second layout would be used, if not, then
the layout in the general /layout folder would be used?:

Thanks



On Sep 14, 3:21 pm, Kostya Vasilyev  wrote:
> I wonder what would happen of yo...
> 14.09.2010 23:04 пользователь "Mark Wyszomierski" 

> написал:
>
> A bit of additional information found through more testing - if I
> restrict each of ...
--

You received this message because you are subscribed to the Google
Groups "Android Developers" group...

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

Re: [android-developers] Re: Setting layout attributes based on android OS version?

2010-09-24 Thread Kostya Vasilyev

 Correcting myself - you need to do it the other way around:

layout-v4   -for 1.6 and later
layout-used by default on 1.5

-- Kostya

24.09.2010 23:33, Kostya Vasilyev пишет:


Sure, you can use alternative resource qualifiers with "layout", 
including API version.


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

24.09.2010 22:23 пользователь "Mark Wyszomierski" > написал:


Using a relative layout did help in this case - after some more
testing, I found that TextView is still causing problems when
maxLines=1 / singleLine=true. Taking the same relative layout, I can
toggle those on and off, and cause a stackoverflowexception when
they're on. This is only on 1.5, later os versions work great.

Is there a way to specify a 1.5 layout folder though, similar to the
drawable resources, or landscape folders? Something like:

  /layout
 mylayout.xml

 /layout-v3
 mylayout.xml

if running on 1.5, then the second layout would be used, if not, then
the layout in the general /layout folder would be used?:

Thanks



On Sep 14, 3:21 pm, Kostya Vasilyev > wrote:

> I wonder what would happen of yo...

> 14.09.2010 23:04 пользователь "Mark Wyszomierski" >


> написал:
>
> A bit of additional information found through more testing - if I
> restrict each of ...

--

You received this message because you are subscribed to the Google
Groups "Android Developers" group...




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

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

[android-developers] Re: Internet connection is not working in emulator

2010-09-24 Thread Viral Brahmbhatt
Hi,

can any one please help me on this?

On Mon, Sep 13, 2010 at 11:31 AM, viral  wrote:

> Hi,
>
> I am not able to run the internet from my android emulator. whenever I
> try to run my browser i am getting following error on various
> platforms
>
> Following are some of the entries in log window.
>
> Android emulator 2.2:
> ERROR/ActivityThread(269): Failed to find provider info for
> com.google.settings
> onReceivedError -7
> http://www.google.com/m?client=ms-android-google&source=android-home
> The server failed to communicate. Try again later.
>
> Android emulator 2.1:
> ERROR/ActivityThread(114): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(114): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> ERROR/ActivityThread(114): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(114): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(229): Failed to find provider info for
> com.google.settings
> onReceivedError -7
> http://www.google.com/m?client=ms-android-google&source=android-home
> The server failed to communicate. Try again later.
>
> Android emulator 1.6:
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GSM_REGISTERED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(302): Failed to find provider info for
> com.google.settings
> WARN/ActivityManager(77): Unable to start service Intent
> { cmp=com.google.android.googleapps/.GoogleLoginService }: not found
> ERROR/browser(302): onReceivedError -7
> http://www.google.com/m?client=ms-android-google
> The server failed to communicate. Try again later.
>
> Android emulator 1.5:
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GSM_REGISTERED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(846): Failed to find provider info for
> com.google.settings
> ERROR/browser(846): onReceivedError -7
> http://www.google.com/m?client=ms-null
> The server failed to communicate. Try again later.
>
> Please let me know if any one has having any solution for this issue
>
> Thanks in advance
>
> Regards,
> Viral




-- 
Regards,
Viral

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

Re: [android-developers] Install to sd and alarms

2010-09-24 Thread Dianne Hackborn
See here: http://developer.android.com/guide/appendix/install-location.html

Use this to find out when the app is remounted:

http://developer.android.com/reference/android/content/Intent.html#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE

However I would generally suggest not doing this.  If your app isn't large,
there is really not much benefit to it.  Apps on SD is mostly intended for
large applications that are fairly self-contained (read games and stuff like
that).

On Fri, Sep 24, 2010 at 7:57 AM, Peter Sinnott  wrote:

> I am thinking of adding install to sd support to my app but it seems
> sd and the alarms manager do not mix well.
> So far I have tried receiving ACTION_MEDIA_MOUNTED intents so I can
> reregister my alarms but the intent is never fired. Is there any easy
> hook I can use to register alarms when my app becomes available after
> the sd card is remounted?
>
> My app isn't very large but I think users will appreciate any internal
> memory I free up since Android phones don't seem to have very much of
> it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

Re: [android-developers] Install to sd and alarms

2010-09-24 Thread Greg Donald
On Fri, Sep 24, 2010 at 3:28 PM, Dianne Hackborn  wrote:
> Apps on SD is mostly intended for
> large applications that are fairly self-contained (read games and stuff like
> that).

An app being small doesn't stop users from screaming "Why can't I move
this to my sd card, 1 star!".

God I hate users.


-- 
Greg Donald
destiney.com | gregdonald.com

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


[android-developers] Re: GeoCoding fails after SDK upgrade to 8

2010-09-24 Thread Bret Foreman
I don't recall if Google's API code generator asks for the SDK
version. Could that be the problem?

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


[android-developers] Re: Install to sd and alarms

2010-09-24 Thread Peter Sinnott


On Sep 24, 9:35 pm, Greg Donald  wrote:
> On Fri, Sep 24, 2010 at 3:28 PM, Dianne Hackborn  wrote:
> > Apps on SD is mostly intended for
> > large applications that are fairly self-contained (read games and stuff like
> > that).
>
> An app being small doesn't stop users from screaming "Why can't I move
> this to my sd card, 1 star!".
>
> God I hate users.
>

Users suck except when I'm being one.
It will only saves a few hundred kb but if it isn't a massive hassle
it is worth doing.

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


[android-developers] Re: Install to sd and alarms

2010-09-24 Thread Peter Sinnott
"Note that the packages in this list do not receive this broadcast."

Possibly I'm misunderstanding something but I took this to mean my app
will not receive the broadcast.

On Sep 24, 9:28 pm, Dianne Hackborn  wrote:
> See here:http://developer.android.com/guide/appendix/install-location.html
>
> Use this to find out when the app is remounted:
>
> http://developer.android.com/reference/android/content/Intent.html#AC...
>
> However I would generally suggest not doing this.  If your app isn't large,
> there is really not much benefit to it.  Apps on SD is mostly intended for
> large applications that are fairly self-contained (read games and stuff like
> that).
>
>
>
> On Fri, Sep 24, 2010 at 7:57 AM, Peter Sinnott  wrote:
> > I am thinking of adding install to sd support to my app but it seems
> > sd and the alarms manager do not mix well.
> > So far I have tried receiving ACTION_MEDIA_MOUNTED intents so I can
> > reregister my alarms but the intent is never fired. Is there any easy
> > hook I can use to register alarms when my app becomes available after
> > the sd card is remounted?
>
> > My app isn't very large but I think users will appreciate any internal
> > memory I free up since Android phones don't seem to have very much of
> > it.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Re: Internet connection is not working in emulator

2010-09-24 Thread DanH
Here are a few ideas:

http://stackoverflow.com/questions/2039964/how-to-connect-android-emulator-to-the-internet

Would help to know what OS you're running, whether hard-wired or
wireless, whether you're using a proxy, etc.

On Sep 13, 1:01 am, viral  wrote:
> Hi,
>
> I am not able to run the internet from my android emulator. whenever I
> try to run my browser i am getting following error on various
> platforms
>
> Following are some of the entries in log window.
>
> Android emulator 2.2:
> ERROR/ActivityThread(269): Failed to find provider info for
> com.google.settings
> onReceivedError 
> -7http://www.google.com/m?client=ms-android-google&source=android-home
> The server failed to communicate. Try again later.
>
> Android emulator 2.1:
> ERROR/ActivityThread(114): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(114): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
> ERROR/ActivityThread(114): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(114): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(229): Failed to find provider info for
> com.google.settings
> onReceivedError 
> -7http://www.google.com/m?client=ms-android-google&source=android-home
> The server failed to communicate. Try again later.
>
> Android emulator 1.6:
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GSM_REGISTERED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
> ERROR/ActivityThread(122): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(122): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(302): Failed to find provider info for
> com.google.settings
> WARN/ActivityManager(77): Unable to start service Intent
> { cmp=com.google.android.googleapps/.GoogleLoginService }: not found
> ERROR/browser(302): onReceivedError 
> -7http://www.google.com/m?client=ms-android-google
> The server failed to communicate. Try again later.
>
> Android emulator 1.5:
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GSM_REGISTERED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GPRS_ATTEMPTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
> ERROR/ActivityThread(640): Failed to find provider info for
> android.server.checkin
> WARN/Checkin(640): Can't update stat PHONE_GPRS_CONNECTED:
> java.lang.IllegalArgumentException: Unknown URL 
> content://android.server.checkin/stats
>
> ERROR/ActivityThread(846): Failed to find provider info for
> com.google.settings
> ERROR/browser(846): onReceivedError -7http://www.google.com/m?client=ms-null
> The server failed to communicate. Try again later.
>
> Please let me know if any one has having any solution for this issue
>
> Thanks in advance
>
> Regards,
> Viral

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


[android-developers] Compile froyo source on Mac OS X

2010-09-24 Thread n179911
Hi,

Can you please tell me if we can still compile froyo source on Mac OS X 10.5?
Is it true that we need a 64 bit environment and Java 6 in order to
compile froyo source?

I don't think 10.5 is 64 bits and has Java6.

Thank you.

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


Re: [android-developers] Dropping support for 1.5, separate build for those users on marketplace?

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 12:23 PM, Mark Wyszomierski wrote:

> They'll both have the same package names.
>

As Pent said, you can't do this, you'll need unique package names.


> Should I just change the 'versionName' in the manifest: then upload
> Foo.apk as usual (os targets updated of course), and Foo-1.5-final.apk
> should be uploaded as a completely separate application to marketplace,
> right?
>

Right.


> Then I basically have to tell 1.5 users that they should search for
> Foo-1.5-final if they want to use my app, they won't see Foo.apk at all.
>
> Is that right?
>
Right.

Also, I would upload 1.5-final first, then update Foo WITHOUT any changes so
1.5 users can still see it, but with a message that 1.5 users should get the
new version (and point them to it in the market). Then, after like a week to
give people a chance to update, do your final 1.6+ Only build and release.

More work, but should give you a smoother transition for 1.5 users.
Otherwise I don't know how you'd let the 1.5 users know to get the new one
considering they won't be able to see the updated one anymore ...

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

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

Re: [android-developers] GeoCoding fails after SDK upgrade to 8

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 1:57 PM, Bret Foreman wrote:

> Any ideas about what might be wrong?
>

Is this on the emulator?
This has been brought up before - try searching the group.

And have a look here:

http://code.google.com/p/android/issues/detail?id=8816&q=geocoder&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

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

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

[android-developers] Re: Ant build with Proguard (per blog) not obfuscating

2010-09-24 Thread Anm
Thanks for the clue.

It turns out my problem was where I inserted the XML entity.  I place
it after , but setup locked the property with the default
value before the referenced property task was executed.

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


Re: [android-developers] Re: Internet connection is not working in emulator

2010-09-24 Thread Viral Brahmbhatt
Hi,

I am using Win XP, and i have wireless internet connection on my laptop.
there is no proxy

On Sat, Sep 25, 2010 at 2:44 AM, DanH  wrote:

> Here are a few ideas:
>
>
> http://stackoverflow.com/questions/2039964/how-to-connect-android-emulator-to-the-internet
>
> Would help to know what OS you're running, whether hard-wired or
> wireless, whether you're using a proxy, etc.
>
> On Sep 13, 1:01 am, viral  wrote:
> > Hi,
> >
> > I am not able to run the internet from my android emulator. whenever I
> > try to run my browser i am getting following error on various
> > platforms
> >
> > Following are some of the entries in log window.
> >
> > Android emulator 2.2:
> > ERROR/ActivityThread(269): Failed to find provider info for
> > com.google.settings
> > onReceivedError -7
> http://www.google.com/m?client=ms-android-google&source=android-home
> > The server failed to communicate. Try again later.
> >
> > Android emulator 2.1:
> > ERROR/ActivityThread(114): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(114): Can't update stat PHONE_GPRS_ATTEMPTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> > ERROR/ActivityThread(114): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(114): Can't update stat PHONE_GPRS_CONNECTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> >
> > ERROR/ActivityThread(229): Failed to find provider info for
> > com.google.settings
> > onReceivedError -7
> http://www.google.com/m?client=ms-android-google&source=android-home
> > The server failed to communicate. Try again later.
> >
> > Android emulator 1.6:
> > ERROR/ActivityThread(122): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(122): Can't update stat PHONE_GSM_REGISTERED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> >
> > ERROR/ActivityThread(122): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(122): Can't update stat PHONE_GPRS_ATTEMPTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> > ERROR/ActivityThread(122): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(122): Can't update stat PHONE_GPRS_CONNECTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> >
> > ERROR/ActivityThread(302): Failed to find provider info for
> > com.google.settings
> > WARN/ActivityManager(77): Unable to start service Intent
> > { cmp=com.google.android.googleapps/.GoogleLoginService }: not found
> > ERROR/browser(302): onReceivedError -7
> http://www.google.com/m?client=ms-android-google
> > The server failed to communicate. Try again later.
> >
> > Android emulator 1.5:
> > ERROR/ActivityThread(640): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(640): Can't update stat PHONE_GSM_REGISTERED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> >
> > ERROR/ActivityThread(640): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(640): Can't update stat PHONE_GPRS_ATTEMPTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> > ERROR/ActivityThread(640): Failed to find provider info for
> > android.server.checkin
> > WARN/Checkin(640): Can't update stat PHONE_GPRS_CONNECTED:
> > java.lang.IllegalArgumentException: Unknown URL
> content://android.server.checkin/stats
> >
> > ERROR/ActivityThread(846): Failed to find provider info for
> > com.google.settings
> > ERROR/browser(846): onReceivedError -7
> http://www.google.com/m?client=ms-null
> > The server failed to communicate. Try again later.
> >
> > Please let me know if any one has having any solution for this issue
> >
> > Thanks in advance
> >
> > Regards,
> > Viral
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
*Regards,
Viral*

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

  1   2   3   >