[android-developers] Proxy to open blocked sites

2011-02-23 Thread Ahmed Ragab
Proxy to open blocked sites http://ppropx.4mtm.net OR http://pronet.4mtm.net -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send em

[android-developers] Re: App crashing with the exception View not attached to Window manager

2011-02-23 Thread Manish Garg
Yes fernando. My activity is getting created at the time of orientation change. and onPostExecute is getting called after activity is destroyed. progress bar is independent dialog which is getting dismiss at the time of onPostExecute. and if orientation has changed, it is no more attached to the wi

[android-developers] Customising title bar

2011-02-23 Thread Laxmi Verma
Hi, I have created the customized title bar for my application and had changed the background color of the title bar. After changing the background color, the title bar is not coming in full length. There is a gap from both the sides even after giving android height and width to "fill_parent".

Re: [android-developers] Re: Playing sound with mediaplayer

2011-02-23 Thread Marcin Orlowski
On 24 February 2011 00:54, kernelpanic wrote: > shouldn't have to call prepare - according to the docs, that is > already done IF the mediaPlayer was successfully created. It actually > says prepare must not be called again. Read there: http://developer.android.com/reference/android/media/MediaPl

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-23 Thread Samuh
When I try playing open streams(not encrypted), using the MediaPlayer_Demo in the API demos package, I get the following messages written to the logs: INFO/avc_utils(238): found AVC codec config (320 x 180, Main-profile level 2.1) INFO/ESQueue(238): found AAC codec config (48000 Hz, 1 channels) I

Re: [android-developers] 3.0 dialog with WebView inside FrameLayout doesn't resize

2011-02-23 Thread Jonas Petersson
For the record, I just filed a report of this including a simple demonstration app in apk as well as tgz format: http://code.google.com/p/android/issues/detail?id=14981 Just run in the 3.0 emulator and something pre-3.0 to see the difference. Best / Jonas 2011-02-23 2

[android-developers] Re: Icon Design Guidelines for Android 3.0?

2011-02-23 Thread mort
I think it's even more funny with the Widget guidelines. The Google search Widget seems to be the only one left which looks at least somewhat like that. http://developer.android.com/intl/de/guide/practices/ui_guidelines/widget_design.html I guess Google has adopted the Wicca motto: "And ye harm no

[android-developers] How to draw over live wallpaper?

2011-02-23 Thread mastermind
I want to draw my scene over current live wallpaper. I know how to do that with WallpaperManager. BUT it's working only with static wallpaper :( Is there any way to do draw over LIVE wallpaper? I was looking for solution in SDK for many hours, but I can't find anything... 1) Android OS can draw wid

[android-developers] Re: App crashing with the exception View not attached to Window manager

2011-02-23 Thread fernando
It seems that your activity is being recreated on orientation changes because this configuration change is not declared on the manifest, and the post execute is called after the activity is destroyed. To check that, put log messages on the onCreate, onConfigurationChanged and onDestroy activity met

[android-developers] Access to data folder on Google Nexus S

2011-02-23 Thread Robert
Hello, can someone help me. I can't access to "data" folder in Google Nexus S, any idea how I can do it? Don't ask please that I'm using DDMS the answer is YES and even there I can't access to that folder, I also tried to do it by command line and guess what... no way. Please any idea? -- You re

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-23 Thread Peter Webb
If it happens with *all* Live Wallpapers on your phone, then not much point in looking in your application to see the bug. If most or some of the top 5 or 6 Live Wallpapers in the Market have the same problem, and you haven't done anything funny to your phone, then I would ask the people you bought

[android-developers] end call

2011-02-23 Thread parag
hi, I have the code downloaded from the link below for blocking any incoming call, http://androidsourcecode.blogspot.com/2010/10/blocking-incoming-call-android.html whats happening is i get a short missed call (ie a blank screen for a 1second ). i want the call to be ended without any notifica

[android-developers] Is anybody using amazon S3 for uploading files from android?

