[android-developers] Re: How do I write Android.mk for an application using com.google.android.maps.jar

2010-09-08 Thread Binggrae
Thank you. No one has answered.

On Aug 27, 9:56 am, Binggrae bangg...@gmail.com wrote:
 Hi

 I am developing an application using com.google.android.maps.jar
 It is OK to develop it with Eclipse SDK.
 but an build-error happens when building system.img with GMS licence
 (com.google.android.maps.jar is already installed at out/target/common/
 obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/
 com.google.android.maps.jar)

 make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/
 com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/
 target/common/obj/APPS/LifeStory_intermediates/classes-full-
 debug.jar'.  Stop.

 Here is my Android.mk

 #===
 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)

 LOCAL_MODULE_TAGS := user

 # List of static libraries to include in the package
 LOCAL_STATIC_JAVA_LIBRARIES := com.google.android.maps.jar

 LOCAL_SRC_FILES := $(call all-java-files-under, src)

 LOCAL_PACKAGE_NAME := Test

 include $(BUILD_PACKAGE)
 #===

 What is wrong?
 please help me..

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


[android-developers] Re: Market alternatives

2010-09-08 Thread mort
On Sep 8, 12:01 am, Kevin Duffey andjar...@gmail.com wrote:
 I have to ask.. in the last year since I started learning Android (haven't
 had much time the past several months to do much other than read some of
 these emails), how many more markets has Google got Android into that offer
 apps to be purchased in, and more so, pay the developers in other countries?

http://market.android.com/support/bin/answer.py?hl=enanswer=138294
lists the countries you can get money as developer: Austria, France,
Germany, Italy, Japan, Netherlands, Spain, United Kingdom, and United
States.
http://market.android.com/support/bin/answer.py?hl=enanswer=143779
lists the countries where you can pay as customer. It's the same list.
However, I'm not sure if those replies are really up to date, for
example http://en.wikipedia.org/wiki/Android_Market lists more
countries where purchasing apps is possible: Australia, New Zealand,
Canada, South Korea, and Switzerland.
According to that Wiki page, U.S. and U.K. were available right from
the start, Germany, Austria, Netherlands, France, and Spain did follow
very soon. So Google did manage to add Japan during the last year.

 I am still baffled why Canada can't buy apps or developers there can't put
 their apps up for money...

According to that Wiki page, they can buy apps. But maybe it's
available only for certain providers?

 So is Google moving beyond slow into these markets.. if so.. why? It seems
 crazy to me that with so much potential, and Apple in way more markets for
 both app sales and developers to write/earn money in, that google would take
 it so slow.

I'm really surprised to see how little efford Google seems to spend to
the Market, if you think about the money Apple collects with its
AppStore. If Google plans to do it similar with its planned music
store, they'd better stop the project right now...
I mean, it's not just the low availability, there are so many weak
spots that are nagging since the start and shouldn't be that hard to
fix/add. Would it really hurt Google's gigantic server system to allow
a longer description? Why can you mark comments as spam from a FroYo
phone, but not in the developer console? (And it took ages to see them
there in the first place...) Why is there no developers respond to
comments? Why can't a company that's known for its search engine offer
search results with some tolerance, keywords, filter options (no more
live wallpapers from that guy that uploaded 100 similar ones, thank
you; only 4-star apps since last week; ...), and so on? There are tons
of long threads about stuff like that already...
One really could get the impression Google wants people to use
alternatives. Is it part of their don't be evil (= monopolistic)
motto? ;)

 I won't pretend to know the issues behind making it work.. but
 if Apple could do it already, I would think google would have very little
 trouble as well.

Especially if you compare the small steps in Market to the giant leaps
in Android.
I can understand international proceedings can take a while (but
almost a year?), but at least some of the technical troubles could've
been fixed by now. Some alternative markets seem to do it better in
2-3 months total development time of a much smaller company...

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

2010-09-08 Thread Schoel
The idea I've gotten so far is to extend the PreferenceScreen class
and make a PresenceScreen which fills itself with whatever has been
saved to it when it loads. This idea still feels a bit to vague though
and I would appriciate any help! If anyone knows where to get the
source code for the WiFi selector that would also be most helpful.

Thanks,
/Schoel

On 7 Sep, 17:54, Schoel samuelsson.j...@gmail.com wrote:
 Hello,

 I'd like to make a preference screen with a variable number of
 preferences, very much like the WiFi selector. A number of profiles
 should be clickable and possible to edit and in the bottom there
 should be an add profile button. Has anyone got any tips on how to
 accomplish this?
 All I've found is 
 this:http://groups.google.com/group/android-developers/browse_thread/threa...

 and that reply unfortunately doesn't help me very much.

 /Schoel

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

2010-09-08 Thread Explore Android
Thanks for the reply. I had followed the link trail but no useful
information.
All the posts talk about this kind of implementation is not worth on
phone devices, given the real estate they have.
What about tablet devices that are coming out? They have required real
estate to support this kind of features in the application.
Is there a nice technique of implementing this?

thanks

On Sep 8, 1:05 pm, TreKing treking...@gmail.com wrote:
 On Tue, Sep 7, 2010 at 9:33 PM, Explore Android
 stetest...@googlemail.comwrote:

  I want to build a list that show the directory tree like list similar to
  folders view on the left pane in 'Windows Explorer'.

 Again with this ...

 http://groups.google.com/group/android-developers/browse_thread/threa...

 Follow the link trail ...

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

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


[android-developers] android.os.Parcel.readException(Parcel.java:1224)

2010-09-08 Thread Raghavendra Singh
Hi
I am having remote service and a client in my app and there are
two aidl(Request.aidl  Response.aidl) to client - service
communication.
In one of class i am calling a service mathod(Request.aidl ) through
binder and service is giving callback for client
request( Response.aidl) and in callback i am again calling the another
service mathod through binder that is causing following error.

01-12 17:31:59.412: ERROR/AndroidRuntime(717):
java.lang.NullPointerException
01-12 17:31:59.412: ERROR/AndroidRuntime(717): at
android.os.Parcel.readException(Parcel.java:1224)
01-12 17:31:59.412: ERROR/AndroidRuntime(717): at
android.os.Parcel.readException(Parcel.java:1206)
01-12 17:31:59.412: ERROR/AndroidRuntime(717): at
com.android.service.Request$Stub$Proxy.request(Request.java:490)

Thanks
Raghu

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

2010-09-08 Thread CaryWang
My application update some jar files,I want runtime load  jar files or any
idea?


-- 
Cary

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

Re: [android-developers] Re: Market alternatives

2010-09-08 Thread Shane Isbell
Google is doing an HTML5 web store, so there isn't much point putting tons
of effort into their Android Market place client.  An HTML5 web store will
have global reach and combine that with paypal support and the alternative
markets that are doing nothing more than selling applications (pretty much
all of them) will get flushed away overnight.

Apple is on shaky ground on it's international sales, but they have some
provisions in their dev agreement that allows them to attempt to recover
from the developer if they get hit by the IRS. Places like Handango are on
the other extreme. They collect the royalties from devs and remit them to
the respective countries, even when they may not need to. One alternative
Android marketplace manages it because they don't make copies of the
applications and thus aren't subject to royalty payments (if you've ever
wondered about their token system with out of stock messages).

In my opinion, Google is on pretty shaky grounds in the US, with the
position that they dev is 100% responsible for managing taxes. It's not that
this is an unreasonable position but with Android becoming so big, states in
the US may see Google and Android as something they can take a bite out of.

Given that Google seems not to like to do support, I don't think they'll go
the Handango route. Likely, they will move toward the Apple model, which
will be less risky for them when they start allowing more international devs
to sell their apps.

On Tue, Sep 7, 2010 at 11:20 PM, mort m...@sto-helit.de wrote:

 On Sep 8, 12:01 am, Kevin Duffey andjar...@gmail.com wrote:
  I have to ask.. in the last year since I started learning Android
 (haven't
  had much time the past several months to do much other than read some of
  these emails), how many more markets has Google got Android into that
 offer
  apps to be purchased in, and more so, pay the developers in other
 countries?

 http://market.android.com/support/bin/answer.py?hl=enanswer=138294
 lists the countries you can get money as developer: Austria, France,
 Germany, Italy, Japan, Netherlands, Spain, United Kingdom, and United
 States.
 http://market.android.com/support/bin/answer.py?hl=enanswer=143779
 lists the countries where you can pay as customer. It's the same list.
 However, I'm not sure if those replies are really up to date, for
 example http://en.wikipedia.org/wiki/Android_Market lists more
 countries where purchasing apps is possible: Australia, New Zealand,
 Canada, South Korea, and Switzerland.
 According to that Wiki page, U.S. and U.K. were available right from
 the start, Germany, Austria, Netherlands, France, and Spain did follow
 very soon. So Google did manage to add Japan during the last year.

  I am still baffled why Canada can't buy apps or developers there can't
 put
  their apps up for money...

 According to that Wiki page, they can buy apps. But maybe it's
 available only for certain providers?

  So is Google moving beyond slow into these markets.. if so.. why? It
 seems
  crazy to me that with so much potential, and Apple in way more markets
 for
  both app sales and developers to write/earn money in, that google would
 take
  it so slow.

 I'm really surprised to see how little efford Google seems to spend to
 the Market, if you think about the money Apple collects with its
 AppStore. If Google plans to do it similar with its planned music
 store, they'd better stop the project right now...
 I mean, it's not just the low availability, there are so many weak
 spots that are nagging since the start and shouldn't be that hard to
 fix/add. Would it really hurt Google's gigantic server system to allow
 a longer description? Why can you mark comments as spam from a FroYo
 phone, but not in the developer console? (And it took ages to see them
 there in the first place...) Why is there no developers respond to
 comments? Why can't a company that's known for its search engine offer
 search results with some tolerance, keywords, filter options (no more
 live wallpapers from that guy that uploaded 100 similar ones, thank
 you; only 4-star apps since last week; ...), and so on? There are tons
 of long threads about stuff like that already...
 One really could get the impression Google wants people to use
 alternatives. Is it part of their don't be evil (= monopolistic)
 motto? ;)

  I won't pretend to know the issues behind making it work.. but
  if Apple could do it already, I would think google would have very little
  trouble as well.

 Especially if you compare the small steps in Market to the giant leaps
 in Android.
 I can understand international proceedings can take a while (but
 almost a year?), but at least some of the technical troubles could've
 been fixed by now. Some alternative markets seem to do it better in
 2-3 months total development time of a much smaller company...

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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-08 Thread jamesc
Hi

Sorry, I think I misunderstand you last post.  Which of the two
methods is the 'old' one (with the 'random order' problem) and which
is the 'new' one (where the problem has gone away)?

I would assume that the new/correct version is this one?:

