[android-developers] Market problems again

2010-06-12 Thread Zsolt Vasvari
My app suddenly lost half its installs  :(Both on the Market
website and on the device Market app.

Does anybody else ee this?

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


[android-developers] Re: Market problems again

2010-06-12 Thread Pieter
Yeah, both my apps lost about 20%. Hopefully this is just a temporary
glitch.

On Jun 12, 8:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


[android-developers] Re: Market problems again

2010-06-12 Thread Luis Santos
Same here. One of my apps went down from 5 downloads to 36000...

I hope it's just a temporal issue.

Luis.

On Jun 12, 2:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


[android-developers] root permission

2010-06-12 Thread amsale zelalem
Hello all,
I have got an htc hero device and would like to install my apk on it. it 
successfully installs my apk but without the database it is using. my database 
is populated prior to running the application, so it runs ok on the emulator. 
but i couldn't load my data on the real device and the apk is displaying forse 
close error.
can anyone please help me how to load my data on the data folder of the device 
including every detailed steps?
please it is very urgent that I need to present it the coming week 
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: Market problems again

2010-06-12 Thread $§Kalle§$
Same for me. Seems to be a general problems. By the way, it did not
affect the ratings. The number of ratings still increased since
yesterday


On 12 Jun., 08:08, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


Re: [android-developers] Re: Market problems again

2010-06-12 Thread Evgeny V
Same for me.


On Sat, Jun 12, 2010 at 10:02 AM, $§Kalle§$ __kalle...@hphone.eu wrote:

 Same for me. Seems to be a general problems. By the way, it did not
 affect the ratings. The number of ratings still increased since
 yesterday


 On 12 Jun., 08:08, Zsolt Vasvari zvasv...@gmail.com wrote:
  My app suddenly lost half its installs  :(Both on the Market
  website and on the device Market app.
 
  Does anybody else ee 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

[android-developers] Re: Market problems again

2010-06-12 Thread tdieckman
Yep, it happened to my counts too. Seems to be exactly half of what
both counts were for me. It happened about 4pm PST. I expect it will
stay this way over the weekend. Glad I don't have my paid app up yet
or I'd be wondering if I would get proper credit for all the sales.

On Jun 11, 11:08 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


[android-developers] Re: Oracle Android App Store

2010-06-12 Thread gosh
(our revenue is from ads in the client  customisation deals in case you're 
wondering).

Then I'm assuming you must require the app publisher to make some
small addition to their source code - which is no big deal to the
coder.

If you also add in that Market does things that third party after-
market app stores can't (automatic updates, copy protection,
permissions-before-download installs), you can see that any company
getting into the Android app store space is competing on a uneven
playing field from day 1 on devices where they aren't integrated into
the firmware

If you already require a mod to the source as per above, you could
also add some phone-home 'occasionally' capability (your marketplace
home) ... which could implement a 'better' copy protection mechanism
than the Android Market currently has.

Similarly, you could also use such phone-home code to implement a
'better' updates policy - e.g. I find the current update mechanism in
Android Market a pain in the butt in that it tries to update apps 'too
often'. E.g. you could let the 'phone user' pick a minimum update
frequency which overrides those frenetic/frivolous updaters.

So, there's two-out-of-three USPs (unique selling points) you could do
better than Android Market, in what you have outlined as
disadvantages.
In addition, you could do the web site version 'a whole lot better'
than Android Market.
[ I'm actually starting to think that maybe the delay in any Android
Market update was largely a lack of traditional structured data
modeling skills - having recently watched their curtness/defensiveness
at the IO 2010 android fireside chat wrt the Market. Sun Inc had such
a problem - because they were such an OO-shop, they didn't really get
the need for a DBMS and structured data until way too late. i.e. You
can't really do an Amazon-like Web 2.0 shop (recommendations, meta-
recommendations, etc) with a free-text-index-Google-style search
mentality approach to DB design. ]

Whatever the initial reason, given that the annual IO-2010 came-and-
went with hot air and no progress Market-wise, the next big 'timing'
event for Google to put out any new Android Market features, will be
the same week as the release of the Windows7 mobile and its
accompanying App Store - which gives you a lot of lead-time for such
improvements.

Steve

On Jun 11, 4:19 pm, Al Sutton a...@funkyandroid.com wrote:
 Do we need any more app stores? :)

 We've been running AndAppStore since the G1 launch and the most common
 reason we hear for developers not listing is that they don't want to
 maintain multiple market listings, so I doubt that the creation of
 multiple markets backed by large companies is viable. AndAppStore
 gives 100% of app sales revenue to developers, making it as profitable
 as possible for paid-apps, and we still hit the multiple market
 maintenance issue (our revenue is from ads in the client 
 customisation deals in case you're wondering).

 If you also add in that Market does things that third party after-
 market app stores can't (automatic updates, copy protection,
 permissions-before-download installs), you can see that any company
 getting into the Android app store space is competing on a uneven
 playing field from day 1 on devices where they aren't integrated into
 the firmware, which makes running a market an unattractive proposition
 for most businesses.

 Al.

 P.S. In case you were wondering, we keep running AndAppStore because
 people want us to and it doesn't drain the companies resources. There
 are users of non-Google experience devices  developers of apps they'd
 like to be paid for who live in non-Google approved countries, so
 we're happy to keep it running.

 On Jun 11, 5:26 am, Andy Savage a...@bluewire.net.nz wrote:



  I think that it's highly possible for a competing App market to make a
  splash but it would have to come pre-installed on the phones. It could be
  possible though for a company who develops one to pre-install it if they
  make a deal with HTC for certain models of phones :-)

  Perhaps just pick 2 of the latest phones and make a deal with HTC to include
  it alongside the google one. Or perhaps HTC could cobrand (HTC store run by
  xyz company).

  --
  The greatest challenge to any thinker is stating the problem in a way that
  will allow a solution
  - Bertrand Russell

  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage

  On Fri, Jun 11, 2010 at 12:21 PM, gosh steve...@unimelb.edu.au wrote:
   HTC don't have the global reach.
   Of the Taiwanese companies ACER is probably the most international in
   reach and intent - although they are pretty much a Microsoft shop.
   They have this annual pattern thats been going for years, where they
   demonstrate some prototype typically running some variant of Linux
   (including Android) at Computex and the like, while they are
   negotiating a better annual deal for Windows XP/and now Windows7 from
   

[android-developers] Kill/Stop other Services in API 8 (Froyo 2.2)

2010-06-12 Thread Patrick Boos
I know of the wonderful change from 2.1 to 2.2 that
ActivityManager.restartPackage now doesn't do the dirty stuff anymore
since it now calls killBackgroundProcesses. Nice on one side, but bad
on the other side. Because of that Services are not killed anymore.
See as well:
http://groups.google.com/group/android-developers/browse_thread/thread/6a544bfd05bf10cf/dc495cdeaa92c98d?lnk=gstq=killbackgroundprocesses#dc495cdeaa92c98d
I am the developer of SleepTimer in the Android market and used
restartPackage to stop Music Players to play music. I therefore killed
the services. That worked well. But now with killBackgroundProcesses
it doesn't work anymore. I added the new Permission to my manifest,
but still the music remains running. Yes i know that google kind of
wants that. But it breaks the possibility to stop the different music
players from my app.
Now my question:
Is there another way to kill/stop other services (music player
services) in API 8?

Thank you for your help.

Sincerely,
Patrick boos

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

2010-06-12 Thread doug
Check out this guy - 
http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html

Even though he sounds like a cross between Yoda and Grover.

