[android-developers] Android MediaPlayer cannot play VoD stream from VLC server

2011-01-17 Thread Charlie
Hi all,

Recently I am developing VoD application on Android. I use VLC as the
VoD server. I succeed in creating VoD stream with telnet interface.
Now the problem is my MediaPlayer class in Android cannot play this
VoD stream created. Then I try to use VLC to pick the stream and it
works. Does anyone know why? By the way, I have managed to use
MediaPlayer to play broadcast stream from VLC. Both broadcast and VoD
stream look something like this: rtsp://ip address:port/Test.

Anyone please help. Thanks in advance.

Charlie

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

2011-01-17 Thread Dianne Hackborn
No, the whole point is the user must explicitly decide they want to enable
the IME, with the associated warning to them.

On Sun, Jan 16, 2011 at 9:03 PM, xeagle xeagle...@gmail.com wrote:

 Hi,

 I'd like my IME is enabled when settings of my IME is launched so that
 user do not need go to Lanuage  Keyboard settings. Does Android
 provide this kind of API?

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

2011-01-17 Thread Olivier Guilyardi
Hi everyone!

I am glad to announce the creation of the andraudio mailing list, dedicated to
audio development on Android, at: andrau...@music.columbia.edu

More info and subscribing: http://music.columbia.edu/mailman/listinfo/andraudio

This list is meant to be a place to discuss about audio development, in the
context of music and sound applications, but also games and other apps which use
audio on Android.

Discussions and questions about both Java and native APIs are welcome.

In addition to application-level topics, we are interested in discussing about
Android audio system internals, for educational purposes, as well as finding new
ways to work with sound on Android.

So please come and join us if audio development on Android interests you.

--
  Olivier

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


[android-developers] Will no longer support Android 1.5

2011-01-17 Thread Zsolt Vasvari
I just warned my users that support for Android 1.5 will go away after
April 1st.  The share of 1.5 is  5% now and dropping.

Between not supporting multiple resolutions, wonky RelativeLayout and
old style Contacts provider, it's time to say goodbye to 1.5.

Would love to hear people's opinion on this decision?



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

2011-01-17 Thread AC
I have an application with a service that downloads a set of job data
from a remote web service. It uses this data to update a static
HashMap of Job objects:

public static HashMapString, Object jobs = new HashMapString,
Object();

When it's finished, it sends a message to a handler in
MapViewActivity:

MapViewActivity.handler.sendMessage( new Message() );

to tell it redraw markers on the map based on the data in the jobs
HashMap :

public class MapViewActivity extends MapActivity {
   private static HashMapString, Object markers = new
HashMapString, Object();

public static Handler handler = new Handler() {
public void handleMessage( Message m ) {
super.handleMessage( m );
syncMarkers();
}
};

syncMarkers() reads the jobs HashMap and updates the markers HashMap
based on what it finds. The markers HashMap contains a mapping of
string identifiers to MapOverlay (which extends ItemizedOverlay)
objects.

I'm getting a java.util.ConcurrentModificationException and a force
close from within  syncMarkers() as it tries to iterate over the
markers HashMap. I can see from the backtrace that syncMarkers() is
being invoked from the handler.

I presume this is because the user interface is trying to access the
marker objects at the same time as syncMarkers(). However, I'm very
surprised that this is the case, because I thought the handler would
run in the same thread as the user interface (and not the service's
thread), and so would never conflict. Am I wrong?

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


[android-developers] Re: ConcurrentModificationException from Handler

2011-01-17 Thread AC
Perhaps I'm sending the message from the service to the activity
incorrectly, and syncMarkers() ends up getting called from the
service's thread? If so, would anyone have any advice on the correct
way to send the message?

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


Re: [android-developers] Re: ConcurrentModificationException from Handler

2011-01-17 Thread Kumar Bibek
This exception generally occurs, if you are iterating through it and
changing it simultaneously.

*Note that this implementation is not synchronized.* If multiple threads
access this map concurrently, and at least one of the threads modifies the
map structurally, it *must* be synchronized externally. (A structural
modification is any operation that adds or deletes one or more mappings;
merely changing the value associated with a key that an instance already
contains is not a structural modification.) This is typically accomplished
by synchronizing on some object that naturally encapsulates the map. If no
such object exists, the map should be wrapped using the
Collections.synchronizedMap method. This is best done at creation time, to
prevent accidental unsynchronized access to the map:

 Map m = Collections.synchronizedMap(new HashMap(...));


http://download.oracle.com/javase/1.4.2/docs/api/java/util/HashMap.html


Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Jan 17, 2011 at 2:09 PM, AC alistair.cunning...@gmail.com wrote:

 Perhaps I'm sending the message from the service to the activity
 incorrectly, and syncMarkers() ends up getting called from the
 service's thread? If so, would anyone have any advice on the correct
 way to send the message?

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

2011-01-17 Thread Kostya Vasilyev
First, a link to docs:

http://download.oracle.com/javase/1.4.2/docs/api/java/util/ConcurrentModificationException.html

I can see several possible causes for this, and you should get a more
detailed stack trace (more than inside syncMarkers):

1 - You have two threads concurrently accessing the same hash map, and while
the UI thread is iterating, the worker thread comes around and starts
modifying the hash map.

To fix this, you can use synchronized collections:

http://download.oracle.com/javase/1.4.2/docs/api/java/util/Collections.html#synchronizedCollection(java.util.Collection)

Although I would use a different fix - make the data collection be part of
the message. The worker thread would build a new hash map each time, put it
into a message object, and send the message to the UI thread. From that
point on, the collection would be owned by the UI thread.

No concurrent access, no issues with synchronization.

2 - As described in the link above, code that is trying to remove elements
from a collection while iterating, for example:

for (Item i : myHashMap.values()) {
   if (some condition) {
  myHashMap.remove(i.key);
   }
}

You can't do this - use iterator.remove() to remove elements while
iterating.

3 - Code within a single thread that uses iterator.remove on a collection in
a loop, breaking out of the loop early after it finds (and removes) the
object it was going to remove.

I don't know if this is documented anywhere, but I've found that with hash
maps, you have to let that iteration loop run all the way through, until the
iterator's hasNext returns false. The changes (element removals) are applied
at that point, and the collection is then marked as not being in the middle
of a modification.

If you break out of the loop early, after calling iterator.remove, the
change is never applied, and the collection stays marked as being modified.
The next attempt to access the collection will throw the exception as you're
getting.

-- Kostya

2011/1/17 AC alistair.cunning...@gmail.com

 Perhaps I'm sending the message from the service to the activity
 incorrectly, and syncMarkers() ends up getting called from the
 service's thread? If so, would anyone have any advice on the correct
 way to send the message?

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

2011-01-17 Thread AC
I'm afraid that didn't help. I now have:

public class MapViewActivity extends MapActivity {
private static MapString, Object markers =
Collections.synchronizedMap( new HashMapString, Object() );

and the problem still occurs.

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

2011-01-17 Thread Kumar Bibek
There might be other reasons to the problem. Kostya has mentioned all the
details regarding the exception. :)

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Jan 17, 2011 at 2:32 PM, AC alistair.cunning...@gmail.com wrote:

 I'm afraid that didn't help. I now have:

 public class MapViewActivity extends MapActivity {
private static MapString, Object markers =
 Collections.synchronizedMap( new HashMapString, Object() );

 and the problem still occurs.

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

2011-01-17 Thread lou
Again some news.In order to be understanding, I'll explain again my
problem ( and my idea of why this timeout appears ).
My application contains a service witch connects a websocket ( socket
on port 80 ) and waits push notification.
Activities needs to send some HTTP request. So I think I have to use a
ThreadSafeClientConnManager.
Sometimes, HTTP request from activities doesn't respond and I have a
SocketException : Connection Timed Out, and I don't really know why.

I'm asking if it can be because the websocket block others HTTP
request (but why not all of them?!).
Every idea is good to hear !
Thanks in advance ( and sorry for english mistakes! )

On Jan 13, 5:57 pm, lou louis.coq...@wopata.com wrote:
 In fact, it already happens when not in wifi, but really less often...
 I'm hopeless :(

 On Jan 11, 11:40 am, lou louis.coq...@wopata.com wrote:







  New info, I think the timeout is only when I'm connected with Wifi,
  not in 3G or edge !
  Is it possible ? What can I do ?
  Thanks.

  On Jan 7, 6:33 pm, lou louis.coq...@wopata.com wrote:

   Thanks for your answer,
   And yes, I've already tried to modify these parameters, but I think it
   don't change anything, even when the server really don't respond.
   So...another idea?

   On Jan 7, 6:09 pm, ivan istas...@gmail.com wrote:

Have you tried playing with the timeouts passed via the http params?

HttpParams httpParameters = new BasicHttpParams();
ConnManagerParams.setMaxTotalConnections(httpParameters,
inApp.gResources.getInteger(R.integer.HTTP_MaxConnCnt));
HttpConnectionParams.setConnectionTimeout(httpParameters, 2); //
Set the timeout in milliseconds until a connection is established.
HttpConnectionParams.setSoTimeout(httpParameters, 3); // Set the
default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.

On Jan 7, 9:29 am, lou louis.coq...@wopata.com wrote:

 Hi !
 I'm actually trying to do an application with a websocket persistent
 connexion  some http request. So I thank I need to use
 ThreadSafeConnectionManager, but I have a big problem with it : very
 very often I got a java.net.SocketException: The operation timed out
 even when the server's responding.
 My code :
 // class members declarations
 private static HttpParams mParams;
 private static SchemeRegistry mSchemeRegistry;
 private static ClientConnectionManager mCm;
 private static HttpClient mClient;

 // code used to initiate the HttpClient
 mParams = new BasicHttpParams();
 mSchemeRegistry = new SchemeRegistry();
 mSchemeRegistry.register(new Scheme(http,
 PlainSocketFactory.getSocketFactory(), 80));
 mCm = new ThreadSafeClientConnManager(mParams, mSchemeRegistry);
 mClient = new DefaultHttpClient(mCm, mParams);

 What am I doing wrong?
 Thanks a lot.
 Louis C.

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

2011-01-17 Thread Kostya Vasilyev
Well, I don't know if that covered *all* the possibilities, but that's a
place to start :)

2011/1/17 Kumar Bibek coomar@gmail.com

