Re: [android-developers] Global Variables

2011-03-11 Thread Kostya Vasilyev
What probably happens us that the process gets killed and then relaunched. The relaunch may execute a code sequence different from when your app is launched for debugging or from the Launcher (i.e. main activity first), and your code that initializes and uses those globals may be sensitive to that

[android-developers] Bluetooth SyncML Server

2011-03-11 Thread Ajith Kamath
Hi all I am trying to implement Bluetooth SyncML server in Android. But we are facing few problems. SDP record registration and connection establishment is successfully done. Now we get wbml data from Client in form of Obex PUT request. My problem is I'm not able to cleary define Obex-SynML bindi

[android-developers] Re: Java Script alert not working in Android WebView

2011-03-11 Thread Maps.Huge.Info (Maps API Guru)
You can always use the JavaScript to Java interface. Write your own AJAX routine in Java. Send alerts to the log. Doing it this way is fairly easy and a lot more flexible than just using JavaScript. -John Coryat -- You received this message because you are subscribed to the Google Groups "Androi

[android-developers] about application error

2011-03-11 Thread kajal patil
Hi All, In my Android application in eclipse I get the following error: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.iIlegalArgumentException:already added:org/apache/uima/conceptMapper/ConceptMapper . . Conversion to Dalvik format failed with error 1. this error only appears if I

[android-developers] Re: Getting video frames from Android

2011-03-11 Thread Doug
No, sorry, there is not currently a way to do that. Doug On Thursday, March 10, 2011 2:45:22 AM UTC-8, Awais wrote: > > Hi Guys, > > Is there a way I can get each decoded video frame from Android if I > start playing a video file through media player class? > > -- You received this message b

Re: [android-developers] Re: Difference between SQLite on HTC Hero (1.5) and Nexus One (FR72)?

2011-03-11 Thread Mark Carter
For those interested... Using the emulators: - Android 1.5 (Cupcake): 3.5.9 - Android 1.6 (Donut): 3.5.9 - Android 2.1 (Eclair): 3.5.9 - Android 2.2 (Froyo): 3.6.22 - Android 2.3 (Gingerbread): 3.6.22 - Android 3.0 (Honeycomb): 3.7.4 -- You received this message because you ar

Re: [android-developers] Alarm Issue

2011-03-11 Thread TreKing
On Fri, Mar 11, 2011 at 11:44 PM, Brad Stintson wrote: > Here are the sample values. > So what? That doesn't tell us much more. Try setting the timer to the current system time + 1000 (1 second) and see if your broadcast gets triggered. If not, you got bigger problems. -

Re: [android-developers] Alarm Issue

2011-03-11 Thread Brad Stintson
Here are the sample values. Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(System.currentTimeMillis()); cal.clear(); cal.set(Calendar.YEAR, 2011); cal.set(Calendar.MONTH,2); cal.set(Calendar.DAY_OF_MONTH,11); cal.set(Calendar.

[android-developers] Re: Can't communicate with NfcB tag

2011-03-11 Thread Brill Pappin
laugh! I just got a client wanting to talk to PayPass, which I'm now going to have to figure out how to do. I bet 90% of the people in this forum working on NFC are trying to connect to PayPass! We should set up our own mailing list ;) -- You received this message because you are subscribed to

[android-developers] Re: Java Script alert not working in Android WebView

2011-03-11 Thread kypriakos
Mark - on a related note, does the Android native browser include a WebChromeClient implementation in it? I have been trying to run Ajax on those browsers and I ran into two issues - first one is same origin policy issue. I found out that the Webkit package in Android actually had the cross-origin

Re: [android-developers] Re: Global Variables

2011-03-11 Thread Brill Pappin
Singleton is also one to be avoided however... just like global vars :) However, as we're working on a (sort of) limited device, Singletons are a way of life. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

Re: [android-developers] Global Variables

2011-03-11 Thread Brill Pappin
Yah, but those woud be static final :) not global vars, but constants. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to an

Re: [android-developers] Global Variables

2011-03-11 Thread Brill Pappin
To clarify, that's *not* an Android or Java bug, but a bug in my own code :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Global Variables

2011-03-11 Thread Brill Pappin
I'm not positive about this, but I think i just ran into a bug using static vars. I'm trying to fix it now, but I think my vars are getting GC'ed as the phones runs low on memory and reinitialized when I need them again. Which of course means that they get reinitialized to the default value when

