[android-developers] Re: fast removing SurfaceView

2009-06-24 Thread skink
On 24 Cze, 01:14, Dianne Hackborn hack...@android.com wrote: Fyi, I would guess the problem has to do with loading and initializing your view hierarchy, and not with the previous surface view.  Have you tried launching with just the second hierarchy and not the surface view to see how fast

[android-developers] Re: Problem with createBitmap method

2009-06-24 Thread hamlatzis
Thank you all for your reply. I've tried the above solution and it works perfectly. I was reluctant to do so, since in the documentation it says: public void recycle () Free up the memory associated with this bitmap's pixels, and mark the bitmap as dead, meaning it will throw an exception if

[android-developers] Re: Get a unique string / serial number?

2009-06-24 Thread Al Sutton
You might want to look at http://andappstore.com/AndroidPhoneApplications/licensing_4.jsp Sections 4(c)(i) to (iv) detail how to get and test various IDs available, the Android ID *may* be what you're looking for, but because Android is an open OS there is no absolute guarentee that all Android

[android-developers] testing uses-permission

2009-06-24 Thread Sheado
howdy, i'm prepping my first app for publishing and am a bit confused about how to properly test my uses-permission tags.. if i don't specify any permissions my app runs with no complaints on my G1. I tried installing it via adb install as well as with the eoeAppInstaller (as somebody had

[android-developers] Re: AnalogClock AppWidget dial.

2009-06-24 Thread Jeff Sharkey
AnalogClock doesn't directly provide methods to change its drawables. One approach you could use would be to have two layout files, one each for AM and PM, and build a new RemoteViews targeting the correct layout when building updates. j On Tue, Jun 23, 2009 at 9:54 PM,

[android-developers] findviewbyid in service?

2009-06-24 Thread brilliant winger
HI! I develop an application. This don't use activity class. only use service class.. I need method(findviewbyid). but service don't have this method. how to use? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: AnalogClock AppWidget dial.

2009-06-24 Thread Ravi
Hi Jeff, Thnz for the reply... Well, I feel tht there should be AnalogClock Api's to modify it's drawables atleast in next SDK version. Right now, I'am goin to make use of a single layout change it's dial making use of Remote view's visiblity option. On Jun 24, 1:13 pm, Jeff Sharkey

[android-developers] Re: NinePatchDrawable as ItemizedOverlay

2009-06-24 Thread skyman
Thanks! --~--~-~--~~~---~--~~ 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] Strange ListView loading problems

2009-06-24 Thread Peter
I have a listview that is populated by a couple threads that pull in data from the network. Before that data comes in, there are some default values displayed. When the screen loads, there are 6 items displayed, each with the default data. The 1st (index 0) loads and is updated on the screen, and

[android-developers] Re: EditText and Virtual Keyboard

2009-06-24 Thread Hazam
Folks, is there nobody having the same problem? Did I explain I clearly? The problem is that if i press some of the virtual keyboard keys, they do not cause a onKeyDown event; this happens with keys '/','!' and such. While if i press physical emulator keys, (even the same keys), they do. Could

[android-developers] Re: Errors In Android Run time I need suggestions

2009-06-24 Thread Desu Vinod Kumar
HI This errors iam getting in log cat 06-24 15:05:51.610: ERROR/AndroidRuntime(472): Uncaught handler: thread main exiting due to uncaught exception 06-24 15:05:51.774: ERROR/AndroidRuntime(472): android.content.ActivityNotFoundException: Unable to find explicit activity class

[android-developers] G1 Firmware in ADP1?

2009-06-24 Thread František Fuka
Hello, my friend has got himself Android Developer Phone 1. But he is not developer, he just wants to use it as a normal phone and he doesn't want any hassle with firmware updating (and he's not interested in root access etc.). If I flash the official U.S. G1 firmware into his phone, will he

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 František Fuka f...@fuxoft.cz Hello, my friend has got himself Android Developer Phone 1. But he is not developer, he just wants to use it as a normal phone and he doesn't want any hassle with firmware updating (and he's not interested in root access etc.). If I flash the

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Frantisek Fuka
Really? But he still has firmware 1.0 and no offer to upgrade. On Jun 24, 12:16 pm, Delta Foxtrot deltafoxtrot...@gmail.com wrote: You don't need the t-mobile firmware for auto-updates, the ADP firmware upgrades itself when updates are put out too.