2011-02-23 Thread ishwarya
Hi there, I am trying to upload image file from my android app to amazon s3.The problem is that the files are not getting properly uploaded to S3. I am using PutObjectRequest as follows to upload file to S3 PutObjectRequest p=new PutObjectRequest(String Bucketname,Stirng key,InputSt

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-23 Thread Amit
Foremost, thanks a lot to you guys since I was not looking any response at all from anywhere. Now, let’s come up with a problem. - I am working on a 'porting' project that's why I don't have extensive awareness about the Code - AFAIK, using GLSurfaceView as a veiw - Critical part has been writ

Re: [android-developers] Re: To Zoom A Image using Zoom Button and Zoom Controller

2011-02-23 Thread Justin Anderson
This is the first thing I do when I am trying to figure out how to do something: http://lmgtfy.com/?q=android+zoombutton+tutorial On Wed, Feb 23, 2011 at 10:55 PM, ASHI <01.as...@gmail.com> wrote: > Dear Mr.Justin Anderson > I dont have any idea of how to use zoom button and zoom controller as >

Re: [android-developers] Re: Custom List layout with checkbox selection problem

2011-02-23 Thread Justin Anderson
*> but if i scroll list, android will > show some of the row items as checked because of ListView recycling > problem.* view recycling is not a problem... It is a feature. You technically don't HAVE to recycle views if you don't want to. Just ignore the convertView parameter. > I can set and r

Re: [android-developers] Re: Custom List layout with checkbox selection problem

2011-02-23 Thread TreKing
On Wed, Feb 23, 2011 at 11:56 PM, Manish Garg wrote: > I can set and reset checkbox in onClick but it will reduce efficiency of > my application. Everytime i have to traverse my list and have to set or > reset a checkbox. There should be some other way so that android can take > care of it. > No

Re: [android-developers] App crashing with the exception View not attached to Window manager

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 11:58 PM, Manish Garg wrote: > If user change the orientation at the time of fetching and onPostExecute > get called after orientation change, my application is crashing. > Try this first. http://www.google.com/search?q=asynctask+orientation+change ---

Re: [android-developers] Problem while creating a custom UI

2011-02-23 Thread TreKing
On Mon, Feb 21, 2011 at 6:31 AM, Alok Nath wrote: > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.game.subgame/com.game.subgame.BoardActivity}: > android.view.InflateException: Binary XML file line #6: Error inflating > class com.game.brainer.Board > > Not sure wha

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

2011-02-23 Thread Chopcsu
Hi All, I have just installed ADT 10 with SDK 3.0. Eclipse has been working ok, but now all of a sudden my project has broken down with eclipse either complaining there is something wrong with xml files where there is nothing wrong (tested on a non adt10 eclipse and works fine) or giving errors E

[android-developers] Re: To Zoom A Image using Zoom Button and Zoom Controller

2011-02-23 Thread ASHI
Dear Mr.Justin Anderson I dont have any idea of how to use zoom button and zoom controller as I'm new to android. I have wrote code to zoom a image using java in android but did not used any widgets On Feb 24, 4:27 am, Justin Anderson wrote: > What have you tried so far? > > On Wed, Feb 23, 2011

Re: [android-developers] What are these interfaces?

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 10:16 PM, Bilthon wrote: > Hi there, I've got a Samsung i7500 which I upgraded to the > GAOSP-2-PUBLIC-BETA-3 > custom rom. > I really think you're in the wrong forum. Try the platfo

[android-developers] Re: Custom List layout with checkbox selection problem

2011-02-23 Thread Manish Garg
if i maintain one arraylist and set and reset particular position in the onclick function, i will be able to get the correct list items which has been checked by the user. but if i scroll list, android will show some of the row items as checked because of ListView recycling problem. I can set and

Re: [android-developers] Using multiple layouts in one layout file, performance?

2011-02-23 Thread brian purgert
Yes i think this is really the only way to go, i don't think I've seen much of a performance differance though. On Feb 24, 2011 12:10 AM, "TreKing" wrote: > On Wed, Feb 23, 2011 at 8:50 PM, brian purgert wrote: > >> My question is, is this costing my performance, if so is there a better way >> to

Re: [android-developers] about the heap size in honeycomb

