[android-developers] Re: how to dynamic create a imageview on widget?

2010-06-02 Thread Nithin
What do you mean by creating dynamic ImageView on a widget, ImageView itself is a widget in "android.widget" package. Nithin On Jun 3, 9:43 am, "[G]" wrote: > hi all, > >    i want to  dynamic create imageview on a widget.  how can i do > this? > > thanks a lot > > grays -- You received this

Re: [android-developers] Set wallpaper as background

2010-06-02 Thread Rajiv
You can also do it as: WallpaperManager wlp = WallpaperManager.getInstance(*this*); Drawable d = wlp.getDrawable(); textView.setBackgroundDrawable(d); Regards, Rajiv On Thu, Jun 3, 2010 at 11:47 AM, Ericson, Anders < anders.eric...@sonyericsson.com> wrote: > Hi, > > In your "AndroidManifest.x

[android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread FrankG
Hello Dianne, I would not agree with "USB connection is not intended for application use". IMHO the different vendors are forced to support MTP, Pictbridge and the other usb stuff also on their android mobiles and with certain apps. Thanks ! Frank On 3 Jun., 00:33, Dianne Hackborn wrote: >

[android-developers] read birth date from contact list in Android-1.6

2010-06-02 Thread Nemat
Hi.. How can we read birth date from contact list in SDK-1.6 and 1.5?? Any help will be appreciated... Thanks in Advance Nemat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

RE: [android-developers] Set wallpaper as background

2010-06-02 Thread Ericson, Anders
Hi, In your "AndroidManifest.xml" you can add this to your activity: android:theme="@android:style/Theme.Wallpaper" /Anders -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of AndroidNewbie Sent: den 3 juni 2010 05:49 To

[android-developers] Re: Map is not dispalying in the android emulator

2010-06-02 Thread Rahul
Hi, Can you plz post some code so that all the developers could evaluate the code and tell you the mistake you made. Hope that you have generated the API key correctly. If you are looking for some sample code then you can mail me... On Jun 3, 9:44 am, aswini wrote: > Hi , > > I am new to this g

[android-developers] Re: How to know the reason that causes the activity destroyed

2010-06-02 Thread Gibson
I guess one of the reason maybe due to the screen orientation changed? On Jun 3, 6:53 am, Jiang wrote: > One of my Activity is restarted automatically (that is onDestroyed() is > called, and then onCreate(xxx) is called as well). > > And I found following matters before Acviity is destroyed: >

[android-developers] Re: Map is not dispalying in the android emulator

2010-06-02 Thread Nithin
Can you become more clear, Map not displaying means, whether its showing tiles or something else. What exactly happening when launching your application ? Anyway, check you give proper permission, for internet, for google map library and for getting location. Nithin On Jun 3, 9:44 am, aswini wr

[android-developers] Re: Can't we add shared libraries without use of android ndk tools

2010-06-02 Thread karteek
Hi, I used the following commands to create shared library arm-none-linux-gnueabi-gcc -fpic -c sample.c arm-none-linux-gnueabi-ld -T armelf_linux_eabi.xsc -shared -o libmylib.so sample.o Now it is working. But problem is If iam using any c functions like fgets,strcpy It is unable to load my shared

[android-developers] Creating streams for in memory data

2010-06-02 Thread qwesthead
We've a stream of data that gets created in byte array continuosly, that gets generated in our code and that should be consumed from another module that uses a third party library. The third party library apis takes only Inputstream as a parameter in the API. Is there a way I can write the bytes i

[android-developers] How to know the reason that causes the activity destroyed

2010-06-02 Thread Jiang
One of my Activity is restarted automatically (that is onDestroyed() is called, and then onCreate(xxx) is called as well). And I found following matters before Acviity is destroyed:  - onLowMemory() is not called  - onConfigurationChanged(xxx) is not called  - inOnDestroy(), method isFinishing()

[android-developers] Maven and Android

2010-06-02 Thread Nando Android
Hi all, Is there any documentation out there that shows examples on how to start Android projects with Maven? I like Eclipse to develop and debug but I like to use Maven to create the project and control which jars are on the repository and need to be fetched from the Internet. Any suggestions o

[android-developers] Map is not dispalying in the android emulator

2010-06-02 Thread aswini
Hi , I am new to this group; I would like to share my problems in this group. I am trying to develop small map application in android emulator. Initially I have generated the API key, by using that key I have tried to view the map in the android emulator window (I have referred http://www.vogella.

[android-developers] how to dynamic create a imageview on widget?

2010-06-02 Thread [G]
hi all, i want to dynamic create imageview on a widget. how can i do this? thanks a lot grays -- 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 fr

[android-developers] Re: Omap 3530 evm

2010-06-02 Thread PP
Hi Frank, Thanks for the reply. The build did not crash without the USB cable. Without the USB cable connected to the host, i was able to get the Android boot screen. I got the prebuilt images from the site, http://code.google.com/p/rowboat/. Could there be some problem with the kernel image of t

[android-developers] Set wallpaper as background

2010-06-02 Thread AndroidNewbie
Hi , I want to set current wallpaper as my application background . Any ideas to do it through XML or Java 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 u

[android-developers] Re: AutoCompleteTextView woes

2010-06-02 Thread Zsolt Vasvari
> Use the dismiss method. Doesn't work. I tried that -- the only way dimiss works is if I do it with a significant delay, perhaphs 0.25 sec. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

[android-developers] Processing Camera Preview

2010-06-02 Thread Marc Lester Tan
Hi everybody, I just want to ask what is the best way to do processing of preview frame from the Camera. Right now, I am doing it like this: 1. I put the byte[] from onPreviewFrame to a queue (limited to 10, for this example) until the queue is full. 2. ProcessingThread fetches from this queue

Re: [android-developers] Re: How to tell which permission are required?

2010-06-02 Thread Greg Donald
On Wed, Jun 2, 2010 at 8:58 PM, Shekhar wrote: > see adb logcat you will know http://groups.google.com/group/android-developers/browse_thread/thread/74489da8dff151b3?hl=en# Strange how you can see the original post, but not Mark's reply seven minutes later.. -- Greg Donald destiney.com | greg

[android-developers] Re: How to tell which permission are required?

2010-06-02 Thread Shekhar
see adb logcat you will know sandma...@libero.it wrote: > Hi, > > I have a problem with an application, that refuses to start, and I think it > may be because of missing permission(s). Is there any way to tell which > permissions are required by an application in order to run? > > Thanks -- You

[android-developers] Handling keyevents in the Background (Service)

2010-06-02 Thread Mani Droid
Dear all Is it possible to handle the KeyEvents in the Service? If possible, please guide me. Thanks in Advance Regards Mani -- 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@googl

[android-developers] Sprint Hero Android 2.1 Lost Copy Protected Apps Access

2010-06-02 Thread Craigo
Can somebody please confirm that the Spring Hero used to have access to copy protected apps, however, after the upgrade to Android 2.1, they now don't? If this does get confirmed, is there any alternative to just removing the copy protection? Eg: If a user purchased a copy protected app, then the

[android-developers] Re: Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread kevin0228ca
Oh thanks, I have it now. I was not declaring a min sdk, so are all false as it should be before sdk 1.6. Now I set it to be all true, and the images are loaded correctly. There are quite a lot of topics with this issue, next time I'll search the posts first. Thanks -- You received this message

[android-developers] Re: HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Indicator Veritatis
I think you are going to have to be more informative than that to be helpful. Not that it is your fault: the suggestion of 'wakelock' was a good one. It is just that the online documentation for PowerManager.WakeLock is not as thorough as that for, say for example, Activity. Why, as one example of

[android-developers] Augmented reality problem with Android 2.2 only, Openg Surface View and Surface View for Camera. 3D Not Rendering.

2010-06-02 Thread dlzerocool
Hello, At moment I'm developing an Augmented Reality game, so I'm using the Hardware Camera and a Surface View to show camera preview. Everything works fine from what I've been able to test from Android 1.5 to android 2.1 What goes wrong is in Android 2.2 If I leave the layer from 3D rendering an

[android-developers] Re: We need Arabic support pleeeeeeas

2010-06-02 Thread fadden
On Jun 1, 11:32 am, mohammed sabri wrote: > We need Arabic support pleeas ): http://b.android.com/5597 -- 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 un

Re: [android-developers] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread Mark Murphy
kevin0228ca wrote: > I read that WVGA will load from drawable-hdpi and HVGA will load from > drawable-mdpi. That is not strictly accurate. First, WVGA and HVGA are technically unrelated to screen density. It is possible to have medium- or high-density screens of either WVGA or HVGA size. The emu

Re: [android-developers] Re: Kill an app / package in API 8 (Froyo)

2010-06-02 Thread Dianne Hackborn
On Wed, Jun 2, 2010 at 1:18 AM, Lee wrote: > killBackgroundProcesses works (you need a permission for it), but it > merely restarts the background services, so it's a little poorly > named. > Actually it does exactly what it says -- it kills a process. If an application has a service that it wa

Re: [android-developers] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread Dianne Hackborn
WVGA may be either mdpi (large screen) or hdpi (normal screen). On Wed, Jun 2, 2010 at 3:37 PM, kevin0228ca wrote: > Hi everyone. > I read about in the google documents that the 3 folders corresponds to > different screen types and that android would select the image from > different folders aut

[android-developers] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread kevin0228ca
Hi everyone. I read about in the google documents that the 3 folders corresponds to different screen types and that android would select the image from different folders automatically according to the screen type. I read that WVGA will load from drawable-hdpi and HVGA will load from drawable-mdpi.

Re: [android-developers] Re: Managing a suite of applications

2010-06-02 Thread Dianne Hackborn
Also the Froyo aapt has an option to change the manifest package name at build time. This new aapt option should work with any version of the platform. On Wed, Jun 2, 2010 at 4:41 AM, Mark Murphy wrote: > blcooley wrote: > > I don't have a good answer for this, but I did go through the same > >

Re: [android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread Dianne Hackborn
At this point the USB connection is not intended for application use. It is for developers. You should NOT be writing apps that have users turn on this developer mechanism; that opens up security holes to them that they are likely not going to be aware of. (Though we did add to the platform the

Re: [android-developers] Re: Default Paint size too small on new device; is there a better source?

2010-06-02 Thread Dianne Hackborn
It's not a bug; you need to go through the Context/Resource to find the correct app scaling, and a plain constructor does not have this so can not take such things into account. You should define attributes like text sizes in resources, where you can use units like "dp" and use those values to set

Re: [android-developers] KeyEvent definitions / meanings?

2010-06-02 Thread Dianne Hackborn
Those key codes come from standard keyboards and we currently don't have a platform meaning assigned to them. There is not a dedicated keycode to dismiss an IME; the back button does that. On Wed, Jun 2, 2010 at 10:18 AM, nuvibob wrote: > Can someone point me to documentation with the definitio

[android-developers] Re: Petitions to Google

2010-06-02 Thread asicwizard
Thank-you Xavier for adding the library-projects facility to the SDK tools r6. http://developer.android.com/guide/developing/other-ide.html#libraryProject Hopefully people will start using that to build different versions of their apps (free vs paid etc) and they can put their pre-processors away

Re: [android-developers] Emulator screen size is wrong

2010-06-02 Thread Leigh McRae
Thank you for the response. I gave it a try and it reports the same. The screen is locked in portrait mode and the bottom, I would guess 72 pixels, are black. The rest of the screen is being drawn correctly. It also works on the other larger modes. Leigh On 6/2/2010 5:32 PM, social hub wr

Re: [android-developers] AutoCompleteTextView static data. Slow performance.

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 7:27 AM, Oleksandr Stashuk wrote: > Is there any way to speed this up? Don't use such a large list. Try breaking up the one massive list into something you can index. For example, instead of 1 list of ~2000 items, you can have 26 lists of about 80 items indexed by the firs

Re: [android-developers] Emulator screen size is wrong

2010-06-02 Thread social hub
can u try Display display = getWindowManager().getDefaultDisplay().getMetrics(dm); dm.heightPixels. this gives absolute height. I think this is what you are after. On Wed, Jun 2, 2010 at 4:25 PM, Leigh McRae wrote: > Hello, > > I created an emulator using API level 5 and skin WQVGA432. I would

[android-developers] Emulator screen size is wrong

2010-06-02 Thread Leigh McRae
Hello, I created an emulator using API level 5 and skin WQVGA432. I would expect the display size would be 240x432 but I get 240x360 using the following code. Display display = getWindowManager().getDefaultDisplay(); int w = display.getWidth(); int h = display.getHeight(); Also I belie

[android-developers] Re: HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Mike dg
Are you using a wakelock? On Jun 2, 4:10 pm, Daniel Lew wrote: > I've run into a bizarre situation and I'm not sure how to solve it. > > The app I'm working on has a regular pull update that occurs every so > often in the background.  When the phone is on, it works.  When the > phone is using wif

Re: [android-developers] How to tell which permission are required?

2010-06-02 Thread Mark Murphy
sandma...@libero.it wrote: > Hi, > > I have a problem with an application, that refuses to start, and I think it > may be because of missing permission(s). Is there any way to tell which > permissions are required by an application in order to run? There will be errors in LogCat when you lack

[android-developers] How to tell which permission are required?

2010-06-02 Thread sandma...@libero.it
Hi, I have a problem with an application, that refuses to start, and I think it may be because of missing permission(s). Is there any way to tell which permissions are required by an application in order to run? Thanks -- You received this message because you are subscribed to the Google Gro

[android-developers] Re: ACTION_VIEW sefaults is no application installed for mimetype

2010-06-02 Thread jdeslip
Ooops. I figured this out. It was actually catching the problem fine but crashing during my txt2 writing. -Jack On Jun 2, 1:01 pm, jdeslip wrote: > Hi All, > > I have an app that downloads a pdf from a server and tries to open it > with an itent: > > Intent intent = new Intent(); > intent.setA

[android-developers] HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Daniel Lew
I've run into a bizarre situation and I'm not sure how to solve it. The app I'm working on has a regular pull update that occurs every so often in the background. When the phone is on, it works. When the phone is using wifi, it works. However, if the phone is sleeping and connected only to 3G,

[android-developers] ACTION_VIEW sefaults is no application installed for mimetype

2010-06-02 Thread jdeslip
Hi All, I have an app that downloads a pdf from a server and tries to open it with an itent: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(filepath+filename); intent.setDataAndType(Uri.fromFile(file), "application/pdf"); try { start

[android-developers] Re: Using Android Calendar ContentProvider.

2010-06-02 Thread AusR
I just had a look at the GDATA API. http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html (notice the version 2 in the url - nice - has android support) The getting started instructions read: For help setting up the client library, see the Getting Started Guide. To use the Java

[android-developers] Re: How to take a photo and return a big image

2010-06-02 Thread guich
private String getRealPathFromURI(Uri contentUri) { String [] proj={MediaStore.Images.Media.DATA}; Cursor cursor = managedQuery(contentUri,proj,null,null,null); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); r

[android-developers] Re: How to take a photo and return a big image

2010-06-02 Thread guich
Well, since i don't believe there's a solution for the problem, at least i got something better. Still using approach #1, but now i delete the file from the Gallery. Uri uri = data.getData(); String ipath = getRealPathFromURI(uri); File f = new

[android-developers] Display Widget inside activity?

2010-06-02 Thread Tommy
Hey everyone, I was wondering if there is a way to show a widget that I have created inside an activity. I have a weather widget and I also have an app I am working on that I would like to include weather reports in. Is there a way I can just re-use the widget code and make it show inside the weat

[android-developers] How to take a photo and return a big image

2010-06-02 Thread guich
Hi, I have a simple task (simple in other platforms, not in Android :-( ): take a photo and return its pathname to the caller. I searched a lot the net and tried many variants to the code. I'm aware of the "thumbnail image" bug and am trying to bypass it. The following code works, but its somewh

[android-developers] Re: Themes, Styles and Items [How to create skins for apps?]

2010-06-02 Thread Moto
No idea what you mean about so what... The thing is I want my background to point to something like colorListItemBottom. Than each created Theme could change the color property of colorListItemBottom. On May 30, 10:37 am, helmi.mir...@gmail.com wrote: > So what ? > Powered by Telkomsel BlackBer

[android-developers] Re: Android Emulator and LTE technology :)

2010-06-02 Thread Mike dg
Please pass your cat to my mom and we can talk bizness :) Long term expectency of Android is ++ this year for less than 4 Gs! On Jun 2, 11:56 am, Károly Holczhauser wrote: > Hi Guys! > >  Can anyone tell me how can I develop an application witch is using the > newest 4G technology ( LTE ) ? I liv

Re: [android-developers] Google IO 2010 videos

2010-06-02 Thread Abdul Mateen
Ok Perfect, Got it Thanks for the answer. On Wed, Jun 2, 2010 at 10:42 PM, Mark Murphy wrote: > Abdul Mateen wrote: > > Sorry I found much , but could not any video for of the android session. > > Second bullet on that page is: > > "Wed June 2: Enterprise, Android" > > Yesterday's videos were rele

Re: [android-developers] Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-02 Thread Xavier Ducrohet
failonerror only checks the return code of the app it's running. In this case adb runs correctly so your test doesn't break. Note however that while adb is not able to return the error code of the shell command it's running on the device, it's also not the issue in this case. "am instrument" does

Re: [android-developers] Google IO 2010 videos

2010-06-02 Thread Mark Murphy
Abdul Mateen wrote: > Sorry I found much , but could not any video for of the android session. Second bullet on that page is: "Wed June 2: Enterprise, Android" Yesterday's videos were released about mid-day Pacific time. Please have a little patience. -- Mark Murphy (a Commons Guy) http://comm

Re: [android-developers] Google IO 2010 videos

2010-06-02 Thread Abdul Mateen
Sorry I found much , but could not any video for of the android session. On Wed, Jun 2, 2010 at 9:23 PM, Mark Murphy wrote: > Cleverson wrote: > > Where are the Google IO 2010 videos? > > http://code.google.com/events/io/2010/sessions.html > > -- > Mark Murphy (a Commons Guy) > http://commonswar

[android-developers] KeyEvent definitions / meanings?

2010-06-02 Thread nuvibob
Can someone point me to documentation with the definitions / meanings (i.e., what action is expected to be performed) for the KeyEvents? Aside from the obviouse KEYCODE_A to KEYCODE_Z, etc. there are some that I don't understand and I cannot find any mention anywhere on the web ?! Specifically th

[android-developers] Re: Speech Recognition

2010-06-02 Thread GregM
Someone please answer this question! On May 24, 7:35 pm, minhaz wrote: > Hi > > In my emulator isRecognitionAvailable method from SpeechRecognizer > class returns false and also when i run VoiceRecognition.java sample > code on API level 8 platform 2.2 i got "Recognizer not present" > message. An

[android-developers] how to obtain email address?

2010-06-02 Thread HeHe
does anybody know how to programmatically obtain the email address configured on an android phone? that is the one which was used to activate the phone? thanks in advance for the know-how. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: Android finishActivity()

2010-06-02 Thread asicwizard
I am a little confused by what you are trying accomplish here. You are starting ActivityB and not finishing ActivityA. When you hit the back button you want it to finish ActivityB but NOT return to ActivityA? If you didn't want ActivityA anymore, why didn't you finish it? If you want to keep Act

[android-developers] Re: AutoCompleteTextView woes

2010-06-02 Thread Kumar Bibek
Use the dismiss method. For dismissing, dismissDropDown() For showing, showDropDown() Thanks and Regards, Kumar Bibek On Jun 2, 6:05 am, Zsolt Vasvari wrote: > If I programatically set the value of an AutoCompleteTextView using > setText() and the view happens to have focu

Re: [android-developers] Google IO 2010 videos

2010-06-02 Thread Mark Murphy
Cleverson wrote: > Where are the Google IO 2010 videos? http://code.google.com/events/io/2010/sessions.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.x Programming Books: http://com

[android-developers] Google IO 2010 videos

2010-06-02 Thread Cleverson
Hi, Where are the Google IO 2010 videos? So many Android-related cool sessions and they'll be restricted just the fortunate guys who were there? I'm looking forward to watch them. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Load https requests with Webview.

2010-06-02 Thread psaltamontes
Hello, I'm trying to load https requests with a Webkit object but It shows only a blank page, with http requests I don't have problems, It shows the page correctly. I have look the source code of the browser, in http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=tree;f=src/com/

[android-developers] Re: Wifi remains without events

2010-06-02 Thread Urizev
No, I am developing and testing the application in a Dev G1 device. On 2 jun, 17:45, Kostya Vasilyev wrote: > Is this the Moto Droid / Milestone by any chance? > > 02.06.2010 19:29, Urizev пишет: > > > > > > > Hi, > > > I have developed an application which manages the WiFi. It has no GUI > > and

[android-developers] Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-02 Thread whitemice
My continuous integration server runs an Ant script, which calls something like: /tests/ant run-tests My JUnit tests run, but with errors: run-tests: [echo] run-tests-helper. [echo] Running tests ... [exec] [exec] com.zedray.stuff.FooBarTest: [exec] com.zedray.stuff.Fo

[android-developers] Re: HoW can we pass the two string values of one activity to another activity

2010-06-02 Thread Kumar Bibek
Pass them as simple strings using the intent. Or you can pass String arrays also. putExtra(String name, String[] value); putExtra(String name, String value) And you have there get counterparts as well. Thanks and Regards, Kumar Bibek On Jun 2, 7:33 pm, Dixit Wadhwani wrote: > first.java >

[android-developers] Android Emulator and LTE technology :)

2010-06-02 Thread Károly Holczhauser
Hi Guys! Can anyone tell me how can I develop an application witch is using the newest 4G technology ( LTE ) ? I living in Hungary were still not available, maybe some year :) but I really would like to write an program witch using LTE to send and receive dates. If anybody has some idea please t

Re: [android-developers] Re: HTTPS to acces my wcf from android appli

2010-06-02 Thread Lamia Hannoun
Well they all use HTTPCLIENT procedure, i'm using this kind of communication(HttpTransportSE) with my service here's a sample: *try* { SoapObject request = *new* SoapObject(*NAMESPACE*, *METHOD_NAME*); request.addProperty("value", 2); SoapSerializationEnvelope envelope = *new*SoapSerialization

Re: [android-developers] Wifi remains without events

2010-06-02 Thread Kostya Vasilyev
Is this the Moto Droid / Milestone by any chance? 02.06.2010 19:29, Urizev пишет: Hi, I have developed an application which manages the WiFi. It has no GUI and it only tries to connect to a specific WiFi network. I achieved it successfully but it has a weird error: Sometimes the WiFi system se

[android-developers] Preparing webapp for i-Jetty / using dx tool

2010-06-02 Thread Chris
Hi, Has anyone successfully converted their web app to work with i-Jetty? I seem to be unable... My first problem is trying to run the dx tool with argument given in i-Jetty's pom.xml file (I'm trying to mimic their process since I get errors when trying to run pom.xml with maven eclipse plugin).

Re: [android-developers] Re: HTTPS to acces my wcf from android appli

2010-06-02 Thread Kostya Vasilyev
Lamia, I believe this is because you're testing your code with a self-signed certificate on the server. There is some information on how to make it work here: http://groups.google.com/group/android-developers/browse_thread/thread/1ac2b851e07269ba Note that disabling certificate checks altoge

[android-developers] Re: Default Paint size too small on new device; is there a better source?

2010-06-02 Thread String
I think it is a bug, personally. Paint has a similar problem with measureText(); it doesn't account for different screen densities correctly. My solution is similar to Kostya's: I handle it manually using the reported density of the display. String On Jun 2, 1:38 pm, Kostya Vasilyev wrote: > Er

[android-developers] Wifi remains without events

2010-06-02 Thread Urizev
Hi, I have developed an application which manages the WiFi. It has no GUI and it only tries to connect to a specific WiFi network. I achieved it successfully but it has a weird error: Sometimes the WiFi system seems to be hung. It stops sending broadcast events and it does not connect. But when I

[android-developers] Re: Bluetooth socket to non Android device

2010-06-02 Thread Chris
I got it working, the problem was that I needed to pair with the device first (for some reason it kept an incorrect PIN and wouldn't pair). Here is a snippet BluetoothDevice device; BluetoothSocket tmpsock = null; int port = 1; ... try { Method m = device.getClass().getMethod("createRfcom

Re: [android-developers] Re: HTTPS to acces my wcf from android appli

2010-06-02 Thread Lamia Hannoun
Well I only changed my wcf url, but i had the same error "Not trusted server certificate" Could u plz help me !! thx 2010/5/31 Nando Scheidecker > All you have to do is to specify https. > > For instance: > > HTTPRequestHelper helper = new HTTPRequestHelper(myResponseHandler); > helper.performP

[android-developers] HoW can we pass the two string values of one activity to another activity

2010-06-02 Thread Dixit Wadhwani
first.java ... String[] items={"one","two"}; Bundle map = new Bundle(); map.putStringArray("link",items); Intent myintent = new Intent(view.getContext(),two.c

Re: [android-developers] Re: Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Mark Murphy
Dominik Erbsland wrote: > thanks for the hint. > I have changed the inner class and put the clicklistener for the inner > class as a whole - but I still have the same problem like before. That's because you didn't change anything that matters. Your onClick() method is still referring to the *last

Re: [android-developers] About the mapview listener

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 8:14 PM, zhou haitao wrote: > Please give me some suggestion. Have you looked through the Maps API documentation? - TreKing - Chicago transit tracking app for Android-powered

[android-developers] Re: Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Dominik Erbsland
thanks for the hint. I have changed the inner class and put the clicklistener for the inner class as a whole - but I still have the same problem like before. private class OrderAdapter extends ArrayAdapter implements OnClickListener { private ArrayList items;

[android-developers] Call AT command / RIL / ATResponseParser

2010-06-02 Thread arnouf
Hi all, I would like to send some AT commands, from my Android application, to the RIL available on a phone. I read a lot of things about this : - it's not possible - it's possible - There are some API not documented about telephony which allow this How does it it work exactly? There is a RIL (a

Re: [android-developers] Changing screens - switching between layouts?

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 7:34 AM, Serdel wrote: > Is this the correct way of organizing such an app in android or should I > take another approach - if I should, please give a more detailed advice on > how to do this. > Usually you represent each screen with a new Activity class that encapsulates

[android-developers] Re: Email via seanhodges.co.uk website

2010-06-02 Thread Sean Hodges
Hello herrmie, What problems are you having? My post included some example code, is it this code you're having trouble with, or is it with adding the library to your project? Adding a library is relatively straightforward, although I admit I found it a bit confusing when I was starting off with An

Re: [android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread Mark Murphy
ftovalle wrote: > thanks for your repply! > But, i saw some applications that run trough usb connection, and do > that communication very well. For example > https://gems.codaset.com/jens-riboe/droidatscreen. > This application shows a device screen in your pc, and do it trough > usb connection.

[android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread ftovalle
Thanks for you repply! On 1 jun, 15:16, Alexander Kipar wrote: > Hi, > There isn't a "system" way to do this, but there aer some tricks. > You could use ADB to forward PC port to Device port and create, for > example, Socket connection between them. > > On Jun 1, 9:11 pm, Felipe Ovalle wrote: >

[android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread ftovalle
thanks for your repply! But, i saw some applications that run trough usb connection, and do that communication very well. For example https://gems.codaset.com/jens-riboe/droidatscreen. This application shows a device screen in your pc, and do it trough usb connection. On 1 jun, 16:56, Bob Kerns

Re: [android-developers] Default Paint size too small on new device; is there a better source?

2010-06-02 Thread Kostya Vasilyev
Eric, I ran into same issues with my app. First of all, small text can be made more readable by calling paint.setAntiAlias(true); Second, I do my own text scaling based on the device's screen density. Something like: textSize = unscaledSize * screenDensity / 160.0f. Note that default densit

[android-developers] Default Paint size too small on new device; is there a better source?

2010-06-02 Thread eehouse
My app uses a custom View that does a lot of text drawing. To ensure my text is always readable I've been using the result of calling getTextSize() on a newly-created Paint() instance as the minimum size. Docs say calling 'new Paint()' sets attributes like text size to default values. One of my

Re: [android-developers] Re: Android finishActivity()

2010-06-02 Thread Sean Hodges
Mike, You've done half the work already, except there is a little confusion on the purpose of the finishActivity() method. That method only works the other way around (closing Activity B from Activity A). What you need to do now is send a "result" back to Activity A telling it to call finish(). S

[android-developers] Re: Change Developer Account

2010-06-02 Thread Eddie Ringle
Renaming the apk will do nothing, you would have to at least change the package name. On Jun 2, 1:36 am, Brad Gies wrote: > My guess is that it won't work. I unpublished an app several months ago, > and it still shows in my developer account. > > I think you will have to rename your .apk, publish

[android-developers] Re: SocketTimeoutException: Read Timed Out Occurs Only via Mobile

2010-06-02 Thread opok
Hello, I have the same issue, and it occurs only in mobile network not wifi, very strange. Can you tell me what exactly you did to fix that? On May 12, 6:33 am, Jeffrey wrote: > I've been experiencing something similar using HttpClient (also using > URLConnection): > > java.net.SocketTimeoutExcep

[android-developers] Re: Android finishActivity()

2010-06-02 Thread mike
hi NightGospel,, what exactly did u meant??? could you please give me a sample??? regards, Randika -- 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 fro

[android-developers] Re: Android finishActivity()

2010-06-02 Thread NightGospel
Hi Mike, I mean you can register one BroadcastReceiver in A to receive the broadcast taht is sent from B. For example, public class A extends Activity{ public void onCreate(Bundle b){ . . . registerFinishedReceiver(); } private void registerFinishedReceiver(){

Re: [android-developers] 2.2 Google Api emulator not booting up

2010-06-02 Thread Mark Murphy
Ashok Jeevan wrote: > Hi, > I just wrote a test app and deployed it via Google Api 2.2 emulator > version 8. The emulator is running and the Android logo comes. But after > that, no progress. > > When I checked the log, it shows a MountService with message 'waiting > too long for mReady!' > > Wha

Re: [android-developers] Re: Managing a suite of applications

2010-06-02 Thread Mark Murphy
blcooley wrote: > I don't have a good answer for this, but I did go through the same > thing as you. I recently published 6 apps on the same codebase with a > few differing assets. I did it by refactoring in Eclipse, just like > you mentioned. > > On May 25, 3:51 pm, Jonathan Johnson wrote: >> I

Re: [android-developers] Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Mark Murphy
Dominik Erbsland wrote: > I have a ListActivity which is being filled via an internal class > "OrderAdapter" - while the list is being populated I set various > OnClickListeners on the TextView elements which should open the same > view with different parameter values per line. My problem I have is

[android-developers] Re: Managing a suite of applications

2010-06-02 Thread blcooley
I don't have a good answer for this, but I did go through the same thing as you. I recently published 6 apps on the same codebase with a few differing assets. I did it by refactoring in Eclipse, just like you mentioned. On May 25, 3:51 pm, Jonathan Johnson wrote: > I asked this on Stackoverflow,

[android-developers] Re: CANNOT manage to get ADB working whatever I do.

2010-06-02 Thread Per
you can fetch it directly from HTC: http://www.htc.com/www/supportdownloadlist.aspx?p_id=312&act=sd&cat=all On 1 Jun., 14:29, HLL wrote: > Worth a shoot, could you upload this thing? cuz i don't have this > thing on my card that came with the device... > > On Jun 1, 9:29 am, Per wrote: > > > I

[android-developers] 2.2 Google Api emulator not booting up

2010-06-02 Thread Ashok Jeevan
Hi, I just wrote a test app and deployed it via Google Api 2.2 emulator version 8. The emulator is running and the Android logo comes. But after that, no progress. When I checked the log, it shows a MountService with message 'waiting too long for mReady!' What should be done inorder to boot the e

[android-developers] Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Dominik Erbsland
I have a ListActivity which is being filled via an internal class "OrderAdapter" - while the list is being populated I set various OnClickListeners on the TextView elements which should open the same view with different parameter values per line. My problem I have is that no matter which entry in t

  1   2   >