 There might be other reasons to the problem. Kostya has mentioned all the
 details regarding the exception. :)


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Mon, Jan 17, 2011 at 2:32 PM, AC alistair.cunning...@gmail.com wrote:

 I'm afraid that didn't help. I now have:

 public class MapViewActivity extends MapActivity {
private static MapString, Object markers =
 Collections.synchronizedMap( new HashMapString, Object() );

 and the problem still occurs.

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

2011-01-17 Thread AC


On Jan 17, 5:00 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 2 - As described in the link above, code that is trying to remove elements
 from a collection while iterating, for example:

 for (Item i : myHashMap.values()) {
    if (some condition) {
       myHashMap.remove(i.key);
    }

 }

 You can't do this - use iterator.remove() to remove elements while
 iterating.

That was the problem! Thank you very much!

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

2011-01-17 Thread AC
After changing to iterator.remove() rather than removing from the Map,
the problem went away. Thank you very much!

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

2011-01-17 Thread Jens
When your SyncAdapter is initialized by the system you should get a
flag in the Bundle you receive from the SyncManager.

http://developer.android.com/reference/android/content/ContentResolver.html#SYNC_EXTRAS_INITIALIZE

So if this flag is present, copy the contacts to your account.

On 17 Jan, 04:30, Shawn_Chiu qiuping...@gmail.com wrote:
 Hi, all
    I'm developing an android contacts sync application. It would
 create a new account after successfully login. But there are multiple
 accounts in an android phone, no contacts in this new account. If a
 user wants to sync with server, he/she should copy contacts into the
 funambol account in Contacts application, which make it very
 inconvenient for users.
     So I want to load contacts immediately after a funambol account is
 created, or otherwise just sync with the originally phone account.
    Could anybody tell me how to achieve this?
 Thanks.
 BR
 Shawn Chiu

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

2011-01-17 Thread Kostya Vasilyev
Cool.

I would also recommend that you change your code to send new data in the
message, like I described above.

If your netwoking code runs on a separate thread - which it should be - then
that global is like a dog waiting to bite you when you least expect.

-- Kostya

2011/1/17 AC alistair.cunning...@gmail.com



 On Jan 17, 5:00 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  2 - As described in the link above, code that is trying to remove
 elements
  from a collection while iterating, for example:
 
  for (Item i : myHashMap.values()) {
 if (some condition) {
myHashMap.remove(i.key);
 }
 
  }
 
  You can't do this - use iterator.remove() to remove elements while
  iterating.

 That was the problem! Thank you very much!

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

2011-01-17 Thread Kostya Vasilyev
I'd say - good riddance!

2011/1/17 Zsolt Vasvari zvasv...@gmail.com

 I just warned my users that support for Android 1.5 will go away after
 April 1st.  The share of 1.5 is  5% now and dropping.

 Between not supporting multiple resolutions, wonky RelativeLayout and
 old style Contacts provider, it's time to say goodbye to 1.5.

 Would love to hear people's opinion on this decision?



 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread Kostya Vasilyev
2011/1/17 ko5tik kpriblo...@yahoo.com


 INS also requires gyroscopes.  But quality of those sensors lies far
 below ones utilised
 in  ICBMs in 60s


Good thing their weight, size, and power consumption are also far below the
ICMB ones :)

Kumar Bibek coomar@gmail.com
 Ah, I forgot, the phones don't yet have a light sensor. Too bad..

Most phones have cameras, but not all phones have flashes :)


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

2011-01-17 Thread DraganA
I'm not your app user, but I'm curious about this situation. Will 1.5
users be able to download your current app version in the future or
will it just dissappear? I always wondered about what happens when one
decides to stop supporting old Android versions. It would be good if a
version for 1.5 stayed on for 1.5 users.

On Jan 17, 9:47 am, Kostya Vasilyev kmans...@gmail.com wrote:
 I'd say - good riddance!

 2011/1/17 Zsolt Vasvari zvasv...@gmail.com

  I just warned my users that support for Android 1.5 will go away after
  April 1st.  The share of 1.5 is  5% now and dropping.

  Between not supporting multiple resolutions, wonky RelativeLayout and
  old style Contacts provider, it's time to say goodbye to 1.5.

  Would love to hear people's opinion on this decision?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] Is there a way to force the application not keep running after close it?

2011-01-17 Thread Sergio Luceno
Hi all,

Is there a way to force the application not keep running after close
it?

When the user closes de applications, it always is running memory.

Is it possible to define some at the manifest to force the app to be
removed from the memory?

I was trying to find out some parameter at the manifest... but I
didn't find nothing


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: Will no longer support Android 1.5

2011-01-17 Thread Zsolt Vasvari
That's a good point.  Current 1.5 users would still need to be
redownload the app for whatever reason.  I might release a version for
Android 1.5 users only and never update it.

On Jan 17, 6:00 pm, DraganA dand...@gmail.com wrote:
 I'm not your app user, but I'm curious about this situation. Will 1.5
 users be able to download your current app version in the future or
 will it just dissappear? I always wondered about what happens when one
 decides to stop supporting old Android versions. It would be good if a
 version for 1.5 stayed on for 1.5 users.

 On Jan 17, 9:47 am, Kostya Vasilyev kmans...@gmail.com wrote:



  I'd say - good riddance!

  2011/1/17 Zsolt Vasvari zvasv...@gmail.com

   I just warned my users that support for Android 1.5 will go away after
   April 1st.  The share of 1.5 is  5% now and dropping.

   Between not supporting multiple resolutions, wonky RelativeLayout and
   old style Contacts provider, it's time to say goodbye to 1.5.

   Would love to hear people's opinion on this decision?

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

 - Show quoted text -

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


Re: [android-developers] Is there a way to force the application not keep running after close it?

2011-01-17 Thread Kumar Bibek
Why would you try to do that? The OS would get rid of it whenever it feels
necessary. ie, whenever, the device runs low on memory.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com wrote:

 Hi all,

 Is there a way to force the application not keep running after close
 it?

 When the user closes de applications, it always is running memory.

 Is it possible to define some at the manifest to force the app to be
 removed from the memory?

 I was trying to find out some parameter at the manifest... but I
 didn't find nothing


 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.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] Best way to schedule a task?

2011-01-17 Thread Sergio Luceno
Hi!

My application has to be syncronized every 5 minutes against a server.
I have to schedule a HTTP call to my server to get sync.

What is the best way to achieve that?

Now I tried to make a timer with a handler.
I'm passing a message every 5 minutes to execute my action.

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] Resized Widgets

2011-01-17 Thread keyboardr
Does anyone know how to allow your appwidget to account for being
resized (a la LauncherPro or ADW)?  My widget already dynamically
figures out how many of an item to draw based on the size of the
widget (meaning I can have multiple providerInfos without having to
change the provider), but
AppWidgetManager.getAppWidgetInfo(widgetId).minWidth doesn't get
changed when LauncherPro or ADW change the size of the widget.

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

2011-01-17 Thread Kumar Bibek
Well, Given an option, I would stay away from a WebView when the same 
functionality can be achieved by using a TextView. But again, if you really 
have to use it, then, the last reply from Joe should help 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] How to display....?

2011-01-17 Thread Abhilash baddam
Thanks murphy,

The link what you have sent is very useful for me.

On Thu, Jan 13, 2011 at 7:13 PM, Mark Murphy mmur...@commonsware.comwrote:

 Use an ItemizedOverlay and publish multiple OverlayItems:

 https://github.com/commonsguy/cw-android/tree/master/Maps/NooYawk

 On Thu, Jan 13, 2011 at 8:10 AM, Abhilash baddam
 abhilash.androiddevelo...@gmail.com wrote:
  Hi friends,
 I can be able to display one location in map. Now how can
 we
  display multiple locations in Google maps..?
 
 
 
 
 
  Regards,
  Abhilash.B
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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



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

 Android App Developer Books: http://commonsware.com/books

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

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

Re: [android-developers] Is it possible to upload?

2011-01-17 Thread Abhilash baddam
Any help in this issue...

On Thu, Jan 13, 2011 at 12:30 PM, Kumar Bibek coomar@gmail.com wrote:

 You can use Java if you want, else, use the normal HTTP Get Post requests
 mentioned there.



 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Thu, Jan 13, 2011 at 12:29 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi kumar,

In Youtube official website i was found  apis for
 java,.net,php etc but i didn't find any api's for android there. can you
 send me the links where i can get those apis for android.


 On Wed, Jan 12, 2011 at 9:22 PM, Kumar Bibek coomar@gmail.comwrote:

 Have you looed into the APIs? If yes, what are the problems that you are
 facing. If no, please go through it first.


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 8:59 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi Kumar Bibek,

if you don't mind Can you help me out more to
 solve this problem.


 On Wed, Jan 12, 2011 at 7:17 PM, Kumar Bibek coomar@gmail.comwrote:

 Sure. Look at the youtube official APIs. You will find a few code
 snippets as well

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 6:50 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi friends,

I want to upload a file like mp3 or 3gp to *youtube*from 
 my application. Is it possible if yes can anyone
   send me code snippet or links which is useful regarding this
 issue.






 Regards,
 Abhilash.B

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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.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.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] Best way to schedule a task?

2011-01-17 Thread Kostya Vasilyev
Sergio,

A Handler only works for as long as your process is alive, which may not
be a good thing.

Use AlarmManager for scheduling - it can wake the phone up (if you need
this) and will reload the process if it was kicked out of memory.

For the actual updates, take a look at IntentService (part of SDK) or
WakefulIntentService (Mark Murphy's enhanced version, Google for it).

-- Kostya


2011/1/17 Sergio Luceno slucen...@gmail.com

 Hi!

 My application has to be syncronized every 5 minutes against a server.
 I have to schedule a HTTP call to my server to get sync.

 What is the best way to achieve that?

 Now I tried to make a timer with a handler.
 I'm passing a message every 5 minutes to execute my action.

 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.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] Any other forums..?

2011-01-17 Thread Abhilash baddam
Hi friends,

   can anyone send me the links(like forums etc) where we can
post our queries regarding the android issues apart from this one.

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

2011-01-17 Thread Kumar Bibek
Try StackOverflow.com

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Jan 17, 2011 at 4:35 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Hi friends,

can anyone send me the links(like forums etc) where we can
 post our queries regarding the android issues apart from this one.

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

2011-01-17 Thread Kostya Vasilyev
I believe minWidth comes from the widget_info.xml in your package, so it's
not very useful to the widget's own code.

As for different widget sizes with different displays and launchers -
*sigh*.

2011/1/17 keyboardr keyboa...@gmail.com

 Does anyone know how to allow your appwidget to account for being
 resized (a la LauncherPro or ADW)?  My widget already dynamically
 figures out how many of an item to draw based on the size of the
 widget (meaning I can have multiple providerInfos without having to
 change the provider), but
 AppWidgetManager.getAppWidgetInfo(widgetId).minWidth doesn't get
 changed when LauncherPro or ADW change the size of the widget.

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

2011-01-17 Thread Kumar Bibek
What's the issue here?

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Mon, Jan 17, 2011 at 4:31 PM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 Any help in this issue...


 On Thu, Jan 13, 2011 at 12:30 PM, Kumar Bibek coomar@gmail.comwrote:

 You can use Java if you want, else, use the normal HTTP Get Post requests
 mentioned there.



 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Thu, Jan 13, 2011 at 12:29 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi kumar,

In Youtube official website i was found  apis for
 java,.net,php etc but i didn't find any api's for android there. can you
 send me the links where i can get those apis for android.


 On Wed, Jan 12, 2011 at 9:22 PM, Kumar Bibek coomar@gmail.comwrote:

 Have you looed into the APIs? If yes, what are the problems that you are
 facing. If no, please go through it first.


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 8:59 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi Kumar Bibek,

if you don't mind Can you help me out more to
 solve this problem.


 On Wed, Jan 12, 2011 at 7:17 PM, Kumar Bibek coomar@gmail.comwrote:

 Sure. Look at the youtube official APIs. You will find a few code
 snippets as well

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 6:50 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi friends,

I want to upload a file like mp3 or 3gp to *youtube*from 
 my application. Is it possible if yes can anyone
   send me code snippet or links which is useful regarding
 this issue.






 Regards,
 Abhilash.B

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

[android-developers] Re: Is there a way to force the application not keep running after close it?

2011-01-17 Thread Sergio Luceno
I wanna do that, because I have a task running on background. And i
wanna stop it when the application is closed. This task is doing http
calls every X minutes to sync the application data over internet.

Also, android OS keep the state of the application and open it at the
last activity where the user was on.

I would like to open the application always by the main activity. also
this main activity is doing a login call, which receive the session id
to make more http calls. I have a risk to loose the session id, while
the user is not using the app and it stills in memory for a long time.



On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
 Why would you try to do that? The OS would get rid of it whenever it feels
 necessary. ie, whenever, the device runs low on memory.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com







 On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com wrote:
  Hi all,

  Is there a way to force the application not keep running after close
  it?

  When the user closes de applications, it always is running memory.

  Is it possible to define some at the manifest to force the app to be
  removed from the memory?

  I was trying to find out some parameter at the manifest... but I
  didn't find nothing

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

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


