[android-developers] Re: On ICS, Stopped service can't receive an intent.

2012-01-30 Thread Johan Appelgren
You're probably running into this behavior introduced in Android 3.1

http://developer.android.com/sdk/android-3.1.html#launchcontrols 

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

[android-developers] Samsung S with Ice cream

2012-01-30 Thread Giuseppe
Mediarecord don't want to work at all on source like VOICE_CALL or UP_LINK.
Did Samsung change something from the original ANDROID code source?

Giuseppe 

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

2012-01-30 Thread Mort
The manifest contains the class. There also weren't any changes to the 
manifest entry or the imports of the receiver class.

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

[android-developers] Fascism against small screens

2012-01-30 Thread Simon Jackson
http://developer.android.com/guide/appendix/market-filters.html#manifest-filters
 
looks as though even if your app may work on a small screen, unless you add 
this attribute market will tell small screen user to take a running jump!

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

2012-01-30 Thread Kumar Bibek
LOL ... Yes, seems so. I have been hit by this one at-least a few dozen
times.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Jan 30, 2012 at 3:04 PM, Simon Jackson jackokr...@gmail.com wrote:


 http://developer.android.com/guide/appendix/market-filters.html#manifest-filterslooks
  as though even if your app may work on a small screen, unless you add
 this attribute market will tell small screen user to take a running jump!

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

2012-01-30 Thread Kostya Vasilyev
I have a bunch of these in my Market console, about one per 1500 actual 
installed copies.


Most of them are listed as coming from Other devices, which does not 
necessarily mean weird no-name ones (e.g. I know the Galaxy S comes 
through as Other), and 3 are listed as Nexus One and 5 as Droid.


The app runs fine on a Moto Milestone with 2.1, which is the earliest 
Android version I have at my disposal for testing.


It builds fine with Android SDK 1.6 (if I remove things like 
showAsAction), which is the minSdkVersion I have set in the manifest.


Oh, and the app only installs to internal memory.

-- Kostya

30.01.2012 11:34, Mort пишет:

Hi,

I got several mails about my app crashing since the recent update. In 
the developer console, I see several stack traces with a 
ClassNotFoundException.
Strange thing is, the class surely exists, and the error doesn't seem 
to happen on every device. At least the developer edition (i.e. 
debug signature, not signed for market) worked fine on mine, and I 
also got some mails with everything's working fine, but wish list.


I tried to find some more information in this group, but my picks in 
threads with promising topic didn't quite help. Closest thing I found 
was a similar error when the SD card's removed without proper unmount, 
but I can't imagine this happens to so many people, especially not on 
devices where the SD card is in fact just internal memory.


Any idea?

Here's the trace:
java.lang.RuntimeException: Unable to instantiate receiver my 
receiver class: java.lang.ClassNotFoundException: my receiver class 
in loader dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]

at android.app.ActivityThread.handleReceiver(ActivityThread.java:1960)
at android.app.ActivityThread.access$2400(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1093)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: my receiver class in 
loader dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]

at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:1951)
... 10 more
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
Kostya Vasilyev

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

2012-01-30 Thread Kostya Vasilyev

Not necessarily:


When the either the android: minSdkVersion or android: targetSdkVersion 
is set to 4 or higher, the default for all attributes is true. In this 
way, the application is considered to support all screen sizes by default.



Given how, according to Google, Android 1.5 now accounts only for 0.6% 
of the devices, that's really a non-issue.


-- Kostya

30.01.2012 13:34, Simon Jackson пишет:
http://developer.android.com/guide/appendix/market-filters.html#manifest-filters 
looks as though even if your app may work on a small screen, unless 
you add this attribute market will tell small screen user to take a 
running jump!


--
Kostya Vasilyev

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

2012-01-30 Thread Simon Jackson
I'm small screen at api 7, and intend to add code to eliminate big screen 
usage in protest!

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

2012-01-30 Thread Simon Jackson
By the way I think AudioTrack and maybe some of the Service setForground 
(not yet sure of mi9n API) are the limits of the app I am developing so 1.5 
maybe.

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

2012-01-30 Thread Harpreet Singh
Hi friends,

I resolved my problem, actually i have to call the soap service in my
app and i was finding the way to develop that service in my. How silly
of me... :P
Moreover I find out that the service was not working in AVD version
2.1 and it worked well in AVD version 2.3.x.

Thanks for all your support.

I also get successful in saving the user info by using
SharedPreferences to make my app autologin each time user open the
app.

Thanks,
Harpreet.


On Jan 25, 5:52 pm, unicus unicus unicus...@gmail.com wrote:
 Harpit,

 I have developed sample tutorial.You can idea how to access webservice in
 android.
 please following 
 linkhttp://androidbasic-answer.blogspot.com/2012/01/access-webservice-fro...
 --
 *More info*,http://androidbasic-answer.blogspot.com/

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


[android-developers] To write read the data to a file on an SD Card in Android device using android-serial-port api

2012-01-30 Thread srinivasan shanmugam
Dear All,

Am new to this android development, could any body please help me in
editing the android serial port api for writing  reading data into
the file using java file operations such way that the data from serial
port is directly written into the file  read from the file on an SD
card

Kindly do the needful as soon as possible  share if any body come
across some part of the solution for the above problem


Advanced Thanks,
Srinivasan S

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

2012-01-30 Thread jacob
actually managed  thanks for your reply


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

2012-01-30 Thread Soorie

Thanks to you people for getting time in reply.

and Sorry for late reply.

Actually as Jack suggested, I have almost similar idea.

I have idea of android applications ( you can say I am more than a
starter level).
I found many such applications in market but no reference to code or
APIs (in google search) but with no luck.

That is why I posted this in group.
In case any of person in group has done any such app, I request them
to please share APIs reference or a sample code.
I am also putting efforts at my end and will share if I found
anything.

Thanks again,

Suresh Pal

On Jan 27, 9:09 pm, JackN j...@jacknorth.com wrote:
 Might be hard to find a virtual makeup studio api, but you could check
 this out for ideas

 https://market.android.com/details?id=com.jnn.jw.lookhl=en

 On Jan 26, 1:53 pm, TreKing treking...@gmail.com wrote:



  On Tue, Jan 24, 2012 at 11:52 PM, Soorie sapient.sur...@gmail.com wrote:
   I request you all to please provide answers for above queries as I
   am stuck at this start level :(

  If you don't get a response, I would suggest you back up and try something
  a little more reasonable for your experience level. Practice, learn, gain
  experience, then come back to this idea. Good luck.

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

 - Show quoted text -

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


[android-developers] Gradient On Pdf Text

2012-01-30 Thread aru padam
Hi all,
   Any one know about the integration of gradient on text in the pdf
using itext library,

Thanks and Regards

Deepesh C

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


[android-developers] animation for splash screen

2012-01-30 Thread aparna rani
hii all


i am implementing splash screen for my app. i just implement
display sometime and go to next activity. but i want to show any animation
show my activity/
please give me idea how to do that.

thanking 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] animation for splash screen

2012-01-30 Thread Ratheesh Valamchuzhy
use fade_in animation in android

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

2012-01-30 Thread sell.bergstr
 In case any of person in group has done any such app, I request them
 to please share APIs reference or a sample code.

in case any person has done such an app, that person has probably
invested a lot of work into it, and may not be willing to hand that
over to you just like that.

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


[android-developers] Re: Javascript binding issues

2012-01-30 Thread John
Greg,

A couple of things:

a.) What versions are you seeing this in? Emulator only?
b.) jQuery (in general) is pretty slow on mobile devices. jQuery
Mobile has come a long way (in the almost 3 years since the project
started): http://jquerymobile.com/
c.) Have you tried not walking the whole DOM and just directly adding
to a couple of nodes?
d.) Binding mouseup/down might be problematic with jQuery (due to
multitouch, trackball, etc).

John

On Jan 29, 10:28 pm, Greg Donald gdon...@gmail.com wrote:
 I'm working up some new code that uses Javascript binding, described here:

 http://developer.android.com/guide/webapps/webview.html#BindingJavaSc...

 1) Is there any way to speed it up?  There's about a 2-3 second delay
 before a click executes my Javascript clickContact() function in my
 activity.  I'm attaching to my tr with jQuery, like this:

 $.each($('tr[class=contact]'), function(i, obj) {
   $(obj).click(function() {
     Android.clickContact($(obj).attr('id'));
   });

 });

 I tried attached to my a tags, but that's just as slow.

 My Android code:

 public class ContactsJS
 {
   private final Contacts con;
   private final Context c;

   public ContactsJS( final Contacts contacts, final Context context )
   {
     con = contacts;
     c = context;
   }

   public void clickContact( final String contact_id )
   {
     con.clickContact( contact_id );
   }

 }

 WebView contacts = (WebView) findViewById( R.id.contacts );
 contacts.addJavascriptInterface( new ContactsJS( this, this ), Android );

 It works, but it's really slow.

 2) How can I get WebKit to provide some sort of click feedback?  Since
 I have problem #1, described above, I really need to provide some
 click/tap feedback.  My jQuery code below works great in Chrome and
 Firefox, highlights red like expected, but in the Android browser it
 doesn't do anything.  I had some debug code in there, mousedown and
 mouseup never fire.

 $.each($('a[class=click]'), function(i, obj) {
   $(obj).mousedown(function() {
     $(obj).parent().css(background-color, '#f00');
   }).mouseup(function() {
     $(obj).parent().css(background-color, 'transparent');
   });

 });

 I also tried the other mouse events described here:

 http://api.jquery.com/category/events/mouse-events/

 And I tried attaching to the trs and tds instead of my as, can't
 get anything to fire in the Android browser.

 How can I provide some click feedback for my slow Javascript binding?

 Thanks,

 --
 Greg Donald

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


