[android-developers] A Question regarding Android system preferences: Settings.Secure

2010-05-21 Thread Android Development
Hello,

This is regarding the DATA_ROAMING property given here:
http://developer.android.com/reference/android/provider/Settings.Secure.html#DATA_ROAMING

What exactly does it mean to enable/disable data roaming ? If the user is
roaming in the same access technology (say GSM), then handoffs will take
place automatically.

In which context is this property used ?

Thanks in advance

Best Regards

Indodroid.

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

2010-05-21 Thread Maps.Huge.Info (Maps API Guru)
Latest results:

 campaign  | impressions | clicks | ctr
+-++--
 Punching for Health|   14300 |195 | 1.36
 ArmaBoing  |6763 |101 | 1.49
 Google Voice Call Ad  |   14292 |237 | 1.66
 My College Life Beta   |   14293 |251 | 1.76
 PuzzleQube|   14294 |305 | 2.13
 What Zip Code?  |   10226 |300 | 2.93

I'd like to open this up to more apps. Please send me the information
on any apps you're interested in advertising in this experiment. I'll
raze the levels to 1000 downloads paid or 5000 downloads free.

-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: Help!!!! Live streaming (from DSS to android)

2010-05-21 Thread debelyoo
Hello Jez,

I'm facing the same problem. I posted another post (http://
groups.google.com/group/android-developers/browse_thread/thread/
ebb4ca5b298a8d92/1d00336c835d1ccb?lnk=gstq=debelyoo#1d00336c835d1ccb)
about this issue but I have not received any solution yet.

Any help would be much appreciated.

Jean

On May 20, 5:00 pm, Jez jeremy.a.co...@baesystems.com wrote:
 Does anyone know if the latest 2.1 SDK supports LIVE video streaming
 playback in Android.

 My setup is using a video decoder which receives a Live video stream
 to VLC, which in turn sends this to Darwin Streaming Server, I then
 open (android emulator) the media player demo on  rtsp://server ip/
 stream.sdp.

 DSS shows that the Android emulator is connected and has requested the
 stream.sdp, however the buffering on Android shows repeatedly as 0%
 with no output of the live video stream shown.

 The Question---
 Does this mean that Android (as standard) does not support LIVE rtsp
 video streaming ?

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

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


[android-developers] Multiple Window support on Android?

2010-05-21 Thread Karthik Ravi Shankar
Hi,

I'm an application developer, trying to develop a graphics application. I
have been trying to get multiple windows each rendering their view up for
quite sometime with no headway. I have gone through the documentation but
have not come across any technique to enable multiple window support. Does
Android have multiple window support as of now? If so, can anybody give me a
pointer to some help.

Thanks in advance,
Karthik.

-- 
Karthik R
Graduate Student
Computer Science Department
UCLA

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: I've found a way to stop piracy of my apps

2010-05-21 Thread Ivan Greene
for me, I am developing an app that I think will be heavily pirated.
my idea to stop that is to require the user to update with each update
I make (maybe once every 2 weeks or so), which would require them to
buy it.
the app needs to connect to my server anyway, so if it connects with
an older version number, it tells the user to update. simple!

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


[android-developers] Open Mic failed on Froyo emulator

2010-05-21 Thread Alger, Lin
I got new SDK today, and test my program on emulator. However, I can't
open Mic on 2.2 emulator, it's work on earlier emulator, my code list
below.

new AudioRecord(AudioSource.MIC,
16000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT,
iMinSize);

And I got log below.

ERROR/AudioRecord(878): Could not get audio input for record source 1
ERROR/AudioRecord-JNI(878): Error creating AudioRecord instance:
initialization check failed.
ERROR/AudioRecord-Java(878): [ android.media.AudioRecord ] Error code
-20 when initializing native AudioRecord object.

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

2010-05-21 Thread laphroaig15
Built a similar solution a few months ago that integrates with Google
and Atlassian issue trackers.  heroicefforts.github.com/Viable.

On May 20, 6:46 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:
 Hello Justin,

 handleException() handles your caught exceptions exactly the same way
 uncaught exceptions are handled, so if you configured ACRA to notify
 the user when an error occurs, you will issue a notification on each
 call to this method.

 Sorry for the Import/Upload confusion... For me the Google Docs UI is
 in french and this button is labeled Importer so I assumed the
 translation was Import... I was wrong. I'll correct this. Thanks !

 Kevin

 On 20 mai, 21:18, Justin Edwards howfar...@gmail.com wrote:





  I have also added the logging into my application. Within 10 minutes I
  had my first bug report..  :(   (Even before I got the update
  installed on my device.)

  I had no problems getting everything added into my application again
  thanks to your HowTo.  (Only issue I had was uploading the csv file...
  i was looking for a Import option but within docs it is called Upload
  (stupid I know))

  Since I have put this in I have found about a total of 10 bugs..  All
  of them are small and silly bugs but 1.  So I got them all fixed
  up For now.  :)

  I do have one question when you use the:

  ErrorReporter.getInstance().handleException(e);

  Is the report that is sent silent to the user?  Is there a way to send
  a silent report? Or will the user get notified event though we are in
  a try catch?

  Thank you!
  Justin

  On May 20, 8:35 am, Kevin Gaudin kevin.gau...@gmail.com wrote:

   Thanks Tobias for using the lib !

   All the sources are available on GoogleCode's 
   SVN:http://code.google.com/p/acra/source/checkout.

   The main help we need now is developers to test the v2 stability with
   its different notification modes and on different android hardware/
   versions so that we can go out of the testing phase ;-).

   I'm also waiting for details about the officialreportingwhich
   should be announced today at Google I/O. This might lead to some
   adaptation in the code of ACRA depending on the availability of this
   newreportingacross android versions.

   Though, the acra-2.0.0-test version is already clean enough to coexist
   with the newreportingfeature which is activated on my Nexus One
   since yesterday... the behaviour I implemented is to disable the
   default Force Close dialog when ACRA is configured with Toast or
   Status bar notification mode. This prevents the user from beeing
   offered several errorreportingsystems.

   Kevin

   On May 19, 9:59 pm, Clankrieger tob...@googlemail.com wrote:

Hi Kevin,

I includedACRAin my app - it waseasyto implement and your HowTo is
absolutely excellent. I already got twocrashreports that gave me a
much better glue than the usual crashes on foo-phone-1-star-
comments. :)
I'm eager to take a look into the sources as well, they should be
available by google code subversion access, isn't it? If you need any
specific feedback, help or similar, please let me know!

Cheers,
Tobias

On 19 Mai, 07:59, Kevin Gaudin kevin.gau...@gmail.com wrote:

 Hello,

 Just to inform you that there was a missing configuration item in the
 usage guide for v2 when using the status bar notification mode. You
 have to add an activity (provided byACRA) with specific attributes in
 your android manifest.

 The usage guide for v2 has been 
 updated:http://code.google.com/p/acra/wiki/ACRAHowTo2

 Kevin

 On 18 mai, 02:57, Kevin Gaudin kevin.gau...@gmail.com wrote:

  It is and will stay published as an open source project under Apache
  license. So you are free to use it in any app, free or not, open
  source or not.

  Please test it and let us know your feedback/issues ! ;-)

  Kevin

  On 17 mai, 22:18, String sterling.ud...@googlemail.com wrote:

   On May 17, 8:39 pm, Yahel kaye...@gmail.com wrote:

What licence do you release it under ?

   The project says it's Apache-licensed. Unless they're planning a
   change of license for v2, we should be OK.

   String

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

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

[android-developers] how to transfer a geopoint from a mapActiviy to the other activity

2010-05-21 Thread xhy
hi all,i want to  transfer a geopoint from a mapActiviy to the other
activity,the code is below:

  Geopoint p= items.get(i).getPoint();
   Intent intent=new Intent();
Bundle bundle=new Bundle();
bundle.putSerializable(key, (Serializable)p);
intent.putExtras(bundle);
intent.setClass(TaoMapMain.this, ShopActivity.class);
   startActivity(intent);

But the the system  exists a error java.lang.ClasscastException,who can
offer me a best methods? if i transfer  latitude and logtitude,then it is a
fool way! any best method?
-- 
xhy

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

[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread ko5tik


On 21 Mai, 07:36, yuku yuk...@gmail.com wrote:
 I got 8 bugs in total for my app, dated
 May 5, May 13, and May 21.

 How could those bug reports be there, when Froyo is not even released?


apparently your app is used by someone who gets access to fresh
android
images ( well, I got onyl 2 bugs - either my app is  really high
quality or not
interesting ;) )

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


[android-developers] HTTP Post parameters don't show up on server

2010-05-21 Thread Patrick
Hallo!

I'm trying to send some json object as postparameters using the
httpclient. Therefore on the (android) client I use the following
code:
 HttpClient httpclient = new DefaultHttpClient();
HttpPost httpPostRequest = new 
HttpPost(http://10.0.2.2/TestServlet?
testParameter1=Test);

//doesn't work
HttpParams params = new BasicHttpParams();
params.setParameter(data, data2send);
httpPostRequest.setParams(params);

//doesn't work either
ListNameValuePair nameValuePairs = new 
ArrayListNameValuePair();
nameValuePairs.add(new BasicNameValuePair(data, data2send));
httpPostRequest.setEntity(new
UrlEncodedFormEntity(nameValuePairs, HTTP.UTF_8));


httpPostRequest.setHeader(Accept, application/json);
httpPostRequest.setHeader(Content-type, application/json);
httpPostRequest.setHeader(Accept-Encoding, gzip);

long t = System.currentTimeMillis();
HttpResponse response = (HttpResponse)
httpclient.execute(httpPostRequest);
System.out.println(HTTPResponse received in [ +
(System.currentTimeMillis() - t) + ms]);


On the server side, I'm using a servlet and doing the following:

public doPost(HttpServletRequest request, HttpServletResponse
response) throws Exception {
String data = (String)request.getParameter(data);
System.out.println(Data= +data);
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
  String paramName = (String)paramNames.nextElement();
  System.out.println(paramName);
}
}

Unforunately the variable data is null.
And priting out all parameters only gives me the testParameter1, which
I added to the URL... Do you have any idea, what goes wrong?

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


Re: [android-developers] Re: I've found a way to stop piracy of my apps

2010-05-21 Thread Tomáš Hubálek
I think that this is also way. But some users hate updates (I got feedback
that my app has too often updates ;-) ).

I still think that Google should provide API for programmatical verification
whether user bought given copy or not.

Tom

On Fri, May 21, 2010 at 8:14 AM, Ivan Greene ivant...@gmail.com wrote:

 for me, I am developing an app that I think will be heavily pirated.
 my idea to stop that is to require the user to update with each update
 I make (maybe once every 2 weeks or so), which would require them to
 buy it.
 the app needs to connect to my server anyway, so if it connects with
 an older version number, it tells the user to update. simple!

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




-- 
---
Tom Hubalek (tom.huba...@gmail.com), http://blog.hubalek.net/
http://facebook.com/thubalek, http://twitter.com/thubalek
http://www.linkedin.com/in/thubalek

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

[android-developers] Searching for Vumeter or needle indicator

2010-05-21 Thread sandma...@libero.it
Hi,

I'm searching for a VUMeter or a needle indicator component, like the old 
instrumentation or the old hifi equipment had.

Is there anything available?

Ciao

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


回复: [android-developers] Memory leaks???

2010-05-21 Thread Jiang
My God. The statements to send messages cause memory leak. I should use the 
following statements instead.
Message message = m_handler.obtainMessage();
message.what = 1;

message.what = obj;
message.sendToTarget();

--- 10年5月21日,周五, Jiang webs...@yahoo.cn 写道:

发件人: Jiang webs...@yahoo.cn
主题: [android-developers] Memory leaks???
收件人: android-developers@googlegroups.com
日期: 2010年5月21日,周五,上午11:50

1, In a thread, I send a gread many of messages with followign statements:
Message message = new Message();
message.what = 1;
message.what = obj;
m_handler.sendMessage(message)
message = null;

2, In a acvity
class MyActivity extends Activity
{
class MyHandler extends Handler
{
public void handleMessage(Message msg)
{
handleActivityMessage(msg);
}
}

public handleActivityMessage(Message msg)
{
   
 
}
}


When returned from MyActivity, System.gc() is called, but I found the memory 
usage grows compared to the stage before entering MyActivity, does memory leak 
during message processing?


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


  

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

2010-05-21 Thread Urizev


On May 1, 12:13 am, fadden fad...@android.com wrote:
 On Apr 30, 1:22 pm, Mariano Kamp mariano.k...@gmail.com wrote:

  I am wondering if there is any way to debug aSIGSEV? I have not much
  experience with those native crashs. This issue only seems to happen with
  the HTC Incredible and I would at least guess that my Java code cannot be
  the actual cause, but maybe there is something I can do to avoid triggering
  it?
 [...]
  04-30 15:33:23.514 D/dalvikvm( 1263): GC freed 10573 objects / 916872 bytes
  in 64ms
  04-30 15:33:23.534 E/webcoreglue( 1263): The real object has been deleted
  04-30 15:33:23.634 I/DEBUG   (   57): *** *** *** *** *** *** *** *** ***
  *** *** *** *** *** *** ***
  04-30 15:33:23.634 I/DEBUG   (   57): Build fingerprint:
  'verizon/inc/inc/inc:2.1-update1/ERE27/161493:user/release-keys'
  04-30 15:33:23.634 I/DEBUG   (   57): pid: 1263, tid: 1264   com.newsrob
  

 Since it's not a Google build I can't decode the stack trace.  If you