2011-02-23 Thread Romain Guy
The heap size is set to 48MB. On Wed, Feb 23, 2011 at 9:18 PM, Zhihong GUO wrote: > Hi all, > > it is said in the link > http://developer.android.com/intl/zh-CN/sdk/android-3.0.html that > honeycomb support larger heap size. what is the upper-limit of the heap that > the applications can used. >

Re: [android-developers] Using multiple layouts in one layout file, performance?

2011-02-23 Thread TreKing
On Wed, Feb 23, 2011 at 8:50 PM, brian purgert wrote: > My question is, is this costing my performance, if so is there a better way > to do this Probably not, but the only way to really know is to profile your code and see. ---

Re: [android-developers] Re: animate part of the app widget

2011-02-23 Thread Zhihong GUO
Hi DatNQ, Thank you so much. I am really eager to know the solution. 2011/2/24 Nguyen Dat > Thanks Metal for helpful information > > @Zhihong: i'm sorry for late response, we have successful creat widget > animation by used RemoteViews. When we complete document we will post > solution to this

[android-developers] about the heap size in honeycomb

2011-02-23 Thread Zhihong GUO
Hi all, it is said in the link http://developer.android.com/intl/zh-CN/sdk/android-3.0.html that honeycomb support larger heap size. what is the upper-limit of the heap that the applications can used. Thanks -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: Problem with Cursor Adapter

2011-02-23 Thread fernando
Assuming that the issue is because you grabbing the information from a recycled view. you might probably using an OnItemClickedListener and on the onItemClicked is using the information from the View to decide what's the item. You might want to get the data from the adapter using the position param

[android-developers] drag and drop only between views in the same layout?

2011-02-23 Thread Zhihong GUO
Hi all, A question about drag & drop in Honeycomb, is it available between two app widgets or fragments on homescreen? or it is only available between views in the same activity. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Service Lifecycle

2011-02-23 Thread fernando
One simpler approach would be having a specialization of a Handler created with separate thread/looper. It would be instantiated along with the activity and you can post messages or Runnables with object and the Handler does the work in background. The handler should post Runnables or messages to t

[android-developers] Re: Using multiple layouts in one layout file, performance?

2011-02-23 Thread metal mikey
That comes at the cost of more Views, which will be eating up more memory. You could simply re-use the one "popup" View and change its content per variant, rather than having a "popup" View per variant. On Feb 24, 1:50 pm, brian purgert wrote: > Right now i have a bunch of relativelayouts in one

[android-developers] Re: ListView adapter bug?; notify changed does nothing.

2011-02-23 Thread fernando
i can't see what could be wrong, except if the notifyDataSetChanged is overridden in your adapter, then somewhere in your adapter you need to call super.notifyDataSetChanged. If that's not true that would be really useful to step into the frameworks code to undestand what's wrong. You'll need a li

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-23 Thread Kevin TeslaCoil Software
> leave a complaint in the Market Don't do this. A comment like "1 star. Has graphical errors" is useless to any developer and the developer has no way of responding. A detailed email on the other hand can actually help improve the app/ wallpaper/whatever and the developer can reply if they have q

[android-developers] Re: [bionic-c-lib] SIGSEGV on free()

2011-02-23 Thread Dewr
malloc didn't return NULL. so memories maybe allocated correctly. On Thu, Feb 24, 2011 at 1:15 PM, Dewr wrote: > Hello, I am porting a C program. > > The problem I've met is SIGSEGV on free(). I can't see what's the root > cause of it. > it doesn't occur sometimes, but very often. > > I am testi

Re: [android-developers] Extended MapView

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 7:51 PM, Sunil Lakhiyani wrote: > Can any one help me? Maybe, if you post more information, like what's at line 10 for example. - TreKing

[android-developers] Re: change background color of particular line in textview or edittext

2011-02-23 Thread Honest
hi, thanks for your reply. sorry in my last post i forgot to add link. you can see first screenshot there. they have put yellow background there. i want to do similar thing. https://market.android.com/details?id=com.faithcomesbyhearing.android.bibleis&feature=search_result On Feb 24, 11:17 am,

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-23 Thread Peter Webb
*Which* Live Wallpaper ? All of them, you may have a problem. One of them, leave a complaint in the Market and stop using it. On Feb 23, 3:50 pm, Amit wrote: > Hello Sir, > First of all sorry to post it again but what I would do. I am not > getting response from anywhere, > > http://stackoverf