[android-developers] Re: need help in java

2011-03-11 Thread Brill Pappin
This is a bit basic, but... if you use a name, then the name must be valid for DNS because the ip will be looked up from DNS records. if you named your machine "bob" and on your phone tried to access "bob", your phone wouldn't know what the heck you where talking about because bob is not a qual

[android-developers] Need help: Passing a value to a view via inflate OR dealing with style resources

2011-03-11 Thread Brill Pappin
Ok, a quick hack has come back to haunt me, and I now have to find some way of fixing it. FYI - This is in aOS 2.2+ Essentially I need to be able to pass some sort of switch value to a View when I inflate it. I'll describe what I want to do, and I'll try and show what I'm doing so that maybe so

[android-developers] Re: Are the gyroscope features broken in Android 2.3 or Nexus S?

2011-03-11 Thread nadam
Since new sensor types like TYPE_ROTATION_VECTOR were added in Android 2.3 I assumed that they would use the gyroscope in addition to accelerometer/magnetometer. I got an e-mail yesterday from Google that this is not the case. The only way to use the gyroscope from Java is TYPE_GYROSCOPE where you

[android-developers] Re: Query in Android Application development

2011-03-11 Thread Chambras
I think that the best way to work with DBs is using content providers you can read the documentation about them here: http://developer.android.com/guide/topics/providers/content-providers.html also I would read the samples in the resources sections they have everything you need in order to start

[android-developers] Re: Please Help ME!!

2011-03-11 Thread lbendlin
Just compiled this and it ran just fine. What is your desktop environment? On Mar 11, 12:15 pm, Vikash wrote: > This is Coding I am Running It > Error Occuring : ActivityManager: - exec '/system/bin/sh' failed: Exec > format error (8) - > Please Help ME!! > > public class HelloAndroid extends Ac

[android-developers] Re: Google Maps image overlay not visible

2011-03-11 Thread lbendlin
Does it have to be an overlay? If it's just an image then you can simply add it as a view to the mapView. An overlay is just a layer. Unless you fill it with objects, nothing will show. On Mar 10, 1:54 pm, Bastiaan wrote: > Hello, > > I want to overlay a map image (.jpg) over the Google Maps map

Re: [android-developers] Re: dispatching key events from dialog to other acivities

2011-03-11 Thread Dianne Hackborn
On Fri, Mar 11, 2011 at 5:06 PM, Indicator Veritatis wrote: > I can't speak for the OP, though he should do the same, but as for me, > I will avoid calling ActivityThread methods on your say so. But what > DID you mean by " Don't call Looper.prepare() on a thread you don't > own"? In the OP's sni

Re: [android-developers] how to avoid the OOM(out of memory)?

2011-03-11 Thread Dianne Hackborn
That looks like a bug in something running in the kernel. That begs the question: what device are you seeing this on? Does it happen on stock Android? (I am not aware of such a crash on any stock platform that has shipped.) If so, can you make a test app that reproduces it? On Thu, Mar 10, 201

Re: [android-developers] Re: How to preserve preferences settings with application update

2011-03-11 Thread Kostya Vasilyev
It else it might be a Samsung Galaxy S running their butchered 2.2.1 which sometimes isn't even capable of persisting preference values. 12.03.2011 3:52 пользователь "lbendlin" написал: > Are you perchance force-resetting the preferences on program start? > > Like, > > PreferenceManager.setDefault

[android-developers] Re: java sous android

2011-03-11 Thread Indicator Veritatis
I have not seen an entire translation of Google's online Android documentation into French. But what I have seen would be very useful to you, possibly more useful, considering how any translation team trying to keep up with the changes in Android will surely fall behind. That something very useful

Re: [android-developers] dispatch key events to other activities.

2011-03-11 Thread Dianne Hackborn
Correct you can't do this, very much by design. On Fri, Mar 11, 2011 at 7:05 AM, Justin Anderson wrote: > AFAIK that is not possible... I don't think you can redirect events to > other activities that you don't control. That would be a big security risk. > > Thanks, > Justin Anderson > MagouyaWa

Re: [android-developers] XOOM

2011-03-11 Thread Xavier Ducrohet
As Mark said, Motorola distribute the Xoom drivers. The android drivers are only for developer and nexus devices. Each manufacturers provides drivers for their own devices. Find the manufacturer links at http://developer.android.com/sdk/oem-usb.html Xav On Fri, Mar 11, 2011 at 5:08 PM, J Handal

