[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
As I said, this code works for 20,000 users, but not this one. If you understood Java object references, you would know that just because you assing an object, it's still the same object, so this.getApplicationContext() is the same as Context parentcontext; parentcontext = this; parentcontext.ge

[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
What's your point? On Jan 24, 3:23 pm, Mukesh Srivastav wrote: > Why not create a parentcontext and use this context for calling > getApplicationcontext(). > > like > > Context parentcontext; > > parentcontext = this; //must be the contrustor, pass the calling context > here. > > and try using pa

[android-developers] Encoder???

2012-01-23 Thread muhammad.ume...@hotmail.com
hi, Please anyone tell me that, which encoder i can use on onPreviewFrame to create a video, and i want to send this encoded video to network, please suggest me which encoder that android support. Thanks and Regards umer -- You received this message because you are subscribed to the Google G

Re: [android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Mukesh Srivastav
Why not create a parentcontext and use this context for calling getApplicationcontext(). like Context parentcontext; parentcontext = this; //must be the contrustor, pass the calling context here. and try using parentcontext.getApplicationcontext(); -- Warm Regards, *Mukesh Kumar*, Android Co

[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
To ellaborate, it's inside the doWakefulWork() method. On Jan 24, 3:16 pm, Zsolt Vasvari wrote: > In a Service...   Actually, it's WakefulIntentService, extending your > class. > > I only got a single report of this failure (I use ACRA) and it's in a > commonly executed code. > > On Jan 24, 8:34 

Re: [android-developers] Is Android developers website down?

2012-01-23 Thread Oli Wright
No issues here connecting using sky broadband or 3 mobile broadband in London. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send ema

[android-developers] Re: getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
In a Service... Actually, it's WakefulIntentService, extending your class. I only got a single report of this failure (I use ACRA) and it's in a commonly executed code. On Jan 24, 8:34 am, Mark Murphy wrote: > Where are you executing this statement? > > > > > > On Mon, Jan 23, 2012 at 6:41 PM,

[android-developers] Re: Starting with game development

2012-01-23 Thread Peter Webb
There are lots of examples on the web, but they generally of poor quality. Even the game demos in the SDK (eg Lunar Lander) have serious bugs. The book "Beginning Android Games" by Mario Zechner provides a very good introduction and supplies a 2D Game engine that actually works. http://www.amazon

Re: [android-developers] How to reload app without restarting emulator

2012-01-23 Thread Etienne
To reload an app without restarting emulator, just uninstall the app on the emulator, then in Eclipse choose to run the application. This will reinstall the application and run the latest version of your app on the current emulator. This is the fastest process of reloading an app that I have

Re: [android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread for android
I was able to figure out a way to achieve my requirement of having a password entered whenever my app has been triggered from another application.Basically extend this class except for my lancher activity. public abstract class BaseActivity_old extends Activity { boolean isCreated = false; prote

Re: [android-developers] Re: How can use node.js in android

2012-01-23 Thread Mukesh Srivastav
Instead of using Android native SDK, you need to switch to PhoneGap for Android that helps. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Jan 24, 2012 at 8:15 AM, Kristopher Micinski wrote: > Right, which is why I point out that, if you're developing a

Re: [android-developers] Unable to open my own apk

2012-01-23 Thread Mukesh Srivastav
Hi There, Please follow the below steps to find out the version of your phone. 1.Go to Settings 2. Scroll down till the end of the Settings, there you will find 'About phone'-- TAP That 'About Phone' There you will find the Android Version. check it and build the apk according to that version

Re: [android-developers] Re: How to set the preferred APN through code?

2012-01-23 Thread Putti Me
Thanks Sayed for the sample code. But unfortunately even that didn't work. The 'insert' i.e. the line: getContentResolver().insert(*PREFERRED_CONTENT_URI*, values); always returns null. I'm using 2.3.3. Looks like

Re: [android-developers] Starting with game development

2012-01-23 Thread Kristopher Micinski
This group gets a near carbon copy of this email about once every five days, I'm starting to wonder if someone has a clever email generation algorithm that asks the same question in a variety of ways.. :-). So search "beginning android game development" and I think you'll find probably a hundred t

Re: [android-developers] Re: How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Right, which is why I point out that, if you're developing a web app, and running node.js, this isn't really the place to be asking those questions. If he asks technical questions about how, for example, node.js (and javascript in general) can interact with a WebView, this would be appropriate, bu

[android-developers] Re: How can use node.js in android

2012-01-23 Thread Kumar Bibek
When he says node.js, he probably meant an web app. And for that, you will need to do a lot more. On Jan 24, 7:01 am, Kristopher Micinski wrote: > Didn't I say that: >   "If you are writing a web app which will run on Android, this is > more applicable," > > I guess you could argue that there is

Re: [android-developers] Spinner itemselectedlistener not working after extending ArrayAdapter

2012-01-23 Thread Kumar Bibek
You are probably setting/un-setting the listener somewhere else as well in your code. May be in the on pause method. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Jan 24, 2012 at 7:54 AM, James Black wrote: > In the onCreate method I define th

[android-developers] Spinner itemselectedlistener not working after extending ArrayAdapter

2012-01-23 Thread James Black
In the onCreate method I define this: userNameSpinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView parentView, View selectedItemView, int position, long id) { Log.i(TAG, position); }

Re: [android-developers] How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Didn't I say that: "If you are writing a web app which will run on Android, this is more applicable," I guess you could argue that there is a difference between a web app and an app that runs in browser on the device, But I don't think it's that great of one.. kris On Mon, Jan 23, 2012 at 8:47

Re: [android-developers] How can use node.js in android

2012-01-23 Thread John Coryat
He might be asking if he can use node.js within a webview... That would be applicable to this group. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Swipe controls

2012-01-23 Thread HairyPlotter
 Heres a bit of the code that manages the movement.. what do i need to do to it if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) {             if (mDirection != NORTH) {                 mNextDirection = SOUTH;             }             return (true);         } On Jan 23, 4:54 pm, HairyPlotter wrote: >

Re: [android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Kristopher Micinski
I would agree with that, there are other uses as well: phones sitting in a store, privacy or other filters, etc., kris On Mon, Jan 23, 2012 at 7:38 PM, Zsolt Vasvari wrote: > I assume the real requirement is prevent employees with messing with > the phone's settings. > > IMO, this should probabl

[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Zsolt Vasvari
I assume the real requirement is prevent employees with messing with the phone's settings. IMO, this should probably a part of the android.app.admin package. Seems like a common and reasonable thing to restrict. On Jan 24, 8:18 am, Chris Mawata wrote: > Actually my employer told me to create an

Re: [android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS

2012-01-23 Thread Mark Murphy
You cannot register for ACTION_BATTERY_CHANGED from the manifest. It has to be via registerReceiver() in Java code. On Mon, Jan 23, 2012 at 5:21 PM, SimonP wrote: > No idea but I'm also looking for a solution, I'm using a nearly > identical bit of code to you and getting the same error. > > The r

Re: [android-developers] "Editor Framework" in android?

2012-01-23 Thread Mark Murphy
No, sorry, there is no equivalent of GWT's editor framework built into Android. On Mon, Jan 23, 2012 at 3:01 PM, Elhanan Maayan wrote: > hi.. > > while i'm new to android development i just finishing the notepad tutorial > (v3) and form what i can tell there is a lot of "DTO" boiler plate code >

Re: [android-developers] Is Android developers website down?

2012-01-23 Thread Mark Murphy
I was having some odd DNS resolution issues that seemed to be tied to Googly domains a little bit ago. Otherwise, I haven't had any hiccups accessing the site. On Mon, Jan 23, 2012 at 8:54 AM, hooman os wrote: > Hi Guys > > I am from the UK and trying to access android developers website. But I k

Re: [android-developers] getApplicationContext() returns null?

2012-01-23 Thread Mark Murphy
Where are you executing this statement? On Mon, Jan 23, 2012 at 6:41 PM, Zsolt Vasvari wrote: > Has anybody seen this happen? > > I have the following line in my code: > > XmlResourceParser xml = > getAppplicationContext().getResources().getXml(R.xml.database_tables); > > Somebody reported a NPE

Re: [android-developers] Re: Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 6:50 PM, Bret Foreman wrote: > I made an exact copy of the project under a new name, did a rebuild, > and the ClassNotFoundException went away. Chalk it up to another weird > artifact of the Android build system. I think the California Raisins were trying to stage a breako

[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Chris Mawata
Actually my employer told me to create an android app that prevents other apps from blocking access to the settings menus. Do you see this couldn't possible work? There are shared aspects of the framework that no one app should have hegemony over. On Jan 23, 1:35 pm, Yar Lag wrote: > My employer

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
I made an exact copy of the project under a new name, did a rebuild, and the ClassNotFoundException went away. Chalk it up to another weird artifact of the Android build system. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] getApplicationContext() returns null?

2012-01-23 Thread Zsolt Vasvari
Has anybody seen this happen? I have the following line in my code: XmlResourceParser xml = getAppplicationContext().getResources().getXml(R.xml.database_tables); Somebody reported a NPE on that line, so it can either be getAppplicationContext() or getResources() returning a null. The same lin

Re: [android-developers] How can use node.js in android

2012-01-23 Thread Kristopher Micinski
Are you writing an App? If this is the case, then you *can't* use node.js, because node.js is written to run on browsers, it's Javascript, it's not Java, and it doesn't fit within the framework. If you are writing a web app which will run on Android, this is more applicable, but this is not the ri

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
Here's the exception I'm getting: 01-23 15:11:07.436: E/ AndroidRuntime(5677): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sensor2cloud.raisin/ com.sensor2cloud.raisin.RaisinMainActivity}: java.lang.ClassNotFoundException: com.sensor2cloud.raisin.RaisinMainActivity

[android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS

2012-01-23 Thread SimonP
No idea but I'm also looking for a solution, I'm using a nearly identical bit of code to you and getting the same error. The really weird thing was I changed a load of code to see if I could get an event from just the battery level changing instead. I used the following in the manifest:        

[android-developers] Is Android developers website down?

2012-01-23 Thread hooman os
Hi Guys I am from the UK and trying to access android developers website. But I keep getting server timeout. (I can access internet. ) Do you guys have any news if the server is on maintenance? Hooman -- You received this message because you are subscribed to the Google Groups "Android Develop

[android-developers] "Editor Framework" in android?

2012-01-23 Thread Elhanan Maayan
hi.. while i'm new to android development i just finishing the notepad tutorial (v3) and form what i can tell there is a lot of "DTO" boiler plate code going around (in case of the bundle save and bundle load in instance state management. coming from gwt's world, i'm got to know gwt's editor f

[android-developers] How can use node.js in android

2012-01-23 Thread jose daniel cardona
Hi everybody, i'm started in the world of the android development and I've run into a problem: I need to use node.js in the mobile device, the architecture like as P2P, I would like to know experiences of this kind, feasibility, and if possible some success or a working sample of these technologies

[android-developers] Problem with my C2DM account

2012-01-23 Thread shmulik-sharon
I have signed up for C2DM 4 days ago, and I get an aprroval with the account shmulikc...@gmail.com when I try to get the authentication token I get 403 error (but when I use my regular gmail account I get a respond) can anybody help me? (I tried to sign up again but the problem wasn't solved) --

[android-developers] MP3Decoder.cpp vs SoftMp3.cpp

2012-01-23 Thread tejas
I was interested in finding out the major differences from the design point of view between the new and the old mp3 decoder. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroup

[android-developers] Swipe controls

2012-01-23 Thread HairyPlotter
I wanted to add swipe controls to my app. Like if you swipe up on the screen it will move the character up. I already have it set up with the Dpad controls but i wanted to make this a secondary option. Where can i find this action. I know dpad controls are in the key event class, where are swipe

[android-developers] Unable to open my own apk

2012-01-23 Thread Rémy CASTALDI
Hi everybody I'm new on this forum (and sorry for my frenchy english) I'm an Android developer and I have no problem to produce apk for all phones excepted for the XPERIA X10 Mini pro. With this device I always obtain : "Problem during the kit analysis" (my translation of the french message). When

[android-developers] Hi

2012-01-23 Thread Er.Swapnil Malviya
Presently i am using iball tablet slide after i am trying to root then the root unsubscribed not install properly lot of area and application tried but result are same but thats not a mazer problem to me, after that my tab volume totally muted but the device notification shown volume level not

Re: [android-developers] Re: Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 5:38 PM, Bret Foreman wrote: >> > Something in the Activity constructor for API 10 is barfing in Android >> > 2.2.2, which I guess is no real surprise. >> >> It's surprising to me. What class is not being found? > > The MainActivity class is not being found. In other words,

[android-developers] Re: Using multiple API versions

2012-01-23 Thread Bret Foreman
On Jan 23, 2:20 pm, Mark Murphy wrote: > On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman wrote: > > But if I build with API 10 on run on Android 2.2.2 then my > > MainActivity throws a ClassNotFoundException. > > > Something in the Activity constructor for API 10 is barfing in Android > > 2.2.2,

Re: [android-developers] Using multiple API versions

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 5:09 PM, Bret Foreman wrote: > But if I build with API 10 on run on Android 2.2.2 then my > MainActivity throws a ClassNotFoundException. > > Something in the Activity constructor for API 10 is barfing in Android > 2.2.2, which I guess is no real surprise. It's surprising

Re: [android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Kostya Vasilyev
The requirement is to protect Android *system settings*, not those of a third-party application. What a great idea :) -- Kostya 24 января 2012 г. 2:01 пользователь Bret Foreman написал: > I would put the settings you want to protect in an encrypted file on > the phone. Then your IT department c

[android-developers] Using multiple API versions

2012-01-23 Thread Bret Foreman
I've got a library built by another developer. I have the source, but I'd rather not hack it up in case he releases any updates that might over-write my changes. But he's got some problematic code in it. Namely: public BluetoothSocket createSocket(final BluetoothDevice device)

Re: [android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Kristopher Micinski
There seem to be a long list of questions lately that involve things like "I'd like to change a piece of the platform, how can I do it?" In general, it's not possible to do this. This is like say, "on windows, how do I make it impossible to click on the start menu?" or "In firefox, how can I stop

[android-developers] Re: Possible to protect settings menu with an android app?

2012-01-23 Thread Bret Foreman
I would put the settings you want to protect in an encrypted file on the phone. Then your IT department can generate and distribute a new file when they want to update everyone's settings. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

Re: [android-developers] Want help regarding videos security in android application

2012-01-23 Thread James Black
If he stores it on the SD card can't anyone get to it? On Jan 23, 2012 6:56 AM, "Mark Murphy" wrote: > On Sun, Jan 22, 2012 at 11:47 PM, Harshal Patil > wrote: > > I am developing an application for android froyo tablet. I wish to > > store approx 15GB video on inbuilt memory of tablet with some

[android-developers] Re: Custom volume buttons

2012-01-23 Thread Oliviu Vais
Done that :) On Jan 23, 10:20 pm, TreKing wrote: > On Sat, Jan 21, 2012 at 2:49 AM, Oliviu Vais wrote: > > I cannot get them to work. Can anyone please help? > > Want to elaborate on "cannot get them to > work"?http://www.catb.org/~esr/faqs/smart-questions.html > > -

[android-developers] Re: Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Brad Williams
I have used close up faces as well as a few group shots taken at the office and none seem to be working. I have tried my own face as well with the front camera and no luck there either. Whether its an image from the internet, my gallery, or one on the fly with my phones camera - all return empty wh

Re: [android-developers] when I log into my developer account to publish it's asking me to register all over again

2012-01-23 Thread TreKing
http://support.google.com/androidmarket/?hl=en - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message be

Re: [android-developers] Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Mark Murphy
Have you tried using an actual face? On Mon, Jan 23, 2012 at 3:04 PM, Brad Williams wrote: > 0 down vote favorite > share [fb] share [tw] > > > I am hoping that someone might be able to shed some light on this > situation: > > I am using the built in FaceDetector class through Android on three >

Re: [android-developers] Custom volume buttons

2012-01-23 Thread TreKing
On Sat, Jan 21, 2012 at 2:49 AM, Oliviu Vais wrote: > I cannot get them to work. Can anyone please help? Want to elaborate on "cannot get them to work"? http://www.catb.org/~esr/faqs/smart-questions.html --

[android-developers] Android FaceDetector issue when using 4.0 Platform

2012-01-23 Thread Brad Williams
0 down vote favorite share [fb] share [tw] I am hoping that someone might be able to shed some light on this situation: I am using the built in FaceDetector class through Android on three different devices and I am getting 2 different results, hence the title of a problem with the 4.0 platform.

[android-developers] Re: anybody looking for android trainer

2012-01-23 Thread sparky
Offering or soliciting work is off-topic for android-developers. Would you please consider moving it to android-discuss? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.c

[android-developers] How to keep -pre-build across "android update project"?

2012-01-23 Thread petter
How to keep -pre-build across "android update project"? It seems like buld.xml has a section where one can uncomment and customize the -pre-build and other targets: If I change this to: This is pre-build This is pre-compile This is post-compile

Re: [android-developers] When to use the 'App Engine Connected Android' wizard?

2012-01-23 Thread Tom
I need general purpose, client initiated communications with the server. I was attracted to the wizard because I'm looking for simplicity - this is my first Android app. I don't see why I would need C2DM, so I'm inclined to try and remove it from the generated projects. Platform independence

[android-developers] Re: How to set the preferred APN through code?

2012-01-23 Thread Tom
Note that, as of Android 4.0, this is no longer possible. The permission still exists, but any attempt to write the APN will fail. Presumably the carriers put pressure on Google to block this capability... too bad. -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Mark Murphy
It is not even possible *with* rooting. It is only possible by rebuilding the firmware with a custom implementation of Settings that incorporates your desired feature. On Mon, Jan 23, 2012 at 1:35 PM, Yar Lag wrote: > My employer has told me to create an android app to do the following: > > The a

[android-developers] Possible to protect settings menu with an android app?

2012-01-23 Thread Yar Lag
My employer has told me to create an android app to do the following: The ability to password protect specific submenus in the Settings menu (i.e. specifically Privacy, Applications, and Location & Security). Is this possible without rooting? -- You received this message because you are subscri

Re: [android-developers] Adding Four fragments on a layout cause crash during orientation change on Android honeycomb

2012-01-23 Thread Kumar Bibek
A little more stack trace would give more clues . But seems like its complaining of the fourth view / fragment not having an id where its not able to save the state after orientation change. Sent from my Nexus S On Jan 23, 2012 11:17 PM, "kiriri" wrote: > When I add four fragments in a same con

[android-developers] ad network which makes quick payment

2012-01-23 Thread emre önal
Hi Do you know any reliable ad network which make payments faster. Admob payments come 2 months later, mobclix says 3 months. It is difficult to make a quick try for different networks. My ad incomes are not bad but novadays it would be good to get somethings earlier for me :) Thanks for help.

Re: [android-developers] UI requirement

2012-01-23 Thread Kumar Bibek
A list view would also suffice as long as you don't need to expand or collapse . Sent from my Nexus S On Jan 23, 2012 11:18 PM, "James Black" wrote: > How about making an expandable list then. > On Jan 23, 2012 3:59 AM, "Rachna Sharma" wrote: > >> Hi Group, >> >> I have UI requirement shown bel

Re: [android-developers] UI requirement

2012-01-23 Thread James Black
How about making an expandable list then. On Jan 23, 2012 3:59 AM, "Rachna Sharma" wrote: > Hi Group, > > I have UI requirement shown below: > > |---| > |Header-1 | > | Checkbox1[]| > | Checkbox2[]| > | Checkbox3[]|

[android-developers] Adding Four fragments on a layout cause crash during orientation change on Android honeycomb

2012-01-23 Thread kiriri
When I add four fragments in a same container and I change the orientation the app crashes. When I test with only three fragments, no crash appears regardless of the three selected fragments from four. The error message is : java.lang.IllegalArgumentException: No view found for id ... for fragmen

Re: [android-developers] Re: Unable to execute Bluetooth HDP Demo

2012-01-23 Thread vijay Badawadagi
HI Jorge, thanks that solves the problem, now i can see the data from the Nonin. Regards Vijay On Mon, Jan 23, 2012 at 3:13 AM, jfernandez < jorge.fernandez.gonza...@gmail.com> wrote: > Hi vijay, > > I'm seeing that you obtain the following error: > > onHealthDeviceConnectionResult: D-Bus > err

[android-developers] Re: anybody looking for android trainer

2012-01-23 Thread Oliviu Vais
I could also use one... On Jan 23, 10:26 am, "T.M.S.VIJAYKUMARR" wrote: > Hi, > > anybody looking for android trainer? > > -- > > - > Thanks & Regards, > T.M.S.VIJAYKUMARR > BloG:http://iamvijayakumar.blogspot.com/ -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] anybody looking for android trainer

2012-01-23 Thread νιяιη¢нソ
i am the one badly in need of ithelp me please. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developer

Re: [android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 11:24 AM, uday kiran jandhyala wrote: > So far in Android, there is no way we could query WindowManager to > retrieve a list of titles of all such "Windows"... > Is this statement right? Correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/c

Re: [android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread Oli Wright
Maybe he means that really useful feature where it'll show you the last character typed into a password field so you can check you haven't fat fingered it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] FragmentTransaction commitAllowingStateLoss problem

2012-01-23 Thread Nick Parker
Hi Mark, I pieced together an example to post and eventually was able to reproduce the behavior I was seeing. I had a nested layout and within my layout I was including the initial list fragment. When I removed the fragment entry from the layout markup and subsequently added it to the contai

[android-developers] Re: find out which activity resumed/started my activity?

2012-01-23 Thread uday kiran jandhyala
Hi, Am really not sure if its possible, but just trying to think out loud.. Is my understanding correct that WindowManager component in Android platform maintains a list of all 'Windows' created thus far by different Applications' Activities (Including those of decorations like StatusManager etc.)

Re: [android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:22 AM, genxsol wrote: > is it possible to force the keyboard not to display pressed key popup? What is "pressed key popup"? - TreKing

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread Mark Murphy
On Mon, Jan 23, 2012 at 10:13 AM, giles ian wrote: > Thanks for the reply. And there is such attribute and the use of that is to > remove the default radio button image. Ah, it's just not in the right spot in the documentation. My apologies. -- Mark Murphy (a Commons Guy) http://commonsware.com

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
Thanks On Mon, Jan 23, 2012 at 8:45 PM, TreKing wrote: > On Mon, Jan 23, 2012 at 9:12 AM, Hitendrasinh Gohil < > hitendrasin...@gmail.com> wrote: > >> Because first time i have upload it to market in debug mode.(Forget to >> change it for release mode). > > > Oh, you are screwed. I believe I've

[android-developers] Scroll View

2012-01-23 Thread Oliviu Vais
I am trying to scroll a HorizontalScrollView by 2 buttons, one left, one right. What am i doing wrong? Which one to choose? sw - scroll view public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch(v.getId()){ case

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 9:12 AM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > Because first time i have upload it to market in debug mode.(Forget to > change it for release mode). Oh, you are screwed. I believe I've heard of the Market allowing this early on when it shouldn't have (Go

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hi Mark, Thanks for the reply. And there is such attribute and the use of that is to remove the default radio button image. I also found the solution for the same newRadioButton.setButtonDrawable(android.R.id.empty); On Mon, Jan 23, 2012 at 7:56 PM, Mark Murphy wrote: > There is no android:b

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
I am sure for that. That's true that i am uploading debug version of an app.Because first time i have upload it to market in debug mode.(Forget to change it for release mode). " Because the error would indicate you're trying to upload the debug version of the app. I would re-export your app and r

RE: [android-developers] Unable to send text messages on some Android Phones using SmsManager

2012-01-23 Thread Admin
Abhijeet Tomar, I tried everything even with PendingIntent for Delivered, with no Intends, or with both of them and it still does not work :( Any other ideas? From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of abhijeet tomar Sent: Monday,

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 9:01 AM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > I am using the same certificate that used to signed the first app. Are you sure about that? Because the error would indicate you're trying to upload the debug version of the app. I would re-export your app a

Re: [android-developers] How to set the preferred APN through code?

2012-01-23 Thread Sayed Atif Ali
You need to set the MCC )(Mobile Country Code) and MNC (Mobile Network Code) values too in your code to set and display the APN's on Android UI. Try the following code and see what happens: > > *private static* *final* Uri *PREFERRED_CONTENT_URI* = Uri.*parse*( > "content://telephony/carriers/pre

Re: [android-developers] widget stop working after force close in setting page

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:13 AM, dara kok wrote: > But from a user point of view, it is weird to have a widget on screen that > is not usable after a force stop. That's your opinion. IMO, if, as a user, you deliberately navigate to an app's detail's screen in the settings, click the "Force Stop

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
I am using the same certificate that used to signed the first app. On Mon, Jan 23, 2012 at 8:21 PM, TreKing wrote: > On Mon, Jan 23, 2012 at 8:41 AM, Hitendrasinh Gohil < > hitendrasin...@gmail.com> wrote: > >> But if i make a new certificate then i need to unpublish the previous >> version and

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:41 AM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > But if i make a new certificate then i need to unpublish the previous > version and then i can upload the apk as new version,right? > No. > I want to update my existing app,so what should i do? > Use the s

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
But if i make a new certificate then i need to unpublish the previous version and then i can upload the apk as new version,right? I want to update my existing app,so what should i do? On Mon, Jan 23, 2012 at 8:02 PM, TreKing wrote: > On Mon, Jan 23, 2012 at 8:28 AM, Hitendrasinh Gohil < > hit

Re: [android-developers] Error while updating app to android market?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 8:28 AM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > how can i resolve this? Don't sign with the Debug Certificate, as the error clearly states. - TreKing

[android-developers] Error while updating app to android market?

2012-01-23 Thread Hitendrasinh Gohil
Hi, I want to upload new apk(updated version) for my app.But while uploading new apk to market i am getting the following error. "Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years." I have made the certificate for 25years an

Re: [android-developers] Java code for xml arrtibute

2012-01-23 Thread Mark Murphy
There is no android:button attribute on RadioButton. Simply delete it. On Mon, Jan 23, 2012 at 9:23 AM, giles ian wrote: > Hello, > > I have below code in xml. > >           android:layout_margin="5dip" >          android:layout_width="wrap_content" >          android:layout_height="wrap_content

[android-developers] Java code for xml arrtibute

2012-01-23 Thread giles ian
Hello, I have below code in xml. I need java code for highlighted text as I'm creating radio buttons programmatically. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.

[android-developers] how to hide softtkeyboard pressedkey popup?

2012-01-23 Thread genxsol
could anyone please help me to solve the problem below? I have set my edittext to accept passwords by android:password="true" problem is , when i press any key on softkeyboard, it displays the pressed key on popup as well. is it possible to force the keyboard not to display pressed key popup? Th

Re: [android-developers] widget stop working after force close in setting page

2012-01-23 Thread dara kok
Totally agree with what you said technically. But from a user point of view, it is weird to have a widget on screen that is not usable after a force stop. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] Re: Limit App Usage

2012-01-23 Thread Oli Wright
Before this gets over complicated, is it worth rolling back to the actual requirement here? Might be worth listing out a few things: 1. How many users you're talking about 2. What your distribution method is (i.e. there's no reason this has to be market distributed if it's an internal app right?

Re: [android-developers] Re: How to support Single Listener And Multiple Date-picker Dialog

2012-01-23 Thread skink
MOHIT SHARMA wrote: > Hi , > > what are u trying to say ? I already know that we have *DatePicker view in > onDateSet *. I am asking how use it .But from this view we cant get the id > of the DatePicker created in Activity :( > you have four references to four different DatePickerDialog instance

[android-developers] Re: How I use Web Services in android.?

2012-01-23 Thread Harpreet Singh
Actually the website is developed in .NET, they are going to provide me WebServices information. I studied regarding web services on internet and going to develop it using ksoap2, wsdl and whatever it needs. Sorry actually I am new to this stuff. Please do suggest whatever you like, like:: What con

Re: [android-developers] Best Practices: Which SDK should I choose for a new project?

2012-01-23 Thread TreKing
On Mon, Jan 23, 2012 at 4:12 AM, Paolo wrote: > For example: I have to develop an app that must be supported on > Android OS version from v2.1 to v4.0 (included). > Which target should I choose? > In general, use the latest SDK but set your "targetSDK" in the manifest to the version you are prim

Re: [android-developers] webview with transparent background

2012-01-23 Thread TreKing
On Sun, Jan 22, 2012 at 8:41 AM, أحمد العصيمي wrote: > I have webview in my application and I want to make the background > transparent color .. > > Can anybody help please? > What have you tried? -

[android-developers] Re: Unable to create AVD

2012-01-23 Thread Harpreet Singh
Have you updated the sdk from SDK Manager? On Jan 21, 8:39 pm, Muhammad Shoaib wrote: > Hi everyone.. > I m new to android development world > I set all essential elements jdk,eclipse etc but when I want to create AVD > it gives me  a message "unable to find userdata.img" > plz guide me --

  1   2   3   >