[android-developers] Clossing expanded child views in ExpandableListActivity

2012-01-30 Thread Evan Hackborn
In ExpandableListActivity is there any method to close all the
expanded child views ?. I am having some operation(say Button) in
the Header, when i click the Button it is giving a crash, if all the
child are not closed otherwise its working fine

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


[android-developers] Is there a way to link SearchViewCompat and Activity.onSearchRequested() i.e. search (hard)button

2012-01-30 Thread harvinder
I am trying to have a actionbar with a searchview widget for API  11 and 
was able to get it through ActionBarCompat and SearchViewCompat (v4 rev 6).

However, I am still struggling to find a way to link onSearchRequested(), 
i.e user pressing the search button and invoking search dialog at the top, 
with SearchViewCompat.

Any idea if it is doable? 

thanks
harvinder 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] To write read the data to a file on an SD Card in Android device using android-serial-port api

2012-01-30 Thread TreKing
On Mon, Jan 30, 2012 at 5:01 AM, srinivasan shanmugam 
srinivasan@gmail.com wrote:

 please help me in editing the android serial port api


If you're looking to modify the source code, you need to ask this on a list
related to that.

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

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

Re: [android-developers] Clossing expanded child views in ExpandableListActivity

2012-01-30 Thread TreKing
On Mon, Jan 30, 2012 at 7:19 AM, Evan Hackborn evanhackb...@gmail.comwrote:

 In ExpandableListActivity is there any method to close all the expanded
 child views ?


There is a method to collapse a single child. Do this repeatedly.


 I am having some operation(say Button) in the Header, when i click the
 Button it is giving a crash, if all the child are not closed otherwise its
 working fine


Consider identifying and fixing the cause of your crash instead of forcing
a path that arbitrarily makes it work fine. It will probably just crash
elsewhere.

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

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

Re: [android-developers] Re: how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-30 Thread Mark Murphy
On Sun, Jan 29, 2012 at 9:37 PM, Doug beafd...@gmail.com wrote:
 On Jan 26, 2:33 pm, Mark Murphy mmur...@commonsware.com wrote:
 True, though I'm a bit hesitant to rely upon that behavior until they
 release the full library-project-as-distributable-JAR support.

 Why is this?  You're basically just depending on the R symbols being
 defined in a class that's not in the library jar file but instead is
 elsewhere in the classpath of the VM.

And, until the library JAR file supports redistribution, I have no way
of being assured whether the JAR contains an R.class or not. Clearly
an R.java was needed at compile time of the library JAR, otherwise the
code would not compile and there would be no class files to put in the
JAR. In principle, that R.class could be in the JAR, thereby causing
problems when there is a conflicting R.class in the host project.

This is one of those things that may well work with the tools as they
stand, but with a fuller solution hopefully coming out soon, I'm not
exactly rushing to fuss with it. Now, if there are rumblings that
redistributable library project JARs are being postponed for whatever
reason, then my interest in your approach rises.

Hence, my use of the term hesitant. I'm not saying your approach is wrong.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] AsyncTask progress while encryption

2012-01-30 Thread chander
Hi all,

i have an encryption application, i need to show the progress bar
while encrypting files. i am confused how to use AsyncTask class to
create a progress dialog inside my application?

In encryption method i am having an arraylist containing set of files
to encypt with a Passphrase, in this how i decide the increment factor
of encryption while showing the progress.
please help me and provide a good tutorial or example so that i can
use AsyncTask in my application.


Thanks
Chandra

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


[android-developers] VideoView and buffering

2012-01-30 Thread John-Marc Desmarais
Hi,

I am currently writing a video file to the SDCard while playing it
with VideoView.

My problem is that, if I buffer 1MB of video and begin the Video
playback, the video stops after 1MB has been played, even though by
this time, 5MBs of file has now been written to the sdcard.

I have been trying various things in onCompletion handler.. such as:
int curLoc = mp.getCurrentPosition();
Log.e(LogName.onCompletion, LogName.onCompletion + 
CurrentLocation:
 + mp.getCurrentPosition());
Log.e(LogName.onCompletion, LogName.onCompletion + Duration:  
+
mp.getDuration());
mp.pause();
mp.prepareAsync();
mp.start();
mp.seekTo(curLoc);

In this case I get a Cannot play video message.

Or:
int curLoc = mp.getCurrentPosition();
Log.e(LogName.onCompletion, LogName.onCompletion + 
CurrentLocation:
 + mp.getCurrentPosition());
Log.e(LogName.onCompletion, LogName.onCompletion + Duration:  
+
mp.getDuration());
mp.prepareAsync();
mp.start();
mp.seekTo(curLoc);

This crashes with prepare Async in State 128.

Has anyone solved the problem of re-queuing file in the videoView so
that it plays everything that has been written to the sdcard even
though it starts with a smaller file?

Regards,
-jm

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

2012-01-30 Thread Daniel Drozdzewski
John-Marc,

I have not done this myself, but here is tutorial on how to do it:
http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/

They actually create new MediaPlayer object upon every update to the
buffer file and point this new MediaPlayer to the updated buffer every
single time.

I would test calling MediaPlayer.reset() first instead of creating new
player object every time, to see whether time and memory consumed by
such solution is a bit better.

HTH,

Daniel





On 30 January 2012 15:49, John-Marc Desmarais j...@ieee.org wrote:
 Hi,

 I am currently writing a video file to the SDCard while playing it
 with VideoView.

 My problem is that, if I buffer 1MB of video and begin the Video
 playback, the video stops after 1MB has been played, even though by
 this time, 5MBs of file has now been written to the sdcard.

 I have been trying various things in onCompletion handler.. such as:
                int curLoc = mp.getCurrentPosition();
                Log.e(LogName.onCompletion, LogName.onCompletion + 
 CurrentLocation:
  + mp.getCurrentPosition());
                Log.e(LogName.onCompletion, LogName.onCompletion + Duration: 
  +
 mp.getDuration());
                mp.pause();
                mp.prepareAsync();
                mp.start();
                mp.seekTo(curLoc);

 In this case I get a Cannot play video message.

 Or:
                int curLoc = mp.getCurrentPosition();
                Log.e(LogName.onCompletion, LogName.onCompletion + 
 CurrentLocation:
  + mp.getCurrentPosition());
                Log.e(LogName.onCompletion, LogName.onCompletion + Duration: 
  +
 mp.getDuration());
                mp.prepareAsync();
                mp.start();
                mp.seekTo(curLoc);

 This crashes with prepare Async in State 128.

 Has anyone solved the problem of re-queuing file in the videoView so
 that it plays everything that has been written to the sdcard even
 though it starts with a smaller file?

 Regards,
 -jm

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



-- 
Daniel Drozdzewski

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


[android-developers] ListView item into ListView

2012-01-30 Thread fala70
hi guys,

I've a problem that I can't solve... I've a custom Listivew with a
view inflacted. The item view inflacted contain a couple of textview
and an other custom listview. My problem is that the listview item is
not expanded correctly, I can see only the first item also if it has
the Layout Height set to wrap_content.  If I change the Layout Height
with a fixed value all items have the same height, and that is not
good. I want that each single item has automatically the correct wrap
height for the variable height of listview item.

Any Idea ?

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


[android-developers] Re: EditText in ListView footer not visible when the soft keyboard is present

2012-01-30 Thread ivan
Anyone?