[android-developers] Re: abortBroadcast

2011-03-11 Thread Indicator Veritatis
You really need to include more information in your posts before you can expect a good answer. Not only was Dianne fully justified in asking, "what did you expect it to do", but you also failed to tell us what it did instead. Nor have you given us enough info to duplicate whatever the problem was.

Re: [android-developers] XOOM

2011-03-11 Thread J Handal
> > Mark, > Only modified android_winusb.inf will enable you to install the Android Composite ADB Interface. ;NVIDIA Tegra %SingleAdbInterface% = USB_Install, USB\VID_0955&PID_7000 %CompositeAdbInterface% = USB_Install, USB\VID_0955&PID_7100&MI_01 -- You received this message because you a

Re: [android-developers] Make View Selectable in Honeycomb

2011-03-11 Thread Jack Deslippe
So I see that http://developer.android.com/reference/android/R.drawable.html that list_selector_background is the only one defined ... So, I guess I will just copy the honeycomb list_selector_holo_dark (and dependencies) into my res/ directory and use it from there... Not sure why this is not i

[android-developers] Re: dispatching key events from dialog to other acivities

2011-03-11 Thread Indicator Veritatis
I can't speak for the OP, though he should do the same, but as for me, I will avoid calling ActivityThread methods on your say so. But what DID you mean by " Don't call Looper.prepare() on a thread you don't own"? In the OP's snippet, he created 'at', and on that thread, he calls Looper.prepare().

Re: [android-developers] Re: Can't communicate with NfcB tag

2011-03-11 Thread Nick Pelly
Sorry for the late reply, We have looked into this, and it is indeed a bug. On 2.3.3, NfcA.connect() and NfcB.connect() fail if the tag also enumerates IsoDep. The good news is that most of the time IsoDep.connect() is what you want :) We will address this issue in a future release. It's a litt

[android-developers] Re: Time Conversion - CST to LST(Local Standard Time)

2011-03-11 Thread lbendlin
Which CST do you mean? http://www.worldtimezone.com/wtz-names/wtz-cst.html On Mar 10, 4:46 am, Balaji wrote: > Hi, >      If the input is in CST, it should get converted according to a > particular local time. > For Example, Being in india should be converted for IST, Being in USA > should get c

[android-developers] Re: Integrating Facebook To my App