How do you decode the stack trace? Is it possible for anyone to do
that?


 have an APK and series of steps that reproduces the problem reliably,
 post a bug on b.android.com with the APK attached.  If we can make it
 happen on one of our devices we can dig further.  If not, it may be
 specific to the Incredible and you will have to work with HTC.

 Based on the log message and the library list it looks like it could
 be a libskia (graphics library) problem.

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

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


[android-developers] Re: Problem while passing aray list to next activity in widget application

2010-05-21 Thread sunita
Thank u so much for ur reply

Actually i soved the problem
I have created this app widget in android 1.6 and I was testing this
application on android 2.1.Thats why I was getting this peroblem
Now I have created application in android 2.1 and I have used old
source code..Now its working fine...





On May 20, 11:00 pm, TreKing treking...@gmail.com wrote:
 On Thu, May 20, 2010 at 2:08 AM, sunita 
 sunita.mahadevkhil...@wipro.comwrote:

  Please give me suggestions for this problem.

 Post the relevant code that's not working.

 On Thu, May 20, 2010 at 2:18 AM, Tommy droi...@gmail.com wrote:
  Why not save the object to a global variable and access it in your
  next activity?

 Because this is hack that goes against the Android way of data and message
 passing and will lead to problems - like if you press Home after going to
 the second activity, get booted from memory, and come back to that activity.
 Your static data will be null and your second activity will die a horrible
 death.

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

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

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


Re: [android-developers] Re: Multitouch / Pinch To Zoom in Android 2.2?

2010-05-21 Thread Mariano Kamp
No, that is not the case. Since 2.1 update 1 pinch to zoom works on the N1
(and Milestone), but only when this is set:
http://developer.android.com/intl/zh-TW/reference/android/webkit/WebSettings.html#setBuiltInZoomControls(boolean)

Looking at the code would not tell me what the API changes are. And as I
said I didn't find in the official documentation. So it likely isn't there
until I don't look in the right place.

On Fri, May 21, 2010 at 5:22 AM, Nerdrow troybe...@gmail.com wrote:

 There is no generic multitouch, you interpret MotionEvents and
 perform the zoom yourself.  Looks like they made this easier in 2.2 w/
 ScaleGestureDetector, which at a glance looks to be the same as the
 class in Gallery2.  You can read that code to see how its implemented.

 On May 20, 6:54 pm, Mariano Kamp mariano.k...@gmail.com wrote:
  Hi.
 
  In Android 2.1 update 1 multitouch was silently added. Unfortunately
  it is only available when also the zoom picker is **active**?! I am
  sure there are cases where that setting makes sense, but it was not
  possible to separately turn on one or the other.
  I thought they didn't want to change the API with with an update-1
  and would now surface the API in Android 2.2.
  At least my initial check didn't turn up anything in that respect though
 ;-(.
 
  Also I don't know if multi-touch pinch/zoom still works in Android
  2.2, because I don't know how to test it on the emulator. Does anybody
  know or has other insights to share?
 
  On a sidebar. Do I see this right? The developers get the new Android
  version before their users? Loving it! Thanks.
 
  Cheers,
  Mariano
 
  Btw. OT, but the first 45 minutes of the keynote totally rocked. Much
  better than the latest three Steve Notes combined.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 athttp://
 groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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] Android Market Developer Console Bugs IS NOT WORKING properly for me.

2010-05-21 Thread Tomáš Hubálek
I have trouble with this feature.

Data there are inconsistent!. On dashboard I have TWO new bugs. Going
down I see one NEW and one OLD. When I click on NEW link I see one OLD
only. When I go down I see bug marked as OLD.

More info for Android Market developers: application:
net.hubalek.android.worldclock, Exception class
java.lang.NullPointerException Source method
WorldClockWidget.onReceive()

Fixing this would be really appreciated.

Thanks
Tom

P.S. Is there any official way how to report bugs like this?

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


[android-developers] Re: capture outgoing sms in android

2010-05-21 Thread Nandan .
h can any one help me how to capture outgoing sms in android..

thank you
bhavesh

On Thu, May 20, 2010 at 4:33 PM, Nandan . bhavesh2...@gmail.com wrote:


 Hii.

 In android there is a broadcast Receiver for incoming SMS.

 but in my application i want to capture outgoing SMS through code it
 is possible in android.
 There is no any Receiver for outgoing SMS.

  how can i implement to capture outgoing SMS.

 if any one have idea plz reply me..

 Thank you very much

 With Regrads
 Bhavesh




-- 
B!-!/-\\/!=$!-!

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

[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread westmeadboy
Does anyone know whether it works for apps not installed via the
Market (but which do exists on the Market)?

Hmmm, I doubt it since if it did, then all the bugs during testing
would appear there...

On May 21, 8:35 am, ko5tik kpriblo...@yahoo.com wrote:
 On 21 Mai, 07:36, yuku yuk...@gmail.com wrote:

  I got 8 bugs in total for my app, dated
  May 5, May 13, and May 21.

  How could those bug reports be there, when Froyo is not even released?

 apparently your app is used by someone who gets access to fresh
 android
 images ( well, I got onyl 2 bugs - either my app is  really high
 quality or not
 interesting ;) )

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

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


[android-developers] Re: samsung app store

2010-05-21 Thread Piotr Buła
Why would users need another Android app store? Let's see:
- paid apps (for users)
- paid apps (for developers)
- browsing through a website
- buying through a website
- payment methods different then Google Checkout
- no trash apps (some form of quality standards)
- and all of this in their native language

Those are just a few reasons that immediately come to mind (and there
are plenty more if you think about it). Where I live, Android Market
does not offer any of the above. And this is true for ~90% of the
countries where Android devices are officially available.

Cheers

On May 20, 6:40 pm, Gabriel Simões gsim...@gmail.com wrote:
 . something to think about ...

 Why would users need another App Store for the same plataform if it
 doesn´t add anything better than the ones we have already?

 - cut --

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

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


[android-developers] Installing mysql, apache servers in Android

2010-05-21 Thread Ashok Jeevan
Hi,

Is it possible to install MySQL and Apache servers on an Android device?

One of the requirement was that the Android app has to communicate with a
local server via Wifi (via browser for accessing PHP pages).

Instead of that, the whole server side (including MySQL, Apache), has to be
transferred and hosted on the Android device, so that the device doesn't
have to use the Wifi.

Is this possible?

Thanks,
Ashok

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

2010-05-21 Thread Krishna Mohan
SoundRecorder has it.

On Fri, May 21, 2010 at 12:26 PM, sandma...@libero.it
sandma...@libero.itwrote:

 Hi,

 I'm searching for a VUMeter or a needle indicator component, like the old
 instrumentation or the old hifi equipment had.

 Is there anything available?

 Ciao

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: PVMFFailure when using MediaPlayer for radio streams

2010-05-21 Thread MobDev
so there is actually still no solution ?
We have a new and modern platform which cannot stream mp3's or aac
from the net ?
Well I guess we didn't move that far from j2me at all, this is still a
very frustrating MediaPlayer class...


On 19 mei, 00:25, rooster 808 rich.al...@gmail.com wrote:
 here's a link to a file that has a correct header, but gives the
 PVMFailure error in the Media Player. Pretty frustrating. I find
 dozens of these a day that are valid files w/Android 2.1

 http://www.fileden.com/files/2009/11/2/2634160/Julian%20Shah-Tayler%2...

 tnks,
 rich

 On Mar 29, 8:35 am, dillirao malipeddi dillir...@arijasoft.com
 wrote:



  Arijasoft developed android online radio SDK

  using this AOR SDK you can play shoutcast/icecast ( mp3/aac) radio streams
  on android

  for more details look in 
  tohttp://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.php

  http://demos.arijasoft.com/Arija_Android_Dev/aorsdkrelease.phpThanks

  On Tue, Feb 16, 2010 at 1:08 PM, Kamal Hasan kamal.hasa...@gmail.comwrote:

   Hi,

    Any one has tried with HTTPS on media player

   I am getting Command PLAYER_SET_DATA_SOURCE completed with an error
   or info PVMFErrNotSupported Error.

   I am able to play the file on http but failed to play on HTTPS. Can
   you help me in this regard.

   Kamal

   On Feb 11, 10:42 pm, Steve steveoliv...@gmail.com wrote:
I can make this work on 1.6 with this linkhttp://
  www.colorado.edu/AmStudies/lewis/Design/blue.mp3

What is the url you are trying to connect to?

On Jan 29, 6:08 am, David trend...@gmail.com wrote:

 ps-I am using version 1.5 on a HTC phone

 On Jan 14, 9:48 pm, Tanmay tanm...@gmail.com wrote:

  I tried doing this in 1.6 but still gave me the Prepare Failed 0x1
  error along with thePVMFFailurein the log.
  Has there been any solution to this one developed yet?

  On Dec 14 2009, 10:13 pm, YaushiIizuka vse5...@gmail.com wrote:

   Hi.

   String url = http://your.url;;
   MediaPlayer mp = new MediaPlayer();
   mp.setDataSource(url);
   mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
   mp.prepare();
   mp.start();

   On 10月23日, 午後3:28, dede dede830...@126.com wrote:

Hi,
In 1.6,I also try to play stream through setDataSource(http://
xxx/.mp3),
but also it return IOException: prepare failed, status=0x1.
If set the url into windowsmediaplayer, it can play correctly, I
wanna know your problem whether be resolved?
If yes, can u tell me the solution,thanks very much.