On Jan 27, 12:44 pm, ivan istas...@gmail.com wrote:
 I have a ListView and I'm placing an EditText view in its footer, but
 the soft keyboard blocks the EditText view when it pops up.

 My AndroidManifest has:

 activity
 android:name=com.myapp.views.activities.StoresSearchActivity
             android:label=@string/appName
 android:screenOrientation=portrait
             android:launchMode=singleInstance
             android:windowSoftInputMode=adjustResize /

 My activity layout:

 ListView android:id=@+id/stores_preferredStores
                 xmlns:android=http://schemas.android.com/apk/res/android;
                 android:orientation=vertical
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:dividerHeight=0dp
                 android:divider=#
                 android:overScrollFooter=@null
                 /

 My footer is a complex view with a couple different buttons and an
 edit text view so it doesn't make sense to not have it scroll with the
 list view, being so tall.

 My footer layout:

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
       android:id=@+id/footerlayout
       android:layout_width=fill_parent
 android:layout_height=wrap_content
       android:layout_marginBottom=10dp

             TextView android:layout_height=wrap_content
             android:id=@+id/store_search_text
             android:text=@string/store_search_find_header_text
             android:layout_width=fill_parent
             android:layout_marginLeft=10dp
             android:layout_marginRight=10dp
             android:textColor=@color/white
             android:layout_alignParentLeft=true
         /TextView
         Button
             android:id=@+id/store_search_use_location_button
             android:layout_width=fill_parent
             android:layout_marginTop=10dp
             android:layout_height=40dp
             android:layout_below=@id/store_search_text
             android:text=@string/store_search_location_button_text
             android:layout_alignLeft=@id/store_search_text
             android:layout_alignRight=@id/store_search_text
             style=@style/ActionButton.LtBlue
         /Button
         TextView android:layout_height=wrap_content
             android:id=@+id/store_search_or
             android:text=Or
             android:textColor=@color/white
             android:layout_width=fill_parent
             android:layout_marginTop=10dp
             android:layout_below=@id/
 store_search_use_location_button
             android:layout_alignLeft=@+id/
 store_search_use_location_button
             android:layout_alignRight=@+id/
 store_search_use_location_button
         /TextView
         EditText android:layout_height=wrap_content
             android:id=@+id/store_search_query
             android:layout_width=fill_parent
             android:layout_marginLeft=10dp
             android:layout_marginRight=10dp
             android:layout_marginTop=10dp
             android:paddingLeft=5dp
             android:layout_below=@id/store_search_or
             android:hint=@string/search_hint
             android:inputType=textPostalAddress
             android:imeOptions=actionDone 
         /EditText
         Button
             android:id=@+id/store_search_find_location
             android:layout_width=fill_parent
             android:layout_height=40dp
             android:layout_below=@id/store_search_query
             android:text=@string/
 store_search_find_location_button_text
             android:layout_alignLeft=@+id/store_search_query
             android:layout_alignRight=@+id/store_search_query
             style=@style/ActionButton.LtBlue
         /Button
 /RelativeLayout

 I've set up an OnScrollListener, and it appears the ListView is not
 getting resized as it should when the soft keyboard pops up.

 Does anyone have any ideas on how I can get the EditText above the
 soft keyboard?

 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] Get Bit Error Rate/ Rx Qual

2012-01-30 Thread Bals
Dear Friends,
I am trying to get the Bit Error Rate(Rx Qual) but i am getting -1
value only.
Please help me to get the exact value of Bit Error Rate. I have
attached the code which i used.
Thanks in advance.
public class GetGsmSignalStrengthActivity extends Activity {
TelephonyManagerTel;
MyPhoneStateListenerMyListener;
   @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MyListener   = new MyPhoneStateListener();
Tel  =
( TelephonyManager )getSystemService(Context.TELEPHONY_SERVICE);
 
Tel.listen(MyListener ,PhoneStateListener.LISTEN_SIGNAL_STRENGTHS);
  }
private class MyPhoneStateListener extends PhoneStateListener
 {
   @Override
   public void onSignalStrengthsChanged(SignalStrength
signalStrength)
   {
  super.onSignalStrengthsChanged(signalStrength);
  TextView dummy1 = (TextView)findViewById(R.id.textView5);
  x=String.valueOf(signalStrength.getGsmBitErrorRate());
  dummy4.setText(Bit Error  :  +x);
  }
 }
}

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


[android-developers] Web pages as assets?

2012-01-30 Thread atcal
I'd like to store my app documentation as web pages (mixed text and
images) in the assets then display them in webview. Is this possible?
I've done my best to look through the on line documentation but I
can't find how to do it.

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


[android-developers] LinearLayout problem

2012-01-30 Thread atcal
I'm trying to create two rows of display, each consisting of an image
to the left and accompanying text to the right. My XML file looks
like:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical 
LinearLayout
android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1
TextView
android:text=string1
android:gravity=center_horizontal
android:background=#00
android:drawableLeft=@drawable/image1
android:layout_width=wrap_content
android:layout_height=fill_parent
android:layout_weight=1/
/LinearLayout
LinearLayout
// same as above but for string2 and image2
/LinearLayout

/LinearLayout

I was expecting android:drawableLeft to give me my image to the left
of the text at the same vertical position but it is lower down. It's
as if there are four rows, at the right in the first row is string1
and at the left in the second row is image1 and so on. Anyone know how
I can get image1 vertically aligned with string1 and image2 with
string2?

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


[android-developers] Waypoints with Google Maps API

2012-01-30 Thread alexslx
Hi folks,

I'm searching in the web how to trace route with multiple waypoints,
but i just found how to do it using Google Maps API for web
(javascript). I also looked for gmaps android api, but didn't found
nothing.

I want to trace an route that my device is going, via GPS.

Someone knows where i can find some tech details how to do it, or some
example?

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


[android-developers] Signing an APK inside an APK as a market app

2012-01-30 Thread Daniel Patterson
Hello,

Currently I am working on an app that is being uploaded to the market
place.  We have the app signed with out own keystore.

My question is that currently we have another apk inside this app that
is installed separately when the user goes to run it for the first
time (it's a game).

The problem is that when trying to install this apk it is not
recognized as a market app so it is blocked unless the user checks
unknown sources.

Is there a way to get this apk to also be recognized as a android
market app so there is no user interference in installing the game?

Right now I am assuming that using the same keystore and password on
both apps will work, but am not certain.  Please let me know if we can
get this second APK to run with android market app permissions.  If
there are some extra steps I need to do to certify it as a market app
without the user downloading more than one app that would be great.

Thank you,

Daniel Patterson

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

2012-01-30 Thread atcal
I can run the hello android example on a phone AVD.
I have a slightly modified Hello Android app which I want to run on a
tablet AVD (1250x800). But after installing the apk on the emulator,
eclipse grinds to a halt. The last console messages are (for example):

[2012-01-27 12:17:21 - HelloAndroid] Installing HelloAndroid.apk...
[2012-01-27 12:17:37 - HelloAndroid] Success!
[2012-01-27 12:17:37 - HelloAndroid] Starting activity
com.example.hello.HelloAndroidActivity on device emulator-5554
[2012-01-27 12:17:38 - HelloAndroid] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example.hello/.HelloAndroidActivity }
[2012-01-27 12:17:40 - HelloAndroid] Attempting to connect debugger to
'com.example.hello' on port 8651

It never seems to connect to port 8651 (whatever that is). Can anyone
help?

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


[android-developers] Daily Updating Application

2012-01-30 Thread aashutosh
Hello all,
I want to develop an app that gives daily news and updates to the
user.Some thing like a news app but i want to customize my own layout
and fill the appropriate updated content.For example,i give daily
updates of a tournament like UPCOMING MATCHES and RESULTS of the
previous games.I have no clue how to do it. please help

Regards,
Aashutosh

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


[android-developers] Error

2012-01-30 Thread aashutosh
I have a button in main activity which activates another activity
whose code is as follows:


--
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.listplaceholder);

ArrayListHashMapString, String mylist = new
ArrayListHashMapString, String();


String xml = XMLfunctions.getXML();
Document doc = XMLfunctions.XMLfromString(xml);

int numResults = XMLfunctions.numResults(doc);

if((numResults = 0)){
finish();
}

NodeList nodes = doc.getElementsByTagName(tournaments);

for (int i = 0; i  nodes.getLength(); i++) {
HashMapString, String map = new HashMapString, 
String();

Element e = (Element)nodes.item(i);
map.put(id, XMLfunctions.getValue(e, id));
map.put(name,  + XMLfunctions.getValue(e, name));
map.put(date, Date Started:  + XMLfunctions.getValue(e,
date));
map.put(nextmatch, Next Match:  +
XMLfunctions.getValue(e, nextmatch));
mylist.add(map);
}

ListAdapter adapter = new SimpleAdapter(this, mylist ,
R.layout.main1,
new String[] { name, date,nextmatch },
new int[] { R.id.item_title,
R.id.item_subtitle,R.id.item_subsubtitle });

setListAdapter(adapter);

final ListView lv = getListView();
lv.setTextFilterEnabled(true);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View view, int
position, long id) {

if(position==0)
{
Intent intent=new
Intent(Ongoingtournaments.this,info1.class);
startActivity(intent);
}
}
the XMLfunctions class do the work of XML parsing.
---
after clicking the button my logcat out put says ACTIVITY IDLE
TIMEOUT FOR HISTORYRECORD
.

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


[android-developers] Eclipse doesn't offer to add import or show functions

2012-01-30 Thread DanHi
Used to be when I added a new android type (say a TextView) Eclipse
would underline it as an error, and then when I hovered over the
error, it would offer to import the appropriate android include.  Also
if I had a variable, say TextView tv, then when I entered tv. it would
offer all the functions for that object.  Now it doesn't do this for
the android types (but it does for Java).  I updated Eclipse and all
the add-ins, but there must be some option that I set that I didn't
want to that is causing this.  It happens for all my projects, so it
must be something eclipse wide.

