[android-developers] Re: HTC Sense Dutch Date Formatting

2010-08-17 Thread nexbug
You did nothing wrong. Htc seems to have shipped an unlocalized
runtime.
The only workaround is to use dateformat from android.text. sucks big
time since there is no locale awareness in thhere. Moreover there is
no way to test reliably either
g

On Aug 16, 2:34 am, Rob robkn...@gmail.com wrote:
 Hi,

 I am running into a small issue where
 DateFormat.getDateInstance(DateFormat.LONG).format(d) returns a string
 like 14 mei 2010 in the Android emulator (API level 4 and up, set to
 dutch language), but returns 2010 5 14 on a device running HTC
 Sense, and I can not find a way to get this right. Other apps show
 properly formatted dates in dutch, so I must be doing something wrong.
 Anybody have a clue?

 Thanks,
 Rob

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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: Is anyone's active install % dropping like a rock lately?

2010-08-17 Thread Mark Carter
On 17 August 2010 03:15, Doug beafd...@gmail.com wrote:

 I think user retention rate is a great ingredient to add to the
 special sauce of a ranking algorithm because it's an indicator of
 satisfied customers.  That's something you can't derive from download
 activity.


I think of a satisfied user as one who believes the app does what it is
intended to do and does it better than any other app. Retention rate is not
a good measure for this, IMHO.

User retention rate is a measure of how useful the app is to the general
public. Rating is a measure of the quality of the app. A user may be
satisfied with an app but if its not as useful as their other apps then it
will be uninstalled as soon as space runs out.

I get the impression that the vast majority of downloads are from curious
users. For a niche app which is high up the rankings, many users only want
to download it to see why it's so higly ranked, They have no intention of
using the app, so it will be uninstalled pretty quickly.

For my main app, users 10 times more likely to rate pro version than free
version, and 20 times more likely to leave a comment. Free app rated 4.5
(50% active installs), paid app rated 4.9 (70% active installs, 10%
refunds).

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

2010-08-17 Thread Anzi
any one can help on this ?

On Aug 13, 12:14 pm, Anzi anji...@gmail.com wrote:
 Hi,

 I am using Bluetooth APIs to establish the connection. I using the
 Bluetooth chat application as a reference to communicate with the
 Bluetooth headset.

 When I try to connect with Bluetooth headset I am getting IOException
 with the reason Connection refused.

 Can any one tell me the reason for this exception if possible give me
 the solution if you already resolved the same.

 Here is the code which i am using to establish the communication with
 the Bluetooth. And i also added the Bluetooth and Blutooth_Admin
 permissions to my manifest file.

 BluetoothSocket sock =
 remoteDevice.createRfcommSocketToServiceRecord(UUID.fromString(1108-00 
 00-1000-8000-00805F9B34FB));

 mBtAdapter.cancelDiscovery();

 try {
            sock.connect();
      } catch (IOException e) {
            sock.close();
     }

 RegardsAnzi.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Email client with Exchange /or Lotus Domino mail server

2010-08-17 Thread Kostya Vasilyev

 Google finds this:

http://code.google.com/p/k9mail/

17.08.2010 9:53, Rocky пишет:

Exactly I want like K9 mail, from where i can access the source code of K9

2010/8/17 Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com

Might want to look at K9 Mail. It's open source, and is based on
the standard Android email client (not Gmail).

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


16.08.2010 22:40 пользователь RKJ (Android developer)
rkjhaw1...@gmail.com mailto:rkjhaw1...@gmail.com написал:


I wants to create a Email client with Exchange /or Lotus Domino mail
server. if possible then provide some code so that I can read and
implement as own requirement, other wise at least how to implement.

--RKJ

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

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




--
Thanks  Regards

Rakesh Kumar Jha
Consultant(Software Developer)
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619

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



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

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

[android-developers] Re: Update calendar events

2010-08-17 Thread nexbug
Everyday we get requests from our users for this functionality. We
have resisted the temptation to do this because the risk of a new
android release breaking this is scarier than telling no to a few
hundred customers.
Id advise against doing it.

On Aug 16, 2:49 pm, RichardC richard.crit...@googlemail.com wrote:
 Google Calendar is not a supported API.

 On Aug 16, 4:38 pm, Bender abende...@googlemail.com wrote:



  Hi!

  I'm currently writing a class to access the android calendar,
  retrieving and inserting new events does already work but I'm having
  trouble to update existing events. With the the methods I already have
  I could check the ID of the calendar I want to work with, which is 5.
  I also could find out the ID of an event in that calendar which is 87.
  I'm trying to update that event with this code (well actually it is a
  bit different but I've shorten it a bit so it's not so much code to
  read for you):

  if(Build.VERSION.RELEASE.contains(2.2)) {
                  contentProvider = com.android.calendar;
              } else {
                  contentProvider = calendar;
              }

  eventsUri = Uri.parse(String.format(content://%s/
  events,contentProvider));
  Uri updateEventUri = Uri.withAppendedPath(eventsUri,
  String.valueOf(87));

  ContentValues event = new ContentValues();
  event.put(calendar_id, 5);
  event.put(title, Modified Title);

  mContext.getContentResolver().update(updateEventUri, event, null,
  null);  // mContext is the context of the activity which is using my
  helper class.

  (Of course the id's aren't hard coded in the original code. ;-) )

  The problem is, after that update, the event I wanted to change isn't
  changed at all. I'm not recieving any error messages that the Uri is
  wrong or something like that, so I have no idea why it isn't working.
  I tried different calendar IDs and different event IDs but there was
  no effect either. In the logs I've created the resulting Uri is
  content://com.android.calendar/events/87 which looks fine to me
  since I'm running it on froyo.

  I hope somebody has some advice for me. Sincerely,
  Bender

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Email client with Exchange /or Lotus Domino mail server

2010-08-17 Thread Rocky
thanks Kostya...

2010/8/17 Kostya Vasilyev kmans...@gmail.com

  Google finds this:

 http://code.google.com/p/k9mail/

 17.08.2010 9:53, Rocky пишет:

 Exactly I want like K9 mail, from where i can access the source code of K9

 2010/8/17 Kostya Vasilyev kmans...@gmail.com

 Might want to look at K9 Mail. It's open source, and is based on the
 standard Android email client (not Gmail).

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

 16.08.2010 22:40 пользователь RKJ (Android developer) 
 rkjhaw1...@gmail.com написал:


 I wants to create a Email client with Exchange /or Lotus Domino mail
 server. if possible then provide some code so that I can read and
 implement as own requirement, other wise at least how to implement.

 --RKJ

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Consultant(Software Developer)
 Symphony Services Corp (India) Pvt Ltd
 Bangalore
 (O) +918030273740
 (R) +919886336619

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



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

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Consultant(Software Developer)
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Email client with Exchange /or Lotus Domino mail server

2010-08-17 Thread Rocky
svn checkout *http*://k9mail.googlecode.com/svn/k9mail/trunk/k9mail-read-only

If I'm using this command, it throwing