On 10月7日, 上午5时41分, iwhoyt wallace...@hotmail.com wrote:

 In 1.5 I was able to stream an mp3 over http by passing the 
 url
   to
 setDataSource(). However I started gettingPVMFFailures in 1.6.
   For
 me the issue was the Content-Type http header. If the header
   was set
 correctly (Content-Type: audio/mpeg), the stream played.
   Otherwise if
 failed during PLAYER_INIT.

 On Sep 2, 2:32 am, siliconeagle rrmu...@gmail.com wrote:

  Also the URl is a http (MP3) stream URL - as opposed tioo
   other opost
  where RTSP is being tried. It looks like it should just 
  work.
   Has
  anyone else got streaming working via a streaming URL?

  On Sep 1, 1:24 pm, siliconeagle rrmu...@gmail.com wrote:

   I am trying to build streaming radio into my app, which
   works fines
   streaming files over the internet, but when i try to use a
   shoutcast
   url in get the error below, which from the soruce code
   looks liek the
   mediaPlayer is looking for the duration in the header. 
   Does
   anyone
   know if shoutcast urls will work withthe
   defaultmediaplayer? Or do i
   have to download chunks into a ping-pong buffer sor
   something? The url
   has no porblems downloading via the browser.

   the error is:-

   09-01 11:53:25.634 E/MediaPlayer(16972): stop called in
   state 1
   09-01 11:53:27.324 D/BatteryWidget(15623): Updating Views
   09-01 11:53:30.445 E/PlayerDriver(   35): Command
   PLAYER_INIT
   completed with an error or infoPVMFFailure
   09-01 11:53:30.445 E/MediaPlayer(16972): error (1, -1)
   09-01 11:53:30.504 I/NotificationService(   55):
   enqueueToast
   pkg=net.robmunro.mypod
   callback=android.app.ITransientNotification$Stub
   $pr...@4323b8f8 duration=1000
   09-01 11:53:30.514 W/System.err(16972):
   java.io.IOException: Prepare
   failed.: status=0x1
   09-01 11:53:30.644 W/System.err(16972): at
   android.media.MediaPlayer.prepare(Native Method)
   09-01 11:53:30.644 W/System.err(16972): at
   net.robmunro.mypod.util.MediaPlayerWrapper.playMedia
   (MediaPlayerWrapper.java:111)

   the code i use is:-
   try {
           

[android-developers] View Transition like book page

2010-05-21 Thread Koushik Majumder
Hi All
 I am developing and book reading application where I want a next page
transition like book page.
at this moment I have used flipper but it not looks good.
 In iPhone it is possible with curl transition.
 so is it possible in android? if yes then how? please help..

Thanks

-- 
Koushik Majumder
9836757782

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

2010-05-21 Thread Chi Kit Leung
I don,'t think so. If you rooted your phone that may be possible. But that
will overload your device

On May 21, 2010 6:16 PM, Ashok Jeevan ashokjee...@gmail.com wrote:

Hi,

Is it possible to install MySQL and Apache servers on an Android device?

One of the requirement was that the Android app has to communicate with a
local server via Wifi (via browser for accessing PHP pages).

Instead of that, the whole server side (including MySQL, Apache), has to be
transferred and hosted on the Android device, so that the device doesn't
have to use the Wifi.

Is this possible?

Thanks,
Ashok

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

R: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-21 Thread sandma...@libero.it

Messaggio originale

Da: krishnada...@gmail.com

Data: 21/05/2010 10.25

A: android-developers@googlegroups.com

Ogg: Re: [android-developers] Searching for Vumeter or needle indicator



SoundRecorder has it.

Ok, but how can I use it in my apps, i.e. is there any source of it?
Ciao

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

2010-05-21 Thread blindfold
Will Google allow Android applications to grab and process individual
video frames of the currently selected channel in Google TV sets? I
would be interested in that, and the process can be very similar to
capturing preview images from a (second) camera.

Thanks


The vOICe for Android
http://www.seeingwithsound.com/android.htm

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

2010-05-21 Thread Jiang
1, Cache all messages's hash code on the phone
2, Register an content observer for content://sms
3, In onChange method of observer, enumrate all messages to check if it is in 
cache, if not, the message is sent out just now.

--- 10年5月21日,周五, Nandan . bhavesh2...@gmail.com 写道:

发件人: Nandan . bhavesh2...@gmail.com
主题: [android-developers] Re: capture outgoing sms in android
收件人: android-developers@googlegroups.com
日期: 2010年5月21日,周五,下午3:42

h can any one help me how to capture outgoing sms in android..
thank youbhavesh

On Thu, May 20, 2010 at 4:33 PM, Nandan . bhavesh2...@gmail.com wrote:


Hii.
In android there is a�broadcast Receiver�for incoming SMS.

but in my application i want to capture outgoing SMS through code it 
is�possible�in android.
There is no any�Receiver�for outgoing SMS.
�how can i implement to capture outgoing SMS.
if any one have idea plz reply me..
Thank you very much


With Regrads
Bhavesh



-- 
B!-!/-\\/!=$!-!





-- 

You received this message because you are subscribed to the Google

Groups Android Developers group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, send email to

android-developers+unsubscr...@googlegroups.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 debug SIGSEV?

2010-05-21 Thread yangm
See here: addr2line
http://groups.google.com/group/android-developers/browse_thread/thread/73f89bb8739c24bb/e5c7fd02dfbc74fd?q=stack+trace+addr2line+faddenpli=1

2010/5/21 Urizev uri...@gmail.com



 On May 1, 12:13 am, fadden fad...@android.com wrote:
  On Apr 30, 1:22 pm, Mariano Kamp mariano.k...@gmail.com wrote:
 
   I am wondering if there is any way to debug aSIGSEV? I have not much
   experience with those native crashs. This issue only seems to happen
 with
   the HTC Incredible and I would at least guess that my Java code cannot
 be
   the actual cause, but maybe there is something I can do to avoid
 triggering
   it?
  [...]
   04-30 15:33:23.514 D/dalvikvm( 1263): GC freed 10573 objects / 916872
 bytes
   in 64ms
   04-30 15:33:23.534 E/webcoreglue( 1263): The real object has been
 deleted
   04-30 15:33:23.634 I/DEBUG   (   57): *** *** *** *** *** *** *** ***
 ***
   *** *** *** *** *** *** ***
   04-30 15:33:23.634 I/DEBUG   (   57): Build fingerprint:
   'verizon/inc/inc/inc:2.1-update1/ERE27/161493:user/release-keys'
   04-30 15:33:23.634 I/DEBUG   (   57): pid: 1263, tid: 1264  
 com.newsrob
   
 
  Since it's not a Google build I can't decode the stack trace.  If you


 How do you decode the stack trace? Is it possible for anyone to do
 that?


  have an APK and series of steps that reproduces the problem reliably,
  post a bug on b.android.com with the APK attached.  If we can make it
  happen on one of our devices we can dig further.  If not, it may be
  specific to the Incredible and you will have to work with HTC.
 
  Based on the log message and the library list it looks like it could
  be a libskia (graphics library) problem.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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

2010-05-21 Thread FrankG
Thanks a lot for this hint.

But in my case I have an independent  GUI in a seperate prozess.

I must check whether I can avoid this and use this local binding
pattern.

Thanks a lot !

   Frank



On 19 Mai, 09:46, redders redders6...@googlemail.com wrote:
 Looking into this further - I now understand the local binding pattern
 that Mark mentioned. There's a good example in the api section of the
 code examples that ship with the android SDK.

 Essentially as we are not using more than one process there's no need
 for IPC (*inter process* communication) interfaces defined in AIDL.
 Objects passed do not need to be marshalled across the barriers in the
 same way they would with a remote service running in a separate
 process.

 I strongly advise you to take a look at:
 [SDK DIRECTORY]/samples/ApiDemos/src/com/example/android/apis/app/
 LocalServiceBinding.java  (an activity to bind to a local service)
 and
 [SDK DIRECTORY]/samples/ApiDemos/src/com/example/android/apis/app/
 LocalService.java (the service itself).

 On May 19, 8:06 am, FrankG frankgru...@googlemail.com wrote:





  At first many thanks to Mark Murphy for his very detailed answer.

  To the last post : I must say I use currently a mixture between
  1) and 2) ..

  In my case the service uses Intents to inform othter apps.

  And the services provides an interface via aidl.

  But I also thinking about a pure 1) Intent only solution.

  From Marks post I got the suggestion, to use a start intent , when
  something
  happens on service side and no activity callback handle ist set, to
  send a start intent.

  The service can keep a kind of status flag, to know, whether the
  corresponding
  activity is running. And the activity on the other side must send an
  intent to the service,
  when the activity will be finished ?

  Is this a bad design ?

  Thanks a lot !

    Frank

  On 18 Mai, 22:48, redders redders6...@googlemail.com wrote:

   Hi,

   I have a similar question. My application has a long running service
   that acts as a TCP client. There is also an activity which needs to be
   able to pass messages to the service which will then send them to the
   TCP server. In turn, the service needs to 'forward' the reply it gets
   from the TCP Server to the activity, which performs an action as a
   result.

   I understand there are [at least] two ways to deal with this:

   1. Broadcast receivers and intents: The service and activity each
   register a broadcast receiver, and broadcast intents to communicate
   with each other, using putExtras for the data.

   2. IPC using AIDL. I define two interfaces (activity to service, and
   service to activity), make my TCP message class implement parcelable.
   When my activity starts up, I bind to the service (if running, or
   create it if not), then receive the Service-Activity aidl Stub, then
   use a method defined within that to pass the Activity-Service Stub.
   Service and client now both have IPC Stubs and can call the each
   other's methods that have been defined in the interfaces.

   So my questions:
   i) is the above roughly correct?
   ii) are there any other sensible ways to do it? (e.g. I have heard the
   term Local binder / local binding pattern in the last post - is that
   the same as [2]?)
   iii) which is most appropriate for my situation?

   Any help would be much appreciated - this is really confusing me.

   Cheers

   ~redders.

   On May 3, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote:

FrankG wrote:
 I have short question to your example :

 If I understood it right, the Broadcast from the WeatherPlusService
 will not start
 up the WeatherPlus Activity ?

Correct. In this case, the WeatherPlus activity is already running.

 So how must the example be changed, that the first broadcast will
 startup the activity
 and the next ones are normal broadcast to send the new status to the
 activity.

 I know that I can use startActivity(Intent) to startup the
 activity ..and use then sendBroadcast(Intent),
 but you cannot know, whether then your Activity is still running.

Sure you can, though the sendBroadcast() model is probably not the right
one to use.

Have the activity bind to the service using the local binding pattern
and have it register a callback/listener object with the service once 
bound.

When the devise status changed, the service looks to see if it has a
listener from an activity.

-- If yes, it calls a method on that listener to tell the activity to
display the dialog or whatever.

-- If no, the service starts the activity with an extra indicating hey,
please go ahead and pop up that dialog, please

Bear in mind that popping up an activity from a service is a very bad
practice except in unusual circumstances (alarm clock, incoming phone
call). If the user is in the middle of doing something else, and you
interrupt them forcibly, and they 

Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-21 Thread Krishna Mohan
What is your actual requirement, you have said u want a VU meter but in what
case scenario you want that meter.
In SoundRecorder the VU meter needle moves depending on the audio input.
You may get the .apk from internet.

Regards,
-Krishna

On Fri, May 21, 2010 at 3:00 PM, sandma...@libero.it sandma...@libero.itwrote:

 Messaggio originale
 Da: krishnada...@gmail.com
 Data: 21/05/2010 10.25
 A: android-developers@googlegroups.com
 Ogg: Re: [android-developers] Searching for Vumeter or needle indicator

 SoundRecorder has it.


 Ok, but how can I use it in my apps, i.e. is there any source of it?


 Ciao

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] GOOD NEWS: Android Latest SDK 2.2(Froyo) is available now

2010-05-21 Thread Gulfam
Hi All,

 Congtrates to Adroid Devloper's Team on launching latest SDK
2.2(Froyo).
Get it now from  http://developer.android.com/


Cheer,
Gulfam Hassan
SSE @ Macrosoft Pakistan


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

2010-05-21 Thread Ke Wu
I solved this problem by using FrameLayout.
The control panel I created is not a window, but a view, a part of the main
activity, and I used Animation to show/hide this 'panel' so it would be
looked like a real panel.
Fortunately this view could match all my requirement.

2010/5/20 KerlW kerl@gmail.com

 I want to create a panel to my main activity, this panel could show
 and hide , just like the MediaController of VideoView.
 First I want to write my owen ControlPanel just like MediaController,
 but I found that it is impossible for me to create a new window by
 calling PolicyManager.createNewWindow(contex); just an MediaController
 do.
 SO , how could I create a new window? Or is there other way to
 implement this floating panel??

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

2010-05-21 Thread Juan Delgado
+1

I think in the future companies building apps will sell them through
their own channels. Sure you can buy Photoshop from many places
(including Adobe's website), not only on a single store? At the end of
the day you just buy it from the channel you trust.

Also, I think things like Linux repositories are really good, but
because the people maintaining those repositories have FULL ACCESS to
the source code of the apps they host. That's a BIG, BIG difference.
How's Apple / Google whoever going to assure that there's no malware
in ALL the apps they host?

I for one welcome multiple app stores, where each of those stores
compete for a better service both to users and developers.

J

On Fri, May 21, 2010 at 8:58 AM, Piotr Buła piotr.b...@gmail.com wrote:
 Why would users need another Android app store? Let's see:
 - paid apps (for users)
 - paid apps (for developers)
 - browsing through a website
 - buying through a website
 - payment methods different then Google Checkout
 - no trash apps (some form of quality standards)
 - and all of this in their native language

 Those are just a few reasons that immediately come to mind (and there
 are plenty more if you think about it). Where I live, Android Market
 does not offer any of the above. And this is true for ~90% of the
 countries where Android devices are officially available.

 Cheers

 On May 20, 6:40 pm, Gabriel Simões gsim...@gmail.com wrote:
 . something to think about ...

 Why would users need another App Store for the same plataform if it
 doesn´t add anything better than the ones we have already?

 - cut --

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

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



-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

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


R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-21 Thread sandma...@libero.it
---Messaggio originale
Da: krishnada...@gmail.com
Data: 21/05/2010 11.41
A: android-developers@googlegroups.com
Ogg: Re: Re: [android-developers] Searching for Vumeter or needle   
indicator

What is your actual requirement, you have said u want a VU meter but in what 
case scenario you want that meter.

Hi,I need a VU meter component to include it in an application I'm writing 
right now. The scenario is to avoid to reinvent the wheel, i.e. if somebody has 
already done such an object and put it on the internet as open source, that's 
what I'd need.Ciao

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

2010-05-21 Thread Tomáš Hubálek

On 20 kvě, 16:12, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:
 On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

 First the OP didn't talk about using a preprocessor for xml.  I would
 agree that that would be odd and there are better tools for that.  Still
 a preprocessor could be used to conditionally include a resource by id.  
 How about I give you some concrete examples and you can help me see the
 light?

 
 Example 1
 
 //#if BETA
      if ( hasBetaExpired() )
          System.exit( 0 )
 //#endif
 
 Example 2
 
 public final class Assert
 {
         public static final void RIP( final String msg )
         {
 //#if BETA
                 sendReport( msg );
 //#endif
                 System.exit( 0 );
         }}

 
 Example 3
 
 public class Debug
 {
         void Println( String msg )
         {
 //#if !RELEASE          
                 Log.d( TAG, msg );
 //#endif                
         }}

 
 Example 4
 
 //#if PLATFORM_BLACKBERRY              
 //@     omega = (float)MathUtilities.acos( cosom );
 //#else              
         omega = (float)java.lang.Math.acos( cosom );
 //#endif              
 
 Example 5
 
 public static final float VecToHeading( float x, float y )
 {
 //#if PLATFORM_BLACKBERRY
 //@     float    fAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f), 
 (int)(y * 65536.0f) )) / 65536.0f;
 //#else
         float    fAngle = ((float)Math.atan2( x, y )) * 
 57.295779513082320876798154814105f;
 //#endif
         if ( fAngle  0.0f )
                 return fAngle + 360.0f;

          return fAngle;

 }

Leigh,

have you ever heard about design patterns? Eg. strategy IMHO can solve
all your requests.

Tom

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

2010-05-21 Thread Kevin Gaudin
Android's windows implementation is not what you would expect when
coming from desktop application development.

If you need multiple rendering view, you'll have to manage them in
only one android windows, displaying your rendering in Views rendered
in a Layout.

Kevin

On May 21, 8:11 am, Karthik Ravi Shankar r.karthi...@gmail.com
wrote:
 Hi,

 I'm an application developer, trying to develop a graphics application. I
 have been trying to get multiple windows each rendering their view up for
 quite sometime with no headway. I have gone through the documentation but
 have not come across any technique to enable multiple window support. Does
 Android have multiple window support as of now? If so, can anybody give me a
 pointer to some help.

 Thanks in advance,
 Karthik.

 --
 Karthik R
 Graduate Student
 Computer Science Department
 UCLA

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

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


[android-developers] Re: samsung app store

