Re: [android-developers] bitmap returning null

2011-03-12 Thread vani reddy
Hi , i used the links which u sent . On Fri, Mar 11, 2011 at 8:51 PM, Kunju Vava android...@gmail.com wrote: hi This may help u http://en.androidwiki.com/wiki/Loading_images_from_a_remote_server http://getablogger.blogspot.com/2008/01/android-download-image-from-server-and.html thnks

[android-developers] Re: Local Services

2011-03-12 Thread Daniel Rindt
On 10 Mrz., 02:52, Mark Murphy mmur...@commonsware.com wrote: Hello Mark, First, you do not typically use both startService() and bindService(), but rather one or the other. I'm confused about that. So please let me explain a bit more about what i want to do. Try to implement a service what is

Re: [android-developers] bitmap returning null

2011-03-12 Thread Kunju Vava
hi Vani In wich android version u used, reply i want to test it Thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Global Variables

2011-03-12 Thread Dianne Hackborn
Oh good lord, there is nothing intrinsically evil about globals or singletons. Just don't abuse them. For example, say I want to do a query on the package manager about a set of applications that are available. If I stick this as local data inside of a particular activity, then every time the

Re: [android-developers] bitmap returning null

2011-03-12 Thread vani reddy
i am testing it on v2.2 On Sat, Mar 12, 2011 at 2:24 PM, Kunju Vava android...@gmail.com wrote: hi Vani In wich android version u used, reply i want to test it Thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] bitmap returning null

2011-03-12 Thread vani reddy
it is saying decoder returned false On Sat, Mar 12, 2011 at 2:48 PM, vani reddy vani.redd...@gmail.com wrote: i am testing it on v2.2 On Sat, Mar 12, 2011 at 2:24 PM, Kunju Vava android...@gmail.com wrote: hi Vani In wich android version u used, reply i want to test it Thnks --

Re: [android-developers] bitmap returning null

2011-03-12 Thread vani reddy
Hi kunju , Did you get to know anything? On Sat, Mar 12, 2011 at 3:01 PM, vani reddy vani.redd...@gmail.com wrote: it is saying decoder returned false On Sat, Mar 12, 2011 at 2:48 PM, vani reddy vani.redd...@gmail.comwrote: i am testing it on v2.2 On Sat, Mar 12, 2011 at 2:24 PM, Kunju

[android-developers] Thickness strikethrough

2011-03-12 Thread a3g
Hi, I need to increase the thickness strikethrough of a text. How is it possible? I use STRIKE_THRU_TEXT_FLAG. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] HI

2011-03-12 Thread Marcin Orlowski
On 12 March 2011 01:53, Kristopher Micinski krismicin...@gmail.com wrote: Not true if you're using local wifi. There's no local wifi. You got either infrastructure or ad-hoc mode. First one is supported by android but needs access point to be available and second one alows direct comunication

[android-developers] android.view.windowLeaked

2011-03-12 Thread vani reddy
Hi , 03-12 16:55:34.095: ERROR/AndroidRuntime(845): java.lang.NullPointerException 03-12 16:55:34.095: ERROR/AndroidRuntime(845): at com.tli.inmg.Image_saigeetha$2.run(Image_saigeetha.java:168) 03-12 16:55:34.154: WARN/ActivityManager(61): Force finishing activity

[android-developers] Help regarding google-java-api client library

2011-03-12 Thread cuil yahoo
Hi, I am trying to make a an android application which lists, uploads and downloads all the documents stored in ones google documents account. Following is what all i have already tried : Using 3 legged Oauth verification method, where in i take a temp token first, open that in the browser let

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

2011-03-12 Thread cuil yahoo
I am still a learner. I have a whole menu in javascript, and would like to move it out of there to the various colorful menus in android. Can i achieve this ? i did try the loadUrl() function, but was not successful. My Html file uses almost 10 javascript file. and the function for the menu is in

Re: [android-developers] HI

2011-03-12 Thread Kostya Vasilyev
12.03.2011 14:08, Marcin Orlowski пишет: On 12 March 2011 01:53, Kristopher Micinskikrismicin...@gmail.com wrote: Not true if you're using local wifi. There's no local wifi. If both phones are connected to the same WiFi router, they will be able to exchange data over TCP/IP without it

[android-developers] Re: Complaint about Droidfanz.com