svn: OPTIONS of 'http://k9mail.googlecode.com/svn/k9mail/trunk': could not
connect to server (http://k9mail.googlecode.com)

-- Thanks for replay...
\

2010/8/17 Kostya Vasilyev kmans...@gmail.com

  Google finds this:

 http://code.google.com/p/k9mail/

 17.08.2010 9:53, Rocky пишет:

 Exactly I want like K9 mail, from where i can access the source code of K9

 2010/8/17 Kostya Vasilyev kmans...@gmail.com

 Might want to look at K9 Mail. It's open source, and is based on the
 standard Android email client (not Gmail).

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

 16.08.2010 22:40 пользователь RKJ (Android developer) 
 rkjhaw1...@gmail.com написал:


 I wants to create a Email client with Exchange /or Lotus Domino mail
 server. if possible then provide some code so that I can read and
 implement as own requirement, other wise at least how to implement.

 --RKJ

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Consultant(Software Developer)
 Symphony Services Corp (India) Pvt Ltd
 Bangalore
 (O) +918030273740
 (R) +919886336619

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



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

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Consultant(Software Developer)
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619

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

2010-08-17 Thread nexbug
Face it,
This is just a ploy by msft and apl to distract android devs from
writing code And make them spend all the time speculating and starting
flame wars.


On Aug 16, 1:30 pm, Frank Weiss fewe...@gmail.com wrote:
 Fabrizio, thanks for sharing that Forbes article
 (http://blogs.forbes.com/taylorbuley/2010/08/13/android-lawsuit-is-rea...).

 It confirmed some of my thinking, but added the interesting bear hug
 angle. I wonder if that is really the case.

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


[android-developers] Question about APN for Browser and MMS

2010-08-17 Thread optimusgeek
I'm very confusing about APN in android.
I saw the apn type on APN setting could be 'default' for data
connection and 'mms' for MMS.
(Are there else values??)
If the apn type value should be one of them, does it mean that it
separated by only for MMS and for the other apps?
Anyway, I heard that a single APN used for ATT with some exceptions
for blackberry and so on.
If ATT supports only one APN for all applications, then what is the
apn type value??
Could it be blank?
Let's assume there is a carrier support 2 APNs for 'MMS' and 'Another'
applications. and there is a default APN for MMS already on my phone.
If I add a new APN for 'Another' app with apn type 'default' and set
it active profile from the APN list, then I cannot use MMS. right?
Should I have to change to default APN to use MMS?
Or Can I use MMS even if the profile for MMS APN is not active?

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

2010-08-17 Thread String
On Aug 16, 11:07 pm, Mark Gjøl bitflips...@gmail.com wrote:

 My drawing loop is strictly single threaded (fed data by
 several other threads, obviously)

I didn't mean that you had multiple drawing threads; I don't either,
really. But like you, I do have several threads, that feed the
drawing thread. And then OpenGL has a thread of its own, maintained by
the system.

It's only a hunch on my part that it's a multithreading issue, really.
In addition to the error message you posted, the other one I've been
able to capture from logcat when the phone locks up is:

W/SurfaceComposerClient(11811): lock_layer timed out (is the CPU
pegged?) layer=0, lcblk=0x420a4020, state=000e (was 000e)

Both messages talk about locking, which says multithreading to me.
And I THINK my incidence decreased when I added all the thread-safe
code. But it's so intermittent that I can't be sure, and in any case
it apparently hasn't gone away completely. So that's not the whole
issue.

 My app has been on the Market for almost a year now, and hasn't had
 these problems until now. I recently changed a couple of things, the
 most noteworthy being the ability to use 256x256 textures rather than
 128x128. As the crashes are completely random, I cannot be completely
 certain if this is the problem, but I don't seem to be getting the
 crashes when sticking to 128x128 textures, so maybe I'm exceeding some
 secret limit? For the record, aside from some 6 UI buttons at 64x64,
 I'm using about 9 256x256 textures and a single 1024x1024 texture. I
 am aware that this can be optimized to use less textures, and that may
 well be the fix to stop the phone from crashing.

Now THAT'S interesting. Like you, my app didn't used to do this, but
I'm not entirely sure when it started. It might have been about the
time I added a few more textures... mine mostly uses just a few big
ones. It's always used two at 1024x512, but this may have started at
the same time I added another object with a 512x256 texture. I might
try downgrading that one and see how it goes.

If you can get away with 128x128 textures, and that solves the problem
for you, then I'd say do it. I know, the appearance won't be as good,
but trust me... users are far more likely to downrate you for crashing
their phone.

String

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Php Development Web Developement In India at infocus web solutions (ahmedabad)

2010-08-17 Thread web designer
Php Development Web Developement In India at infocus web solutions
(ahmedabad)
http://bit.ly/d8xuyk

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Email client with Exchange /or Lotus Domino mail server

2010-08-17 Thread Rocky
I'm getting this error.

Checkout from svn://k9mail.googlecode.com/svn/k9mail/trunk/k9mail-read-only,
revision HEAD, Fully recursive, Externals included
Can't connect to host 'k9mail.googlecode.com': A connection attempt failed
because the connected party did not properly respond after a period of time,
or
established connection failed because connected host has failed to respond.

is i'm missing something

2010/8/17 Kostya Vasilyev kmans...@gmail.com

  Google finds this:

 http://code.google.com/p/k9mail/

 17.08.2010 9:53, Rocky пишет:

 Exactly I want like K9 mail, from where i can access the source code of K9

 2010/8/17 Kostya Vasilyev kmans...@gmail.com

 Might want to look at K9 Mail. It's open source, and is based on the
 standard Android email client (not Gmail).

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

 16.08.2010 22:40 пользователь RKJ (Android developer) 
 rkjhaw1...@gmail.com написал:


 I wants to create a Email client with Exchange /or Lotus Domino mail
 server. if possible then provide some code so that I can read and
 implement as own requirement, other wise at least how to implement.

 --RKJ

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Consultant(Software Developer)
 Symphony Services Corp (India) Pvt Ltd
 Bangalore
 (O) +918030273740
 (R) +919886336619

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



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

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




-- 
Thanks  Regards

Rakesh Kumar Jha
Consultant(Software Developer)
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619

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

2010-08-17 Thread oriharel
@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow)
{
if (shadow) {
Paint arcPaint = new Paint();
arcPaint.setARGB(250, 255, 255, 255);
arcPaint.setAntiAlias(true);
arcPaint.setFakeBoldText(true);
arcPaint.setStyle(Paint.Style.STROKE);
arcPaint.setStrokeWidth(2);
arcPaint.setShadowLayer(0.1f, 1.2f, 1.2f, Color.BLACK);
if (_fromLng  _toLng)
{
_drawer = new FlightRouteDrawer(mapView, 
_fromLat, _toLat,
_fromLng, _toLng);
} else
{
_drawer = new FlightRouteDrawer(mapView, 
_toLat, _fromLat,
_toLng, _fromLng);
}
canvas.drawArc(_drawer.getRouteOval(),
_drawer.getRouteStartAngle(), 
_drawer.getRouteSweepAngle(),
false, arcPaint);
}
}

if you're interested in what FlightRouteDrawer is doing, well - it
does all sorts of trigonometric to get a nice arc from point A to
point B.
the fact is when I run this code with if (!shadow) then it draws the
arc.
but this code doesn't draw the arc.

On Aug 16, 8:24 pm, TreKing treking...@gmail.com wrote:
 On Mon, Aug 16, 2010 at 1:57 AM, oriharel ori.ha...@gmail.com wrote:
  What can I do with the shadow layer of the the google maps overlays?

 Anything you want, I would think.

   I tried, naively, to draw something (an arc) only when (shadow == true)
  and got nothing?

 Maybe you did something wrong? Post some code?

  I'm interested in drawing arcs and arc shadows on a map.
  is there a nice google-maps way to do this?

 Probably exactly what you're doing - only correctly =)

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

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


[android-developers] Re: LVL and Settings.Secure.ANDROID_ID - how secure?

2010-08-17 Thread String
On Aug 9, 5:32 pm, Dianne Hackborn hack...@android.com wrote:

 And also the biggest thing is that all of these attacks *do* require having
 root, which is a small number of users.

Apparently, such attacks are also possible on any Droid 2, rooted or
not:
http://groups.google.com/group/android-developers/browse_frm/thread/53898e508fab44f6/cd1ca6332c1b1004
Given it's the successor to the original Droid, the all-time best-
selling Android handset, it seems likely that this attack vector is
now open to a much larger user base than before.

Just a heads-up to anyone using ANDROID_ID in their LVL
implementation. o_O

String

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

2010-08-17 Thread mot12
The alarm service has many pitfalls but even if programmed correctly,
it doesn't work reliably on some devices. The standard alarm clock
doesn't run reliably on those same devices; that's a strong hint that
something is wrong.

Here's what I observed in these devices after pulling the log:
- the display is being turned off or goes off by itself and there is
little activity for a while
- then suddenly there's NO activity in the logs for many hours (highly
unusual)
- the first activity reported after this silence is the display being
turned on manually

If the alarm was supposed to happen in this silence period, you will
find there's no Intent fired. The alarm service did no wake up the
device.

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

2010-08-17 Thread RFuente
Sorry for the wait, I was on holidays.

This is the command I used for testing: ffmpeg -i input_file.mp4 -ab
12k video.mp4

-ab 12k is not necessary but I used the same as for the proper mp4
file.
input_file.mp4 has no mp4 structure, I mean, I left mdat atom without
headers.
Ffmpeg version SVN-r24456 configured with options --enable-libopencore-
amrnb --enable-version3

Note: I have no audio, just video.

On 4 ago, 21:19, Ivar Refsdal refsdal.i...@gmail.com wrote:


 Sorry, I can't help you with that. But I have one question for you:
 Are you using any special parameters to decode the video?
 What version of FFmpeg? I was never able to decode a truncated file.

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

2010-08-17 Thread Pent
 - then suddenly there's NO activity in the logs for many hours (highly
 unusual)
 - the first activity reported after this silence is the display being
 turned on manually

I recognize that description but I'd put it down to just being in deep
sleep during
the night.

Pent

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


[android-developers] Re: animation is starting with a large black screen....

2010-08-17 Thread sdphil
if anyone is interested, I figured this out.

you need to have an in animation and an out animation.

On Aug 15, 8:48 am, sdphil phil.pellouch...@gmail.com wrote:
 i am trying to get a slide down animation to work, and it seems to
 work except that it starts with a big black screen instead of the
 screen that was there.

 so I have layout1 and layout2.

 when I start the animation using ViewFlipper.showNext it puts a big
 black background over layout1, and then slides in layout2.  if I use
 ViewFlipper.startFlipping() it slides in layout2 out as it is sliding
 in layout1 -- which is what I would expect.

 My slide_down.xml looks like this:
     ?xml version=1.0 encoding=utf-8?
     set xmlns:android=http://schemas.android.com/apk/res/android;
         translate android:fromYDelta=0
                    android:toYDelta=100%
                    android:duration=4000
                    android:detachWallpaper=true/
     /set

 My java code looks like this:
     ViewFlipper vf = (ViewFlipper) findViewById(R.id.DropDownList);
     vf.setAnimation(AnimationUtils.loadAnimation(this,
 R.anim.slide_down));
     vf.showNext();                or
 vf.startFlipping();

 tia.

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

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/17/10 08:20 , nexbug wrote:
 Face it, This is just a ploy by msft and apl to distract android
 devs from writing code And make them spend all the time speculating
 and starting flame wars.

So, as I said, we'd just keep on writing code and improve our apps! Right?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxqQAIACgkQeDweFqgUGxdrhQCggTw57DvV4M5bYDqibHP8NyyD
uK0AnRLvHHX29U8t/LHJCHg1VLTUuWeq
=tPeG
-END PGP SIGNATURE-

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

2010-08-17 Thread Lukas Adamec
I've checked what you adviced me, but the problem hasn't been solved.

Here is log from DDMS:
[2010-08-17 10:29:50 - ddms]transfer error: Permission denied
[2010-08-17 10:29:50 - Device]Unable to open sync connection! reason:
Unable to upload file: Permission denied

Device runs on Android 1.5, so I've set minSdkVersion=3 in manifest
and target=android-3 in default.properties.
When I copy .apk to SD card, application runs normally. But in Eclipse
not. I need debugging, so I need run it from Eclipse.
I don't know, what is wrong.


On 16 srp, 15:49, RichardC richard.crit...@googlemail.com wrote:
 I can't seen anything in your manifest that might be a problem.

 Things to try/check:
 Have you set the flag  - settings  Application  Unknown sources ?
 Try setting targetSdkVersion to 4 in your manifest

 On Aug 16, 5:27 am, Lukas Adamec luk.ada...@gmail.com wrote:

  AndroidManifest.xml:

  ?xml version=1.0 encoding=utf-8 ?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=cz.xadamec1.apps.bitmap
     android:versionCode=1 android:versionName=1.0
     application android:icon=@drawable/icon android:label=@string/
  app_name android:debuggable=true
        activity android:name=.BitmapDrawing android:label=@string/
  app_name
           intent-filter
              action android:name=android.intent.action.MAIN /
              category android:name=android.intent.category.LAUNCHER /

           /intent-filter
        /activity
     /application
     uses-sdk android:minSdkVersion=3 /
    /manifest

  On 15 srp, 21:13, RichardC richard.crit...@googlemail.com wrote:

   Can we see your manifest please?

   On Aug 15, 7:43 pm, LukasAdamecluk.ada...@gmail.com wrote:

If somebody dealt with this kind of problem, could you give me some
advice. I would really appreciate it.
Thanks

On 12 srp, 14:47, LukasAdamecluk.ada...@gmail.com wrote:

 Hi,
 I have problem with uploading my .apk file on device Highscreen Zeus.
 In emulator everything works fine, but when I can upload application
 on the device, I always get following error:

 [2010-08-12 14:41:25 - BitmapDrawing] Failed to upload
 BitmapDrawing.apk on device 'ZUSM1M10A02691'
 [2010-08-12 14:41:25 - BitmapDrawing] java.io.IOException: Unable to
 upload file: Permission denied
 [2010-08-12 14:41:25 - BitmapDrawing] Launch canceled!

 Could somebody advise me, how to solve this problem?
 Thanks a lot.

 Lukas

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

2010-08-17 Thread Asif k
Hi all,