This is really a pain.  Anyone have any ideas as to what I did to
cause this?

Thanks,

Dan

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


[android-developers] A canvas on a Fragment

2012-01-30 Thread Gurunello
Hello there,

I'd like to settle an activity with some textviews and a Canvas for
drawing. I'd like to use something like a Fragment for drawing while
keeping the text view for showing info on parent activity.

Currently I've as Parent The activity

public class SpriteAnimationActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction =
fragmentManager.beginTransaction();
Fragment fragment = new DrawingFragment();
fragmentTransaction.add(R.id.drawing_area, fragment);
fragmentTransaction.commit();
}
}

and the DrawingFragment looks like:
public class DrawingFragment extends Fragment {
public DrawingFragment()
{}
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
v_ = new SpriteView(getActivity().getApplicationContext());
}
public View onCreateView()
{
return v_;
}
private View v_;
}

the main xml is where the layout is for the SpriteAnimationActivity:
?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:stretchColumns=*
TableRow
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/score /
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content /
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/high_score /
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1 /
/TableRow
TableRow
fragment
android:id=@+id/drawing_area
android:layout_width=match_parent
android:layout_height=match_parent /
/TableRow
/TableLayout

but I get runtime exceptions (Error inflating class)

Any tips on how to use Fragment will be much appreciated.

Thxs

Gurunello

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


[android-developers] Assets from external app accessible until installed via Market. Why exactly?

2012-01-30 Thread da404lewzer
Hello everyone,

I am 99% finished developing an app with the goal of being able to
expand it by installing additional image packs, but alas I have an
issue.

My main app can scan for packs and can access the assets/ folder and
all the custom folders/files I need just fine. That is, until I
publish them to the market. As soon as they are installed via the
market the pack's assets/ folder shows to be missing my custom folder/
files yet the filesize is exactly what I expect it to be.

I thought this might have something to do with being signed in eclipse
so I re-installed the signed apps manually. They work as expected.
Only when installed via market do they fail! How annoying! lol

I would then like so say I have read that assets don't work in
libraries, and I have made sure this is NOT a library and has a MAIN
intent and all that. I also understand that people are saying it
doesn't work, but it does work, at least when not on the Market.

I really don't want to re-design everything use res/ and have to deal
with id's. Any ideas..? Permissions?

Thanks :)

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


Re: [android-developers] Re: Best way to distribute app outside of Market

2012-01-30 Thread Daniel Patterson
This would involve downloading the app and the user would then still need
to accept the Unknown Sources in settings to install the app, unless I am
missing something.  Currently the other apk is able to be installed just
requires the Unknown sources checkbox.

Thanks,

Daniel Patterson

On Thu, Jan 26, 2012 at 10:20 PM, Giuseppe porcelli.giuse...@gmail.comwrote:

 publish your apk to a public server.

 send the link via SMS to your user.

 all work well.

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

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

[android-developers] How to create a sms database table to store inbox messages in Android

2012-01-30 Thread Deepa M
hi everyone!
i am going develop an android application to show all inbox messages
in a  own sms database table...
help me pls...

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


[android-developers] Does have any problem with 'OnActivityResult' Callback in fragment subclass?? after compatibility pack rev 2.0

2012-01-30 Thread 델통

Hi,

I have problem with 'onActivityResult' method within Fragment
class...i mean it(onActivityResult Callback) isn't called after
activity finished with setting some result for its invoker...

so i tried to search any relevant information or issues about this
problemi've found some issues related to compatible pack Rev
2.0

now i'm using most update version of compatible pack v4(Rev 6) but
still i have same problem...

here the relevant part of my code

when start activity ===

Intent intent = new Intent(getActivity(), NoteActivity.class);
intent.putExtra(Note._ID, id);
startActivityForResult(intent, NoteActivity.REQUEST_OPEN);


when return from activity==

setResult(Activity.RESULT_OK);
finish();


in the 'onActivityResult' callback=

@Override
public void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);
Log.e(tag, Req Code : +requestCode+res Code : +resultCode);
switch(requestCode){
case NoteActivity.REQUEST_OPEN:
switch(resultCode){
case Activity.RESULT_OK:
Log.e(tag, Given ID is : 
+data.getLongExtra(Notes._ID, -1));
refresh(SortOrder.DATE);
break;
case Activity.RESULT_CANCELED:
Log.e(tag, Not Saved);
refresh(SortOrder.DATE);
break;
}
break;
}
}

please help me some good idea for this problem


BR

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


[android-developers] Can't register to Developer account

2012-01-30 Thread breaker
Hi, im trying to register to Developer to publish my first app, but i
have one problem. I can't sign up, on the page where is Android
Market Developer Distribution Agreement i have some message,
something like the account is not registered contact address. I don't
know what to do. please help.

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


[android-developers] I can't to install my developed APK.

2012-01-30 Thread dcolonmontalvo
Hi.
I developed an application with eclipse and the app run very well on
the emulator, but when i try to install the apk in my phone without
debug mode (likes normal apk) the android installer software says:
the apk wasn't installed.

What can i do?
Thanks.

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


Re: [android-developers] Hi

2012-01-30 Thread Daniel Drummond
Read everything at d.android.com, watch videos from Google IO, read some
books, get on the android irc channel, read the Android blog. Above all
code, try out different things, and enjoy it!
On Jan 26, 2012 6:03 PM, siri siritullimi...@gmail.com wrote:

 Dear all i started to learn android plz guide me

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

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

[android-developers] Drawing in Android's traceview (timeline view)

2012-01-30 Thread Inos
How can I draw in the traceview? I need to add a row below all
threads, and draw a graph with respect to the time which is given at
the top.

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

2012-01-30 Thread Daniel Drummond
This can also happen when the app is moved to the SD card if it receives an
intent while moving.
On Jan 30, 2012 7:42 AM, T.M.S.VIJAYKUMARR iamvijayaku...@gmail.com
wrote:

 Please check your manifest file your receiver class register or not.

  On Mon, Jan 30, 2012 at 1:04 PM, Mort m...@sto-helit.de wrote:

 Hi,

 I got several mails about my app crashing since the recent update. In the
 developer console, I see several stack traces with a ClassNotFoundException.
 Strange thing is, the class surely exists, and the error doesn't seem to
 happen on every device. At least the developer edition (i.e. debug
 signature, not signed for market) worked fine on mine, and I also got some
 mails with everything's working fine, but wish list.

 I tried to find some more information in this group, but my picks in
 threads with promising topic didn't quite help. Closest thing I found was a
 similar error when the SD card's removed without proper unmount, but I
 can't imagine this happens to so many people, especially not on devices
 where the SD card is in fact just internal memory.

 Any idea?

 Here's the trace:
 java.lang.RuntimeException: Unable to instantiate receiver my receiver
 class: java.lang.ClassNotFoundException: my receiver class in loader
 dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1960)
 at android.app.ActivityThread.access$2400(ActivityThread.java:132)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1093)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:4196)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.ClassNotFoundException: my receiver class in
 loader dalvik.system.PathClassLoader[/mnt/asec/app package/pkg.apk]
 at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
 at android.app.ActivityThread.handleReceiver(ActivityThread.java:1951)
 ... 10 more

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




 --




 -
 Thanks  Regards,
 T.M.S.VIJAYKUMARR
 BloG:http://iamvijayakumar.blogspot.com/



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

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

[android-developers] 'OnActivityResult' Callback isn't invoked in fragment subclass. after compatibility pack rev 2.0

2012-01-30 Thread Doowoong Lee
Hi,

I have problem with 'onActivityResult' method within Fragment
class...i mean it(onActivityResult Callback) isn't called after
activity finished with setting some result for its invoker...

so i tried to search any relevant information or issues about this
problemi've found some issues related to compatible pack Rev
2.0

now i'm using most update version of compatible pack v4(Rev 6) but
still i have same problem...

here the relevant part of my code

when start activity ===

Intent intent = new Intent(getActivity(), NoteActivity.class);
intent.putExtra(Note._ID, id);
startActivityForResult(intent, NoteActivity.REQUEST_OPEN);


when return from activity==

setResult(Activity.RESULT_OK);
finish();


in the 'onActivityResult' callback=

@Override
   public void onActivityResult(int requestCode, int resultCode, Intent
data) {
   super.onActivityResult(requestCode, resultCode, data);
   Log.e(tag, Req Code : +requestCode+res Code : 
+resultCode);
   switch(requestCode){
   case NoteActivity.REQUEST_OPEN:
   switch(resultCode){
   case Activity.RESULT_OK:
   Log.e(tag, Given ID is : 
+data.getLongExtra(Notes._ID, -1));
   refresh(SortOrder.DATE);
   break;
   case Activity.RESULT_CANCELED:
   Log.e(tag, Not Saved);
   refresh(SortOrder.DATE);
   break;
   }
   break;
   }
   }

please help me some good idea for this problem


BR 

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

2012-01-30 Thread Daniel Drummond
First step is to clean the project and try rebuilding.

You may need to point the project to the new JDK if it is a different
version.