[android-developers] Re: Is there a way to force the application not keep running after close it?

2011-01-17 Thread Sergio Luceno
I wanna do that, because I have a task running on background. And i
wanna stop it when the application is closed. This task is doing http
calls every X minutes to sync the application data over internet.

Also, android OS keep the state of the application and open it at the
last activity where the user was on.

I would like to open the application always by the main activity. also
this main activity is doing a login call, which receive the session id
to make more http calls. I have a risk to loose the session id, while
the user is not using the app and it stills in memory for a long time.


On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
 Why would you try to do that? The OS would get rid of it whenever it feels
 necessary. ie, whenever, the device runs low on memory.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com







 On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com wrote:
  Hi all,

  Is there a way to force the application not keep running after close
  it?

  When the user closes de applications, it always is running memory.

  Is it possible to define some at the manifest to force the app to be
  removed from the memory?

  I was trying to find out some parameter at the manifest... but I
  didn't find nothing

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

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


[android-developers] Re: Best way to schedule a task?

2011-01-17 Thread Sergio Luceno
thanks Kostya,

I don't know if I explained well what i wanna mean when i say sync the
app.

What i try to have sync is the data of the application. I mean, the
user can modify his data through movile device, or accessing via web,
in the future maybe through facebook, etc.

So i think is quite enough if the process run only while the user is
using the application. I think i don't need sync while the user is
doing whatever and my app is on memory. Or maybe yes i don't
know. :D

I am gonna take a look to AlarmManager.