[android-developers] Re: change background color of particular line in textview or edittext

2011-02-23 Thread Zsolt Vasvari
Correct, I understood what you wanted. You want to use Spannable text with different spans. On Feb 24, 12:06 pm, Honest wrote: > hi, > > thanks for your reply. sorry in my last post i forgot to add link. you > can see  first screenshot there. they have put yellow background > there. i want to do

Re: [android-developers] Adobe Air for Andoid App - Trouble Bringing App to Foreground (actionscript 3)

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 4:45 PM, RJM wrote: > This works on the computer but seems to create an error on the phone... > Care to explain what the "error" is? That might help. - TreKing

Re: [android-developers] android graphs

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 4:24 AM, pravin wrote: > hi plz help to rendering the graphs. Are you expecting people to just know what "the graphs" are? - TreKing

[android-developers] [bionic-c-lib] SIGSEGV on free()

2011-02-23 Thread Dewr
Hello, I am porting a C program. The problem I've met is SIGSEGV on free(). I can't see what's the root cause of it. it doesn't occur sometimes, but very often. I am testing it on NexusOne 2.2.1 I am using Android NDK r5b and Android SDK and Eclipse ADT and Cygwin. I am using *android.content.re

Re: [android-developers] About Rendering

2011-02-23 Thread TreKing
On Tue, Feb 22, 2011 at 3:59 AM, pravin mohol wrote: > How to do rendering in android. i mean i create one bar graph in android > and i want user can see the graph by Zomming. plz replay. What have you done so far?