public View getView(int position, View convertView, ViewGroup
parent) {
ViewHolder viewHolder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_item,
null);
viewHolder = new ViewHolder();
viewHolder.myView = (MyView)
convertView.findViewById(R.id.myview);
convertView.setTag(viewHolder);
} else {
viewHolder = (ViewHolder) convertView.getTag();
}
viewHolder.myView.setText(objects[position]); // -- THIS IS
THE NEW LINE

return convertView;
}

On Sep 8, 4:18 am, rious.delie rious.de...@gmail.com wrote:
 Okay, great, you are right, james..

 there is something wrong on the getView implementation, still not sure
 why, but my problem is solved by, something like this:

     @Override
     publicViewgetView(int position,ViewconvertView, ViewGroup
 parent) {
         ViewHolder viewHolder;
         if (convertView == null) {
                 convertView = mInflater.inflate(R.layout.list_item, null);
                 viewHolder = new ViewHolder();
                 viewHolder.myView = (MyView)
 convertView.findViewById(R.id.myview);
                 convertView.setTag(viewHolder);
         } else {
                 viewHolder = (ViewHolder) convertView.getTag();
         }

         viewHolder.myView.setText(objects[position]);

         return convertView;
     }

 changed to:

     @Override
     publicViewgetView(int position,ViewconvertView, ViewGroup
 parent) {
         ViewHolder viewHolder;
         if (convertView == null) {
                 convertView = mInflater.inflate(R.layout.list_item, null);
                 viewHolder = new ViewHolder();
                 viewHolder.myView = (MyView)
 convertView.findViewById(R.id.myview);
                 viewHolder.myView.setText(objects[position]);
                 convertView.setTag(viewHolder);
         } else {
                 viewHolder = (ViewHolder) convertView.getTag();
         }

         return convertView;
     }

 On Sep 7, 2:03 pm, jamesc jame...@gmail.com wrote:



  Hi

  1) I'm still not sure why you're doing the measuring yourself (as I'd
  use a layout xml file to declare thelistitem'sView, and then
  inflate it/set the values in the adapter's getView() call.
  2) I'm guessing that since you are using an adapter and theview
  holder, that there's an issue with how your getView() method is
  implemented (or perhaps another implementation of an adapter method).
  That is, as you know theviewholder allows object reuse; that doesn't
  mean to say that the object that you're re-using has the correct
  values in it.  It's only there to avoid the expensive inflation/
  construction; after that point you're expected to set the values in
  that object (for thelistitem) as per the data in the array/list/
  structure that is backing the adapter.

  On Sep 7, 3:55 am, rious.delie rious.de...@gmail.com wrote:

   thank you,

   1) yes, it is anitemon alistview, i populate some numbers of it on
   alistview.
   2) i need to set the height of theviewon runtime, because the height
   of theviewis the variable of width (height = f(width)),
   it is just as simple as the TextView, which can determine how many
   lines needed to show the text based on a function of display width,
   each font width, and the text to be displayed.
   Yes, i have implemented an adapter (an extends of ArrayAdapter) and
   have used ViewHolder (static class ViewHolder()),

   my point is, why bitmap1changesorderrandomlywhilebitmap2 stays
   where it should be,

   something like this:

   alistview=

   view1 = bitmap1 = hai i am bitmap1 in view1
               bitmap2 = hai i am bitmap2 in view1

   view2 = bitmap1 = hai i am bitmap1 in view2
               bitmap2 = hai i am bitmap2 in view2

   view3 = bitmap1 = hai i am bitmap1 in view3
               bitmap2 = hai i am bitmap2 in view3

   view4 = bitmap1 = hai i am bitmap1 in view4
               bitmap2 = hai i am bitmap2 in view4

   view5 = bitmap1 = hai i am bitmap1 in view5
               bitmap2 = hai i am bitmap2 in view5

   i scroll fastly, then theorderof bitmap1changes:

   view1 = bitmap1 = hai i am bitmap1 in view4
               bitmap2 = hai i am bitmap2 in view1

   view2 = bitmap1 = hai i am bitmap1 in view5
               bitmap2 = hai i am bitmap2 in view2

   view3 = bitmap1 = hai i am bitmap1 in view2
               bitmap2 = hai i am bitmap2 in view3

   view4 = bitmap1 = hai i am bitmap1 in view1
               bitmap2 = hai i am bitmap2 in view4

   view5 = bitmap1 = hai i am bitmap1 in view3
               bitmap2 = hai i am bitmap2 in view5

   moreover, theorderrandomchangesappearwhilei scroll 

[android-developers] REST web services and JSON Response object support in Android

2010-09-08 Thread cool.manish
Hi All,

In my application, I will call webservices which are written using
REST and returning JSON object rather than XML.
My Question is it that Is Android support them? Sending an request to
REST web services and rendering its response is same as HTTP request
or something different.

I haven't much idea about REST and JSON and haven't much time to find
out it by myself. Thats why i am posting this question. If someone has
worked earlier please help me.

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


Re: [android-developers] LED turn off

2010-09-08 Thread Anand Android
Hi Mark,
I'm using eclair 2.1. This option is not avaible in that.

-Anand


On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Fri, Sep 3, 2010 at 9:05 AM, Anand Android android.an...@gmail.com
 wrote:
  In charge only mode the device stays awake all the time, it doesn't turn
 off
  the screen during chargeOnly mode. I want it turn off the screen after
  certain amount of time . how do i do that ?

 Uncheck Settings  Applications  Development  Stay awake

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: How to implement directory tree like list?

2010-09-08 Thread TreKing
On Wed, Sep 8, 2010 at 1:37 AM, Explore Android
stetest...@googlemail.comwrote:

 What about tablet devices that are coming out? They have required real
 estate to support this kind of features in the application.


This is true, if that's what you're targeting.


 Is there a nice technique of implementing this?


Nice is debatable. There's nothing built in (so far), AFAIK. Maybe
something will come standard once these devices are more mainstream.
Meanwhile, the same suggestion as in those other threads apply - if this is
a necessity for you, you will probably have to roll your own custom Adapter
and View, probably using ExpandableListView as a starting point. I imagine
this will probably be fairly involved.

Good luck.

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

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

Re: [android-developers] I want application runtime load new jar?

2010-09-08 Thread TreKing
On Wed, Sep 8, 2010 at 1:43 AM, CaryWang wangjf...@gmail.com wrote:

 My application update some jar files,I want runtime load  jar files or any
 idea?


Your question does not make very much sense. Care to elaborate?

-
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] Killing all the activities that was started by my application.

2010-09-08 Thread Ajmer Singh
Hi

I need to have a Exit menu items in my application,My question here is how
can i just exit the app,Please throw some light on this is that possible in
android if yes then how.

Please help,Thanks in advance

-- 
Thanks and Regards
Ajmer Singh

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

Re: [android-developers] Variable number of settings

2010-09-08 Thread TreKing
On Tue, Sep 7, 2010 at 10:54 AM, Schoel samuelsson.j...@gmail.com wrote:

 All I've found is this:

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

 and that reply unfortunately doesn't help me very much.


Why not? It's an excellent reply! =P

On Wed, Sep 8, 2010 at 1:35 AM, Schoel samuelsson.j...@gmail.com wrote:

 The idea I've gotten so far is to extend the PreferenceScreen class and
 make a PresenceScreen which fills itself with whatever has been saved to it
 when it loads.


I don't think a custom PreferenceScreen is necessary. You should be able to
define the layout for your Profile screen and create a PreferenceScreen
from it as necessary. Then, for each saved profile, in your
PreferenceActivity you inflate the Profile layout and add it to your
Preference heiarchy, filling it with it's data as necessary.

*NOTE* - this is all theoretical and I've not actually done any of this. =P

-
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] Dynamically load jar files in android runtime?

2010-09-08 Thread CaryWang
I have a jar file in my app local data /data/data/application
packageName/test.jar. I want to load the class com.test.abc which
resides  in my jar. I am using java.net.URLClassLoader to load the class. On
an non android environment the code works, on android it gives me this
exception can't load this type of class file.
Do you know why is that ?

-- 
Cary

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

[android-developers] How to specify avd in more than one emulator

2010-09-08 Thread Sohan badaya
Hi,

when more than one emulator is running i can't use adb command. If I
have only one emulator and type  adb logcat it works fine
but if more than one is running it not runs.
 so I want to know what is the command for the same.

Thanks,
Sohan

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


[android-developers] How to specify avd in more than one emulator

2010-09-08 Thread Sohan badaya
Hi,

when more than one emulator is running i can't use adb command. If I
have only one emulator and type  adb logcat it works fine
but if more than one is running it not runs.
 so I want to know what is the command for the same.

Thanks,
Sohan

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

2010-09-08 Thread Indicator Veritatis
Eclipse has so many moving parts, I don't think you should assume he
knows by 'MAT' you mean the Open Source Project, Eclipse Memory
Analysis Tool.

On Sep 7, 8:11 pm, Romain Guy romain...@android.com wrote:
 It's not hard to debug. Dump the heap (with DDMS) and use a tool like
 MAT to see what's going on.



 On Tue, Sep 7, 2010 at 7:05 PM, Indicator Veritatis mej1...@yahoo.com wrote:
  It is one of the ironies of Java that though it is harder to write a
  memory leak than in C++, once you do manage it, it is harder to debug
  than in C++;)

  IBM developerworks has some good articles on it.

  So, for example, though the article is old, and mentions rather dated
  GC technology, I do believe that the hints in
 http://www.ibm.com/developerworks/java/library/j-leaks/are still
  pretty up to date for finding memory leaks.

  Unfortunately, he talks about using Jprobe, which I don't think you
  can run on an Android phone. But
 http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-a...
  suggests using the hprof-conv tool and describes how to do that.

  On Sep 7, 1:26 pm, Jason Van Anden robotiss...@gmail.com wrote:
  I have seen the same issue - and I suspect a memory leak.  What would be
  best way to track something like this down?

  jOn Tue, Sep 7, 2010 at 3:08 PM, Romain Guy romain...@android.com wrote:
   It could also be a memory leak in your application.

   On Tue, Sep 7, 2010 at 12:06 PM, blahblah...@gmail.com
   blahblah...@gmail.com wrote:
It's happening on the emulator when running 2.0 or 2.2. No
compatibility mode AFAIK. I just did some testing and we are still
getting OutOfMemoryError after changing screen orientation 3 times -
it always gives the error the third time even though I added gc();
runFinalization(); gc() just before the createBitmap. I'm thinking it
must be either a memory leak in Android or heap fragmentation. So far
I don't have any workaround.