[android-developers] PopupWindow Dismissal

2009-06-24 Thread peeyush varshney
Hi, I am creating Spinner over PopupWindow .But when I press back key in opened Spinner. it dismiss the Spinner as well as PopupWindow. It should close the Spinner only and come back to PopupWindow.but it is no happening. How should I handle this scenrio. -- Thank Regards Peeyush

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 Frantisek Fuka f...@fuxoft.cz Really? But he still has firmware 1.0 and no offer to upgrade. Sorry, the 1.1 firmware included the auto-update feature, if you upgrade to 1.1 or 1.5 it will upgrade automatically in future. --~--~-~--~~~---~--~~ You

[android-developers] Recreate PopupWindow onRestoreInstanceState

2009-06-24 Thread extrapedestrian
Hello, My application has floating popup window (PopupWindow) that is successfully displayed on user click. When screen orientation is changed, everything is recreated and I want my Popup to remain visible. onRestoreInstanceState is called and my Popup function crashes whilst calling

[android-developers] Re: Errors In Android Run time I need suggestions

2009-06-24 Thread Mark Murphy
Desu Vinod Kumar wrote: This errors iam getting in log cat snip 06-24 15:05:51.774: ERROR/AndroidRuntime(472): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.dci.isizzle/com.dci.isizzle.WebServices}; have you declared this activity in your

[android-developers] WebView

2009-06-24 Thread Sukitha Udugamasooriya
Hello, I have a webview and need to trigger a function when a user clicks on particular url. How can I achieve this? Regards and thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: WebView