On 17 ene, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
 Sergio,

 A Handler only works for as long as your process is alive, which may not
 be a good thing.

 Use AlarmManager for scheduling - it can wake the phone up (if you need
 this) and will reload the process if it was kicked out of memory.

 For the actual updates, take a look at IntentService (part of SDK) or
 WakefulIntentService (Mark Murphy's enhanced version, Google for it).

 -- Kostya

 2011/1/17 Sergio Luceno slucen...@gmail.com







  Hi!

  My application has to be syncronized every 5 minutes against a server.
  I have to schedule a HTTP call to my server to get sync.

  What is the best way to achieve that?

  Now I tried to make a timer with a handler.
  I'm passing a message every 5 minutes to execute my action.

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

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


Re: [android-developers] Re: Is there a way to force the application not keep running after close it?

2011-01-17 Thread Kostya Vasilyev
Sergio,

To stop the background task - stop the background task.

It's your own code, so it's under your control. The framework tells you when
things happen via activity state callbacks (onPause / onResume), you just
need to do the right thing with them.

For your second issue:

http://developer.android.com/guide/topics/manifest/activity-element.html

set clearTaskOnLaunch to true.

-- Kostya

2011/1/17 Sergio Luceno slucen...@gmail.com

 I wanna do that, because I have a task running on background. And i
 wanna stop it when the application is closed. This task is doing http
 calls every X minutes to sync the application data over internet.

 Also, android OS keep the state of the application and open it at the
 last activity where the user was on.

 I would like to open the application always by the main activity. also
 this main activity is doing a login call, which receive the session id
 to make more http calls. I have a risk to loose the session id, while
 the user is not using the app and it stills in memory for a long time.



 On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
  Why would you try to do that? The OS would get rid of it whenever it
 feels
  necessary. ie, whenever, the device runs low on memory.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 
 
 
 
 
 
  On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com
 wrote:
   Hi all,
 
   Is there a way to force the application not keep running after close
   it?
 
   When the user closes de applications, it always is running memory.
 
   Is it possible to define some at the manifest to force the app to be
   removed from the memory?
 
   I was trying to find out some parameter at the manifest... but I
   didn't find nothing
 
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

2011-01-17 Thread Kostya Vasilyev
Oh, I see.

You might not need a service or alarms then - a Handler with postAtTime()
should do the trick.

Since you'll be doing networking, make you do it from a background thread,
so as to not block the application's UI.

Android provides a class that makes this easy: AsyncTask.

-- Kostya

2011/1/17 Sergio Luceno slucen...@gmail.com

 thanks Kostya,

 I don't know if I explained well what i wanna mean when i say sync the
 app.

 What i try to have sync is the data of the application. I mean, the
 user can modify his data through movile device, or accessing via web,
 in the future maybe through facebook, etc.

 So i think is quite enough if the process run only while the user is
 using the application. I think i don't need sync while the user is
 doing whatever and my app is on memory. Or maybe yes i don't
 know. :D

 I am gonna take a look to AlarmManager.

 On 17 ene, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
  Sergio,
 
  A Handler only works for as long as your process is alive, which may
 not
  be a good thing.
 
  Use AlarmManager for scheduling - it can wake the phone up (if you need
  this) and will reload the process if it was kicked out of memory.
 
  For the actual updates, take a look at IntentService (part of SDK) or
  WakefulIntentService (Mark Murphy's enhanced version, Google for it).
 
  -- Kostya
 
  2011/1/17 Sergio Luceno slucen...@gmail.com
 
 
 
 
 
 
 
   Hi!
 
   My application has to be syncronized every 5 minutes against a server.
   I have to schedule a HTTP call to my server to get sync.
 
   What is the best way to achieve that?
 
   Now I tried to make a timer with a handler.
   I'm passing a message every 5 minutes to execute my action.
 
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

2011-01-17 Thread lavanya
Hi,

Surfaceflinger dies during upgradation.
Can anyone please help me in fixing this issue? the logs for the same
has been given below.




6[2.837854] init: service_start service = ueventd
6[2.837878] init: service_start service = servicemanager
5[2.856944] init: starting 'servicemanager'
6[2.857369] init: service_start service = vold
5[2.857453] init: starting 'vold'
6[2.857763] init: service_start service = netd
5[2.857853] init: starting 'netd'
6[2.858146] init: service_start service = debuggerd
6[2.859431] init: Created socket '/dev/socket/vold' with mode
'660', user '0', group '1009'
6[2.860458] init: Created socket '/dev/socket/netd' with mode
'660', user '0', group '1000'
5[2.867464] init: starting 'debuggerd'
6[2.867826] init: service_start service = ril-daemon
5[2.870641] init: starting 'ril-daemon'
6[2.870998] init: service_start service = zygote
5[2.871083] init: starting 'zygote'
6[2.871386] init: service_start service = media
5[2.871503] init: starting 'media'
6[2.871859] init: service_start service = dbus
6[2.872786] init: Created socket '/dev/socket/rild-debug' with
mode '660', user '1001', group '1000'
6[2.872991] init: Created socket '/dev/socket/rild' with mode
'660', user '0', group '1001'
6[2.873916] init: Created socket '/dev/socket/zygote' with mode
'666', user '0', group '0'
5[2.875966] init: starting 'dbus'
6[2.876328] init: service_start service = installd
6[2.877229] init: Created socket '/dev/socket/dbus' with mode
'660', user '1002', group '1002'
5[2.879204] init: starting 'installd'
6[2.879541] init: service_start service = flash_recovery
6[2.880493] init: Created socket '/dev/socket/installd' with
mode '600', user '1000', group '1000'
3[2.886899] init: cannot find '/system/etc/install-recovery.sh',
disabling 'flash_recovery'
6[2.886938] init: service_start service = keystore
5[2.893859] init: starting 'keystore'
6[2.894264] init: command 'class_start' r=0
6[2.894391] init: processing action 0x2ad98
(queue_propety_triggers)
6[2.894484] init: command 'queue_propety_triggers' r=0
6[2.894523] init: processing action 0x299a0
(property:persist.service.adb.enable=1)
6[2.894553] init: service_start service = adbd
5[2.894598] init: starting 'adbd'
6[2.894913] init: command 'start' r=0
6[2.895073] init: command 'write' r=-2
6[2.899031] init: Created socket '/dev/socket/keystore' with
mode '666', user '0', group '0'
6[2.901146] warning: `adbd' uses 32-bit capabilities (legacy
support in use)
6[3.204081] init: waitpid returned pid 63, status = ff00
5[3.204123] init: process 'ril-daemon', pid 63 exited
5[3.204151] init: process 'ril-daemon' killing any children in
process group
6[7.208436] init: service_start service = ril-daemon
5[7.208529] init: starting 'ril-daemon'
6[7.210464] init: Created socket '/dev/socket/rild-debug' with
mode '660', user '1001', group '1000'
6[7.213263] init: Created socket '/dev/socket/rild' with mode
'660', user '0', group '1001'
6[7.245814] init: waitpid returned pid 81, status = ff00
5[7.245858] init: process 'ril-daemon', pid 81 exited
5[7.245888] init: process 'ril-daemon' killing any children in
process group
7[9.775078] BATT: rcvd: 0, 2, 4, 4; 0, 65523
7[9.775108] BATT: In charging
6[   11.958783] init: service_start service = bootanim
5[   11.958928] init: starting 'bootanim'
6[   12.351798] init: service_start service = ril-daemon
5[   12.351868] init: starting 'ril-daemon'
6[   12.352461] init: waitpid returned pid 94, status = 0009
5[   12.352498] init: process 'bootanim', pid 94 exited
6[   12.363899] init: waitpid returned pid 64, status = 0009
5[   12.363943] init: process 'zygote', pid 64 exited
5[   12.363973] init: process 'zygote' killing any children in
process group
6[   12.364189] request_suspend_state: wakeup (3-0) at 12360630003
(1980-01-06 06:26:39.887106668 UTC)
5[   12.364241] init: service 'media' is being killed
6[   12.367514] init: service_start service = media
5[   12.367579] init: starting 'media'
5[   12.368044] init: service 'netd' is being killed
6[   12.368864] init: service_start service = netd
5[   12.368918] init: starting 'netd'
6[   12.369373] init: waitpid returned pid 61, status = 000f
3[   12.369411] init: untracked pid 61 exited
6[   12.369466] init: waitpid returned pid 65, status = 000f
3[   12.369489] init: untracked pid 65 exited
6[   12.369578] init: service_start service = zygote
5[   12.369621] init: starting 'zygote'
6[   12.370806] init: Created socket '/dev/socket/rild-debug' with
mode '660', user '1001', group '1000'
6[   12.370929] init: Created socket '/dev/socket/rild' with mode
'660', user '0', group '1001'
6[   12.384588] init: Created socket '/dev/socket/netd' with mode
'660', user '0', group '1000'
6[   12.394403] init: Created socket '/dev/socket/zygote' with mode

Re: [android-developers] Surfaceflinger die during upgradation

2011-01-17 Thread Kostya Vasilyev
Wrong group. Try this one:

http://groups.google.com/group/android-platform

2011/1/17 lavanya lavavis...@gmail.com

 Hi,

 Surfaceflinger dies during upgradation.
 Can anyone please help me in fixing this issue? the logs for the same
 has been given below.




 6[2.837854] init: service_start service = ueventd
 6[2.837878] init: service_start service = servicemanager
 5[2.856944] init: starting 'servicemanager'
 6[2.857369] init: service_start service = vold
 5[2.857453] init: starting 'vold'
 6[2.857763] init: service_start service = netd
 5[2.857853] init: starting 'netd'
 6[2.858146] init: service_start service = debuggerd
 6[2.859431] init: Created socket '/dev/socket/vold' with mode
 '660', user '0', group '1009'
 6[2.860458] init: Created socket '/dev/socket/netd' with mode
 '660', user '0', group '1000'
 5[2.867464] init: starting 'debuggerd'
 6[2.867826] init: service_start service = ril-daemon
 5[2.870641] init: starting 'ril-daemon'
 6[2.870998] init: service_start service = zygote
 5[2.871083] init: starting 'zygote'
 6[2.871386] init: service_start service = media
 5[2.871503] init: starting 'media'
 6[2.871859] init: service_start service = dbus
 6[2.872786] init: Created socket '/dev/socket/rild-debug' with
 mode '660', user '1001', group '1000'
 6[2.872991] init: Created socket '/dev/socket/rild' with mode
 '660', user '0', group '1001'
 6[2.873916] init: Created socket '/dev/socket/zygote' with mode
 '666', user '0', group '0'
 5[2.875966] init: starting 'dbus'
 6[2.876328] init: service_start service = installd
 6[2.877229] init: Created socket '/dev/socket/dbus' with mode
 '660', user '1002', group '1002'
 5[2.879204] init: starting 'installd'
 6[2.879541] init: service_start service = flash_recovery
 6[2.880493] init: Created socket '/dev/socket/installd' with
 mode '600', user '1000', group '1000'
 3[2.886899] init: cannot find '/system/etc/install-recovery.sh',
 disabling 'flash_recovery'
 6[2.886938] init: service_start service = keystore
 5[2.893859] init: starting 'keystore'
 6[2.894264] init: command 'class_start' r=0
 6[2.894391] init: processing action 0x2ad98
 (queue_propety_triggers)
 6[2.894484] init: command 'queue_propety_triggers' r=0
 6[2.894523] init: processing action 0x299a0
 (property:persist.service.adb.enable=1)
 6[2.894553] init: service_start service = adbd
 5[2.894598] init: starting 'adbd'
 6[2.894913] init: command 'start' r=0
 6[2.895073] init: command 'write' r=-2
 6[2.899031] init: Created socket '/dev/socket/keystore' with
 mode '666', user '0', group '0'
 6[2.901146] warning: `adbd' uses 32-bit capabilities (legacy
 support in use)
 6[3.204081] init: waitpid returned pid 63, status = ff00
 5[3.204123] init: process 'ril-daemon', pid 63 exited
 5[3.204151] init: process 'ril-daemon' killing any children in
 process group
 6[7.208436] init: service_start service = ril-daemon
 5[7.208529] init: starting 'ril-daemon'
 6[7.210464] init: Created socket '/dev/socket/rild-debug' with
 mode '660', user '1001', group '1000'
 6[7.213263] init: Created socket '/dev/socket/rild' with mode
 '660', user '0', group '1001'
 6[7.245814] init: waitpid returned pid 81, status = ff00
 5[7.245858] init: process 'ril-daemon', pid 81 exited
 5[7.245888] init: process 'ril-daemon' killing any children in
 process group
 7[9.775078] BATT: rcvd: 0, 2, 4, 4; 0, 65523
 7[9.775108] BATT: In charging
 6[   11.958783] init: service_start service = bootanim
 5[   11.958928] init: starting 'bootanim'
 6[   12.351798] init: service_start service = ril-daemon
 5[   12.351868] init: starting 'ril-daemon'
 6[   12.352461] init: waitpid returned pid 94, status = 0009
 5[   12.352498] init: process 'bootanim', pid 94 exited
 6[   12.363899] init: waitpid returned pid 64, status = 0009
 5[   12.363943] init: process 'zygote', pid 64 exited
 5[   12.363973] init: process 'zygote' killing any children in
 process group
 6[   12.364189] request_suspend_state: wakeup (3-0) at 12360630003
 (1980-01-06 06:26:39.887106668 UTC)
 5[   12.364241] init: service 'media' is being killed
 6[   12.367514] init: service_start service = media
 5[   12.367579] init: starting 'media'
 5[   12.368044] init: service 'netd' is being killed
 6[   12.368864] init: service_start service = netd
 5[   12.368918] init: starting 'netd'
 6[   12.369373] init: waitpid returned pid 61, status = 000f
 3[   12.369411] init: untracked pid 61 exited
 6[   12.369466] init: waitpid returned pid 65, status = 000f
 3[   12.369489] init: untracked pid 65 exited
 6[   12.369578] init: service_start service = zygote
 5[   12.369621] init: starting 'zygote'
 6[   12.370806] init: Created socket '/dev/socket/rild-debug' with
 mode '660', user '1001', group '1000'
 6[   12.370929] init: Created socket 

[android-developers] Converting screen coordinates to world coordinates?

2011-01-17 Thread prachi
Hi

Im developing an augmented reality application where in I need to
perform the opposite of converting world coordinates to screen
coordinates

I have the screen x,y value and i need to fetch the corresponding
world coordinates(x,y,z) for the same.

Ny idea how to do dis???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Version code being displayed instead of Version Name in Samsung Galaxy S - GT I9000 device?

2011-01-17 Thread Stephan Wiesner
Here is what I get for two phones:

phone_model android_version board   brand   device  model   product
Orange San Francisco2.1-update1 blade   ZTE blade   Orange San 
Francisco
P729B_ORANGE_CH
GT-I90002.2 GT-I9000samsung GT-I9000GT-I9000
GT-I9000


Stephan


--
Interessiert an Android?
http://android-schweiz.blogspot.com/
Whant to learn German?
http://german-podcast.blogspot.com


On 17 Jan., 08:00, javame_android su...@softwebsolutions.com wrote:
 Hi,

 I do not know what is the reason of this but I just installed one
 Android app in Samsung Galaxy S - GT I9000 device and its displaying
 Version code in App info screen. Whereas the Nexus One is displaying
 the proper Version Name and not Version code.

 Has anyone faced a similar issue and is there any solution to this?

 Regards
 Sunil

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

2011-01-17 Thread Matthew Fleming
Hi,

I posted earlier about my need to find a way to load a mutable bitmap.
I need to be able to load a bitmap from an input stream, annotate it,
and save it. At present, the only thing I seem to be able to do is
load an immutable bitmap, copy it, annotate the copy, and then save
that. THIS IS NOT A SOLUTION, because then I need memory for two
copies of the bitmap, and I am working with large images.

COULD SOMEONE FROM GOOGLE PLEASE TELL US WHY the BitmapFactory methods
don't have the option of creating the Bitmap as mutable? A bit heavy-
handed to force the Bitmap to be immutable, don't you think? For that
matter, DOES ANYONE AT GOOGLE PAY ANY ATTENTION TO THIS GROUP?  You
post to the Apple Developer groups, you get an answer (even on the
weekend) from a real live person who knows what he's talking about,
and who is (usually) on the Apple payroll. Not here.

Second question. I figured I would check the available memory before
loading the bitmap, then load it at reduced resolution if necessary.
But Runtime.getRuntime().freeMemory() returns values that make no
sense. For example, if I put this in the onCreate of my first (main)
activity:
long freeMemory = Runtime.getRuntime().freeMemory();
Log.d(tag,String.valueOf(freeMemory));
freeMemory = Runtime.getRuntime().maxMemory();
Log.d(tag,String.valueOf(freeMemory));
I get a total memory of 16,777,216, but free memory of only 472,824.
This can't be right.

The above is with the emulator. When I try it with my Samsung Galaxy
Tab, I don't get any information, because Log.d() doesn't seem to work
at all with the actual hardware. Why is that?

Some real assistance with these problems would be much appreciated.
Google? Anyone home?

Matthew Fleming, MD
Fleming Dermatopathology, LLC
DermVision, LLC

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

2011-01-17 Thread Mike dg
What about making an activity exclusively for displaying the progress
dialog? It sounds like you have no desire to allow the user to do
anything during the fetch process, which I'm against but this would
work. You can do XML for the new activity layout.


On Jan 16, 11:53 pm, TreKing treking...@gmail.com wrote:
 On Sun, Jan 16, 2011 at 10:49 PM, cool.manish mannishga...@gmail.comwrote:

   I had also tried Progress Bar but I have to include it in the XML.

 No you don't. Did you even try creating it programmatically?

 --- 
 --
 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: Best way to schedule a task?

2011-01-17 Thread Sergio Luceno
Ohh thanks, i thought that Timer + Handler will open a new thread
instead of be on the main UI thread.

So, i can combine a timer + handler + AsyncTask, right? If I
understood I think is what you said.

Thanks Kostya!

On 17 ene, 12:27, Kostya Vasilyev kmans...@gmail.com wrote:
 Oh, I see.

 You might not need a service or alarms then - a Handler with postAtTime()
 should do the trick.

 Since you'll be doing networking, make you do it from a background thread,
 so as to not block the application's UI.

 Android provides a class that makes this easy: AsyncTask.

 -- Kostya

 2011/1/17 Sergio Luceno slucen...@gmail.com







  thanks Kostya,

  I don't know if I explained well what i wanna mean when i say sync the
  app.

  What i try to have sync is the data of the application. I mean, the
  user can modify his data through movile device, or accessing via web,
  in the future maybe through facebook, etc.

  So i think is quite enough if the process run only while the user is
  using the application. I think i don't need sync while the user is
  doing whatever and my app is on memory. Or maybe yes i don't
  know. :D

  I am gonna take a look to AlarmManager.

  On 17 ene, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
   Sergio,

   A Handler only works for as long as your process is alive, which may
  not
   be a good thing.

   Use AlarmManager for scheduling - it can wake the phone up (if you need
   this) and will reload the process if it was kicked out of memory.

   For the actual updates, take a look at IntentService (part of SDK) or
   WakefulIntentService (Mark Murphy's enhanced version, Google for it).

   -- Kostya

   2011/1/17 Sergio Luceno slucen...@gmail.com

Hi!

My application has to be syncronized every 5 minutes against a server.
I have to schedule a HTTP call to my server to get sync.

What is the best way to achieve that?

Now I tried to make a timer with a handler.
I'm passing a message every 5 minutes to execute my action.

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

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

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


Re: [android-developers] Re: Progress Bar without a dialog box

2011-01-17 Thread Kostya Vasilyev
You can put progress indicators into the winow title.

This describes a progress bar that goes from 0 to full:

http://developer.android.com/guide/appendix/faq/commontasks.html#progressbar

It's also possible to show an indeterminate progress bar, or a progress
wheel.

You can also overlay a progress indicator over your activity's content by
using a RelativeLayout or a FrameLayout.

-- Kostya

2011/1/17 Mike dg vinb...@gmail.com

 What about making an activity exclusively for displaying the progress
 dialog? It sounds like you have no desire to allow the user to do
 anything during the fetch process, which I'm against but this would
 work. You can do XML for the new activity layout.


 On Jan 16, 11:53 pm, TreKing treking...@gmail.com wrote:
  On Sun, Jan 16, 2011 at 10:49 PM, cool.manish mannishga...@gmail.com
 wrote:
 
I had also tried Progress Bar but I have to include it in the XML.
 
  No you don't. Did you even try creating it programmatically?
 
 
 ---
 --
  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


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

2011-01-17 Thread String
For my own apps, I don't have a problem supporting 1.5, and I figure that an 
extra 5% is nothing to sneeze at. But then, I've yet to run into anything 
that was really problematic for me to support on 1.5. Some of the resource 
handling is kind of annoying, but not really a big deal.

If I had some core feature that I just couldn't make backward-compatible, 
then yes, I'd drop 1.5 too. But probably not until then, or until the 
install percentage drops a few more points.

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: Best way to schedule a task?

2011-01-17 Thread Kostya Vasilyev
Sergio,

2011/1/17 Sergio Luceno slucen...@gmail.com

 Ohh thanks, i thought that Timer + Handler will open a new thread
 instead of be on the main UI thread.


Java Timer does, so I don't recommend anyone use it on Android.

Use an Android Handler and its postDelayed() - this calls your Runnable on
the UI thread:

http://developer.android.com/reference/android/os/Handler.html



 So, i can combine a timer + handler + AsyncTask, right? If I
 understood I think is what you said.


Yes, a Handler to schedule updates, and an AsyncTask to execute them.

Beware of orientation changes - carry over your task like this:

http://commonsware.com/blog/2010/09/10/asynctask-screen-rotation.html




 Thanks Kostya!

 On 17 ene, 12:27, Kostya Vasilyev kmans...@gmail.com wrote:
  Oh, I see.
 
  You might not need a service or alarms then - a Handler with postAtTime()
  should do the trick.
 
  Since you'll be doing networking, make you do it from a background
 thread,
  so as to not block the application's UI.
 
  Android provides a class that makes this easy: AsyncTask.
 
  -- Kostya
 
  2011/1/17 Sergio Luceno slucen...@gmail.com
 
 
 
 
 
 
 
   thanks Kostya,
 
   I don't know if I explained well what i wanna mean when i say sync the
   app.
 
   What i try to have sync is the data of the application. I mean, the
   user can modify his data through movile device, or accessing via web,
   in the future maybe through facebook, etc.
 
   So i think is quite enough if the process run only while the user is
   using the application. I think i don't need sync while the user is
   doing whatever and my app is on memory. Or maybe yes i don't
   know. :D
 
   I am gonna take a look to AlarmManager.
 
   On 17 ene, 12:04, Kostya Vasilyev kmans...@gmail.com wrote:
Sergio,
 
A Handler only works for as long as your process is alive, which
 may
   not
be a good thing.
 
Use AlarmManager for scheduling - it can wake the phone up (if you
 need
this) and will reload the process if it was kicked out of memory.
 
For the actual updates, take a look at IntentService (part of SDK) or
WakefulIntentService (Mark Murphy's enhanced version, Google for it).
 
-- Kostya
 
2011/1/17 Sergio Luceno slucen...@gmail.com
 
 Hi!
 
 My application has to be syncronized every 5 minutes against a
 server.
 I have to schedule a HTTP call to my server to get sync.
 
 What is the best way to achieve that?
 
 Now I tried to make a timer with a handler.
 I'm passing a message every 5 minutes to execute my action.
 
 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread DanH
I think that by then you will be passing cell towers fast enough that
you can use that reference.  Or detect the color shift in a flash
picture.

On Jan 17, 12:05 am, metal mikey coref...@gmail.com wrote:
 Will this still work as the car approaches and quite potentially
 breaches the speed of sound???

 On Jan 15, 4:59 am, DanH danhi...@ieee.org wrote:

  It only takes one phone:  You have the phone generate a tone and
  detect the shifted tone off of whatever object reflects it, like
  radar.  ;)

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

2011-01-17 Thread blackbelt
as stands in the topic, calling Debug.startNativeTracing() cause an seg 
fault. Emulator was started as emulator -verbose -trace profile -avd lakes 
-sdcard lakes.iso. Any way to get more information about?

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] Looking for a theme developer

2011-01-17 Thread doronguy
Hello All,

I'm looking for a freelance theme developer on android platform ?

Please send me email to :
g...@moblers.com

Thanx,
Guy.

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

2011-01-17 Thread Kostya Vasilyev
A phone with a camera can used to take pictures of the car's speedometer.

Not very precise (since car speedometers typically lie by a few mph/kph),
but keeps date and time with the image for later reference.

If your car's speedometer is broken, and you see someone you know driving in
the next lane, you can use the phone to call them up and ask.

-- Kostya

2011/1/17 DanH danhi...@ieee.org

 I think that by then you will be passing cell towers fast enough that
 you can use that reference.  Or detect the color shift in a flash
 picture.

 On Jan 17, 12:05 am, metal mikey coref...@gmail.com wrote:
  Will this still work as the car approaches and quite potentially
  breaches the speed of sound???
 
  On Jan 15, 4:59 am, DanH danhi...@ieee.org wrote:
 
   It only takes one phone:  You have the phone generate a tone and
   detect the shifted tone off of whatever object reflects it, like
   radar.  ;)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: GPS turned on automatically on some devices?