2010-05-21 Thread Tomáš Hubálek
On 21 kvě, 11:48, Juan Delgado zzzar...@gmail.com wrote:
 +1

 I think in the future companies building apps will sell them through
 their own channels. Sure you can buy Photoshop from many places
 (including Adobe's website), not only on a single store? At the end of
 the day you just buy it from the channel you trust.

-1

I believe that a lot of people don't even buy Photoshop as it is
expensive and difficult to buy. There is nothing like central store
for Windows and buying software is really not single click stuff. For
many people it is easier to download it from rapishare or wherever.

People have no problem to spend small amounts of money when it is easy
(= download from AM that is preinstalled in every phone). This is IMHO
reason why there should be one well working(!!!) Android Market for
Android.

Me as a developer I don't want sell one application in many
marketplaces. It increases costs and gives no added value to me and/or
my customers.

Unfortunately Google is not able deliver anything working for me (many
countries can't visit the market, I can't sell apps, ...). It's shame
as I think that working AM should be there from beginning. Non working
AM supports many useless wouldbe alternative markets, pirats and
confuses end users.

Tom



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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread Kevin Gaudin
Hello,

The reporting feature has been enabled on some 2.1 devices. First, a
number of Droids, and now some Nexus Ones (mine for example, and I
know another one in France where I live, since the 19th of May).

I don't know how this activation is done, I didn't do anything special
to activate it, it just appeared 'magically' on the force close
dialog. My device was one from the Device Seeding Program for Top
Android Market Developers, so it might have been flashed with a
special version of android 2.1-update1...

If you want a reporting feature for applications outside of the market
and on any android version device, have a look to this apache licensed
free library:
http://acra.googledoc.com

There's a thread on this group to discuss about it:
http://groups.google.com/group/android-developers/browse_thread/thread/7198a363f8e259a0/c1331908135fb38b

Kevin

On May 21, 9:51 am, westmeadboy westmead...@yahoo.co.uk wrote:
 Does anyone know whether it works for apps not installed via the
 Market (but which do exists on the Market)?

 Hmmm, I doubt it since if it did, then all the bugs during testing
 would appear there...

 On May 21, 8:35 am, ko5tik kpriblo...@yahoo.com wrote:



  On 21 Mai, 07:36, yuku yuk...@gmail.com wrote:

   I got 8 bugs in total for my app, dated
   May 5, May 13, and May 21.

   How could those bug reports be there, when Froyo is not even released?

  apparently your app is used by someone who gets access to fresh
  android
  images ( well, I got onyl 2 bugs - either my app is  really high
  quality or not
  interesting ;) )

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

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

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


[android-developers] Re: Petition: Google, please improve the Android Market.

2010-05-21 Thread Tomáš Hubálek
BTW: In different thread they said that the'll not react on petitions,
but I still think that this petition is good thing.

On 17 kvě, 11:42, rob irondad rob.irond...@gmail.com wrote:
 Hello, fellow developers,

 Just a quick update on the petition that was posted 3 months ago now,

 As of now it has been signed by 1246 people.
 Since the petition was made public, there has been recent reports
 about developers seeing crash reports and user comments in the
 developer console. This seems to indicate that points 2 and 5 of the
 petition will be taken care of in a near future!

 But as of today all the points in the petition remain valid.

 So far, there has been no reaction or acknowledgment from Google.

 Petition link:http://petitiononline.com/androidm

 --
 Rob

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

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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread westmeadboy
I think you mistyped the first link: http://acra.googlecode.com

Is there a programmatic way to check whether the new auto-reporting is
enabled? Then, if its not, it would be easy to enable a tool like
yours, or Flurry or whatever.

On May 21, 12:08 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:
 Hello,

 The reporting feature has been enabled on some 2.1 devices. First, a
 number of Droids, and now some Nexus Ones (mine for example, and I
 know another one in France where I live, since the 19th of May).

 I don't know how this activation is done, I didn't do anything special
 to activate it, it just appeared 'magically' on the force close
 dialog. My device was one from the Device Seeding Program for Top
 Android Market Developers, so it might have been flashed with a
 special version of android 2.1-update1...

 If you want a reporting feature for applications outside of the market
 and on any android version device, have a look to this apache licensed
 free library:http://acra.googledoc.com

 There's a thread on this group to discuss about 
 it:http://groups.google.com/group/android-developers/browse_thread/threa...

 Kevin

 On May 21, 9:51 am, westmeadboy westmead...@yahoo.co.uk wrote:





  Does anyone know whether it works for apps not installed via the
  Market (but which do exists on the Market)?

  Hmmm, I doubt it since if it did, then all the bugs during testing
  would appear there...

  On May 21, 8:35 am, ko5tik kpriblo...@yahoo.com wrote:

   On 21 Mai, 07:36, yuku yuk...@gmail.com wrote:

I got 8 bugs in total for my app, dated
May 5, May 13, and May 21.

How could those bug reports be there, when Froyo is not even released?

   apparently your app is used by someone who gets access to fresh
   android
   images ( well, I got onyl 2 bugs - either my app is  really high
   quality or not
   interesting ;) )

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

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

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

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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread Kevin Gaudin
Thanks for correcting my typo !

I'm looking for such a way to detect the availability of the market
reporting feature. I have a few ideas, based on what appears in the
logcat when the reporting dialogs are invoked, but I have not been
able to test them for the moment.

Kevin

On May 21, 12:18 pm, westmeadboy westmead...@yahoo.co.uk wrote:
 I think you mistyped the first link:http://acra.googlecode.com

 Is there a programmatic way to check whether the new auto-reporting is
 enabled? Then, if its not, it would be easy to enable a tool like
 yours, or Flurry or whatever.

 On May 21, 12:08 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:



  Hello,

  The reporting feature has been enabled on some 2.1 devices. First, a
  number of Droids, and now some Nexus Ones (mine for example, and I
  know another one in France where I live, since the 19th of May).

  I don't know how this activation is done, I didn't do anything special
  to activate it, it just appeared 'magically' on the force close
  dialog. My device was one from the Device Seeding Program for Top
  Android Market Developers, so it might have been flashed with a
  special version of android 2.1-update1...

  If you want a reporting feature for applications outside of the market
  and on any android version device, have a look to this apache licensed
  free library:http://acra.googledoc.com

  There's a thread on this group to discuss about 
  it:http://groups.google.com/group/android-developers/browse_thread/threa...

  Kevin

  On May 21, 9:51 am, westmeadboy westmead...@yahoo.co.uk wrote:

   Does anyone know whether it works for apps not installed via the
   Market (but which do exists on the Market)?

   Hmmm, I doubt it since if it did, then all the bugs during testing
   would appear there...

   On May 21, 8:35 am, ko5tik kpriblo...@yahoo.com wrote:

On 21 Mai, 07:36, yuku yuk...@gmail.com wrote:

 I got 8 bugs in total for my app, dated
 May 5, May 13, and May 21.

 How could those bug reports be there, when Froyo is not even released?

apparently your app is used by someone who gets access to fresh
android
images ( well, I got onyl 2 bugs - either my app is  really high
quality or not
interesting ;) )

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

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

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

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

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


Re: [android-developers] Re: android tablet emulator creation

2010-05-21 Thread Nikhil Patil
Hi Jeff,

Does Froyo SDK provides a skin for 1024X600? Or you created it? Can you
enlighten us by giving a step-by-step walk-through? It will help a lot! :)

Regards,
Nikhil Patil




On Fri, May 21, 2010 at 6:15 AM, Jeff codesec...@gmail.com wrote:

 Froyo SDK now allows to emulate tablet devices! Just tried with
 1024x600 screen size.

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

2010-05-21 Thread String
On May 21, 8:51 am, westmeadboy westmead...@yahoo.co.uk wrote:

 Does anyone know whether it works for apps not installed via the
 Market (but which do exists on the Market)?

It's not looking like it does. I just installed an app (which crashes)
on both my Nexus One and a 2.2 emulator, and neither showed the
Report button. I also tried installing a signed APK to see if that
made a difference, and it didn't seem to.

String

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


[android-developers] Re: android tablet emulator creation

2010-05-21 Thread Jeff
In Eclipse, select Window menu, launch Android SDK and AVD manager.
Create a new AVD with target Android 2.2 and set the resolution you
need.

On May 21, 2:23 pm, Nikhil Patil nikhilpatil2...@gmail.com wrote:
 Hi Jeff,

 Does Froyo SDK provides a skin for 1024X600? Or you created it? Can you
 enlighten us by giving a step-by-step walk-through? It will help a lot! :)

 Regards,
 Nikhil Patil

 On Fri, May 21, 2010 at 6:15 AM, Jeff codesec...@gmail.com wrote:
  Froyo SDK now allows to emulate tablet devices! Just tried with
  1024x600 screen size.

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


Re: [android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread Kevin Gaudin
On the preview offered by the reporting feature, there is an installed by
field (or something similar) containing a package name which is
com.google.android.feedback. There might be a system test on this value to
send reports only for applications installed via the market.

Kevin

On Fri, May 21, 2010 at 12:37 PM, String sterling.ud...@googlemail.comwrote:

 On May 21, 8:51 am, westmeadboy westmead...@yahoo.co.uk wrote:

  Does anyone know whether it works for apps not installed via the
  Market (but which do exists on the Market)?

 It's not looking like it does. I just installed an app (which crashes)
 on both my Nexus One and a 2.2 emulator, and neither showed the
 Report button. I also tried installing a signed APK to see if that
 made a difference, and it didn't seem to.

 String

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

2010-05-21 Thread Sean Hodges
Yeah, you can't trick it like that String. It uses the Prediction API
to only log bugs that it believes you don't know about.

On Fri, May 21, 2010 at 11:37 AM, String sterling.ud...@googlemail.com wrote:
 On May 21, 8:51 am, westmeadboy westmead...@yahoo.co.uk wrote:

 Does anyone know whether it works for apps not installed via the
 Market (but which do exists on the Market)?

 It's not looking like it does. I just installed an app (which crashes)
 on both my Nexus One and a 2.2 emulator, and neither showed the
 Report button. I also tried installing a signed APK to see if that
 made a difference, and it didn't seem to.

 String

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

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


Re: [android-developers] Re: android tablet emulator creation

2010-05-21 Thread Nikhil Patil
Ohh! That simple! Thanks a lot Jeff!! Gonna try it now..


Regards,
Nikhil Patil




On Fri, May 21, 2010 at 4:08 PM, Jeff codesec...@gmail.com wrote:

 In Eclipse, select Window menu, launch Android SDK and AVD manager.
 Create a new AVD with target Android 2.2 and set the resolution you
 need.

 On May 21, 2:23 pm, Nikhil Patil nikhilpatil2...@gmail.com wrote:
  Hi Jeff,
 
  Does Froyo SDK provides a skin for 1024X600? Or you created it? Can you
  enlighten us by giving a step-by-step walk-through? It will help a lot!
 :)
 
  Regards,
  Nikhil Patil
 
  On Fri, May 21, 2010 at 6:15 AM, Jeff codesec...@gmail.com wrote:
   Froyo SDK now allows to emulate tablet devices! Just tried with
   1024x600 screen size.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] how to access device contact book from my own application

2010-05-21 Thread learning by sharing
HI

I want to access the contact book from my application.How to go about
it.Any pointers would be of great 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


Re: [android-developers] Re: Communicating from Android Service to an Activity

2010-05-21 Thread Edward Hinchliffe
I see - just to be clear - you'll only be operating a GUI in a separate
process if you've either got 2 separate applications, or one application
where an activity within it explicitly specifies it wants to run in a
separate process.

I only say this because I didn't understand the term 'process' initially - I
thought when an application spawned a service, by the fact that service
could live on after the activity that spawned it was killed, it would be
running in a different process!

Good luck!

On 21 May 2010 10:41, FrankG frankgru...@googlemail.com wrote:

 Thanks a lot for this hint.

 But in my case I have an independent  GUI in a seperate prozess.

 I must check whether I can avoid this and use this local binding
 pattern.

 Thanks a lot !

   Frank



 On 19 Mai, 09:46, redders redders6...@googlemail.com wrote:
  Looking into this further - I now understand the local binding pattern
  that Mark mentioned. There's a good example in the api section of the
  code examples that ship with the android SDK.
 
  Essentially as we are not using more than one process there's no need
  for IPC (*inter process* communication) interfaces defined in AIDL.
  Objects passed do not need to be marshalled across the barriers in the
  same way they would with a remote service running in a separate
  process.
 
  I strongly advise you to take a look at:
  [SDK DIRECTORY]/samples/ApiDemos/src/com/example/android/apis/app/
  LocalServiceBinding.java  (an activity to bind to a local service)
  and
  [SDK DIRECTORY]/samples/ApiDemos/src/com/example/android/apis/app/
  LocalService.java (the service itself).
 
  On May 19, 8:06 am, FrankG frankgru...@googlemail.com wrote:
 
 
 
 
 
   At first many thanks to Mark Murphy for his very detailed answer.
 
   To the last post : I must say I use currently a mixture between
   1) and 2) ..
 
   In my case the service uses Intents to inform othter apps.
 
   And the services provides an interface via aidl.
 
   But I also thinking about a pure 1) Intent only solution.
 
   From Marks post I got the suggestion, to use a start intent , when
   something
   happens on service side and no activity callback handle ist set, to
   send a start intent.
 
   The service can keep a kind of status flag, to know, whether the
   corresponding
   activity is running. And the activity on the other side must send an
   intent to the service,
   when the activity will be finished ?
 
   Is this a bad design ?
 
   Thanks a lot !
 
 Frank
 
   On 18 Mai, 22:48, redders redders6...@googlemail.com wrote:
 
Hi,
 
I have a similar question. My application has a long running service
that acts as a TCP client. There is also an activity which needs to
 be
able to pass messages to the service which will then send them to the
TCP server. In turn, the service needs to 'forward' the reply it gets
from the TCP Server to the activity, which performs an action as a
result.
 
I understand there are [at least] two ways to deal with this:
 
1. Broadcast receivers and intents: The service and activity each
register a broadcast receiver, and broadcast intents to communicate
with each other, using putExtras for the data.
 
2. IPC using AIDL. I define two interfaces (activity to service, and
service to activity), make my TCP message class implement parcelable.
When my activity starts up, I bind to the service (if running, or
create it if not), then receive the Service-Activity aidl Stub, then
use a method defined within that to pass the Activity-Service Stub.
Service and client now both have IPC Stubs and can call the each
other's methods that have been defined in the interfaces.
 
So my questions:
i) is the above roughly correct?
ii) are there any other sensible ways to do it? (e.g. I have heard
 the
term Local binder / local binding pattern in the last post - is that
the same as [2]?)
iii) which is most appropriate for my situation?
 