On Jun 11, 7:37 am, StillALearner k.mad...@gmail.com wrote:
 Thanks Paul,
  Everything else seems a bit too heavy
 Thats the exact concern for why i have been hunting around different
 forums to check out for a better option,  and as u said JSON with a
 RESTful service is one option am closely looking at.

 and other part which i need suggestion is on the Data
 syncronization !! how is it implemented ?

 On Jun 10, 10:44 am, paulb pbizan...@gmail.com wrote:



  I tend to make RESTful requests over HTTP and expect back JSON
  results. Everything else seems a bit too heavy.

  On Thu, Jun 10, 2010 at 3:15 PM, StillALearner k.mad...@gmail.com wrote:
   Hello,
   I have been trying to develop an android application for sometime now
   and i would like to get some suggestion on the best way of making web
   service calls or to be generic the best way of communication between
   the android platform and web server.
   Soap(using Ksoap) and HTTP(using POST) are two methodologies  XML and
   JSON are the twodataformats that am aware of,(let me know if they
   are few other options too..) and ,
   i would like to know what is the best option ofdatatransfer when
   i) thedatato transfer is Large andlessfrequent.
   ii)morefrequentbutlessdatais being transfered.

   Also when it comes todatasynchronization between server and our
   app , how is that generally implemented ??

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

  - Show quoted text -

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


[android-developers] Re: Market problems again

2010-06-12 Thread Ronald van der Lingen
I have the same problem for my app Retro Clock Widget. It passed
1.000.000 downloads two days ago and now it is back at 870.000. Hope
this can be fixed!

Regards,
Ronald


On Jun 12, 8:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


Re: [android-developers] Re: Placing a bitmap image in ImageView

2010-06-12 Thread pawan nimje
I tried this method [ Bitmap.createScaledBitmap].. its working ..but the
problem is aspect ratio is not maintained  ...

On Thu, Jun 10, 2010 at 1:12 PM, Goran Genter goran.gen...@gmail.comwrote:



 On Jun 10, 6:20 am, pawan nimje pawanni...@gmail.com wrote:
 
  Can you suggest some method to pre-scale the bitmap.


 Bitmap bmpScaled = Bitmap.createScaledBitmap(Bitmap bmpSource, 50, 50,
 true)

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


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

[android-developers] Re: AlarmManager problems in Milestone

2010-06-12 Thread mot12
If you take a look at the log data, you will find that your milestone
goes into something that you may want to call a deep sleep. Even your
standard alarm clock will not run reliably.

To provoke the issue: Turn the display off and have no apps running
that keep the phone active, let the phone sit for a few hours (even
though this has been reported to happen after only a minute too). Then
the milestone will at some point completely stop running and only come
back to life when you manually awaken the display. Check the logcat
output. If you turn off the display, let it sit over night, you will
find some activity after you turned off the display and then
everything stops, no activity at all until you turn on the display
again.

 You can prevent this from happening by one of the following:
- keep the phone on a charger/dock
- keep the display on
- keep the phone running with a partial wake lock; do not manually
turn off the display (let it go off by itself)

I had numerous users of my app Gentle Alarm report this issue but all
the workarounds above work.

Martin
mobitobi (Gentle Alarm, Sleep Now!)

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


Re: [android-developers] root permission

2010-06-12 Thread Yuvi
Why don't you let the app create/populate the db? So you don't have to worry
about permissions to access the /data folder.
For rooting the phone check xda (http://forum.xda-developers.com/) and
search for 'rooting + your phone model'.

Otherwise if you just need to copy files (e.g. from the sdcard) to the
/data/data/your.package.name/databases you could write code inside your app
to do that (since your app has permissions to access its data dir) - check
http://www.screaming-penguin.com/node/7749.

Hope it helps  good luck for your presentation,
YuviDroid

On Sat, Jun 12, 2010 at 8:54 AM, amsale zelalem amt...@yahoo.com wrote:

 Hello all,
 I have got an htc hero device and would like to install my apk on it. it
 successfully installs my apk but without the database it is using. my
 database is populated prior to running the application, so it runs ok on the
 emulator. but i couldn't load my data on the real device and the apk is
 displaying forse close error.
 can anyone please help me how to load my data on the data folder of the
 device including every detailed steps?
 please it is very urgent that I need to present it the coming week
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

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

2010-06-12 Thread Martin Wallgren
Hi

Are there any built in functionality that will strip out html tags
from a String? I could write it my self, I just don't want to reinvent
the wheel if it already exists.

Martin

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 12:15 AM, pawan nimje wrote:
 Hi All,
 
 When I click on a button i want to make entire screen disabled ... i.e
 there are other buttons and text area ..which should get disabled ...on
 a particular button click ..is it possible ??

Sure. Just disable the other widgets, using setEnabled(false).

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Kill/Stop other Services in API 8 (Froyo 2.2)

2010-06-12 Thread Mark Murphy
On 06/12/2010 04:20 AM, Patrick Boos wrote:
 Is there another way to kill/stop other services (music player
 services) in API 8?

No, sorry.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Strip html from String

2010-06-12 Thread Mark Murphy
On 06/12/2010 06:47 AM, Martin Wallgren wrote:
 Hi
 
 Are there any built in functionality that will strip out html tags
 from a String? I could write it my self, I just don't want to reinvent
 the wheel if it already exists.

There is built-in functionality to convert HTML into a Spannable, so the
HTML tags take effect in, say, a TextView -- see Html.fromHtml().

Beyond that, I am aware of nothing in the SDK to de-tag HTML.

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

Android 2.2 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Make entire screen disabled

2010-06-12 Thread pawan nimje
thats ok .. i have tried that .. thats working ... but wat i want is the
screen to look in background ...i.e i want the entire activity screen to
look as if its in the background ( how an sctivity screen looks when theres
dilog box above it) ... hope u r getting wat im trying to say ...

On Sat, Jun 12, 2010 at 4:59 PM, Mark Murphy mmur...@commonsware.comwrote:

 On 06/12/2010 12:15 AM, pawan nimje wrote:
  Hi All,
 
  When I click on a button i want to make entire screen disabled ... i.e
  there are other buttons and text area ..which should get disabled ...on
  a particular button click ..is it possible ??

 Sure. Just disable the other widgets, using setEnabled(false).

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

 Android 2.2 Programming Books: http://commonsware.com/books

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


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

[android-developers] Re: How to test onCreate with saved Bundle?

2010-06-12 Thread Emmanuel
I totally agree !

In my app, some screens are portrait only, and during development, I
authorized landscape, just to test activity creation with Bundle...

Emmanuel / Alocaly

http://androidblogger.blogspot.com/
http://www.alocaly.com/

On Jun 11, 8:21 am, TreKing treking...@gmail.com wrote:
 On Thu, Jun 10, 2010 at 2:15 PM, Jeff jeff.th...@gmail.com wrote:
  Is there anyway that I can simulate or test this case to make sure I
  am restoring correctly now?

 Rotate the screen.

 --- 
 --
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] how to get android version, kernel version and mac address

2010-06-12 Thread shakeel
Hi all

Please help me to write or send me sample code to get android version
number, kernel version and mac address of the android device, using android
API.

Thanks
Shakeel

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

2010-06-12 Thread �罱
See android.os.Build.
-元のメッセージ-
差出人: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] 代理人 shakeel
送信日時: 2010年6月12日 21:48
宛先: android-developers@googlegroups.com
件名: [android-developers] how to get android version, kernel version and
mac address

Hi all