2011-01-17 Thread Spiral123
I seem to remember having a similar problem.  Does your Map app
display the Users current location at any point?

If yes, try calling MyLocationOverlay.enableMyLocation() to start
updates in your MapView's onResume() and
MyLocationOverlay.disableMyLocation() to stop in the onPause() and see
if your GPS problem goes away.

On Jan 17, 2:19 am, Stephan Wiesner testexpe...@googlemail.com
wrote:
 Hi,
 my HTC users keep complaining that i don't turn off the GPS when they exit
 my Google Maps app. The emulator shows the GPS symbol when I start my app,
 but none of my test devices do (Samsung Galaxy S, SE Xperia Mini Pro).
 I don't turn on the gps in the first place. And understood that I am not
 allowed to do it, even if i wanted to.

 Here is my code:
 onCreate:
 locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
 Criteria criteria = new Criteria();
 bestProvider = locationManager.getBestProvider(criteria, false);

 and
 protected void onPause() {
 super.onPause();
 locationManager.removeUpdates(this);

 and
 @Override
 protected void onResume() {
 super.onResume();
 locationManager.requestLocationUpdates(bestProvider, 1, 10, this);

 Anybody knows if HTC turns on GPS by default?

 Greetings from foggy Zurich,
 Stephan Wiesner

 --
 Interessiert an Android?http://android-schweiz.blogspot.com/
 Whant to learn German?http://german-podcast.blogspot.com

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


Re: [android-developers] Any other forums..?

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 5:05 AM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 can anyone send me the links(like forums etc) where we can post our queries
 regarding the android issues apart from this one.


http://www.google.com/

 http://www.google.com/No, seriously.

-
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] Converting screen coordinates to world coordinates?

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 5:54 AM, prachi prachi.tya...@wipro.com wrote:

 I have the screen x,y value and i need to fetch the corresponding world
 coordinates(x,y,z) for the same.


Technically speaking, there is no corresponding [X, Y, Z] for a given [X,
Y]. Converted to 3D, a 2D point becomes a line with an infinite number of
points along Z. However, you can find a particular Z given some more
restrictions (like an origin and a distance). Google around for 3D
projection and 3D picking - this is of itself not an Android-exclusive
concept.


 Ny idea how to do dis???


They're spelled any and this, respectively. You'll be taken far more
seriously if you take time to proofread your posts.

-
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: Will no longer support Android 1.5

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.comwrote:

 For my own apps, I don't have a problem supporting 1.5, and I figure that
 an extra 5% is nothing to sneeze at. But then, I've yet to run into anything
 that was really problematic for me to support on 1.5. Some of the resource
 handling is kind of annoying, but not really a big deal.

 If I had some core feature that I just couldn't make backward-compatible,
 then yes, I'd drop 1.5 too. But probably not until then, or until the
 install percentage drops a few more points.


This. (Thanks for writing my post for me :-) )

-
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 best to query web repeatedly.

2011-01-17 Thread cellurl
The data is speed limit signs. I think its time I switch to a local
copy like Jonathan said. I noticed there are tons of sort routines, so
I probably don't need sqlite...
Thanks guys!
cellurl


On Jan 15, 2:47 am, Jonathan Foley jonefo...@gmail.com wrote:
 Why don't you pull down data ahead of time? You haven't told us
 exactly what you are querying.
 Maps, logging the route?? In any case, you can either pre-cache some
 of the data you'll need or cache
 the data you'll be sending and send it less frequently in either
 direction.  The only reason I can
 understand polling so frequently is if you are pulling data that is
 completely unpredictable. That is
 you have some huge table or tables and really have no idea what the
 next query is. Maybe
 you need to think a little more about how to predict what you'll need
 from either end.
 As folks have mentioned, latency and bandwidth are highly
 unpredictable and fluctuate in time
 and space. Your design will have to heave enough headroom to account
 for that while still
 delivering whatever minimum user experience your app needs..

 Jonathan

 On Jan 15, 12:14 am, Frank Weiss fewe...@gmail.com wrote:







  I would suggest being more flexible about *when* the queries are made. You
  seem to have fixated on every 50 meters. Why not every two minutes? Or every
  n minutes, depending upon the current network latency? Or even a heuristic
  scheduler based on multiple factors? I would also suggest considering
  decoupling the activity from the provider. Perhaps by using a separate
  service that pushes new queries to the activity. Avoid creating your own
  threading framework.

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

2011-01-17 Thread Stephen Jungels
I've been tempted to drop 1.5, partly because it tends to be installed
on low-end devices where people will not have a very good experience
of my app, but recently my percentage of 1.5 users has gone up instead
of down on some apps.

There's a big difference between dropping (loyal) 1.5 users and never
having them in the first place, so for new apps my default assumption
is I will target 1.6+ or even 2.1+.

SJ

On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
 On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
 wrote:

 For my own apps, I don't have a problem supporting 1.5, and I figure that
 an extra 5% is nothing to sneeze at. But then, I've yet to run into anything
 that was really problematic for me to support on 1.5. Some of the resource
 handling is kind of annoying, but not really a big deal.
 If I had some core feature that I just couldn't make backward-compatible,
 then yes, I'd drop 1.5 too. But probably not until then, or until the
 install percentage drops a few more points.

 This. (Thanks for writing my post for me :-) )

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

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

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


[android-developers] How can we use..?

2011-01-17 Thread Abhilash baddam
Hi,

I want to use *bing search *in my application how can i use that...any
help please..?

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

2011-01-17 Thread Henrik Lindqvist
My AppWidgets are updated by a Service at user-defined intervals or
when certain intents occur. To save battery, I only update the
AppWidgets when the screen is on (SCREEN_ON).

Is there any other way to stop updating AppWidgets unnecessarily?

Only when the home screen is visible?
Only when a specific AppWidget is on screen?

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

2011-01-17 Thread Kevin Duffey
Is there a site that shows the number of users for each version?

I'd rather target 2.2+ now.. just because its the version that brought in a
big speed boost, making a lot more apps much smoother. I still have the
Droid 1 and I thought that was one of the lower end devices out there? Being
that I'll be able to upgrade this year, I would suspect by end of this year
most of the owners would be on 2.2 or later.

On Mon, Jan 17, 2011 at 6:50 AM, Stephen Jungels sjung...@gmail.com wrote:

 I've been tempted to drop 1.5, partly because it tends to be installed
 on low-end devices where people will not have a very good experience
 of my app, but recently my percentage of 1.5 users has gone up instead
 of down on some apps.

 There's a big difference between dropping (loyal) 1.5 users and never
 having them in the first place, so for new apps my default assumption
 is I will target 1.6+ or even 2.1+.

 SJ

 On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
  On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
  wrote:
 
  For my own apps, I don't have a problem supporting 1.5, and I figure
 that
  an extra 5% is nothing to sneeze at. But then, I've yet to run into
 anything
  that was really problematic for me to support on 1.5. Some of the
 resource
  handling is kind of annoying, but not really a big deal.
  If I had some core feature that I just couldn't make
 backward-compatible,
  then yes, I'd drop 1.5 too. But probably not until then, or until the
  install percentage drops a few more points.
 
  This. (Thanks for writing my post for me :-) )
 
 
 -
  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

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

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 8:58 AM, Abhilash baddam 
abhilash.androiddevelo...@gmail.com wrote:

 I want to use *bing search *in my application how can i use that...any
 help please..?


Anytime you want to use some web site or service in your app, just search
for [thing I care about] api. Try it. See what happens.

-
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] When NOT to update AppWidget from a Service

2011-01-17 Thread Kostya Vasilyev
Henrik,

SCREEN_OFF is usually followed by the device entering sleep mode, so that
issue pretty much takes care of itself.

Checking for the current virtual home screen, and currently active home app
among several possibly installed doesn't really fit the widget programming
model - it's more a push rather than pull (as it is with regular views, that
are drawn on demand). I hope that home screen apps have some smarts for that
(and maybe they really do).