On Sep 3, 2:40 pm, Matt Kanninen mathias...@gmail.com wrote:
I found OutOfMemory Bitmap errors happened more frequently when I had
a compatibility mode set.  Although that was just on the Moto Droid,
on Android 2.1, back in December.

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

   --
   Romain Guy
   Android framework engineer
   romain...@android.com

   Note: please don't send private questions to me, as I don't have time
   to provide private support.  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.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

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  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] doc for ril and sms architecture

2010-09-08 Thread Sohan badaya
Hi
Is there any documentation available on net for
1.) RIL layer in android.
2.) Sms flow architecture through telephony to radio modem in android.

Thanks and Regards,
sohan badaya

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


[android-developers] Re: How do I write Android.mk for an application using com.google.android.maps.jar

2010-09-08 Thread FrankG
What is wrong?

IMHO first of all the group, as this is more related to android-
platform.

The strange thing for me is, why Google -Maps is not part of your
platform
as vendor extension under app\mydroid\vendor\google\frameworks ?

I have no idea whether your approach can work.

I think you need to create your own google maps extension dir and put
their
a Android.mk which will force to install the maps jar under /system/
framework

Somethink like this ..

LOCAL_MODULE := com.google.android.maps.jar

LOCAL_MODULE_CLASS := JAVA_LIBRARIES

LOCAL_MODULE_PATH := $(TARGET_OUT_JAVA_LIBRARIES)

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

Take this as a starting point only as this is not complete.

Good luck ! Frank




On 27 Aug., 02:56, Binggrae bangg...@gmail.com wrote:
 Hi

 I am developing an application using com.google.android.maps.jar
 It is OK to develop it with Eclipse SDK.
 but an build-error happens when building system.img with GMS licence
 (com.google.android.maps.jar is already installed at out/target/common/
 obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/
 com.google.android.maps.jar)

 make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/
 com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/
 target/common/obj/APPS/LifeStory_intermediates/classes-full-
 debug.jar'.  Stop.

 Here is my Android.mk

 #===
 LOCAL_PATH:= $(call my-dir)
 include $(CLEAR_VARS)

 LOCAL_MODULE_TAGS := user

 # List of static libraries to include in the package
 LOCAL_STATIC_JAVA_LIBRARIES := com.google.android.maps.jar

 LOCAL_SRC_FILES := $(call all-java-files-under, src)

 LOCAL_PACKAGE_NAME := Test

 include $(BUILD_PACKAGE)
 #===

 What is wrong?
 please help me..

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


[android-developers] ant build file for android

2010-09-08 Thread nikki
hi group

I need to write ant build file for my project.

Do anyone have an idea about how to write ant build file for android.


regards

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


Re: [android-developers] Re: List of Android Devices with specifications to use in Emulator

2010-09-08 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/8/10 07:49 , Marcus Wolschon wrote:

 Thanks.
 That should be quite useful.

There's a more efficient way to gather these data. For instance, look
at http://droidparade.noser.com/droidparade/droidparade.html


They're collecting the data from people willing to run their
diagnostic app. It's a very good approach since there's no manual copy
of data and thus no errors, and they're collecting a large number of
attributes for each model.
You have to click on a model to have the details and data aren't ready
to consume as in a spreadsheet, but it would not be difficult to write
a small HTML scraper to automatically extract the data.

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

iEYEARECAAYFAkyHQ98ACgkQeDweFqgUGxcGrQCfYUPgqlrLsusvwPB9mDP2FAII
trsAn3AfGHdR7brZ5/o7nRULVGDp5pqd
=vbdq
-END PGP SIGNATURE-

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


Re: [android-developers] REST web services and JSON Response object support in Android

2010-09-08 Thread Marc Lester Tan
I am using the library from http://www.json.org/java/index.html. Just
include the source in your app (or package it into a jar if you want) then
check Test.java for examples on how to use it.

Cheers,
Marc

Twitter: mharkus
http://www.appcellar.com

On Wed, Sep 8, 2010 at 3:31 PM, cool.manish mannishga...@gmail.com wrote:

 Hi All,

 In my application, I will call webservices which are written using
 REST and returning JSON object rather than XML.
 My Question is it that Is Android support them? Sending an request to
 REST web services and rendering its response is same as HTTP request
 or something different.

 I haven't much idea about REST and JSON and haven't much time to find
 out it by myself. Thats why i am posting this question. If someone has
 worked earlier please help me.

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

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

[android-developers] Re: How to specify avd in more than one emulator

2010-09-08 Thread skink


On Sep 8, 9:48 am, Sohan badaya sohan.bad...@gmail.com wrote:
 Hi,

 when more than one emulator is running i can't use adb command. If I
 have only one emulator and type  adb logcat it works fine
 but if more than one is running it not runs.
  so I want to know what is the command for the same.

 Thanks,
 Sohan

http://developer.android.com/guide/developing/tools/adb.html

pskink

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

2010-09-08 Thread Mystique
Hi,
I'm looking for ways to clear cache from the gallary.
Can I implement code in my Android app? How to do it? (not the manual
way).

Many thanks.

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


Re: [android-developers] Killing all the activities that was started by my application.

2010-09-08 Thread TreKing
On Wed, Sep 8, 2010 at 2:41 AM, Ajmer Singh ajmersing...@gmail.com wrote:

 I need to have a Exit menu items in my application,


Why do you think you need this?


 My question here is how can i just exit the app,


Have the user press the back button.


 Please throw some light on this is that possible in android if yes then
 how.


Normally, you should let the user and Android take care of closing / killing
your Activity.

-
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] canvas woe

2010-09-08 Thread dadada
hi all,

i tried the sample compass app in apidemo. When there's a new reading
in azimuth, i write the reading on canvas. However, the canvas is set
to rotate when new reading comes in, to simulate the rotation of the
compass arrow.

Is there an alternative to just rotate the bitmap rather than the
canvas. there don seems to have rotate method on bitmap or path.

any advices?

/bryan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: REST web services and JSON Response object support in Android

2010-09-08 Thread mani
Yes you can use the REST api's in android apps.

I have used the REST apis for google local search. You need to use...
HttpClient object.
For parsing using JSON. Check below how i have did it.

Example:
HttpClient client = new DefaultHttpClient();
String query = http://ajax.googleapis.com/ajax/services/search/local?
hl=env=1.0q=paris hotelkey=+KEY+start=;
query+=count;
try {
URL url = new URL(query);
URI uri = new URI(url.getProtocol(), url.getHost(), 
url.getPath(),
url.getQuery(), null);
HttpGet request = new HttpGet(uri);
HttpResponse response = client.execute(request);
result=Userrequest(response);
}catch (URISyntaxException e){

}
catch(Exception ex){
  //txtResult.setText(Failed!);
  }

public  String Userrequest(HttpResponse response){
try{
InputStream in = response.getEntity().getContent();
BufferedReader reader = new BufferedReader(new
InputStreamReader(in));
StringBuilder str = new StringBuilder();
String line = null;
while((line = reader.readLine()) != null){
str.append(line + \n);
}
in.close();
result = str.toString();
   updateData(result);
}catch(Exception ex){
result = Error;
}
return result;
}
public  void updateData(String result)
{
 try
{
 JSONObject json=new JSONObject(result);
 JSONArray ja;
 json = json.getJSONObject(responseData);
 ja = json.getJSONArray(results);

 int resultCount = ja.length();
 //DATA = new String[resultCount];
 //ADDR = new String[resultCount];
 for (int i = 0; i  resultCount; i++)
   {
   JSONObject resultObject = ja.getJSONObject(i);
 
title.add(resultObject.get(titleNoFormatting).toString());
   JSONArray addr;
   addr = resultObject.getJSONArray(addressLines);
   int count = addr.length();
   //ADDR[i]=;
   String addrr=;
   for(int j=0;jcount;j++)
   {
   addrr+=addr.getString(j);
   if(j==0)
  addrr+=',';
   }
   address.add(addrr);
   }
 setListAdapter(new EfficientAdapter(this));
 }
 catch(Exception e)
 {


 }
}

Thanks,
Mani

On Sep 8, 4:06 pm, Marc Lester Tan mail...@gmail.com wrote:
 I am using the library fromhttp://www.json.org/java/index.html. Just
 include the source in your app (or package it into a jar if you want) then
 check Test.java for examples on how to use it.

 Cheers,
 Marc

 Twitter: mharkushttp://www.appcellar.com



 On Wed, Sep 8, 2010 at 3:31 PM, cool.manish mannishga...@gmail.com wrote:
  Hi All,

  In my application, I will call webservices which are written using
  REST and returning JSON object rather than XML.
  My Question is it that Is Android support them? Sending an request to
  REST web services and rendering its response is same as HTTP request
  or something different.

  I haven't much idea about REST and JSON and haven't much time to find
  out it by myself. Thats why i am posting this question. If someone has
  worked earlier please help me.

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

2010-09-08 Thread Frank Weiss
Please show the part of the manifest that is used to launch A and B. Looks
like the problem may be there.

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

2010-09-08 Thread Zarah Dominguez
Hi Anand,

Are you sure? I am also using Eclair 2.1 and I have that option.

Or are you asking how to turn off the screen programmatically (which I
don't know how to do heheh).


Thanks,
Zarah.


On Sep 8, 3:34 pm, Anand Android android.an...@gmail.com wrote:
 Hi Mark,
 I'm using eclair 2.1. This option is not avaible in that.

 -Anand



 On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Sep 3, 2010 at 9:05 AM, Anand Android android.an...@gmail.com
  wrote:
   In charge only mode the device stays awake all the time, it doesn't turn
  off
   the screen during chargeOnly mode. I want it turn off the screen after
   certain amount of time . how do i do that ?

  Uncheck Settings  Applications  Development  Stay awake

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

  Android Training in London:http://skillsmatter.com/go/os-mobile-server

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] Porting launcher2 to SDK - facing compilations issues with android.renderscript.Allocation

2010-09-08 Thread mani
Hi all,

I wanted to modifyl the default Launcher2 app and tried to work
through the code flow by debugging in eclipse with android SDK.

When i brough the whole code from packages/apps/launcher2, i could see
certain imports are not recogonized in android SDK.

Is it the apis from renderscript are private ? Not exposed in android
SDK ?

What is the best solution to work Lancher2 and debug it to understand
more..?
Please share some suggestions...!!


Thanks,
Mani

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

2010-09-08 Thread sblantipodi
Hi,
as title.

What is the best way to internazionalize a software on android?

I want to release a single apk with different languages.
What is the smartest way to procede?

Thanks.

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


Re: [android-developers] Re: LED turn off

2010-09-08 Thread Anand Android
yes zarah, i want to do it programatically.