Any help would be much appreciated - this is really confusing me.
 
Cheers
 
~redders.
 
On May 3, 1:02 pm, Mark Murphy mmur...@commonsware.com wrote:
 
 FrankG wrote:
  I have short question to your example :
 
  If I understood it right, the Broadcast from the
 WeatherPlusService
  will not start
  up the WeatherPlus Activity ?
 
 Correct. In this case, the WeatherPlus activity is already running.
 
  So how must the example be changed, that the first broadcast will
  startup the activity
  and the next ones are normal broadcast to send the new status to
 the
  activity.
 
  I know that I can use startActivity(Intent) to startup the
  activity ..and use then sendBroadcast(Intent),
  but you cannot know, whether then your Activity is still running.
 
 Sure you can, though the sendBroadcast() model is probably not the
 right
 one to use.
 
 Have the activity bind to the service using the local binding
 pattern
  

Re: 回复: [android-developers] Re: capture outgo ing sms in android

2010-05-21 Thread Ralph Bergmann
Am 21.05.10 11:33, schrieb Jiang:
 2, Register an content observer for content://sms

but remember:
http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html

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


Re: [android-developers] how to access device contact book from my own application

2010-05-21 Thread Mark Murphy
 I want to access the contact book from my application.How to go about
 it.Any pointers would be of great help.

For Android 2.x, look at android.providers.ContactsContract. For Android
1.x, look at android.providers.Contacts.

Here are some sample projects demonstrating the the basic use of these:

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

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


Re: [android-developers] Google TV frame capture?

2010-05-21 Thread Mark Murphy

 Will Google allow Android applications to grab and process individual
 video frames of the currently selected channel in Google TV sets?

That will be a fine question for 6-9 months from now, when the Google TV
SDK add-on for Android (or however they package it) becomes available.

Right now, I doubt anybody knows.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


Re: [android-developers] Multiple Window support on Android?

2010-05-21 Thread Mark Murphy

 Hi,

 I'm an application developer, trying to develop a graphics application. I
 have been trying to get multiple windows each rendering their view up for
 quite sometime with no headway. I have gone through the documentation but
 have not come across any technique to enable multiple window support. Does
 Android have multiple window support as of now? If so, can anybody give me
 a
 pointer to some help.

There are Dialogs and PopupWindows. Other than that, there is no concept
of multiple windows in Android at this time.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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


[android-developers] How is the camera view angle determined in getHorizontalViewAngle ()?

2010-05-21 Thread Stephen Lebed
I'm curious how the camera view angle determined using
getHorizontalViewAngle?

Is it predefined within the API, or is it provided by the hardware?

Thanks,

Stephen

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


[android-developers] G1 phone and update firmware 2.0-2.2 - question

2010-05-21 Thread EvgenyV
Hi All,

1. Guys please suggest some official Google/HTC link with explanation
why HTC G1 phone can't be updated to Adroid 2.0-2.2 firmware.

2. Is Google planning to sell latest versions of dev phones in the
near future?

Thanks in advance,
Evgeny

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

2010-05-21 Thread blindfold
I know, I seem to make a habit of nagging ahead of time, just like I
did with the JIT compiler in 2008 when it is was deemed to have a low
priority (and there was no NDK back then to ease the pain), and the
need to allow for in-memory audio synthesis and support for multiple
cameras. So I rather mention it now when Google TV APIs are hopefully
still very malleable rather than finding it tweaked in much later as
an afterthought, or not at all.

On May 21, 1:40 pm, Mark Murphy mmur...@commonsware.com wrote:
  Will Google allow Android applications to grab and process individual
  video frames of the currently selected channel in Google TV sets?

 That will be a fine question for 6-9 months from now, when the Google TV
 SDK add-on for Android (or however they package it) becomes available.

 Right now, I doubt anybody knows.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

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

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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-21 Thread Kevin Gaudin
The ability for bug reporting has been added to AOSP 1 year ago :
https://android.git.kernel.org/?p=platform/frameworks/base.git;a=commit;h=f5b9c72022f574417862e064cc0fdd8ea2d846dc

Now I have some serious things to test to detect the availability of
error reporting. :-)

Kevin

On May 21, 12:45 pm, Sean Hodges seanhodge...@googlemail.com wrote:
 Yeah, you can't trick it like that String. It uses the Prediction API
 to only log bugs that it believes you don't know about.



 On Fri, May 21, 2010 at 11:37 AM, String sterling.ud...@googlemail.com 
 wrote:
  On May 21, 8:51 am, westmeadboy westmead...@yahoo.co.uk wrote:

  Does anyone know whether it works for apps not installed via the
  Market (but which do exists on the Market)?

  It's not looking like it does. I just installed an app (which crashes)
  on both my Nexus One and a 2.2 emulator, and neither showed the
  Report button. I also tried installing a signed APK to see if that
  made a difference, and it didn't seem to.

  String

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

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

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


[android-developers] Re: Do I need to buy Google Maps license?

2010-05-21 Thread Rahul
You have to only get the map API key to run the maps in android. You
can search for the way to get the API keys. I am a bit confused about
using CANVAS... You must use a MapView to display a Google map and in
xml file u have to just include the API key that u get...

On May 20, 3:31 pm, Samuh samuh.va...@gmail.com wrote:
 I am embedding a MapView in my application which is used as a canvas
 to pin point a location.

 My question is do I need to buy a license if I publish my application
 as paid app in market? What is my app is free?

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Date type as a parameter on a SoapObject

2010-05-21 Thread Lamia Hannoun
Hi !

I want to send a parameter to my .net webservice, but it's type (Date)
causes errors. Any ideas about how to make it work.

Thx.

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

2010-05-21 Thread peng
hello I want to make a magnifying glass on a picture so that the part
of picture is extended ?AS 
http://i3.6.cn/cvbnm/72/60/36/73dfcc8862020e9ed366a55e72e3.jpg
could you give me some code or sample? thank you

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


Re: [android-developers] Re: Android Team: Please give help on serious OnSensorChanged()-not-called-in-standby bug

2010-05-21 Thread Bruno Albuquerque
Resurrecting an old thread, with good news for a change. ;)

Issue 3708 (http://code.google.com/p/android/issues/detail?id=3708)
has been fixed and is included in Android 2.2.

-Bruno

2010/1/26 Alexander Kosenkov alexan...@kosenkov.com:
 I've just updated Smart Alarm Clock (27k installs) with this
 workaround and it WORKS on Motorola  Samsung phones. Unfortunately,
 it does NOT help to Hero and Tatto phones.

 Haven't tried running w/o CPU lock because documenation says it
 wouldn't be possible... Maybe in the next release.

 BTW, please ask your users to put a star on the issue (something like
 http://intelligentalarmclock.blogspot.com/2009/12/smart-alarm-clock-needs-your-help-to.html).
 This will really help us.

 It's not a hardware bug. It's a software bug - it might be fixed on
 next firmware update.
 Let's star the issue. Let's write to HTC support!

 Yes, we can! =)

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


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


[android-developers] Google's global quick search widget missing in Android 2.2

2010-05-21 Thread And-Rider
I was unable to find the google's search widget on the home screen
neither on the the list of available widgets.If i click menu from the
home screen and if i press search nothing happens.

I could neither find an option called Search in settings page from
where i could enable my application in searchable items.The issue is
we have enabled Global search for our application and previously if
used to show search results from my application if i search here.

I tested this in a stimulator and i am yet to test it on a device.

Has it been removed in 2.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


[android-developers] Re: Google TV - Developer Device Seeding

2010-05-21 Thread Moto
Yes 100% same here... seeding of Google Tv would be great! I can't
wait to get started!

-Moto

On May 20, 7:29 pm, Gabriel Simões gsim...@gmail.com wrote:
 I wish they do a new round of the smartphone seeding for developers
 from other countries before this.
 We barely can find devices to buy here and when we do they cost many
 many times more than in the US.
 Also we can´t even mae money to buy one because we can´t make a
 merchant google checkout account.

 Google, ... we do exist, don´t you know?

 On 20 maio, 16:11, TreKing treking...@gmail.com wrote:



  On Thu, May 20, 2010 at 12:05 PM, cpick cp...@vmenu.com wrote:
   Hello,
     I would be interested in any Developer Device Seeding program that
   Google has with regards to their TV.

   Chris.

  OK

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

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

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

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


[android-developers] MapView crushes in satellite mode if android:anydensity is set true

2010-05-21 Thread Vincent
Hi,

On Android 1.6 WVGA device, a map view in satellite mode crushes when
the map zoom-in too much if I specify android:anyDensity=true in the
manifest file.
But, if I set android:anyDensity=false, then the map does not crush.

I want my app to support a multiple densities and also do not want to
make the map crush.
Is there any way to do this?

I tried to control zoom level of the map, but getMaxZoomLevel() method
in satellite mode does not return a correct value.
Please help me out!!

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: Application Crash Reporting made easy - needs testers

2010-05-21 Thread Justin Edwards
Thanks for the reply Kevin,

I guess my feedback would be to add an option within your API to send
a silent report. :)

Thanks again!
Justin

On May 20, 6:46 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:
 Hello Justin,

 handleException() handles your caught exceptions exactly the same way
 uncaught exceptions are handled, so if you configured ACRA to notify
 the user when an error occurs, you will issue a notification on each
 call to this method.

 Sorry for the Import/Upload confusion... For me the Google Docs UI is
 in french and this button is labeled Importer so I assumed the
 translation was Import... I was wrong. I'll correct this. Thanks !

 Kevin

 On 20 mai, 21:18, Justin Edwards howfar...@gmail.com wrote:





  I have also added the logging into my application. Within 10 minutes I
  had my first bug report..  :(   (Even before I got the update
  installed on my device.)

  I had no problems getting everything added into my application again
  thanks to your HowTo.  (Only issue I had was uploading the csv file...
  i was looking for a Import option but within docs it is called Upload
  (stupid I know))

  Since I have put this in I have found about a total of 10 bugs..  All
  of them are small and silly bugs but 1.  So I got them all fixed
  up For now.  :)

  I do have one question when you use the:

  ErrorReporter.getInstance().handleException(e);

  Is the report that is sent silent to the user?  Is there a way to send
  a silent report? Or will the user get notified event though we are in
  a try catch?

  Thank you!
  Justin

  On May 20, 8:35 am, Kevin Gaudin kevin.gau...@gmail.com wrote:

   Thanks Tobias for using the lib !

   All the sources are available on GoogleCode's 
   SVN:http://code.google.com/p/acra/source/checkout.

   The main help we need now is developers to test the v2 stability with
   its different notification modes and on different android hardware/
   versions so that we can go out of the testing phase ;-).

   I'm also waiting for details about the officialreportingwhich
   should be announced today at Google I/O. This might lead to some
   adaptation in the code of ACRA depending on the availability of this
   newreportingacross android versions.

   Though, the acra-2.0.0-test version is already clean enough to coexist
   with the newreportingfeature which is activated on my Nexus One
   since yesterday... the behaviour I implemented is to disable the
   default Force Close dialog when ACRA is configured with Toast or
   Status bar notification mode. This prevents the user from beeing
   offered several errorreportingsystems.

   Kevin

   On May 19, 9:59 pm, Clankrieger tob...@googlemail.com wrote:

Hi Kevin,

I includedACRAin my app - it waseasyto implement and your HowTo is
absolutely excellent. I already got twocrashreports that gave me a
much better glue than the usual crashes on foo-phone-1-star-
comments. :)
I'm eager to take a look into the sources as well, they should be
available by google code subversion access, isn't it? If you need any
specific feedback, help or similar, please let me know!

Cheers,
Tobias

On 19 Mai, 07:59, Kevin Gaudin kevin.gau...@gmail.com wrote:

 Hello,

 Just to inform you that there was a missing configuration item in the
 usage guide for v2 when using the status bar notification mode. You
 have to add an activity (provided byACRA) with specific attributes in
 your android manifest.

 The usage guide for v2 has been 
 updated:http://code.google.com/p/acra/wiki/ACRAHowTo2

 Kevin

 On 18 mai, 02:57, Kevin Gaudin kevin.gau...@gmail.com wrote:

  It is and will stay published as an open source project under Apache
  license. So you are free to use it in any app, free or not, open
  source or not.

  Please test it and let us know your feedback/issues ! ;-)

  Kevin

  On 17 mai, 22:18, String sterling.ud...@googlemail.com wrote:

   On May 17, 8:39 pm, Yahel kaye...@gmail.com wrote:

What licence do you release it under ?

   The project says it's Apache-licensed. Unless they're planning a
   change of license for v2, we should be OK.

   String

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

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

[android-developers] Re: ADC 3 ?

2010-05-21 Thread shaun
I always thought the purpose of ADC was to gain adoption.  There
really does not seem to be the need to get developers on board the
Android wagon.  Android has mucho momentum it seems and the new
features being added with the new APIs are making users and developers
alike excited.

Not to mention how fast Google I/O 2010 tickets sold out.  Not like
that is all because of Android, but it must be a big part.  I'd like
to hear from people who attended to know how big Android was at the
event.

On May 20, 9:33 pm, Mark Murphy mmur...@commonsware.com wrote:
  I was hoping for an announcement of the third Android Developer
  Challenge at Google IO today, but I gather there has been no such
  announcement.

  Can anyone from Google comment on whether or not there will be an ADC
  this year?

 I am not from Google.

 However, waay back in 2008 when they announced the original
 ADC, they said there was going to be an ADC2. They never gave any
 indication of this being an annual affair, or otherwise stated that there
 would ever be an ADC3.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

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

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


Re: [android-developers] Re: Application Crash Reporting made easy - needs testers

2010-05-21 Thread Kevin Gaudin
I agree with you : http://code.google.com/p/acra/issues/detail?id=1

