Re: [android-developers] Re: Resolution Problem in Nexus One

2010-07-23 Thread Dianne Hackborn
This has nothing to do with your manifest. You are blowing away the current configuration in the resources with your own you have created that is not initialized. Things aren't going to work when you do that. You could improve that by giving it a properly created Configuration, but I don't want

[android-developers] Re: Change Menu on the fly

2010-07-23 Thread Kumar Bibek
If it's an Options menu, from the docs it is clear that onCreate will only be called the first time. But if you want to control the items in the runtime, you should also override the onPrepareOptionsMenu. In this method, you can add or remove any items when the menu is triggered. -Kumar Bibek

[android-developers] broadcast receiver issue

2010-07-23 Thread Sandeep
Hi All, I am working on one project where i am using broadcast receiver in one of my activity to capture the incomming call and its works fine. when one of my other activity is open and that time if call is come then my broadcast receiver is fail to respond. can any one help me for this ? or its

[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-23 Thread Cameron
Thanks everyone for your input! I have gotten a lot of feedback and will try to implement all of the answers. I need to try and limit the frames per second properly. And also it was recommended to me to use 2 threads, one for graphics and one for the physics I will try both and see what happens!

[android-developers] command to find os information / system information

2010-07-23 Thread Jake
hi there, i have to store what version of android users are using, search all over internet, hard to find this info... any help would be highly appreciated !.. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: command to find os information / system information

2010-07-23 Thread Jake
ok ... got the information, here is the link http://android-er.blogspot.com/2009/09/read-android-system-info-using.html On Jul 23, 11:19 am, Jake integr...@gmail.com wrote: hi there, i have to store what version of android users are using, search all over internet, hard to find this info...

Re: [android-developers] command to find os information / system information

2010-07-23 Thread XC He
Which version? OS version ? Kernel version ? SDK version ? By Java code ? By command ? Or you have to read android.os.Build first. 2010/7/23 Jake integr...@gmail.com: hi there, i have to store what version of android users are using, search all over internet, hard to find this

Re: [android-developers] command to find os information / system information

2010-07-23 Thread XC He
Ex. import android.os.Build; // Build.VERSION String codeName = Build.VERSION.CODENAME; String incremental = Build.VERSION.INCREMENTAL; String release = Build.VERSION.RELEASE; String sdk = Build.VERSION.SDK; int sdk_int = Build.VERSION.SDK_INT; 2010/7/23 XC He schosnab...@gmail.com: Which

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread Indicator Veritatis
You left out something very important: the code hidden under // reload the image must not assume that it is not itself interrupted by yet another call to the garbage collector. That is, instead of simply continuing to use the soft/weak reference, it should make a strong reference to the same

[android-developers] Re: can we start application after installing .apk file

2010-07-23 Thread Paul Turchenko
You can't start your application. Neither service nor activity. The only ugly workaroung I can offer is: 1. Have your other application already installed on the device. 2. Subscribe to receive PACKAGE_INSTALLED broadcast. 3. Check if broadcated unstalled package is your application that needs to

[android-developers] Re: Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-23 Thread Indicator Veritatis
I believe you, Mark, but I must profess this is a little counter- intuitive. After all, the same PC will play much more demanding video (higher resolution, fancier codes, etc.) running Windows Media Player or Linux's Totem, so why can't the emulator handle it? Is there really that much overhead in

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-23 Thread Indicator Veritatis
Passing data from Activity to Activity is what ContentProviders are good at; they even let you pass from application to application. On Jul 22, 5:24 pm, Zsolt Vasvari zvasv...@gmail.com wrote: You cannot pass a SQLiteDatabase object from activity to activity. Perhaps you could store it in a

[android-developers] AndroidHttpTransport.call() blocking too much time when using KSOAP in Android

2010-07-23 Thread waterblood
Hi All, I am trying to use the KSOAP in Android, i have the function as below. Sometimes the calling of androidHttp.call(GETVERSION_ACTION, envelope); will return the reponse very fast. But some times it take me almost one minutes for this AndroidHttpTransport.call get return. That means

[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-23 Thread Cameron
Robert I sent you an email with the APK =) On Jul 22, 3:43 pm, Robert Green rbgrn@gmail.com wrote: Cameron, Are you using time-based movement or frame-based?  Would you mind sending me an APK?  I can check it out for you and maybe help out a little with some suggestions. On Jul 22,

[android-developers] Re: Resolution Problem in Nexus One

2010-07-23 Thread Engin Arslan
Dianne, thanks for your help, however, is there any possible way to specify application language rather than setting locale manually? On Jul 23, 9:03 am, Dianne Hackborn hack...@android.com wrote: This has nothing to do with your manifest. You are blowing away the current configuration in

[android-developers] need help in selection of text in TextView

2010-07-23 Thread brijesh
Hello Everyone, I have a Text View in my application and I want to select text from that text view and i want the starting ending position of that selected text so can anyone please help me. Regards, Brijesh Masrani -- You received this message because you are subscribed to

[android-developers] Re: Youtube API : SAXParser error

2010-07-23 Thread Ashish
Hi, I am fairly new to working on the android platform. I did put in a comment over the issue. Also, here's my LogCat: 07-23 07:19:01.890: ERROR/dalvikvm(353): Could not find method javax.xml.parsers.SAXParserFactory.getSchema, referenced from method

[android-developers] Re: Speech to Text (STT) Support on Android Keyboard

2010-07-23 Thread Maxood
Hi Niral, I'm also currently researching on STT. Here's the required link on android's official website: http://developer.android.com/resources/articles/speech-input.html There is a sample available in the latest sdk for API level 8 as well. Have you tried that out? Maqsood

[android-developers] Can dialog only deactivate part of screen

2010-07-23 Thread Amit
Dear All, Here is my question- I have an activity that shows data fetched data from internet. While the data is being fetched currently i am showing a dialog. My problem is that while dialog is being shown it puts entire activity (i mean the whole screen) to background. Is there a possibility

[android-developers] Re: Can dialog only deactivate part of screen

2010-07-23 Thread Kumar Bibek
No, not possible. -Kumar Bibek On Jul 23, 12:35 pm, Amit amitmishr...@gmail.com wrote: Dear All, Here is my question- I have an activity that shows data fetched data from internet. While the data is being fetched currently i am showing a dialog. My problem is that while dialog is being

[android-developers] Re: broadcast receiver issue

2010-07-23 Thread Kumar Bibek
You have to register the receivers in each of the activities. -Kumar Bibek http://tech-droid.blogspot.com On Jul 23, 11:12 am, Sandeep sandeep.phanse...@gmail.com wrote: Hi All, I am working on one project where i am using broadcast receiver in one of my activity to capture the incomming

Re: [android-developers] Re: broadcast receiver issue

2010-07-23 Thread Agus
no, just declare your receiver in the manifest. On Fri, Jul 23, 2010 at 12:40 AM, Kumar Bibek coomar@gmail.com wrote: You have to register the receivers in each of the activities. -Kumar Bibek http://tech-droid.blogspot.com On Jul 23, 11:12 am, Sandeep sandeep.phanse...@gmail.com wrote:

[android-developers] MediaPlayer RTSP Playback Issue

2010-07-23 Thread Sanjay Dandekar
We are developing a RTSP player on Android. Our server will stream the RTP packets and MediaPlayer will play the video. The problem we are facing is as follows: Whenever the media player starts playing video, it will play only for 5-6 seconds and then it will spend the next 10-12 seconds to

[android-developers] Re: Id values for AlertDialog.Builder created buttons

2010-07-23 Thread Andy
Hi again, Ive now found the solution I was after which was there all the time. Was just looking in the wrong place. AlertDialog has a method getButton() which returns the requested Button View object. Interestingly though this method only works when onCreateDialog() and showDialog() have returned

[android-developers] Re: Play Sound File

2010-07-23 Thread Maxood
Look up in the documentation for android.media.MediaPlayer on the android website. Also go through this documentation as well: http://developer.android.com/reference/android/media/MediaPlayer.html Maqsood http://twitter.com/maxood On Jul 21, 11:57 pm, Monali jain.mon...@gmail.com wrote: Hi,

[android-developers] Re: How to use repaint() method in Android...

2010-07-23 Thread ReyLith
I'm not sure but I think that if you use invalidate(), onDraw function will be called. On 22 jul, 10:18, blessu76 bless...@gmail.com wrote: Hi If i use repaint() method.I got error message. What is the solution for that.Can we use repaint() in android.If not what is the alternate solution for

Re: [android-developers] Re: Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-23 Thread Victoria Busse
so it should work with a quad core?? Well, too bad that I got one with 6GB RAM and it still doesn't...if this is still not strong enough, that would be really really bad :( Well I guess then it is more of a performance and efficiency question in the app itself On Fri, Jul 23, 2010 at 7:48 AM,

[android-developers] Reflection of class members

2010-07-23 Thread NightGospel
Hello all, If I have a class like below: class A{ private ArrayListB mList; } How do I to invoke the methods of mList member? Such as add, remove, clear and so forth. Thanks in advance. NightGospel -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: hi

2010-07-23 Thread NightGospel
I agree with Frank to read the android official documentation first. After finishing it, you will be familiar with android main concepts and android application design guidelines. It's much helpful. NightGospel On 7月23日, 上午7時01分, Frank Weiss fewe...@gmail.com wrote: Then go to the

[android-developers] How to update pre-installed apps

2010-07-23 Thread Albert
Hi all, I am working on an app that will be shipped on some phones. I have been thinking about how to update them once a new version is ready. How that would work for a pre-installed app? As an initial thought I think I could pop up a message letting the user know there is a new version ready,

[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-23 Thread harshe
no it didnot work :( am working in android sdk 2.2 my manifest is ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.keyboard android:versionCode=1 android:versionName=1.0 application

[android-developers] external jar problem --java.lang.verifyerror

2010-07-23 Thread cindy
Hi, I have a build a android application which works fine. After that, I create a jar file from that project for other applications to use. I added the jar as external jar for other application. It can compile correctly. However, when it runs, I always get the error Jave.lang.verifyError.

Re: [android-developers] Re: broadcast receiver issue

2010-07-23 Thread Sandeep Phansekar
thanks All [?] @Agus : can u plz expalin me how to do that in my project there are 5 classes -- 4 class file extend *Activity* -- mainly they display user interaction screen -- 1 class file extends *BroadcastReceiver -- *capture the incomming call and display/ launch the one of the activity. --

Re: [android-developers] Mount USB Drive

2010-07-23 Thread saify.zeenwala
u can use linux mount command directly avail in /system/etc regards On Tue, Jul 13, 2010 at 2:39 PM, perumal316 perumal...@gmail.com wrote: Hi All, I want my application to automatically mount the phone into USB storage drive if USB cable is connected. Is there code to do it? I tried

[android-developers] Strange or blank emails from users emailing from market

2010-07-23 Thread Paul Gee
Hi, I am getting several weird emails a day from users who have clicked on the 'send email to developer' link in the Market app where either the mail has not contents or is just rubbish such as zbxnbcvnxbnb Are other devs getting similar and is this just users typing rubbish accidentally or is

[android-developers] Re: Change Menu on the fly

2010-07-23 Thread drill
Thanks to all your suggestions. but i took Kumars version, this is really easy to implement and is working very smoothly :) On Jul 23, 8:05 am, Kumar Bibek coomar@gmail.com wrote: If it's an Options menu, from the docs it is clear that onCreate will only be called the first time. But if you

[android-developers] Re: broadcast receiver issue

2010-07-23 Thread Kumar Bibek
Even if you declare the receiver in the manifest, you have to register that receiver in each of your activities if you want to receive specific intents. Declaring only in the manifest just ensures that your receiver gets called, but it wont pass on that broadcast to your Activities unless you

[android-developers] Re: Charts in Android

2010-07-23 Thread veradis
Thanks for the reply. The Pie chart that i want is implement is of 50*50 PX size. The aChartEngine is fine, but was not able to customize its size, labels copy write logo. So just meet my req. using drawArc and drawCircle. On Jul 22, 10:59 am, Paul Turchenko paul.turche...@gmail.com wrote:

[android-developers] ACTION_DATE_CHANGED broadcast delayed

2010-07-23 Thread Webnet Android
Hi, In our app we rely on ACTION_DATE_CHANGED broadcast to update some app elements (we register receiver in service). However we observed that ACTION_DATE_CHANGED is not broadcasted (or received by our app) immediately after date change and experiment shown even 5 minutes delay after either

[android-developers] Re: Reflection of class members

2010-07-23 Thread Joseph Earl
1) You should never need reflect for your own classes, just add getter and setter methods 2) If you need reflect for the APIs to enable a feature a non-critical feature on newer devices see http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html On Jul 23, 9:37 am,