2011-03-11 Thread LAM_Creations
Do you want it to just be Facebook or are you looking to offer the data to any network/app that can receive the data? If you just want your app to share the data to where ever the user wants you can use an intent like this: Intent shareData = new Intent(Intent.ACTION_SEND); shareData.setType("te

Re: [android-developers] NDEF intent filters

2011-03-11 Thread Nick Pelly
Hi Dominik, Good question. We try to map TNF types to MIME types, since that is what our dispatch system uses. For example, Smart Poster is mapped to URL. However we do not yet have generalized mapping - for example for TNF_EXTERNAL_TYPE to a MIME type. This might be useful, feel free to make a pr

Re: [android-developers] HI

2011-03-11 Thread Kristopher Micinski
Actually, for work we had an application that required a similar application. Instead of using Bluetooth, we faked it in this way, and in our situation the people using phones were pretty much always in contact with a wireless router (in an engineering building of our university). It worked great,

Re: [android-developers] XOOM

2011-03-11 Thread Mark Murphy
On Fri, Mar 11, 2011 at 7:39 PM, J Handal wrote: > USB drivers available through the SDK do not support  XOOM You are welcome to download the Motorola drivers: http://developer.android.com/sdk/oem-usb.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy htt

Re: [android-developers] HI

2011-03-11 Thread Kristopher Micinski
Not true if you're using local wifi. Kris On Fri, Mar 11, 2011 at 9:49 AM, Marcin Orlowski wrote: > On 11 March 2011 08:00, Kristopher Micinski > wrote: > > P.s., > > Bluetooth API support seems to be not that amazingly great, and you have > to > > pair the phones first, which is annoying. > >

[android-developers] Re: How to preserve preferences settings with application update

2011-03-11 Thread lbendlin
Are you perchance force-resetting the preferences on program start? Like, PreferenceManager.setDefaultValues(this, R.xml.preferences, true); maybe? On Mar 10, 10:38 am, Naresh wrote: > The application is not picking the preferences settings once the > application is updated to a new re

[android-developers] Re: LocationListener not triggering onLocationChanged when Listener is reset.

2011-03-11 Thread lbendlin
Your issue is most likely elsewhere in the code logic. Disabling/ enabling the listener works fine for me across all possible device/API version combinations. On Mar 10, 9:48 pm, Shao wrote: > Hi all, > > I was playing around with the GPS location on my Android.  What I'm > trying to do was make

[android-developers] Re: how to avoid the OOM(out of memory)?

2011-03-11 Thread lbendlin
While you can catch the OutOfMemoryError this won't really help you in the long term. You need to rethink your program, and try to use less memory. On Mar 10, 9:39 pm, JUNGMI CHO wrote: > I have tryied to load the game on the phone. > Sometimes the devices is crashed during starting the game. >

[android-developers] Re: Help writing a sample Android App

2011-03-11 Thread lbendlin
You need to use path = Environment.getExternalStorageDirectory() +"/1.mp3" On Mar 11, 7:45 am, Yash Jain wrote: > Hello All, > I am new to java and android Apps. > Basically i want to test weather a media file can be played on my mobile > device so to do this i wanted to write android applicatio

Re: [android-developers] Make View Selectable in Honeycomb

2011-03-11 Thread Jack Deslippe
Hmm, I don't really think that is related. My question is simply why can I apply "list_selector_background" as the background drawable but not "list_selector_holo_dark" - both xml files are in res/drawable in the sdk for target 11 :/ Setting the background to android.R.drawable.list_selector_b

[android-developers] XOOM

2011-03-11 Thread J Handal
USB drivers available through the SDK do not support XOOM Why? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-

[android-developers] Re: ProgressDialog not showing

2011-03-11 Thread Aisthesis
After some trouble figuring out how values are passed into the private class that extends AsyncTask (which, while compact, has a somewhat tricky syntax--at least for me), mine works the way it should. Thanks! On Mar 11, 4:00 pm, Kostya Vasilyev wrote: > 12.03.2011 0:31, David Williams пишет: > >

Re: [android-developers] Make View Selectable in Honeycomb

2011-03-11 Thread Mark Murphy
What you are probably thinking of is actually "checked", not "selected". See this question that I asked on this topic earlier today: http://stackoverflow.com/questions/5274982/compatibility-lib-fragments-activated-and-a-headache On Fri, Mar 11, 2011 at 6:53 PM, Jack Deslippe wrote: > I have a bu

[android-developers] Make View Selectable in Honeycomb

2011-03-11 Thread Jack Deslippe
I have a bunch of views (LinearLayouts) that I have set clickable/selectable and set the following background on them: genreLayout.setBackgroundDrawable( res.getDrawable(android.R.drawable.list_selector_background)); This yields the desired affect on pre-honeycomb device

[android-developers] Re: Install % drop again?

2011-03-11 Thread Zsolt Vasvari
I finally got a response from Google that they are looking into the problem, but no change in the install %. My sales are down 75% from the norm, though. On Mar 12, 2:15 am, Doug wrote: > Today I noticed my active install %, which had gapped down lately, has > gapped back up by 4% overnight.  

Re: [android-developers] Alarm Issue

2011-03-11 Thread TreKing
On Thu, Mar 10, 2011 at 12:27 PM, Brad Stintson wrote: > I am using following code for setting alarm at specified time but I'm not > able to receive alarm at specified time. Please tell me where is the problem > Use your debugger and logcat to verify the value of all the variables you have there

Re: [android-developers] Assets in the assets folder

2011-03-11 Thread TreKing
On Thu, Mar 10, 2011 at 8:45 AM, Justin wrote: > So, my question is: Is there ever an instance where an update to an app > that adds some files to the assets folder will not actually update the app > with those files in place? > Not sure, but there's definitely some issues with the installation

Re: [android-developers] Error when adding Action Bar ["No resource identifier found for attribute 'showAsAction' in package 'android'"]

2011-03-11 Thread Kostya Vasilyev
Looks like you haven't set your project to build with the HC SDK. Right click on the project in Eclipse, select Properties, Android, and set the build target. 11.03.2011 23:21 пользователь "9:30 Aaron R." написал: > Hi, > > I am attempting to update my application for Honeycomb by targeting > SDK

Re: [android-developers] Broadcast in WiFi ad-hoc mode

2011-03-11 Thread Kostya Vasilyev
Android (at least before 3.0) does not support connecting to AdHoc networks. If you are willing to build and flash your own firmware for your project, supposedly it's quite easy to fix, look for bug #82 on b.android.com. 11.03.2011 23:22 пользователь "Lewis" написал: > My advisor and I want to mi

[android-developers] Re: game source code

2011-03-11 Thread Patrick
Maybe try AndEngine? http://www.andengine.org/ and the example source code: http://bit.ly/e1lKRQ and build from there. - Patrick -- http://www.peculiar-games.com/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] Re: ProgressDialog not showing

2011-03-11 Thread Kostya Vasilyev
12.03.2011 0:31, David Williams пишет: Does Java do certain things asynchronously then? I was thinking that things were done in a serial fashion but perhaps that is not the case. ProgressDialog.show is asynchronous, just like may other UI operations. Normally, this works, because the Android

Re: [android-developers] Re: Best practices for tablet-centric development

2011-03-11 Thread Chris Stewart
Nathan, Perhaps my use of the word simple was taken a little too literally. As I said, I don't really have a grasp on Fragments yet, and if they work as well as described I'll certainly go that route. I do have rather simplistic Activities so maintaining those wouldn't be terribly difficult in m

Re: [android-developers] how to get data from website

2011-03-11 Thread TreKing
On Fri, Mar 11, 2011 at 2:11 PM, Muhammad Aditya Haferush < aditya.hafer...@gmail.com> wrote: > i want to ask about how to get data from website using httpclient and then > parse it's?? > A) This has nothing to do with Android B) A simple search should yield more than enough examples of doing wha

Re: [android-developers] Best practices for tablet-centric development

2011-03-11 Thread Chris Stewart
> > > http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html Thanks for the link TreKing, very helpful. -- Chris Stewart http://chriswstewart.com On Thu, Mar 10, 2011 at 5:21 PM, TreKing wrote: > On Thu, Mar 10, 2011 at 3:59 PM, Chris Stewart wrote: > >> You'd t

Re: [android-developers] Re: ProgressDialog not showing

2011-03-11 Thread David Williams
Kostya, Thanks for the information, and yes, that does make sense. Does Java do certain things asynchronously then? I was thinking that things were done in a serial fashion but perhaps that is not the case. I'll take a look through your links :) -

[android-developers] Re: Unregister BroadCast Reciever intent

2011-03-11 Thread Jonathan Foley
Your best bet would be too unregister the receiver and then register it with a new intent filter that drops the desired intent. Jonathan On Mar 11, 12:27 pm, Kostya Vasilyev wrote: > Not that I know of, but you can disable the entire receiver: > > http://developer.android.com/reference/android

Re: [android-developers] Re: Global Variables

2011-03-11 Thread David Williams
Yes, I got the answer to this question from other people who didn't phrase their answer in a manner like you did. Thanks though. David Williams Check out our WebOS mobile phone app for the Palm Pre and Pixi:

[android-developers] Big bug playing ogg files in Android 2.3 (a.k.a Stop the Android Audio Madness!)

2011-03-11 Thread k7k0
I'm having a big problem with Android 2.3, the MediaPlayer API seems broken with most .ogg files. If you grab a mono or non-44khz ogg file, after loading it into the MediaPlayer it reports ridiculous lengths using the getDuration() API. Is not just bad information, you can't use the seekTo API!

[android-developers] Re: Location Beacon on Status Bar

2011-03-11 Thread Jake Colman
> "MM" == Mark Murphy writes: MM> On Fri, Mar 11, 2011 at 3:27 PM, Jake Colman wrote: >> That icon only shows up when I request location updates.  If the >> GPS is on but not getting updates, I don't see the icon.  Am I >> letting something that's nothing bother me? MM> Yes.

Re: [android-developers] Query in Android Application development

2011-03-11 Thread Justin Anderson
Ummm we aren't going to write your app for you. http://www.catb.org/~esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 10, 2011 at 12:12 AM, Raghav Rajagopalan < traceragha...@gmail.com> wrote: > Hi to all!! > >

Re: [android-developers] JPasswordField under android

2011-03-11 Thread Justin Anderson
Ummm swing and awt are not included with Android. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 10, 2011 at 2:44 PM, jaafar zbeiba wrote: > hello I use a JPasswordField but I have a problem with java.awt.event > and java.swing > > packa

Re: [android-developers] Re: Location Beacon on Status Bar

2011-03-11 Thread nathanForbes
On 03/11/2011 03:27 PM, Jake Colman wrote: "n" == nathanForbes writes: n> On 03/11/2011 02:36 PM, Jake Colman wrote: >> If request location updates using GPS, I see the locating beacon >> (the thingie that looks like it is shooting rays ito the sky) on >> my status bar. I

Re: [android-developers] Application flow in Android (After clicked on HOME button)

2011-03-11 Thread Justin Anderson
http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 11, 2011 at 11:34 AM, Ashish R wrote: > Hi everyone, > > I have developed on application in Android, > I have one p

Re: [android-developers] Integrating Facebook To my App

2011-03-11 Thread TreKing
On Wed, Mar 9, 2011 at 11:40 PM, Ponraj "Android Developer" < sanraj...@gmail.com> wrote: > I am new to android. suggest me a simple and best way to integrate Facebook > with my App. A forum dedicated to the Facebook API is probably your best bet. ---

Re: [android-developers] weblinks in widget

2011-03-11 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "forcecloses". On Thu, Mar 10, 2011 at 4:08 AM, abhay wrote: > > I am having a TextView in a widget and i have set its link clickable > to true the content of TextView is se

Re: [android-developers] How to preserve preferences settings with application update

2011-03-11 Thread Mark Murphy
On Thu, Mar 10, 2011 at 10:38 AM, Naresh wrote: > The application is not picking the preferences settings once the > application is updated to a new release. > I have to uncheck and check the options in the preferences to take the > settings into effect. SharedPreferences are not touched during a

Re: [android-developers] Start WiFI on emulator

2011-03-11 Thread Mark Murphy
On Thu, Mar 10, 2011 at 8:50 AM, Dogood wrote: > I am new to using the SK emulator. I have develpod an APP that is > communicating over WIFI on a LAN.  I shall communicate with a > webserver on the LAN. > > When I now want to test it I have both the emulator and the webserver > running on the same

Re: [android-developers] Java Script alert not working in Android WebView

2011-03-11 Thread Mark Murphy
Add a WebChromeClient implementation to your WebView via setWebChromeClient(), then override onJSAlert() to do whatever you want. On Fri, Mar 11, 2011 at 5:44 AM, Kapil wrote: > Hi All, >         In my application I am using WebView and in that I am using > javascript alert( ) method but its not

Re: [android-developers] Create animated loading image

2011-03-11 Thread Mark Murphy
Either use an AnimationDrawable or a plain ImageView with a RotationAnimation. On Fri, Mar 11, 2011 at 2:31 AM, Phil Bayfield wrote: > Hi, > I'm wondering what is considered the simplest way to create an animated > loading image, something in line, for example like Twitter have when you > refresh

Re: [android-developers] Rotate TV-OUT of the Samsung Galaxy Tab

2011-03-11 Thread Mark Murphy
You would have to ask Samsung. TV-out support is not part of Android. On Fri, Mar 11, 2011 at 5:43 AM, timmsta wrote: > Hi all, > > i got a little Problem with the Galaxy Tab, that i need to solve: > For an exhibition i need to use the TV-Out of the Galaxy Tab - and i'd > need to show portrait mo

Re: [android-developers] Re: Android AVD 3.0 Problem

2011-03-11 Thread Chris Stewart
I have Visual Studio 08 and 10 on my machine, which I also have been doing development on including using the 3.0 AVD. I've had no issues. I know it's not exactly helpful, but perhaps useful to know. -- Chris Stewart http://chriswstewart.com On Thu, Mar 10, 2011 at 8:23 PM, 曾少彬 wrote: > I

Re: [android-developers] dispatching key events from dialog to other acivities

2011-03-11 Thread Dianne Hackborn
(1) ActivityThread is not a part of the SDK and you should absolutely not be touching it. (2) Don't call Looper.prepare() on a thread you don't own. (3) WTF. On Thu, Mar 10, 2011 at 5:10 AM, Praveen wrote: > Hi, > I am trying to dispatch key-event to other activity from a dialog, I > am trying t

Re: [android-developers] Re: Location Beacon on Status Bar

2011-03-11 Thread Mark Murphy
On Fri, Mar 11, 2011 at 3:27 PM, Jake Colman wrote: > That icon only shows up when I request location updates.  If the GPS is > on but not getting updates, I don't see the icon.  Am I letting > something that's nothing bother me? Yes. Pay no attention to the GPS icon in the emulator. On a device,

Re: [android-developers] What happended backend on Android system when an application was launched?

2011-03-11 Thread Dianne Hackborn
You can look at ActivityManagerService in the source code. On Thu, Mar 10, 2011 at 11:20 PM, Aaron wrote: > When an application was launched from application launcher, how the > system instantiates the main activity? Could you please let me know > the progress? > > -- > You received this message

Re: [android-developers] abortBroadcast

2011-03-11 Thread Dianne Hackborn
What did you expect it to do? On Thu, Mar 10, 2011 at 10:34 PM, Thiri Yee wrote: > abortBroadcast didn't work. Why? > Code is as follow > > public class SMSReceiver1 extends BroadcastReceiver > { >@Override >public void onReceive(Context context, Intent intent) >{ >

Re: [android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-11 Thread Xavier Ducrohet
As we mention, you need to update to Eclipse 3.5. On Fri, Mar 11, 2011 at 4:06 AM, Dato wrote: > hi, > > I have the same issue. I'm using ADT10.0.0, eclipse3.4 on MacOsx > > > -- > !ENTRY org.eclipse.ui 2 0 2011-03-11 19:59:38.453 > !MESSAGE Build problems > !SUBENTRY 1 org.eclipse.core.resou

Re: [android-developers] Need a tutorial

2011-03-11 Thread Marcin Orlowski
2011/3/11 आशुतोष हिन्दुस्तानी > Hi all, > Please provide me link to a tutorial or pdf for understanding the basics of > android application development. > how come you managed not to find http://developer.android.com/ nor any of countless tutorials on the net? -- Regards, Marcin Orlowski --

[android-developers] Re: Important Message to ALL

2011-03-11 Thread HeyYouThere
Two wordsGoogle Translate. Misleading titles = trolling. On Mar 11, 9:26 am, Kunju Vava wrote: > hi > all > > while replying a mail , plse delete/clear  the existing  content > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" gr

Re: [android-developers] Thread + ImageView

2011-03-11 Thread Kostya Vasilyev
Marc, You cannot directly call UI functions in Android from a background thread: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Threads This explains how you can trigger UI updates: http://developer.android.com/resources/articles/timed-ui-updates.html -- Kos

Re: [android-developers] Android graphics

2011-03-11 Thread Marcin Orlowski
On 11 March 2011 14:35, Vegar Ringdal wrote: > Hi Im a newbe, but was thinking about creating an app for my kid, > where I take and "princess cartoon" picture, and let her fill in > colors on the different parts that I define, but Im strugling on how > to do this, if android had svg-api build in,

[android-developers] Re: Location Beacon on Status Bar

2011-03-11 Thread Jake Colman
> "n" == nathanForbes writes: n> On 03/11/2011 02:36 PM, Jake Colman wrote: >> If request location updates using GPS, I see the locating beacon >> (the thingie that looks like it is shooting rays ito the sky) on >> my status bar. I assume that the icon indicates that the phone

Re: [android-developers] Unregister BroadCast Reciever intent

2011-03-11 Thread Kostya Vasilyev
Not that I know of, but you can disable the entire receiver: http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName, int, int) -- Kostya 11.03.2011 20:00, syronet пишет: Is it possbile to dynamically unregister a

[android-developers] Application flow in Android (After clicked on HOME button)

2011-03-11 Thread Ashish R
Hi everyone, I have developed on application in Android, I have one problem which is related with Application flow: Eg: I clicked on desktop icon and start app. start the app. Sequence of the application is : splash screen -> Home screen -> List of some contents. And On this last screen when i wil

[android-developers] Switch back to my application after phone call ends

2011-03-11 Thread Shaun Clark
>From my application I am currently launching the dialer: newCallIntent = new Intent(Intent.ACTION_DIAL); PhoneCallReciever receiver = new PhoneCallReciever(); telephonyManager.listen(receiver, PhoneStateListener.LISTEN_CALL_STATE); startActivityForResult(newCallIntent, DIAL_RESULT); Then I have

[android-developers] how to get data from website

2011-03-11 Thread Muhammad Aditya Haferush
hi everyone,, i am new in android, i want to ask about how to get data from website using httpclient and then parse it's?? please help me, sorry for bad english.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Stream Audio Android 2.1

2011-03-11 Thread Calospace
Hello every one ! I'm new on Android Dev (and French, sorry for my mistakes) and I try to develop an app which enables to listen a shoutcast stream. It prefectly works on Android 2.2 but not in Android 2.1... Coul'd you help me ? I've got this code (just the function play()) : private void play(

[android-developers] Re: Disable Button after click

2011-03-11 Thread Sourav Howlader
As soon as the button is clicked, set button.setEnable(false); This will disable the button and will avoid from double clicking it. On Mar 11, 11:54 pm, pabbot wrote: > Hi all, > > In my application, when I click on a button that inserts a record on > the database and closes the Activity, some

[android-developers] adding a view as indicator for my tabwidget

2011-03-11 Thread bovello
Hi all, I know that I can use a View as indicator for my tab (android 1.6 and up), using public TabHost.TabSpec setIndicator (View view) (http://developer.android.com/reference/android/widget/ TabHost.TabSpec.html#setIndicator(android.view.View)) I'd like tu put a TextView on it, but I get wrong w

[android-developers] Driver CTS - compatibility test

2011-03-11 Thread dani maoz
Hi I am develop a kernel driver + application to support me HW (Proprietary hw) . I have some question regarding CTS and android market. 1. Would it be possible to upload the application to the market (The application depend on the kernel driver) 2.If the application rely on kernel driver input wo

[android-developers] using eclipse run the monkeyrunner?

2011-03-11 Thread c j
all must install and path complete(pydev, jython, android SDK) i try example can not compile, please tell me have any attention? error msg device = MonkeyRunner.waitForConnection() at com.android.monkeyrunner.MonkeyRunner.waitForConnection(MonkeyRunner.java: 74) at sun.reflect.Na

[android-developers] Re: Moving an image in android

2011-03-11 Thread blahti
I have two suggestions for drag drop code: (1) Android Launcher code; (2) Drag-drop at developer.android.com. I studied the Android Launcher code to see how the Android developers supported drag and drop. I then built a simple example based on that code. I wrote a note and posted source code on my

[android-developers] Unregister BroadCast Reciever intent

2011-03-11 Thread syronet
Is it possbile to dynamically unregister a specific intent that a reciver is registerd for in the manifest ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubs

[android-developers] Please Help ME!!

2011-03-11 Thread Vikash
This is Coding I am Running It Error Occuring : ActivityManager: - exec '/system/bin/sh' failed: Exec format error (8) - Please Help ME!! public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceSt

[android-developers] iptable binary

2011-03-11 Thread solene_lj
Hello everyone! I'm studying to create iptables binary, I have downloaded one at this thread http://forum.xda-developers.com/showthread.php?t=444004 when I test it in emulator, it works, but some match option don't work, for example: -m string test: $ adb shell # /data/iptables iptables v1.3.7:

[android-developers] Android graphics

2011-03-11 Thread Vegar Ringdal
Hi Im a newbe, but was thinking about creating an app for my kid, where I take and "princess cartoon" picture, and let her fill in colors on the different parts that I define, but Im strugling on how to do this, if android had svg-api build in, then I could have made the picture in inkscape, and us

[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-11 Thread Dato
hi, I have the same issue. I'm using ADT10.0.0, eclipse3.4 on MacOsx -- !ENTRY org.eclipse.ui 2 0 2011-03-11 19:59:38.453 !MESSAGE Build problems !SUBENTRY 1 org.eclipse.core.resources 2 75 2011-03-11 19:59:38.453 !MESSAGE Errors during build. !SUBENTRY 2 com.android.ide.eclipse.adt 2 75 201

[android-developers] need help in java

2011-03-11 Thread आशुतोष हिन्दुस्तानी
hi all, i used inet address class to access one of my machine but it throws unknown host exception .I was using my computer name only could you please help me in it, how to access a machine in local network through android app. thanks -- Thanks Ashutosh Mohle Software Engineer CS-KNIT-2010 -- Y

[android-developers] Thread + ImageView

2011-03-11 Thread Marc CG
Hi everybody! First, sorry if my English is bad, usually i don't use it... I am making a program witch have 2 java class. The first class is the main activity and the second is a thread. In the main activity i have some ImageViews, Textviews, CheckBox and RadioButtons. My Problem is that when i

  1   2   3   >