On Wed, Sep 8, 2010 at 2:13 PM, Zarah Dominguez
zarah.doming...@gmail.comwrote:

 Hi Anand,

 Are you sure? I am also using Eclair 2.1 and I have that option.

 Or are you asking how to turn off the screen programmatically (which I
 don't know how to do heheh).


 Thanks,
 Zarah.


 On Sep 8, 3:34 pm, Anand Android android.an...@gmail.com wrote:
  Hi Mark,
  I'm using eclair 2.1. This option is not avaible in that.
 
  -Anand
 
 
 
  On Wed, Sep 8, 2010 at 6:22 AM, Mark Murphy mmur...@commonsware.com
 wrote:
   On Fri, Sep 3, 2010 at 9:05 AM, Anand Android android.an...@gmail.com
 
   wrote:
In charge only mode the device stays awake all the time, it doesn't
 turn
   off
the screen during chargeOnly mode. I want it turn off the screen
 after
certain amount of time . how do i do that ?
 
   Uncheck Settings  Applications  Development  Stay awake
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://github.com/commonsguy
  http://commonsware.com/blog|http://twitter.com/commonsguyhttp://commonsware.com/blog%7Chttp://twitter.com/commonsguy
 
   Android Training in London:http://skillsmatter.com/go/os-mobile-server
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-08 Thread Kostya Vasilyev
 If this bitmap is used for drawing off-screen, then why are you 
recreating it every time the orientation changes?


Screen size stays the same no matter what the orientation. You might 
need to use various matrix scaling methods in Canvas so that your 
drawing code works in either orientation.


-- Kostya

08.09.2010 0:59, blahblah...@gmail.com пишет:

More info - when I use meminfo the native allocated kb increases
from 10MB to 15MB to 20MB after each screen orientation change, even
though I am explicitly calling recycle() on the large bitmaps in our
onDestroy (and I ran it in the debugger and verified that this code is
being called). Also, when I reduce the size of the bitmap to the
screen size (instead of twice the width and height of the screen) the
native allocated only increases about 2MB each time, so it takes
more screen orientation changes before the thing keels over (but it
eventually does). So it looks like the bitmap is getting leaked
somehow.

We have no static members, and one thread is created (which exits
after our onDestroy is called, which I have verified) and I've checked
all our inner classes to make sure there is nothing getting leaked. So
I'm pretty sure it's not our code leaking it (but I could be wrong).
And even if it was a leak in our code, the explicit recycle() should
have sorted it out.

On Sep 7, 1:08 pm, Romain Guyromain...@android.com  wrote:

It could also be a memory leak in your application.



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

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


[android-developers] Re: Gallery popup menu

2010-09-08 Thread viktor
I captured phone screen, look at left, you can see what I mean.
Share menu pressed and sub menu is appear.

http://xmages.net/storage/10/1/0/9/8/upload/c509163f.png

Nexus One Android 2.2, Standard Gallery application.

Any ideas how to do that menu

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

2010-09-08 Thread Kumar Bibek
AFAIK, All the phones dont have default Video Calling options. So,
there's no way to initiate a video call through code. If you are
talking about a particular device, look into their specs and check if
the protocol is supported or not.

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

On Sep 7, 11:29 pm, fandre andrefa...@vendingautomation.com wrote:
 It's possible to invoke by program a phone call via an intent :
 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(url));
 where the url contents the phone number.

 Assuming that we have the right phone, the right OS version, the right
 subscription.

 How to specify that we want to make a video Call on 3G-UMTS and not a
 vocal code ?

 Thanks for an help.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 invoke phone dialer in browser? or is it impossible ?

2010-09-08 Thread Kumar Bibek
There's a tel:// protocol for that. Lool at the documentations.
http://developer.android.com/guide/appendix/g-app-intents.html

For SMS, there are none.

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

On Sep 7, 6:35 pm, mm...@hustunique.com mm...@hustunique.com
wrote:
 I post it in StackOverFlow,but get no responce,sorry if I have
 disturbed you.
 below is the Question:

 I build a website for phones like android and iphone,when users click
 an url , is it possible for me to invoke some system build in
 activities like Dialer or SMS)?

 I want to implement this cause I hope when user click the link with
 phone number,user can start to call directly.

 Edit***

 I think it is possible cause in android when I click a url like this:

     html
     body
     a href=market://search?
 q=pname:com.joelapenna.foursquaredasdfasdfsdf/a
     /body
     /html

 it will open the market app and lead me to the app I search.

 so I think if we format the url in some way ,maybe  it can also open
 the Dialer app in Android.

 ps.I know it must be another case when it comes to Iphone,but
 currently,it is fine enough it works with Android,any one ,any idea ?

 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: Arbitrary XML and hash marks ('#')

2010-09-08 Thread Kumar Bibek
Try escaping #es with \s

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

On Sep 6, 8:48 am, Stou Sandalski stou.sandal...@gmail.com wrote:
 Hello,

 When I place my custom xml file under res/xml AAPT throws a ton of
 errors because the file uses '#' inside tag attributes.  For example
 the line `input semantic=NORMAL source=#Cube-mesh-normals
 offset=1/` throws the following error:

 error: Error: Color value not valid -- must be #rgb, #argb, #rrggbb,
 or #aarrggbb (at 'source' with value '#Cube-mesh-normals'). some_file
 line 114        Android AAPT Problem

 For now I have moved my files under res/raw but then they are not
 compressed (I understand that files in res/xml get compressed by the
 packager).  Since I am pretty sure that the xml standard doesn't place
 any restrictions on the usage of the hash symbol... I am not really
 sure if these errors are due to a bug in AAPT or my understanding of
 the res hierarchy.

 Can someone enlighten me?

 Stou

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

2010-09-08 Thread Andrew Brampton
On 8 September 2010 09:05, Fabrizio Giudici
fabrizio.giud...@tidalwave.it wrote:
 There's a more efficient way to gather these data. For instance, look
 at http://droidparade.noser.com/droidparade/droidparade.html


 They're collecting the data from people willing to run their
 diagnostic app. It's a very good approach since there's no manual copy
 of data and thus no errors, and they're collecting a large number of
 attributes for each model.
 You have to click on a model to have the details and data aren't ready
 to consume as in a spreadsheet, but it would not be difficult to write
 a small HTML scraper to automatically extract the data.

 - --
 Fabrizio Giudici - Java Architect, Project Manager


 =vbdq
 -END PGP SIGNATURE-

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

Very awesome. I had searched for a site like that but I didn't find anything.

thanks
Andrew

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why Android cannot play .avi but can play youtube (avi?) and flash?

2010-09-08 Thread Mystique
Most youtube are flash am I right? then the codec must be build in
somewhere?

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

2010-09-08 Thread Filip Havlicek
Hi,

maybe going the official way wouldn't be such a bad idea.

http://developer.android.com/guide/topics/resources/localization.html

Best regards,
Filip Havlicek

2010/9/8 sblantipodi perini.dav...@dpsoftware.org

 Hi,
 as title.

 What is the best way to internazionalize a software on android?

 I want to release a single apk with different languages.
 What is the smartest way to procede?

 Thanks.

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

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

[android-developers] Re: Why Android cannot play .avi but can play youtube (avi?) and flash?

2010-09-08 Thread Alessandro Pellizzari
Il Wed, 08 Sep 2010 02:32:15 -0700, Mystique ha scritto:

 Most youtube are flash am I right? then the codec must be build in
 somewhere?

AVI is just a container, not a format.

Videos on Youtube are tipically in mp4 format, for which Android has a 
decoder. Only the chrome (the interface around the video, the play/pause/
ffwd/etc. buttons) in in flash on the web, but Android has an app to 
replace them.

AVI files are tipically in DivX or XviD format, for whose Android doesn't 
have a decoder.

Bye.

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


Re: [android-developers] Re: how to press menu key programmatically..

2010-09-08 Thread A N K ! T
 yes i mean to unlock the screen by pressing menu key...
 i can achieve this task by the methods keyGuardDisable 
in KeyGuardLock class
but i dont think this is the right way to do this...
On Tue, Sep 7, 2010 at 9:32 PM, Zhenyu Jiang jfo...@gmail.com wrote:

 maybe he means unlock the screen by pressing the menu key.
 i think you cannot achieve it by your app, since the key event
 is poped up by the system and delivered to upper layer apps.

 2010/9/7, Yahel kaye...@gmail.com:
 i think pressing menu key
  Not sure what you mean by open lock, but the way to call the menu
  programmatically is :
 
  Activity.openOptionsMenu();
 
  Good luck.
 
  Yahel
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.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




-- 

 A N K ! T..

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

2010-09-08 Thread KrcK ---
So, for example, If I want to create a new register with each incoming call
in my database tableI should use a BroadcastReceiver, and if I want to do
some actions in my app when appears an incoming call I should use a listener
(like save some states or stop a service), is ok?

On the other hand I would like to know if is a good idea create static
variables in a BroadCastReceiver because if I do not do it I can not know
the duration of each answer call.

Thanks for your explanations and help!


2010/9/8 Indicator Veritatis mej1...@yahoo.com

 I think you have lost sight of the forest for the trees. The main
 difference is that the Listener is just that -- a Listener. If you
 don't use the Listener, you have to poll for changes in phone state or
 create a Receiver. Often, this is a waste of time. The Listener should
 be preferred, unless your needs are VERY simple, so that you can
 afford the waste of time implied by polling for state change, or the
 extra effort (as in your example) of making a whole Receiver.

 After all: except when it introduces nuisance complexity, fewer
 application components is better. It is rare that you would want to
 create a whole Receiver just for tracking phone state. Why bother,
 when you can use a Listener?

 Besides: how do you plan to communicate between your Receiver and your
 Activities? Generally, communicating with a Listener in the same
 Activity or in the hosting process's thread is easier. You didn't even
 try this communication in your example.

 On Sep 7, 1:09 am, KrcK --- krc...@gmail.com wrote:
  Hi all,
 
  I would like to know what are the main differences between
 TelephonyManager
  and PhoneStateListener, because you can do (more or less) the same things
  with both.
  For example, you could create an incoming calls register implementing a
  broadcastreceiver and using TelephonyManger API or extending
  PhoneStateListener class and registering this new listener
  throughTelephonyManager .
 
  Case 1 - BroadcastReceiver (TelephonyManager)
 
  public class TestServiceReceiver extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
 TelephonyManager telephony = (TelephonyManager)
  context.getSystemService(Context.TELEPHONY_SERVICE);
 int state = telephony.getCallState();
 switch(state) {
 case TelephonyManager.CALL_STATE_IDLE:
 Log.d(TestServiceReceiver, IDLE);
 break;
 case TelephonyManager.CALL_STATE_OFFHOOK:
 Log.d(TestServiceReceiver, OFFHOOK);
 break;
 case TelephonyManager.CALL_STATE_RINGING:
 Log.d(TestServiceReceiver, RINGING);
 break;
  }
 
  }
  }
 
  receiver android:name=.TestServiceReceiver
  intent-filter
 action android:name=android.intent.action.PHONE_STATE /
  /intent-filter
  /receiver
  uses-permission android:name=android.permission.READ_PHONE_STATE /
 
  Case 2 - PhoneStateListener
 
  public class TestServiceReceiver extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
 TelephonyManager telephony = (TelephonyManager)
  context.getSystemService(Context.TELEPHONY_SERVICE);
 TestPhoneStateListener listener =
  new TestPhoneStateListener();
 telephony.listen(phoneListener,
  PhoneStateListener.LISTEN_CALL_STATE);
 
  }
  }
 
  public class TestPhoneStateListener extends PhoneStateListener {
  public void onCallStateChanged(int state,String incomingNumber){
 switch(state) {
 case TelephonyManager.CALL_STATE_IDLE:
 Log.d(TestPhoneStateListener , IDLE);
 break;
 case TelephonyManager.CALL_STATE_OFFHOOK:
 Log.d(TestPhoneStateListener , OFFHOOK);
 break;
 case TelephonyManager.CALL_STATE_RINGING:
 Log.d(TestPhoneStateListener , RINGING);
 break;
  }
 
  }
  }
 
  receiver android:name=.TestServiceReceiver
  intent-filter
 action android:name=android.intent.action.PHONE_STATE /
  /intent-filter
  /receiver
  uses-permission android:name=android.permission.READ_PHONE_STATE /
 
  In case 2, when the phone state changed, a new testphonestatelistener
 will
  be registered (telephony.listen(phoneListener,
  PhoneStateListener.LISTEN_CALL_STATE)), but I could solve this problem
  convertingthe TestPhoneStateListener into a Singleton and
  using PhoneStateListener listener =
 TestPhoneStateListener().getInstance()
  instead TestPhoneStateListener listener = new TestPhoneStateListener().
 
  So my main question is when I have to use each one and for what purposes.
 
  Thanks and regards!

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