On 28 January 2012 11:17, mark2011 androidmark2...@gmail.com wrote:

 Dear All :

   One day I can't run the eclipse to edit the android api. The
 message is that JRE error occurred while run. So I new install jdk,
 then I can run the eclipse. But there is an error flag is on my old
 project, I can't find any error in my source  res. Can anyone help me
 to fix this problem? Thanks in advanced.

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

2012-01-30 Thread dany varghese
how we can create a new application in android?
please suggest required softwares for this purpose?

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


[android-developers] sip demo

2012-01-30 Thread Jagruti Sangani
hello,
i have used the sip demo which was on 
http://developer.android.com/guide/topics/network/sip.html
link.but i got sipmanager as null result.and also api and voip support
result me as false.i m using android 4.0.3 api 15 and try to call from
emulator to asterisk.but not work bcz of may be manager as null.so
reply me as soon as posible.

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


[android-developers] Bluetooth bluetooth permission request dialog - recreated on screen rotation

2012-01-30 Thread Sam Sama
I have following permissions set in AndroidManifest.xml
uses-permission android:name=android.permission.BLUETOOTH /
uses-permission android:name=android.permission.BLUETOOTH_ADMIN /

And there is android:configChanges=orientation value set for the
activity.

I am using following code in my activity to enable Bluetooth device
if (!btAdapter.isEnabled()) {
Intent enableBtIntent = new Intent(
BluetoothAdapter.ACTION_REQUEST_ENABLE);
int REQUEST_ENABLE_BT = 0;
startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
}

This is working fine but if Bluetooth enabled already but if its not
then - new instance of 'Bluetooth permission request' dialog is re-
created every time when the orientation is changed.

How to avoid this ?

Can i set android:configChanges=orientation property for 'Bluetooth
permission request' dialog ?

Is there any way to enable Bluetooth without showing 'Bluetooth
permission request' dialog ?

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


[android-developers] Block APK installation

2012-01-30 Thread Isamar Maia
Hello Guys,

For a specific project, we need to create a custom image with an
auto-start application.

One thousand tablets will be given away for free, with this
application installed and the sponsor wish to block
any APK installation to avoid his campaign fails, with people selling
those tablets away on Ebay.

The purpose here is just to make it difficult, since anybody with a
little more knowledge would be able to overwrite
my custom image and cancel this block.

Which executable I should work on to make it feasible ?


Thanks a lot,

-- 
Isamar Maia
Cel. VIVO SSA:  (55) 71-9146-8575
Cel. TIM SSA: (55) 71-9185-5264
Fixo:  (55) 71-4062-8688
日本: +81-(0)3-4550-1212
Skype ID: isamar.maia

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


[android-developers] MS SQL connection

2012-01-30 Thread anand jh
I need to develop a android application in that I want to access MS
SQL from my android application.Can some help as by giveing some
code.Advance thanks

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


Re: [android-developers] Web pages as assets?

2012-01-30 Thread Mark Murphy
Use file:///android_asset/path/to/your/file/in/the/assets/directory.html
as the URL to feed to loadUrl() in the WebView, replacing the path as
needed. file:///android_asset/ basically points to the root of your
project's assets/ directory.

On Sun, Jan 29, 2012 at 5:34 PM, atcal alan.williams...@ya.com wrote:
 I'd like to store my app documentation as web pages (mixed text and
 images) in the assets then display them in webview. Is this possible?
 I've done my best to look through the on line documentation but I
 can't find how to do it.

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


[android-developers] What does 'light touch' mean in WebSettings?

2012-01-30 Thread Sungil
In WebSettings, there is a method for enabling 'light touch'.
http://developer.android.com/reference/android/webkit/WebSettings.html#setLightTouchEnabled(boolean)

When enabling this, it seems like the responsibility of the web view
touch events is better(especially at Galaxy S), but I'm not sure.

The description of the API is too short, and I couldn't find any
method using 'WebSettings.getLightTouchEnabled()' in the WebView
sources.
(Maybe used in native libraries?)

Does anyone knows the exact usage of this?

Thanks,

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


Re: [android-developers] mini project

2012-01-30 Thread Mark Murphy
On Mon, Jan 30, 2012 at 12:58 AM, dany varghese gagip...@gmail.com wrote:
 how we can create a new application in android?
 please suggest required softwares for this purpose?

http://developer.android.com

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Block APK installation

2012-01-30 Thread Mark Murphy
This is not possible except via custom firmware. For questions about
custom firmware, please visit http://source.android.com.

On Thu, Jan 26, 2012 at 3:06 PM, Isamar Maia isa...@gmail.com wrote:
 Hello Guys,

 For a specific project, we need to create a custom image with an
 auto-start application.

 One thousand tablets will be given away for free, with this
 application installed and the sponsor wish to block
 any APK installation to avoid his campaign fails, with people selling
 those tablets away on Ebay.

 The purpose here is just to make it difficult, since anybody with a
 little more knowledge would be able to overwrite
 my custom image and cancel this block.

 Which executable I should work on to make it feasible ?


 Thanks a lot,

 --
 Isamar Maia
 Cel. VIVO SSA:  (55) 71-9146-8575
 Cel. TIM SSA: (55) 71-9185-5264
 Fixo:  (55) 71-4062-8688
 日本: +81-(0)3-4550-1212
 Skype ID: isamar.maia

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



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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Block APK installation

2012-01-30 Thread Isamar Maia
Yep. I knew that. I was just wondering if anybody would have a cake
recipe on hands.

But, never mind. I got that already with a custom image removing
access with chmod on /system/app/ folder.


Thanks anyway.

Isamar


2012/1/30 Mark Murphy mmur...@commonsware.com:
 This is not possible except via custom firmware. For questions about
 custom firmware, please visit http://source.android.com.

 On Thu, Jan 26, 2012 at 3:06 PM, Isamar Maia isa...@gmail.com wrote:
 Hello Guys,

 For a specific project, we need to create a custom image with an
 auto-start application.

 One thousand tablets will be given away for free, with this
 application installed and the sponsor wish to block
 any APK installation to avoid his campaign fails, with people selling
 those tablets away on Ebay.

 The purpose here is just to make it difficult, since anybody with a
 little more knowledge would be able to overwrite
 my custom image and cancel this block.

 Which executable I should work on to make it feasible ?


 Thanks a lot,

 --
 Isamar Maia
 Cel. VIVO SSA:  (55) 71-9146-8575
 Cel. TIM SSA: (55) 71-9185-5264
 Fixo:  (55) 71-4062-8688
 日本: +81-(0)3-4550-1212
 Skype ID: isamar.maia

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



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

 _Android Programming Tutorials_ Version 4.1 Available!

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



-- 
Isamar Maia
Cel. VIVO SSA:  (55) 71-9146-8575
Cel. TIM SSA: (55) 71-9185-5264
Fixo:  (55) 71-4062-8688
日本: +81-(0)3-4550-1212
Skype ID: isamar.maia

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

2012-01-30 Thread TreKing
On Sat, Jan 28, 2012 at 1:46 AM, aashutosh aashutosh.andr...@gmail.comwrote:

 I have no clue how to do it. please help


http://developer.android.com/guide/index.html

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

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

[android-developers] Re: Dalvik SegFaults while using CMU Sphinx4

2012-01-30 Thread Matthew Adams
Have you been successful getting Sphinx 4 to run on Android yet?  I just 
saw this thread for the first time  need local (Internet connectionless) 
speech recognition.

-matthew

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

2012-01-30 Thread Muhammad UMER

Hi pskink,

In my case 

 normal .3gp (written by my MediaRecorder) file header, for
instance:
# hexdump  -C normal_file.3gp

 001C66747970 336770340300 |ftyp3gp4|
0010 336770346D703431 3367703600090CFB |3gp4mp413gp6|
0020 6D6461743C911716 BE6679E1E001E7AF |mdatfy.|
.
.

 and i compare it to the file written by my server:
# hexdump -C server_file.3gp | less
  3030203030203030 2030302030302030  ||
0010  3020303020303020 3030203030203030  ||
0020  2030302030302030 3020303020303020  ||
0030  3030203030203030 2030302030302030  || 
0040  3020303020303020 3030203030203030  ||
0050  2030302020202020 2020202020202020  |..  |
0060  2020202020202020 2020202020202020  ||
0070  2020086D64617420 2020202020202020  |  .mdat |
0080  2020202020202020 2020202020202020  ||
0090  202020202020086D 646174202001B610  | .mdat...|
.
.
.

you said in previous discussion that i have to modify first 32 bytes
where i have to copy byts[0- 27] to the file.
1) what it mean? like this all 

 001C66747970 336770340300 |ftyp3gp4|
0010 336770346D703431 3367703600090CFB |3gp4mp413gp6|
0020 6D6461743C911716 BE6679E1E001E7AF |mdatfy.|
.
.
.
0270

or only the middle part (-C)(001C66747970 336770340300) of it. 



2) how to copy, Is it in the form of string?

3)and i don't understand about bytes [28..31]. where from the moov atom starts. 
what is 
paython?