Please help me to write or send me sample code to get android version
number, kernel version and mac address of the android device, using android
API.

Thanks
Shakeel

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

2010-06-12 Thread Martin Wallgren
Yes, but Html.fromHtml() interprets the html and takes action
accordingly (showing images and such) and I just want to strip any
visual formatting and get a readable text version.

I tried Html.fromHtml(htmlSrc).toString(); and that almost does the
trick, but it inserts some ugly character on every image tag. Anyway,
I've made a simple regex to clean it up that hopefully will catch
everything I want gone so I'll  drop this for now.

/Martin

On Jun 12, 1:33 pm, Mark Murphy mmur...@commonsware.com wrote:
 On 06/12/2010 06:47 AM, Martin Wallgren wrote:

  Hi

  Are there any built in functionality that will strip out html tags
  from a String? I could write it my self, I just don't want to reinvent
  the wheel if it already exists.

 There is built-in functionality to convert HTML into a Spannable, so the
 HTML tags take effect in, say, a TextView -- see Html.fromHtml().

 Beyond that, I am aware of nothing in the SDK to de-tag HTML.

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

 Android 2.2 Programming Books:http://commonsware.com/books

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


RE: [android-developers] how to get android version, kernel version and mac address

2010-06-12 Thread shakeel
How to get it through program? And display to the user on screen

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of ??
Sent: Saturday, June 12, 2010 6:45 PM
To: android-developers@googlegroups.com
Subject: 返: [android-developers] how to get android version, kernel version
and mac address

See android.os.Build.
-元のメッセージ-
差出人: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] 代理人 shakeel
送信日時: 2010年6月12日 21:48
宛先: android-developers@googlegroups.com
件名: [android-developers] how to get android version, kernel version and
mac address

Hi all

Please help me to write or send me sample code to get android version
number, kernel version and mac address of the android device, using android
API.

Thanks
Shakeel

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

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

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


[android-developers] Re: How to test onCreate with saved Bundle?

2010-06-12 Thread Lance Nanek
There's an option in the Dev Tools app in the emulator to destroy
activities immediately when left even if not needed.

On Jun 10, 3:15 pm, Jeff jeff.th...@gmail.com wrote:
 My app launches the camera to allow the user to capture a picture.
 Sometimes this causes the OS will kill my App to free up memory for
 the camera. Once the picture is taken, my app starts back up where it
 left off using the Bundle I saved in onSaveInstanceState().

 My app had a bug where in the code that restores the state. Is there
 anyway that I can simulate or test this case to make sure I am
 restoring correctly now? It seems I am having trouble making this
 happen when I want to test it.

 Thanks,
 Jeff

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

2010-06-12 Thread Zsolt Vasvari

Market problems 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] Market problems again

2010-06-12 Thread John T. Haggerty
That leaves a great deal to the imagination as there its little detail

On Jun 12, 2010 8:31 AM, Zsolt Vasvari zvasv...@gmail.com wrote:

 Market problems 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Market problems again

2010-06-12 Thread Zsolt Vasvari
If you had noticed, an idiot hijacked the thread.  I just changed the
title back.

On Jun 12, 10:33 pm, John T. Haggerty jpcoo...@gmail.com wrote:
 That leaves a great deal to the imagination as there its little detail

 On Jun 12, 2010 8:31 AM, Zsolt Vasvari zvasv...@gmail.com wrote:





  Market problems 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.comandroid-developers%2bunsubs­cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: Market problems again

2010-06-12 Thread Lance Nanek
Theoretically the lower number could be correct and the old number
wrong. Not saying it is, just saying it is possible. Or they could
both be correct, but the definition changed. If the market is now
coded such that apps that request newer permissions like the Bluetooth
one don't show up on older phones, even though some of those apps were
capable of working without it, maybe it discounts downloads for those
phones too. Things like that. It would be neat to have some external
confirmation, like a paid app that has more Google Checkout receipts
than downloads.

On Jun 12, 2:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


[android-developers] Re: How to send mms from my code

2010-06-12 Thread mike
hi Sean,

thanks for your reply, but in this case it's not possible to get the
status of the message isn't it??

regards,
Mike

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


[android-developers] Re: Market problems again

2010-06-12 Thread rexowner
The payouts I have received are 1.5-2x what would be indicated by
the download totals listed on the Android Market, so this appears
to be a problem with the numbers listed on the Android Market.

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

2010-06-12 Thread Moss
Here the same I got a reliative new up on which had onlye 1.5k
downloads and now 700 hundret, ratings are the same so it seams like a
market problem. Hope it get right soon!!

On 12 jun, 16:58, rexowner lap...@gmail.com wrote:
 The payouts I have received are 1.5-2x what would be indicated by
 the download totals listed on the Android Market, so this appears
 to be a problem with the numbers listed on the Android Market.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speed issue: content provider vs plain sqlite db

2010-06-12 Thread Moss
Just to make a small update on the issue, I looked a bit at romain
guys shelves app which helped me a lot and my app updates now seamless
15k feed items!

On 6 mayo, 07:12, grace grace.a...@wipro.com wrote:
 Hi,

 I have tried the same thing with content provider and even that take
 some time to load the feeds..
 so i think its nothing to do with the db or content provider

 On May 4, 2:14 am,Mossb.thax@gmail.com wrote:





  Hi there,

  I have made an app that makes extensive use of an internal sqlite db
  to save news feeds. Those feeds are parsed from an URL and then cached
  in the DB so that I'm able to re-add them to a ListView after a
  onPause()/onResume() pair. It's all quite nice but it takes about 2 or
  3 seconds to restore the feed and showup the filled ListView.

  Apart from 1 ListView it's actually a TabHost with 3 ListActivities
  and in each of their ListView's I got about 50 items. So I can not not
  hold all 150 items at once in memory. That's the reason I cache them
  to a DB so I'm able to clear them out in their onPause() call.

  Why is it so slow? Would it be better to implement a ContentProvider?
  And, would it really speed the app up?

  Thanks in advanced.

  Cheers,
   Moss

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

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

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


Re: [android-developers] Re: How to send mms from my code

2010-06-12 Thread Sean Hodges
Mike,

In the way I described, you are correct. There may be some way of
returning the success of the MMS delivery by using
startActivityForResult() instead of startActivity(), but you will have
to take a look at the SMS app source code to see what is available
there.

Regards,

Sean

On Sat, Jun 12, 2010 at 3:44 PM, mike hasitharand...@gmail.com wrote:
 hi Sean,

 thanks for your reply, but in this case it's not possible to get the
 status of the message isn't it??

 regards,
 Mike

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 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] App download/install count - market glitch?

2010-06-12 Thread Ken
I have couple of apps (billboard100 and xmplayer) that had been
reaching download/installs of 10k/9k+ and 9k/6k respectively. This
morning the counts dropped to 1k/1k and 5k/3k. How is that possible?
My ad clicks suggests otherwise.

Anybody experienced the same?

Ken

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

2010-06-12 Thread Al Sutton


On Jun 12, 8:44 am, gosh steve...@unimelb.edu.au wrote:
 (our revenue is from ads in the client  customisation deals in case you're 
 wondering).

 Then I'm assuming you must require the app publisher to make some
 small addition to their source code - which is no big deal to the
 coder.


Nope. The ads are only in our client, and the customisation deals are
with OEMs and hardware distributors for customer versions of our
systems. Developers don't have to modify anything.

  If you also add in that Market does things that third party after-
  market app stores can't (automatic updates, copy protection,
  permissions-before-download installs), you can see that any company
  getting into the Android app store space is competing on a uneven
  playing field from day 1 on devices where they aren't integrated into
  the firmware

 If you already require a mod to the source as per above, you could
 also add some phone-home 'occasionally' capability (your marketplace
 home) ... which could implement a 'better' copy protection mechanism
 than the Android Market currently has.