[android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-23 Thread davemac
I hate to seem like a nag on this topic, but I've got some more concerns about the documentation, and your answer. Let's consider an example as described in the reference page for NfcAdapter, which seems to be more correct than the DevGuide for NFC: android.nfc.tech.NfcF

[android-developers] Using multiple layouts in one layout file, performance?

2011-02-23 Thread brian purgert
Right now i have a bunch of relativelayouts in one view, they are all pop up menus only used in certain levels and certain locations in my game, they are all set to (gone) and when i need them i set them to visible and then when a button is clicked they go back to gone. My question is, is this cos

[android-developers] Not able to connect Samsung Pop(5570) to ubuntu for development

2011-02-23 Thread SuperCop
Hi Guys, I was not able to connect my phone to my ubuntu 10.10 machine. It got connected in usb storage mode but when i switched the usb debugging on, my device was listed as adb devices List of devices attached ?? no permissions I added the 51-android.rules file in /etc/udev/rules.d fo

[android-developers] Re: Service Lifecycle

2011-02-23 Thread Zsolt Vasvari
The next logical question is: does it work on a 2.2 emulated device? If yes, obviously there is something that changed between 1.6 and 2.2 and you need to see in which SDK version it starts working and then narrow it down from here. On Feb 24, 9:38 am, Jake Colman wrote: > I just tried downloadin

[android-developers] Re: ListView adapter bug?; notify changed does nothing.

2011-02-23 Thread Dan
I have been working on a similar issue to this. The application is uses a ListActivity from a Library Project. This Library Project can also be configured to be its own application (refactoring is in progress). The ListActivity works well when its project is used as an application. However the Li

[android-developers] Re: change background color of particular line in textview or edittext

2011-02-23 Thread Zsolt Vasvari
Read up the Spannable API. I am sure the answer is in there somewhere. On Feb 24, 10:13 am, Honest wrote: > hello, > > I want to create my layout in a way. i am planning to use TextView or > EditText and i will have many String sentence on it. Now i want to > change background color of particula

[android-developers] Re: Cursor management issue with Honeycomb

2011-02-23 Thread Zsolt Vasvari
Don't try to requery an already closed cursor. What could possibly be clearer about that message? I suspect that Honeycomb tightened up this check and exposed a bug in your app. On Feb 24, 7:26 am, andfan22 wrote: > I have an app that works fine on all recent versions of android up to > and i

[android-developers] change background color of particular line in textview or edittext

2011-02-23 Thread Honest
hello, I want to create my layout in a way. i am planning to use TextView or EditText and i will have many String sentence on it. Now i want to change background color of particular text line(not all text or text view background). so can some one tell me how can i do it ? -- You received this me

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Greg Donald
On Wed, Feb 23, 2011 at 5:02 PM, TreKing wrote: >> Even if you're developing an everlasting app? > > There's no such thing. Oh yeah. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Re: Service Lifecycle

2011-02-23 Thread Jake Colman
I just tried downloading the to my phone and it worked! So it looks like the app only has issues on the emulator?! Why would that make sense? The emulator is Android 1.6 with the corresponding Google API (since I want to make sure that my widget will even run on older devices). The actual devic

[android-developers] Protecting copyright of my android application

2011-02-23 Thread argongold
Hi Guys, we are developing an android application for a manufacturer's device and we have an agreement to sell a certain number of devices and where each device will have only copy of our application installed. Currently we do not have any check from software point of view if the manufacturer ha

Re: [android-developers] Regarding setting custom highlight color for gridview

2011-02-23 Thread Nguyen Dat
Dear twinkle, ★Here is solution to change default color of GridView background base on state of item (Focus/Unfocus/Enable/Press...etc) ❶. In xml layout of grid view: http://schemas.android.com/apk/res/android"; android:listSelector="@drawable/grid_selector"/> ❷. Create cus

Re: [android-developers] Re: animate part of the app widget

2011-02-23 Thread Nguyen Dat
Thanks Metal for helpful information @Zhihong: i'm sorry for late response, we have successful creat widget animation by used RemoteViews. When we complete document we will post solution to this topic. Regards, DatNQ On Wed, Feb 23, 2011 at 12:43 PM, metal mikey wrote: > Refer to my posts on t

Re: [android-developers] [Widget][RemoteViews]How to implement Animation of Widget

2011-02-23 Thread Nguyen Dat
Thanks Mark, we had successful implement widget animation for SDK 2.3, detail solution i will report after complete document. Please wait a minute, Regards, DatNQ P/s: @Mark: Just want to say big thanks for your effort to Android community and very helpful book ^^, Thanks you so much. On Wed, F

[android-developers] Re: Playing sound with mediaplayer

2011-02-23 Thread kernelpanic
shouldn't have to call prepare - according to the docs, that is already done IF the mediaPlayer was successfully created. It actually says prepare must not be called again. On Feb 23, 5:06 pm, vnv wrote: > Adding prepare made no progress. I have no sound at all. Currently it > was failing with s

[android-developers] Re: @override question

2011-02-23 Thread DanH
Yeah, it's one of several somewhat questionable "features" added to recent versions of Java. It's never an error to omit it, but if you code it and there is not, in fact, a superclass method by the same name, then the compiler is supposed to throw a hissy fit (or at least log an error). On Feb 22

Re: [android-developers] Android not calling onDestory when service is killed using task manager

2011-02-23 Thread Justin Anderson
Just be aware that a "running" service does not necessarily mean it is currently doing anything... http://developer.android.com/reference/android/app/ActivityManager.RunningServiceInfo.html#restarting On Tue, Feb 22, 2011 at 10:27 PM, Apoorva Moghey < apoo...@mediologysoftware.com> wrote: > publi

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 6:04 PM, String wrote: > Mark, why do you take this position? I've found SharedPrefs to be very handy > for storing all sorts of one-off data items for which SQLite would be > overkill. Is there a downside that I'm missing? "One-off data items" is probably OK. It's not tra

Re: [android-developers] Problem with Cursor Adapter

2011-02-23 Thread Justin Anderson
*> Please enlighten* Please post some code... On Tue, Feb 22, 2011 at 10:38 PM, abhishek sharma wrote: > I have a cursor adapter .The list which is getting populated from the > cursor,has got an imageView in each of its item.Tapping that imageVIew > updates a boolean field in database and changes

Re: [android-developers] To Zoom A Image using Zoom Button and Zoom Controller

2011-02-23 Thread Justin Anderson
What have you tried so far? On Wed, Feb 23, 2011 at 3:04 AM, ASHI <01.as...@gmail.com> wrote: > Hi everyone, > I need to zoom a image using zoom button. Can anyone help me. Thanks > in advance > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers

Re: [android-developers] Re: Writing code for multiple APIs

2011-02-23 Thread Justin Anderson
When you do that just be careful that you don't use any code from the higher API version without first checking the OS version at runtime... On Wed, Feb 23, 2011 at 3:45 PM, Mark Murphy wrote: > On Wed, Feb 23, 2011 at 5:42 PM, dashman wrote: > > well the static method won't solve the problem i

[android-developers] Cursor management issue with Honeycomb

2011-02-23 Thread andfan22
I have an app that works fine on all recent versions of android up to and including gingerbread. When testing on honeycomb however, I'm getting the following exception when restarting an activity that uses managed cursors. FATAL EXCEPTION: main java.lang.RuntimeException: Unable to resume activi

Re: [android-developers] Re: Odd Gallery onFling() behavior...

2011-02-23 Thread Justin Anderson
I thought that it might be a conflict between my custom Gallery and the actual views in the Gallery so I tried setting this to no avail: setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); I was thinking that if the Gallery is given focus first then perhaps the motion events would get