Please clear me all these things then i will able to write the file.

Regards,

umer


 Date: Sat, 28 Jan 2012 07:27:07 -0800
 Subject: Re: [android-developers] Re: Encoder???
 From: psk...@gmail.com
 To: android-developers@googlegroups.com
 
 Use writeInt(int v)
 
 pskink
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
  

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

[android-developers] first time developer

2012-01-30 Thread Raymond Evans
Hey everyone I am an amateur developer and I am attempting a side
scroller game. I know c++ and java but have never had to make anything
from scratch with either only class assignments. Any advice for a
first time developer starting out?

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


[android-developers] how to set textview from service?

2012-01-30 Thread man kit lai
public class Mservice1 extends Service {

 private Handler objHandler = new Handler();
private TextView view_result;
private String strRet=;
  public int intUpdateSecond = 5000;

private Runnable mTasks= new Runnable()
{
public void run()
{
view_result.setText(ABC);
 // It is not work
strRet = getMethod(uri,big5);
objHandler.postDelayed(mTasks,intUpdateSecond);

}


};


It cannot show anything on Main ActivityTextView view_result.

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


[android-developers] Your Registration to the Android Market is still being processed.

2012-01-30 Thread Nathan Bates
I registered 4 days ago as a developer
and was charged $25 yet I'm stuck at this:
Your Registration to the Android Market is still being processed.

How long is registration supposed to take?

I've send multiple emails and problem reports to Google.
No response (excluded automated replies).

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


[android-developers] avd : libstdc++ troubles

2012-01-30 Thread Nathan BIAGINI
Hi,

i m using a Debian Squeeze 64 bits. Here is my kernel release :
2.6.32-5-amd64.

When i try to run the AVD i just created with the AVD Managor provided
with the SDK, i got this error :

emulator: error while loading shared libraries: libstdc++.so.6: cannot
open shared object file: No such file or directory

Anyone has a solution? Maybe i could take this file from gcc but i
don't what release of it should i take. Thanks for the help.

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


[android-developers] HELLO!

2012-01-30 Thread Ringgo De Jesus
How can i make a battery charging animation in android just like in
any phone, I want to put it in my thesis because my objective is to
know information about the battery. so how can i make it? i don't have
any idea on how to make it. can anyone help me or give me a code for
this? : THANK YOU FOR YOUR HELP!

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


[android-developers] Network app start...?!!

2012-01-30 Thread muhammad belill
Dear all,

I want to start network app but i cant find good support in that
network if you can help me i will be tnx.

BR,

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

2012-01-30 Thread nmelo
There is a solution to this problem posted on SO: 

http://stackoverflow.com/questions/5391089/how-to-make-surfaceview-transparent

Only reproducing the answer here for future reference: 

SurfaceView sfvTrack = (SurfaceView)findViewById(R.id.sfvTrack);
sfvTrack.setZOrderOnTop(true);// necessary
sfhTrack = sfvTrack.getHolder();
sfhTrack.setFormat(PixelFormat.TRANSPARENT);

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

[android-developers] Unpublish application

2012-01-30 Thread Daniel Kubovsky
Hi,
what does it mean to unpublish an application?
would all the descriptions, pictures and so on regarding the
application is gone too?
lets say my application has a bug and i would like to freaze it
(prevent people from downloading it) until the bug is fixed - what
should i do?
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: NFC Secure Element

2012-01-30 Thread malls
Fernando,

Here is the logcat output that I am getting. Is libpn544.so supposed to be 
built as part of this build process or am i missing something. I have 
checked, there were no errors during the compilation anywhere.

D/NFC JNI ( 4179): NFC Service : loading JNI
I/NfcService( 4179): Starting NFC service
D/NFC JNI ( 4179): **  Init Native Structure **
D/NFC JNI ( 4179): **  Init Native Structure **
D/NFC JNI ( 4179): ** Init Native Structure OK **
D/NFC JNI ( 4179): ** Init Native Structure OK **
I/RegisteredComponentCache( 4179): ComponentInfo: ResolveInfo{405641b0 
com.andro
id.apps.tag.TagViewer p=0 o=0 m=0x108000}, techs: android.nfc.tech.Ndef,
D/NFC JNI ( 4179):  Set LLCP LTO to 150
D/NFC JNI ( 4179):  Set LLCP LTO to 150
D/NFC JNI ( 4179):  Set LLCP MIU to 128
D/NFC JNI ( 4179):  Set LLCP MIU to 128
D/NFC JNI ( 4179):  Set LLCP WKS to 1
D/NFC JNI ( 4179):  Set LLCP WKS to 1
D/NFC JNI ( 4179):  Set LLCP OPT to 0
D/NFC JNI ( 4179):  Set LLCP OPT to 0
D/NFC JNI ( 4179):  Set NFC DISCOVERY A to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY A to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY B to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY B to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY F to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY F to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY 15693 to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY 15693 to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY NFCIP to 1
D/NFC JNI ( 4179):  Set NFC DISCOVERY 15693 to 1
D/NFC JNI ( 4179): Start Initialization
D/NFC_LIST( 4179): Allocated node: 0x292868 (0x4496fa70)
D/NFC JNI ( 4179): phLibNfc_Mgt_ConfigureDriver(0x00295ad8, 0x0008)
D/NFC JNI ( 4179): phLibNfc_Mgt_ConfigureDriver(0x00295ad8, 0x0008)
W/NFC_i2c ( 4179): sleeping a little longer...
D/NFC JNI ( 4179): phLibNfc_Mgt_ConfigureDriver() returned 
0x[NFCSTATUS_SUCC
ESS]
D/NFC JNI ( 4179): phLibNfc_Mgt_Initialize()
D/NFC JNI ( 4179): phLibNfc_Mgt_Initialize()
E/NFC-HCI ( 4179): Could not open libpn544.so
D/NFC JNI ( 4179): phLibNfc_Mgt_Initialize returned 
0x000d[NFCSTATUS_PENDING]
D/NFC JNI ( 4179): phLibNfc_Mgt_Initialize returned 
0x000d[NFCSTATUS_PENDING]
D/NFC JNI ( 4179): NFC client started
D/NFC JNI ( 4179): NFC client started
D/NFC JNI ( 4179): Callback: nfc_jni_init_callback() - 
status=0x[NFCSTATUS_S
UCCESS]
I/DEBUG   ( 3190): *** *** *** *** *** *** *** *** *** *** *** ***^C

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

[android-developers] Bluetooth Socket over a TCP-Socket

2012-01-30 Thread Daimoe
Hi

My task is do develop a Android app which is able to connect to a
other device via Bluetooth and communicate with the TCP Socket there.
At the other Device there are a Socket Server written in c# (TCP
Socket).

I can connect to the Bluetooth socket.
But if i try to connect to the TCP Socket after i am connected via
Bluetooth like  Socket s = new Socket(hostname,port)
The host is unknown.

I hope u understand what the problem is and can help me.

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


[android-developers] Extract the call log and run it as a service

2012-01-30 Thread mithu
I'm developing an app that extracts the call log and store it in a
local text file, then push this file to a server.
Till now i'm able to extract the call log and store it in a text  file
by creating an activity. But the problem is if i delete an entry in
the call
log, its get deleted in my file too. i don't want the items to be
deleted in the file and it should not be overwritten and i want
the file to be deleted once it is pushed to the server and i want the
app to run as a service in the background. Can anyone suggest me with
some idea. I would appreciate if you provide some example code.

Thanks in advance!

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


[android-developers] Re: NDK set up

2012-01-30 Thread Nilton Vasques
Hi Narenda,

The best guide Step by Step for compile with ndk.

http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/

On Jan 27, 9:00 am, Narendra Bagade bagadenaren...@gmail.com wrote:
 Hi All,

 1.How to set up development environment for NDK?
 2.Once set up done ,how to run sample app of NDK?

 I have searched a lot about NDK but didn't get proper guidance.

 Please help to get into above two point

 --
 Regards,
 Narendra
 .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SoundPool problem (SDK 4.0.x) int loop any value other than zero causes crash

2012-01-30 Thread Stephen Farnsworth
Did you ever figure this out?  I am having the same problem debugging on my 
LG G2x from an Ubuntu 11.04 box using eclipse and adk plugin.  My sound 
files are even shorter, though.

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

[android-developers] Fwd: Is it possible for an app to replace the NotificationManager?

2012-01-30 Thread Chris Kruger
I fully believe that there should be a System Option with which one
can specify if you want Notifications to repeat or not.
When one is busy with your work, you do not have time to continually
check your phone for status like missed reminders etc.
It should be the simplest of things to have such a parameter and
anything that sends a notification can act accordingly.


-- Forwarded message --
From: TreKing treking...@gmail.com
Date: Nov 2 2010, 11:42 pm
Subject: Is it possible for an app to replace the NotificationManager?
To: Android Developers


On Tue, Nov 2, 2010 at 4:22 PM, Dan Dumont ddum...@gmail.com wrote:
 Sure there is.