AndAppStore already offers a purchase checking facility where
developers can, if they want to, check against our database of
purchases to see if the user has purchased a copy of the app for the
specific device it's running on.


 Similarly, you could also use such phone-home code to implement a
 'better' updates policy - e.g. I find the current update mechanism in
 Android Market a pain in the butt in that it tries to update apps 'too
 often'. E.g. you could let the 'phone user' pick a minimum update
 frequency which overrides those frenetic/frivolous updaters.


We're looking at adding a time selector in addition to our the on/off
switch we currently have in the AndAppStore client for background
update checking.

Al.

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


[android-developers] Go through the code ans suggest

2010-06-12 Thread pawan nimje
Below is the code for posting data on a server ...

my problem is i want to show a progress dialog when i click on submit button
and dismiss it when data is posted ...

i have written code for that .. but the thing is the progress dialog comes
and goes ... and its hardly noticeable ..

i hope u have understood my prob  so plz suggest solution ...

_


final Button btnSubmit = (Button) findViewById(R.id.submitButton);
btnSubmit.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
btnSubmit.setEnabled(false);
etPersonName = (EditText) findViewById(R.id.byEditText);
etPostText = (EditText) findViewById(R.id.postEditText);
b = true;
try {
String personName = new String();
personName = etPersonName.getText().toString();
String postStr = new String();
postStr = etPostText.getText().toString();
if(personName.length() == 0 || postStr.length() == 0)
{
Toast.makeText(getApplicationContext(), Message
and/or Sender's Name cannot be Blank. , Toast.LENGTH_SHORT).show();
btnSubmit.setEnabled(true);
}
else
{
btnSubmit.setEnabled(false);
   * m_ProgressDialog =
ProgressDialog.show(LeaveMessage.this, Please wait..., Saving Post ...,
true);*
String msgStr = personName + ~ + postStr;
String encryptStr = msgStr +  +
Constants.POST_KEY;
String android_id =
Secure.getString(cntxt.getContentResolver(), Secure.ANDROID_ID);

String sha1Msg = SimpleSHA1.SHA1(encryptStr);
Constants.LeaveURL = Constants.BasicLeaveURL;
Constants.LeaveURL += ?tp=new;
Constants.LeaveURL += message= + msgStr + ;
Constants.LeaveURL += key= + sha1Msg + ;

if (android_id == null)
{
Constants.LeaveURL += DeviceId= + 12312 +
;
}
else
{
Constants.LeaveURL += DeviceId= + android_id +
;
}

Constants.LeaveURL += cCode= +
Constants.CountryCode;

System.out.println(Constants.LeaveURL);

URL url = new URL(Constants.LeaveURL);
HttpURLConnection conn =
(HttpURLConnection)url.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod(POST);

/* setRequestProperty */
conn.setRequestProperty(Connection, Keep-Alive);
conn.setRequestProperty(Charset, UTF-8);
conn.setRequestProperty(Content-Type,
multipart/form-data);

DataOutputStream ds = new
DataOutputStream(conn.getOutputStream());
if(Constants.takePhoto!=null)

{
ByteArrayOutputStream baos = new
ByteArrayOutputStream();

Constants.takePhoto.compress(Bitmap.CompressFormat.JPEG, 100, baos);
byte[] data = baos.toByteArray();
ds.write(data);

}

Constants.takePhoto=null;
ds.flush();
ds.close();
   * //m_ProgressDialog.dismiss();*
if(conn.getResponseCode() !=
HttpURLConnection.HTTP_OK){
Toast.makeText(getBaseContext(),
conn.getResponseMessage(), Toast.LENGTH_LONG);
}
else{
   * m_ProgressDialog.dismiss();*
Toast.makeText(getBaseContext(), Message
Posted!!, Toast.LENGTH_LONG);
Intent i = new Intent(getApplicationContext(),
ReadMessages.class);
startActivity(i);
}
}
 }
catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 

[android-developers] What is the thing which is shown while the image is loaded.

2010-06-12 Thread pawan nimje
Hi all

what is the thing called which is similar to progress dialog ... but for
image ( or say image view)

and how can i integrate that in the code ..

i am attaching the code files
__

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

ReadImageThread.java
Description: Binary data


ReadMessages.java
Description: Binary data


返: [android-developers] how to get android version , kernel version and mac address

2010-06-12 Thread �罱
Log.i(test,Build.MODEL);

-元のメッセージ-
差出人: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] 代理人 shakeel
送信日時: 2010年6月12日 23:10
宛先: android-developers@googlegroups.com
件名: RE: [android-developers] how to get android version, kernel version
and mac address

How to get it through program? And display to the user on screen

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of ??
Sent: Saturday, June 12, 2010 6:45 PM
To: android-developers@googlegroups.com
Subject: 返: [android-developers] how to get android version, kernel version
and mac address

See android.os.Build.
-元のメッセージ-
差出人: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] 代理人 shakeel
送信日時: 2010年6月12日 21:48
宛先: android-developers@googlegroups.com
件名: [android-developers] how to get android version, kernel version and
mac address

Hi all

Please help me to write or send me sample code to get android version
number, kernel version and mac address of the android device, using android
API.

Thanks
Shakeel

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

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

2010-06-12 Thread Brad Gies


Get the time when you show the m_ProgressDialog and then instead of 
dismissing the m_ProgressDialog in your If statement calculate how 
long it has been visible and post a delayed message to a handler so that 
it will show for the time you want, and then raise your toast and start 
your new activity from the handler after dismissing the Dialog.




On 12/06/2010 9:07 AM, pawan nimje wrote:

Below is the code for posting data on a server ...

my problem is i want to show a progress dialog when i click on submit 
button and dismiss it when data is posted ...


i have written code for that .. but the thing is the progress dialog 
comes and goes ... and its hardly noticeable ..


i hope u have understood my prob  so plz suggest solution ...

_


