[android-developers] Re: Enabling root permissions/functioanlities from the Android application or a folder in Android filesystem with default Permission

2011-07-28 Thread s.rawat
Hi Chris , Thanks for the reply it worked pretty well. The /data folder in the android file system has the default application folder where the application specific read write happens they generally looks like this : */data/data/my.package.name/app_my custom folder/* **

Re: [android-developers] Re: HTTP Post of Image

2011-07-28 Thread Sivasankar K
In your manifest file add permissions to camera and for uploading internet permission as follows uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CAMERA / On Thu, Jul 28, 2011 at 11:07 AM, perumal316 perumal...@gmail.com wrote: Hi Siva,

[android-developers] Re: Regarding User Authentication

2011-07-28 Thread nirm
Hello ListNameValuePair httpparams = new ArrayListNameValuePair(); httpparams .add(new BasicNameValuePair(user, androidUser)); httpparams .add(new BasicNameValuePair(pass, androidpassword)); URI uri = URIUtils.createURI(http, yourUrl, -1, / youractionOrPage, URLEncodedUtils.format(httpparams

[android-developers] Comments in market place

2011-07-28 Thread Simon Platten
Is there anyway to remove spam comments from your applications? I have several applications on the market place, today someone has posted a comment saying the application contains spyware, which is complete rubbish and not true, how can you prevent this kind of thing? -- Regards, Sy -- You

Re: [android-developers] Comments in market place

2011-07-28 Thread Kumar Bibek
No, you can't. You could probably mark that comment as spam, but just your vote doesn't count towards anything. I am not sure if Google cares about spammy comments. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Thu, Jul 28, 2011 at 12:08 PM, Simon

Re: [android-developers] Comments in market place

2011-07-28 Thread Nikolay Elenkov
On Thu, Jul 28, 2011 at 3:38 PM, Simon Platten simonaplat...@googlemail.com wrote: Is there anyway to remove spam comments from your applications? No. I have several applications on the market place, today someone has posted a comment saying the application contains spyware, which is

[android-developers] LocationManager using Network provider returns stale locations

2011-07-28 Thread Davy
Hi, I have the following scenario t1 : sitting at home - wifi connected - location manager using network provider returns the correct location (home) t2 : I get in my car, use the location manager now with gps provider - returns correct locations throughout the trip (100km) t3 : arrive at work

Re: [android-developers] Re: google map marker

2011-07-28 Thread Raghav Sood
Android cannot give you an error of lines not supported. Did you try modifying the code to work with your project or did you just blindly copy paste? Did you change the variables and the XML files to the ones you have in your project? There are thousands of tutorials for this on the Internet.

[android-developers] Re: The emulator died when I execute ping in adb shell repeatly

2011-07-28 Thread nanhu
It seams hang at bufferReader.readLine() when read from InputStream On 7月28日, 上午9时19分, nanhu tianlifeixue...@gmail.com wrote: only when the ping execution failed,the problem can appear On 7月27日, 下午2时57分, nanhu tianlifeixue...@gmail.com wrote: when I execute ping -c 20 -i 0.2 -s 92 -W

[android-developers] Re: How to get web data into TextViews?

2011-07-28 Thread endyk
hello Droid, you can use this method to get return string from server private InputStream OpenHttpConnection(String urlString) throws IOException { InputStream in = null; int response = -1; URL url = new URL(urlString); URLConnection conn =

[android-developers] Date Picker using xml layout - problem in android app

2011-07-28 Thread Sivasankar K
i have some problems in using the date picker from xml layout. in my app when the user clicks a text view a custom dialog box opens. In the layout of the custom dialog box i am showing a date picker which i have place in my xml file. When it appears in the app i want a particular date to be

[android-developers]Proximity Alerts in LocationManager not working as expected.

2011-07-28 Thread deepak subramanian
Hi everyone, I have an application which needs to call a new screen if it comes within the proximity of a few locations. So I am using the addProximityAlerts() function as follows: But this does not work at all. My code is shown below *public void setupLocationMonitoring(Intent newIntent) {

Re: [android-developers]Proximity Alerts in LocationManager not working as expected.

2011-07-28 Thread Francisco Dalla Rosa soares
how many times do you intend to post the same question? 2011/7/28 deepak subramanian deepak.s...@gmail.com Hi everyone, I have an application which needs to call a new screen if it comes within the proximity of a few locations. So I am using the addProximityAlerts() function as follows: But

[android-developers] Game made with andengine has weird crashes.

2011-07-28 Thread Raghav Sood
Hi, I have made two versions of my desktop game on android using andengine. One uses a normal image background and the other has augmented reality as the background. The links to both the games are: https://market.android.com/details?id=com.raghavsood.speedball

[android-developers] Re: changing listview content in separate thread issue

2011-07-28 Thread Doug
On Jul 27, 7:07 am, Wall-E bashee...@gmail.com wrote: If anybody has any ideas on how to deal with this situation where the content of a listview is changing in another thread where I don't have access to the listview and need to notify the listview that the content has changed I'd appreciate

Re: [android-developers] retrieve an object from another activity back

2011-07-28 Thread Vinay Julme
try using bundle put it in intent and use startActivityForResults() method... On Wed, Jul 27, 2011 at 1:26 PM, torr eceooz...@gmail.com wrote: I have a class called BookmarksStruct and a ArrayListBokmarksStruct typed object called bookmarksarray. I want to pass the object and get back again

[android-developers] Call Background Service from Intent

2011-07-28 Thread Sivaprakash
Hi I have written an intent for Camera device, which will basically listen for snaps. If any new photo taken it will trigger my intent. I want to call a background service (which I have implemented already) from the intent to upload the file. How can bridge these two? Any samples or explanations

[android-developers] Re: Curious NPE

2011-07-28 Thread Doug
On Jul 27, 6:35 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Jul 28, 2011 at 3:35 AM, Doug beafd...@gmail.com wrote: On Jul 27, 1:25 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Jul 27, 2011 at 5:07 PM, Doug beafd...@gmail.com wrote: I see checked exceptions

[android-developers] Re: Proximity Alerts in LocationManager not working as expected.

2011-07-28 Thread deepak subramanian
Its a pending intent in action :) The first few times I posted it never went through. Also, the fact remains that I am really stuck on this issue and the documentation is patchy on the addProximityAlert function. My apologies if it bothered ya but it would be great if you could also advise me on

[android-developers] How can we keep a particular application on the top always

2011-07-28 Thread Ankit
Hi , I want to keep my application ( Application A ) on the top always in Android. Application A is not a full screen application, it is a floating window or dialog theme based application. The Application A can launch other application.\ from its own UI portion also other applications can be

[android-developers] Re: aapt problem!! /usr/lib/libz.so.1: no version information available

2011-07-28 Thread Doug
On Jul 26, 7:29 pm, sim yang vincentff...@gmail.com wrote: android-sdk-linux_x86/platform-tools/aapt: /usr/lib/libz.so.1: no version information available (required by /home/android/android-sdk- linux_x86/platform-tools/aapt) I am a new beginner in android. I am using a 64 centos in vmware

[android-developers] Re: Communication between android app and application on a remote server

2011-07-28 Thread work_84
Could anyone help me out with this? Thanks On Jul 25, 3:14 pm, work_84 work8...@gmail.com wrote: Hello, I am developing an Android application which has to send/receive data to/from a remote server securely. The Android application has to authenticate the server and the server needs to

[android-developers] Re: DategramSocket.receive returns after a long time

2011-07-28 Thread Indicator Veritatis
Have any relevant network bugs been reported for the device you are using? I have never seen such a failure on my G2. On Jul 27, 12:19 am, Heidi Zhou Nolan heidi.zhou.no...@qnective.com wrote: Yes, the application can receive the data well when the browser is not running. I wonder if I have

Re: [android-developers] Re: Update activity UI from service using observer pattern

2011-07-28 Thread Vadym Khondar
I finally figured out the issue. For those who might encounter the same not to lose their time. The answer on my initial question is really YES, observer pattern works in decribed scenario with local binding to service which runs AsyncTasks. My problem happened because ListView calls getView()

Re: [android-developers] Re: google map marker

2011-07-28 Thread arun kumar
Hello Raghav, you cannot understand my words. first analyze other words what they are saying and their situation right? then you tell your own suggestion. otherwise dont tell this kind of blindly copy paste words. On 7/28/11, Raghav Sood raghavs...@gmail.com wrote: Android cannot give you an

Re: [android-developers] Re: google map marker

2011-07-28 Thread Raghav Sood
I am not telling you to blindly copy paste. On the contrary I am telling you not to copy paste anything blindly. If you had bothered to read my mail properly you would have noticed that I asked you if you had changed the code given by Abhishek to be usable with your project. That is changed the

[android-developers] ADT PluginURL isn't work

2011-07-28 Thread Clement Yuan
https://dl-ssl.google.com/android/eclipse/ The eclipse plugins isn't available. How to install it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] Re: google map marker

2011-07-28 Thread arun kumar
ya i change his code for my purpose. but got some error. i tried another code and i got multiple markers in google map. Thanks for your suggestion RAGAV. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] ADT PluginURL isn't work

2011-07-28 Thread Raghav Sood
http://developer.android.com/sdk/eclipse-adt.html#installing Scroll down to Troubleshooting ADT Installation. Thanks On Thu, Jul 28, 2011 at 3:40 PM, Clement Yuan spyworl...@gmail.com wrote: https://dl-ssl.google.com/android/eclipse/ The eclipse plugins isn't available. How to install it?

Re: [android-developers] Re: Curious NPE

2011-07-28 Thread Nikolay Elenkov
On Thu, Jul 28, 2011 at 5:29 PM, Doug beafd...@gmail.com wrote: On Jul 27, 6:35 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Jul 28, 2011 at 3:35 AM, Doug beafd...@gmail.com wrote: On Jul 27, 1:25 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Jul 27, 2011 at

[android-developers] How to set style attribute for progress bar programmatically?

2011-07-28 Thread Shruthi Varma
Hi all, The default ProgressBar is white in color, which will not be visible on white background. So I needed a black progressbar in my application which I acheived by setting the style attribute (*progressBarStyleInverse*) in xml as given below: ProgressBar android:id=*@+id/progress_bar*

Re: [android-developers] How to set style attribute for progress bar programmatically?

2011-07-28 Thread Mark Murphy
You cannot change styles via Java code. You will need to examine what is defined in progressBarStyleInverse (e.g., background) and apply those individually. On Thu, Jul 28, 2011 at 7:03 AM, Shruthi Varma shruthi.tlis...@gmail.com wrote: Hi all, The default ProgressBar is white in color, which

[android-developers] Problem with Layout with WEIGHT and VISIBILITY params

2011-07-28 Thread Paolo
Hi there! I have a LinearLayout composed by 4 RelativeLayout. Every RelativeLayout has the weight params set in order to fill all the screen. All layouts are set as fill_parent for W and H. + LinearLayout + Relative 1 weight = 4 (visible) + Relative 2 weight = 5 (gone) + Relative 3

[android-developers] Regarding google Map

2011-07-28 Thread nageswara rao rajana
Hi, I developed an application, which consists if map activity.When i run application it displayed map along with marker, but after when i run application its showing only the marker of current location but no map(displaying only tiles). So, please tell me the problem its

Re: [android-developers] Regarding google Map

2011-07-28 Thread Mark Murphy
Either: -- you do not have the INTERNET permission, or -- your device or emulator does not have Internet access, or -- your API key is wrong On Thu, Jul 28, 2011 at 7:15 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi,        I developed an application, which consists if map

Re: [android-developers] Regarding google Map

2011-07-28 Thread nageswara rao rajana
Hi, But it displaying the marker on map along with address, is it possible without internet. -- 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

Re: [android-developers] Regarding google Map

2011-07-28 Thread Mark Murphy
You need Internet access to download map tiles. If you need offline maps, you cannot use Google Maps -- take a look at Open Street Map. On Thu, Jul 28, 2011 at 7:21 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi,       But it displaying the marker on map along with address, is it

[android-developers] Re: button id causes app to crash

2011-07-28 Thread DB12
I tried several different id names and none of them worked, but I just tried my app on a different computer and it worked fine with three button id's in the dialog (which is what crashed the emulator on my other one ). I will try to recreate the problem on the original computer and post the full

Re: [android-developers] Re: ninepatch tool

2011-07-28 Thread arun kumar
HI converted the png image into nine patch image...but when i using the different screen sizes the image becoming blurred...(in all screen sizes the image should appear same) Thankyou in advance arun -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Openssl for Android (libssl.so and libcrypto.so)

2011-07-28 Thread rickrvo
Hi, http://android.git.kernel.org/?p=platform/external/openssl.git;a=summary this is the project that I'm using to try to create a libssl.so compatible with Qt necessitas target:Android Since I can't find a already compiled libssl and libcrypto to direct download... and adb pulling those files

Re: [android-developers] Regarding google Map

2011-07-28 Thread nageswara rao rajana
thank you, i have internet permissions, my issue is map is loading but very very slow is there any process to speed up the rendering of the map(using map cache etc,.) in my app. if there is any other possibility,please let me know. Awaiting for your reply. On Thu, Jul 28, 2011 at 4:58

[android-developers] Disable Specific Cell Boadcasts

2011-07-28 Thread Alok Kulkarni
Hi, I wish to disable Cell Broadcasts for Advertisements in my app. The ISms AIDL has the disableCellBroadcast with messageIdentifier as the parameter. I went through the 3GPP TS 23.041 doc and also searched the net but could not find Message Identifier for Advertisements. Can anyone help me with

Re: [android-developers] Regarding google Map

2011-07-28 Thread Mark Murphy
On Thu, Jul 28, 2011 at 7:36 AM, nageswara rao rajana nagu.raj...@gmail.com wrote: thank you, i have internet permissions, my issue is map is loading but very very slow is there any process to speed up the rendering of the map(using map cache etc,.) in my app. Not really. -- Mark

Re: [android-developers] Re: ninepatch tool

2011-07-28 Thread Raghav Sood
Did you define the stretchable areas correctly? On Thu, Jul 28, 2011 at 5:01 PM, arun kumar arun.kata...@gmail.com wrote: HI converted the png image into nine patch image...but when i using the different screen sizes the image becoming blurred...(in all screen sizes the image should appear

[android-developers] Re: The emulator died when I execute ping in adb shell repeatly

2011-07-28 Thread String
On Wednesday, July 27, 2011 7:57:30 AM UTC+1, nanhu wrote: when I execute ping -c 20 -i 0.2 -s 92 -W 1 www.google.com in adb shell repeatly , after dozens of times My advice: don't do that. String -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Is the screensaver in source code Launcher?

2011-07-28 Thread String
FYI, what you're calling a screensaver is actually the *lock screen*, I believe. I've never looked for its source myself, but knowing that might help you find it. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Programmatically find best-matching resource at runtime

2011-07-28 Thread Petko Petkov
Is it possible to find the best-matching resource Programmatically at run-time ? For example I have some device that have screen properties that makes perfect match for layout-normal-mdpi. How can I, at run time, read that specification ? For example for my screen the result should be normal

Re: [android-developers] Listview with image, text and checkbox

2011-07-28 Thread Viral Brahmbhatt
I have done this with the help of a boolean arraylist maintaining the state of the check boxes On Wed, Jul 27, 2011 at 10:23 PM, Simon Platten simonaplat...@googlemail.com wrote: In a nutshell as was said by the last poster, the listview re-uses the same objects over and over for those items

Re: [android-developers] Comments in market place

2011-07-28 Thread Jim Graham
On Thu, Jul 28, 2011 at 03:46:32PM +0900, Nikolay Elenkov wrote: with the new Market client. Speaking of which, has anyone else had it force close on them? I got a notification that there were updates to install, and pressed that to go to the Market for the updates. Before I got that far (or

[android-developers] Alert dialog shown but not visible

2011-07-28 Thread Fina Perez
I have an activity where I start the built-in camera using onActivityResult. After taking a picture, I go back to my application and show a pop up asking to the user if he wants to take more pictures or no. It works fine, but after taking the picture, when I press the save button on the built-in

Re: [android-developers] Game made with andengine has weird crashes.

2011-07-28 Thread Jim Graham
On Thu, Jul 28, 2011 at 08:15:03AM -0500, Jim Graham wrote: This sounds *VERY* familiar (back button, home button, force close). Correction: when I saw it, it was back button, force close. No home button. Sorry, just remembered that. Still, might be related and/or the same problem. Later,

Re: [android-developers] Game made with andengine has weird crashes.

2011-07-28 Thread Jim Graham
On Thu, Jul 28, 2011 at 01:35:53PM +0530, Raghav Sood wrote: 2) Sometimes the game crashes on pressing the back button, opening it after pressing the home button. This sounds *VERY* familiar (back button, home button, force close). I saw this in one of the AndEngine demos. It's why I'd

Re: [android-developers] Game made with andengine has weird crashes.

2011-07-28 Thread Raghav Sood
Thanks Jim. the problem comes with three different button press opening app combinations but it never takes place every single time on a combination. 1) Back button pressed- Crash 2) Home button pressed. Another app opened. Open my app again-crash 3) Home button pressed. Open app - crash

Aw: Re: [android-developers] Re: ninepatch tool

2011-07-28 Thread Stefan S
Have you tried the Gimp Tool? http://www.gimp.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: button id causes app to crash

2011-07-28 Thread Adam Ratana
On Wednesday, July 27, 2011 9:11:08 AM UTC-4, DB12 wrote: the app crashes when you try to load it, i don't even get to press the button that opens my custom dialog On Jul 22, 11:41 am, DB12 daniel@gmail.com wrote: Howdy, I searched for about 30 minutes to see if anyone had the same

[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)

2011-07-28 Thread rickrvo
Nevermind step 3) and 4) I fixed it. If anyone gets this error follow http://www.openssl.org/news/secadv_20101116-2.txt and manually patch the ssl/t1_lib.c accordingly to your openssl version. Now the only thing that I can't overcome is the m and mm commands... :\ -- You received this

[android-developers] Error in http request. Status:0

2011-07-28 Thread Shruthi Varma
Hi All, I am getting this error (Error in http request. Status:0) when I am trying to load a url in webview in my application. Here is my code: webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(webUrl); webView.setWebChromeClient(new WebChromeClient() { public void

[android-developers] Static Initializers - interdependencies

2011-07-28 Thread RLScott
What happens if I have two classes, each with some static variables, and some initializer in one class references a static variable in another class? the beginning of class A: public static ByteBuffer audioInByteBuffer = ByteBuffer.allocateDirect(Main.bytesPerBlock); and in the beginning of

[android-developers] WebView text selection and persistent highlighting dilemma

2011-07-28 Thread IcedNet
Hello All, I am working on a non-trivial epub format book reader project in 3.1+, implementing it within a WebView. I am stymied at the text selection/highlight phase (luckily ? I have many more operations to polish up and implement). I can , of course highlight text and use the Clipboard

Re: [android-developers] Date Picker using xml layout - problem in android app

2011-07-28 Thread TreKing
On Thu, Jul 28, 2011 at 2:33 AM, Sivasankar K sivasanka...@greatinnovus.com wrote: When it appears in the app i want a particular date to be viewed, for example as 01 Jan 1950. Every time it opens it is showing the present date only. Are you setting the date to display ... ? In my dialog

[android-developers] Hard Crash (Reboot) in 3.2

2011-07-28 Thread Joshua Smith
Our app, which works fine in 3.1 and earlier, has started experiencing a hard crash that cause our XOOM to reboot. Usually, when this happens, the logs disappear, but in a couple of cases, we've managed to catch the exception. Anybody have a clue what these logs might be trying to tell us?

Re: [android-developers] Static Initializers - interdependencies

2011-07-28 Thread Daniel Drozdzewski
On 28 July 2011 15:51, RLScott fixthatpi...@yahoo.com wrote: What happens if I have two classes, each with some static variables, and some initializer in one class references a static variable in another class? the beginning of class A:  public static ByteBuffer audioInByteBuffer =

[android-developers] android gridview troubles

2011-07-28 Thread Vladimir Svydenko
Hi. have some troubles with GridView. after populate grid - height of each cell isn't actual Here google do not allow post this question (very long?) . See please on stackoverflow: http://stackoverflow.com/questions/6861445/android-gridview-troubles Can anybody help? -- You received this

[android-developers] Installation: Separated Client and Service

2011-07-28 Thread Glen Cook
Hello, We have an application that consists of a UI and a download-service that downloads content. In the future, we would like to: 1. Share our download-service with other applications 2. Offer various branded and customised versions of the client [Would appear as separate downloads in the

[android-developers] Re: Why up-scaling a smaller image into an ImageView does not work?

2011-07-28 Thread nadam
I think it's because you have android:layout_height=wrap_content. Try android:layout_height=200dp. On 23 Juli, 15:56, tiba till.baumgaer...@googlemail.com wrote: Hey all, does anybody have a clue what I do wrong? There's an image guy.png size 50x50 pixels and I'd like to get this up-scaled.

[android-developers] Re: Static Initializers - interdependencies

2011-07-28 Thread RLScott
On Jul 28, 10:26 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: No. The static initialisation of class A references class Main. This means that initialisation of class A will cause class Main to load, which in turn will run its initialisers. And what if class Main happens to

Re: [android-developers] Programmatically find best-matching resource at runtime

2011-07-28 Thread TreKing
On Thu, Jul 28, 2011 at 7:08 AM, Petko Petkov krstekr...@gmail.com wrote: Is it possible to find the best-matching resource Programmatically at run-time ? This is something the platform does for you if you lay your resources out right.

Re: [android-developers] Installation: Separated Client and Service

2011-07-28 Thread TreKing
On Thu, Jul 28, 2011 at 10:31 AM, Glen Cook glenandr...@googlemail.comwrote: Scenario 1: New User A new user (without the download-service) installs the client from the Android market. How do we seamlessly accomplish the install? (Avoid them installing each package separately) You don't -

[android-developers] getExternalFilesDir() on Acer Iconia Tab A500

2011-07-28 Thread Nikolay Elenkov
I am getting some error reports that indicate that getExternalFilesDir() is returning null on A500 with 3.1. Anyone having similar issues? From what I understand, external storage on the A500 is simulated, so it can't really be unmounted. Plus I'm checking this, and the environment is as below:

[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)

2011-07-28 Thread rickrvo
Nevermind step 3) and 4) I fixed it. If anyone gets this error follow http://www.openssl.org/news/secadv_20101116-2.txt and manually patch the ssl/t1_lib.c accordingly to your openssl version. Now the only thing that I can't overcome is the m and mm commands... : \ as in: 5) Cleanup before

[android-developers] Re: Static Initializers - interdependencies

2011-07-28 Thread Streets Of Boston
I would say, try it out :) You can set breakpoints/System.out.println-s inside static-initializer blocks: class A { static final Integer TEST_A_INT; static { TEST_A_INT = new Integer(B.TEST_B_STRING); } } class B { static final String TEST_B_STRING; static final Integer

[android-developers] Re: Inflated Window has unwanted background

2011-07-28 Thread nadam
Have you tested this on a device as well as on the emulator? Do you get the same problem in both? On 26 Juli, 06:30, Skyre ksmic...@gmail.com wrote: In one spot of my app, I use a LayoutInflater to create a little settings window.  On versions of Android prior to Gingerbread this works

Re: [android-developers] Re: Static Initializers - interdependencies

2011-07-28 Thread Daniel Drozdzewski
On 28 July 2011 16:45, RLScott fixthatpi...@yahoo.com wrote: On Jul 28, 10:26 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: No. The static initialisation of class A references class Main. This means that initialisation of class A will cause class Main to load, which in turn

Re: [android-developers] Re: Curious NPE

2011-07-28 Thread Nick Risaro
Doug, may I point you to the JPA API, made by Gavin King and approved by the JCP, it's based on unchecked exceptions. Also you can read Clean Code, A Handbook of Agile Software Craftmanship by Robert C. Martin he talks about the bennefits of using unchecked exceptions over checked. I agree with

[android-developers] Re: How to add header in ListFragment?

2011-07-28 Thread nadam
You can supply your own XML including a ListView. From the documentation of ListFragment: ListFragment has a default layout that consists of a single list view. However, if you desire, you can customize the fragment layout by returning your own view hierarchy from onCreateView(LayoutInflater,

Re: [android-developers] Re: How to add header in ListFragment?

2011-07-28 Thread Mark Murphy
On Thu, Jul 28, 2011 at 12:26 PM, nadam a...@anyro.se wrote: Another option is to skip the ListFragment and use a ListView directly instead. You only need to use ListFragment if the same list (and related logic) should be displayed in two different activities. Or if the list needs to be a

[android-developers] Re: Is there a way to display fragments in TabHost?

2011-07-28 Thread nadam
I think you should go with option B. Why do you need to access the original parent Activity? On 26 Juli, 11:13, Zsombor scythe...@gmail.com wrote: I'd like to show a different fragment in a TabHost, for every tab. But it seems that there's no easy way to do this. TabHost can only accept A.

[android-developers] Re: how to force restart activity from intent

2011-07-28 Thread nadam
Just override onNewIntent(). http://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent) On 26 Juli, 11:01, jjoe64 g.jjo...@googlemail.com wrote: hello. my MainActivity has the lauchMode=singleTask now I want to start the activity from a notification

[android-developers] Re: The emulator died when I execute ping in adb shell repeatly

2011-07-28 Thread Indicator Veritatis
I was tempted to answer his first post that way, but I refrained. Why did you cave in?;) Seriously: he probably simply shouldn't do that, since, among other reasons, Google does not have any implicit responsibility to reply to such pings, but I am not too surprised he thinks it is a bug. On Jul

[android-developers] Re: changing listview content in separate thread issue

2011-07-28 Thread Wall-E
Doug, I currently do send a broadcast that notifies that data has been changed which in the receiver I notify the ListView/Adapter but obviously that didn't work since I still get the IllegalStateException. I'm guessing that it's critical that the listview be immediately notified and the

Re: [android-developers] Is there a way to display fragments in TabHost?

2011-07-28 Thread Nikolay Elenkov
On Tue, Jul 26, 2011 at 6:13 PM, Zsombor scythe...@gmail.com wrote: I'd like to show a different fragment in a TabHost, for every tab. But it seems that there's no easy way to do this. TabHost can only accept A. Views or B. Intents that launch Activities when the user selects a tab. The

[android-developers] Re: Curious NPE

2011-07-28 Thread Indicator Veritatis
You and William F. misunderstood Nikolay: he did NOT say don't use exceptions; they are a bad idea. He said it was the DISTINCTION between 'checked' and 'unchecked' exceptions that is botched. He is not alone in this claim, he is in good company. Even the deservedly famous Java expert, author and

[android-developers] Re: Curious NPE

2011-07-28 Thread Indicator Veritatis
I don't think you are listening. He gave you the links, read them. On Jul 28, 1:29 am, Doug beafd...@gmail.com wrote: On Jul 27, 6:35 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Jul 28, 2011 at 3:35 AM, Doug beafd...@gmail.com wrote: On Jul 27, 1:25 am, Nikolay Elenkov

[android-developers] Re: No error notification for basic errors. (bad Wifi password, ext4 formatted SD card).

2011-07-28 Thread Wondering
Shouldn't the UI provide error notification? On Jul 25, 10:15 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: You should complain to whoever sold you your phone, not here. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Hard Crash (Reboot) in 3.2

2011-07-28 Thread Chris Stratton
On Thursday, July 28, 2011 11:21:18 AM UTC-4, Joshua Smith wrote: Our app, which works fine in 3.1 and earlier, has started experiencing a hard crash that cause our XOOM to reboot. Kernel reboot, or android runtime restart? You can tell the difference soon thereafter from cat /proc/uptime

[android-developers] Re: Project setup question, android library

2011-07-28 Thread dnkoutso
Anyone? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] About Messaging in Android Phones

2011-07-28 Thread Randil Pushpananda
Hi, I am developing a input system to the Android devices. I want to show Unicode characters when I type in the text box. I started to build my system by using the Sample Keyboard which given in the sample folder. I can see only boxes. I know if I can install unicode font then I can see the

Re: [android-developers] Project setup question, android library

2011-07-28 Thread TreKing
On Wed, Jul 27, 2011 at 11:28 PM, dnkoutso dnkou...@gmail.com wrote: Suggestions? Try it and see what happens. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit

[android-developers] Re: Inflated Window has unwanted background

2011-07-28 Thread Skyre
Yes, sorry for forgetting to include that information. I have tested both on the emulator, as well as my 2.3.3 Droid X device, and both have the same issue. On Jul 28, 11:12 am, nadam a...@anyro.se wrote: Have you tested this on a device as well as on the emulator? Do you get the same problem

[android-developers] paused activity

2011-07-28 Thread Ab Caballero
I have an application with 3 activities, which i will call A, B and C. The activities fire in sequence A-B-C, with each previous activity being paused. My question is, how do i go from the C activity back to the A activity, without going to the B activity first, i.e. C-A? Finish() will only bring

[android-developers] postInvalidate

2011-07-28 Thread Stanley Orlenko aka Smith
Hi Does postInvalidate guarantee that View's onDraw() method will be called? I call view.postInvalidate() every second and few minutes it works fine. I've added Log.d flag in onDraw() and I see that onDraw is called every time. But after a few minutes (there's no fixed time value) it stops

[android-developers] Re: Soft Keyboard appears when entering on an Activity

2011-07-28 Thread fr4gus
There you go, https://github.com/fr4gus/AndroidSoftKeyboardBug I uploaded a really simple project, in case someone wants to test it on their devices :D -f4 On Jul 5, 2:47 pm, fr4gus fggar...@gmail.com wrote: Thank you all, and setting windowSoftInputModem stateHidden solves the problem. I'm

[android-developers] Query

2011-07-28 Thread saurabh kulkarni
pl.suggest soln to this. My date column has date like:2011-07-25. final Calendar c = Calendar.getInstance(); int myMonth = (c.get(Calendar.MONTH)+1); int myDay = c.get(Calendar.DAY_OF_MONTH); String query =

Re: [android-developers] Re: floating listview

2011-07-28 Thread arun kumar
how to use custom view can anybody help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] How do we get Google's attention regarding the problems around randomly sorting comments in the Android Market?

2011-07-28 Thread BenMc
I think the randomly sorted comments in the Android Market are about the worst thing that can happen to devs and users. Right now, comments are showing up on apps across the board that date back months. Many times they are negative, 1-star reviews, that refer to a long out-dated version of the

[android-developers] Re: How to use Camera setPreviewCallback listener?

2011-07-28 Thread TurboMan
Thanks Adam, I've been bogging down trying almost every callback method, but NONE of them gets called. I am stuck, I need to transfer cam view to another tabled PC. Any recommendations welcome Regards TM -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-28 Thread Sebastian Tomaszewski
Putting this to the top to see if someone has an answer... thank you On Jul 25, 2011 11:20 AM, Sebastian Tomaszewski stomasze101...@gmail.com wrote: Do any of you guys know an answer to this.. Just wondering... On Fri, Jul 22, 2011 at 5:24 PM, Sebo stomasze101...@gmail.com wrote: Hello All,

Re: [android-developers] Re: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-28 Thread Kostya Vasilyev
Your timings don't seem that bad - 180 ms for approximately 3 MB image (you didn't write anything about compression) is about 16 MB / sec. I'd recommend you run some kind of compression on the image data. It doesn't have to be anything fancy that gets you the minimum possible image size, but

Re: [android-developers] How do we get Google's attention regarding the problems around randomly sorting comments in the Android Market?

2011-07-28 Thread TreKing
On Thu, Jul 28, 2011 at 1:05 PM, BenMc selticesyst...@gmail.com wrote: The question is tho, if others are on the same page as me, how do we get this issue fixed by Google for the good of Users and Devs alike?

Re: [android-developers] Re: Most Efficient (TIMING) way to save the images onto the Tablet!!!!

2011-07-28 Thread Miguel Morales
When writing to the sdcard directly did you wrap your file stream around a buffered stream with a 8k buffer? On Thu, Jul 28, 2011 at 11:37 AM, Kostya Vasilyev kmans...@gmail.com wrote: Your timings don't seem that bad - 180 ms for approximately 3 MB image (you didn't write anything about

  1   2   >