[android-developers] Re: Why Android cannot play .avi but can play youtube (avi?) and flash?

2010-09-08 Thread Mystique
Thanks Alessandro for the explanation :)

On Sep 8, 5:37 pm, Alessandro Pellizzari a...@amiran.it wrote:
 Il Wed, 08 Sep 2010 02:32:15 -0700, Mystique ha scritto:

  Most youtube are flash am I right? then the codec must be build in
  somewhere?

 AVI is just a container, not a format.

 Videos on Youtube are tipically in mp4 format, for which Android has a
 decoder. Only the chrome (the interface around the video, the play/pause/
 ffwd/etc. buttons) in in flash on the web, but Android has an app to
 replace them.

 AVI files are tipically in DivX or XviD format, for whose Android doesn't
 have a decoder.

 Bye.

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

2010-09-08 Thread perumal316
Hi,

Is it possible to get the Google ID of the phone? Google ID is the
Gmail ID used for setting up the phone.

Thanks In Advance,
Perumal

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


[android-developers] Re: CPU usage stats

2010-09-08 Thread Andy
Hi all,

Thanks for the input and I think these comments answer my question.
Maybe it would be an idea to allow an SDK api to access these stats as
they, in my view for applications, can be very useful due to the heavy
multitasking nature of android?

Regards,

Andy

On Sep 7, 12:30 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Sep 7, 2010 at 4:25 AM, CHENG LUO stand...@gmail.com wrote:
  Maybe you could have a look at com.android.server.ProcessStats :)

 That is not part of the Android SDK.

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

 Android Training in London:http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Christian Buchner
 Is it possible to get the Google ID of the phone? Google ID is the
 Gmail ID used for setting up the phone.

On Android 2.x:

adb shell *sqlite3* /data/data/com.google.*android*.googleapps/databases/gls.db

*select* * from *meta*;

On Android 1.x the database has a different name. Google it ;)

Christian

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

[android-developers] Re: Google ID

2010-09-08 Thread perumal316
Hi Christian,

I want to obtain it through code. Is there any way to do so?

Thanks and Regards,
Perumal

On Sep 8, 6:14 pm, Christian Buchner christian.buch...@gmail.com
wrote:
  Is it possible to get the Google ID of the phone? Google ID is the
  Gmail ID used for setting up the phone.

 On Android 2.x:

 adb shell *sqlite3* 
 /data/data/com.google.*android*.googleapps/databases/gls.db
 
 *select* * from *meta*;

 On Android 1.x the database has a different name. Google it ;)

 Christian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Killing all the activities that was started by my application.

2010-09-08 Thread Yahel
Every one here will tell you, you don't need it, it's against Android
Os policy. Android manage the life and death of your app.

But anyway : you should simply call the finish() function of your
activity : It will call onpause, onstop, and ondestroy thus
terminating gracefull the app.
You need to do your own cleanup if you have more than one activity
though.

Good luck.

Yahel

On 8 sep, 09:41, Ajmer Singh ajmersing...@gmail.com wrote:
 Hi

 I need to have a Exit menu items in my application,My question here is how
 can i just exit the app,Please throw some light on this is that possible in
 android if yes then how.

 Please help,Thanks in advance

 --
 Thanks and Regards
 Ajmer Singh

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


Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 5:55 AM, KrcK --- krc...@gmail.com wrote:
 So, for example, If I want to create a new register with each incoming call
 in my database tableI should use a BroadcastReceiver, and if I want to do
 some actions in my app when appears an incoming call I should use a listener
 (like save some states or stop a service), is ok?

I do not completely understand what you wrote here, but I think you
have the right idea.

 On the other hand I would like to know if is a good idea create static
 variables in a BroadCastReceiver because if I do not do it I can not know
 the duration of each answer call.

The BroadcastReceiver will be destroyed when onReceive() is finished,
and so you have no guarantees about the lifetime of any static data
members.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Tez
Are these system wide touch events?

On Sep 6, 3:25 pm, octega oct...@gmail.com wrote:
 Hi all,

 Good day to everyone here!

 We are currently trying to build an App that listens to events in
 other Apps. (we already have approval from users to access such
 information in a control study)

 And so far, we manage to capture much information via the
 AccessibilityService on App launch, touch events, etc to data from
 Content providers.

 However, we are stuck in trying to listening to events that pertains
 to:
 1) Multitouch events (MotionEvents) in Apps like Maps, Browser, or
 even games, etc.
 2) or listening to user events like accessing a URL in browser and
 able to differentiate if the URL is from a bookmark or a HTML link in
 browser.

 Does anybody would be kind enough to advised us the direction or API
 we should be looking at without rooting the phone?

 Will

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

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 5:07 AM, Anand Android android.an...@gmail.com wrote:
 yes zarah, i want to do it programatically.

Ah. In that case, you want android.provider.Settings.System,
specifically the STAY_ON_WHILE_PLUGGED_IN setting:

http://developer.android.com/reference/android/provider/Settings.System.html#STAY_ON_WHILE_PLUGGED_IN

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread cool.manish
Hi All,

I get to know that displaying map in some other application is a paid
thing and we need to create a key using which we can get it.

Is this true for Android application also? Is it paid?

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

2010-09-08 Thread DaPhilz
Hello,

I have a problem with my framelayout.I created a tabwidget with a
tabgroup the tabgroup setup a shadow and a black line on top of teh
framelayout. How can I disable this shadow? I tried to setup the
tabwidget padding, transparent, weight and height but nothing worked.
THanks for your help. It will work if i remove the activitygroup and
show just one activity in a tab. But the  use case is to show to
activitys in on tab. Please help me out. Thanks a lot
Philipp

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


Re: [android-developers] Re: Google ID

2010-09-08 Thread Christian Buchner
 I want to obtain it through code. Is there any way to do so?


Sorry, I cannot help you there - I am not yet familiar with theGoogle APIs
on Android.

You could certainly use the sqlite3 API to access these database files
directly, but relying on this is not guaranteed to work in future Android
revisions. They already changed the file's locations between Android 1 and
Android 2.

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

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 6:29 AM, cool.manish mannishga...@gmail.com wrote:
 I get to know that displaying map in some other application is a paid
 thing and we need to create a key using which we can get it.

 Is this true for Android application also? Is it paid?

For developers, it is free. You do need a key, to demonstrate that you
have agreed with the terms of service for using the Android-based
Google Maps library.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Lidia G
Hello guys,

I have the following question.My android application has 3 links.
the example of code is as follows:
 String termsConditions =a href='+ApplicationData.linkTermsConditions+' 
+Conditions+ a;        
bottomTermsConditions.setText(Html.fromHtml(termsConditions));
bottomTermsConditions.setMovementMethod(LinkMovementMethod.getInstance());

When the link button is pressed from my application and the required internet 
page is opened, if i press back from the phone, it is not returning any time 
back to my application.
Is there are any possibility to make it programmatically to return any time 
back to the application screen from which the link was opened?

Please help me,  i would appreciate any advice.
Lidia  




  

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

[android-developers] Re: Method to check Mediaplayer in Idle state

2010-09-08 Thread Nithin

Anybody there to help me in this issue..

On Sep 7, 2:45 pm, Nithin nithin.war...@gmail.com wrote:
 Hi,

 Is there any method to check whether the mediaPlayer is in Idle state.
 We can check the mediaPlayer in started state by using isPlaying().
 Like that any method is there, to check whether the mediaPlayer is in
 Idle state.

 Nithin

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

2010-09-08 Thread Lidy
Hello guys,

I have the following question.My android application has 3 links.
the example of code is as follows:
 String termsConditions =a
href='+ApplicationData.linkTermsConditions+' +Conditions+
a;
bottomTermsConditions.setText(Html.fromHtml(termsConditions));
bottomTermsConditions.setMovementMethod(LinkMovementMethod.getInstance());

When the link button is pressed from my application and the required
internet page is opened, if i press back from the phone, it is not
returning any time back to my application.
Is there are any possibility to make it programmatically to return any
time back to the application screen from which the link was opened?

Please help me,  i would appreciate any advice.
Lidia

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


Re: [android-developers]How can i make to return from the external link to my application?

2010-09-08 Thread Sebastián Treu
On Wed, Sep 8, 2010 at 7:35 AM, Lidia G lidyp...@yahoo.com wrote:
 When the link button is pressed from my application and the required internet 
 page is opened, if i press back from the phone, it is not returning any time 
 back to my application.
 Is there are any possibility to make it programmatically to return any time 
 back to the application screen from which the link was opened?


Hi Lidia,

I think that reading this should be useful to you:
http://d.android.com/guide/topics/manifest/activity-element.html#reparent

Also check out the other options related.

Cheers,
--
If you want freedom, compile the source.

Sebastián Treu
http://labombiya.com.ar

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

2010-09-08 Thread Yahel
As I understand it, it is free even with a high traffic.
From the FAQ : http://code.google.com/intl/fr-FR/apis/maps/faq.html