2009-06-24 Thread Desu Vinod Kumar
Hi Try this Snippet it may helpful for u try { URL url = new URL(eText.getText().toString()); URLConnection conn = url.openConnection(); // Get the response BufferedReader rd = new BufferedReader(new

[android-developers] How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

2009-06-24 Thread GAYET Thierry
Hi, because i need to start a background deamon not just when an application need to bind with, i have searched a way to auto-start it. One interesting reply was given in this maillist and i wanna more explanation on the way to catch BOOT_COMPLETED_ACTION from an IntentReceiver ? The previous

[android-developers] Re: WebView

2009-06-24 Thread Mark Murphy
Sukitha Udugamasooriya wrote: I have a webview and need to trigger a function when a user clicks on particular url. How can I achieve this? 1. Implement a WebViewClient subclass 2. Override shouldOverrideURLLoading() on your WebViewClient subclass 3. Attach an instance of your

[android-developers] Lising of the available AT-commands on an HTC G1 ?

2009-06-24 Thread GAYET Thierry
Hi, i am looking for the complete listing of the AT commands available from the HTC G1's baseband ? Regards Thierry GAYET NextInnovation.org +33(0)663.849.589 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

2009-06-24 Thread Mark Murphy
GAYET Thierry wrote: Hi, because i need to start a background deamon not just when an application need to bind with, i have searched a way to auto-start it. One interesting reply was given in this maillist and i wanna more explanation on the way to catch BOOT_COMPLETED_ACTION from an

[android-developers] Re: Binder Thread issue.

2009-06-24 Thread Mark Murphy
Gavin wrote: OK. thanks for your suggestion. I will modify my design. It is Binder Thread that I want to know. Is there any negative impact? I do not know what a Binder Thread is in this context. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy

[android-developers] How to use Graphics.VCENTER|Graphics.HCENTER

2009-06-24 Thread manohar
Hi All I am porting a game from J2ME to Android. In J2ME the code is as follows g.drawImage(image,x,y,Graphics.HCENTER | Graphics.VCENTER) In android i have written has g.drawBitmap(image, x, y, paintObject); Here i do not have a ooption to specify the anchor position. Can any one pls tell

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Frantisek Fuka
Really? But he still has firmware 1.0 and no offer to upgrade. Sorry, the 1.1 firmware included the auto-update feature, if you upgrade to 1.1 or 1.5 it will upgrade automatically in future. OK. Since that means I'll have to do manual upgrade after all, there is a question of differences

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
tstanly wrote: hi all, it's so strange!! i have a list decleared: public static ListString list1=new ArrayListString(); and use list1.add(str); it is ok! but use list1.add(index,str); program will be error What is the error? -- Mark Murphy (a Commons Guy)

[android-developers] Re: Strange ListView loading problems

2009-06-24 Thread Guru
Are you running any thread in the getView of the adapter? On Wed, Jun 24, 2009 at 2:04 PM, Peter pkana...@gmail.com wrote: I have a listview that is populated by a couple threads that pull in data from the network. Before that data comes in, there are some default values displayed. When the

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
with the location parameter, when into the app,will show the application demo(process demo.app) has stopped on unexpectedly, please try again without location, it works!! 2009/6/24 Mark Murphy mmur...@commonsware.com tstanly wrote: hi all, it's so strange!! i have a list decleared:

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
Tsai stanly wrote: with the location parameter, when into the app,will show the application demo(process demo.app) has stopped on unexpectedly, please try again without location, it works!! And your Java stack trace tells you...what? You can examine your Java stack trace via adb logcat,

[android-developers] where is the definition of member functions in the struct audio_track_cblk_t

2009-06-24 Thread max
Hi All, I don't know whether there is someone who have a look at the structure audio_track_cblk_t, which is at frameworks/base/include/private/media/AudioTrackShared.h struct audio_track_cblk_t { // The data members are grouped so that members accessed frequently and in the same context

[android-developers] Re: where is the definition of member functions in the struct audio_track_cblk_t

2009-06-24 Thread Mark Murphy
max wrote: I don't know whether there is someone who have a look at the structure audio_track_cblk_t, which is at frameworks/base/include/private/media/AudioTrackShared.h Questions about the Android source code are best asked on a list that pertains to the Android source code:

Re : [android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

2009-06-24 Thread GAYET Thierry
First thanks for your quick reply. I have well found the code you told me about (OnBootReceiver). I have one more question 'cos i as i have said before i ma programming a service that i want to start when Android boot. My core class extends Service not BroadcastReceiver. So may i extend more

[android-developers] Re: list add item error

2009-06-24 Thread Tsai stanly
thanks for your help! from my DDMS on my Eclipse, it just show: [2009-06-24 20:06:02 - DeviceMonitor]Error reading jdwp list: EOF and how to use the adb logcat? thanks! 2009/6/24 Mark Murphy mmur...@commonsware.com Tsai stanly wrote: with the location parameter, when into the app,will

[android-developers] Re: RTP streaming with Cupcake

2009-06-24 Thread pierre
Sorry, there is no RTSP problem with Cupcake. My problem was due to the viedo file which was not really identical to the one used before. Regards. On 17 juin, 12:57, pierre pierre.rou...@gmail.com wrote: Hello all, isRTPstreamingknown to be working on Cupcake devices? I have not been able

[android-developers] Re: list add item error

2009-06-24 Thread Mark Murphy
Tsai stanly wrote: thanks for your help! from my DDMS on my Eclipse, it just show: [2009-06-24 20:06:02 - DeviceMonitor]Error reading jdwp list: EOF It should show many more lines than that. There may be some issue connecting DDMS in Eclipse with your device or emulator. and how to use

Re: Re : [android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

2009-06-24 Thread Mark Murphy
GAYET Thierry wrote: First thanks for your quick reply. I have well found the code you told me about (OnBootReceiver). I have one more question 'cos i as i have said before i ma programming a service that i want to start when Android boot. My core class extends Service not

[android-developers] Re: Sending Email from Android application

2009-06-24 Thread Peli
You can find the correct MIME type to send a text message here: http://www.openintents.org/en/node/121 (scroll down for the sample code) Peli www.openintents.org On Jun 24, 7:02 am, doubleminus doublemi...@gmail.com wrote: Swathi, Did you ever figure this one out?? Thanks, double On May

[android-developers] how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread manoj
Hi, I have implemented media player with MediaController. Its working fine. Now I would like to show only fastbackward, fast forward, play/pause icons (omitting prev, next song buttons). Can any one please help me to do this. Thanks, Manoj.

[android-developers] Re: how to set intent flags

2009-06-24 Thread Peli
intent_back.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Peli www.openintents.org On Jun 24, 5:51 am, tstanly tsai.sta...@gmail.com wrote: hi all, in thehttp://developer.android.com/reference/android/content/Intent.html there are constant FLAG_ACTIVITY_CLEAR_TOP and setFlag method, but i

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
2009/6/24 Frantisek Fuka f...@fuxoft.cz OK. Since that means I'll have to do manual upgrade after all, there is a question of differences between ADP1, EU and US firmware. I heard Latitude is not present in all of them, as well as ICQ client... Is there some sort of comparison chart

[android-developers] Re: G1 Firmware in ADP1?

2009-06-24 Thread Delta Foxtrot
There is a whole bunch of things you can do with root access on the phone you can do otherwise, like tethering over wifi and blocking ads by altering the hosts file or using AdFree --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: AnalogClock AppWidget dial.

2009-06-24 Thread Ravi
I'm facing a problem again...Even if i make two layouts, the AppWidget already drawn is not getting redrawn :( For Ex: if(0 == calendar.get(Calendar.AM_PM)) views = new RemoteViews(context.getPackageName(), R.layout.analog_appwidget_am); else views = new RemoteViews(context.getPackageName(),

[android-developers] Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs
Hi all, I am getting Security Exception - Permission denial when I am trying to access the Browser.BOOKMARK_URI in my code. Cursor cur = m_Context.getContentResolver().query (Browser.BOOKMARKS_URI, null, null,null, null); However it gives me this error only on device whereas on emulator it

[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Mark Murphy
Shibbs wrote: After a little googling I found the permission: uses-permission android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/ from: http://github.com/android/platform_packages_apps_browser/blob/0cb2af7646d0a41c0543a086021df3042bfc814a/AndroidManifest.xml Just

[android-developers] when set android:layout_below = @id/ then margin_bottom is not working for the Button

2009-06-24 Thread jaimin
i want the margin_bottom to work for those Last two Buttons.Botton c And Botton d when i set android:layout_below = @id/answer_a then margin_Bottom does not work ?xml version=1.0 encoding=UTF-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Noser Academy for Android

2009-06-24 Thread Joerg Pleumann
Hello everybody, I'd like to invite you to joining the first incarnation of the Noser Academy for Android. It will take place September 3-4 2009 in Zurich, Switzerland. The event is meant to be a Commercialization Boot Camp and, as the name implies, mainly targeted at companies that want to use

[android-developers] Re: Noser Academy for Android

2009-06-24 Thread Joerg Pleumann
Hmm, seems the links got broken somehow. Sorry for that. The URLs should look like this: http://www.noseracademy.com http://www.nosertomarket.com/press/NoserAcademy09June2009FINAL.pdf Cheers, Joerg -- Joerg Pleumann Head of Android Development Noser Engineering AG Switzerland On Jun 24, 4:00 

[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs
Frankly speaking I don't know nor I have any evidence - Got this permission over the net, tried it in my app and it works. Do we go by the age old google saying that: If its not documented then probably not use it as it would be removed in future SDK version On Jun 24, 6:58 pm, Mark Murphy

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread Marco Nelissen
According to http://developer.android.com/reference/android/widget/MediaController.html, they will not be shown unless you call setPrevNextListener(). Have you tried not calling it? On Wed, Jun 24, 2009 at 6:16 AM, manoj manojkumar.m...@gmail.com wrote: Hi, I have implemented media player

[android-developers] Re: findviewbyid in service?

2009-06-24 Thread Marco Nelissen
Why do you need this? A service does not have a UI, so there should be no need to get a View. On Wed, Jun 24, 2009 at 1:19 AM, brilliant winger stw...@gmail.com wrote: HI! I develop an application. This don't use activity class. only use service class.. I need method(findviewbyid). but

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread manoj
HI Macro, Thanks for your reply. I haven't called the setPrevNextListener(). I am sure. can you please try once and let me know whether it was shown or not. Thanks, Manoj. On Jun 24, 7:29 pm, Marco Nelissen marc...@android.com wrote: According

[android-developers] Re: findviewbyid in service?

2009-06-24 Thread 2hill
What is it that you are trying to accomplish in you service? You can build a view and have it called and built when service is started. More info please. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Strange ListView loading problems

2009-06-24 Thread Peter
No, getView() itself is quite simple. There are threads running while getView() is being called, but no threads spawned inside getView(). On Jun 24, 8:24 am, Guru gurudut...@gmail.com wrote: Are you running any thread in the getView of the adapter? On Wed, Jun 24, 2009 at 2:04 PM, Peter

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread manoj
Actually, I created a layout xml, and added the MediaController. On Jun 24, 7:45 pm, manoj manojkumar.m...@gmail.com wrote: HI Macro, Thanks for your reply. I haven't called the setPrevNextListener(). I am sure. can you please try once and let me know whether it was shown or not.

[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Evan Charlton
Anything in the com.android.* package is a private API and you should not rely on it as it could break in a future update. Evan Charlton On Jun 24, 2009 10:17 AM, Shibbs shibu.deva...@gmail.com wrote: Frankly speaking I don't know nor I have any evidence - Got this permission over the net,

[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Mark Murphy
Shibbs wrote: Do we go by the age old google saying that: If its not documented then probably not use it as it would be removed in future SDK version Pretty much. That's particularly true for com.android.permission.* values (or, for that matter, most things in the com.android.* namespaces).

[android-developers] Re: RTP streaming with Cupcake

2009-06-24 Thread dindin
Can you share a little bit on what you are trying to do and how you got it to work. I have been trying to get some live streaming to work on Cupcake but am still scratching my head on this one. Did you simply point the source to an RTSP URI on the MediaPlayer object? What media codecs are you

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-24 Thread sleith
hello...could anyone help? thx On Jun 23, 10:37 pm, sleith raysle...@gmail.com wrote: hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are drown to bitmap is not displayed, as if it's

[android-developers] Re: Recreate PopupWindow onRestoreInstanceState

2009-06-24 Thread Romain Guy
parentView.post(new Runnable() { public void run() { // show the popup } }); On Wed, Jun 24, 2009 at 4:07 AM, extrapedestrianextra.pedestr...@gmail.com wrote: Hello, My application has floating popup window (PopupWindow) that is successfully displayed on user click. When screen

[android-developers] Re: Security Exception - Browser.BOOKMARKS_URI !

2009-06-24 Thread Shibbs
Thanks guys! - but as long as there is no other permission, I am left with not much choice but to take that risk. Anyone from google, Would read browser history permission be available in future release? Its kinda important for my app On Jun 24, 8:08 pm, Mark Murphy mmur...@commonsware.com

[android-developers] Re: Application Needed

2009-06-24 Thread bizzy401
I am in the Army On Jun 23, 12:56 pm, Fred Grott(shareme) fred.gr...@gmail.com wrote: I would imagine if you would mention your branch of service that might help in getting the help you require. Myself, I am a former Airman, USAF..1980s.. Fred Grotthttp://mobilebytes.wordpress.com On Jun

[android-developers] Re: Application Needed

2009-06-24 Thread bizzy401
Wow, that would be awesome, except that my eval is on monday, but I really appreciate it!!! On Jun 23, 1:17 pm, Brian Cloutier brian.studios.andr...@gmail.com wrote: While I do not know of such an app, if you give me a week or two I could write one for you. On Tue, Jun 23, 2009 at 9:56 AM,

[android-developers] Re: Application Needed

2009-06-24 Thread bizzy401
I am new to google groups, where is the reference section? On Jun 23, 8:47 pm, sm1 sergemas...@gmail.com wrote: I wrote a special app for this. It's free. It's called *)s) Repeat Vibrations*. In the Reference section. By simplecode.inc. Make sure you test it thoroughly before using it in

[android-developers] Re: Application Needed

2009-06-24 Thread bizzy401
Ok, the productivity sectionlol On Jun 23, 8:52 pm, sm1 sergemas...@gmail.com wrote: I moved it to the Productivity section. serge On Jun 23, 8:47 pm, sm1 sergemas...@gmail.com wrote: I wrote a special app for this. It's free. It's called *)s) Repeat Vibrations*. In the Reference

[android-developers] Re: Best approach for making one variable available in another activity / class

2009-06-24 Thread Christian S.
Just to confirm that this approach perfectly worked for me! Thanks again! On 22 Jun., 16:56, Christian S. schrott...@gmx.de wrote: Great - will try and let you know Ch. On 22 Jun., 16:40, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: //calling activity int count  = 0;

[android-developers] Ubiquitous Social Networks

2009-06-24 Thread mboehmer
Hello, social networks are nearly everywhere! Why should not we show social information on the surface of our everyday environment, like the floor for example? Drop me an email if your are interested in an Android application for projector phones doing exactly this. My current objective is to

[android-developers] Re: how to avoid the showing of prev,next buttons of MediaController

2009-06-24 Thread Marco Nelissen
If you have your own custom layout for the MediaController, then just remove the prev/next buttons from it. On Wed, Jun 24, 2009 at 7:59 AM, manoj manojkumar.m...@gmail.com wrote: Actually, I created a layout xml, and added the MediaController. On Jun 24, 7:45 pm, manoj

[android-developers] Re: Application Needed

2009-06-24 Thread sm1
maybe the easiest way to get the app: with your phone, open the Market app and do a search on simplecode. you'll see the app in a short list and select it and install it. The app name is *)s) Repeat Vibrations*, without the stars/asterisks. serge

[android-developers] Re: weird drawing on bitmap to canvas

2009-06-24 Thread MrChaz
setTextSize() and setStyle() need to be called on the Paint object I think. On Jun 23, 4:37 pm, sleith raysle...@gmail.com wrote: hi, i'm trying to draw bitmap in canvas. the bitmap is used to draw text and background using canvas (named canvasBitmap) but the text or background that are

Re : Re : [android-developers] Re: How to catch BOOT_COMPLETED_ACTION from an IntentReceiver

2009-06-24 Thread GAYET Thierry
Okay for your information. I have used class for a this BroadcatReceiver : public class OnBootReceiverextends BroadcastReceiver { private static final String TAG=BootstrapService; private BootstrapService mBootstrapService; @Override public void onReceive(Context context,

[android-developers] browser plugin development?

2009-06-24 Thread MikeDC
Are there any android focused tutorials for developing a plugin for the browser? I can find examples for webkit plugins but I want to try developing a plugin that will access resources on the phone so there is more to it than generic webkit requirements. Also, after compiling a plugin how can I

[android-developers] Problem with dialog title and dialog background

2009-06-24 Thread Tonio™
Hey, I'm facing a problem when trying to customize dialogs in my application. Here is the description. I have an activity louching a Dialog created as follow protected Dialog onCreateDialog(int id) { Dialog selectorDialog; View layout = getLayoutInflater().inflate(R.layout.MyLayout,

[android-developers] Design

2009-06-24 Thread Andy_Sthml
This is mainly a design question : My app connects to a server from where data is retrieved and presented in a listview. Depending on user-selection different data is retreived and filled in the list. A typical list item consists of a text string of up to some 50 or 60 characters depending what

[android-developers] Re: Porting RDP (Remote Desktop Protocol) to Android -- questions

2009-06-24 Thread Hugo Wang
Is there any java rdp client ? I suppose you can develop based on this? 2009/6/23 kirkbeaty kirkbe...@gmail.com Attempting to port RDP to Android ... saw someone had started this, Desktoid/Connectoid, but that effort seems to have stopped .. and I need this function immediately. I have

[android-developers] PhoneFactory.getDefaultPhone from apps other than PhoneApp

2009-06-24 Thread Naveen K
Hi, I am trying to call PhoneFactory.getDefaultPhone from a new application so that I can access its invokeOemRilRaw* functions. But it gives me a java.lang.RuntimeException: PhoneFactory.getDefaultPhone must be called from Looper thread error. Is this possible ? Or is this function dedicated

[android-developers] Inserting Data into a Cursor?

2009-06-24 Thread nbadal
Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the rest of the information from. Is there any way to to this, or is there a different way to add more information to a list view item? What I'm trying to do is to use a date column for

[android-developers] Out of memory exceptions and difference between emulator and hardware (dev phone)

2009-06-24 Thread lakuad
Hi, I have read a couple of threads about Bitmap creation and release using recycle() but still have a problem with an OOM when running my app (that creates bitmaps) on hardware - the dev phone 1 in this case. Multiple passes through my application screens work fine in the emulator but

[android-developers] Re: Problem with a AndroidManifest.xml for a service

2009-06-24 Thread julianc
This is just an observation but having CAPITALISATION in you're package names is not going to help you in the longer term. All package names should be lower case, Classes should start with and upper case letter. Then its a lot easier to figure out which is which, and your manifest (among other

[android-developers] Dueling Activities Over the Intent's Hand in Marriage

2009-06-24 Thread Ryan
There have been many posts concerning developers attempting to extend or overwrite Android's default applications: contacts, home, etc. These often end in an explanation of the user prompt that allows the user to decide upon the default activity to handle the intent. I understand and agree with

[android-developers] Dueling Activities Over the Intent's Hand in Marriage

2009-06-24 Thread Ryan
There have been many posts concerning developers attempting to extend or overwrite Android's default applications: contacts, home, etc. These often end in an explanation of the user prompt that allows the user to decide upon the default activity to handle the intent. I understand and agree with

[android-developers] Re: Mouse Events in Browser

2009-06-24 Thread Evan Ruff
Nothing on this? Is it really not possible? E On Jun 17, 6:49 pm, Evan Ruff evan.r...@gmail.com wrote: Hey guys, I was wondering if there was a way to use the mouse events in the Android Browser or in the Webview? I'd like to have mousedown/mouseup but if I could get drag events that would

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Marco Nelissen
You can have your own CursorAdapter, and in its bindView do whatever calculations and data mapping you need. On Tue, Jun 23, 2009 at 7:19 PM, nbadal ladabk...@gmail.com wrote: Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the

[android-developers] Re: browser plugin development?

2009-06-24 Thread Mark Murphy
MikeDC wrote: Are there any android focused tutorials for developing a plugin for the browser? I can find examples for webkit plugins but I want to try developing a plugin that will access resources on the phone so there is more to it than generic webkit requirements. AFAIK, you cannot

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
So if I wanted to intercept the date data from the database, then do my calculations, then send that number back out to a textview in the list item, what would I need to do? On Jun 24, 10:07 am, Marco Nelissen marc...@android.com wrote: You can have your own CursorAdapter, and in its bindView

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Mark Murphy
nbadal wrote: Hello, I'm looking for a way to insert data into a cursor that is separate from the SQL database it retrieves the rest of the information from. You do not insert into Cursors. You insert into the SQLiteDatabase or ContentProvider or other source of the Cursor. Is there any way

[android-developers] Re: Mouse Events in Browser

2009-06-24 Thread Mark Murphy
Evan Ruff wrote: Nothing on this? Is it really not possible? Few mobile phones have mice. You are probably looking for touch events or gestures: http://developer.android.com/reference/android/view/GestureDetector.html -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) { TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil); String days = /* Calculations Here */ daysUntil.setText(days); super.bindView(view, context, cursor);

[android-developers] Re: Mouse Events in Browser

2009-06-24 Thread Evan Ruff
LOL! Touche Mr. Murphy. I was referring to the OnMouseDown, OnMouseUp, OnMouseMove family of events in the browser. Are there Android Browser Equivalents that I'm just missing? Thanks! Evan On Jun 24, 1:16 pm, Mark Murphy mmur...@commonsware.com wrote: Evan Ruff wrote: Nothing on this? Is

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread Mark Murphy
nbadal wrote: Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) { TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil); String days = /* Calculations Here */ daysUntil.setText(days);

[android-developers] Re: Mouse Events in Browser

2009-06-24 Thread Mark Murphy
Evan Ruff wrote: I was referring to the OnMouseDown, OnMouseUp, OnMouseMove family of events in the browser. Are there Android Browser Equivalents that I'm just missing? Ah. I thought you were referring to the SDK events, not WebKit. A consulting colleague of mine did some investigation on

[android-developers] Re: Inserting Data into a Cursor?

2009-06-24 Thread nbadal
Alright, Thanks for the help! On Jun 24, 10:24 am, Mark Murphy mmur...@commonsware.com wrote: nbadal wrote: Would something like this work? @Override public void bindView(View view, Context context, Cursor cursor) {     TextView daysUntil = (TextView) view.findViewById(R.id.daysuntil);

[android-developers] Re: Design

2009-06-24 Thread Yusuf T. Mobile
Hi Andy. Some ideas are: - implement the simplest design first (i.e., load everything into memory) and profile early and often - iff (if and only if) and wherre (where and only where - I made that one up:) it croaks, some possible optimizations are: - don't put thousands of items on one list.

[android-developers] Skins / themes in app drawer

2009-06-24 Thread David Carson
ok there's one app who is a big offender here - I think anyone who uses it will know which one I mean - its in the top paid apps - all the skins appear in the app drawer. And yet I can sort of understand why he's done it - because you have a choice of either including these lines in

[android-developers] Using Picture recording creates bad memory allocation

2009-06-24 Thread David Carson
I use this approach for my main game loop because surface view is jerky and drawing direct to image misses the double buffer effects, so different parts of my image update at different times. Picture.beginRecording works very smoothly, but DDMS indicates bad memory allocation from the

[android-developers] Android tab not appearing in Eclipse

2009-06-24 Thread Morice
Hi all, I installed ADT plug-in in Eclipse 3.4(Ganymede)...Under installed software,it shows, =Android DDMS =Android Development tools When I checked Window-Preferences,there is no Android tab.There is no Android under Projects tab also... I can build applications through command line without

[android-developers] How to make a custom View having it's height = width ?

2009-06-24 Thread Tonio™
Hi guy, I'm trying to make my custom view looks like a square... I'm putting my view in a linear layout like this : LinearLayout - Header view - square view (my custom view) - footer view With the screen orientation set to Portrait *I would like my square view to have height the same as it's

[android-developers] Repo error

2009-06-24 Thread Sivan
Dear All, I am new to Git Repo. I am trying to download the Android source code using the below command from my Fedora machine repo init -u git://android.git.kernel.org/platform/manifest.git I am getting following error /root/bin/repo: line 1: !DOCTYPE: No such file or directory

[android-developers] Re: Wifi reconnects all the time while in background mode

2009-06-24 Thread othy74
I'm facing the same issue. Without manual intervention (switching wi- fi off and on again) it can sometimes take several hours for wi-fi to reestablish itself. Setting 'Wi-Fi sleep policy' to 'never' also does not seem to help. I assume this is the same as issue 2059. Any update on this?

  1   2   >