I am developing a social Networking application and it works fine over
WiFi but tried the same over GPRS it gives following Exception,

08-17 13:55:05.406: WARN/System.err(4233):
java.net.SocketTimeoutException: Socket is not connected
08-17 13:55:05.406: WARN/System.err(4233): at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
Method)
08-17 13:55:05.406: WARN/System.err(4233): at
org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
131)
08-17 13:55:05.406: WARN/System.err(4233): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
247)
08-17 13:55:05.406: WARN/System.err(4233): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
535)
08-17 13:55:05.406: WARN/System.err(4233): at
java.net.Socket.connect(Socket.java:1054)
08-17 13:55:05.406: WARN/System.err(4233): at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
117)
08-17 13:55:05.413: WARN/System.err(4233): at
com.vodafone360.photos.service.transport.http.HttpConnectionThread.postHTTPRequest(HttpConnectionThread.java:
293)


what could be the reason?

Thanks,
Asif

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

2010-08-17 Thread argon gold
Hi,

Is there any way, I can check the catagory of my installed applications  in
code .
Such as I want to catagorise the installed games under Games heading and
similary for other applications in other catagories.

Has any one done this? and how?

Thanks in advance
argongold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bluetooth error: E/BluetoothSppPort(23252): port not connected

2010-08-17 Thread parag
check out this post

http://groups.google.com/group/android-developers/browse_thread/thread/8a3924f8c2697889/04b3d0bb6dbe3ee9?lnk=gstq=bluetooth+issue#04b3d0bb6dbe3ee9


On Aug 12, 4:40 pm, Pobudzio pobudkiewicz.mac...@gmail.com wrote:
 Hello,

 When I lost connection I catch IOException but beside this in phone
 log I can see that Android generates a lot of lines saying:
 E/BluetoothSppPort(23252):portnotconnected

 Turning on/off Bluetooth doesn't fix the problem.
 Only killing application stop generation of this line.
 I have HTC Legend.

 Does anybody know how to prevent this situation?

 Thx,
 Pobudzio

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

2010-08-17 Thread CMF
I have a layout xml . I would like to do that in java programming.
Can anybody help me?

?xml version=1.0 encoding=utf-8?
RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:id=@+id/rl

  TextView
android:id=@+id/tv1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentRight=true
android:layout_centerVertical=true
android:textColor=#FF
/
  LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_toLeftOf=@id/tv1

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/tv1
android:textColor=#FF
/
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/tv2
android:textColor=#FF
/
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/tv3
android:textColor=#FF
/
  /LinearLayout
/RelativeLayout

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

2010-08-17 Thread Ted Neward
Wow--the thought that Larry Ellison would do something at the request of
Ballmer and/or Jobs is just well, the acronym ROFLMAO just doesn't do
it justice.

Of course, the TRUTH that they don't want you to know is that the whole show
worldwide is a deep conspiracy orchestrated by a secret cabal owned by the
Girl Scouts, the Screen Actors' Guild and the Illuminati anyway, so

In all honesty, I think the author of the article is right--Oracle wants
Google to acknowledge that Oracle has ownership over Java and thus
deserves to be cut in to the Android licensing deal somehow. It might even
be that Oracle counsel felt that they had to take this step to prevent any
other companies from doing something similar or even more infringing on
the Java name/brand/IP. Remember, if you don't defend your ownership of IP,
the courts look at that as an active surrender of that IP to the public
domain.

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of nexbug
 Sent: Monday, August 16, 2010 11:20 PM
 To: Android Developers
 Subject: [android-developers] Re: Chilling news: Oracle sues Google over
 Android
 
 Face it,
 This is just a ploy by msft and apl to distract android devs from writing
code
 And make them spend all the time speculating and starting flame wars.
 
 
 On Aug 16, 1:30 pm, Frank Weiss fewe...@gmail.com wrote:
  Fabrizio, thanks for sharing that Forbes article
  (http://blogs.forbes.com/taylorbuley/2010/08/13/android-lawsuit-is-
 rea...).
 
  It confirmed some of my thinking, but added the interesting bear hug
  angle. I wonder if that is really the case.
 
 --
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Dealing with password change on the server in a SyncAdapter

2010-08-17 Thread Kwisatz
Argh, I'm so stupid! Only when I got through the Android source code
did I noticed that it doesn't launch an Activity, but a Notification
in the status bar. My mind is never set on the notification icons on
the emulator when I'm developing, so that always passed by me. The
intent is for launching the activity when clicking in the
notification. Now it's working.


On Aug 16, 2:20 pm, Kwisatz rui.mtd.ro...@gmail.com wrote:
 Hope you can help me with this, because I've tried EVERYTHING and the
 example in the Google sample code doesn't seem to work.

 Scenario:
 - An account is created in the AccountManager with a valid username
 and password.
 - A SyncAdapter is present to deal with server syncs, and successfully
 authenticates in the server using the stored credentials through the
 AccountManager.
 - The user decides to change the password on the server. So, the
 password in the Android AccountManager becomes invalid, and we have to
 request the user a new password when a synchronization fails with a
 401 HTTP error from the server.

 According to Google, this can be done. Here's what I understood by
 reading the API docs:

 1. In the SyncAdapter that extends AbstractThreadedSyncAdapter, when
 we request the AuthToken, we set the notifyAuthFailure to false:

 String authtoken = accountManager.blockingGetAuthToken(account,
 Constants.AUTHTOKEN_TYPE, false);

 2. In the Authenticator that extends AbstractAccountAuthenticator, we
 return the following in the getAuthToken method:

 final Intent intent = new Intent(context,
 AuthenticatorActivity.class);
 intent.putExtra(AuthenticatorActivity.PARAM_USERNAME, account.name);
 intent.putExtra(AuthenticatorActivity.PARAM_AUTHTOKEN_TYPE,
 authTokenType);
 intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE,
 response);
 final Bundle bundle = new Bundle();
 bundle.putParcelable(AccountManager.KEY_INTENT, intent);
 return bundle;

 This should call the AuthenticatorActivity defined in the Intent, but
 it doesn't. It just invokes the getAuthToken method again.

 I've tried calling directly from the from the SyncAdapter the methods
 confirmCredentials and updateCredentials, but they will never launch
 the AuthenticatorActivity.

 What I'm I doing wrong?!
 How can we request the Authenticator to show an Activity to ask for a
 new password?

 In all examples that I've seen, they all assume that the credentials,
 once they are valid, then they will never change.

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

2010-08-17 Thread nomi
Thanks to all for your response,

I have solved that problem by passing unique id which is depend on
current time:-

final int intent_id= (int) System.currentTimeMillis();

PendingIntent pendingIntent =
PendingIntent.getBroadcast(getApplicationContext(),intent_id,intent,PendingIntent.FLAG_UPDATE_CURRENT);

by this change code is working properly and each pending
intent starts
specified activity after 20 mins of it's alarm off time.



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


[android-developers] QSB on Android help plz?

2010-08-17 Thread sagare
Hi All,
I want a to use a Quick Search Box in my application to search my
application data so in a process of implementing it i went through
http://developer.android.com/guide/topics/search/search-dialog.html
and SearchableDictonary sample in SDk so as per what i got QSB
requires a content provider for giving suggestion but in my
application i wish not to have a content provider coz the data on
which i want to have search is temporary and should not persist So is
there a way to do this ?  or i have to write my own custom search
component?

Also another question I have is is there a way to set a location
for the QSB dialog within the screen. Please help me in this regards.

Thanks,
Sagar

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

2010-08-17 Thread Kostya Vasilyev

 Take a look at LayoutInflater:

http://developer.android.com/reference/android/view/LayoutInflater.html

It might be easier than building all these views from code, but still 
you can inject the inflated view hierarchy into an existing layout.


-- Kostya

17.08.2010 13:41, CMF пишет:

I have a layout xml . I would like to do that in java programming.
Can anybody help me?

?xml version=1.0 encoding=utf-8?
RelativeLayout
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:id=@+id/rl

   TextView
 android:id=@+id/tv1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_alignParentRight=true
 android:layout_centerVertical=true
 android:textColor=#FF
 /
   LinearLayout
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_toLeftOf=@id/tv1
 
 TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:id=@+id/tv1
 android:textColor=#FF
 /
 TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:id=@+id/tv2
 android:textColor=#FF
 /
 TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:id=@+id/tv3
 android:textColor=#FF
 /
   /LinearLayout
/RelativeLayout




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

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


[android-developers] Re: QSB on Android help plz?

2010-08-17 Thread Teo [GD API Guru]
Hi,

From what i know the content provider isn't instantiated until/unless
it's needed (someone correct me if i'm wrong).



On Aug 17, 1:40 pm, sagare sagar.ekb...@gmail.com wrote:
 Hi All,
     I want a to use a Quick Search Box in my application to search my
 application data so in a process of implementing it i went 
 throughhttp://developer.android.com/guide/topics/search/search-dialog.html
 and SearchableDictonary sample in SDk so as per what i got QSB
 requires a content provider for giving suggestion but in my
 application i wish not to have a content provider coz the data on
 which i want to have search is temporary and should not persist So is
 there a way to do this ?  or i have to write my own custom search
 component?

     Also another question I have is is there a way to set a location
 for the QSB dialog within the screen. Please help me in this regards.

 Thanks,
 Sagar

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

2010-08-17 Thread sagare
Hi Teo,
  Thx for reply but i dont want to use content provider coz my data is
not persistant its temporary also i want to locate QSB at some
location in the activity.

thanks,
Sagar

On Aug 17, 3:51 pm, Teo [GD API Guru] teomina...@gmail.com wrote:
 Hi,

 From what i know the content provider isn't instantiated until/unless
 it's needed (someone correct me if i'm wrong).

 On Aug 17, 1:40 pm, sagare sagar.ekb...@gmail.com wrote:

  Hi All,
      I want a to use a Quick Search Box in my application to search my
  application data so in a process of implementing it i went 
  throughhttp://developer.android.com/guide/topics/search/search-dialog.html
  and SearchableDictonary sample in SDk so as per what i got QSB
  requires a content provider for giving suggestion but in my
  application i wish not to have a content provider coz the data on
  which i want to have search is temporary and should not persist So is
  there a way to do this ?  or i have to write my own custom search
  component?

      Also another question I have is is there a way to set a location
  for the QSB dialog within the screen. Please help me in this regards.

  Thanks,
  Sagar



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

2010-08-17 Thread Teo [GD API Guru]
Hi,

as stated here: 
http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html
, even if an app is installable on the SD card, the private data files
remain on the phone...

If this is true, my question is: are users aware of this? This would
mean that moving/installing on the SD card means only the app
installation is mobile, and not the database, for example. Do you know
more about actual use cases for this 'moving to SD card' feature?