--
My site gets a lot of traffic. Can I use the Maps API?
Yes, absolutely. There's no limit to the number of page views of Maps
on your site. If you expect your site to generate over 500,000 page
views per day, please contact us so we can provision additional
capacity to handle your traffic.
-

Yahel

On 8 sep, 12:29, cool.manish mannishga...@gmail.com wrote:
 Hi All,

 I get to know that displaying map in some other application is a paid
 thing and we need to create a key using which we can get it.

 Is this true for Android application also? Is it paid?

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


[android-developers] how to make conference.......

2010-09-08 Thread A N K ! T
hey am trying to make conference of two calls
  what i have done isi can pick the first call and can dial another call
programmatically
  but not getting how to merge these calls...
please guide me out

-- 

 A N K ! T..

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

2010-09-08 Thread KrcK ---
The general idea is to create an app like incoming call log. So I have to
create a new register in my database when a new call is answered or lost.

To do that, I implement a BroadcastReceiver that reacts when the phone state
changes. In the onReceive method, I get the TelephonyManager and through
this I can get the call state (getCallSate method).

The problem here is that I can not know the previous state, so I can not
know if an incoming call was answered or not, while if I could get the
previous state, I would know it with the states transition.

Maybe I could get the information that I need through the Intent (that I get
in onReceive method) or through the TelephonyManager, but I do not know if
it is possible.

Any suggestion to do something like that?

Thanks.


2010/9/8 Mark Murphy mmur...@commonsware.com

 On Wed, Sep 8, 2010 at 5:55 AM, KrcK --- krc...@gmail.com wrote:
  So, for example, If I want to create a new register with each incoming
 call
  in my database tableI should use a BroadcastReceiver, and if I want to do
  some actions in my app when appears an incoming call I should use a
 listener
  (like save some states or stop a service), is ok?

 I do not completely understand what you wrote here, but I think you
 have the right idea.

  On the other hand I would like to know if is a good idea create static
  variables in a BroadCastReceiver because if I do not do it I can not know
  the duration of each answer call.

 The BroadcastReceiver will be destroyed when onReceive() is finished,
 and so you have no guarantees about the lifetime of any static data
 members.

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread dadada
hello all,

i used matrix to rotate instead of the canvas.

However, the result isn't what i expected. The path just rotate
infinitely without stopping.

below is my code. it is a modification of the compass.java in
apidemo.  can someone please give me some advice on this?

import android.content.Context;
import android.graphics.*;
import android.hardware.SensorListener;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.util.Config;
import android.util.Log;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;

public class Compass extends GraphicsActivity {

private static final String TAG = Compass;

private SensorManager mSensorManager;
private SampleView mView;
private float[] mValues;

private final SensorListener mListener = new SensorListener()
{
public void onSensorChanged(int sensor, float[] values)
{
if (Config.LOGD) Log.d(TAG, sensorChanged ( + values[0]
+ ,  + values[1] + ,  + values[2] + ));
mValues = values;
if (mView != null) {
mView.invalidate();
}
}
public void onAccuracyChanged(int sensor, int accuracy)
{
// TODO Auto-generated method stub

}
};

@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
mSensorManager =
(SensorManager)getSystemService(Context.SENSOR_SERVICE);
mView = new SampleView(this);
setContentView(mView);
}

@Override
protected void onResume()
{
if (Config.LOGD) Log.d(TAG, onResume);
super.onResume();
mSensorManager.registerListener(mListener,
SensorManager.SENSOR_ORIENTATION,
SensorManager.SENSOR_DELAY_GAME);
}

@Override
protected void onStop()
{
if (Config.LOGD) Log.d(TAG, onStop);
mSensorManager.unregisterListener(mListener);
super.onStop();
}

private class SampleView extends View {
private Paint   mPaint = new Paint();
private PathmPath = new Path();
private boolean mAnimate;
private longmNextTime;
private Matrix matrix = new Matrix();



public SampleView(Context context) {
super(context);
// Construct a wedge-shaped path
mPath.moveTo(0, -50);
mPath.lineTo(-20, 60);
mPath.lineTo(0, 50);
mPath.lineTo(20, 60);
mPath.close();
matrix.postScale(10, 10);
}

@Override protected void onDraw(Canvas canvas) {



Paint paint2 = new Paint();
paint2.setColor(Color.BLUE);
paint2.setStyle(Paint.Style.FILL);
paint2.setAlpha(120);

Paint paint3 = new Paint();
paint3.setColor(Color.GREEN);
paint3.setStyle(Paint.Style.FILL);
paint3.setAlpha(200);

Paint paint4 = new Paint();
paint4.setColor(Color.GRAY);
paint4.setStyle(Paint.Style.FILL);
paint4.setAlpha(120);

Paint paint5 = new Paint();
paint5.setColor(Color.GRAY);
paint5.setStyle(Paint.Style.FILL_AND_STROKE);
paint5.setAlpha(120);

Paint paint = mPaint;
canvas.drawColor(Color.WHITE);

paint.setAntiAlias(true);
paint.setColor(Color.RED);
paint.setStyle(Paint.Style.FILL);
paint.setAlpha(120);

int w = canvas.getWidth();
int h = canvas.getHeight();
int cx = w / 2;
int cy = h / 2;

canvas.translate(cx, cy);
if (mValues != null) {
matrix.setRotate(-mValues[0]);
mPath.transform(matrix);
//canvas.rotate(-mValues[0]);
}
canvas.drawPath(mPath, mPaint);
String str = ;
String direction = ;
if (mValues != null) {
str = Azimuth:  + Float.toString(-mValues[0]);

if(-mValues[0]  0  -mValues[0]  -1){
direction = Direction: North;
}else if(-mValues[0]  1  -mValues[0]  -90){
direction = Direction: North East;
}else if(-mValues[0]  -90  -mValues[0]  -91){
direction = Direction: East;
}else if(-mValues[0]  -91  -mValues[0]  -180){
direction = Direction: South East;
}else if(-mValues[0]  -180  -mValues[0]  -181){
direction = Direction: South;
}else if(-mValues[0]  -181  -mValues[0]  -270){
direction = Direction: South West;
}else if(-mValues[0]  -270  -mValues[0]  -271){

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 7:12 AM, KrcK --- krc...@gmail.com wrote:
 The general idea is to create an app like incoming call log. So I have to
 create a new register in my database when a new call is answered or lost.

Android has a CallLog already. It's called android.provider.CallLog.

 To do that, I implement a BroadcastReceiver that reacts when the phone state
 changes. In the onReceive method, I get the TelephonyManager and through
 this I can get the call state (getCallSate method).

There is also an Intent extra.

 The problem here is that I can not know the previous state, so I can not
 know if an incoming call was answered or not, while if I could get the
 previous state, I would know it with the states transition.

Why not use the existing CallLog?

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Samuh
I am getting following exceptions when I try to read/delete contacts
from my application using Contacts Content Provider.
What does the following mean?

ERROR/IMemory(1349): binder=0x490f38 transaction failed
fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646)
ERROR/IMemory(1349): cannot dup fd=-2147483647, size=0,
err=-2147483646 (Bad file number)
ERROR/IMemory(1349): cannot map BpMemoryHeap (binder=0x490f38),
size=0, fd=-1 (Bad file number)
ERROR/JavaBinder(1349): *** Uncaught remote exception!  (Exceptions
are not yet supported across processes.)
ERROR/JavaBinder(1349): java.lang.RuntimeException: No memory in
memObj
ERROR/JavaBinder(1349): at
android.database.CursorWindow.native_init(Native Method)
ERROR/JavaBinder(1349): at
android.database.CursorWindow.init(CursorWindow.java:518)
ERROR/JavaBinder(1349): at
android.database.CursorWindow.init(CursorWindow.java:27)
ERROR/JavaBinder(1349): at android.database.CursorWindow
$1.createFromParcel(CursorWindow.java:493)
ERROR/JavaBinder(1349): at android.database.CursorWindow
$1.createFromParcel(CursorWindow.java:496)
ERROR/JavaBinder(1349): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
96)
ERROR/JavaBinder(1349): at
android.os.Binder.execTransact(Binder.java:287)
ERROR/JavaBinder(1349): at dalvik.system.NativeStart.run(Native
Method)

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]sharing with facebook is not working

2010-09-08 Thread manigault
Hi all, I am using the following code to launch chooser for sharing
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, MyApp);
sendIntent.setType(text/plain);
try {
activity.startActivity(Intent.createChooser(sendIntent, null));
} catch (ActivityNotFoundException e) {
Log.e(TAG,e.getMessage(),e);
}
Sharing with gmail, twitter, messaging is working fine but there is
some problem with facebook. When i press facebook i I'm redirected to
facebook page in browser with correctly formed post message, but when
i press Post to Profile button the page is loading but nothing
happens no message appears in my facebook profile and no indication
that the message was successfully posted.
Any ideas am I missing some additional facebook extra in the intent.
Thanks

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


Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
 Why not use the existing CallLog?

Because I wanted to play with this API and I thougth to do that developing
an app like CallLog.

On the other hand, the CallLog could be deleted by the user and I want to
not allow it in my app.

 There is also an Intent extra.

Which information could I get through that intent?

Thanks for your help!


2010/9/8 Mark Murphy mmur...@commonsware.com

 On Wed, Sep 8, 2010 at 7:12 AM, KrcK --- krc...@gmail.com wrote:
  The general idea is to create an app like incoming call log. So I have to
  create a new register in my database when a new call is answered or lost.

 Android has a CallLog already. It's called android.provider.CallLog.

  To do that, I implement a BroadcastReceiver that reacts when the phone
 state
  changes. In the onReceive method, I get the TelephonyManager and through
  this I can get the call state (getCallSate method).


  The problem here is that I can not know the previous state, so I can not
  know if an incoming call was answered or not, while if I could get the
  previous state, I would know it with the states transition.



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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 7:36 AM, KrcK --- krc...@gmail.com wrote:
 There is also an Intent extra.

 Which information could I get through that intent?

The EXTRA_STATE extra indicates the new call state. If the new state
is RINGING, a second extra EXTRA_INCOMING_NUMBER provides the incoming
phone number as a String.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Jens
Or, if one doesn't reply with a snarky one-liner:

For Android 2.1 and earlier you could query content://calendar/
events with the following selection rrule IS NOT NULL
For Android 2.2 the authority of the calendar provider was changed, so
you query content://com.android.calendar/events instead.


You should typically refer to:
https://android.git.kernel.org/?p=platform/packages/providers/CalendarProvider.git;a=summary

As you're using an undocumented provider through the standard API:s
you need to be aware that the implementation may vary between vendors,
versions etc - which may or may not be a royal PITA.