I disagree. What do you gain by allowing other apps to extend the
Notification Manager? Besides the possibility of a malicious one
breaking
all other apps' notifications?

 Android has been missing persistent reminder notification sounds for a long
 time.

No, it hasn't, as pointed out by Mark above.

 Other custom builds have it i'm sure, but being able to set a preference
 for reminder sounds, vibrates etc would be better handled as part of the
 notification manager.

Sounds, vibrates, etc are already configurable by setting the proper
values
on a Notification object.

 Yes, there are apps that do this for sms messages, or a few different
 content types in general, but there is no generic solution.

A generic solution for what? I don't see what problem you're having
that you
think a custom NotificationManager would solve.

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

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


[android-developers] Share android internet connection through bluetooth/ppp

2012-01-30 Thread Michael
Hi,
I'm working on a project where a device should access internet through
an android tablet.
This device only has bluetooth connectivity and supports serial port
profile.
The idea would be to establish a ppp link over bluetooth spp between
the device and the android tablet.
Then the tablet would share its internet connection as it does on a
usb link.

I already achieved this configuration on a WM6 device and I need to
port the solution on an android device.

Is it something possible? If yes could someone give me some hints to
achieve this?

Thanks.

Best regards,
Michael

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


[android-developers] User Generated Content on Google Maps. Legality.

2012-01-30 Thread John
I am interested in creating an application that allows users to draw
on top of google maps and then store the information on the local
device. For example, create a line of their favorite hiking trail.  I
may also make a site (ala, http://scribblemaps.com/) that allows users
to generate shapes(lines, points, polygons) and then access them on
their phone and/or share them with other people. Once on the mobile
device I may do I variety of functions with the user generated content
separate from the google mapview.

Given this content was generated by the user against the backdrop of
google maps are there and licensing issues of which anyone can make me
aware? I looked at this passage in the TC

10.1.3 (b) No Pre-Fetching, Caching, or Storage of Content. You must
not pre-fetch, cache, or store any Content, except that you may store:
(i) limited amounts of Content for the purpose of improving the
performance of your Maps API Implementation if you do so temporarily,
securely, and in a manner that does not permit use of the Content
outside of the Service; and (ii) any content identifier or key that
the Maps APIs Documentation specifically permits you to store. For
example, you must not use the Content to create an independent
database of “places.”

Since I am not taking from google maps but only considering the user
generated content I believe this is a valid use. I don't believe my
approach would be a problem with the Terms and Conditions, or the
above selection, however I was looking for feedback before investing
more time.

Thank you for your input.


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


[android-developers] HttpClient.execute(httpget) throws me a connectexception

2012-01-30 Thread Madhu
Hi all,

This is a really strange problem i have. I get JSON data from a server
through the DefaultHttpClient. I have even set the timeout to 10
seconds and i have caught all exceptions. My doGet function works
great on all devices on various  carriers. But i tried a device with
sprint 3g connection and also a verizon device with 3g connection. The
httprequest does not even timeout. After about 15 mins i received a
ConnectException. Please help me figure how i can fix this . Below is
my doGet for the RestClient.
I am surprised the connectionTimeout doesnt work and then i dont even
receive a response till about 15 mins and its a connectException.
 Connection to the url refused.

The same http request works fine on the browser as well even on the
device's browser. Only on certain devices and on 3g am seeing this
issue.


P.S: I have tried the HttpClient, DefaultHttpClient and even the
AndroidHttpClient and all of them give me the same result .

public static void doGet(final String url, final IRequestCallBack
requestListner) {
Log.d(TAG, RestClient: doGet: URL =  + url);
final DefaultHttpClient httpClient = new DefaultHttpClient();

HttpConnectionParams.setConnectionTimeout(httpClient.getParams(),
3000);

Thread thread = new Thread() {
public void run() {
try {

HttpGet httpget = new HttpGet(url);
HttpResponse response;
Log.i(TAG, HIT EXECUTE OH HTTPCLIENT);
response = httpClient.execute(httpget);
Log.v(response code, 
response.getStatusLine()
.getStatusCode() + );
HttpEntity entity = 
response.getEntity();
Log.i(TAG, GOT rESPONSE  );
InputStream instream = 
entity.getContent();
String result = read(instream);
Log.d(TAG, result);

requestListner.onResponseReceived(result);
} catch (Exception ex) {
requestListner.onError(ex);
}
}
};
thread.start();
}

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

2012-01-30 Thread malls
Dear Fernando

I tried to patch as per your instructions and root the device. I get error 
saying libpn544.so not found. I don't see this file created after the 
compilation. Where is it trying to load from.

regards
malls

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

2012-01-30 Thread malls
Softy

Could you please share android client code snippet to send APDU command to 
SE after the patch.

regards
malls

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

[android-developers] Re: what is wrong with eclair SDK mapsview ..

2012-01-30 Thread shrekky
This solution worked for me too! Just unchecked the maps.jar from 
Project-Properties-Java Build Path-Libraries! Thanks a lot!

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

2012-01-30 Thread Ted S.

I'm having the same problems in eclipse Indigo.

I can run an app on the emulator first time.

Reloading a changed app hangs at 27% launch. Requires relaunching eclipse, 
and leaves old eclipse image running which must be killed.

Attempting to debug results in Waiting for debugger to attach on AVD, 
eclipse never shifts to debug perspective. 

This behavior is new to r16 update. I'm not sure how to back out the 
update, and have not found a workaround as yet.

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

2012-01-30 Thread TreKing
On Thu, Jan 26, 2012 at 11:50 PM, Daniel Patterson dan...@medlmobile.comwrote:

 My question is that currently we have another apk inside this app that is
 installed separately when the user goes to run it for the first time (it's
 a game).


Um ... why do you have two separate apps if you don't want the user to have
to install two separate apps?

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

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

[android-developers] put icon and text in same line in tab

2012-01-30 Thread W M


i'm new in android and want to put icon and text in same line in tab
spec=t.newTabSpec(diary).setIndicator(Diary,
r.getDrawable(R.drawable.diary)).setContent(intent);
how can i do this ??

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


Re: [android-developers] Re: Crash after StartActivity

2012-01-30 Thread Ted Scott

I have an app that invokes a service in the background from an alarm:

// Ok, let's try running the service via a repeating alarm...
// We need to make a PendingIntent from the service intent...
Intent si = new Intent(this, xxxService.class);
PendingIntent pi = PendingIntent.getService(this, 0, si, 
PendingIntent.FLAG_UPDATE_CURRENT);


// Set the first time the alarm should trigger to be an hour 
ago in milliseconds...

long when = new Date().getTime() - 36;
AlarmManager alarm = (AlarmManager) 
getSystemService(Context.ALARM_SERVICE);
alarm.setInexactRepeating(alarm.RTC_WAKEUP, when, 
alarm.INTERVAL_HOUR, pi);


It does a web service call approximately every hour after the app is run 
the first time. Because it uses the Inexact method it is likely the 
phone is doing something else also. The user never sees it run.


If you are launching an Activity that needs the screen then I think that 
is when you need the NEW_ACTIVITY_FLAG? I have the following in use to 
start an activity that displays a record selected on a list:


// display the whole record in its own activity.
Intent detailIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(Sample.CONTENT_URI+/+id),
ctx,
xxxActivity.class);
detailIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
try {
ctx.startActivity(detailIntent);
}
catch (Exception e) {
String foo = e.getMessage();
Log.e(Caught It:,foo);
}

I'm not yet sure I'm clear myself on when the flag is required.

On 1/29/2012 1:03 PM, Kostya Vasilyev wrote:

Correct.

Keep in mind though, that, except for some specific cases (an alarm 
clock and the like), this -- an activity popping out of nowhere -- can 
be an unexpected and jarring experience for the user.


I can see it as a plot device for Final Destination 6: someone's 
bleeding to death, trying to call 911 on his Android phone, and is 
interrupted by a popup window: 5 days to Jane's birthday. Cut to black.


:)

-- Kostya

29 января 2012 г. 21:41 пользователь Rudolf Polzer 
rudolf.pol...@i-r-p.de mailto:rudolf.pol...@i-r-p.de написал:


The LogCat contents after the crash is

ERROR/AndroidRuntime(19994): java.lang.RuntimeException: Unable to
start receiver irp.plan.OnAlarmReceiver:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
...
ERROR/AndroidRuntime(19994): Caused by:
android.util.AndroidRuntimeException: Calling startActivity() from
outside of an Activity  context requires the
FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

So I guess I have to add the FLAG_ACTIVITY_NEW_TASK flag to the
intent to start the activity, because the startActivity() is
called from inside the message receiver OnAlarmReceiver.


Am 29.01.2012 16:09, schrieb Kostya Vasilyev:

Press F8 (Resume) in Eclipse a few times until you get the
crash dialog
on the device.

Then check the logcat.

Look for the part after Caused by:

-- Kostya

29.01.2012 15:21, Rudolf Polzer пишет:

The manifest file contains
activity android:name=.WakeActivity/activity
within theapplication tag.