I'm trying to figure this out because more and more users are asking
me to allow it to be movable to the SD, but i don't want to create
false expectations (e.g. user changes phone, keeps SD card, but loses
his 'stuff');

Thanks,
Teo

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

2010-08-17 Thread RichardC
You can if you wish create your database and other files on the
sdcard.  You just have to be aware that the sdcard is fat32 and
therefore has no inbuilt copy protection.

On Aug 17, 12:02 pm, Teo [GD API Guru] teomina...@gmail.com wrote:
 Hi,

 as stated 
 here:http://android-developers.blogspot.com/2010/07/apps-on-sd-card-detail...
 , even if an app is installable on the SD card, the private data files
 remain on the phone...

 If this is true, my question is: are users aware of this? This would
 mean that moving/installing on the SD card means only the app
 installation is mobile, and not the database, for example. Do you know
 more about actual use cases for this 'moving to SD card' feature?

 I'm trying to figure this out because more and more users are asking
 me to allow it to be movable to the SD, but i don't want to create
 false expectations (e.g. user changes phone, keeps SD card, but loses
 his 'stuff');

 Thanks,
 Teo

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

2010-08-17 Thread Iroid
Hello Everyone,
   Is it possible to change the theme of a native
application without rebuilding it?
   basically I want to change the theme of native
applications for example messaging by another application so looking
for options. Android documentation doesn't talk about this.

I have another question - can we develop system wide theme- that will
change the look and feel for all the installed applications?

Thanks in advance

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


Re: [android-developers] how to control the screen rotation in my application

2010-08-17 Thread Michael Tsai
在 2010-8-17 上午3:04,Dianne Hackborn hack...@android.com编写:

Sorry the current platform doesn't support upside down.  Also the APIs for
controlling rotation only allow specifying orientation -- that is
landscape or portrait.  You can't specify a specific rotation.

You can of course just draw your own UI upside down.



On Sun, Aug 15, 2010 at 11:06 PM, Lik lik88...@gmail.com wrote:

 I'd like rotate the screen t...
-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers g...

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

[android-developers] Re: LVL and Settings.Secure.ANDROID_ID - how secure?

2010-08-17 Thread DanH
Why not use the IMEI instead?

On Aug 17, 2:21 am, String sterling.ud...@googlemail.com wrote:
 On Aug 9, 5:32 pm, Dianne Hackborn hack...@android.com wrote:

  And also the biggest thing is that all of these attacks *do* require having
  root, which is a small number of users.

 Apparently, such attacks are also possible on any Droid 2, rooted or
 not:http://groups.google.com/group/android-developers/browse_frm/thread/5...
 Given it's the successor to the original Droid, the all-time best-
 selling Android handset, it seems likely that this attack vector is
 now open to a much larger user base than before.

 Just a heads-up to anyone using ANDROID_ID in their LVL
 implementation. o_O

 String

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


Re: [android-developers] Re: LVL and Settings.Secure.ANDROID_ID - how secure?

2010-08-17 Thread Kostya Vasilyev
 Reading the IMEI and its CDMA equivalent requires a special permission 
(READ_PHONE_STATE). This can be confusing to users.


Still, no comment from Google. Trevor? Anyone?

-- Kostya

17.08.2010 15:40, DanH пишет:

Why not use the IMEI instead?

On Aug 17, 2:21 am, Stringsterling.ud...@googlemail.com  wrote:

On Aug 9, 5:32 pm, Dianne Hackbornhack...@android.com  wrote:


And also the biggest thing is that all of these attacks *do* require having
root, which is a small number of users.

Apparently, such attacks are also possible on any Droid 2, rooted or
not:http://groups.google.com/group/android-developers/browse_frm/thread/5...
Given it's the successor to the original Droid, the all-time best-
selling Android handset, it seems likely that this attack vector is
now open to a much larger user base than before.

Just a heads-up to anyone using ANDROID_ID in their LVL
implementation. o_O

String



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

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


[android-developers] Traceview only getting 5 seconds of data

2010-08-17 Thread Cleverson
Hi,

I'm using traceview to identify bottlenecks in my app. If I use the
emulator, everything works fine. But when the device is used, no
matter how long I run the app, traceview only gets the initial 5
seconds of my session and nothing more.
I also noticed an error message in the console:
Traceview: (unknown:10301): GLib-WARNING **: g_set_prgname() called
multiple times

Have you ever experienced this problem?
Any tip?
Thanks in advance!

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


[android-developers] Re: Update calendar events

2010-08-17 Thread Bender
Yes I read about that but I found some tutorials which showed how to
use it nevertheless. The app I'm using this for is only for me and
maybe some friends which are aware of the problem too, so it wouldn't
be terrible if my app would stop working with an android update, the
main purpose is that I get more experience with android development.

But if updating events isn't supported I'll try to use the google
calendar api instead of the android.

Thanks for your help anyway. :-)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-08-17 Thread John Lauricella
http://www.wdk0.drugx-med.com
  

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

[android-developers] App builds up large Cache

2010-08-17 Thread Neilz
Hi all.

When I test my app, I notice that after some use it has built up a
fairly large cache of several Mb. I see this when I go to Menu-
Settings-Applications-Manage Applications.

I don't notice this with other apps, so clearly I'm doing something
wrong somewhere. What can cause this... what should I look for in my
code that could eliminate this?

Many thanks.

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


Re: [android-developers] Re: Google maps, Overlays and the shadow layer

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 2:15 AM, oriharel ori.ha...@gmail.com wrote:

 the fact is when I run this code with if (!shadow) then it draws the arc.
 but this code doesn't draw the arc.


Well, in THAT case, I don't know =P
I assumed that should work, but apparently not.
And unfortunately the Google Maps API documentation is pretty terrible, so
it's not much help.
Some clarification from the people that wrote the thing would be nice, but
that's probably not going to happen.
Searching online and playing with it are probably your best option at this
point.
Good luck.

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

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

[android-developers] Android IME: how to show a pop-up dialog?

2010-08-17 Thread Stefan Klumpp
I already asked this question on StackOverflow, but wasn't able to
receive a helpful answer by now. I thought here on the Google Group
might be a few more advanced Android developers who would be able to
point me in the right direction.

A detailed description of my question is here:
http://stackoverflow.com/questions/3494476/android-ime-how-to-show-a-pop-up-dialog

Thanks

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


[android-developers] Re: Android, OpenGL, and EGL woes

2010-08-17 Thread Aaron Rudolph
I'm looking at OpenGL 1.1, I believe.

On Aug 16, 5:38 pm, RichardC richard.crit...@googlemail.com wrote:
 What vesion of OpenGL ES is your app expecting? Older devices only
 have 1.1 available and some very old devices only have OpenGL
 emulated.

 On Aug 16, 8:00 pm, Aaron Rudolph aanrudol...@gmail.com wrote:

  Hi, all.

  I'm having a major issue here; I'll try to explain it in as little
  code and in as few words as possible. I have a 3D Photo Gallery that
  I'm making (market://pname:com.gallery). I'm getting appallingly low
  ratings that I would like to improve. The issue, according to my
  users, is that when they open the app, a blank screen shows up. Now,
  on my Motorola Droid, it works as expected; I can navigate around a
  virtual 3D Photo Gallery containing all my photos. I have a strange
  feeling the reason why they cannot view it is because (1) I am using
  native C++ to do all my rendering work, and (2) I may be having issues
  with their OpenGL Drivers.

  Now. What I want to know is this: What is the point of using EGL and
  EGL configs in Android? What do they do and how might they help? I'd
  appreciate an answer before my ratings dip any lower :-)

  Thanks again.

  Aaron N. Rudolph.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-17 Thread TreKing
On Mon, Aug 16, 2010 at 10:38 PM, David enki1...@gmail.com wrote:

 Are there design guidelines to help decide if an application with multiple
 views should be designed with multiple activities or just one activity and
 control the back button itself.


Not that I'm aware of, but the pattern seems to be one Activity per action
your app does. This is not necessarily the same as one Activity per view, as
one Activity could do one thing but have multiple views to show the data
differently as Frank suggests.


 I've tried both. My most complex applications using one activity
 per screen. However, now that I'm successfully written an app with just one
 activity and handling the back button myself, I don't see any compelling
 reason to use multiple activities. The one activity application is much
 simpler and more straightforward.


How many screens are you managing in your one-Activity app? I have to
believe at some point managing the state of all your different views in one
activity will grow to be unmanageable.


 What advantages of multiple activities am I missing?


On top of the excellent points by Mark, there's the whole notion of
separating responsibilities. I think each Activity as encapsulating some
task your app can perform. If you can clearly define and separate these
tasks, your code and app will be far more maintainable, reusable,
and enhanceable. Throw everything into a monolithic Activity and you're
looking at a maintenance nightmare for all but the simplest apps.

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

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

[android-developers] Re: How to capture the contents of webview and parse it

2010-08-17 Thread dhilip
Hi ,

 Capture in the sense get the data that the current page is
displaying in the webview of my own app. Is there any method that
would allow me to connect to the url i specify in the webview and
download the data?

On Aug 16, 1:30 pm, TreKing treking...@gmail.com wrote:
 On Mon, Aug 16, 2010 at 9:43 AM, dhilip indiantalkiedhi...@gmail.comwrote:

   I am trying to capture the contents of a webview and to parse it.

 What do you mean capture? What webview? Your own or some other apps'?

   Is there any method that would allow me to do so?

 Connect to the url the Webview is pointing to and download the data?

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

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


[android-developers] Re: App builds up large Cache

2010-08-17 Thread Maps.Huge.Info (Maps API Guru)
You didn't mention what your app did. If you're using a webview a
cache will be created containing all the stuff the webview sees, it's
a browser so acts like one. Regardless, a cache is just temporary
storage and I believe if the device needs to reclaim that space to use
it for another purpose, it will.

-John Coryat

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


[android-developers] Re: App builds up large Cache

2010-08-17 Thread Neilz
Nope, no webview. In fact nothing particularly complex at all... just
a lot of manipulation of views on the Main UI, setting background
colors and the like. I also have ads displayed, which I suppose could
be a factor...

On Aug 17, 3:19 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 You didn't mention what your app did. If you're using a webview a
 cache will be created containing all the stuff the webview sees, it's
 a browser so acts like one. Regardless, a cache is just temporary
 storage and I believe if the device needs to reclaim that space to use
 it for another purpose, it will.

 -John Coryat

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