On 7 Sep, 08:12, rinyogi rinyog...@gmail.com wrote:
 Hi
 I was wondering how does one fetch recurring events from native
 calendar?

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

2010-09-08 Thread Amit
Hi All,

I am trying to do HTTP Post through HttpURLConnection. But in the
line

OutputStream output = httpCon.getOutputStream();

I am getting exception-

problem in connection - java.net.ProtocolException: Does not support
output URL - my url

What may be the reason? Kindly help.

Best Regards
Amit

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


Re: [android-developers]sharing with facebook is not working

2010-09-08 Thread Martin Obreshkov
Sorry for the spam i found what is the problem in this thread
http://groups.google.com/group/android-developers/browse_thread/thread/731d7891c116a5d5/1a65697822513218?lnk=gstq=ACTION_SEND+facebook#1a65697822513218

On Wed, Sep 8, 2010 at 2:29 PM, manigault manig...@gmail.com wrote:

 Hi all, I am using the following code to launch chooser for sharing
 Intent sendIntent = new Intent(Intent.ACTION_SEND);
 sendIntent.putExtra(Intent.EXTRA_TEXT, message);
 sendIntent.putExtra(Intent.EXTRA_SUBJECT, MyApp);
 sendIntent.setType(text/plain);
 try {
activity.startActivity(Intent.createChooser(sendIntent, null));
 } catch (ActivityNotFoundException e) {
Log.e(TAG,e.getMessage(),e);
 }
 Sharing with gmail, twitter, messaging is working fine but there is
 some problem with facebook. When i press facebook i I'm redirected to
 facebook page in browser with correctly formed post message, but when
 i press Post to Profile button the page is loading but nothing
 happens no message appears in my facebook profile and no indication
 that the message was successfully posted.
 Any ideas am I missing some additional facebook extra in the intent.
 Thanks




-- 
When I raise my flashing sword, and my hand takes hold on judgment, I will
take vengeance upon mine enemies, and I will repay those who haze me. Oh,
Lord, raise me to Thy right hand and count me among Thy saints.

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

2010-09-08 Thread KrcK ---
Ok but how could I identify that I answered a call or is lost, and the
duration of the call? Because I can know the current state and at what time
it is produced but I do not have information about previous states.

For example, I answer a call so I will receive OFFHOOK state, but when the
call finished I will receive the IDLE state, but I could not know if the
previous state was RINGING or OFFHOOK to identify wich kind of call was
realized (answer or lost), and in the case of answered call I could not know
when started.

2010/9/8 Mark Murphy mmur...@commonsware.com

 On Wed, Sep 8, 2010 at 7:36 AM, KrcK --- krc...@gmail.com wrote:
  There is also an Intent extra.
 
  Which information could I get through that intent?

 The EXTRA_STATE extra indicates the new call state. If the new state
 is RINGING, a second extra EXTRA_INCOMING_NUMBER provides the incoming
 phone number as a String.

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Fog of war? is it possible?

2010-09-08 Thread John Paul Bernal
Thanks to Everyone's Reply. We'll try implementing those tips! thanks
again :)

On Sep 7, 6:01 pm, Robert Green rbgrn@gmail.com wrote:
 Fog of war =

 1)  Divide world into tiles.
 2)  Tile can have any of 3 states { FOGGED, PARTIALLY FOGGED, CLEAR }
 3)  If tile = FOGGED, draw black (or don't draw at all if you're
 clearing to black)
 4)  If tile = CLEAR, draw normal stuff.
 5)  If tile = PARTIALLY FOGGED, draw normal stuff, determine which
 direction the blend is in (examine surrounding tiles) and draw a pre-
 made tile of partially blended fog at the orientation you determined
 it to be in.

 As far as drawing or not drawing characters under fog of war, just
 examine the tile they are currently standing on to figure out whether
 or not to draw them.

 It's actually not that hard to implement in Canvas or OpenGL if you
 plan ahead a little and tile your world.

 The one thing you do not want to do is draw everything and then try to
 draw the fog on top.  That's way more pixel writes than optimal and
 will probably give subpar performance on many devices.

 On Sep 7, 8:08 pm, Miguel Morales therevolti...@gmail.com wrote:

  Um ok, my solution would work just fine.  Except maybe speed-wise.  In
  which case you can then add a GL overlay to your 2d canvas.

  On Fri, Sep 3, 2010 at 7:37 PM, John Paul Bernal jpbal...@gmail.com wrote:

   we are using overhead view and 2d graphics on canvas. Our character
   is a ball where it needs to find key items to be able to exit the
   world map.

   On Sep 3, 2:17 am, String sterling.ud...@googlemail.com wrote:
   I can imagine several ways to accomplish it, but it completely depends
   on what graphics approach you're using in your maze game. 2D using
   Canvas? 3D using OpenGL? Is it first-person or overhead view? Etc.

   String

   On 2 Sep, 07:52, John Paul Bernal jpbal...@gmail.com wrote:

we're making a maze game and we've been thinking if we added fog of
war in our game so it would be more challenging but we're stunned on
how we can implement it or is it even possible?
Help would be really appreciated. ~JP

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

  --
  ~ Jeremiah:9:23-24
  Android 2D 
  MMORPG:http://developingthedream.blogspot.com/,http://diastrofunk.com,http:/...

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

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 8:18 AM, KrcK --- krc...@gmail.com wrote:
 Ok but how could I identify that I answered a call or is lost, and the
 duration of the call? Because I can know the current state and at what time
 it is produced but I do not have information about previous states.

The answered/lost data is not part of a public API, AFAIK. Duration of
the call is something you can track yourself.

 For example, I answer a call so I will receive OFFHOOK state, but when the
 call finished I will receive the IDLE state, but I could not know if the
 previous state was RINGING or OFFHOOK to identify wich kind of call was
 realized (answer or lost), and in the case of answered call I could not know
 when started.

Sure you can.

You have indicated that you are replicating the CallLog. I would
imagine this involves persisting the data. Hence, you already have
some file or database or something where you are storing data. Store
the in-progress call information using the same techniques.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Chris Stratton
Android doesn't understand java.  Java is used during development, but
the java class file inside the jar must be converted to a dex class
file before android can use it.
CaryWang wrote:
 I have a jar file in my app local data /data/data/application
 packageName/test.jar. I want to load the class com.test.abc which
 resides  in my jar. I am using java.net.URLClassLoader to load the class. On
 an non android environment the code works, on android it gives me this
 exception can't load this type of class file.
 Do you know why is that ?

 --
 Cary

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

2010-09-08 Thread KrcK ---
Ok, I think that now I know a way to do it!

Thanks Mark, your help and explanations were very helpful!

2010/9/8 Mark Murphy mmur...@commonsware.com

 On Wed, Sep 8, 2010 at 8:18 AM, KrcK --- krc...@gmail.com wrote:
  Ok but how could I identify that I answered a call or is lost, and the
  duration of the call? Because I can know the current state and at what
 time
  it is produced but I do not have information about previous states.

 The answered/lost data is not part of a public API, AFAIK. Duration of
 the call is something you can track yourself.

  For example, I answer a call so I will receive OFFHOOK state, but when
 the
  call finished I will receive the IDLE state, but I could not know if the
  previous state was RINGING or OFFHOOK to identify wich kind of call was
  realized (answer or lost), and in the case of answered call I could not
 know
  when started.

 Sure you can.

 You have indicated that you are replicating the CallLog. I would
 imagine this involves persisting the data. Hence, you already have
 some file or database or something where you are storing data. Store
 the in-progress call information using the same techniques.

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Lat Long value using zip code or city name

2010-09-08 Thread cool.manish
Hi All,

Is there any way to find out the lat long value for a particular zip
code or city name?
I want to display google map after giving zipcode or city name.

Thanks  Regards
Manish

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

2010-09-08 Thread Anand Android
yes i looked into these values. but in powermanagerservice.java if do
getInt(STAY_ON_WHILE_PLUGGED_IN) it is returning 0. it means never stay on.
but in my case it never goes off

-Anand

On Wed, Sep 8, 2010 at 3:58 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Wed, Sep 8, 2010 at 5:07 AM, Anand Android android.an...@gmail.com
 wrote:
  yes zarah, i want to do it programatically.

 Ah. In that case, you want android.provider.Settings.System,
 specifically the STAY_ON_WHILE_PLUGGED_IN setting:


 http://developer.android.com/reference/android/provider/Settings.System.html#STAY_ON_WHILE_PLUGGED_IN

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

 Android Training in London: http://skillsmatter.com/go/os-mobile-server

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Displaying Google map on Android is paid or free

2010-09-08 Thread cool.manish
So If we are developing an application for the bussiness purpose to
sell one application, one of whose feature is to display map, no one
developer as well as user have to pay for that.

On Sep 8, 3:57 pm, Yahel kaye...@gmail.com wrote:
 As I understand it, it is free even with a high traffic.
 From the FAQ :http://code.google.com/intl/fr-FR/apis/maps/faq.html

 --
 My site gets a lot of traffic. Can I use the Maps API?
 Yes, absolutely. There's no limit to the number of page views of Maps
 on your site. If you expect your site to generate over 500,000 page
 views per day, please contact us so we can provision additional
 capacity to handle your traffic.
 -

 Yahel

 On 8 sep, 12:29, cool.manish mannishga...@gmail.com wrote:



  Hi All,

  I get to know that displaying map in some other application is a paid
  thing and we need to create a key using which we can get it.

  Is this true for Android application also? Is it paid?- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: Develop Games

2010-09-08 Thread Zsolt Vasvari
Who said this forum was moderated.  No way that it is.

On Sep 7, 4:39 pm, Haroon Khalid ghett...@gmail.com wrote:
 how do fucking emails like this get approved by moderators? dude give up on
 Android and slap yourself in the face.On Tue, Sep 7, 2010 at 3:54 PM, TreKing 
 treking...@gmail.com wrote:
  On Tue, Sep 7, 2010 at 1:51 PM, Christian Eduardo Palomares Peralta 
  palomare...@gmail.com wrote:

  i can't find a generator of maps, does anyone know about it???

  What is a generator of maps???

  Could you recommend me a program for this??

  For what???

  ---­--
  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%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] How to display route on Google map in Android

2010-09-08 Thread cool.manish
Hi All,

How to display route on Google map in Android in between two lat long
value?
Does android supports it and are there any api available as there are
for displaying map?

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


[android-developers] Re: Android App Licensing Mechanism Still Easy to Break!!

2010-09-08 Thread Zsolt Vasvari
The artcile is 2 weeks old and it's been extensively discussed here.
Maybe changing your nickname should be in order.