[android-developers] Re: Icon Design Guidelines for Android 3.0?

2011-02-23 Thread Zsolt Vasvari
Why would there be an update now. Google hasn't followed those themselves since 1.6, look at all their latest apps. On Feb 24, 3:05 am, GJTorikian wrote: > When will there be an update for WXGA devices to this doc? > > http://developer.android.com/guide/practices/ui_guidelines/icon_desig... --

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Justin Anderson
Why does it need to stay running in the background? What is it supposed to do besides listen for key presses? If that is all it is doing you could write a receiver that will launch your app based on that. Quick Launch is an app in the Android Market that I wrote that essentially does just that.

[android-developers] Re: Android Market having trouble authorizing anyone today?

2011-02-23 Thread Zsolt Vasvari
No problems for as far as the authorization, but the alternate currency prices haven't taken effect yet. Was it supposed to go live today? On Feb 24, 5:42 am, Nathan wrote: > On Feb 23, 1:15 pm, Mark Murphy wrote: > > > It's not an Android Market problem per se. It's a Google Checkout > > probl

Re: [android-developers] google news search api with advertisment-legal?

2011-02-23 Thread TreKing
On Mon, Feb 21, 2011 at 4:03 PM, nivedita arora wrote: > i was wondering if i use google news search api and have > advertisments in my app .is that illegal? > What do the terms of the API say? > or is it considered commercial use which is not allowed by google ? > What does your lawyer sa

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread TreKing
On Wed, Feb 23, 2011 at 4:58 PM, Greg Donald wrote: > Even if you're developing an everlasting app? There's no such thing. - TreKing - Chicago tr

[android-developers] Re: Playing sound with mediaplayer

2011-02-23 Thread vnv
On Feb 23, 11:40 pm, Marcin Orlowski wrote: > > Am I missing something? > > You miss prepare() before calling > start()http://developer.android.com/reference/android/media/MediaPlayer.html... > I've tried like this MediaPlayer mp = MediaPlayer.create(Calibrate.this, R.ra

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread String
On Wednesday, February 23, 2011 4:10:27 PM UTC, Mark Murphy (a Commons Guy) wrote: While I'm not a big fan of using SharedPreferences for things other > than user settings -- too many people use this when a database would > be a better answer > Not meaning to distract this thread from its main, u

Re: [android-developers] @override question

2011-02-23 Thread Scott Davies
Hi, As mentioned by Marcin and Kevin, this is to notify the compiler that you are over-riding a method from it's base/parent/super class. The @ syntax is Java's (5.x and later, if I'm not mistaken), method of denoting meta data markup attribute, similar to the [ ] syntax in C#. If you're looking

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Greg Donald
On Wed, Feb 23, 2011 at 4:55 PM, Mark Murphy wrote: > True, but I was hoping the OP would eventually realize that having an > everlasting service is not the best of ideas. :-) Even if you're developing an everlasting app? -- Greg Donald destiney.com | gregdonald.com -- You received this mess

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Mark Murphy
True, but I was hoping the OP would eventually realize that having an everlasting service is not the best of ideas. :-) On Wed, Feb 23, 2011 at 5:52 PM, Marcin Orlowski wrote: > On 23 February 2011 23:48, Mark Murphy wrote: >> On Wed, Feb 23, 2011 at 5:35 PM, pedramz wrote: >>> Basically I need