2010-08-17 Thread A Curious Developer
I found this a little strange, although maybe it is working as
designed: I put an executable (.exe file) into my project's src\
directory (just temporarily to test something). When I refreshed the
src\ directory in Eclipse, my project .apk file became much larger.
When I removed the .exe file from the src\ directory and refreshed src
\ in Eclipse, the .apk returned back to its smaller size.

What happened? Do all non-.java files in the src\ directory get pulled
into the .apk?

I have not configured any special build rules - I am using the default
behavior.

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

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 8:12 AM, Neilz neilhorn...@gmail.com wrote:

 When I test my app, I notice that after some use it has built up a fairly
 large cache of several Mb.


And you're not explicitly using the cache directory?

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

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

Re: [android-developers] Re: How to capture the contents of webview and parse it

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 9:14 AM, dhilip indiantalkiedhi...@gmail.comwrote:

  Is there any method that would allow me to connect to the url i specify in
 the webview and download the data?


http://download.oracle.com/javase/6/docs/api/java/net/package-summary.html

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

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

Re: [android-developers] Android IME: how to show a pop-up dialog?

2010-08-17 Thread TreKing
Try starting your own activity that has a dialog theme.

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

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

[android-developers] Re: Disappearing Alarms

2010-08-17 Thread JP


On Aug 17, 12:25 am, mot12 martin.hu...@gmail.com wrote:
 The alarm service has many pitfalls but even if programmed correctly,
 it doesn't work reliably on some devices. The standard alarm clock
 doesn't run reliably on those same devices; that's a strong hint that
 something is wrong.

We've had similar discussions a while back here. At least how I
understood it, the skinny was that services can become victim of
Android's efforts to manage resources and that that's the way it's
supposed to work. In that sense, things are perfectly fine. It's just
that implementing alarms seems like a bad idea. I've since backed off
from including features such as alarms (secondary to my apps) or
dynamic app widgets (suffer similar fate), because they seem
impossible to support, at least at this point.

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


[android-developers] Re: Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-17 Thread JP


On Aug 16, 9:30 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Mon, Aug 16, 2010 at 11:38 PM, David enki1...@gmail.com wrote:
  What advantages of multiple activities am I missing?

 I'm sure we can come up with other reasons

Breaking down an app into activities supports navigation with the BACK
button. Must be manually coded otherwise.

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


[android-developers] Re: App builds up large Cache

2010-08-17 Thread Neilz
No... didn't even know you could :-)

On Aug 17, 3:40 pm, TreKing treking...@gmail.com wrote:
 On Tue, Aug 17, 2010 at 8:12 AM, Neilz neilhorn...@gmail.com wrote:
  When I test my app, I notice that after some use it has built up a fairly
  large cache of several Mb.

 And you're not explicitly using the cache directory?

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

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


[android-developers] Re: How to capture the contents of webview and parse it

2010-08-17 Thread dhilip
Thank you

On Aug 17, 10:42 am, TreKing treking...@gmail.com wrote:
 On Tue, Aug 17, 2010 at 9:14 AM, dhilip indiantalkiedhi...@gmail.comwrote:

   Is there any method that would allow me to connect to the url i specify in
  the webview and download the data?

 http://download.oracle.com/javase/6/docs/api/java/net/package-summary...

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

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


RE: [android-developers] Re: App builds up large Cache

2010-08-17 Thread Tommy
are you properly closing and or destroying all types of connection and or
readers?

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
Sent: Tuesday, August 17, 2010 11:07 AM
To: Android Developers
Subject: [android-developers] Re: App builds up large Cache

No... didn't even know you could :-)

On Aug 17, 3:40 pm, TreKing treking...@gmail.com wrote:
 On Tue, Aug 17, 2010 at 8:12 AM, Neilz neilhorn...@gmail.com wrote:
  When I test my app, I notice that after some use it has built up a
fairly
  large cache of several Mb.

 And you're not explicitly using the cache directory?



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

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

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

2010-08-17 Thread Jitesh mishra
I was facing the same problem with my application. Any type of help is
appreciated.
Thanks.

On Tue, Aug 17, 2010 at 8:39 PM, elka raharsa elka.fa...@gmail.com wrote:

 hi,i'm elka. i was trying an aplication, it's a tea timer, i took it from
 benjamin's thesis, it's use SDK 1.5.there are no eror in the code, but when
 i run the project , and the emulator show..but it said that' the application
 tea time has stopped unexpectedly.i\'am already attached the project.
 is there anyone, can help?
 i'm really apreciate it..
 thanks before..

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: tea time

2010-08-17 Thread Maps.Huge.Info (Maps API Guru)
You might try reading the logcat and see where the error lies. That
would be a start anyway. I don't believe you can expect other
developers to download your zip file and debug code. You'll have to do
that yourself.

-John Coryat

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

2010-08-17 Thread Kostya Vasilyev

 Elka,

I doubt anyone is going to debug your application for you.

Your first action with debugging crashes should be looking at logcat - 
Android's log messages. The log contains information about various 
system events, including crashes. A full stack trace is included for 
those (starting with the line that says Caused by:).


To see logcat output, you can use Eclipse's DDMS perspective, or start 
adb logcat from the development computer's command line.


Search this list or Google for Android logcat to see examples of 
logcat output and how it's used in debugging.


-- Kostya

17.08.2010 19:09, elka raharsa пишет:
hi,i'm elka. i was trying an aplication, it's a tea timer, i took it 
from benjamin's thesis, it's use SDK 1.5.there are no eror in the 
code, but when i run the project , and the emulator show..but it said 
that' the application tea time has stopped unexpectedly.i\'am already 
attached the project.

is there anyone, can help?
i'm really apreciate it..
thanks before..
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



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

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


Re: [android-developers] Re: tea time

2010-08-17 Thread Frank Weiss
Typical newbie problems are trying to do everything in onCreate() and
null pointer exception because some varibale isn't initialized. I
think using the debugger is even better than logcat. Are you using
Eclipse? The debugger is easy to use.

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

2010-08-17 Thread Sheepz
Hi
I followed the guide on 
http://developer.android.com/guide/appendix/install-location.html
and because I still want to support old devices I set the minSdk
property to 3 changed the build target to API Level 8.
The problem is that now I'm getting the following warning in my
application:
 Description   ResourcePathLocationType
Attribute minSdkVersion (3) is lower than the project target API level
(8) AndroidManifest.xml /Yaniv For Android  line 1  Android ADT 
Problem

I don't like warnings.
Is there anything that can be done for that?

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


Re: [android-developers] Re: tea time

2010-08-17 Thread Chris Stewart
My guess, without looking at your project, is the names you're using for the
resources directories.  I had issues with that on 1.5 as well.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Tue, Aug 17, 2010 at 11:29 AM, Frank Weiss fewe...@gmail.com wrote:

 Typical newbie problems are trying to do everything in onCreate() and
 null pointer exception because some varibale isn't initialized. I
 think using the debugger is even better than logcat. Are you using
 Eclipse? The debugger is easy to use.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: App builds up large Cache

2010-08-17 Thread Neilz
I don't really have any of these either. That's why I'm so surprised
at the cache size.

Could it be related to object creation and garbage collection? I mean,
is standard code optimization going to sort this out?

On Aug 17, 4:10 pm, Tommy droi...@gmail.com wrote:
 are you properly closing and or destroying all types of connection and or
 readers?

 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
 Sent: Tuesday, August 17, 2010 11:07 AM
 To: Android Developers
 Subject: [android-developers] Re: App builds up large Cache

 No... didn't even know you could :-)

 On Aug 17, 3:40 pm, TreKing treking...@gmail.com wrote:
  On Tue, Aug 17, 2010 at 8:12 AM, Neilz neilhorn...@gmail.com wrote:
   When I test my app, I notice that after some use it has built up a
 fairly
   large cache of several Mb.

  And you're not explicitly using the cache directory?

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

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



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


[android-developers] Re: My application works over WiFi but fails over GPRS

2010-08-17 Thread alan
Which port are you tring to connect to? maybe your mobile provider is
blocking that port.

On Aug 17, 10:02 am, Asif k asifk1...@gmail.com wrote:
 Hi all,

 I am developing a social Networking application and it works fine over
 WiFi but tried the same over GPRS it gives following Exception,

 08-17 13:55:05.406: WARN/System.err(4233):
 java.net.SocketTimeoutException: Socket is not connected
 08-17 13:55:05.406: WARN/System.err(4233):     at
 org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
 Method)
 08-17 13:55:05.406: WARN/System.err(4233):     at
 org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
 131)
 08-17 13:55:05.406: WARN/System.err(4233):     at
 org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
 247)
 08-17 13:55:05.406: WARN/System.err(4233):     at
 org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
 535)
 08-17 13:55:05.406: WARN/System.err(4233):     at
 java.net.Socket.connect(Socket.java:1054)
 08-17 13:55:05.406: WARN/System.err(4233):     at
 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
 117)
 08-17 13:55:05.413: WARN/System.err(4233):     at
 com.vodafone360.photos.service.transport.http.HttpConnectionThread.postHTTPRequest(HttpConnectionThread.java:
 293)

 what could be the reason?

 Thanks,
 Asif

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

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 10:56 AM, Sheepz eladk...@gmail.com wrote:

 I don't like warnings.


Me neither.


 Is there anything that can be done for that?


I think we'd need the Google engineers to change the build process to not
generate the warning, which seems very unnecessary.

I hope they're listening ...

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

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

[android-developers] Re: LVL and Settings.Secure.ANDROID_ID - how secure?

2010-08-17 Thread String
On Aug 17, 1:11 pm, Kostya Vasilyev kmans...@gmail.com wrote:

 Still, no comment from Google. Trevor? Anyone?

Kinda looks like Trevor has gone away. Maybe he's out of the office,
or maybe the Android management has reassigned him now that LVL is
done.

String

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

2010-08-17 Thread Bhavya Siddappa
Hi All,

I have an activity with 50 buttons. Want to avoid writing 50 switch cases
for onClick listener events.

Is their a way to map the buttons with its respective loading of UI in XML
format and avoid writing Java code.

Any pointers would be appreciated.

Thanks,

- Bhavya

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

2010-08-17 Thread Sheepz
well, I guess they had this conversation already...
http://groups.google.com/group/android-developers/browse_thread/thread/db35efb2cdb8c053
oh well... as long as everybody is suffering from this i'm okay :)

On Aug 17, 12:42 pm, TreKing treking...@gmail.com wrote:
 On Tue, Aug 17, 2010 at 10:56 AM, Sheepz eladk...@gmail.com wrote:
  I don't like warnings.

 Me neither.

  Is there anything that can be done for that?

 I think we'd need the Google engineers to change the build process to not
 generate the warning, which seems very unnecessary.

 I hope they're listening ...

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

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