final Button btnSubmit = (Button) findViewById(R.id.submitButton);
btnSubmit.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
btnSubmit.setEnabled(false);
etPersonName = (EditText) findViewById(R.id.byEditText);
etPostText = (EditText) findViewById(R.id.postEditText);
b = true;
try {
String personName = new String();
personName = etPersonName.getText().toString();
String postStr = new String();
postStr = etPostText.getText().toString();
if(personName.length() == 0 || postStr.length() == 0)
{
Toast.makeText(getApplicationContext(), 
Message and/or Sender's Name cannot be Blank. , 
Toast.LENGTH_SHORT).show();

btnSubmit.setEnabled(true);
}
else
{
btnSubmit.setEnabled(false);
* m_ProgressDialog = ProgressDialog.show(LeaveMessage.this, Please 
wait..., Saving Post ..., true);*

String msgStr = personName + ~ + postStr;
String encryptStr = msgStr +  + 
Constants.POST_KEY;
String android_id = 
Secure.getString(cntxt.getContentResolver(), Secure.ANDROID_ID);


String sha1Msg = SimpleSHA1.SHA1(encryptStr);
Constants.LeaveURL = Constants.BasicLeaveURL;
Constants.LeaveURL += ?tp=new;
Constants.LeaveURL += message= + msgStr + ;
Constants.LeaveURL += key= + sha1Msg + ;

if (android_id == null)
{
Constants.LeaveURL += DeviceId= + 
12312 + ;

}
else
{
Constants.LeaveURL += DeviceId= + 
android_id + ;

}

Constants.LeaveURL += cCode= + 
Constants.CountryCode;


System.out.println(Constants.LeaveURL);

URL url = new URL(Constants.LeaveURL);
HttpURLConnection conn = 
(HttpURLConnection)url.openConnection();

conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod(POST);

/* setRequestProperty */
conn.setRequestProperty(Connection, 
Keep-Alive);

conn.setRequestProperty(Charset, UTF-8);
conn.setRequestProperty(Content-Type, 
multipart/form-data);


DataOutputStream ds = new 
DataOutputStream(conn.getOutputStream());

if(Constants.takePhoto!=null)
{
ByteArrayOutputStream baos = new 
ByteArrayOutputStream();

Constants.takePhoto.compress(Bitmap.CompressFormat.JPEG, 100, baos);

byte[] data = baos.toByteArray();
ds.write(data);

}

Constants.takePhoto=null;
ds.flush();
ds.close();
* //m_ProgressDialog.dismiss();*
if(conn.getResponseCode() != 
HttpURLConnection.HTTP_OK){
Toast.makeText(getBaseContext(), 
conn.getResponseMessage(), Toast.LENGTH_LONG);

}
else{
* m_ProgressDialog.dismiss();*
Toast.makeText(getBaseContext(), Message 
Posted!!, Toast.LENGTH_LONG);
Intent i = new 
Intent(getApplicationContext(), ReadMessages.class);

startActivity(i);
}

[android-developers] Re: Strip html from String

2010-06-12 Thread Yahel
 Are there any built in functionality that will strip out html tags
 from a String?

I would go regular expression on this one.

For example but not tested :

http://networking.ringofsaturn.com/Web/removetags.php

Yahel

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

2010-06-12 Thread James Aguilar
I was reading the documentation for recording audio and video (http://
developer.android.com/guide/topics/media/index.html) and noticed a few
problems:

Video and image capture are not described even though MediaRecorder's
documentation directs readers to this page for more information.
Through other websites, I discovered that video capture is a fair bit
more involved and has a number of gotchas compared to audio capture.
For example, the internet seems to hold that for now a valid preview
surface is counterintuitively required for video capture (http://
stackoverflow.com/questions/1032912/android-does-anyone-know-how-to-
capture-video/1592917#1592917). It would be nice if these quirks were
documented on this page.

The code listed in the example is not correct (as of API version 7 --
I also checked some of these against the most recent API, but not all
of them).

- MediaStore.MediaColumns does not contain a TIMESTAMP field. (I think
DATE_ADDED is what's actually there.)

- MediaStore.Audio does not have an INTERNAL_CONTENT_URI field.

- ContentResolver is an abstract class that cannot be instantiated.

- ContentResolver does not have a getDataFilePath method.

- MediaRecorder does not have a getMimeContentType method, or any
other method that performs this function.

- A comment in the example suggests that the preview display is
optional, which according to all the information I referred to earlier
it is not.

This whole section of the docs could use a lot more detail. Maybe
links to the android camera application source would also be helpful
(http://android.git.kernel.org/?p=platform/packages/apps/
Camera.git;a=blob;f=src/com/android/camera/
Camera.java;h=523df5f06ccd97314006bf655a86f453914cb86b;hb=master).

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 02:01 PM, James Aguilar wrote:
 I was reading the documentation for recording audio and video (http://
 developer.android.com/guide/topics/media/index.html) and noticed a few
 problems

Issues like this need to be captured in http://b.android.com, if you
have not done so already.

 For example, the internet seems to hold that for now a valid preview
 surface is counterintuitively required for video capture (http://
 stackoverflow.com/questions/1032912/android-does-anyone-know-how-to-
 capture-video/1592917#1592917).

I believe that is there for privacy, so users know when the camera is
rolling. A similar requirement exists for the still Camera class.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2010-06-12 Thread kozyr
I have thesame problem -- my app lost about half of the installs as
well yesterday night...

On Jun 12, 1:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 My app suddenly lost half its installs  :(    Both on the Market
 website and on the device Market app.

 Does anybody else ee this?

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


[android-developers] regrading invisible( hide ) running service

2010-06-12 Thread Nandan .
hii friends...

i m trying to create a service which does not display in

 Android phone -- Setting---Application---Running Service

it is possible in android. how can i hide service form this location..

can any one had done this..

please help me

Thank you in advanced

With regrads
Bhavesh

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 02:29 PM, Nandan . wrote:
 hii friends...
 
 i m trying to create a service which does not display in
 
  Android phone -- Setting---Application---Running Service
 
 it is possible in android. how can i hide service form this location..

SDK applications cannot hide services from the user, for obvious
security reasons.

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

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

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


[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-12 Thread beemer
Same here. I've spended two hour until I've figured out why my app had
stopped working on 1.5

I'm using three folders drawable-hdpi, drawable-mdpi, and drawable-
ldpi. The solution has been to create another folder called drawable-
v3 that contains a copy of drawable-mdpi.

Now I'll try to change the icons on this folder for alias, to save
space.

Another option could be what Xavier Ducrochet commented about moving
all resoutces from mdpi to drawable, but not sure if this can affect
ldpi and hdpi 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] discoverability

2010-06-12 Thread greg
It seems that a menu icon and/or a long click icon in the status bar
(i.e., along with the battery status icon) would help users know which
activities have menus and/or views that have long click functionality.

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

2010-06-12 Thread Mr Pants
Same here - ETA on fix please Mr Google? I hope it's not going to be
like the last one which took ages

On Jun 12, 7:19 pm, kozyr kozyr.develo...@gmail.com wrote:
 I have thesame problem -- my app lost about half of the installs as
 well yesterday night...

 On Jun 12, 1:08 am, Zsolt Vasvari zvasv...@gmail.com wrote:



  My app suddenly lost half its installs  :(    Both on the Market
  website and on the device Market app.

  Does anybody else ee this?

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


[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-12 Thread Bo
Did you try changing the name drawable-mpi to drawable?

I believe that will work

On Jun 12, 8:42 pm, beemer mse...@gmail.com wrote:
 Same here. I've spended two hour until I've figured out why my app had
 stopped working on 1.5

 I'm using three folders drawable-hdpi, drawable-mdpi, and drawable-
 ldpi. The solution has been to create another folder called drawable-
 v3 that contains a copy of drawable-mdpi.

 Now I'll try to change the icons on this folder for alias, to save
 space.

 Another option could be what Xavier Ducrochet commented about moving
 all resoutces from mdpi to drawable, but not sure if this can affect
 ldpi and hdpi 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] GridView - setting selection to last item also loads first item

2010-06-12 Thread Goran Genter
Greetings everyone,

I'm developing application that shows thumbnails of images in gridview
widget. I load html with image names, and set ImageAdapter. That image
adapter loads single image (from internet or SD card) in AsyncTask
with selected image position. After I initialy download html with
image names, and parse them to array, I set selection of GridView to
index of last image. But, what happens is this : first image that gets
downloaded is image with index zero. That gives me a lot of trouble
because i'm using convert views and AsyncTasks, so sometimes I end up
with wrong picture at first column in last row (sometimes picture with
index 0 gets in there), depending on which AsyncTask gets executed
first. Even stranger, I end up with around 10 calls to getView for
image with index 0.

Does anyone have idea how to switch GridViews position to last image,
and not have image with index 0 loading?

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

2010-06-12 Thread Bill Lumberg
I have a ListView with several columns and I need a header row at the
very top that labels each of these columns that *does not* scroll with
the rest of the ListView. I am using addHeaderView right now, but I've
ran into 2 problems:

1) The header scrolls. I need it outside of scrolling so that it's
always floating on top.

2) Each column in the header isn't lining up with the columns in the
listview. I can make the header columns and data columns all line up
perfectly if they're all in one big TableLayout, but how would I get
the header to be outside of the scrollview yet also stay uniform and
inline with the data columns?


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: GridView - setting selection to last item also loads first item

2010-06-12 Thread Streets Of Boston
Use the convertView.setTag to set an identifier that your AsyncTask
can recognize when the image has been loaded.
Don't rely on the order in which the getView gets called (with respect
to its 'position' parameter).

On Jun 12, 4:35 pm, Goran Genter goran.gen...@gmail.com wrote:
 Greetings everyone,

 I'm developing application that shows thumbnails of images in gridview
 widget. I load html with image names, and set ImageAdapter. That image
 adapter loads single image (from internet or SD card) in AsyncTask
 with selected image position. After I initialy download html with
 image names, and parse them to array, I set selection of GridView to
 index of last image. But, what happens is this : first image that gets
 downloaded is image with index zero. That gives me a lot of trouble
 because i'm using convert views and AsyncTasks, so sometimes I end up
 with wrong picture at first column in last row (sometimes picture with
 index 0 gets in there), depending on which AsyncTask gets executed
 first. Even stranger, I end up with around 10 calls to getView for
 image with index 0.

 Does anyone have idea how to switch GridViews position to last image,
 and not have image with index 0 loading?

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 04:38 PM, Bill Lumberg wrote:
 I have a ListView with several columns and I need a header row at the
 very top that labels each of these columns that *does not* scroll with
 the rest of the ListView. I am using addHeaderView right now, but I've
 ran into 2 problems:
 
 1) The header scrolls. I need it outside of scrolling so that it's
 always floating on top.

Put the header outside the ListView.

 2) Each column in the header isn't lining up with the columns in the
 listview. I can make the header columns and data columns all line up
 perfectly if they're all in one big TableLayout, but how would I get
 the header to be outside of the scrollview yet also stay uniform and
 inline with the data columns?

You'll need to set the sizes of every one of your columns -- in other
words, use dimension resources instead of wrap_content for the width. If
you use a RelativeLayout for the header and a RelativeLayout for the
rows, you can then use those same dimensions and layout_marginLeft to
have everything consistently line up.

Or, use GridView.

Or, write a MultiColumnListView.

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

_Android Programming Tutorials_ Version 2.1 Available!

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


[android-developers] Re: Certain apps not being shown in Android Market?

2010-06-12 Thread powder
I now have the wrong download count in Android Market... What is going
on?

On Jun 11, 11:55 pm, niko001 ebs...@googlemail.com wrote:
 Still not working for me :-/! I've just found a pirated version of one
 of my apps (that had copy-protection enabled) floating around on
 several different sites, so the copy protection apparently isn't doing
 much good anyway and I can safely disable it ;-)!

 On Jun 9, 1:17 am, TreKing treking...@gmail.com wrote:



  On Tue, Jun 8, 2010 at 4:17 PM, powder andr...@unidevsolutions.com wrote:
   Google did a fix:

  http://android-developers.blogspot.com/2010/06/application-visibility...

  I like this part:

  Regrettably, we fell short of our own standard for customer support by not

   communicating the issue to our developers and how we were working to 
   resolve
   it.

  Apparently Google has a standard for customer support. Who knew.

  --- 
  --
  TreKing - Chicago transit tracking app for Android-powered 
  deviceshttp://sites.google.com/site/rezmobileapps/treking

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


Re: [android-developers] Static header in ListView

2010-06-12 Thread Bill Lumberg
Thanks Mark.  If I have to set the widths for each column, how do I
ensure that it expands to fit every screen size perfectly?


On Sat, Jun 12, 2010 at 2:50 PM, Mark Murphy mmur...@commonsware.com wrote:
 On 06/12/2010 04:38 PM, Bill Lumberg wrote:
 I have a ListView with several columns and I need a header row at the
 very top that labels each of these columns that *does not* scroll with
 the rest of the ListView. I am using addHeaderView right now, but I've
 ran into 2 problems:

 1) The header scrolls. I need it outside of scrolling so that it's
 always floating on top.

 Put the header outside the ListView.

 2) Each column in the header isn't lining up with the columns in the
 listview. I can make the header columns and data columns all line up
 perfectly if they're all in one big TableLayout, but how would I get
 the header to be outside of the scrollview yet also stay uniform and
 inline with the data columns?

 You'll need to set the sizes of every one of your columns -- in other
 words, use dimension resources instead of wrap_content for the width. If
 you use a RelativeLayout for the header and a RelativeLayout for the
 rows, you can then use those same dimensions and layout_marginLeft to
 have everything consistently line up.

 Or, use GridView.

 Or, write a MultiColumnListView.

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

 _Android Programming Tutorials_ Version 2.1 Available!

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

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 04:56 PM, Bill Lumberg wrote:
 Thanks Mark.  If I have to set the widths for each column, how do I
 ensure that it expands to fit every screen size perfectly?