I found it very useful to implement checks for stale widget ids in my
apps, so my code doesn't waste time updating 5-10-88 (yes, I've seen that
number) widgets when there is only one on the screen.

http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets

Some causes of this are fixed in 2.2, but I'm keeping that code just in
case.

-- Kostya

2011/1/17 Henrik Lindqvist henrik.lindqv...@gmail.com

 My AppWidgets are updated by a Service at user-defined intervals or
 when certain intents occur. To save battery, I only update the
 AppWidgets when the screen is on (SCREEN_ON).

 Is there any other way to stop updating AppWidgets unnecessarily?

 Only when the home screen is visible?
 Only when a specific AppWidget is on screen?

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

2011-01-17 Thread Laks
Is this what you are looking for?

http://developer.android.com/resources/dashboard/platform-versions.html

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

Re: [android-developers] Re: How best to query web repeatedly.

2011-01-17 Thread Kevin Duffey
Alright.. little confused Speed limit signs? Every 50 meters a driver passes
one? Or you're trying to pull down speed limit data to let the user know
what speed they are supposed to be traveling (and thus if they are going
over the speed limit)?

Like others said.. is there some way you can pull down ALL the speed limit
data ahead of time for say, a 10 mile radius. Using location information,
gps coordinates, etc, every time the driver gets within a few miles of the
radius edge, pull down more info.. hopefully based on the direction they are
headed and centered on them.

As far as I have seen, speed limits don't change that often that if you can
figure out some sort of radius algorithm to update and assume a good 30
seconds or so for that data, you should be fine.



On Mon, Jan 17, 2011 at 6:32 AM, cellurl gpscru...@gmail.com wrote:

 The data is speed limit signs. I think its time I switch to a local
 copy like Jonathan said. I noticed there are tons of sort routines, so
 I probably don't need sqlite...
 Thanks guys!
 cellurl


 On Jan 15, 2:47 am, Jonathan Foley jonefo...@gmail.com wrote:
  Why don't you pull down data ahead of time? You haven't told us
  exactly what you are querying.
  Maps, logging the route?? In any case, you can either pre-cache some
  of the data you'll need or cache
  the data you'll be sending and send it less frequently in either
  direction.  The only reason I can
  understand polling so frequently is if you are pulling data that is
  completely unpredictable. That is
  you have some huge table or tables and really have no idea what the
  next query is. Maybe
  you need to think a little more about how to predict what you'll need
  from either end.
  As folks have mentioned, latency and bandwidth are highly
  unpredictable and fluctuate in time
  and space. Your design will have to heave enough headroom to account
  for that while still
  delivering whatever minimum user experience your app needs..
 
  Jonathan
 
  On Jan 15, 12:14 am, Frank Weiss fewe...@gmail.com wrote:
 
 
 
 
 
 
 
   I would suggest being more flexible about *when* the queries are made.
 You
   seem to have fixated on every 50 meters. Why not every two minutes? Or
 every
   n minutes, depending upon the current network latency? Or even a
 heuristic
   scheduler based on multiple factors? I would also suggest considering
   decoupling the activity from the provider. Perhaps by using a separate
   service that pushes new queries to the activity. Avoid creating your
 own
   threading framework.

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

2011-01-17 Thread Kostya Vasilyev
I recently ran into some 1.5 issues with my widgets that were caused by a
certain quite popular phone that still runs 1.5 ignoring @dimen values.

So supporting 1.5, understood as some kind of pure Platonic form, is no
problem at all, but dealing with bugs in particular firmware versions is not
fun at all.

For now, both my apps continue to support 1.5, but a new project I'm working
on will only run on 1.6+ - because that's the first version with
multi-resolution support, and one really needs that these days.

-- Kostya

2011/1/17 TreKing treking...@gmail.com

 On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.comwrote:

 For my own apps, I don't have a problem supporting 1.5, and I figure that
 an extra 5% is nothing to sneeze at. But then, I've yet to run into anything
 that was really problematic for me to support on 1.5. Some of the resource
 handling is kind of annoying, but not really a big deal.

 If I had some core feature that I just couldn't make backward-compatible,
 then yes, I'd drop 1.5 too. But probably not until then, or until the
 install percentage drops a few more points.


 This. (Thanks for writing my post for me :-) )


 -
 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


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

2011-01-17 Thread Kostya Vasilyev
Not absolute numbers, but rather percentages, can be seen here:

http://developer.android.com/resources/dashboard/platform-versions.html

-- Kostya

2011/1/17 Kevin Duffey andjar...@gmail.com

 Is there a site that shows the number of users for each version?

 I'd rather target 2.2+ now.. just because its the version that brought in a
 big speed boost, making a lot more apps much smoother. I still have the
 Droid 1 and I thought that was one of the lower end devices out there? Being
 that I'll be able to upgrade this year, I would suspect by end of this year
 most of the owners would be on 2.2 or later.


 On Mon, Jan 17, 2011 at 6:50 AM, Stephen Jungels sjung...@gmail.comwrote:

 I've been tempted to drop 1.5, partly because it tends to be installed
 on low-end devices where people will not have a very good experience
 of my app, but recently my percentage of 1.5 users has gone up instead
 of down on some apps.

 There's a big difference between dropping (loyal) 1.5 users and never
 having them in the first place, so for new apps my default assumption
 is I will target 1.6+ or even 2.1+.

 SJ

 On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
  On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
  wrote:
 
  For my own apps, I don't have a problem supporting 1.5, and I figure
 that
  an extra 5% is nothing to sneeze at. But then, I've yet to run into
 anything
  that was really problematic for me to support on 1.5. Some of the
 resource
  handling is kind of annoying, but not really a big deal.
  If I had some core feature that I just couldn't make
 backward-compatible,
  then yes, I'd drop 1.5 too. But probably not until then, or until the
  install percentage drops a few more points.
 
  This. (Thanks for writing my post for me :-) )
 
 
 -
  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

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

2011-01-17 Thread Kevin Duffey
Indeed. Good info to have. So looks like 2.1+ is the target.

On Mon, Jan 17, 2011 at 7:19 AM, Laks laks.pendy...@gmail.com wrote:

 Is this what you are looking for?

 http://developer.android.com/resources/dashboard/platform-versions.html

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

2011-01-17 Thread Henrik Lindqvist

On Jan 17, 4:17 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Henrik,

 SCREEN_OFF is usually followed by the device entering sleep mode, so that
 issue pretty much takes care of itself.

I stop updating on SCREEN_OFF, the start again on SCREEN_ON. This
saves alot, but I was wondering if I can do more.


 Checking for the current virtual home screen, and currently active home app
 among several possibly installed doesn't really fit the widget programming
 model - it's more a push rather than pull (as it is with regular views, that
 are drawn on demand). I hope that home screen apps have some smarts for that
 (and maybe they really do).

The AppWidget model is very basic, that's why I'am asking on how to
work around the limitations.


 I found it very useful to implement checks for stale widget ids in my
 apps, so my code doesn't waste time updating 5-10-88 (yes, I've seen that
 number) widgets when there is only one on the screen.

 http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-wid...

Thanks for the tip. I'am already doing this.


 Some causes of this are fixed in 2.2, but I'm keeping that code just in
 case.

 -- Kostya

 2011/1/17 Henrik Lindqvist henrik.lindqv...@gmail.com

  My AppWidgets are updated by a Service at user-defined intervals or
  when certain intents occur. To save battery, I only update the
  AppWidgets when the screen is on (SCREEN_ON).

  Is there any other way to stop updating AppWidgets unnecessarily?

  Only when the home screen is visible?
  Only when a specific AppWidget is on screen?

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

2011-01-17 Thread Brill Pappin
I started development during 2.1 so i never went there.
I'm moving all new code up to minimum 2.2 because thats were 60% of my
customer base is.
That said, I'll support the one app I have thats 2.1 for as long as I
have greater than 10% users.

On that note. It's bogus that the Market doesn't give me any stats on
who my users are. I had to go to ApBrain for that.
How are you tracking what percentage of your users are on what
platform?
There is a GOogle Analytics library for Aneroid, but I haven't tried
implementing it yet.

- Brill Pappin

On Jan 17, 3:32 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 I just warned my users that support for Android 1.5 will go away after
 April 1st.  The share of 1.5 is  5% now and dropping.

 Between not supporting multiple resolutions, wonky RelativeLayout and
 old style Contacts provider, it's time to say goodbye to 1.5.

 Would love to hear people's opinion on this decision?

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

2011-01-17 Thread Kevin Duffey
Abhilash,

I think what Kumar is suggesting is you do more than just ask someone on the
forum to do it for you. There are some things that are probably not good for
a beginner java developer who is also learning java to try to do initially.
Hence, dig in, read, learn.

As he said, the java APIs.. well really the HTTP calls to make, are what you
want to look into. Android has HttpClient, which has been used by many to
make HTTP calls for API access to services. These are sometimes referred to
as REST calls, depending on if the API is a REST api, or just a simple HTTP
api.

Your original post was 5 days ago. What have you discovered in those 5 days?
Google is an invaluable resource in things like this. I am sure you did a
search for Android Youtube API.. how to call youtube from android, how to
post to youtube from android, and so on right?

I have found most of the time I can find examples of code out there.

On the flip side of this, I myself am looking for the right way to use
HttpClient to send a binary file to any service. I have my own rest service,
and for the fun of learning am making a simple camera app for my wife..
where by it takes a snap, then sends the image to a service where it will be
emailed out to many people at once. I can't seem to get the actual byte[] of
the image to connect to my service yet. It's probably similar to what you'll
need to do for a youtube post of a video.

The fun of discovering. :)


On Mon, Jan 17, 2011 at 3:08 AM, Kumar Bibek coomar@gmail.com wrote:

 What's the issue here?


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Mon, Jan 17, 2011 at 4:31 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Any help in this issue...


 On Thu, Jan 13, 2011 at 12:30 PM, Kumar Bibek coomar@gmail.comwrote:

 You can use Java if you want, else, use the normal HTTP Get Post requests
 mentioned there.



 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Thu, Jan 13, 2011 at 12:29 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi kumar,

In Youtube official website i was found  apis for
 java,.net,php etc but i didn't find any api's for android there. can you
 send me the links where i can get those apis for android.


 On Wed, Jan 12, 2011 at 9:22 PM, Kumar Bibek coomar@gmail.comwrote:

 Have you looed into the APIs? If yes, what are the problems that you
 are facing. If no, please go through it first.


 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 8:59 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi Kumar Bibek,

if you don't mind Can you help me out more to
 solve this problem.


 On Wed, Jan 12, 2011 at 7:17 PM, Kumar Bibek coomar@gmail.comwrote:

 Sure. Look at the youtube official APIs. You will find a few code
 snippets as well

 Kumar Bibek
 http://techdroid.kbeanie.com
 http://www.kbeanie.com



 On Wed, Jan 12, 2011 at 6:50 PM, Abhilash baddam 
 abhilash.androiddevelo...@gmail.com wrote:

 Hi friends,

I want to upload a file like mp3 or 3gp to 
 *youtube*from my application. Is it possible if yes can anyone
   send me code snippet or links which is useful regarding
 this issue.






 Regards,
 Abhilash.B

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