Re: [android-developers] Re: App builds up large Cache

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 10:06 AM, Neilz neilhorn...@gmail.com wrote:

 No... didn't even know you could :-)


http://developer.android.com/reference/android/content/Context.html#getCacheDir()

I assumed that was the only way to get stuff in your app's cache.

I would clear the cache (via the manage application screen), then run your
app one step at a time and see if / how it grows.
See if you can find a pattern to how the cache grows based on what you do
and go from there. Somewhere, something you're doing or something you're
using is stuffing stuff in there.
http://developer.android.com/reference/android/content/Context.html#getCacheDir()
-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Disappearing Alarms

2010-08-17 Thread Dianne Hackborn
As far as I know, alarms work correctly on current versions of the platform;
in early versions I believe there were some issues with wake locks not being
held as they should, allowing the device to fall back asleep while the alarm
is being processed.  Note that the app side implementation is tricky --
though the alarm manager takes care of holding a wake lock the time it is
dispatching the alarm, this only works when delivering to a receiver, and
the app then must be careful to acquire its own wake lock while in the
onReceive() code and continue holding a wake lock for the entire time it is
coming up, displaying its UI, starting its service, posting its
notification, continues running, etc.

Definitely look at the current alarm clock code in the platform for an
example, though each version tends to rely on newer APIs introduced in that
version of the platform.

If you are seeing a problem on one manufacturer's device but not on another
manufacturer's but both are running the same version of the platform, this
is probably a bug the manufacturer should be aware of.

Re:

On Tue, Aug 17, 2010 at 12:25 AM, mot12 martin.hu...@gmail.com wrote:

 - then suddenly there's NO activity in the logs for many hours (highly
 unusual)


That is very desired.  If there is nothing that needs to be done, nobody is
holding a wake lock, the application CPU stops running, and nothing happens.
 You want to be in this situation as much as possible for better battery
life.  Various things will wake up the CPU -- incoming network traffic,
certain hardware buttons, scheduled alarms going off, etc -- at which point
the kernel will internally hold a wake lock while it delivers that
information to user space, and then user space must acquire its own wake
lock to be able to continue running as it processes the event.


 - the first activity reported after this silence is the display being
 turned on manually
 If the alarm was supposed to happen in this silence period, you will
 find there's no Intent fired. The alarm service did no wake up the
 device.


It's hard to say if the alarm did not wake up the device, or something in
user space didn't keep it awake, because I don't think there is a log event
for receiving an alarm and there definitely isn't one for sending a
broadcast.  However as of 2.1 adb shell dumpsys activity broadcasts will
include the last N broadcasts that were sent...  so you can plug in to your
dev machine and collect that output and look for that broadcast and at the
time stamp to determine when it was actually sent.

On the other hand, if you are saying the alarm broadcast simply never
happens, even once the device is turned on...  that is a very different
problem then any I am aware of.  That is not a problem with the device
sleeping at all, but simply some issue with the alarm getting lost. You can
use adb shell dumpsys alarm to look at the currently registered alarms to
see if your alarm is actually there.  During development we have had bugs
with alarms getting lost, but those are typically very obvious and get fixed
before release.  I am not aware of a final versions of the source having
such a bug.  Note that the force stop operation that task managers abuse
also removes an application's alarms.

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

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

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

Re: [android-developers] Re: tea time

2010-08-17 Thread Filip Havlicek
Hi Elka,

learn to use DDMS as others suggested.

I'm going to tell you just this: Your crash can be solved be inserting one
correct letter inside one of your classes. Line to correct can be identified
by first error (=red) message in DDMS after running your application.

Good luck,
Filip Havlicek

2010/8/17 Chris Stewart cstewart...@gmail.com

 My guess, without looking at your project, is the names you're using for
 the resources directories.  I had issues with that on 1.5 as well.

 --
 Chris Stewart
 http://chriswstewart.com

 Fantasy 
 Footballhttp://chriswstewart.com/android-applications/fantasy-football/- 
 Android app for fantasy football fanatics and MFL owners
 Social 
 Updaterhttp://chriswstewart.com/android-applications/social-updater/- An 
 easy way to send your status blast to multiple social networks



 On Tue, Aug 17, 2010 at 11:29 AM, Frank Weiss fewe...@gmail.com wrote:

 Typical newbie problems are trying to do everything in onCreate() and
 null pointer exception because some varibale isn't initialized. I
 think using the debugger is even better than logcat. Are you using
 Eclipse? The debugger is easy to use.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Re: custom attributes in library projects

2010-08-17 Thread RCASTO
Were you able to find a work around to this problem?

On Jul 8, 6:27 am, Vladimir Lebedev-Schmidthof dair@gmail.com
wrote:
 Hello,

 Having custom attribute (in attrs.xml) in library project leads to
 compilation fail of the project dependent of that library.

 I.e.:
 MyLib project (library)

 AndroidManifest.xml:
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.mycompany.test.lib
       android:versionCode=1
       android:versionName=1.0
 ...
 /manifest

 res/layout/main.xml:
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         xmlns:my=http://schemas.android.com/apk/res/
 com.mycompany.test.lib
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     
 com.mycompany.test.lib.MyWidget
     android:id=@+id/my_widget
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     my:customValue=324/
 /LinearLayout

 res/values/attrs.xml:
 resources
         declare-styleable name=MyWidget
                 attr name=customValue format=integer/
         /declare-styleable
 /resources

 And there are nothing in TestApp except AndroidManifest.xml:
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.mycompany.test.app
       android:versionCode=1
       android:versionName=1.0
 ...
 /manifest

 And aapt says that
 res/layout/main.xml:13: error: No resource identifier found for
 attribute 'customValue' in package 'com.mycompany.test.lib'

 How to avoid this except for no having custom attributes in library?

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

2010-08-17 Thread Dianne Hackborn
Also just printing the filenames in the directory (and subdirectories) would
be a first good step at information about what these are.

If you aren't making your own files there, and the only external code you
are using is the ad code, that seems a likely culprit.  In fact, I think
most ad systems use a WebView to display their ad, don't they?  If so..
 well there you go. :}

On Tue, Aug 17, 2010 at 9:48 AM, TreKing treking...@gmail.com wrote:

 On Tue, Aug 17, 2010 at 10:06 AM, Neilz neilhorn...@gmail.com wrote:

 No... didn't even know you could :-)



 http://developer.android.com/reference/android/content/Context.html#getCacheDir()

 I assumed that was the only way to get stuff in your app's cache.

 I would clear the cache (via the manage application screen), then run your
 app one step at a time and see if / how it grows.
 See if you can find a pattern to how the cache grows based on what you do
 and go from there. Somewhere, something you're doing or something you're
 using is stuffing stuff in there.

 http://developer.android.com/reference/android/content/Context.html#getCacheDir()

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

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




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

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

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

Re: [android-developers] Re: Alarm manager for multiple pending intent are not working.

2010-08-17 Thread Dianne Hackborn
That's really janky.  I'd strongly recommend only posting one alarm, for the
next event you have in time, and upon processing that post a new alarm for
the following event.  This is how  most apps work.  Your code here is really
problematic in how it manages its alarms -- for example if you have an alarm
scheduled for something, and the user changes that thing's time or deletes
it, how do you remove the alarm from the alarm manager?

On Tue, Aug 17, 2010 at 3:37 AM, nomi nomeshga...@gmail.com wrote:

 Thanks to all for your response,

 I have solved that problem by passing unique id which is depend on
 current time:-

final int intent_id= (int) System.currentTimeMillis();

PendingIntent pendingIntent =

 PendingIntent.getBroadcast(getApplicationContext(),intent_id,intent,PendingIntent.FLAG_UPDATE_CURRENT);

by this change code is working properly and each pending
 intent starts
 specified activity after 20 mins of it's alarm off time.



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




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

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

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

[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-08-17 Thread Droid
I uninstall Apps that need constant updates, a bit silly of me because
I update my own Apps all the time.


On Aug 17, 7:06 am, Mark Carter mjc1...@googlemail.com wrote:
 On 17 August 2010 03:15, Doug beafd...@gmail.com wrote:

  I think user retention rate is a great ingredient to add to the
  special sauce of a ranking algorithm because it's an indicator of
  satisfied customers.  That's something you can't derive from download
  activity.

 I think of a satisfied user as one who believes the app does what it is
 intended to do and does it better than any other app. Retention rate is not
 a good measure for this, IMHO.

 User retention rate is a measure of how useful the app is to the general
 public. Rating is a measure of the quality of the app. A user may be
 satisfied with an app but if its not as useful as their other apps then it
 will be uninstalled as soon as space runs out.

 I get the impression that the vast majority of downloads are from curious
 users. For a niche app which is high up the rankings, many users only want
 to download it to see why it's so higly ranked, They have no intention of
 using the app, so it will be uninstalled pretty quickly.

 For my main app, users 10 times more likely to rate pro version than free
 version, and 20 times more likely to leave a comment. Free app rated 4.5
 (50% active installs), paid app rated 4.9 (70% active installs, 10%
 refunds).

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

2010-08-17 Thread mot12
 On the other hand, if you are saying the alarm broadcast simply never
 happens, even once the device is turned on...  that is a very different
 problem then any I am aware of.  That is not a problem with the device
 sleeping at all, but simply some issue with the alarm getting lost. You can
 use adb shell dumpsys alarm to look at the currently registered alarms to
 see if your alarm is actually there.  During development we have had bugs
 with alarms getting lost, but those are typically very obvious and get fixed
 before release.  I am not aware of a final versions of the source having
 such a bug.  Note that the force stop operation that task managers abuse
 also removes an application's alarms.

Thanks for weighing in, Dianne. I misspoke: Actually the alarm
broadcast happens immediately after the display is turned on. But that
may be minutes or even hours after the time for which it was
scheduled. So that has nothing to do with the wake lock since that
would come into play only after the alarm broadcast was received.

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] Can Java code be replaced with XML

2010-08-17 Thread Filip Havlicek
Hi,

do I understand it right that you have one onClickListener instance for all
the buttons? Why? Just why?

Filip Havlicek

2010/8/17 Bhavya Siddappa bhavs...@gmail.com

 Hi All,

 I have an activity with 50 buttons. Want to avoid writing 50 switch cases
 for onClick listener events.

 Is their a way to map the buttons with its respective loading of UI in XML
 format and avoid writing Java code.

 Any pointers would be appreciated.

 Thanks,

 - Bhavya
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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

Re: [android-developers] Can Java code be replaced with XML