[android-developers] Re: Service Lifecycle

2011-02-23 Thread Jake Colman
> "KV" == Kostya Vasilyev writes: KV> Based on your code - is your service class in a different package from the KV> widget class? No. Everything is in the same package. Everything about this package was working and I was able to update the widget. The only change I made was recode

Re: [android-developers] Re: NullPointerException when add resource file (styles.xml)

2011-02-23 Thread TreKing
On Wed, Feb 23, 2011 at 1:47 AM, morrizon wrote: > *E/AndroidRuntime( 253): Caused by: java.lang.NullPointerException > E/AndroidRuntime( 253):at > com.faiters.myapp.Home.onCreate(Home.java: 36) > * > When I import android.content.ContentResolver the app work. Now if I delete > that imp

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Marcin Orlowski
On 23 February 2011 23:48, Mark Murphy wrote: > On Wed, Feb 23, 2011 at 5:35 PM, pedramz wrote: >> Basically I need a way for the user to inform my app to start it's new >> activities while it's still in background. > > Use an activity or an app widget. Or on-going notification -- Regards, Mar

Re: [android-developers] customizing AOSP settings app

2011-02-23 Thread Mark Murphy
Please visit http://source.android.com and find a more appropriate Google Group there, such as [android-porting]. On Wed, Feb 23, 2011 at 6:05 AM, geek (avar) wrote: > hello, im trying to build aosp for my devkit, and i'd like to know where > should i look to for > 1 - to changing font size of te

Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 5:35 PM, pedramz wrote: > Basically I need a way for the user to inform my app to start it's new > activities while it's still in background. Use an activity or an app widget. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://com

Re: [android-developers] Regarding Home Screen

2011-02-23 Thread Mark Murphy
https://github.com/fry15/uk.co.jasonfry.android.tools has a class for that, though I have not tried it personally. On Wed, Feb 23, 2011 at 1:32 AM, yogendra G wrote: > > Hi, > > I Have an app and i want to navigate screen using tht dots below which is > present at homescreen in devices...want cod

Re: [android-developers] @override question

2011-02-23 Thread Marcin Orlowski
On 23 February 2011 01:13, Jeraldo wrote: > hi, im just starting to learn android development. i have dont have > much background with java. my question is what does the "@override" > mean when developing android apps? http://tinyurl.com/ycq4gy2 -- Regards, Marcin -- You received this message

Re: [android-developers] Re: Writing code for multiple APIs

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 5:42 PM, dashman wrote: > well the static method won't solve the problem i have..i can't > refer to the method directly because i'm compiling for API4. Then don't compile for API4. Compile for the highest Android SDK you are going to use from an API standpoint. Use minSdkV

Re: [android-developers] Re: out of memory error in android

2011-02-23 Thread TreKing
On Wed, Feb 23, 2011 at 2:30 AM, tonytony wrote: > My problem is that when using KSOAP2, I can connect to ASP.net web service > OK, but I only get 'null' as return values. > What does this have to do with Android or the original question? > If your web service is working OK, can you please let

Re: [android-developers] @override question

2011-02-23 Thread Kevin Brooks
"@override" tells the compiler that you are overriding a method from the parent class. This allows to customize the functionality of that method to your own needs. Some methods you are required to override by the design of the parent class. On Tue, Feb 22, 2011 at 6:13 PM, Jeraldo wrote: > hi,

Re: [android-developers] Is there way that can catch KeyEvent in a service.

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 2:16 AM, george.liu wrote: >   I want launch my app when i push a physics button. it like whether > in any app windows  when push volume up button , phone show a  volume > up dialog.  Is there anyone here who can help me? That is not possible, sorry. A couple of the button

[android-developers] Re: Writing code for multiple APIs