;-)

Kevin

On Fri, May 21, 2010 at 3:48 PM, Justin Edwards howfar...@gmail.com wrote:

 Thanks for the reply Kevin,

 I guess my feedback would be to add an option within your API to send
 a silent report. :)

 Thanks again!
 Justin

 On May 20, 6:46 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:
  Hello Justin,
 
  handleException() handles your caught exceptions exactly the same way
  uncaught exceptions are handled, so if you configured ACRA to notify
  the user when an error occurs, you will issue a notification on each
  call to this method.
 
  Sorry for the Import/Upload confusion... For me the Google Docs UI is
  in french and this button is labeled Importer so I assumed the
  translation was Import... I was wrong. I'll correct this. Thanks !
 
  Kevin
 
  On 20 mai, 21:18, Justin Edwards howfar...@gmail.com wrote:
 
 
 
 
 
   I have also added the logging into my application. Within 10 minutes I
   had my first bug report..  :(   (Even before I got the update
   installed on my device.)
 
   I had no problems getting everything added into my application again
   thanks to your HowTo.  (Only issue I had was uploading the csv file...
   i was looking for a Import option but within docs it is called Upload
   (stupid I know))
 
   Since I have put this in I have found about a total of 10 bugs..  All
   of them are small and silly bugs but 1.  So I got them all fixed
   up For now.  :)
 
   I do have one question when you use the:
 
   ErrorReporter.getInstance().handleException(e);
 
   Is the report that is sent silent to the user?  Is there a way to send
   a silent report? Or will the user get notified event though we are in
   a try catch?
 
   Thank you!
   Justin
 
   On May 20, 8:35 am, Kevin Gaudin kevin.gau...@gmail.com wrote:
 
Thanks Tobias for using the lib !
 
All the sources are available on GoogleCode's SVN:
 http://code.google.com/p/acra/source/checkout.
 
The main help we need now is developers to test the v2 stability with
its different notification modes and on different android hardware/
versions so that we can go out of the testing phase ;-).
 
I'm also waiting for details about the officialreportingwhich
should be announced today at Google I/O. This might lead to some
adaptation in the code of ACRA depending on the availability of this
newreportingacross android versions.
 
Though, the acra-2.0.0-test version is already clean enough to
 coexist
with the newreportingfeature which is activated on my Nexus One
since yesterday... the behaviour I implemented is to disable the
default Force Close dialog when ACRA is configured with Toast or
Status bar notification mode. This prevents the user from beeing
offered several errorreportingsystems.
 
Kevin
 
On May 19, 9:59 pm, Clankrieger tob...@googlemail.com wrote:
 
 Hi Kevin,
 
 I includedACRAin my app - it waseasyto implement and your HowTo is
 absolutely excellent. I already got twocrashreports that gave me a
 much better glue than the usual crashes on foo-phone-1-star-
 comments. :)
 I'm eager to take a look into the sources as well, they should be
 available by google code subversion access, isn't it? If you need
 any
 specific feedback, help or similar, please let me know!
 
 Cheers,
 Tobias
 
 On 19 Mai, 07:59, Kevin Gaudin kevin.gau...@gmail.com wrote:
 
  Hello,
 
  Just to inform you that there was a missing configuration item in
 the
  usage guide for v2 when using the status bar notification mode.
 You
  have to add an activity (provided byACRA) with specific
 attributes in
  your android manifest.
 
  The usage guide for v2 has been updated:
 http://code.google.com/p/acra/wiki/ACRAHowTo2
 
  Kevin
 
  On 18 mai, 02:57, Kevin Gaudin kevin.gau...@gmail.com wrote:
 
   It is and will stay published as an open source project under
 Apache
   license. So you are free to use it in any app, free or not,
 open
   source or not.
 
   Please test it and let us know your feedback/issues ! ;-)
 
   Kevin
 
   On 17 mai, 22:18, String sterling.ud...@googlemail.com
 wrote:
 
On May 17, 8:39 pm, Yahel kaye...@gmail.com wrote:
 
 What licence do you release it under ?
 
The project says it's Apache-licensed. Unless they're
 planning a
change of license for v2, we should be OK.
 
String
 
--
You received this message because you are subscribed to the
 Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en
 
   

Re: [android-developers] Re: Petitions to Google

2010-05-21 Thread Leigh McRae
Hearing stuff like this makes me cringe.  I uses to subscribe to the 
holy OOP stuff but no longer.  I have found that the longer you program 
the better your become at knowing when to make the trade off for getting 
something done vs wasting time on looking for the most elegant, 
flexible, portable solution.  Out in the real work when shipping in a 
timely manner is more important I don't see why a simple tool can't be 
added.  It's just another tool for gods sakes, one that many experts 
have used and still use today to get things done.


Why should I have to write interfaces or factory objects for something I 
know at compile time? Why do I need to write and maintain more code just 
so OOP purists can feel good about themselves?  Why should I have to use 
runtime if statements and hope the compiler strips my code out?  The 
Java way is to throw more hardware at it when it comes down to it and we 
are on a hardware limited platform.


Leigh

On 5/21/2010 5:50 AM, Tomáš  Hubálek wrote:

On 20 kvě, 16:12, Leigh McRaeleigh.mc...@lonedwarfgames.com  wrote:
   

On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:
 
   

First the OP didn't talk about using a preprocessor for xml.  I would
agree that that would be odd and there are better tools for that.  Still
a preprocessor could be used to conditionally include a resource by id.  
How about I give you some concrete examples and you can help me see the

light?


Example 1

//#if BETA
  if ( hasBetaExpired() )
  System.exit( 0 )
//#endif

Example 2

public final class Assert
{
 public static final void RIP( final String msg )
 {
//#if BETA
 sendReport( msg );
//#endif
 System.exit( 0 );
 }}


Example 3

public class Debug
{
 void Println( String msg )
 {
//#if !RELEASE  
 Log.d( TAG, msg );
//#endif
 }}



Example 4

//#if PLATFORM_BLACKBERRY  
//@ omega = (float)MathUtilities.acos( cosom );
//#else  
 omega = (float)java.lang.Math.acos( cosom );
//#endif  


Example 5

public static final float VecToHeading( float x, float y )
{
//#if PLATFORM_BLACKBERRY
//@ floatfAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f), (int)(y 
* 65536.0f) )) / 65536.0f;
//#else
 floatfAngle = ((float)Math.atan2( x, y )) * 
57.295779513082320876798154814105f;
//#endif
 if ( fAngle0.0f )
 return fAngle + 360.0f;

  return fAngle;

}
 

Leigh,

have you ever heard about design patterns? Eg. strategy IMHO can solve
all your requests.

Tom

   


--
Leigh McRae
www.lonedwarfgames.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: G1 phone and update firmware 2.0-2.2 - question

2010-05-21 Thread Tomáš Hubálek
Regarding first question: I'm also interested in.

Regarding the second question I created similar thread but no response
yet:
http://groups.google.com/group/android-developers/browse_thread/thread/37a8a9b34d1b2449#

Tom

On 21 kvě, 14:00, EvgenyV evgen...@gmail.com wrote:
 Hi All,

 1. Guys please suggest some official Google/HTC link with explanation
 why HTC G1 phone can't be updated to Adroid 2.0-2.2 firmware.

 2. Is Google planning to sell latest versions of dev phones in the
 near future?

 Thanks in advance,
 Evgeny

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

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


[android-developers] Re: samsung app store

2010-05-21 Thread Gabriel Simões
Well, my opinion:

- paid apps (for users)

- The problems google have to be able to sell to any country, any
store will have: laws! Apple took a lot of time to open an app store
here in Brazil and still most of the apps aren´t available because the
governament has a diferent age definition per category here, so most
games aren´t publihed.

- paid apps (for developers)

- This sucks, and sucks hard! It´s something google needs to fix as
soon as possible. Most users are on USA and Europe but developers are
around the whole world and using ads to support our development is
taking things to the limit already.

- browsing through a website

- Already shown on google I/O. Let´s wait for froio devices and this
will show up. I hope in a shot time.

- buying through a website

- Also shown on google I/O and even MUCH better than the app store/
iTunes. Right now there´s no better system for mobile devices.

- payment methods different then Google Checkout

- This won´t happen, and won´t happen in ANY store. Why? Using other
systems mean getting less money, and unless the company that owns the
store don´t have the ability to manage money, we will see only
proprietary systems for this. Also, if they don´t they will probably
use only one system also. Same for advertisement companies ...

- no trash apps (some form of quality standards)

- Freedom vs. Closed systems. This is the discussion between app
store and android market. I prefer open systems where anyone can
publish anything. This way the comunity will show what is best and
what is worst. Also, the ability to ask for a refund forces developers
to make great apps in order to receive anything for them. If there´s
someone to say if your app is good enough we will see the same old
story again: rejected apps for no reason, long delays between
releases 
In this case I do agree that android market should use a system to
give emphasis to the best apps and start putting the crap ones on the
lower parts of the search lists...

- and all of this in their native language:

- This is a good sugestion that should be sent to google. I don´t
think this is something too hard for them, and for sure would help in
the expasion of android around the world.


