Re: [android-developers] how to set focus on the list

2010-09-09 Thread Romain Guy
Yes, you are correct. Pleas read this article to understand why: http://android-developers.blogspot.com/2008/12/touch-mode.html On Wed, Sep 8, 2010 at 10:56 PM, cindy ypu01...@yahoo.com wrote: I display a list on screen, how could I set focus on one list item? It seems in touch mode, it is

[android-developers] Re: TCP Client Issue

2010-09-09 Thread Vinod
Dear All How can we configure TCP Window Size for FTP data transfers in Android ? Also, MTU change in Android will be very useful for my work Kind regards Vinod On May 19, 6:10 am, Bobbie bobbie.st...@gmail.com wrote: I am running aTCPclient as a service.  Every 15-20 minutes, the service

[android-developers] Create Thumbnail.

2010-09-09 Thread dhrumil
Hello 2All, I create one Gallery Example. In that If I want to do Thumbnail like display what is d code.? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-09 Thread Federico Paolinelli
On 9 Set, 00:51, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Just kill the listener in the onStop or onDestroy (depending how you structure your app) methods. That works pretty well. -John Coryat Well, what I need to do is to react to changes of location in background too, so it is

[android-developers] Re: build different version of android

2010-09-09 Thread Jason
The above-mentioned link should give you all you need to produce a multi-version app. Basically what it's saying is that you refer to any version-specific API's using java reflection. So there is no compile-time dependency with the later API's, and the code will only load these classes at

[android-developers] Re: Killing all the activities that was started by my application.

2010-09-09 Thread Indicator Veritatis
But as M. Murphy rightly pointed out, 'dismiss' here cannot mean merely send to the background; it means cause the system to destroy the activity. That is not the same. Whether the difference is relevant to the OP is a question the OP must answer. We cannot answer it for him. On Sep 8, 11:14 am,

[android-developers] Re: TCP Client Issue