2011-03-12 Thread Mike dg
Please submit a DMCA take down notice. On Mar 10, 11:40 am, appborg linx...@gmail.com wrote: here is the hosting company details of droidfanz.com We have found few of our pro version apps distributed,  and wrote to the UK2 GROUP LTD (probably the hosting company) please send them a complaint  

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

2011-03-12 Thread Mark Murphy
On Sat, Mar 12, 2011 at 12:23 AM, kypriakos demet...@ece.neu.edu wrote: Mark - on a related note, does the Android native browser include a WebChromeClient implementation in it? Beats me. I've never looked. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Re: Local Services

2011-03-12 Thread Mark Murphy
On Sat, Mar 12, 2011 at 3:33 AM, Daniel Rindt daniel.ri...@googlemail.com wrote: First, you do not typically use both startService() and bindService(), but rather one or the other. I'm confused about that. So please let me explain a bit more about what i want to do. Try to implement a service

Re: [android-developers] about application error

2011-03-12 Thread Mark Murphy
You are including org.apache.uima.conceptMapper.ConceptMapper twice (already added). On Sat, Mar 12, 2011 at 1:40 AM, kajal patil patil.kaja...@gmail.com wrote: Hi All, In my Android application in eclipse I get the following error: UNEXPECTED TOP-LEVEL EXCEPTION:

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

2011-03-12 Thread Mark Murphy
On Sat, Mar 12, 2011 at 12:04 AM, Brill Pappin br...@pappin.ca wrote: Using a standard inflate call like this:     LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);     View view = inflater.inflate(resourceId, null); I want to be able to pass an

Re: [android-developers] android.view.windowLeaked

2011-03-12 Thread Kunju Vava
Hi rani give the full code. thnks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Alarm Issue

2011-03-12 Thread Brad Stintson
My alarm is working. Thanks :) On Sat, Mar 12, 2011 at 11:19 AM, TreKing treking...@gmail.com wrote: On Fri, Mar 11, 2011 at 11:44 PM, Brad Stintson geek.bin...@gmail.comwrote: Here are the sample values. So what? That doesn't tell us much more. Try setting the timer to the current

Re: [android-developers] Re: Status Bar Notifications

2011-03-12 Thread Brad Stintson
Finally, My alarm is working with notifications. :) Thanks all and special thanks to Kostya Vasilyev On Sat, Mar 12, 2011 at 1:42 ,AM, Kostya Vasilyev kmans...@gmail.comwrote: 11.03.2011 23:10, Marcin Orlowski пишет: - Connect to your phone/emulator with adb shell, use dumpsys power to

[android-developers] Populate Spinner from database