[android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Brill Pappin
Its shameful, but the Market doesn't give us any useful data on that
(which makes giving quality product a problem).
I got my data through AppBrain, but its certainly not ideal.

There is a lib for Google Analytic, but I looks a bit chunky, so I
haven't tried to use it yet.

- Brill Pappin

On Jan 17, 10:14 am, Kevin Duffey andjar...@gmail.com wrote:
 Is there a site that shows the number of users for each version?

 I'd rather target 2.2+ now.. just because its the version that brought in a
 big speed boost, making a lot more apps much smoother. I still have the
 Droid 1 and I thought that was one of the lower end devices out there? Being
 that I'll be able to upgrade this year, I would suspect by end of this year
 most of the owners would be on 2.2 or later.







 On Mon, Jan 17, 2011 at 6:50 AM, Stephen Jungels sjung...@gmail.com wrote:
  I've been tempted to drop 1.5, partly because it tends to be installed
  on low-end devices where people will not have a very good experience
  of my app, but recently my percentage of 1.5 users has gone up instead
  of down on some apps.

  There's a big difference between dropping (loyal) 1.5 users and never
  having them in the first place, so for new apps my default assumption
  is I will target 1.6+ or even 2.1+.

  SJ

  On Mon, Jan 17, 2011 at 8:52 AM, TreKing treking...@gmail.com wrote:
   On Mon, Jan 17, 2011 at 7:07 AM, String sterling.ud...@googlemail.com
   wrote:

   For my own apps, I don't have a problem supporting 1.5, and I figure
  that
   an extra 5% is nothing to sneeze at. But then, I've yet to run into
  anything
   that was really problematic for me to support on 1.5. Some of the
  resource
   handling is kind of annoying, but not really a big deal.
   If I had some core feature that I just couldn't make
  backward-compatible,
   then yes, I'd drop 1.5 too. But probably not until then, or until the
   install percentage drops a few more points.

   This. (Thanks for writing my post for me :-) )

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

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

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


[android-developers] Re: Is there a way to force the application not keep running after close it?

2011-01-17 Thread Sergio Luceno
Hi!

I tried to set up the setting finishOnTaskLaunch to true at all my
activities... but when I click home and then open my app again, it
didn't start at the main activity, it start at the same activity that
was running when i clicked the home button...

On 17 ene, 12:23, Kostya Vasilyev kmans...@gmail.com wrote:
 Sergio,

 To stop the background task - stop the background task.

 It's your own code, so it's under your control. The framework tells you when
 things happen via activity state callbacks (onPause / onResume), you just
 need to do the right thing with them.

 For your second issue:

 http://developer.android.com/guide/topics/manifest/activity-element.html

 set clearTaskOnLaunch to true.

 -- Kostya

 2011/1/17 Sergio Luceno slucen...@gmail.com







  I wanna do that, because I have a task running on background. And i
  wanna stop it when the application is closed. This task is doing http
  calls every X minutes to sync the application data over internet.

  Also, android OS keep the state of the application and open it at the
  last activity where the user was on.

  I would like to open the application always by the main activity. also
  this main activity is doing a login call, which receive the session id
  to make more http calls. I have a risk to loose the session id, while
  the user is not using the app and it stills in memory for a long time.

  On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
   Why would you try to do that? The OS would get rid of it whenever it
  feels
   necessary. ie, whenever, the device runs low on memory.

   Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

   On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com
  wrote:
Hi all,

Is there a way to force the application not keep running after close
it?

When the user closes de applications, it always is running memory.

Is it possible to define some at the manifest to force the app to be
removed from the memory?

I was trying to find out some parameter at the manifest... but I
didn't find nothing

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

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

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


[android-developers] Re: Will no longer support Android 1.5

2011-01-17 Thread Brill Pappin
Thats fine, but doesn't give you any stats on your own app, which is
very important for maintaining customer loyalty.

We intend to make the company a truste name (not just the apps) in the
market with quality product, so we really want to know what *our*
users are doing.

- Brill Pappin

On Jan 17, 10:19 am, Laks laks.pendy...@gmail.com wrote:
 Is this what you are looking for?

 http://developer.android.com/resources/dashboard/platform-versions.html

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


[android-developers] Using onItemSelected with conditionals

2011-01-17 Thread zizzfusion
Hello I'm trying to think of the best way of tackling this - I'm not
using a database or inflating data dynamically so instead I just want
to load a different activity depending on which Spinner selection is
made. I'm in the early stages of working with Android so here's where
I'm at:

public class ItemSelected implements OnItemSelectedListener {

  public void onItemSelected(AdapterView? parent, View v, int pos,
long id) {
  if ((parent.getItemAtPosition(pos).toString()) == Selection 1)
{
  startActivity(new Intent(this, activity_1.class)));
  } else if {
  // ditto for activity 2 and so on }
  }

  public void onNothingSelected(AdapterView? parent){
  Toast.makeText(parent.getContext(), No selection made,
Toast.LENGTH_LONG).show();
  }
}

Would a conditional set of statements work something like this or can
I load the activities through an array as could be done with a simple
set of strings.

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

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 9:35 AM, zizzfusion calumer...@gmail.com wrote:

 Would a conditional set of statements work something like this


Sure, but you could simplify this to a switch statement:

switch (pos)
{
 case CONSTANT_FOR_SELECTION_0:
 launchActivityForSelection0();
break;
// etc.
}


 or can I load the activities through an array as could be done with a
 simple set of strings.


I have no idea what that means.

-
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] possible enhancement of Android SDK-NDK integration?

2011-01-17 Thread Ajay Prabandham
Dear community,
I was browsing through the Android NDK info on 
the Android developers website, and found that currently only NDK ACTIVITY 
components can be invoked from SDK components. I an curious to know whether 
adding the capability to NDK Services and Content Providers to be invoked 
from the Java components, would be a good project idea.
The questions that crop up are:


1. Is there any inherent property of the SDK/NDK that prevents Services to 
be accessed in this way?
2. Is anyone/any group already working on this feature?

The intention is to provide cross-language RMI, something that middleware 
such as CORBA support inherently.

Regards,
Ajay

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

2011-01-17 Thread Brill Pappin
Yah, I've had a tone of trouble with my users not understanding how to 
enable to my IME's.
I don't want to do it for them however. What would be good is a way to allow 
them to click buttons in my app to enable it.

At the moment, I found that providing a launch app with installation 
instructions has reduced my support tickets by a huge amount, however by far 
the most support requests i get are still users who don't understand how to 
enable the darn thing.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there a way to force the application not keep running after close it?

2011-01-17 Thread Kostya Vasilyev
It only needs to be set on your main activity, the one you want the user
to come back to.

And it's not finishTaskOnLaunch, it's clearTaskOnLaunch.

-- Kostya

2011/1/17 Sergio Luceno slucen...@gmail.com

 Hi!

 I tried to set up the setting finishOnTaskLaunch to true at all my
 activities... but when I click home and then open my app again, it
 didn't start at the main activity, it start at the same activity that
 was running when i clicked the home button...

 On 17 ene, 12:23, Kostya Vasilyev kmans...@gmail.com wrote:
  Sergio,
 
  To stop the background task - stop the background task.
 
  It's your own code, so it's under your control. The framework tells you
 when
  things happen via activity state callbacks (onPause / onResume), you just
  need to do the right thing with them.
 
  For your second issue:
 
  http://developer.android.com/guide/topics/manifest/activity-element.html
 
  set clearTaskOnLaunch to true.
 
  -- Kostya
 
  2011/1/17 Sergio Luceno slucen...@gmail.com
 
 
 
 
 
 
 
   I wanna do that, because I have a task running on background. And i
   wanna stop it when the application is closed. This task is doing http
   calls every X minutes to sync the application data over internet.
 
   Also, android OS keep the state of the application and open it at the
   last activity where the user was on.
 
   I would like to open the application always by the main activity. also
   this main activity is doing a login call, which receive the session id
   to make more http calls. I have a risk to loose the session id, while
   the user is not using the app and it stills in memory for a long time.
 
   On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
Why would you try to do that? The OS would get rid of it whenever it
   feels
necessary. ie, whenever, the device runs low on memory.
 
Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com
   wrote:
 Hi all,
 
 Is there a way to force the application not keep running after
 close
 it?
 
 When the user closes de applications, it always is running memory.
 
 Is it possible to define some at the manifest to force the app to
 be
 removed from the memory?
 
 I was trying to find out some parameter at the manifest... but I
 didn't find nothing
 
 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
   cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

2011-01-17 Thread Stephen Jungels
My stats are from Google Analytics. If you use it and explain what you
are doing in your terms of service or license agreement, you are
likely to get at least a few comments from users who think you are
spying on them, but in some cases it is worth it because you have a
better picture of how your app is being used.

SJ

On Mon, Jan 17, 2011 at 10:37 AM, Brill Pappin br...@pappin.ca wrote:
 Thats fine, but doesn't give you any stats on your own app, which is
 very important for maintaining customer loyalty.

 We intend to make the company a truste name (not just the apps) in the
 market with quality product, so we really want to know what *our*
 users are doing.

 - Brill Pappin

 On Jan 17, 10:19 am, Laks laks.pendy...@gmail.com wrote:
 Is this what you are looking for?

 http://developer.android.com/resources/dashboard/platform-versions.html

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

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


[android-developers] Re: Anyone with GL experience willing to take a contract/bounty?

2011-01-17 Thread Brill Pappin
Really? Nobody is interested in this at all?

- Brill Pappin
  Sixgreen Labs Inc.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Anyone with GL experience willing to take a contract/bounty?

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

 Really? Nobody is interested in this at all?


Not surprised. People here probably have their own projects going on I get
the impression that the knowledge pool for GL on Android is very small.

Maybe try gamedev.net - great site for general game development stuff and
they have a Help Wanted section.

-
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] native heap size and ddms

2011-01-17 Thread blackbelt
Hello there, 
I manage to active the native heap tab in ddms, but columns were not 
updated. So  I set libc.debug.malloc to 1 and try to restart the emulator, 
but the reboot failded.
Any suggestion in oreder to fix?

thanks in advance. 
emanuele

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

2011-01-17 Thread pedr0
See here!

http://stackoverflow.com/questions/4715078/listview-issues


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: native heap size and ddms

2011-01-17 Thread pedr0
How did you set up the DDMS by DDMS?

I tried but I have had a lot of issues!Could you explaine me the right
procedure for do that?


Thanks a lot.

pedr0.

On 17 Gen, 17:16, blackbelt emanuel...@gmail.com wrote:
 Hello there,
 I manage to active the native heap tab in ddms, but columns were not
 updated. So  I set libc.debug.malloc to 1 and try to restart the emulator,
 but the reboot failded.
 Any suggestion in oreder to fix?

 thanks in advance.
 emanuele

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

2011-01-17 Thread blackbelt
I surely have the same issue too. Emulator does not restart.. any idea?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there a way to force the application not keep running after close it?

2011-01-17 Thread Sergio Luceno
true, sorry i was using clearTaskOnLaunch.

I tried to set this to true in the main activity... ando also in all
activities.

But it still not working.

here is how i define my main activity.

activity android:name=.Init
  android:label=@string/app_name
  clearTaskOnLaunch=true
  android:theme=@android:style/Theme.NoTitleBar
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity



On 17 ene, 16:49, Kostya Vasilyev kmans...@gmail.com wrote:
 It only needs to be set on your main activity, the one you want the user
 to come back to.

 And it's not finishTaskOnLaunch, it's clearTaskOnLaunch.

 -- Kostya

 2011/1/17 Sergio Luceno slucen...@gmail.com







  Hi!

  I tried to set up the setting finishOnTaskLaunch to true at all my
  activities... but when I click home and then open my app again, it
  didn't start at the main activity, it start at the same activity that
  was running when i clicked the home button...

  On 17 ene, 12:23, Kostya Vasilyev kmans...@gmail.com wrote:
   Sergio,

   To stop the background task - stop the background task.

   It's your own code, so it's under your control. The framework tells you
  when
   things happen via activity state callbacks (onPause / onResume), you just
   need to do the right thing with them.

   For your second issue:

  http://developer.android.com/guide/topics/manifest/activity-element.html

   set clearTaskOnLaunch to true.

   -- Kostya

   2011/1/17 Sergio Luceno slucen...@gmail.com