2010-08-17 Thread Chris Stewart
I'm not aware of any way to do that, but that doesn't mean it's not out
there.  I'd be curious to see the use case behind a single activity that has
50 buttons.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Tue, Aug 17, 2010 at 1:32 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Hi,

 do I understand it right that you have one onClickListener instance for all
 the buttons? Why? Just why?

 Filip Havlicek

 2010/8/17 Bhavya Siddappa bhavs...@gmail.com

  Hi All,

 I have an activity with 50 buttons. Want to avoid writing 50 switch cases
 for onClick listener events.

 Is their a way to map the buttons with its respective loading of UI in XML
 format and avoid writing Java code.

 Any pointers would be appreciated.

 Thanks,

 - Bhavya
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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

Re: [android-developers] Re: Backward Compatibility of android:installLocation

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 11:50 AM, Sheepz eladk...@gmail.com wrote:

 well, I guess they had this conversation already...


Well, a few people did. There was no clarification from any of the Google
engineers.

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

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

Re: [android-developers] Can Java code be replaced with XML

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 11:49 AM, Bhavya Siddappa bhavs...@gmail.comwrote:

 I have an activity with 50 buttons. Want to avoid writing 50 switch cases
 for onClick listener events.


I would avoid having 50 buttons in a single activity to begin with ...

Off-topic, but I would love to see a screenshot of this. My head is hurting
trying to picture a single activity with 50 buttons.

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

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

[android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-08-17 Thread Doug
On Aug 16, 11:06 pm, Mark Carter mjc1...@googlemail.com wrote:
 On 17 August 2010 03:15, Doug beafd...@gmail.com wrote:
  I think user retention rate is a great ingredient to add to the
  special sauce of a ranking algorithm because it's an indicator of
  satisfied customers.  That's something you can't derive from download
  activity.

 I think of a satisfied user as one who believes the app does what it is
 intended to do and does it better than any other app. Retention rate is not
 a good measure for this, IMHO.

Retention is not a perfect measure, and neither is rating.  That's why
I said it's a great ingredient to add to the overall algorithm.
Together, retention and rating can increase the confidence of an
algorithm to rank better apps higher.

Here's why retention in flawed:

- It doesn't take into account a user's preference to commit to one
app over another given that both apps perform the same function
equally well.  (There's no accounting for taste!)

- It doesn't take into account users who have lost interest in the app
over time, regardless of its overall quality and ability to satisfy.
(e.g. games with no replay value, but a fantastic beginning to end
experience)

- It isn't able to understand a user's need to make space for new
stuff.  An uninstall may be regrettable but necessary but we have no
idea if or how that factors into the overall ranking.

And here's why ratings are flawed:

- Ignorant users who fail to understand an app's purpose and use
(e.g. sucks, uninstall - 1 star)

- Withholding users who use ratings as a manipulation (e.g. More
stars when you implement feature X)

- Exuberant users who rate on first impression rather than deep
understanding

Very rarely do I see an honest rating for any app that says great app
but not for me!

 I get the impression that the vast majority of downloads are from curious
 users.

I only really get that impression for free apps and not paid apps.
I'm mostly concerned about paid apps here.  I believe that users who
are forced to put their money on the line are more likely to actually
read about and understand what it is they're about to authorize,
especially if there is a free version.  My free trial app is a dumping
ground for ignorant comments and ratings and I've lost all interest in
using it as a benchmark for anything useful.  Perhaps it has a lot to
do with the way it's crippled.  Many Android users have this strange
notion that everything should be really free!

Doug

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

2010-08-17 Thread nexbug
We have started getting customer emails very frequently from week
before last about this. This is slowly rising to the top support
issues for us.

On Aug 16, 10:04 am, TreKing treking...@gmail.com wrote:
 On Sun, Aug 15, 2010 at 3:45 PM, Paul idi...@gmail.com wrote:
  Many of my buyers are getting a Server Error during the purchase process
  of my app from Android Market.

 This is nothing new. Search the Android Market Help 
 Forum:http://market.android.com/support/bin/search.py?ctx=en:searchboxquer...

 This issue goes back over a year, at least.

  Limited response from Google so far, but supposedly they are working on it.

 More like no response. Communicating with users about blatant issues with
 their products, Android in particular, is not part of Google's marketing
 strategy, apparently.

  But Google Checkout and Android Market need to fix this.

 Yes, yes they do. But don't hold you breath. Again, this and many other
 related issues has been going on for over a year at least. Whomever's in
 charge of fixing this either can't solve the problem or doesn't care enough
 to do so. Learn to accept it as part of the Android Developer Experience.
 Welcome.

  I suspect the actual error is thrown by Google Checkout, since they are
  the ones storing the cc info.

 Probably. Google Checkout was clearly not designed to work for Android and
 is a tacked on hack. It is what it is though.



  Developers/Sellers: PLEASE POST IF YOUR BUYERS ARE EXPERIENCING THIS SAME
  ISSUE. When was the first occurrence?

 Hard to say, I'm guessing most users don't email the developer when they get
 this issue, but I got a report as recently as 3 days ago.

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

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


Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-08-17 Thread TreKing
On Tue, Aug 17, 2010 at 1:22 PM, Doug beafd...@gmail.com wrote:

 Perhaps it has a lot to do with the way it's crippled.  Many Android users
 have this strange notion that everything should be really free!


This in particular is very annoying. I have a few comment on my free version
along the lines of X should really be free, Need feature Y but not enough
to pay, or very limited ... when the description reads Limited / Basic
Version.

People spend ~$200 for a phone, ~$50 / month for the plan and then bitch
about spending less than $5 for an app. Amazing.

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

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

[android-developers] Emulator networking

2010-08-17 Thread kypriakos

Hi all,

looking over the online guide for the emulator and after some googling
i still have some
questions on this -  the guide focuses on emulator instances running
on the same machine.
However, I was trying to see how that maps for emulator running in a
distributed fashion.
If a node A (with IP address 129.10.52.x) in LAN A is running Emulator
A (which will have
the default IP address of 10.0.2.15:portA) wants to communicate with a
emulator B (which will
also have the default IP address of 10.0.2.15:portB)  running on node
B (with IP address
129.10.53.x) in LAN B how is the port forwarding setup in this case?
The same way as if
both emulator were running on the same machine?
And why when I print the IP address of the emulator running on any of
the nodes what's
displayed is the loopback address 127.0.0.1 and NOT 10.0.2.15 which is
the IP address
that each emulator is assigned?

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: Server Error when saving cc info from Android Market

2010-08-17 Thread String
This has been going on for a long time, it is true, but it's gotten a
lot worse since early August. I've been getting several emails a day
about this (or similar Market problems) since then.

As TreKing says, Google has shown very little interest in addressing
Market issues, or in helping paying customers. They've got time to
hold press conferences to publicize Chrome To Phone, but not to fix
either the serious deficiencies or the outright problems in the
Market.

So we developers take the heat, because our email addresses are right
there on the app page, and users expect we can solve these problems.
We also take the hit from our sales, of course - mine are down about
40-50% since this current round of issues started.

String

On Aug 17, 7:34 pm, nexbug gsuku...@gmail.com wrote:
 We have started getting customer emails very frequently from week
 before last about this. This is slowly rising to the top support
 issues for us.

 On Aug 16, 10:04 am, TreKing treking...@gmail.com wrote:







  On Sun, Aug 15, 2010 at 3:45 PM, Paul idi...@gmail.com wrote:
   Many of my buyers are getting a Server Error during the purchase process
   of my app from Android Market.

  This is nothing new. Search the Android Market Help 
  Forum:http://market.android.com/support/bin/search.py?ctx=en:searchboxquer...

  This issue goes back over a year, at least.

   Limited response from Google so far, but supposedly they are working on 
   it.

  More like no response. Communicating with users about blatant issues with
  their products, Android in particular, is not part of Google's marketing
  strategy, apparently.

   But Google Checkout and Android Market need to fix this.

  Yes, yes they do. But don't hold you breath. Again, this and many other
  related issues has been going on for over a year at least. Whomever's in
  charge of fixing this either can't solve the problem or doesn't care enough
  to do so. Learn to accept it as part of the Android Developer Experience.
  Welcome.

   I suspect the actual error is thrown by Google Checkout, since they are
   the ones storing the cc info.

  Probably. Google Checkout was clearly not designed to work for Android and
  is a tacked on hack. It is what it is though.

   Developers/Sellers: PLEASE POST IF YOUR BUYERS ARE EXPERIENCING THIS SAME
   ISSUE. When was the first occurrence?

  Hard to say, I'm guessing most users don't email the developer when they get
  this issue, but I got a report as recently as 3 days ago.

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

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


[android-developers] set x,y co-ordinates in pixels

2010-08-17 Thread ferar
in a FrameLayout with two children ImageView and EditText, is there a
way to control by code at runtime the position of the later EditText?
I'm trying to create a floating widget (EditText) much like a toast
but that changes its x,y offsets .

FrameLayout android:id=@+id/res_FrameLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=10
ImageView
android:id=@+id/my_imageview 
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_gravity=center /

EditText android:id=@+id/floating_edittext
android:layout_width=20dip 
android:layout_height=wrap_content
android:singleLine=true android:ellipsize=end
android:focusable=true
android:textSize=18sp android:textStyle=normal
android:editable=true /

/FrameLayout


in the activity class ctor:

EditText mFloatingEditText = (EditText)
findViewById(R.id.floating_edittext);
ViewGroup.LayoutParams mlayoutparamo =
mFloatingEditText.getLayoutParams();
mlayoutparamo.height = 40;
mlayoutparamo.width = 200;
mFloatingEditText.setLayoutParams(mlayoutparamo);   // this works!

mFloatingEditText.offsetLeftAndRight(30); // does not work!
mFloatingEditText.offsetTopAndBottom(50); // does not work!

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

2010-08-17 Thread Kostya Vasilyev
Loopback is always 127.0.0.1 - by definition. That is a TCP/IP thing, not an
Android thing.

As for connecting emulators on two systems - I think it's not easy to make
it work, if at all possible, since the emulator is likely to NAT its network
connections, and traversing a NAT in the inbound direction takes some
effort.

The usual rules for NAT should apply - emulator A would have to connect to
the real IP address on machine B, and then you'd have to find a way to
forward certain incoming connections on machine B to your application
running inside emulator B.

Having same addresses inside both emulators doesn't matter, since they are
not visible from the outside.

However, this setup is likely to work in the real world very poorly, or not
at all (except over Wifi). Cellular operators can NAT their data networks,
and then you won't be able to accept inbound socket connections.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com

17.08.2010 23:00 пользователь kypriakos demet...@ece.neu.edu написал:


Hi all,

looking over the online guide for the emulator and after some googling
i still have some
questions on this -  the guide focuses on emulator instances running
on the same machine.
However, I was trying to see how that maps for emulator running in a
distributed fashion.
If a node A (with IP address 129.10.52.x) in LAN A is running Emulator
A (which will have
the default IP address of 10.0.2.15:portA) wants to communicate with a
emulator B (which will
also have the default IP address of 10.0.2.15:portB)  running on node
B (with IP address
129.10.53.x) in LAN B how is the port forwarding setup in this case?
The same way as if
both emulator were running on the same machine?
And why when I print the IP address of the emulator running on any of
the nodes what's
displayed is the loopback address 127.0.0.1 and NOT 10.0.2.15 which is
the IP address
that each emulator is assigned?

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

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

Re: [android-developers] Can Java code be replaced with XML

2010-08-17 Thread Kostya Vasilyev
Are they in a list view?

+1 for the screenshot.

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

17.08.2010 21:51 пользователь TreKing treking...@gmail.com написал:

On Tue, Aug 17, 2010 at 11:49 AM, Bhavya Siddappa bhavs...@gmail.com
wrote:

 I have an activity...
I would avoid having 50 buttons in a single activity to begin with ...

Off-topic, but I would love to see a screenshot of this. My head is hurting
trying to picture a single activity with 50 buttons.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers g...

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

[android-developers] Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know that for testing with the emulator, the default locale can be
changed by proper adb shell commands, as documented by the official
docs. In the docs there's no mention about doing a similar thing in a
real device. I assume that there's no other way to change the default
locale than by manually using the Parameters app, right? Of course,
I'm talking of testing.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxq/CYACgkQeDweFqgUGxdJRACZAcaTBdKJLIHabu5DGRaeiCVb
9/wAmwazX9dHxPPdGEVUKuxGvRxEIJHv
=TNFg
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Remember my whines about lack of Android Game Framework ?

2010-08-17 Thread Piotr
Windows Phone and XNA. Nightmare is real. What we do with that ?

http://groups.google.com/group/android-developers/browse_thread/thread/4654534f0ce7348f/67fb58ca9d7582c7#67fb58ca9d7582c7

M$ just yesterday announced over 50 games for his Windows Phone 7
platform:

http://www.engadget.com/2010/08/16/xbox-live-launch-titles-for-windows-phone-7-finally-revealed-we/

Till this day, I was convinced, WP7 will die. But now, with Xbox Live
network and really serious and great developers game support, I can
tell, Android with its crappy games is going DOWN on this field.

Some of you have say, that real android gaming framework is not
necessary. I think, in 3 - 5 months, M$'s WP7 will beat Android in
gaming.

This is the price for ignorance of your enemy potential.

I'm afraid, Google will create gaming framework, when it will be just
too late. Games ARE so important. Windows wins all battles, mainly
becuase of games. Every osx/linux fan can tell you this.

Regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Frank Weiss
I'd be surprised if you can't do per-app locale changes in Android. I
know for a fact it can be done in Java Swing.

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

2010-08-17 Thread Pedro Teixeira
Hi everyone,

I'm trying to create a registration on my application activity with
only the user having to insert his name and email.

I want to add this values to my server database. Which is already
working fine, The user inserts the name and email and android sends a
http request to a php on my server and the php inserts this values in
the database.

The thing is.. I'd like this to happen only once and by this I mean if
the user has registed with that cellphone the device would remember it
and just go to another activity but keeping thoose 2 values available
to use.

Is this possible to do? Maybe my application access the device
preferences or something like that.. or should I build besides a
register, a login page for the user to login and make the validation
on the server side?

Anyone has any tutorial on this or someething to get me started? 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: Backward Compatibility of android:installLocation

2010-08-17 Thread Xavier Ducrohet
I missed the other thread (I was on vacation).

I think the current mechanism is dangerous because you may start using
a higher API than your minSdkVersion without you knowing it.
That's why we put the warning in the first place. I do agree though
that the warning can be annoying. Also, when we put the warning in
place there was little incentive for the developers to up the build
target to use newer manifest attributes.

It's trivial to remove the warning. Making it configurable would be
better. Fixing the whole issue (by compiling the java code against a
different target than the manifest) would be even better but harder,
and it's on my list of things to do.

Xav

On Tue, Aug 17, 2010 at 10:46 AM, TreKing treking...@gmail.com wrote:
 On Tue, Aug 17, 2010 at 11:50 AM, Sheepz eladk...@gmail.com wrote:

 well, I guess they had this conversation already...

 Well, a few people did. There was no clarification from any of the Google
 engineers.

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

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



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/17/10 23:52 , Frank Weiss wrote:
 I'd be surprised if you can't do per-app locale changes in Android.

It would be ok for me to change the locale of the whole phone.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxrCiUACgkQeDweFqgUGxeJeACfbkFS907YmVctqXYnChoNbvR1
ckwAn2LLrh9hqTLclnq3WgUe+BKLEO49
=5OpG
-END PGP SIGNATURE-

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

2010-08-17 Thread Frank Weiss
I'd use SharedPreferences for that. You will also need to add a use
case for the user uninstalling and then reinstalling the app. In that
case, SharedPreferences would be empty, but your server DB would have
a record of the prior registration.

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


[android-developers] Re: Can Java code be replaced with XML

2010-08-17 Thread Bret Foreman
I have some Java code that does this pretty cleanly. I re-use the same
listener for all the buttons and just switch on the button ID to
deliver the different actions for each one. Let me know if you'd like
me to post it.

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


[android-developers] Re: Update calendar events

2010-08-17 Thread Indicator Veritatis
But then this is just another example of why Google needs to make the
committment to keep such APIs stable.

On Aug 16, 11:08 pm, nexbug gsuku...@gmail.com wrote:
 Everyday we get requests from our users for this functionality. We
 have resisted the temptation to do this because the risk of a new
 android release breaking this is scarier than telling no to a few
 hundred customers.
 Id advise against doing it.

 On Aug 16, 2:49 pm, RichardC richard.crit...@googlemail.com wrote: Google 
 Calendar is not a supported API.

  On Aug 16, 4:38 pm, Bender abende...@googlemail.com wrote:

   Hi!

   I'm currently writing a class to access the android calendar,
   retrieving and inserting new events does already work but I'm having
   trouble to update existing events. With the the methods I already have
   I could check the ID of the calendar I want to work with, which is 5.
   I also could find out the ID of an event in that calendar which is 87.
   I'm trying to update that event with this code (well actually it is a
   bit different but I've shorten it a bit so it's not so much code to
   read for you):

   if(Build.VERSION.RELEASE.contains(2.2)) {
                   contentProvider = com.android.calendar;
               } else {
                   contentProvider = calendar;
               }

   eventsUri = Uri.parse(String.format(content://%s/
   events,contentProvider));
   Uri updateEventUri = Uri.withAppendedPath(eventsUri,
   String.valueOf(87));

   ContentValues event = new ContentValues();
   event.put(calendar_id, 5);
   event.put(title, Modified Title);

   mContext.getContentResolver().update(updateEventUri, event, null,
   null);  // mContext is the context of the activity which is using my
   helper class.

   (Of course the id's aren't hard coded in the original code. ;-) )

   The problem is, after that update, the event I wanted to change isn't
   changed at all. I'm not recieving any error messages that the Uri is
   wrong or something like that, so I have no idea why it isn't working.
   I tried different calendar IDs and different event IDs but there was
   no effect either. In the logs I've created the resulting Uri is
   content://com.android.calendar/events/87 which looks fine to me
   since I'm running it on froyo.

   I hope somebody has some advice for me. Sincerely,
   Bender



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-17 Thread Indicator Veritatis
True, but how far does this one consideration take you while designing
your application's UI? Surely you need to think about other
consideration too when deciding whether to do the immediate task at
hand with one activity, one view, or a mix of activities and views,
such as one activity and several views, some with back keys some
without...