2010-09-09 Thread Jason
@Bobbie: According to the doco (http://developer.android.com/reference/android/ app/Service.html#ServiceLifecycle) on services: Note this means that most of the time your service is running, it may be killed by the system if it is under heavy memory pressure. If this happens, the system will

[android-developers] Re: Fetch recurrent events

2010-09-09 Thread Indicator Veritatis
Absolutely right. And your 'snarkiness' is fully justified. Nobody should be using a private API that Google has advised against using. Why, it is extremely rare that one should use a private API at all, since the basic policy of Google on undocumented Android code is subject to change without

[android-developers] Re: ProtocolException while HTTP POST

2010-09-09 Thread Jason
Usually this means the protocol portion of the URL is not valid. So for example in http://www.google.com;, the protocol is HTTP. As Veritatis says, your URL is probably invalid. If it's indeed an HTTP url, make your you prefix it the http:// or https:// as it may barf if you try just

[android-developers] Re: Gallery popup menu

2010-09-09 Thread Indicator Veritatis
Больно читать такое искажение английского языка! Вы написали бы, Click on any button and a balloon menu appears. On Sep 7, 6:07 am, viktor victor.scherb...@gmail.com wrote: Not exactly context menu, this menu seems like as balloon. I cant see this menu on emulator but on devise 2.2 is there.

[android-developers] Removing the default selection of EditText in Froyo 2.2

2010-09-09 Thread Archana
Hi How can we remove the default selection of editText.while I am switching over to another page(which contain edit text) EdiText is getting focussed and keyboard is pop up.. I want to remove this behaviour .. for that I created Empty textview and set focus for that.. below is code which i used.

Re: [android-developers] Re: TCP Client Issue

2010-09-09 Thread Kostya Vasilyev
Why do you think you need these? And how changing the MTU from the default would be useful? -- Kostya 09.09.2010 10:09, Vinod пишет: Dear All How can we configure TCP Window Size for FTP data transfers in Android ? Also, MTU change in Android will be very useful for my work Kind regards

Re: [android-developers] Re: Timer in an App

2010-09-09 Thread Kostya Vasilyev
09.09.2010 8:32, chetan пишет: Now my question , would the set alarm persist after reboot of phone ? Thanks Chetan Chauhan No, it won't. The way handle it is to implement code to receive BOOT_COMPLETED broadcast, and start the alarm (and perhaps the service) then. -- Kostya Vasilyev --

Re: [android-developers] Notification text expand to two lines

2010-09-09 Thread Kostya Vasilyev
A custom notification view has already been suggested. But it may work just as it is, if you use \n instead of the /n you have now (assuming it's not a typo in the email only). -- Kostya 08.09.2010 23:54, Albert пишет: Helllo there, Is there any settings/flags to expand the summary text

[android-developers] XML schema for http://schemas.android.com/apk/res/android namespace

2010-09-09 Thread William Ferguson
Is there an XML schema against which all the Android config objects that declare the http://schemas.android.com/apk/res/android name space can be verified against? If so, where? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: How to customize quick search box? can i add another button?

2010-09-09 Thread RKJ (Android developer)
Hi, I also wants to add 4 button on google default search screen, any body help me. On Aug 5, 7:27 pm, Premier a.grum...@gmail.com wrote: Hello, i'm using android qsb feature in my app. Qhen user click len button on hes keyboard, i open quick search box with one input box and one button. I

[android-developers] Re: How to automatically restart widget update service after it is killed?

2010-09-09 Thread ko5tik
I use scheduled alarm, which apparently can not be killed and enable them after boot - it seems that widget gets onOnabled() on first display. I was unable to prove this through documentation through, and it seems that scheduled alarms do not survive package reinstall. regards, -- You received

[android-developers] Re: Fetch recurrent events

2010-09-09 Thread Jens
That would be the PITA-part wouldn't it. And he's not using any undocumented Android code, he's accessing a provider through the standard API:s, which is all well and manageable as long as you observe basic hygiene and check that the provider is actually installed and providing the columns you

[android-developers] Re: eclipse - importing image into res folder

2010-09-09 Thread Goodwin
1. copy and past the image 2. lower dpi . middle dpi , high dpi for the images. On 9月9日, 上午7时30分, dashman erjdri...@gmail.com wrote: beginner question... in eclipse, how do i import an image from my computer into the project. the template generator created 3 separate drawable folders - i

[android-developers] RuntimeException retrieving resource

2010-09-09 Thread William Ferguson
I'm getting a RuntimeException when trying to retrieve a Resource Here is the code that is failing. It is contained in the constructor of one of my views: final int vibrateMillis = this.getResources().getInteger(R.attr.button_vibrate_millis); Here is the definition of the resource in

[android-developers] Possible (and not possible) customization of the Tab component

2010-09-09 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello. I've got an Activity with a Tab component, whose layout is shown below. I need to do some customizations and I'd like to know what it's possible to do and what not - in the latter case, I'll consider dropping the Tab component and emulating

[android-developers] Re: Notification text expand to two lines

2010-09-09 Thread Albert
I have implemented the custom notification successfully. Thank you all for your help. /n was a typo :D Cheers, Alberto On Sep 9, 8:30 am, Kostya Vasilyev kmans...@gmail.com wrote:   A custom notification view has already been suggested. But it may work just as it is, if you use \n instead

[android-developers] Re: maps app returning a null pointer exception

2010-09-09 Thread SREEHARI
Hi Anu, Pls share the log details, where u get the exception. Regards, SREEHARI -- 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,

Re: [android-developers] eclipse - importing image into res folder

2010-09-09 Thread { Devdroid }
On 9 September 2010 01:30, dashman erjdri...@gmail.com wrote: in eclipse, how do i import an image from my computer into the project. Copy it to drawable resource folder (you may need to do RMB - Refresh it let eclipse know) or just drag image files to eclipse project tree and drop into

[android-developers] Using WebView with local data

2010-09-09 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm using WebView to render a simple HTML document that I've loaded in memory from a file. The document contains non-latin characters, and I can say they are correctly loaded since if I put it into a regular TextView, all the text is properly

Re: [android-developers] Re: Fetch recurrent events

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 4:36 AM, Jens dunkingbikk...@gmail.com wrote: And he's not using any undocumented Android code Yes, he is. he's accessing a provider through the standard API:s The provider itself is undocumented. It is not even part of the operating system.

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 2:30 AM, Federico Paolinelli fedep...@gmail.com wrote: What I need to know (and probably I wasn't so clear) is: Will the locationmanager fire the pending intents even if the caller of requestLocationUpdate was killed? AFAIK, it should, as that is typically how the

[android-developers] How to Accept and Cancel incoming call on Version 1.6,2.2

2010-09-09 Thread Abhit Nigam
Hi all, I am stuck with this task since more then one week, Please tell me if any know how to give these actions over my native in-call screen which is the replacement of the native screen. I got success to launch my custom screen over native incall screen but can't able to provide call accept and

Re: [android-developers] XML schema for http://schemas.android.com/apk/res/android namespace

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 3:53 AM, William Ferguson william.ferguson...@gmail.com wrote: Is there an XML schema against which all the Android config objects that declare the http://schemas.android.com/apk/res/android name space can be verified against? No, sorry. It's not even possible in many

Re: [android-developers] how do you forcibly turn *on* the display....

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 1:32 AM, sdphil phil.pellouch...@gmail.com wrote: when an event occurs, I want to forcibly turn the display *ON*. i tried grabbing a FULL_WAKE_LOCK from the power manager power service, but it still didn't work.  i am turning the display off by hitting the power button

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-09 Thread Federico Paolinelli
In this way I would use the resources only after the event I am interested to (the change of the location) and could prevent me to keep a service always running with an active location listener. Bear in mind that the battery cost of the GPS radio being on will swamp any other battery costs.

Re: [android-developers] Re: LocationManager requestLocationUpdates and pending intents

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 8:34 AM, Federico Paolinelli fedep...@gmail.com wrote: Would this be true also for coarse locations? If you mean the network provider, that should be a lot less, but I haven't experimented much with this provider. Another option could be periodically starting a service

[android-developers] Coordinates of touch/click on Home Screen Widget

2010-09-09 Thread Tomáš Hubálek
Hello, I have a widget and I would like to detect position where user click on some part of the widget's bitmap. I didn't found any way how to detect coordinates of the touch on RemoteViews. Is anybody aware of some trick how to detect it. Only idea I have is create layout with grid of

Re: [android-developers] Coordinates of touch/click on Home Screen Widget

2010-09-09 Thread Mark Murphy
2010/9/9 Tomáš Hubálek tom.huba...@gmail.com: I have a widget and I would like to detect position where user click on some part of the widget's bitmap. I didn't found any way how to detect coordinates of the touch on RemoteViews. Correct -- there isn't any, AFAIK. Only idea I have is

[android-developers] How to send email with pictures attachment

2010-09-09 Thread Rammi
Hi Friends, for the last two days i am trying to attach a picture to email the picture is taken from camera after that i am storing the image into sd card then using the sd url in the email intent Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.setType(image/jpeg);

[android-developers] Re: Fetch recurrent events

2010-09-09 Thread Tomáš Hubálek
Mark, This is correct what are you talking about but Android world is absolutely not ideal. it is full of workarounds and if it weren't then it would be much worse place to live. Android Market is full of programs that are misusing API (eg. all task killers) for something that it was not

[android-developers] Re: Coordinates of touch/click on Home Screen Widget

2010-09-09 Thread Tomáš Hubálek
Only idea I have is create layout with grid of transparent buttons, put by widget's bitmap as background of such a layout and to every button set PendingIntent. I'd worry about the potential performance implications on the home screen for having that complex of an app widget. Otherwise,

Re: [android-developers] Re: Coordinates of touch/click on Home Screen Widget

2010-09-09 Thread Mark Murphy
2010/9/9 Tomáš Hubálek tom.huba...@gmail.com: Thanks for answer. I'm thinking about quite small grid (about 15 or so buttons in total). Oh, that shouldn't be a problem. I was thinking you were aiming for thousands. BTW, you don't need them to be buttons. Anything can trigger the click

Re: [android-developers] Re: Coordinates of touch/click on Home Screen Widget

2010-09-09 Thread Tomáš Hubálek
OK, thanks a lot. Tom On Thu, Sep 9, 2010 at 3:11 PM, Mark Murphy mmur...@commonsware.com wrote: 2010/9/9 Tomáš Hubálek tom.huba...@gmail.com: Thanks for answer. I'm thinking about quite small grid (about 15 or so buttons in total). Oh, that shouldn't be a problem. I was thinking you

[android-developers] Re: How can I delete the black shadow above framelayout in the tabwidget

2010-09-09 Thread DaPhilz
OK I solved the problem. The following code fix that problem. TabHost android:id=@android:id/tabhost android:layout_width=fill_parent android:layout_height=fill_parent android:background=@android:color/ transparent RelativeLayout android:layout_width=fill_parent

[android-developers] Is it possible to change colors.xml file at runtime?

2010-09-09 Thread Chister Nordvik
I have an application where I would like the users to be able to change the theme. Currently my layout have elements like this: LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/background_transparency what I

Re: [android-developers] Is it possible to change colors.xml file at runtime?

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 9:23 AM, Chister Nordvik cnord...@gmail.com wrote: I have an application where I would like the users to be able to change the theme. Currently my layout have elements like this: LinearLayout android:orientation=vertical  android:layout_width=fill_parent

[android-developers] How to make screen shoots with an android device?

2010-09-09 Thread Lidy
Hello, Can anyone tell me please how can i make screen shorts with an android device. I have to test an application,and to make screen shorts on it. and i need and screen short tool that will run in the background, while i am running my application. Is it possible. Please give me an advice, a

Re: [android-developers] How to make screen shoots with an android device?

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 9:48 AM, Lidy lidyp...@yahoo.com wrote: Can anyone tell me please how can i make screen shorts with an android device. I have to test an application,and to make screen shorts on it. Use DDMS. and i need and screen short tool that will run in the background, while i am

[android-developers] Re: how do you forcibly turn *on* the display....

2010-09-09 Thread sdphil
awesome! thanks! you rock mark! (and I should rtfm :-) On Sep 9, 5:27 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 9, 2010 at 1:32 AM, sdphil phil.pellouch...@gmail.com wrote: when an event occurs, I want to forcibly turn the display *ON*. i tried grabbing a FULL_WAKE_LOCK

Re: [android-developers] Re: Fetch recurrent events

2010-09-09 Thread TreKing
2010/9/9 Tomáš Hubálek tom.huba...@gmail.com Android Market is full of programs that are misusing API (eg. all task killers) for something that it was not intended (and they make live significantly worse for all widget authors), there is a lot of programs that use undocumented API (including

[android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Lidy
No i need an screen short application for non developer users. e.g, i am using only my android phone, (not eclipse, or PC) and i am running an application. I need to make screen shorts for this phone, especially for the application i am running and testing. On Sep 9, 3:50 pm, Mark Murphy

Re: [android-developers] App Widget with AlarmManager... full example source?

2010-09-09 Thread Rich Allen
Thanks Mark, I was able to get the alarm manager working with the help you provided. I appreciate it! Rich On 9/8/2010 7:58 AM, Mark Murphy wrote: My widget currently has a service with a function called buildUpdate that returns a RemoteViews object. To enable 5 minute updates, I need to: -

Re: [android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 10:07 AM, Lidy lidyp...@yahoo.com wrote: No i need an screen short application for non developer users. I am not aware of there being one, though it is certainly possible. e.g, i am using only my android phone, (not eclipse, or PC) and i am running an application. I

[android-developers] Re: how do you forcibly turn *on* the display....

2010-09-09 Thread GJTorikian
I always follow Diane's suggestion when I need a screen on: http://groups.google.com/group/android-developers/msg/0ad1a089678cda24 I could never get my wakelock to work right. On Sep 9, 6:53 am, sdphil phil.pellouch...@gmail.com wrote: awesome!  thanks!  you rock mark!  (and I should rtfm :-)

Re: [android-developers] Re: build different version of android

2010-09-09 Thread TreKing
On Thu, Sep 9, 2010 at 12:19 AM, cindy ypu01...@yahoo.com wrote: Don't get it. Don't get what? Do you expect to get help this way? Anyone know the solution I just gave it to you. - TreKing

Re: [android-developers] Re: how do you forcibly turn *on* the display....

2010-09-09 Thread Mark Murphy
On Thu, Sep 9, 2010 at 10:35 AM, GJTorikian gjtorik...@gmail.com wrote: I always follow Diane's suggestion when I need a screen on: http://groups.google.com/group/android-developers/msg/0ad1a089678cda24 I could never get my wakelock to work right. That's a fine solution for an activity to

[android-developers] Re: Gallery popup menu

2010-09-09 Thread viktor
Thanks TreKing, I did this menu, it is really looks nice. On 8 Вер, 18:33, TreKing treking...@gmail.com wrote: On Wed, Sep 8, 2010 at 4:15 AM, viktor victor.scherb...@gmail.com wrote: Any ideas how to do that menu Did you even look at the link I posted?

[android-developers] AlertDialog with customized ListView

2010-09-09 Thread dave
Hi, I am playing with the AlterDialog with a customized ListView in it. After the ListView is added into the AlterDialog, there is a centered gradient separator line below the title of the alter dialog, it is just above the ListView. Is there any way to get rid of it or change its color ? I do

Re: [android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/9/10 16:20 , Lidia G wrote: Thank you Have a look at this thread: http://groups.google.com/group/robotium-developers/browse_thread/thread/c5cf28ef88918d7d/38a80fd483c114df?hl=enlnk=gstq=Need+help+to+take+screen+shot#38a80fd483c114df - --

[android-developers] Re: Is it possible to change colors.xml file at runtime?

2010-09-09 Thread Chister Nordvik
Resources cannot be modified at runtime. However, there is nothing preventing you from creating a getCustomColor() method somewhere that looks for your override value and returns it, otherwise returning the color resource value. But then I would need to set all my colors at runtime. Is there

[android-developers] subscribing to SMS messages

2010-09-09 Thread Bret Foreman
I have a data provider who pushes out a new access key from time to time via SMS. Currently, my users have to copy and paste from the SMS message into my application preferences. The SMS message with the new key has a prefix along the lines of Thank you for being a customer of X. Here's your

Re: [android-developers] Re: Monkey problems -- **URGENT HELP** --

2010-09-09 Thread TreKing
On Wed, Sep 8, 2010 at 10:04 PM, Tez earlencefe...@gmail.com wrote: I have some important work that depends on whether this component with monkey works. I'm not trying to be rude, but however important this may be for you really does not make this urgent - I doubt someone's life depends on

[android-developers] Quick Contact Window integration like Facebook and Twitter

2010-09-09 Thread Nik Bhattacharya
I would like to add an quick contact option to the Quick Contact window that displays for a contact. How do I get this option to show up when the user taps on a contact? I looked at the Facebook and Twitter applications and can see that they have this: Facebook: activity

[android-developers] Help with GridView, ImageAdapter and Custom Drawable

2010-09-09 Thread Evan Ruff
Hey guys, This is my first stab at programmable graphics on Android and I'm running into some LifeCycle issues (I think). If any of the gurus on the board could point me in the right direction, I'd appreciate it. Here's the scenario: 1. Dialog box that contains a GridView. 2. GridView contains

[android-developers] On a list view item onTouch event x co-ordinate is negative on swipe to left

2010-09-09 Thread dipu
I have a list view with list item that has one CheckBox and two TextViews. I have set on touch listener to each of these widgets. Now when I do swipe to right the x co-ordinates are recorded correctly by the onTouch event listener. When I do swipe to left it shows negative value for x co-ordinate.

Re: [android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Jeremy Wadsack
I find it surprising that the Android system can't do this natively. It's built into the iPhone (although it's not intuitive or discoverable and possibly not programmable). That said, the solution Renas provides in that thread is straightforward and easy. I'll keep that as a snippet. Following on

[android-developers] Know if my Alarm is active

2010-09-09 Thread Albert
Hi, Is there a way to know if a previously set alarm is still active and ready to go off? I'm currently saving the alarm state in a SharedPreferences but it would be a lot more reliable to be able to directly check on the alarm itself. Trying to detect this scenario: -Service schedules the alarm

Re: [android-developers] Re: How to make screen shoots with an android device?

2010-09-09 Thread Kostya Vasilyev
This came up before on this list (use search). Giving arbitrary applications the ability to take screenshots is considered by Android team to be a security risk. There are applications in Market that can take screenshots, but they all require root-ed firmware. However, supposedly on some

[android-developers] custom font

2010-09-09 Thread nishu
hi! i want to use Algerian font in my application. i have tried TextView txt = (TextView) findViewById(R.id.text1); Typeface font = Typeface.createFromAsset(getAssets(), @fonts/ ALGER.TTF); txt.setTypeface(font); but no use. How could i do this, i use netbeans and android sdk Please help me.

[android-developers] Table layout or list view?

2010-09-09 Thread Varun Khanduja
Hello, I am looking for some opinion and advice from the group members will be very helpful. I have a page having tab view, in this tab view every tab is having certain number of rows, these rows are categorized with a heading. Now these number of rows could be variable. Is it best to direct my

[android-developers] Android Native Code Profiling

2010-09-09 Thread Victor Kruglikov
Dear All, Does the Android has any way, for the profiling native code on REAL device. I know about traceview but it's seems only suitable for java applications. I also heard about the option -profile for emulator, how can I use it with a real device? Is it possible to be used a gcc -pg? or any

[android-developers] Re: Variable number of settings

2010-09-09 Thread MathiasL
If anyone knows where to get the source code for the WiFi selector that would also be most helpful. For hints on how stuff is done in the WiFi selector you can start your investigation here. http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=tree I'm not sure you'll find

[android-developers] Re: Dynamically load jar files in android runtime?

2010-09-09 Thread Peter Sinnott
I think under the hood android does not support java bytecode. Instead it uses dex files which I presume contain bytecode for the Dalvik virtual machine. Possibly you can compile your jar to a dex file and load that dynamically. On Sep 8, 8:45 am, CaryWang wangjf...@gmail.com wrote: I have a jar

[android-developers] notifyDataSetChanged doesn't work?

2010-09-09 Thread Mur Votema
Hello people, I write following application: - there is an AutoCompleteTextView field - as Adapter I'm using ArrayAdapter with ListArray - the ListArray consists of some constant string item and one item, which will be changed dynamically everytime user typed something in the field I took

[android-developers] Re: Lat Long value using zip code or city name

2010-09-09 Thread James Elsey
You can use the android geocoder to do that http://developer.android.com/reference/android/location/Geocoder.html however it seems that it currently works only on devices, and not emulators (I too am getting this behaviour) http://code.google.com/p/android/issues/detail?id=8816 On Sep 8, 2:07 

[android-developers] cannot import class in AIDL file

2010-09-09 Thread raja
I'm writing an AIDL file which would import local class in the same package. The AIDL file is as below package com.adc import com.adc.CClass interface ...{} when compiling, I encounter the issue that couldn't find import for class com.adc.CClass I think that I should set LOCAL_AIDL_INCLUDES in

[android-developers] getting View reference from Intent

2010-09-09 Thread Luca Morettoni
Hello list, I create a tabbed view with a list and a map, this is the code used to build the tab: tabHost = getTabHost(); TabSpec tabSpec = tabHost.newTabSpec(tab_map); Intent i = new Intent().setClass(this, MyMapActivity.class); tabSpec.setIndicator(Map,

[android-developers] Update Intents in TabHost Tabs

2010-09-09 Thread BW
Hello, I am building an app that has a TabActivity with a TabHost that includes 2 TabSpecs (Maps, List). When the user moves, I want to update the items shown on the map / in the list. I built a service that sends the relevant data (an ArrayList) onLocationChanged(). The TabActivity can use the

[android-developers] Re: One day sale made my paid app free, now I cannot revert!

2010-09-09 Thread steveneHP
Agreed. I experienced this during one of Google's payment processing outages, trying to make the app free for one buyer. Luckily I didn't have that many users, now having to convert them all over to a different package name after unpublishing the first app. I know it would be _way too

[android-developers] Android NDK has a bug in socket recvfrom ????

2010-09-09 Thread HISONA
Hello, Android Developers I programmed a udpserver sample program wich Android NDK (version android-ndk-r4b). When, I call recvfrom function, but struct sockaddr *addr parameter returns NULL value. This is output of below sample code.. ./udpserver read from 0.0.0.0:0 .. It works well when I

[android-developers] How to try to get connection via mobile network

2010-09-09 Thread Marc
Hi, I'm building an application for my own use, and I like to get connection via mobile network but I don't know how to do that. What I want is the same behaviour that offers severals existent widgets to turn on/off the data connection. Anybody can illuminate me please? Some code?? Any page with

[android-developers] How to split ONE app-Activity screen into two SurfaceView?

2010-09-09 Thread muchSpring
Has anyone successed to split app screen into TWO area to draw something in them with SurfaceView within ONE app? I am trying to make Android app imitate, just like, Nintendo DS's dual screens. I would like to achieve same behavior on Android app and use each of them in different roles. For

[android-developers] Unable to connect to one server using HttpsURLConnection

2010-09-09 Thread BASU PETLUR
I wrote this HttpsURLConnection con = (HttpsURLConnection) new URL(Here my server URL is provided).openConnection(); con.setDoOutput(true); con.setDoInput(true); con.connect();// at this point im geting error saying

[android-developers] Javascript, WebView, and arrow keys.

2010-09-09 Thread Ken Perry
The following question has to do with Froyo 2.2 sdk 8 running on an emulator. I am injecting Javascript into a web page and in the WebView activity I get 19, 20, 21, and 22 for key codes for arrow keys. At the Javascript level all four arrow key values in a keydown handler come in as zero.

RE: [android-developers] Re: How to debug web page on device?

2010-09-09 Thread Ken Perry
I think you're doing it the same way I am. I use addJavascriptInterface to add logging class to any JavaScript I write. Then I can use the Android Java log class to write to the log cat. I tag the logs with the keyword javascript so I get a nice neat list of whatever I want to see. Ken

[android-developers] Re: sending c2dm: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found.

2010-09-09 Thread Wei Hsu
I am getting the same error as you when sending a POST to https://android.apis.google.com/c2dm/send: java.security.cert.CertificateException: No subject alternative DNS name matching android.apis.google.com found. Can you update me if you've found a solution? Thanks, Wei On Aug 12, 1:39 pm,

[android-developers] Is it possible to use com.android.phone.EditPhoneNumberPreference widget in my app

2010-09-09 Thread MathiasL
I just realized i might have posted this question in the wrong group, hence I try again. I'm writing an app where the user should be able to enter a phone number, or choose one from Contacts. I've found a preference widget that does exactly what I want. The problem is that I don't know how to

[android-developers] Can't select contact(s) on platforms 2.0 and above.

2010-09-09 Thread Juan Baez
I am having issues having the user selecting a contact via the Intent ACTION_PICK with the URI People.CONTENT_URI for Android platforms 2.0 and above. I create a new intent with the action Intent.ACTION_PICK for the URI People.CONTENT_URI -- from there I send a managedQuery to get a cursor with

[android-developers] How to handle Home Key in our Activity

2010-09-09 Thread AnnuDroid
How to handle Home keyPlzz Help me outWe can handle Home buttonif you have seen the Nexus One device...when u reset the phone ..and switch it on again some tutorials kind of thng comes..at that time wen u press the home button its not taking u to the Launche Activity...if its not

[android-developers] Accounts Authenticators

2010-09-09 Thread Agile
Hello, I am just wondering why the email client application included with 2.2 on the Nexus doesn't use the default Authenticator Framework as for the gmail/facebook/twitter/exchange ... Thanks Regards Gilles -- You received this message because you are subscribed to the Google Groups

[android-developers] NotepadV3 Issues

2010-09-09 Thread Olly
Hi, I am only a beginner to Android, but I have noticed a number of things that seem a little strange in the third notepad tutorial: - The tutorial explicitly states that you need to call saveState from BOTH onSaveInstanceState and onPause. Is this really necessary? It seems to me from reading

[android-developers] Better Dev Tools

2010-09-09 Thread KPK
Hello Google: I'm sure I'm not the first one to say this, but for goodness sakes, we need a very good Android UI builder plugin for Eclipse or whatever other java tools developers are using (I use Eclipse). A nice toolbox docked on the side where I can drag and drop controls to the screen/form

[android-developers] Re: java.lang.NullPointerException when trying to edit strings.xml

2010-09-09 Thread David
Cycling Eclipse is the solution to using the uncheck Inferred Grammer solution. Works like a charm. One betterthe solution from Alexandre is the ticket!! Cheers all New Android Developer, David On Sep 7, 7:15 pm, Nitin Dahyabhai nitin.dahyab...@gmail.com wrote: On Tue, Sep 7, 2010 at

[android-developers] Re: Android 2.2 - width=device-width No Longer Working

2010-09-09 Thread Parag
I think we now need to use the following tag meta name=viewport content=target-densitydpi=device-dpi / On Sep 7, 3:21 pm, icedogchi icedog...@gmail.com wrote: Not sure, but I have a site that looked flawless with 2.1.  Now with Froyo, the site is all squished up and the fonts are all sized

Re: [android-developers] Re: Bug in minSdkVersion or what?

2010-09-09 Thread David Linse
same here.. shows up under Just Testing running Froyo on a HTC Rhodium (de).. regards On Wed, Sep 8, 2010 at 9:59 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 8, 2010 at 3:52 PM, Gustavo gumat...@gmail.com wrote: My apologies for not saying the app name, I named it Just testing.

Re: [android-developers] Re: Android 2.2 - width=device-width No Longer Working

2010-09-09 Thread James Short
You think or you tested it out and it works? On Wed, Sep 8, 2010 at 10:13 AM, Parag parag.bhag...@cgi.com wrote: I think we now need to use the following tag meta name=viewport content=target-densitydpi=device-dpi / On Sep 7, 3:21 pm, icedogchi icedog...@gmail.com wrote: Not sure, but I

[android-developers] Customising ListPrefernces Dialog

2010-09-09 Thread swapnil.kolhapur
Hi , I want to change view for Dialog used in ListPrefernces . I want to change radio button images and background color for the dialog. How i can achive this? Thanks and Regards, swapnil -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] I have a question about the optionmenu for TabActivity

2010-09-09 Thread River
There's a tab which contains an Activity ,in the TabActivity.I have already override the onCreateOptionMenu and the onPrepareOptionMenu method of the tabactivity.However,when I changed to the tab that contains Activity,I can't open the optionmenu by press the menu button.Why,and how can I slove

[android-developers] How can i play swf-files (flash) in my program? Webview?

2010-09-09 Thread Xtreme
How can I play swf-files (flash) in my program? I have tried webview (that is working) with this html-code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta

[android-developers] Background Service to recode different activities and upload on server

2010-09-09 Thread David Harris
Hello, I want to know that how i can get these things in android Recording of Calls Appointment/Calendar Logging Bookmark Logging Browser History Logging Contact Details Location Through SMS SIM Change Notification and after getting these things in a file (.txt, xml, or CSV) how i can upload

[android-developers] Clear TableLayout table

2010-09-09 Thread Martin
I wonder if anyone knows how I shall clear and update a table on a screen. I have a TableLayout with a few rows that I create dynamically. Then I want to update that data with an update option from the Menu. Do I have to create a new activity and recreate the table or is it possible to clear it

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-09-09 Thread Julius
Ideally, as a user, I would like to: 1. Have app developers be able to note specifically what each permission they are requesting is for. 2. On install, have the ability to 'uncheck' any permission that I don't feel comfortable with (otherwise would install with default requested permissions).

[android-developers] [Android-Developers] HW Requirements for Android based embedded device?

2010-09-09 Thread Praveen Pundeer
Hi Friends, I have a question. What are the hardware requirements for Androind based embedded deivices? What is RAM 7 ROm size? What is the processor speed etc.? How this depends on features to be supported in the embedded device? If we say that Android is needed only for GUI purpose then what

[android-developers] How to enable FTS3 module for SQLite

2010-09-09 Thread Pablo López
Hi everyone, I am trying to use FTS3 queries but I get the following error: 09-09 09:10:23.740: ERROR/Database(271): Failure 1 (no such module: ft3) on 0x222678 when executing 'create virtual table' 09-09 09:11:13.230: ERROR/AndroidRuntime(271): FATAL EXCEPTION: main 09-09

  1   2   3   >