The stack is
ActivityThread.handleReceiver(ActivityThread$ReceiverData)
line:
2639
ActivityThread.access$3100(ActivityThread, ActivityThread
$ReceiverData) line: 119
ActivityThread$H.handleMessage(Message) line: 1913
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 123



-- 
You received this message because you are subscribed to the Google

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


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

2012-01-30 Thread Ted Scott
This is driving me nuts. A couple of others have reported it, but no one 
seems to have a work around or even why this is happening.


I had a working set of projects until the r16 SDK/ADT update. Now I can 
run an emulator with an app the first time I launch it. I cannot run or 
launch under the debugger, as the emulator hangs waiting for the 
debugger to connect. On relaunch, eclipse sits at 27% progress while 
launching app.


Eclipse must be restarted to launch, and when eclipse is stopped the run 
image of eclipse is still in memory and must be killed.


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


[android-developers] Advertisers in APP

2012-01-30 Thread Wordprod
How do I get setup to allow advertising by other companies in my APP
so I can make money?
The APP is free...but if I allow other companies to advertise I can
maybe make something.

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] How to expand text in AutoCompleteTextView so it fills field (without wasted top/bottom grey bars)

2012-01-30 Thread wnm3
I have tried setting a couple of different attributes to make the size
(height) of the AutoCompleteTextView smaller than the default.  I've
been about to use a smaller font, but there are still grey bars above
and below the text entry area within the edit box and I don't know how
to get rid of them.  I have an image to paste but that doesn't appear
to be possible here.

The code to reproduce is here:

?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=match_parent
android:layout_height=match_parent
android:stretchColumns=1 
TableRow
TextView
android:id=@+id/gcLocation
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=right
android:text=Prompt
android:textSize=6pt
android:textStyle=bold
android:typeface=sans /

AutoCompleteTextView
android:id=@+id/scGCPrompt
android:layout_width=fill_parent
android:layout_height=35dp
android:layout_margin=0dp
android:drawablePadding=0dp
android:padding=0dp
android:textSize=6pt
android:textStyle=bold
android:typeface=sans /
/TableRow
/TableLayout

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


[android-developers] Bluetooth and Kindle Fire...

2012-01-30 Thread Tim
I have a little Bluetooth app (based on BluetoothChat sample code)
that works fine on a couple of devices, but I thought I'd test on
Kindle Fire (which does not have Bluetooth) to make sure I got
Bluetooth is not available error. But no - the call to
BluetoothAdapter.getDefaultAdapter(), which should return null returns
with an adapter (and call to mBluetoothAdapter.getState() returns
STATE_OFF

Since my code does not see any error, it then proceeds to try to turn
on Bluetooth on the Fire using startActivityForResult(enableIntent,
REQUEST_ENABLE_BT); but this just hangs the app.

Perhaps the Fire thinks it has Bluetooth hardware but then can't
actually enable it? Anyone know how I can better detect this situation
to keep my app from hanging?

As an aside, running this code on an emulator does detect and show
Bluetooth is not available error.

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


[android-developers] Multithreading in services

2012-01-30 Thread viks
Hi,
My requirements are
1.When application starts it must fetch the user location (with GPS)
2.This location should be updated with specified time interval.
3.And at the UI side I have to show current location and continuously
running timer.
Currently,I created service,which provide me the location update and
timer in current activity.
So,Is there any way that I should be integrate both timer and location
update in one service .
and provide user
1.continuous timing
2.Periodic location update.

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


[android-developers] Staege fright player is taking too much time to stream the mp3 content

2012-01-30 Thread shiva shankar
When trying to stream the following links through the
Stagefrightplayer,
 Player is taking around 60- 70 sec to play the audio

http://pubint.ic.llnwd.net/stream/pubint_wbcx.

The same url  is working fine with OPen Core  PV player

LOGCAT LOG ::

D/MediaPlayer( 3271): !android.media.MediaPlayer 736! Couldn't
open file on client side, trying server side

01-21 13:20:52.789: W/NuHTTPDataSource(1470): Server did not give us
the content length!

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


[android-developers] Javascript openDatabase callback never executes

2012-01-30 Thread Martin
Hi.

I'm using the Database Storage API in a WebView and have been
researching the available javascript methods.

The javascript openDatabase() method is documented to have an optional
fifth parameter which is a callback function to execute once the
openDatabase() method has completed (but only if the database has been
created - see below).

The openDatabase() method is asyncronous so i need to query the
database after it has been created and is ready for use, NOT after the
openDatabase() method has been executed.

Hope that makes sense but anyway my question is does the WebView's
javascript openDatabase() method support this fifth optional
parameter?

Some example javascript:

function dbCreated(transaction){
console.log('debug#2');
}
console.log('debug#1');
var shortName='locationTracker', version='1.0', displayName='Some
text', maxSize=32768;
var database=openDatabase(shortName, version, displayName, maxSize,
dbCreated);
console.log('debug#3');

In the log i see 'debug#1' and 'debug#3' but never see 'debug#2'.

The callback is supposed to only be called if the database has been
created and opened.
It is not called if the database already existed and has been opened
but not created.

http://html5doctor.com/introducing-web-sql-databases/

Scroll down to 'Creating and Opening Databases' and 5. Creation
callback.

I've uninstalled my app a few times and reinstalled it - thinking that
the database definitely will not exist so will be created and the
callback will execute but the callback still fails to execute.

This is on a Froyo emulator and also on my ZTE Blade with cyanogen mod
Gingerbread.

Has anyone got any experience with the javascript database storage api
and could tell me if this callback is supported?

Thanks.

Martin.

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


[android-developers] serious problem with google maps

2012-01-30 Thread AndroidGirl8

Hello

i have serious problem with google map , i tried every way to get map
and every time i run i found half grid and have map
OR complete map and when click on it grid squares appears

i generated new debug.keystore and try it with no result and also made
new keystore and used it but i don't know what is wrong !!

plz 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


[android-developers] Re: Email settings and device admin

2012-01-30 Thread Yashar
I am trying to do the same thing. I search for some known sync
providers and request one of them to add the account.

Android SDK has noted that the values for addAccountOptions
parameter should be documented by the provider's developer
(Authenticator-specific options). But I couldn't find any
documentation on neither Corporate or HTC's Exchange ActiveSync. I
tried a few key names on guess but it was of no use.

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


[android-developers] Capture in-call audio beneath DVM

2012-01-30 Thread As4xk
Hi.
We hare read a lot of discussions regarding recording in-call audio.
Our understanding is that most devices does not support this because
the baseband processor routes the audio directly to the audio output
hardware (speaker, minijack etc.).

We have some devices (for example HTC Desire Z) that seems to route
the audio through the application processor. By recording using
MediaRecorder.AudioSource.MIC as audio source, the  receiving audio IS
recorded. The quality of the received audio however, is poor with low
volume.
Recording using android.media.AudioRecord and
android.media.MediaRecorder with MediaRecorder.AudioSource.VOICE_CALL/
VOICE_DOWNLINK/VOICE_UPLINK as audio source, recording does not work
at all.

What we would like to know, is if it is possible to capture this audio
on a lower level? If we build Android from source, and make some
adjustments to the code, is it possible to get the audio stream for
the telephony service or something like that?
If this is possible, does anyone have any resources on how android
handles in-call audio when it is routed through the application
processor?
Is there any documentation on the Android source?


Thanks in advance for any help.

-Knut Liestøl
-Stian Fauskanger

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

2012-01-30 Thread taikoo kid
I meet the same problem.
I can't upload apk to my note or download from market.



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

[android-developers] Android Beam demo on PC

2012-01-30 Thread goodline
Hi,

I am a student and new to android development. I am planning to do a
project on android nfc peer-to-peer mode.
I was wondering if it is possible to create two virtual devices(AVD's)
on a windows machine and send data from one device to another with nfc
as the medium?

Also, when I try to run the sample AndroidBeamDemo project, I see some
errors in Beam.java:
1. The method createNdefMessage(NfcEvent) of type Beam must override a
superclass method
2. The method onNdefPushComplete(NfcEvent) of type Beam must override
a superclass method

Any help is appreciated.

-Goodline

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


[android-developers] Adding a widget to homescreen with out using Appwidgetpicker intent

2012-01-30 Thread Sheena_experion
Hi all,

  I am developing a homescreen application where i want some
default widget on the homescreen. i.e. I dont want user to trigger the
widget picker and choose the widget. Is there a way that i can
implement this functionality.
 I tried using the the getInstalledprovider method that retrieve
all the widget details but cant bind the appwidget id to the widget i
needed . If the app widget is not bind to an id. i was not able to get
the listener attached  to the widgetprovider.

I need this information very urgently, if somebody have some idea
please share.

Thanks in advance
Sheena

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

2012-01-30 Thread TreKing
On Mon, Jan 30, 2012 at 10:25 AM, fala70 fal...@gmail.com wrote:

 Any Idea ?


Don't use ListViews within ListViews. That doesn't really make sense. Also,
it's inflated, not inflacted.

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

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

  1   2   >