On Sep 5, 6:30 am, mastermind rinees...@gmail.com wrote:
 Hey Guys...

 Just came over this news...and thought of sharing with you people

 According to Android Police, Google's new app licensing mechanism
 designed to protect developers against app piracy is still relatively
 easy to break. The site says that since the License Verification
 Library isn't a core component of the Android operating system, an
 app developer needs to package it with the app that uses it, making it
 an easier patch target, without requiring root access.

 To know 
 morehttp://allandroidnews.blogspot.com/2010/08/android-app-licensing-mech...

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

2010-09-08 Thread cool.manish
My Query was it that if I wish to install an application which will
run at the start up and will fetch and/or send some data to the
network.
I need not any user interference for it. So I want to develope an
application which has Service component as the launcher.

Is this possible.

On Sep 3, 2:16 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Sep 3, 2010 at 2:47 AM, cool.manish mannishga...@gmail.com wrote:
  Is this necessary to have some activity as the starting component?

 If you are asking do I need to have something in the launcher, the
 answer is technically no, but it seems that some users get confused
 by apps that they install and lack a launcher icon...even if one is
 not truly needed.

 If you are asking something else, my apologies.

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

 _The Busy Coder's Guide to Android Development_ Version 3.1 Available!

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


Re: [android-developers] Lat Long value using zip code or city name

2010-09-08 Thread TreKing
On Wed, Sep 8, 2010 at 8:07 AM, cool.manish mannishga...@gmail.com wrote:

 Is there any way to find out the lat long value for a particular zip code
 or city name?


Google geocoding and reverse geocoding.

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

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

[android-developers] Re: How to display route on Google map in Android

2010-09-08 Thread cool.manish
One more query is, Is there API to find out Lat Long for a zipcode or
city name supported in android.

On Sep 8, 6:19 pm, cool.manish mannishga...@gmail.com wrote:
 Hi All,

 How to display route on Google map in Android in between two lat long
 value?
 Does android supports it and are there any api available as there are
 for displaying map?

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

2010-09-08 Thread Joany
Hi all,

I did a custom application available on my website, I would like to
warn the user when an update is available.

By searching on google,  I found that was possible:

This is built into the APK installer system. However, it is up to you
to get the APK (Android application package) to the device, either
through a market (e.g., Android Market) or through your Web site.

Now I would like to know how to do that, I guess I have to include a
file in the apk but I don't know the name and
the structure of this one.

Thx in advance,

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


Re: [android-developers] Re: Should Activity component be starting component for Android apps

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 9:22 AM, cool.manish mannishga...@gmail.com wrote:
 My Query was it that if I wish to install an application which will
 run at the start up and will fetch and/or send some data to the
 network.
 I need not any user interference for it. So I want to develope an
 application which has Service component as the launcher.

 Is this possible.

Yes. Users will not like it.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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


Re: [android-developers] App Widget with AlarmManager... full example source?

2010-09-08 Thread Rich Allen
 Hi Mark, thank you for responding.  I've looked through the code you 
provided and I'm still a little unclear.  I don't believe I need any of 
the wakeful intent code, correct?


My widget currently has a service with a function called buildUpdate 
that returns a RemoteViews object.

To enable 5 minute updates, I need to:
- Add a new BroadcastReceiver class that overrides the onReceive 
function, calls my buildUpdate function and updates my app widget.
- Add code to the onStart function of my service that creates the 
AlarmManager intent and starts it up.


Is this even close?

By the way, I have your book Beginning Android 2 and another book on 
Android development and neither one has much coverage of App Widgets, if 
any at all.  Resources on the net are also very sparse regarding App 
Widgets.  For me, obviously, this is the area where I felt I needed to 
write my own application, so I'm curious about the apparent lack of 
information available.  The few tutorials available all basically say 
The 1.6 update broke this.  Sorry.  Here we are at the start of 2.2 
and there's nothing?  Or am I missing some valuable resources somewhere?  :)


Rich

On 9/7/2010 7:06 PM, Mark Murphy wrote:

I don't want the widget to refresh when
the screen is off and I want it to refresh immediately upon waking up
the screen.  My search for information says to set updatePeriodMillis
to 0 and use the AlarmManager instead, but I can't find any complete
code examples on just how to do this.

Here is a sample project that uses AlarmManager:

http://github.com/commonsguy/cw-advandroid/tree/master/SystemServices/Alarm/

To update the app widget from outside your AppWidgetProvider, just
call AppWidgetManager.getInstance(), and everything else is pretty
much the same (create RemoteViews, etc.).



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

2010-09-08 Thread cool.manish
I want to do it only for my personal purpose.
and only those users who will be interested to use this application,
will install it.

On Sep 8, 6:50 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Sep 8, 2010 at 9:22 AM, cool.manish mannishga...@gmail.com wrote:
  My Query was it that if I wish to install an application which will
  run at the start up and will fetch and/or send some data to the
  network.
  I need not any user interference for it. So I want to develope an
  application which has Service component as the launcher.

  Is this possible.

 Yes. Users will not like it.

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

 Android Training in London:http://skillsmatter.com/go/os-mobile-server

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


Re: [android-developers] App Widget with AlarmManager... full example source?

2010-09-08 Thread Mark Murphy
On Wed, Sep 8, 2010 at 9:52 AM, Rich Allen ricow...@gmail.com wrote:
  Hi Mark, thank you for responding.  I've looked through the code you
 provided and I'm still a little unclear.  I don't believe I need any of the
 wakeful intent code, correct?

Probably not, in your case, since you said you didn't want the alarm
to go off while the device was asleep.

 My widget currently has a service with a function called buildUpdate that
 returns a RemoteViews object.
 To enable 5 minute updates, I need to:
 - Add a new BroadcastReceiver class that overrides the onReceive function,
 calls my buildUpdate function and updates my app widget.
 - Add code to the onStart function of my service that creates the
 AlarmManager intent and starts it up.

 Is this even close?

Well, it's in the ballpark, at least. Depending on how long
buildUpdate() takes, you may wish to consider delegating that work to
an IntentService -- onReceive() is called with foreground priority on
the main application thread, so you really want it to be snappy.
Whether onStart() is the right place/time to set up your AlarmManager
is difficult for me to say, since I don't know your app.

 By the way, I have your book Beginning Android 2 and another book on
 Android development and neither one has much coverage of App Widgets, if any
 at all.  Resources on the net are also very sparse regarding App Widgets.
  For me, obviously, this is the area where I felt I needed to write my own
 application, so I'm curious about the apparent lack of information
 available.  The few tutorials available all basically say The 1.6 update
 broke this.  Sorry.  Here we are at the start of 2.2 and there's nothing?
  Or am I missing some valuable resources somewhere?  :)

I'm not sure what constitutes valuable, but:

http://commonsware.com/AdvAndroid/

I would assume some of the other newer/bigger books cover app widgets
as well, though I haven't gone looking. But my app widget and
AlarmManager coverage is in one of my books, just not the one you
have. My apologies.

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

Android Training in London: http://skillsmatter.com/go/os-mobile-server

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

2010-09-08 Thread Doug Gordon
An Eclipse question, I know, but maybe some Android-specific
considerations. When I'm in Eclipse and running my app in debug mode,
if it halts due to a runtime exception, where can I look to find the
java source line number that was executing at the time?

I've been able to find the error message, which often leads me to the
general area of the faulty code, but it would be nice to get an actual
line number (sometimes TMI in the Eclipse windows when I'm looking for
the basic facts!).

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

2010-09-08 Thread viktor
Hi,

My problem: I have many WebView's these display images.

Each WebView is item in Gallery view. 10-15 images are loading
simultaneously.

Internet is very low, for loading all visible items is need 5-10 sec.

If close Activity and restart it few times, device CPU is hangs long
time.

I try WebView.destroy(); but webview's continues loading images.

How I can unbind webview connection, and destroy it?

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


[android-developers] Converting binary JPEG data to Bitmap

2010-09-08 Thread Doug Gordon
My app will have an SQLite database with some embedded JPEG images --
basically the binary contents of a JPEG file stored as a Blob in the
database. Can someone point me in the general direction of where to
start to figure out how to convert this array of bytes into a Bitmap
object that can be further manipulated and displayed in an ImageView?
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: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-08 Thread blahblah...@gmail.com
The workaround seems to be to put a System.gc();
System.runFinalization(); System.gc(); at the end of the onDestroy().

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

2010-09-08 Thread Kostya Vasilyev

 Doug,

The trick is, once you see in Eclipse that the application crashed, hit 
run button (the yellow-green triangular arrow).


This lets the exception propagate to Android framework, and after that 
you get the stack trace in logcat. This includes the original cause for 
the exception. Look for the lines starting with Caused by:.


-- Kostya

08.09.2010 18:00, Doug Gordon пишет:

An Eclipse question, I know, but maybe some Android-specific
considerations. When I'm in Eclipse and running my app in debug mode,
if it halts due to a runtime exception, where can I look to find the
java source line number that was executing at the time?

I've been able to find the error message, which often leads me to the
general area of the faulty code, but it would be nice to get an actual
line number (sometimes TMI in the Eclipse windows when I'm looking for
the basic facts!).




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

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


[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-09-08 Thread gcstang
What is the issue with using IMEI?

On Sep 7, 5:36 am, Opted Out stock...@gmail.com wrote:
 I'm just coming into the market and can see some use for my
 application if each and everyone has a unique ID.

 Is there still issues or does it appear to be fixed?

 On Aug 18, 1:48 pm, Maps.Huge.Info (Maps API Guru)

 cor...@gmail.com wrote:
  I'm relieved to see that I'm not the only one who's seeing the 
  magicANDROID_IDproblem.

  -John Coryat

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


[android-developers] Re: Killing all the activities that was started by my application.

2010-09-08 Thread viktor
Yahel is right, it is very dangerous.

But you can try doing it with broadcast, and listen it in activities
which you want to close.

If you did, look at device CPU status. Maybe your devise is down!!!

Or another way is saving your own activity stack, and consequentially
finish.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One day sale made my paid app free, now I cannot revert!

2010-09-08 Thread Nik Bhattacharya
I got bitten by this on my app.  I changed from paid to free, and
couldn't revert.  I had to pull the app from the market unfortunately
and repackage and re-list.  Not very intuitive from the developer
console (there should atleast be a warning that the developers get
when going from paid to free).  Yes, one could point to the legal
wording, but c'mon, we are developers and not lawyers and a little
warning dialog would really help.  Changing the packaging and
unlisting the app is really disruptive for both users and developers.

On Sep 7, 9:59 pm, TreKing treking...@gmail.com wrote:
 On Sun, Sep 5, 2010 at 11:12 PM, coneybeare coneybe...@gmail.com wrote:
  What can I do?

 Post your problem / question once. Posting the same issue twice is not going
 to help it get back to paid.

 --- 
 --
 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


  1   2   3   >