So that is why in addition to asking myself, where can I let the
system do the navigation for me with the activity stack and back key?
I ask myself (during UI design), how many views can I comfortably put
on this one screen? and which views should spawn their own
activities on user action? as well.

Then we have all the non-UI considerations that Mark Murphy mentioned
in his excellent reply.

On Aug 17, 8:02 am, JP joachim.pfeif...@gmail.com wrote:
 On Aug 16, 9:30 pm, Mark Murphy mmur...@commonsware.com wrote:

  On Mon, Aug 16, 2010 at 11:38 PM, David enki1...@gmail.com wrote:
   What advantages of multiple activities am I missing?
  I'm sure we can come up with other reasons

 Breaking down an app into activities supports navigation with the BACK
 button. Must be manually coded otherwise.

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

2010-08-17 Thread Brad Gies


Well.. I think that's exactly what they are doing by not releasing it as 
a public API until it is stable.


Brad.

On 17/08/2010 3:31 PM, Indicator Veritatis wrote:

But then this is just another example of why Google needs to make the
committment to keep such APIs stable.

On Aug 16, 11:08 pm, nexbuggsuku...@gmail.com  wrote:

Everyday we get requests from our users for this functionality. We
have resisted the temptation to do this because the risk of a new
android release breaking this is scarier than telling no to a few
hundred customers.
Id advise against doing it.

On Aug 16, 2:49 pm, RichardCrichard.crit...@googlemail.com  wrote:  Google 
Calendar is not a supported API.


On Aug 16, 4:38 pm, Benderabende...@googlemail.com  wrote:

Hi!
I'm currently writing a class to access the android calendar,
retrieving and inserting new events does already work but I'm having
trouble to update existing events. With the the methods I already have
I could check the ID of the calendar I want to work with, which is 5.
I also could find out the ID of an event in that calendar which is 87.
I'm trying to update that event with this code (well actually it is a
bit different but I've shorten it a bit so it's not so much code to
read for you):
if(Build.VERSION.RELEASE.contains(2.2)) {
 contentProvider = com.android.calendar;
 } else {
 contentProvider = calendar;
 }
eventsUri = Uri.parse(String.format(content://%s/
events,contentProvider));
Uri updateEventUri = Uri.withAppendedPath(eventsUri,
String.valueOf(87));
ContentValues event = new ContentValues();
event.put(calendar_id, 5);
event.put(title, Modified Title);
mContext.getContentResolver().update(updateEventUri, event, null,
null);  // mContext is the context of the activity which is using my
helper class.
(Of course the id's aren't hard coded in the original code. ;-) )
The problem is, after that update, the event I wanted to change isn't
changed at all. I'm not recieving any error messages that the Uri is
wrong or something like that, so I have no idea why it isn't working.
I tried different calendar IDs and different event IDs but there was
no effect either. In the logs I've created the resulting Uri is
content://com.android.calendar/events/87 which looks fine to me
since I'm running it on froyo.
I hope somebody has some advice for me. Sincerely,
Bender




--
Sincerely,

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

Everything in moderation, including abstinence

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

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


  1   2   >