Perfectly? You'd need to write a MultiColumnListView, which does not
strike me as being a ton o' fun.

You can use dimension resources to get you part of the way there, at
least. And if you can designate one column as absorbing any slop
(extra pixels beyond your calculated values), you might get something
that looks OK.

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

_Android Programming Tutorials_ Version 2.1 Available!

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


Re: [android-developers] bmgr not working?

2010-06-12 Thread Mark Murphy
On 05/24/2010 03:05 PM, James Chou wrote:
 I'm trying to test out the new BackupManager class so I've been trying
 to play around with the sample. For some reason I cannot get the bmgr
 tool to work with the BackupRestoreActivity sample application
 included in Android 2.2.

I have tried writing my own sample, using BackupAgentHelper, and I get
similar symptoms.

In my case, the message when I do bmgr run is:

WARN/BackupManagerService: Backup pass but e=false p=false

Then, I get a failed restore when I try to restore.

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

_Android Programming Tutorials_ Version 2.1 Available!

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


Re: [android-developers] Static header in ListView

2010-06-12 Thread Bill Lumberg
So by 'dimension resources' you mean getting the screen size, dividing
by number of columns to get width of each?


On Sat, Jun 12, 2010 at 3:01 PM, Mark Murphy mmur...@commonsware.com wrote:
 On 06/12/2010 04:56 PM, Bill Lumberg wrote:
 Thanks Mark.  If I have to set the widths for each column, how do I
 ensure that it expands to fit every screen size perfectly?

 Perfectly? You'd need to write a MultiColumnListView, which does not
 strike me as being a ton o' fun.

 You can use dimension resources to get you part of the way there, at
 least. And if you can designate one column as absorbing any slop
 (extra pixels beyond your calculated values), you might get something
 that looks OK.

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

 _Android Programming Tutorials_ Version 2.1 Available!

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

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

2010-06-12 Thread Mark Murphy
On 06/12/2010 05:08 PM, Bill Lumberg wrote:
 So by 'dimension resources' you mean getting the screen size, dividing
 by number of columns to get width of each?

No, I meant dimension resources:

http://developer.android.com/guide/topics/resources/more-resources.html#Dimension

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

_Android Programming Tutorials_ Version 2.1 Available!

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


Re: [android-developers] Static header in ListView

2010-06-12 Thread Bill Lumberg
Thanks again.