2011-02-23 Thread dashman
well the static method won't solve the problem i have..i can't refer to the method directly because i'm compiling for API4. On Feb 23, 4:07 pm, Mark Murphy wrote: > On Wed, Feb 23, 2011 at 3:58 PM, dashman wrote: > > Is it possible to write code for a certain API (e.g. 4) > > > and at runtime d

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Kostya Vasilyev
Based on your code - is your service class in a different package from the widget class? 24.02.2011 1:40 пользователь "Jake Colman" написал: >> "MM" == Mark Murphy writes: > > MM> On Wed, Feb 23, 2011 at 5:06 PM, Jake Colman wrote: > >> So although a service would work from the perspective o

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 5:35 PM, Jake Colman wrote: > Is there a difference in how I find my appwidget for updating because I > switched to an IntentService? No. > In my onHandleIntent() method I am creating my RemoteViws object and > updating the appwidget as follows: > > RemoteViews remoteView

Re: [android-developers] how to manually update to android 2.3.3

2011-02-23 Thread Marcin Orlowski
On 23 February 2011 11:54, tarunmalhotra wrote: > Is there ia dowload link to manually update to 2.3.3 Talk about SDK or device? If the latter, there's no generic 2.3.3 for all. -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups "Android Developers

Re: [android-developers] how to manually update to android 2.3.3

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 5:54 AM, tarunmalhotra wrote: > Is there ia dowload link to manually update to 2.3.3 Manually update *what* to 2.3.3? If you mean your SDK, use the SDK and AVD Manager. If you mean your device, talk to your carrier or device manufacturer. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Kostya Vasilyev
Jake, Some ideas on debugging: - Verify the ComponentName for the widget that you use in the service. As in, set a breakpoint and look at the value in addition to logging. Create a "reference" ComponentName in the simpliest way possible, like in a simple widget that does its updates in onUpdate.

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Mark Murphy
On Wed, Feb 23, 2011 at 5:30 PM, Jake Colman wrote: > Any suggestion/pointers on how I can debug what's going on? LogCat, breakpoints, the usual suspects. > There is no issue > with the service being destroyed before all my work is done? Extremely unlikely. > It's > legitimate to do all my wor

Re: [android-developers] Playing sound with mediaplayer

2011-02-23 Thread Marcin Orlowski
> Am I missing something? You miss prepare() before calling start() http://developer.android.com/reference/android/media/MediaPlayer.html#prepare%28%29 -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

Re: [android-developers] Re: Service Lifecycle

2011-02-23 Thread Mark Murphy
Oh, yeah, I just noticed it was using a service and linked to it, thinking it might be a simpler example than the other one. On Wed, Feb 23, 2011 at 5:26 PM, Kostya Vasilyev wrote: > 24.02.2011 1:12, Mark Murphy пишет: > > It should be. It certainly works elsewhere. > > http://developer.android.c

[android-developers] Re: Service Lifecycle

2011-02-23 Thread Jake Colman
> "MM" == Mark Murphy writes: MM> On Wed, Feb 23, 2011 at 5:06 PM, Jake Colman wrote: >> So although a service would work from the perspective of off-loading >> work from an appwidget, it's still doing it off-loaded work in the same >> thread?  So in what sense is it off-loaded f

[android-developers] android Networking.

2011-02-23 Thread naresh maharaja
Hello, With refrence to OSI model,how android mobile phone work according to communication protocol with resecpet to layer...can any body have detail or idea to get that information. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Regarding setting custom highlight color for gridview

2011-02-23 Thread twinkle sachdeva
Hi all, I am using grid view widget,which on selection shows default orange color of android on selection. My requirement is to show another color which will be shown till the time item is in focus. I cannot change the background of gridview, neither changing the background of an item in gridvie

[android-developers] A question about "Failed to fetch URL https://dl-ssl.google.com/android/repository/re..."

2011-02-23 Thread thomas2004ch
Hi all, I use the Eclipse to develop Android programs. Yesterday after I upgrade the Android SDK and try to update the Installed Packages in Eclipse Android AVD Manager. But I got following error: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: Connection

  1   2   3   >