On 21 maio, 07:06, Tomáš  Hubálek tom.huba...@gmail.com wrote:
 On 21 kvě, 11:48, Juan Delgado zzzar...@gmail.com wrote:

  +1

  I think in the future companies building apps will sell them through
  their own channels. Sure you can buy Photoshop from many places
  (including Adobe's website), not only on a single store? At the end of
  the day you just buy it from the channel you trust.

 -1

 I believe that a lot of people don't even buy Photoshop as it is
 expensive and difficult to buy. There is nothing like central store
 for Windows and buying software is really not single click stuff. For
 many people it is easier to download it from rapishare or wherever.

 People have no problem to spend small amounts of money when it is easy
 (= download from AM that is preinstalled in every phone). This is IMHO
 reason why there should be one well working(!!!) Android Market for
 Android.

 Me as a developer I don't want sell one application in many
 marketplaces. It increases costs and gives no added value to me and/or
 my customers.

 Unfortunately Google is not able deliver anything working for me (many
 countries can't visit the market, I can't sell apps, ...). It's shame
 as I think that working AM should be there from beginning. Non working
 AM supports many useless wouldbe alternative markets, pirats and
 confuses end users.

 Tom

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

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


[android-developers] Re: Best practices for creating multiple app versions from a single codebase?

2010-05-21 Thread vistaman
Here's how I did it, not sure if it is the best practice or the most
efficient one.

1. Create an Android project from Eclipse, this will be used solely
for developing paid version.
2. Create an ant script to copy the entire paid version to a separate
directory that becomes the free version.
3. Use custom ant tasks like TextRewrite to replace package name, app
name, etc from paid to free version.
4. Use a preprocessor ant task (I used prebop) to additionally inject
ads code (or cripple features) into free version.
5. After all the injections, transformations, you can either build the
free version from ant, or from Eclipse (Same goes for the paid
version).

Of course it's not as simple as it seems, even while developing for
the paid version, I still need to make some classes aware of whether
it is free or paid (e.g. DatabaseAdapter related).

On May 7, 11:03 am, Greg Donald gdon...@gmail.com wrote:
 On Fri, May 7, 2010 at 12:13 PM, Alex (PS3 Friends) kludg...@gmail.com 
 wrote:

  it also makes it easier to
  move from one machine to another if need be

 Just curious.. what problems have you ran into developing 
 acrossmultiplemachines?  I develop on both Win7 and Ubuntu Linux using git
 and I have zero issues related to moving back and forth between them.

 I have a .gitignore file that looks like this:

 *.apk
 .metadata
 .swp
 */bin/*
 */gen/*

 Works really well for me.

 --
 Greg Donald
 destiney.com | gregdonald.com

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

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


Re: [android-developers] Re: I've found a way to stop piracy of my apps

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 1:14 AM, Ivan Greene ivant...@gmail.com wrote:

 I make (maybe once every 2 weeks or so), which would require them to buy
 it.


This wouldn't require them to buy it if they pirated it to begin with - it
would just require them to pirate it again.
Might be enough of nuisance to encourage some people to buy, but won't solve
your problem completely.

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

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

[android-developers] In Gps app, Reduce the Distance Time to 5m/10min , 10m/25sec.

2010-05-21 Thread subrat kumar panda
hello all,
Is it possible to reduce the distance  time to 5m/10min , 10m/25sec.
where i test my app with min distance  time
20m/1min,50m/1min,100m/1min,300m/2min .
i made some changes to my app for  these data: 5m/10min , 10m/25sec, 
test my app.but didn't work.

if anybody have knowledge please help me.


Thanks in advance,

Best Regards
Subrat kumar panda.
India

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


Re: [android-developers] how to transfer a geopoint from a mapActiviy to the other activity

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 1:32 AM, xhy xhyg...@gmail.com wrote:

 But the the system  exists a error java.lang.ClasscastException


What do you expect when trying to cast an object to a type it does not
derive from (GeoPoint to Serializable)?


 ,who can offer me a best methods?


GeoPoint has two things you care about: latitude and longitude - pass that.


 if i transfer  latitude and logtitude,then it is a fool way! any best
 method?


This sentence makes no sense to me.

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

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

[android-developers] DDMS not listing process -Any way via command line to attach the process to debug

2010-05-21 Thread GPU
Hi All ,

Sometimes the DDMS in the Eclipse not listing the process.

To do the debug in this condition,

1)  Is their any way force the DDMS to list the process?

2) Any command  to attach the process from the command line?

Thanks  Regards
Rajesh Gopu

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

2010-05-21 Thread JP

Uhm, aren't y'all barking up the wrong tree? If wanting conditional
compilation in Java then petition Sun. XML wash/rinse, it's just a
different standardization body. In case all that goes through (cough)
it would no doubt make it over to Android as Google hasn't messed with
the Java formula much.

I guess it would be nice to have the cake and eat it too. For
instance, to Leigh's point, it sucks having to go through wrapper
classes and reflection to defeat code management just to implement
calls to new-release classes of the SDK, when a simple [if
(api_level = FROYO)] would solve the problem. OTOH, I take full
advantage of the managed code approach and you guys should really try
to get into it too. Polymorphisms like operator overloading is really
helpful in cutting down on code replication, for example to implement
complex numbers (classic example). There's plenty of reading that
explains this so much better than I ever could.

Tom is cracking me up though (don't take it personal). Design patterns
(or rather, their ill advised use) are one of the reasons I got out of
coding, to earn my income anyways. (Need to inject a footnote: design
patterns are not design principles)
I suppose there's plenty a pattern that don't accomplish much, like
aforementioned factories. They sure add distraction. I basically had
it when people started pontificating over design patterns at lunch
just to see what stuck. The bottom was reached quickly, when noone
really understood how a particular pattern solved a problem (guess
what, it didn't). At that point, everybody stopped talking as the end
of meaningful exchange was reached. So, now that the conversation had
ceased, it was silently concluded by the overachieving evangelist-in-
chief that design pattern X must be the way to go. Today of course,
i'd just go sit at another table, although I have no such challenge
with what I'm doing to earn a living now...







On May 21, 7:06 am, Leigh McRae leigh.mc...@lonedwarfgames.com
wrote:
 Hearing stuff like this makes me cringe.  I uses to subscribe to the
 holy OOP stuff but no longer.  I have found that the longer you program
 the better your become at knowing when to make the trade off for getting
 something done vs wasting time on looking for the most elegant,
 flexible, portable solution.  Out in the real work when shipping in a
 timely manner is more important I don't see why a simple tool can't be
 added.  It's just another tool for gods sakes, one that many experts
 have used and still use today to get things done.

 Why should I have to write interfaces or factory objects for something I
 know at compile time? Why do I need to write and maintain more code just
 so OOP purists can feel good about themselves?  Why should I have to use
 runtime if statements and hope the compiler strips my code out?  The
 Java way is to throw more hardware at it when it comes down to it and we
 are on a hardware limited platform.

 Leigh

 On 5/21/2010 5:50 AM, Tomáš  Hubálek wrote:



  On 20 kvě, 16:12, Leigh McRaeleigh.mc...@lonedwarfgames.com  wrote:

  On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

  First the OP didn't talk about using a preprocessor for xml.  I would
  agree that that would be odd and there are better tools for that.  Still
  a preprocessor could be used to conditionally include a resource by id.  
  How about I give you some concrete examples and you can help me see the
  light?

  
  Example 1
  
  //#if BETA
        if ( hasBetaExpired() )
            System.exit( 0 )
  //#endif
  
  Example 2
  
  public final class Assert
  {
           public static final void RIP( final String msg )
           {
  //#if BETA
                   sendReport( msg );
  //#endif
                   System.exit( 0 );
           }}

  
  Example 3
  
  public class Debug
  {
           void Println( String msg )
           {
  //#if !RELEASE          
                   Log.d( TAG, msg );
  //#endif                
           }}

  
  Example 4
  
  //#if PLATFORM_BLACKBERRY              
  //@     omega = (float)MathUtilities.acos( cosom );
  //#else              
           omega = (float)java.lang.Math.acos( cosom );
  //#endif              
  
  Example 5
  
  public static final float VecToHeading( float x, float y )
  {
  //#if PLATFORM_BLACKBERRY
  //@     float    fAngle = ((float)Fixed32.atand2( (int)(x * 65536.0f), 
  (int)(y * 65536.0f) )) / 65536.0f;
  //#else
           float    fAngle = ((float)Math.atan2( x, y )) * 
  57.295779513082320876798154814105f;
  //#endif
           if ( fAngle    0.0f )
                   return fAngle 

Re: [android-developers] how to transfer a geopoint from a mapActiviy to the other activity

2010-05-21 Thread xhy
i just think that tranfering  a Object  is a senseable  way !

2010/5/21 TreKing treking...@gmail.com

 On Fri, May 21, 2010 at 1:32 AM, xhy xhyg...@gmail.com wrote:

 But the the system  exists a error java.lang.ClasscastException


 What do you expect when trying to cast an object to a type it does not
 derive from (GeoPoint to Serializable)?


 ,who can offer me a best methods?


 GeoPoint has two things you care about: latitude and longitude - pass that.


 if i transfer  latitude and logtitude,then it is a fool way! any best
 method?


 This sentence makes no sense to me.


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

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




-- 
xhy

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

2010-05-21 Thread Craig O Connor
Hi again,

I've hit a bit of a wall. Any help would be appreciaited. I have
gotten the DecClassLoader to work(kind of)

Here is my code:
DexClassLoader dLoader = new DexClassLoader(/sdcard/download/
test.apk,/sdcard/
download,null,ClassLoader.getSystemClassLoader().getParent());
 Class calledClass = dLoader.loadClass(com.test.classname);
Intent it=new Intent(this, calledClass);
 it.setClassName(com.test, com.test.classname);
startActivity(it);

Now I had already isntalled test.apk so wen I ran the above code it
worked fine and launched the application. However I want to be able to
run this without test.apk being installed already (as that would
defeat the entire point of the application) . So I uninstalled it and
when I ran the my app again I get this error:

android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.test/com.test.classname}; have you declared this
activity in your AndroidManifest.xml.

So I'm a bit stumped here. This activity is declared in the Manifest
of the apk I am trying to run. I can't declare it in my applications
Manifest. Any ideas?

Thanks,
Craig

On May 13, 10:31 am, Craig O Connor craigoc...@gmail.com wrote:
 Hi guys,

 I'm having a bit of trouble getting this to work.

 If I want to put an apk file in my app what folder should I put it in.
 And how do I access it?

 I've tried putting it in the res/raw folder and the assets folder but
 I can't seem to get it to work.

 Thanks in advance.

 Best Regards,
 Craig

 On Mar 22, 7:00 pm, Craig O Connor craigoc...@gmail.com wrote:



  Sorry for the delay. Only just now realised my question had been
  approved. Thanks for pointing me in the right direction. I will try
  this now.

  Thanks,
  Craig

  On Mar 15, 8:02 pm, fadden fad...@android.com wrote:

   On Mar 12, 8:38 pm, Lance Nanek lna...@gmail.com wrote:

I saw a thread with people loading APKs via DexClassLoader 
here:http://stackoverflow.com/questions/1001944/android-remote-code-loading

   Yes, use DexClassLoader.  Tthe app needs a place to unpack and fix up
   the DEX data (the alternative being to hold the entire thing in
   unshared memory).  Unless you have a rooted phone, you can't store it
   in /data/dalvik-cache like the system does.

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

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


[android-developers] Re: Petitions to Google

2010-05-21 Thread Tomáš Hubálek
Hey guy,

I still don't understand what is wrong on approach to separate Device/
SDK/etc specific functionality into separate project and during build
time just make resulting application as specific set of modules for
given combination od Device/SDK/etc? This works in java for years and
still didn't found anything wrong on this approach.

Why to make one class grimmy with preprocessor directives if I can
have specific flavor of the class for SDK 1.6 and small screens
another one for SDK 2.2?

Have a good day
Tom

On 21 kvě, 17:08, JP joachim.pfeif...@gmail.com wrote:
 Uhm, aren't y'all barking up the wrong tree? If wanting conditional
 compilation in Java then petition Sun. XML wash/rinse, it's just a
 different standardization body. In case all that goes through (cough)
 it would no doubt make it over to Android as Google hasn't messed with
 the Java formula much.

 I guess it would be nice to have the cake and eat it too. For
 instance, to Leigh's point, it sucks having to go through wrapper
 classes and reflection to defeat code management just to implement
 calls to new-release classes of the SDK, when a simple [if
 (api_level = FROYO)] would solve the problem. OTOH, I take full
 advantage of the managed code approach and you guys should really try
 to get into it too. Polymorphisms like operator overloading is really
 helpful in cutting down on code replication, for example to implement
 complex numbers (classic example). There's plenty of reading that
 explains this so much better than I ever could.

 Tom is cracking me up though (don't take it personal). Design patterns
 (or rather, their ill advised use) are one of the reasons I got out of
 coding, to earn my income anyways. (Need to inject a footnote: design
 patterns are not design principles)
 I suppose there's plenty a pattern that don't accomplish much, like
 aforementioned factories. They sure add distraction. I basically had
 it when people started pontificating over design patterns at lunch
 just to see what stuck. The bottom was reached quickly, when noone
 really understood how a particular pattern solved a problem (guess
 what, it didn't). At that point, everybody stopped talking as the end
 of meaningful exchange was reached. So, now that the conversation had
 ceased, it was silently concluded by the overachieving evangelist-in-
 chief that design pattern X must be the way to go. Today of course,
 i'd just go sit at another table, although I have no such challenge
 with what I'm doing to earn a living now...

 On May 21, 7:06 am, Leigh McRae leigh.mc...@lonedwarfgames.com
 wrote:





  Hearing stuff like this makes me cringe.  I uses to subscribe to the
  holy OOP stuff but no longer.  I have found that the longer you program
  the better your become at knowing when to make the trade off for getting
  something done vs wasting time on looking for the most elegant,
  flexible, portable solution.  Out in the real work when shipping in a
  timely manner is more important I don't see why a simple tool can't be
  added.  It's just another tool for gods sakes, one that many experts
  have used and still use today to get things done.

  Why should I have to write interfaces or factory objects for something I
  know at compile time? Why do I need to write and maintain more code just
  so OOP purists can feel good about themselves?  Why should I have to use
  runtime if statements and hope the compiler strips my code out?  The
  Java way is to throw more hardware at it when it comes down to it and we
  are on a hardware limited platform.

  Leigh

  On 5/21/2010 5:50 AM, Tomáš  Hubálek wrote:

   On 20 kvě, 16:12, Leigh McRaeleigh.mc...@lonedwarfgames.com  wrote:

   On 5/19/2010 11:49 PM, Xavier Ducrohet wrote:

   First the OP didn't talk about using a preprocessor for xml.  I would
   agree that that would be odd and there are better tools for that.  Still
   a preprocessor could be used to conditionally include a resource by id.  
   How about I give you some concrete examples and you can help me see the
   light?

   
   Example 1
   
   //#if BETA
         if ( hasBetaExpired() )
             System.exit( 0 )
   //#endif
   
   Example 2
   
   public final class Assert
   {
            public static final void RIP( final String msg )
            {
   //#if BETA
                    sendReport( msg );
   //#endif
                    System.exit( 0 );
            }}

   
   Example 3
   
   public class Debug
   {
            void Println( String msg )
            {
   //#if !RELEASE          
                    Log.d( TAG, msg );
   //#endif                
            }}

   
   Example 4
   
   //#if PLATFORM_BLACKBERRY  

Re: [android-developers] Re: Petitions to Google

2010-05-21 Thread Sean Hodges
On Fri, May 21, 2010 at 3:06 PM, Leigh McRae
leigh.mc...@lonedwarfgames.com wrote:
 Why should I have to write interfaces or factory objects for something I
 know at compile time? Why do I need to write and maintain more code just so
 OOP purists can feel good about themselves?  Why should I have to use
 runtime if statements and hope the compiler strips my code out?  The Java
 way is to throw more hardware at it when it comes down to it and we are on a
 hardware limited platform.

No offence Leigh, you might have a good point and everything, but all
the time you just spent arguing about this simple tool you could
have spent actually writing the tool - and maybe sharing it with the
rest of us.

If Google haven't written a preprocessor, the most likely reason is
because they haven't needed it. You don't need Google's core Android
team for this particular problem.

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


[android-developers] Re: Application losing SharedPreferences and Sqlite database on Droid

2010-05-21 Thread luoster
Just for whoever's still running into the database malformed issue.
We still never figured out what was causing it (some sources say its
an inherent sqlite bug), but we ended up just backing up the db at
certain points and restoring after a corruption delete

http://www.screaming-penguin.com/node/7749

On May 17, 5:19 pm, tobias429 ecker...@gmx.de wrote:
 I got several reports from users that my application had lost the
 preferences. This is more than a year ago when the G1 was most
 prevalent... I switched to saving preferences in a file instead, and
 complaints stopped. Check the following threads for similar reports:

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

 Haven't seen any explanation though whether this is a legitimate bug
 in Android or wrong coding on the developers behalf. At any rate, I
 couldn't get preferences to work, whereas storing the data in files
 works perfect. If you have problems using preferences, I can only
 recommend to go for files instead.

 On May 17, 9:45 pm, luoster luos...@gmail.com wrote:





  I just got this on a G1, so its definitely not Droid exclusive...

  On Mar 30, 11:22 am, Matt (preinvent) m...@preinvent.com wrote:

   On Mar 24, 4:40 pm, Doug dougforp...@gmail.com wrote:

This problem happened to one of my users just today - he has a Droid.
I asked if anything weird had happened before the problem occurred
(like the phone misbehaving).

He said:

The only random weird behavior I noticed before the problem was that
my phone suddenly stopped ringing this morning for incoming calls - I
checked the ringer volume and its up. I see a missed call in my
Droid's phone log - and I get an email from YouMail - but it never
rings. Just started happening this morning. There was no auto reboot
(that I noticed) and it wasn't switched off until I noticed the issue
and tried to resolve it myself with a reboot.

   OK, this is bizarre - I have experienced this in my Droid as well.  I
   don't know if any of my users have seen this, or if it's even related,
   but it's not an isolated incident.

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

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

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


[android-developers] Re: Open Mic failed on Froyo emulator

2010-05-21 Thread niko20
Hi, ever since I've know, the emulator only support 8 bit not 16


On May 21, 1:22 am, Alger, Lin addr...@gmail.com wrote:
 I got new SDK today, and test my program on emulator. However, I can't
 open Mic on 2.2 emulator, it's work on earlier emulator, my code list
 below.

         new AudioRecord(AudioSource.MIC,
                         16000,
                         AudioFormat.CHANNEL_CONFIGURATION_MONO,
                         AudioFormat.ENCODING_PCM_16BIT,
                         iMinSize);

 And I got log below.

         ERROR/AudioRecord(878): Could not get audio input for record source 1
         ERROR/AudioRecord-JNI(878): Error creating AudioRecord instance:
 initialization check failed.
         ERROR/AudioRecord-Java(878): [ android.media.AudioRecord ] Error code
 -20 when initializing native AudioRecord object.

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

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


[android-developers] Re: Open Mic failed on Froyo emulator

2010-05-21 Thread niko20
Actually what I meant to say was it only supported 8000hz. make sure
you are doing a GetMinBufferSize to figure out the correct parameters.
If that call fails then the parameters arent being accepted so try
other ones.



On May 21, 1:22 am, Alger, Lin addr...@gmail.com wrote:
 I got new SDK today, and test my program on emulator. However, I can't
 open Mic on 2.2 emulator, it's work on earlier emulator, my code list
 below.

         new AudioRecord(AudioSource.MIC,
                         16000,
                         AudioFormat.CHANNEL_CONFIGURATION_MONO,
                         AudioFormat.ENCODING_PCM_16BIT,
                         iMinSize);

 And I got log below.

         ERROR/AudioRecord(878): Could not get audio input for record source 1
         ERROR/AudioRecord-JNI(878): Error creating AudioRecord instance:
 initialization check failed.
         ERROR/AudioRecord-Java(878): [ android.media.AudioRecord ] Error code
 -20 when initializing native AudioRecord object.

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

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


[android-developers] Handling Unsupported Content Types in WebView

2010-05-21 Thread Jeff
My app uses WebView to display most of its content, which it receives
from various remote sources. One of the pages I load has a link to a
URL that returns a PDF. The url gives no indication that it is a PDF.
Only the response content type shows it. Since webview does not appear
capable of displaying PDF's, the app does nothing when a user clicks
on this link.

I would expect there to be some method in WebViewClient that I can
override to catch this, but I can't seem to find one. onReceivedError
is not called. I don't believe anything else is.

Is there a way I can detect this and other unsupported content types
so I can at least display an error or do something? Right now the app
just does nothing, which is not acceptable.

Thanks!

Jeff

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


Re: [android-developers] DDMS not listing process -Any way via command line to attach the process to debug

2010-05-21 Thread Anil Sasidharan
Hi,

 Please try the following steps to run DDMS in standalone mode
(outside Eclipse)...
1.  Install Android SDK
2.  Add android_sdk_install_path/tools to PATH environment variable
3.  Run ddms from Host PC's Linux shell
4.  If there is any exception message
Assistive Technology not found: org.GNOME.Accessibility.JavaBridge,

comment out the line
assistive_technologies=org.GNOME.Accessibility.JavaBridge
in the file accessibility.properties
5.  Re-run ddms

Warm Regards,
Anil

On Fri, May 21, 2010 at 8:36 PM, GPU gopuraj...@gmail.com wrote:
 Hi All ,

 Sometimes the DDMS in the Eclipse not listing the process.

 To do the debug in this condition,

 1)  Is their any way force the DDMS to list the process?

 2) Any command  to attach the process from the command line?

 Thanks  Regards
 Rajesh Gopu

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

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


Re: [android-developers] How t o make a magnifying glass On a picture?

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 7:43 AM, peng wp19831...@gmail.com wrote:

 hello I want to make a magnifying glass on a picture so that the part
 of picture is extended ?AS
 http://i3.6.cn/cvbnm/72/60/36/73dfcc8862020e9ed366a55e72e3.jpg
 could you give me some code or sample? thank you


Posting a picture of an iPhone app and asking for code and example to do
this in Android, without showing that you've done any work whatsoever to
this end, is a sure fire way to get ignored.

Like this ... watch ...

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

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

Re: [android-developers] how to add a dialog or a window in the map when click the marker ?

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 7:54 AM, xhy xhyg...@gmail.com wrote:

 hi all,i want to add a  dialog or a window  in the map when click the
 marker  as folows?but  i don't know what to do. Does put the  dialog int the
 Overlay or MapView ? Thanks!


Create a layout that looks like that balloon then add it to the mapview with
the appropriate layout. That's it.

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

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

Re: [android-developers] how to add a dialog or a window in the map when click the marker ?

2010-05-21 Thread TreKing
Appropriate layout *parameters*.

On Fri, May 21, 2010 at 11:11 AM, TreKing treking...@gmail.com wrote:

 On Fri, May 21, 2010 at 7:54 AM, xhy xhyg...@gmail.com wrote:

 hi all,i want to add a  dialog or a window  in the map when click the
 marker  as folows?but  i don't know what to do. Does put the  dialog int the
 Overlay or MapView ? Thanks!


 Create a layout that looks like that balloon then add it to the mapview
 with the appropriate layout. That's it.


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




-- 

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

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

Re: [android-developers] how to transfer a geopoint from a mapActiviy to the other activity

2010-05-21 Thread TreKing
On Fri, May 21, 2010 at 10:11 AM, xhy xhyg...@gmail.com wrote:

 i just think that tranfering  a Object  is a senseable  way !


It is!
But GeoPoint is neither Serializable or Parcelable!
So you can't!
If you want to transfer an object, create your own object that has lat and
lon properties and is Serializable or Parcelable and pass that!

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

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

[android-developers] getting x and y coorinates in onclick event

2010-05-21 Thread social hub
In onclicklistener onclick

how to get the x and y coordinates where its clicked.

any one any ideas

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] JUnit Puzzle: How do I test a Service and an Application together?

2010-05-21 Thread whitemice
I want to test a Service with my Application class pre-instantiated, a
bit like what happens on a real device.

My problem is I can't figure out a way to do this with the correct
Application context AND having the Application being instantiated
EXACTLY once.  Being instantiated multiple times causes issues if
there is code which uses singletons, and/or performs registrations
tasks that should only be performed once.

Full code for this snippet can be downloaded here:
http://www.zedray.co.uk/temp/ServiceSnippet.zip

My test code:
=
public class ServiceDemoTest extends ServiceTestCaseServiceDemo {
  protected final void setUp() throws Exception {
/** Setup the MainApplication. **/
mApplication = (ApplicationDemo)
Instrumentation.newApplication(ApplicationDemo.class, getContext());
mApplication.onCreate();
setApplication(mApplication);

super.setUp();
}