[android-developers] locale change does not affect menu

2010-07-23 Thread Engin Arslan
Hi all, I am developing application in which user can choose application language. To achieve this, I am changing Locale as follows: Locale locale = new Locale(language code here); Locale.setDefault(locale); Configuration config = new

[android-developers] Re: Necessary to close SQLite database?

2010-07-23 Thread Joseph Earl
1) You can restrict access to your ContentProvider to only your application or suite of applications by setting the authority 2) I thought it was overkill myself when first reading about it. However after following this pattern I must say its much neater (especially when loading cursors in

[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-23 Thread Joseph Earl
Just what I was thinking. For games you should never use frame-based animation, and for time-based animation FPS changes shouldn't matter too match since you just draw more or less frames depending on how much the device can handle. On Jul 22, 11:43 pm, Robert Green rbgrn@gmail.com wrote:

[android-developers] Re: WebView in ListView

2010-07-23 Thread Joseph Earl
Yup. Just don't do it. You can parse HTML into a TextView using Html.fromHtml(String string) if you are loading data from HTML content, or use a RelativeLayout to layout a bunch of Text/ImageViews etc. On Jul 23, 6:36 am, Kumar Bibek coomar@gmail.com wrote: WebViews are pretty heavy

[android-developers] Re: TouchEvent... A BIG problem

2010-07-23 Thread Joseph Earl
Thanks for the clarification. Not sure where I picked up that misinformation on distinguishable points. On Jul 22, 11:01 pm, Dianne Hackborn hack...@android.com wrote: Full multitouch is supported from when the APIs appeared -- API 5.  multiple distinguishable touch points is a hardware

[android-developers] Re: TouchEvent... A BIG problem

2010-07-23 Thread Joseph Earl
Also you might want to note that actually Android 1.5 does support multiple (well 2) touch points (it's not documented though) Sadly as far as I can tell Android 1.6 is the only version (post 1.1) that multi-touch won't work on. On Jul 22, 11:01 pm, Dianne Hackborn hack...@android.com wrote:

[android-developers] HTTP Live Streaming / playing .M3U8 or .TS files on Android

2010-07-23 Thread Marc Reichelt
Hi! Does anybody know if and how it is possible to play .M3U8 video content on Android devices? According to the documentation at

[android-developers] dithering gradient on different devices

2010-07-23 Thread manigault
Hi all, In my activity i have simple grey gradient ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#323232 android:endColor=#909090 android:angle=270 / /shape and i use as

[android-developers] Re: Launching an activity using Linkify

2010-07-23 Thread angushir...@googlemail.com
Top answer. Thanks for that. Now just need a neat and tidy way of passing arguments into the activity being called. On Jul 22, 9:21 pm, Matt matthew.quig...@gmail.com wrote: Yes. 1. Create a class which inherits ClickableSpan.  See URLSpan for an example. 2. Your action will go into

[android-developers] Re: Android Socket Communication

2010-07-23 Thread Maxood
I like to make a multi-player game on android like chess, checkers,etc. and shall look forward to updates on this thread. Looking for feedback on multi-player games. Thanks On Jul 20, 9:37 am, stephan dkn...@googlemail.com wrote: First question: Generally you could distinguish the applications

[android-developers] Re: external jar problem --java.lang.verifyerror

2010-07-23 Thread DanH
Most likely would be a mismatch between the jars used in the compile and those on the system that's loading the application. Very common with XML classes, among others. Another vague possibility is that the compiler being used is producing bytecodes that Android doesn't implement. This might

[android-developers] Re: locale change does not affect menu

2010-07-23 Thread Engin Arslan
Specifically, menu language changes to English (which is default language) when I try to change locale. And then it does not change any other language On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote: Hi all, I am developing application in which user can choose application

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread DanH
Yes, you must guard any use of the WeakReference by taking the ref() of it, testing that for null, and then proceeding to use the result of the ref() if not null. The size of the guarded sections is up to the programmer -- if too large then the object will never get deleted, if too small then the

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-23 Thread ReyLith
Hi again, I'm trying to put a message when the image is so big. For this I think to obtain the size of the file and compare it with the free memory Runtime.getRuntime().getFreeMemory()). It works well but I have a new problem. The application show an error message with some images because they

[android-developers] Re: Regarding the new BackupManager

2010-07-23 Thread uday
If the backup transport is not available on the device, then is it possible to provide a backup transport by the Android Backup Service? If the service is not providing any backup Transport then the backup operation is not happened on the device?? To do this operation is it necessary to login

[android-developers] Re: dithering gradient on different devices

2010-07-23 Thread Joseph Earl
I generally use a 'proxy' XML drawable to add dithering. Suppose your drawable above was named grad.xml, I'd then create something like: ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/grad android:dither=true /

[android-developers] Re: How could I avoid others to get my used pictures in my application?

2010-07-23 Thread Joseph Earl
1) If you store your images in your drawable folder, then they shouldn't be accessible outside of your application 2) If you store images on the SD card then they will be available to all applications that know where they are On Jul 23, 12:04 am, Frank Weiss fewe...@gmail.com wrote: The way I

[android-developers] Re: how to get function call trace on android phones?

2010-07-23 Thread Shuo
Do we need the source code of the apps to do this tracing? If I don't have the source code, will it work? On Jul 23, 4:49 am, fadden fad...@android.com wrote: On Jul 21, 5:53 am, Shuo Deng dengshuoama...@gmail.com wrote: Is there any tool that can get longer trace? Do you think we can write a

[android-developers] Re: OpenGL Material

2010-07-23 Thread dsl
Thank you both very much for your suggestions and help. I went through this tutorial: http://code.google.com/p/android-gl/downloads/detail?name=AndroidGL-0.4.zipcan=2q= And it seems my problem has been enabling GL_COLOR_MATERIAL. I had enabled this because I was using textures at one point, but

[android-developers] Re: OpenGL Material

2010-07-23 Thread dsl
Scratch that, I don't remember why I was enabling GL_COLOR_MATERIAL. I think it was from a different example I was looking at that used color arrays. Teach myself not to leave code laying around. On Jul 23, 9:54 pm, dsl dsl...@gmail.com wrote: Thank you both very much for your suggestions and

Re: [android-developers] Re: dithering gradient on different devices

2010-07-23 Thread Martin Obreshkov
Thanks for the reply :). But when i create grad_proxy.xml like this and use it as android:background nothing is shown android can't load grad_proxy and shows default background. On Fri, Jul 23, 2010 at 3:33 PM, Joseph Earl joseph.w.e...@gmail.comwrote: I generally use a 'proxy' XML drawable to

[android-developers] Re: Have a problem in ListView please help ?

2010-07-23 Thread Joseph Earl
It doesn't really make sense for a ListView to have it's height to wrap_content since a ListView allows you to put in more items than will fit on-screen. It can have a height set to a fixed value, e.g. 300px or 200dip, but not wrap_content. You should never really need to stack lists vertically

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-23 Thread gcstang
Does anyone have a easy example to setup the ContentProvider and a psuedo helper object for use with a ListView? I would be interested in seeing that. Thank you in advance On Jul 23, 1:50 am, Indicator Veritatis mej1...@yahoo.com wrote: Passing data from Activity to Activity is what

[android-developers] How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread Jin Chiu
I have an AIDL service that is intended to be used by both out-of- process remote users and in-process local users. As a result, my common interface methods will either be invoked on the UI thread or in a binder background thread. The logic between the two is not the same. How do I distinguish

[android-developers] Re: Routing audio input to bluetooth headset

2010-07-23 Thread Garima
Thanks a lot. That worked. On Jul 22, 8:40 pm, Phil pds...@gmail.com wrote: In 2.2, check out android.media.AudioManager: startBluetoothSco() and setBluetoothScoOn() One thing to watch out for, however, is: If you pair up a bluetooth headset, and start the SCO connection to record the

Re: [android-developers] How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 8:18 AM, Jin Chiu live2drea...@gmail.com wrote: How do I distinguish between these two cases? http://groups.google.com/group/android-developers/browse_thread/thread/ccc923ae7783e51/5a0d0cf105b68127

Re: [android-developers] Reflection of class members

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 3:37 AM, NightGospel wutie...@gmail.com wrote: How do I to invoke the methods of mList member? mList.add(...); mList.remove(...); mList.clear(); And so forth. What does this have to do with reflection?

[android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
Hello MArk, I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it possible to change it from a TableLayout to a RelativeLayout? This XML is sometimes complicated. I just wanted to appear some sort of box in the center

[android-developers] Re: Charts in Android

2010-07-23 Thread Dan Dromereschi
You can definitely customize the size, labels in AChartEngine. There is no copyright logo in AChartEngine. Regards, Dan On Jul 23, 1:33 pm, veradis veradism...@gmail.com wrote: Thanks for the reply. The Pie chart that i want is implement is of 50*50 PX size. The aChartEngine is fine, but

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 10:25 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it possible to change it from a TableLayout to a RelativeLayout? NooYawk does not

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Carlos Silva
On Fri, Jul 23, 2010 at 15:25, Pedro Teixeira pedroteixeir...@gmail.comwrote: Hello MArk, I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it possible to change it from a TableLayout to a RelativeLayout? This

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 9:25 AM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Is it possible to change it from a TableLayout to a RelativeLayout? Sure, why not? - TreKing

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
The popup.xml isn't a table layout? On Jul 23, 2010, at 3:31 PM, Mark Murphy wrote: On Fri, Jul 23, 2010 at 10:25 AM, Pedro Teixeira pedroteixeir...@gmail.com wrote: I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
Thanks Carlos, I'll take a look just now ;) On Jul 23, 2010, at 3:32 PM, Carlos Silva wrote: On Fri, Jul 23, 2010 at 15:25, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hello MArk, I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of

[android-developers] Re: WebView in ListView

2010-07-23 Thread Maps.Huge.Info (Maps API Guru)
If those html pages you want to display contain JavaScript, you might want to use one webview and then iFrames, which would give you the same effect without overloading the system with multiple instances of webview. Kind of web-appy, but if that's the effect you're looking for, this method might

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread GodsMoon
I think the difference in the code I've written in the past was I was referring to a window progress bar and not an independent view in the onPostExecute. That's why I was getting a Null Pointer when the activity was killed. I'm starting to get a grasp on this stuff. Clearly I don't know how the

[android-developers] Re: Strange or blank emails from users emailing from market

2010-07-23 Thread Maps.Huge.Info (Maps API Guru)
I thought it was just odd users who like to press random keys, or perhaps monkeys trying to write the complete works in the Library of Congress. I get a few a day as well. Didn't know the source, it could be the market. -John Coryat -- You received this message because you are subscribed to the

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-23 Thread Brion Emde
The Notebook sample application contains a simple ContentProvider and a list of Notes. That lives here: http://developer.android.com/resources/samples/NotePad/index.html On Jul 23, 9:09 am, gcstang gcst...@gmail.com wrote: Does anyone have a easy example to setup the ContentProvider and a

[android-developers] Re: How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread Jin Chiu
Unfortunately, that post does not address my question. If my service is getting called out-proc, runOnUIThread() will post an asynchronous message on the UI thread's message queue, which is not want I want. If my code is being invoked on a background thread, I need additional logic to post the

Re: [android-developers] Draw rectangle.

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 9:44 AM, ranjan ar ranjan@gmail.com wrote: I want to draw a rectangle, simple rectangle . And then I want to start drawing series of rectangles on the x axis (which can be imaginary). Please reply to the whole group. Look at the various draw() functions in View

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread Matt Quigley
On Jul 23, 2:37 am, Indicator Veritatis mej1...@yahoo.com wrote: You left out something very important: the code hidden under // reload the image must not assume that it is not itself interrupted by yet another call to the garbage collector. That is, instead of simply continuing to use the

[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-23 Thread Matt Quigley
You might get it to work if you request the focus for EditText on creation. Either add editText.requestFocus() in your onCreate(), or add a requestFocus/ tag inside the EditText's XML layout. EditText requestFocus/ /EditText -Matt On Jul 23, 4:52 am, harshe hars...@gmail.com wrote: no

[android-developers] Droid Motorola

2010-07-23 Thread ranjan ar
I have an app, in which part of its job is to mute and unmute the microphone, for some reason this is working fine in all mobiles except for Motorola Droid, can some one help me? audioService.setMicrophoneMute(true); -- You received this message because you are subscribed to the Google Groups

[android-developers] Android Rectangle

2010-07-23 Thread ranjan ar
Hello all, can you help me explain how to draw a rectangle and bring it up in the middle of screen. -- 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

[android-developers] Possible to create a transparent, headless activity?

2010-07-23 Thread Jin Chiu
Is it possible for my ActivityA to launch a transparent, headless ActivityB in a way that it does not prevent user interaction with ActivityA? Currently, when I start ActivityB, Android pushes a blank screen that prevents the user from interacting with the underlying Activity. -- You received

Re: [android-developers] need help in selection of text in TextView

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 2:21 AM, brijesh masrani.brij...@gmail.com wrote: I have a Text View in my application and I want to select text from that text view and i want the starting ending position of that selected text Have you looked at the TextView documentation? Have you tried anything so

[android-developers] Re: Sms hiding and deletion

2010-07-23 Thread Andrea Rota
I am working on the same topic. Actually I am not able to do it, but I found that a developer has already done it. Check for SMS Guard on the market. I tried to get in touch with the developer, but he hasn't answered yet. On 8 Lug, 20:08, Usama usama...@gmail.com wrote: i am currently making an

[android-developers] a list of a different kind

2010-07-23 Thread Jags
I want a listview, first of all i dont want selectable, just as a table display i wanna use it. second, i want custom drawing in it, like some cell yellow background, some cell red i also want variable height row. means row 1 might have 3 items row 2 might have 7 items. please point me to some

Re: [android-developers] How to set priorities for multiple BroadcastReceivers when dealing with ordered intent broadcast?

2010-07-23 Thread Mark Murphy
On Thu, Jul 22, 2010 at 11:32 PM, Agus agus.sant...@gmail.com wrote: How do you set priority # for dynamically instantiated broadcast receivers? Call setPriority() on the IntentFilter. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread DanH
The main Activity already has a strong reference to the objects. The secondary thread does not need to create a strong reference; in fact, that would make the weak reference useless. It should be noted, though, that one shouldn't use weak references (or soft ones) willy-nilly. A weak/soft

Re: [android-developers] Re: Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 2:48 AM, Indicator Veritatis mej1...@yahoo.com wrote: I believe you, Mark, but I must profess this is a little counter- intuitive. After all, the same PC will play much more demanding video (higher resolution, fancier codes, etc.) running Windows Media Player or Linux's

Re: [android-developers] Possible to create a transparent, headless activity?

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 11:45 AM, Jin Chiu live2drea...@gmail.com wrote: Is it possible for my ActivityA to launch a transparent, headless ActivityB in a way that it does not prevent user interaction with ActivityA? That is what services are for. -- Mark Murphy (a Commons Guy)

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-23 Thread DanH
The size of an image file depends greatly on the compression techniques used to create it. Virtually all image formats involve some sort of compression such that the total number of bits in the file is considerably less than the (width * height * depth) number that represents the raw image. On

Re: [android-developers] Re: How could I avoid others to get my used pictures in my application?

2010-07-23 Thread Tom Gibara
I don't think you are correct on 1. I believe all apps have access to the resources of any other app, though I'm not certain about this - I've certainly always assumed that the resources of my applications are public in this way. Tom. -- Tom Gibara email: m...@tomgibara.com web:

[android-developers] RemoteViews and setEnabled - when is it supported ?

2010-07-23 Thread jarkman
I have a widget, working happily on 2.2, which includes this line: views.setBoolean(R.id.s_button, setEnabled, true); When I run it on 1.5, I get this: 07-23 17:11:59.643: WARN/AppWidgetHostView(158): android.widget.RemoteViews$ActionException: view: android.widget.ImageButton can't

[android-developers] Re: OutOfMemoryError with Bitmap

2010-07-23 Thread ReyLith
So, how can I obtain the depth for know if I can work with the image? On 23 jul, 18:18, DanH danhi...@ieee.org wrote: The size of an image file depends greatly on the compression techniques used to create it.  Virtually all image formats involve some sort of compression such that the total

Re: [android-developers] RemoteViews and setEnabled - when is it supported ?

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 12:26 PM, jarkman jark...@gmail.com wrote: I have a widget, working happily on 2.2, which includes this line:           views.setBoolean(R.id.s_button, setEnabled, true); When I run it on 1.5, I get this: 07-23 17:11:59.643: WARN/AppWidgetHostView(158):

[android-developers] How do you approach the various devices your application runs on?

2010-07-23 Thread Chris Stewart
For my first application, the only testing I've really done to this point is on my Droid X. I want to think through the various hardware differences and come up with a testing plan that is representative of the Android landscape. My initial thought is to create a list of emulators that have

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread Joseph Earl
Thanks for clearing it up somewhat. On Jul 23, 4:25 pm, Matt Quigley matthew.quig...@gmail.com wrote: On Jul 23, 2:37 am, Indicator Veritatis mej1...@yahoo.com wrote: You left out something very important: the code hidden under // reload the image must not assume that it is not itself

[android-developers] Re: How to update pre-installed apps

2010-07-23 Thread Joseph Earl
What happens if you upload a newer version to Android Market with same package name? Does the Market app get there's an update? On Jul 23, 9:45 am, Albert albert8...@googlemail.com wrote: Hi all, I am working on an app that will be shipped on some phones. I have been thinking about how to

  1   2   3   >