I wanna do that, because I have a task running on background. And i
wanna stop it when the application is closed. This task is doing http
calls every X minutes to sync the application data over internet.

Also, android OS keep the state of the application and open it at the
last activity where the user was on.

I would like to open the application always by the main activity. also
this main activity is doing a login call, which receive the session id
to make more http calls. I have a risk to loose the session id, while
the user is not using the app and it stills in memory for a long time.

On 17 ene, 11:55, Kumar Bibek coomar@gmail.com wrote:
 Why would you try to do that? The OS would get rid of it whenever it
feels
 necessary. ie, whenever, the device runs low on memory.

 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

 On Mon, Jan 17, 2011 at 4:22 PM, Sergio Luceno slucen...@gmail.com
wrote:
  Hi all,

  Is there a way to force the application not keep running after
  close
  it?

  When the user closes de applications, it always is running memory.

  Is it possible to define some at the manifest to force the app to
  be
  removed from the memory?

  I was trying to find out some parameter at the manifest... but I
  didn't find nothing

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

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

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

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


[android-developers] build error

2011-01-17 Thread peeyush varshney
dear All,

i am getting below error while building gingerbread code.
please help me.

build/core/base_rules.mk:74: *** Module name: native-audio-jni
build/core/base_rules.mk:75: *** Makefile location:
Downloads/android-ndk-r5/samples/native-audio/jni
build/core/base_rules.mk:76: *
build/core/base_rules.mk:77: * Each module must use a LOCAL_MODULE_TAGS in
its
build/core/base_rules.mk:78: * Android.mk. Possible tags declared by a
module:
build/core/base_rules.mk:79: *
build/core/base_rules.mk:80: * optional, debug, eng, tests, samples
build/core/base_rules.mk:81: *
build/core/base_rules.mk:82: * If the module is expected to be in all builds
build/core/base_rules.mk:83: * of a product, then it should use the
build/core/base_rules.mk:84: * optional tag:
build/core/base_rules.mk:85: *
build/core/base_rules.mk:86: *Add LOCAL_MODULE_TAGS := optional in the
build/core/base_rules.mk:87: *Android.mk for the affected module, and
add
build/core/base_rules.mk:88: *the LOCAL_MODULE value for that component
build/core/base_rules.mk:89: *into the PRODUCT_PACKAGES section of
product
build/core/base_rules.mk:90: *makefile(s) where it's necessary, if
build/core/base_rules.mk:91: *appropriate.
build/core/base_rules.mk:92: *
build/core/base_rules.mk:93: * If the component should be in EVERY build of
ALL
build/core/base_rules.mk:94: * products, then add its LOCAL_MODULE value to
the
build/core/base_rules.mk:95: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:96: * build/target/product/core.mk
build/core/base_rules.mk:97: *
build/core/base_rules.mk:98: *** user tag detected on new module - user tags
are only supported on legacy modules.  Stop.


-- 
Thank  Regards
Peeyush Varshney

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

2011-01-17 Thread pedr0

How did you set up the native heap tan  in DDMS?
I tried but I have had a lot of issues!Could you explaine me the
right
procedure for do that?
Thanks a lot.
pedr0.

On 17 Gen, 17:21, pedr0 pulsarpie...@gmail.com wrote:
 How did you set up the DDMS by DDMS?

 I tried but I have had a lot of issues!Could you explaine me the right
 procedure for do that?

 Thanks a lot.

 pedr0.

 On 17 Gen, 17:16, blackbelt emanuel...@gmail.com wrote:







  Hello there,
  I manage to active the native heap tab in ddms, but columns were not
  updated. So  I set libc.debug.malloc to 1 and try to restart the emulator,
  but the reboot failded.
  Any suggestion in oreder to fix?

  thanks in advance.
  emanuele

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

2011-01-17 Thread Ido Ran
Hi,
I would like to know if it is possible to upgrade a device that comes with 
Android 1.6 to Android 2.2 or 2.3.
The device is on of the low price Android 
tablethttp://www.dealextreme.com/details.dx/sku.42070 in 
the price range of 100-170 USD.

Thank you,
Ido

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

2011-01-17 Thread blackbelt
just open .ddms.cnf file and append at the end native=true

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

[android-developers] WebApplication without browser chrome

2011-01-17 Thread Ido Ran
Hi,
I want to run a web application on Android based tablet and have it 
full-screen without the browser chrome.
Is it possible to do so out-of-the-box or do I have to write my own Android 
app for that?

Also, inside that web-app I show YouTube video, will Android browser (chrome 
I guess) will show it?

Thank you,
Ido.

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

2011-01-17 Thread blackbelt
sorry I meant ddms.cfg

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

2011-01-17 Thread TreKing
On Mon, Jan 17, 2011 at 10:29 AM, Ido Ran ido@gmail.com wrote:

 I want to run a web application on Android based tablet and have it
 full-screen without the browser chrome.

Is it possible to do so out-of-the-box or do I have to write my own Android
 app for that?


You will have to write your own app for that. I'm not sure how you expect to
run a web application without a browser out of the box.


 Also, inside that web-app I show YouTube video, will Android browser
 (chrome I guess) will show it?


More than likely, the user will get the option of how they want to view the
video - either in the browser or through a dedicated YouTube app.

-
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: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread DanH
Payload's less, too.

On Jan 17, 3:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
 2011/1/17 ko5tik kpriblo...@yahoo.com



  INS also requires gyroscopes.  But quality of those sensors lies far
  below ones utilised
  in  ICBMs in 60s

 Good thing their weight, size, and power consumption are also far below the
 ICMB ones :)

 Kumar Bibek coomar@gmail.com

  Ah, I forgot, the phones don't yet have a light sensor. Too bad..

 Most phones have cameras, but not all phones have flashes :)



  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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: Anyone with GL experience willing to take a contract/bounty?

2011-01-17 Thread Brill Pappin
Thanks, I'll give that a try.

I'm not surprised the GL knowledge pool  is small, its a whole different 
beast... which is exactly why we want to framework work done... it will let us 
accelerate our experimentation and maybe actually get something to market in 
the black rather than in the red :)

- Brill Pappin

On 2011-01-17, at 11:01 AM, TreKing wrote:

 On Mon, Jan 17, 2011 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:
 Really? Nobody is interested in this at all?
 
 Not surprised. People here probably have their own projects going on I get 
 the impression that the knowledge pool for GL on Android is very small.
 
 Maybe try gamedev.net - great site for general game development stuff and 
 they have a Help Wanted section.
 
 -
 TreKing - Chicago transit tracking app for Android-powered devices
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Window token is always null

2011-01-17 Thread APF
I find that View.getWindowToken() always returns null, even when
invoked from the main Activity during onCreate.  For example:

TextView tv = new TextView(this);
tv.setText(Hello, Android);
setContentView(tv);
tv.getWindowToken(); // will equal null

Manually adding it to the window manager (addView) doesn't help
either.

When does a View have a window token?  How do I get a valid window
token?

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


[android-developers] Problem with large number of markers on google map

2011-01-17 Thread bobetko
I am working on an Android app that already exists on iPhone.

In the app, there is a Map activity that has (I counted) around 800
markers in four groups marked by drawable in four different colors.
Each group can be turned on or off. Information about markers I have
inside List. I create a mapOverlay for each group, then I attach that
overlay to the map. I strongly believe that coding part I did
properly. But I will attach my code anyway...

The thing is, my Nexus One can't handle map with all those markers. It
takes around 15 seconds just to draw 500 markers. Then when all drawn,
map is not quite smooth. It is sort of hard to zoom and navigate
around. It can be done, but experience is bad and I would like to see
if something can be done there. I know if I avoid String  Double
conversion, I could save some time, but I doubt that would be
significant.

iPhone seems doesn't have problems showing all these markers. It takes
roughly about 1-2 seconds to show all of them and zooming and panning
is not that bad. Slow down is noticeable but still acceptable. I
personally think it is no good to draw all those markers, but app is
designed by somebody else and I am not supposed to make any drastic
changes.

I am not sure what to do here. It seems I will have to come up with
different functionality, maybe use GPS location, if known, and draw
only markers within some radius, or, if location not known, use center
of the screen(map) and draw markers around that. I will have to have
reasonable explanation for my bosses in case I make these changes.

I appreciate if anybody has any idas.


And the code:


ListOverlay mapOverlays = mapView.getOverlays();
Drawable drawable =
this.getResources().getDrawable(R.drawable.pin_blue);
drawable = this.getResources().getDrawable(R.drawable.pin_blue);
ArrList = appState.GetSleepArrList();
ItemizedOverlay itemizedoverlay = new ItemizedOverlay(drawable,
this);
...
...
   for (int m = 0; m  ArrList.size(); m++) {
tName = ArrList.get(m).get(name).toString();
tId = ArrList.get(m).get(id).toString();
tLat = ArrList.get(m).get(lat).toString();;
tLng = ArrList.get(m).get(lng).toString();;
try {
lat = Double.parseDouble(tLat);
lng = Double.parseDouble(tLng);
p1 = new GeoPoint(
(int) (lat * 1E6),
(int) (lng * 1E6));
OverlayItem overlayitem = new OverlayItem(p1, 
tName, tId);
itemizedoverlay.addOverlay(overlayitem);
} catch (NumberFormatException e) {
Log.d(TAG, NumberFormatException + e);
}
}
mapOverlays.add(itemizedoverlay);
mapView.postInvalidate();




public class ItemizedOverlay extends ItemizedOverlayOverlayItem
{
private ArrayListOverlayItem mOverlays = new
ArrayListOverlayItem();
private Context mContext;
public HelloItemizedOverlay(Drawable defaultMarker, Context 
context)
{
super(boundCenterBottom(defaultMarker));
mContext = context;
}

public void addOverlay(OverlayItem overlay)
{
mOverlays.add(overlay);
populate();
}
@Override
protected OverlayItem createItem(int i)
{
return mOverlays.get(i);
}
@Override
public int size()
{
return mOverlays.size();
}
@Override
protected boolean onTap(int index)
{
final OverlayItem item = mOverlays.get(index);
... EACH MARKER WILL HAVE ONCLICK EVENT THAT
WILL PRODUCE CLICABLE
... BALOON WITH MARKER'S NAME.
return true;
}
}

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


[android-developers] Re: native heap size and ddms

2011-01-17 Thread pedr0
Where is that file?



On 17 Gen, 17:31, blackbelt emanuel...@gmail.com wrote:
 sorry I meant ddms.cfg

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

2011-01-17 Thread Ido Ran
I'm not saying without browser - I'm asking if it is possible to run web-app 
in full screen so the user will see only the application, not the chrome of 
the browser with back, forward, reload and other buttons.

About the video let me ask it in different way: when I open youtube in 
Android browser it will show the video or do I need special app?

Thank you,
Ido

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

2011-01-17 Thread Kostya Vasilyev
If you're talking about Android phones, yes.

But those melting iPhones can be pretty lethal :)

2011/1/17 DanH danhi...@ieee.org

 Payload's less, too.

 On Jan 17, 3:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
  2011/1/17 ko5tik kpriblo...@yahoo.com
 
 
 
   INS also requires gyroscopes.  But quality of those sensors lies far
   below ones utilised
   in  ICBMs in 60s
 
  Good thing their weight, size, and power consumption are also far below
 the
  ICMB ones :)
 
  Kumar Bibek coomar@gmail.com
 
   Ah, I forgot, the phones don't yet have a light sensor. Too bad..
 
  Most phones have cameras, but not all phones have flashes :)
 
 
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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

  1   2   3   >