2011-03-12 Thread Brad Stintson
How to populate spinner from database? Following code is not working in my case. This method shows database entries in spinner private void fillData() { spin_pro= (Spinner)findViewById(R.id.spin_profile); Cursor profilesCursor = mDbHelper.retrieveAllProfiles();

[android-developers] get IMEI in native code

2011-03-12 Thread channa kad
Hi, Is there any native API to get device ID in c/c++ ? Thanks, Channa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Populate Spinner from database

2011-03-12 Thread Mark Murphy
On Sat, Mar 12, 2011 at 10:10 AM, Brad Stintson geek.bin...@gmail.com wrote: How to populate spinner from database? Following code is not working in my case. Please consider defining not working. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

[android-developers] What is the recommended resolution/aspect ratio for android graphics

2011-03-12 Thread Sheepz
Hi All, I'm trying to write an application that will work well on all screen sizes, for that I have my graphic designer produce images that are in the requested dpis for each directory (Low density (120), ldpi, Medium density (160), mdpi, High density (240), hdpi, Extra high density (320), xhdpi)

Re: [android-developers] Re: App with usb connectivity

2011-03-12 Thread arun scaria
If i'm connecting my device to my laptop which have windows and linux.. Will it be detected.If so how can i refer the path to which the files to be copied.. I tried it..Failed on windows.. -- Arun Scaria Project Head | MEC Association of Computer Students Resource Head | MACS Forum

Re: [android-developers] HI

2011-03-12 Thread Kristopher Micinski
Along with Koysta's explanation of what I was saying, what if both phones are connected to internet using .a router, then both can communicate without using a data plan. I don't know if this is how most people use their phones, but without a data plan (which seems almost unheard of these days)

Re: [android-developers] What is the recommended resolution/aspect ratio for android graphics

2011-03-12 Thread Kostya Vasilyev
12.03.2011 18:38, Sheepz пишет: -- All of this however, is not enough to answer the simple question of what the resolution should be on those images - can they all be cut from the same high res image or should they be re-done for each dpi since the aspect ratio is different? There are four

[android-developers] Re: back button for new canvas

2011-03-12 Thread graffiti
On Mar 10, 4:22 pm, TreKing treking...@gmail.com wrote: On Tue, Mar 8, 2011 at 5:36 AM, graffiti catalanopi...@gmail.com wrote: Is there a code snippet for using the back button for a new paint surface. Probably not. Particularly since that does not make much sense. I am using finger

[android-developers] Log every action/event to an external file

2011-03-12 Thread Pedro Teixeira
Hi there, I've been searching around the web some easy and straight forward solution to LOG everything that a user does while using my application for a user testing and I can't find a simple solution. I don't want to see it on the logcat but keep it ..let's say on a TXT file or something

[android-developers] How to setImageViewUri in Widget using getFileStreamPath()?

2011-03-12 Thread Matt M
Hello, This is really baffling. In an AppWidgetProvider I am trying to setImageViewUri using this Uri: Uri.fromFile(getFileStreamPath(name)) I know the file exists in internal storage because I've tried File.exists(), and I also successfully tried: Bitmap b =

Re: [android-developers] How to setImageViewUri in Widget using getFileStreamPath()?

2011-03-12 Thread Kostya Vasilyev
Matt, I'm assuming your widget is running inside the home screen application (Launcher2 by default). The launcher is a separate application from your own, and therefore cannot access files stored in your application's private data storage directory. Create these image files someplace

[android-developers] Re: How to setImageViewUri in Widget using getFileStreamPath()?

2011-03-12 Thread Matt M
Thank you for your replay Kostya. The solution I chose was to change the privacy during saving. Changed openFileOutput(file, Context.MODE_PRIVATE) to openFileOutput(file, Context.MODE_WORLD_READABLE) Thank you. Matt. On Mar 12, 2:00 pm, Kostya Vasilyev kmans...@gmail.com wrote: Matt, I'm

[android-developers] Re: XOOM

2011-03-12 Thread Indicator Veritatis
But the instructions on Android Developers say we need OEM USB drivers only if we are doing development in Windows. And the instructions for developing under Linux presume Ubuntu Linux. What about Fedora? On Mar 11, 5:15 pm, Xavier Ducrohet x...@android.com wrote: As Mark said, Motorola

[android-developers] Re: game source code

2011-03-12 Thread Indicator Veritatis
That is source for a game engine, not a game. Of course, most game developers will want to use a game engine rather than write all that code from scratch... On Mar 11, 2:10 pm, Patrick specter...@gmail.com wrote: Maybe try AndEngine?http://www.andengine.org/ and the example source

Re: [android-developers] What is the recommended resolution/aspect ratio for android graphics

2011-03-12 Thread Dianne Hackborn
On Sat, Mar 12, 2011 at 7:38 AM, Sheepz eladk...@gmail.com wrote: P.s. To clarify, I'm talking about images that should take up the entire screen - images such as backgrounds etc, and not just regular images If you just want an image to fill the entire content area of your app, dpi doesn't

Re: [android-developers] Thickness strikethrough

2011-03-12 Thread Dianne Hackborn
Sorry, it's not. On Sat, Mar 12, 2011 at 2:39 AM, a3g a3g.astur...@gmail.com wrote: Hi, I need to increase the thickness strikethrough of a text. How is it possible? I use STRIKE_THRU_TEXT_FLAG. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Log every action/event to an external file

2011-03-12 Thread TreKing
On Sat, Mar 12, 2011 at 11:52 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: I'd like to store events like pressing buttons but also store the location and orientation of the device while using my application as well as the time between this actions. Stuff like this you'd have to have

[android-developers] Question about registering for location updates

2011-03-12 Thread Danny S.
Hi, I have to register my locationListener for location updates using the LocationManager. Now the user have the change to set values in the preferences that should set for gestitration. mLocationManager.requestLocationUpdates(GPS_PROVIDER,

[android-developers] reflection result cache not available?

2011-03-12 Thread ko5tik
Hi all, Doing profiling I discovered that Class.getMethods() is taking a lot of time, and results are not cached internally - from J2EE world I'm used that such caching is available, and must be switched off explicitly. Is there reason for this? (I'm sure there is a good one, but can not find

[android-developers] Canvas vs OpenGl drawline speeds

2011-03-12 Thread brian purgert
right now my game is drawn using the canvas and it runs pretty good on my phone. (I have the Droid 2). My game is space-bike in case you did not know, and it is drawn using 3 bitmaps and tons and tons of lines. most frames are under 50 line, the reason it is so high it because I draw Each line

Re: [android-developers] HI

2011-03-12 Thread Marcin Orlowski
On 12 March 2011 13:26, Kostya Vasilyev kmans...@gmail.com wrote: There's no local wifi. If both phones are connected to the same WiFi router, they will be able to exchange data over TCP/IP without it traveling out to the Internet and back. One could call this local WiFi, although that's

Re: [android-developers] HI

2011-03-12 Thread Marcin Orlowski
On 12 March 2011 16:57, Kristopher Micinski krismicin...@gmail.com wrote: Note that I *never* mentioned using ad hoc mode, where did you get that? Read my previous post. There's no much choice if you go for Wifi - either you use infrastructure mode which require, well, infrastructure with

[android-developers] Re: Populate Spinner from database

2011-03-12 Thread davemac
As you appear to be using a single text view in your spinner, consider using some standard layouts and views. Instead of R.layout.profile_list, try using android.R.layout.simple_list_item_1, and instead of your R.id.tvDBViewRow, replace that with android.R.id.text1. My guess is that you're getting

[android-developers] Activity lifecycle... still a mystery to me

2011-03-12 Thread DulcetTone
I find the flowchart of Activity lifecycle pretty ambiguous. In a perfect world, it would receive a little more work to resolve the gray, but I'll throw out some example issues. 1. The phrasing on the legs into and out of onPause() are vague. Does another activity comes in front of the activity

Re: [android-developers] What is the recommended resolution/aspect ratio for android graphics

2011-03-12 Thread brian purgert
if your making a game or not(after you did all this DPI stuff with diffrent folders) scale the images in game and in the view too. always use DP never PX. this stuff can get very confusing especially when you are trying to get it to work on all phones. I made a game so I know. 1. Create different

Re: [android-developers] Activity lifecycle... still a mystery to me

2011-03-12 Thread Mark Murphy
On Sat, Mar 12, 2011 at 3:55 PM, DulcetTone dulcett...@gmail.com wrote: I want to perform certain actions when the BACK or HOME keys are pressed, and ignore cases where a third-party activity simply pops up on part of the screen and then goes away. Why? -- Mark Murphy (a Commons Guy)

Re: [android-developers] Activity lifecycle... still a mystery to me

2011-03-12 Thread TreKing
On Sat, Mar 12, 2011 at 2:55 PM, DulcetTone dulcett...@gmail.com wrote: I want to perform certain actions when the BACK or HOME keys are pressed, and ignore cases where a third-party activity simply pops up on part of the screen and then goes away. You can override the back key and do

Re: [android-developers] reflection result cache not available?

2011-03-12 Thread Dianne Hackborn
You'll need to cache this stuff yourself. I really recommend avoiding reflection though for any performance critical things -- even if there is no time required for the class/methods lookup, you will still tend to spam a lot of temporary objects. If you are going to use reflection, plan to spend

Re: [android-developers] Re: game source code

2011-03-12 Thread brian purgert
the android developer website has some good one's http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/index.html http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/index.htmllunar lander, jetboy,snake,tictac toe are

Re: [android-developers] Activity lifecycle... still a mystery to me

2011-03-12 Thread Kostya Vasilyev
See below: 12.03.2011 23:55, DulcetTone пишет: 1. The phrasing on the legs into and out of onPause() are vague. Does another activity comes in front of the activity pertain to the case where my activity is simply going away because finish() was called? It means just what it says - one case

[android-developers] Re: game source code

2011-03-12 Thread Patrick
It's source code for examples that make use of the engine's features. Try out the examples package (available on the market). With a little creativity, imagination and coding you'd have a good start on a game. - Patrick -- http://www.peculiar-games.com/ On Mar 12, 2:27 pm, Indicator Veritatis

Re: [android-developers] Market 2.3.2 : why is in-app billing API still returning RESULT_BILLING_UNAVAILABLE?

2011-03-12 Thread Miguel Morales
Looks like this started to work now. Just tried the dungeons sample on my G1 and it seems to finally work. On Fri, Mar 4, 2011 at 1:24 AM, Kostya Vasilyev kmans...@gmail.com wrote: 04.03.2011 11:50, Nikolay Elenkov пишет: I agree it's pure speculation, but that's all we have. It does seem

Re: [android-developers] HI

2011-03-12 Thread Kristopher Micinski
On Sat, Mar 12, 2011 at 3:37 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 12 March 2011 16:57, Kristopher Micinski krismicin...@gmail.com wrote: Note that I *never* mentioned using ad hoc mode, where did you get that? Read my previous post. There's no much choice if you go for

Re: [android-developers] HI

2011-03-12 Thread Marcin Orlowski
You see a need of entering 4 digits (usually once per pair of devices) a high barrier, and at the same time it's no problem that you need hardware router present? Good luck with your app in the woods :)  With my app in a similar situation (an app for university students to exchange class

[android-developers] Bonjour client for android?

2011-03-12 Thread John Gaby
I would like to be able to create an app which can discover and communicate with servers running on a PC using Windows or OSX. This is very easy to do using Apple's Bonjour, but there does not seem to be any implementation of this for Android. Does anyone know of a way to do this for Android

[android-developers] Path, PathShape problem

2011-03-12 Thread Juan
Why doesn't this work? Path altRibbonPath = new Path(); altRibbonPath.moveTo(0,0); altRibbonPath.lineTo(100,100); altRibbonScaleDrawable = new ShapeDrawable(new PathShape(altRibbonPath,metrics.widthPixels,metrics.heightPixels)); altRibbonScaleDrawable.getPaint().setColor(Color.WHITE);

Re: [android-developers] Path, PathShape problem

2011-03-12 Thread Romain Guy
You need to call setBounds() on the Drawable at least once before drawing it. On Sat, Mar 12, 2011 at 7:57 PM, Juan fly...@gmail.com wrote: Why doesn't this work? Path altRibbonPath = new Path(); altRibbonPath.moveTo(0,0); altRibbonPath.lineTo(100,100); altRibbonScaleDrawable = new

[android-developers] Re: Path, PathShape problem

2011-03-12 Thread Juan
I just now figured it out. Thanks. :) On Mar 12, 10:58 pm, Romain Guy romain...@android.com wrote: You need to call setBounds() on the Drawable at least once before drawing it. On Sat, Mar 12, 2011 at 7:57 PM, Juan fly...@gmail.com wrote: Why doesn't this work? Path altRibbonPath = new

[android-developers] Re: Activity lifecycle... still a mystery to me

2011-03-12 Thread Roger Podacter
I recently wrote my first android app, and I too did not grasp the life cycle functions and they just didn't seem to work correctly, or the way I thought they should based on the graph. Here's my learned knowledge from writing my app. OnPause and onResume turned out to be by far and above the

[android-developers] Re: Activity lifecycle... still a mystery to me

2011-03-12 Thread Indicator Veritatis
Interesting summary, but I don't think it addresses ALL the OP's legitimate concerns, hence my own questions/comments below: On Mar 12, 1:49 pm, Kostya Vasilyev kmans...@gmail.com wrote: See below: 12.03.2011 23:55, DulcetTone пишет: 1.  The phrasing on the legs into and out of onPause()

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

2011-03-12 Thread Brill Pappin
I couldn't make it work as an attribute (and wasn't not sure what might be wrong) but I did manage to use the tag attribute and checke that in the constructor. - Brill Pappin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Global Variables

2011-03-12 Thread Indicator Veritatis
I get no such project when I try to go to your link. On Mar 12, 1:05 am, Dianne Hackborn hack...@android.com wrote: Oh good lord, there is nothing intrinsically evil about globals or singletons.  Just don't abuse them. For example, say I want to do a query on the package manager about a set

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

2011-03-12 Thread Emre A. Yavuz
FYI. http://conferences.sigcomm.org/sigcomm/2010/papers/mobiheld/p21.pdf http://code.google.com/p/android-wifi-tether/ Emre Date: Thu, 10 Mar 2011 16:00:38 -0800 Subject: [android-developers] Broadcast in WiFi ad-hoc mode From: lewis.tseng.taiwan.u...@gmail.com To:

[android-developers] Re: Activity lifecycle... still a mystery to me

2011-03-12 Thread Indicator Veritatis
As you say, onPause() and onResume() are by far the most commonly called. But if you run your app on a G1, and run it with other apps, you will see onStop() and onDestroy() called. You should also see onDestroy() called whenever the user presses the Back button, which calls finish(); but when