@Override
protected final void tearDown() throws Exception {
if (mApplication != null) {
mApplication.onTerminate();
mApplication = null;
}
setApplication(null);

super.tearDown();
}

@MediumTest
public final void testStartable() {
startService(new Intent(getContext(), ServiceDemo.class));
}
=

This produces the following trace, which suggests that several
instances of my Application are being created, or just that onCreate()
is being called several times:

=
05-21 16:20:43.667: INFO/ServiceSnippet(4126):
ApplicationDemo.onCreate() mInstanceId[0]
05-21 16:20:46.398: INFO/ServiceSnippet(4143):
ApplicationDemo.onCreate() mInstanceId[0]
05-21 16:20:46.437: INFO/ServiceSnippet(4143):
ApplicationDemo.onCreate() mInstanceId[1]
05-21 16:20:46.447: INFO/ServiceSnippet(4143): ServiceDemo.onCreate()
05-21 16:20:46.447: INFO/ServiceSnippet(4143): ServiceDemo.onStart()
05-21 16:20:46.466: INFO/ServiceSnippet(4143):
ApplicationDemo.onCreate() mInstanceId[2]
05-21 16:20:46.488: INFO/ServiceSnippet(4143):
ApplicationDemo.onCreate() mInstanceId[3]
=

I have no idea why the onCreate() keeps getting called, and how to
ensure it only happens once.  Is this possible? Any ideas?

Regards
Mark

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


[android-developers] Questions to ask at Google I/O

2010-05-21 Thread Brill Pappin
If anyone is attending Google I/O, I think it would be a good time to
publicly ask when Canadian developers are going to be able to sell
their apps. Google should be embarrassed that they have not handled
the issue after all this time.

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


[android-developers] ServiceTestCase does not notify Observers and does not call onStartCommand

2010-05-21 Thread Felipe Ramos
Hi,

I am currently trying to test a Service class using ServiceTestCase
and I am facing some problems with it. My Service class is responsible
to do some queries on another application ContentProvider, updating my
own application DB when the other one changes. It is like a sync
service that the application depends on.

The first thing I noticed while using the ServiceTestCase is that it
does not call the onStartCommand method, that causes my service to not
initialize itself correctly. I did that manually and everything seems
to work fine, except one important part. My service ContentObservers,
that are registered on the cursor returned by the queries I do when
the onStartCommand runs, never gets the onChange() method called, even
when I manually update the other applications database using its
content provider.

To check that this is not a bug of the other ContentProvider, I
registered a similar ContentObserver inside my test and called
notifyChange on the same URI I registered using the content resolver
registerContentObserver method.

The setup() and tearDown() methods just call super() and I use the
getSystemContext() to retrieve the context. I am also using the
default MockApplication class.

Is there any known issue with ServiceTestCase that causes that?

Below is a snippet of the misbehaving code. onChange log is never
printed using logcat

...
public void testOne() {
...
Intent startServiceIntent = new Intent(ACTION);
startService(startServiceIntent);

// Call manually onStartCommand since it is not being called by
the test case automatically
getService().onStartCommand(startServiceIntent, 0, 0);

Log.d(UT,testOne);

mContext.getContentResolver.registerContentObserver(uri, true, new
ContentObserver(new Handler()){
@Override
public void onChange(boolean selfChange) {
Log.d(UT,Uri observer called);
}
});

mContext.getContentResolver().notifyChange(uri, null, false);

...
}

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

2010-05-21 Thread intbt
I have completely re-installed eclipse and I still get the errors. It
seems as if the emulator can't find the Android Virtual Devices even
though when I go to the AVD Manager all of the devices are shown as
available. A second error message (in addition to the jface message)
is:

An error has occurred. See error log for more details.
java.lang.NullPointerException


If I just use RUN (instead of Run Configuration) it will run an
emulation.

Any help from eclipse experts or suggestions as to a better user group
to try?

intbt

On May 20, 3:50 pm, intbt in...@tacberry.com wrote:
 Just allowed eclipse to uprade the emulator. Re-booted (eclipse and
 the PC) and now I get this error whenever I try to run any android
 configuration

 Error
 Thu May 20 15:32:45 PDT 2010
 Problems occurred when invoking code from plug-in:
 org.eclipse.jface.

 I have a copy of the error log if that is of help.

 Any ideas as to what I did wrong?

 intbt

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

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


[android-developers] Filtering Android Sensors Noise

2010-05-21 Thread Alfonso
HI,

I'm programming an Augmented Reality application. It's development
it's in an advanced state but I can't place the icons on the screen so
still as anothers programs does (Layar, in example). This is because
of the continuous variations of the sensors. I've tried the three
modes of the sensors (FAST, GAME, and NORMAL) but I only get them to
move more or less fast. The shivering is the same at different speed.

Finally I thougth I could reach my goal with a digital filter,
averaging historical values. But again the icons continues moving,
specially the most far placed ones (in the z axis). Please, could some
one help me with some clue?

Of course, any help will be appreciated.

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


Re: [android-developers] Re: G1 phone and update firmware 2.0-2.2 - question

2010-05-21 Thread Evgeny V
Found some article posted time ago.
http://www.maximumpc.com/article/news/every_android_smartphone_will_receive_android_21_update_caveat



2010/5/21 Tomáš Hubálek tom.huba...@gmail.com

 Regarding first question: I'm also interested in.

 Regarding the second question I created similar thread but no response
 yet:

 http://groups.google.com/group/android-developers/browse_thread/thread/37a8a9b34d1b2449#

 Tom

 On 21 kvě, 14:00, EvgenyV evgen...@gmail.com wrote:
  Hi All,
 
  1. Guys please suggest some official Google/HTC link with explanation
  why HTC G1 phone can't be updated to Adroid 2.0-2.2 firmware.
 
  2. Is Google planning to sell latest versions of dev phones in the
  near future?
 
  Thanks in advance,
  Evgeny
 
   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 athttp://
 groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: getting x and y coorinates in onclick event

2010-05-21 Thread Jeremiah Sellars
If I understand correctly, there wouldn't be a x/y location associated
with onClick. A click is just a selection action and can be triggered
through a touch or other selection method.

I'm pretty sure you'd need to do it through the onTouchEvent()

On May 21, 9:30 am, social hub shubem...@gmail.com wrote:
 In onclicklistener onclick

 how to get the x and y coordinates where its clicked.

 any one any ideas

 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Why 2 less Zoom levels in API than in Google Maps App in my Area

2010-05-21 Thread Scott
I noticed while programming the Maps API, that in my Area my Map has
two less zoom levels than the Google Maps App has?? I also noticed
that the style of the map is different?

Is this normal???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why 2 less Zoom levels in API than in Google Maps App in my Area

2010-05-21 Thread mike

On 05/21/2010 11:01 AM, Scott wrote:

I noticed while programming the Maps API, that in my Area my Map has
two less zoom levels than the Google Maps App has?? I also noticed
that the style of the map is different?

Is this normal???

   

Is this possibly a difference between satellite and terrain
views? Terrain views typically have fewer zoom levels.

Mike

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


  1   2   >