On Sat, Jun 12, 2010 at 3:10 PM, Mark Murphy mmur...@commonsware.com wrote:
 On 06/12/2010 05:08 PM, Bill Lumberg wrote:
 So by 'dimension resources' you mean getting the screen size, dividing
 by number of columns to get width of each?

 No, I meant dimension resources:

 http://developer.android.com/guide/topics/resources/more-resources.html#Dimension

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

 _Android Programming Tutorials_ Version 2.1 Available!

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-12 Thread Eric F
I believe the full solution is:

Target sdk level 8
Minsdk level of 3

have the following resource folders:
drawable/
drawable-hdpi-v4/
drawable-ldpi-v4/

Store all your mdpi drawables inside of drawable. No resource
duplication, no problems.

Does anyone know if there's a problem with this layout? I don't see
why the developer website doesn't just flat out tell people to arrange
their resources that way.

-E

On Jun 12, 12:59 pm, Bo wang.b.fr...@gmail.com wrote:
 Did you try changing the name drawable-mpi to drawable?

 I believe that will work

 On Jun 12, 8:42 pm, beemer mse...@gmail.com wrote:



  Same here. I've spended two hour until I've figured out why my app had
  stopped working on 1.5

  I'm using three folders drawable-hdpi, drawable-mdpi, and drawable-
  ldpi. The solution has been to create another folder called drawable-
  v3 that contains a copy of drawable-mdpi.

  Now I'll try to change the icons on this folder for alias, to save
  space.

  Another option could be what Xavier Ducrochet commented about moving
  all resoutces from mdpi to drawable, but not sure if this can affect
  ldpi and hdpi 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] Slow Eclipse on OS X

2010-06-12 Thread Bill Lumberg
I am running Eclipse Galileo on an Intel Mac and after using it for a
bit, it becomes very slow.  By slow I mean switching between tabs and
scrolling through source becomes nearly unusable.  I have to close
Eclipse and re-open it, and that usually only solves the problem for a
short time.

Has anyone else ran into this and discovered a way to fix it?

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] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-12 Thread Kostya Vasilyev
Right, the 'v4' hides -ldpi and -hdpi resources from 1.5 at runtime.

Using '-mdpi' is not supported on 1.5 either.

13.06.2010 1:21 пользователь Eric F ericfrie...@gmail.com написал:

I believe the full solution is:

Target sdk level 8
Minsdk level of 3

have the following resource folders:
drawable/
drawable-hdpi-v4/
drawable-ldpi-v4/

Store all your mdpi drawables inside of drawable. No resource
duplication, no problems.

Does anyone know if there's a problem with this layout? I don't see
why the developer website doesn't just flat out tell people to arrange
their resources that way.

-E


On Jun 12, 12:59 pm, Bo wang.b.fr...@gmail.com wrote:
 Did you try changing the name drawable-m...

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

[android-developers] Re: GridView - setting selection to last item also loads first item

2010-06-12 Thread Goran Genter
Thanks for the tip.

I've done like you said and it's exactly what I needed.

Best regards,
Goran Genter


On Jun 12, 10:40 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 Use the convertView.setTag to set an identifier that your AsyncTask
 can recognize when the image has been loaded.
 Don't rely on the order in which the getView gets called (with respect
 to its 'position' parameter).

 On Jun 12, 4:35 pm, Goran Genter goran.gen...@gmail.com wrote:

  Greetings everyone,

  I'm developing application that shows thumbnails of images in gridview
  widget. I load html with image names, and set ImageAdapter. That image
  adapter loads single image (from internet or SD card) in AsyncTask
  with selected image position. After I initialy download html with
  image names, and parse them to array, I set selection of GridView to
  index of last image. But, what happens is this : first image that gets
  downloaded is image with index zero. That gives me a lot of trouble
  because i'm using convert views and AsyncTasks, so sometimes I end up
  with wrong picture at first column in last row (sometimes picture with
  index 0 gets in there), depending on which AsyncTask gets executed
  first. Even stranger, I end up with around 10 calls to getView for
  image with index 0.

  Does anyone have idea how to switch GridViews position to last image,
  and not have image with index 0 loading?

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

2010-06-12 Thread James Aguilar
On Jun 12, 11:14 am, Mark Murphy mmur...@commonsware.com wrote:
 On 06/12/2010 02:01 PM, James Aguilar wrote:

  I was reading the documentation for recording audio and video (http://
  developer.android.com/guide/topics/media/index.html) and noticed a few
  problems

 Issues like this need to be captured inhttp://b.android.com, if you
 have not done so already.

OK, I went there to file this originally but I did not see a template
for doc bugs and could not tell whether I should use the dev tools
template or the android template.

 I believe that is there for privacy, so users know when the camera is
 rolling. A similar requirement exists for the still Camera class.

Hmm, that makes some sense but it defeats some legitimate use cases.
For example, if a user would like to periodically, automatically take
a picture out of the front of the car while at the same time using
navigation. In any case I have not tried this for myself yet so I will
have to do it and report back once I have first-hand knowledge.

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

2010-06-12 Thread Andrei
I have 3 android  phones with different Os version.
I can see all my apps, but one disappeared for more than a day and
still can not see 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] Slow Eclipse on OS X

2010-06-12 Thread Michael MacDonald
On 06/12/10 17:22, Bill Lumberg wrote:
 I am running Eclipse Galileo on an Intel Mac and after using it for a
 bit, it becomes very slow.  By slow I mean switching between tabs and
 scrolling through source becomes nearly unusable.  I have to close
 Eclipse and re-open it, and that usually only solves the problem for a
 short time.

 Has anyone else ran into this and discovered a way to fix it?

 Thank you.

   
We've heard this before on the list.  The default settings for Eclipse
on OS/X do not allocate enough memory for it.  Eclipse runs within a
fixed amount of RAM, and if it isn't allocated enough it will spend all
its time garbage collecting.  Unfortunately, I don't know how to change
the settings on OS/X; on Linux there is a configuration file read by the
startup script.

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

2010-06-12 Thread Lee Fisher

We've heard this before on the list.  The default settings for Eclipse
on OS/X do not allocate enough memory for it.  Eclipse runs within a
fixed amount of RAM, and if it isn't allocated enough it will spend all
its time garbage collecting.  Unfortunately, I don't know how to change
the settings on OS/X; on Linux there is a configuration file read by the
startup script.


http://wiki.eclipse.org/Eclipse.ini#Mac_OS_X_Example

http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm#macosx


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Soft keyboard “del” key fails in EditText on Gallery widget

2010-06-12 Thread droidful
Why I am calling this thing a gallery 'widget'? Thats kinda wrong.
Anyway, so I ended up writing my own gallery style view class based on
frame layout. Its pretty much exactly like gallery view but whoa and
behold the edittext's work just fine. Interestingly I noticed that the
default long click in the edittext now works as expected as well
(context menu, cut/copy/input method, etc.). Im not happy with the way
I implemented the animation threads so ill hold off posting up the
code till ive sorted that out.

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

2010-06-12 Thread Desu Vinod Kumar
U can try soap webservices also but it is not part of android api there is
third party jar file for using this.



On Sat, Jun 12, 2010 at 5:52 PM, doug doug.di...@gmail.com wrote:

 Check out this guy -
 http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html

 Even though he sounds like a cross between Yoda and Grover.

 On Jun 11, 7:37 am, StillALearner k.mad...@gmail.com wrote:
  Thanks Paul,
   Everything else seems a bit too heavy
  Thats the exact concern for why i have been hunting around different
  forums to check out for a better option,  and as u said JSON with a
  RESTful service is one option am closely looking at.
 
  and other part which i need suggestion is on the Data
  syncronization !! how is it implemented ?
 
  On Jun 10, 10:44 am, paulb pbizan...@gmail.com wrote:
 
 
 
   I tend to make RESTful requests over HTTP and expect back JSON
   results. Everything else seems a bit too heavy.
 
   On Thu, Jun 10, 2010 at 3:15 PM, StillALearner k.mad...@gmail.com
 wrote:
Hello,
I have been trying to develop an android application for sometime now
and i would like to get some suggestion on the best way of making web
service calls or to be generic the best way of communication between
the android platform and web server.
Soap(using Ksoap) and HTTP(using POST) are two methodologies  XML
 and
JSON are the twodataformats that am aware of,(let me know if they
are few other options too..) and ,
i would like to know what is the best option ofdatatransfer when
i) thedatato transfer is Large andlessfrequent.
ii)morefrequentbutlessdatais being transfered.
 
Also when it comes todatasynchronization between server and our
app , how is that generally implemented ??
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
Formoreoptions, visit this group at
   http://groups.google.com/group/android-developers?hl=en-Hide quoted
 text -
 
   - Show quoted text -

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




-- 
Regards
---
D Vinod Kumar
R  D Engineer - Android Platform
Mobile : 09916009493

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

[android-developers] What is best method for an animation worker thread?

2010-06-12 Thread droidful
In solving another problem I had I have written a gallery style view
based on framelayout which supports fling, animated transitions,
adapters, etc. Ill post it up as an example soon. But for now im not
really sure I have used the best approach for running the animation
threads.

I decided to use my own animation thread rather than any standard
transitions because they didnt seem to repaint all the views correctly
during the animation (I am working in a framelayout and scrolling
three views about, ive seen a couple of other posts about the repaint
issue but no solutions).

Anyway, rightly or wrongly I used an AsyncTask. The bit I am worried
about is the Thread.sleep() call. Seems kinda the wrong way to go
about it to me. Here is the psuedo-code for what I am doing (ive
removed alot of junk not relevant to my question):

---
private class AnimationTask extends AsyncTaskLong, Long, Void
{
@Override
protected Void doInBackground(Long... parameters)
{
try
{
//~ Figure out the x offset we are animating from and to

android.view.animation.Interpolator interpolater =
AnimationUtils.loadInterpolator(mContext,
android.R.anim.decelerate_interpolator);

// Step through interpolation animation points from 0.0 
through to
1.0
for (Float point = 0.0f; point  1.0f  
!isCancelled(); point +=
step)
{
Float interpolation = 
interpolater.getInterpolation(point);
Float position = new Float(targetDistance) * 
interpolation;
int offset = initialOffset + 
position.intValue();

publishProgress(new Long(offset));

//~ Figure out the wait time based on elapsed 
time since animation
began

if (waitTime  0)
{
Thread.sleep(waitTime, 0);
}
}

// Publish one final progress to cleanup any point 
difference after
loop
publishProgress(new Long(targetOffset));
}
catch (InterruptedException  e)
{
}

return null;

// TODO: The task never seems to die? But it seems that android
// will only keep a maximum of five of these threads before it
// recycles one of the old threads to service a new one???
}

@Override
protected void onProgressUpdate(Long... parameters)
{
int scrollOffset = parameters[0].intValue();

//~ Scroll the view to the offset
}
}
---

Oh yeah, there is also that whole thing about the AsyncThreads still
running after you exit. I havent figured that one out yet.

Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Spinners showing text in white with white background!

2010-06-12 Thread Gabriel Simões
Hello,

I have an app which uses 3 different spinners to allow users to choose
from some options.
I´ve added those spinners to my layout without editing most of it´s
properties and this way it works for most of my users. Unfortunately
most isn´t all and then some of them started complaining that the list
of options is showing text in white with over a white background!
I´d like to know if there´s a way (or a property) so I can force those
spinners to show the options list using text in black.

Thanks,
Gabriel Simões

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Spinners showing text in white with white background!

2010-06-12 Thread Seni Sangrujee
I ran into complaints from Motorola Backflip users about white on
white spinners.

My workaround was to give up on the svelte simple_spinner_items and
use the big and beautiful simple_spinner_dropdown_items.

//
adapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);



On Jun 12, 8:36 pm, Gabriel Simões gsim...@gmail.com wrote:
 Hello,

 I have an app which uses 3 different spinners to allow users to choose
 from some options.
 I´ve added those spinners to my layout without editing most of it´s
 properties and this way it works for most of my users. Unfortunately
 most isn´t all and then some of them started complaining that the list
 of options is showing text in white with over a white background!
 I´d like to know if there´s a way (or a property) so I can force those
 spinners to show the options list using text in black.

 Thanks,
 Gabriel Simões

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


[android-developers] Re: What is best method for an animation worker thread?

2010-06-12 Thread droidful
I changed the logic of the asyncTask to be based on time rather than
point position, at least now I dont have a sleep but it would probably
hammer the UI thread. But I guess thats what I want to get smooth
animation. Should this be in the beginners thread? Anyway here is the
new pseudo-code:


private class AnimationTask extends AsyncTaskLong, Long, Void
{
@Override
protected Void doInBackground(Long... parameters)
{
//~ Figure out the x offset we are animating from and to

//~ Figure out the animation time

android.view.animation.Interpolator interpolater =
AnimationUtils.loadInterpolator(mContext,
android.R.anim.decelerate_interpolator);

long startTime = System.currentTimeMillis();
int lastOffset = targetOffset;

while (System.currentTimeMillis() - startTime  animationTime 
 !
isCancelled())
{
Float point = new Float(System.currentTimeMillis() - 
startTime) /
new Float(animationTime);
Float interpolation = 
interpolater.getInterpolation(point);
Float position = new Float(targetDistance) * 
interpolation;
int offset = initialOffset + position.intValue();

if (offset != lastOffset)
{
publishProgress(new Long(offset));

lastOffset = offset;
}
}

// Publish one final progress to cleanup any point difference 
after
loop
publishProgress(new Long(targetOffset));

return null;

// TODO: The task never seems to die? But it seems that android
// will only keep a maximum of five of these threads before it
// recycles one of the old threads to service a new one
}

@Override
protected void onProgressUpdate(Long... parameters)
{
int scrollOffset = parameters[0].intValue();

//~ Scroll the view to the offset
}
}


Any further suggestions?

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

2010-06-12 Thread sachin ravi
try to set the theme of activity as translucent.


On Sat, Jun 12, 2010 at 5:09 PM, pawan nimje pawanni...@gmail.com wrote:

 thats ok .. i have tried that .. thats working ... but wat i want is the
 screen to look in background ...i.e i want the entire activity screen to
 look as if its in the background ( how an sctivity screen looks when theres
 dilog box above it) ... hope u r getting wat im trying to say ...


 On Sat, Jun 12, 2010 at 4:59 PM, Mark Murphy mmur...@commonsware.comwrote:

 On 06/12/2010 12:15 AM, pawan nimje wrote:
  Hi All,
 
  When I click on a button i want to make entire screen disabled ... i.e
  there are other buttons and text area ..which should get disabled ...on
  a particular button click ..is it possible ??

 Sure. Just disable the other widgets, using setEnabled(false).

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

 Android 2.2 Programming Books: http://commonsware.com/books

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


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


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

[android-developers]

2010-06-12 Thread saurabh sinha
does any body have photo sharing appplz send to me

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