Re: [android-developers] Wierd memory leak

2010-10-07 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the

Re: [android-developers] Wierd memory leak

2010-10-07 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the

Re: [android-developers] Wierd memory leak

2010-10-07 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH danhi...@ieee.org wrote: Yep, substring MAY (or may not) decide to avoid copying the characters and simply keep a reference to the char array in the source String. A smart substring implementation wouldn't do this if the result string were quite short or the

Re: [android-developers] Theme.Dialog - Remove Title Area?

2010-10-07 Thread Miguel Morales
Use: requestWindowFeature(Window.FEATURE_NO_TITLE); On Wed, Oct 6, 2010 at 10:52 PM, Kumar Bibek coomar@gmail.com wrote: Remove the title. As you would have done on an activity. On Wed, Sep 29, 2010 at 7:08 AM, Peake peakeinteract...@gmail.com wrote: I have an activity that is using

[android-developers] Re: Lost Checked state of check box in ListView while scrolling

2010-10-07 Thread Zsolt Vasvari
When you bind the list item view, you should be populating the checkbox based on your own list of checked items. On Oct 7, 1:34 pm, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi, I'm facing problem in scrolling. I've 20-25 items in my List, if i checked first check box, scroll down,

Re: [android-developers] Re: Android Web Server

2010-10-07 Thread Miguel Morales
What about service providers which don't allow or firewall most if not all incoming ports? Can you still act a server? But yeah, I guess for private networks you could do some interesting stuff. On Wed, Oct 6, 2010 at 8:09 PM, kypriakos demet...@ece.neu.edu wrote: To answer Miguel's

[android-developers] scrollbar drawable not appearing properly

2010-10-07 Thread kavitha b
Hi All, I tried replacing scrollbar image with another drawable,setting scrollbar to a listview,but scrollbar image is appearing very weird,it is stretched vertically. I am setting to list view as android:scrollbarThumbVertical=@drawable/scrollbar

Re: [android-developers] Re: Android Web Server

2010-10-07 Thread xiaoxiong weng
as long as you have access to a public server, you could always do a tunnel. I used to send stuff behind nat through ssh On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales therevolti...@gmail.comwrote: What about service providers which don't allow or firewall most if not all incoming ports? Can

[android-developers] How to get Android Source code?

2010-10-07 Thread Indu
I am having trouble with one of the phones. It is using Version 2.1 - update 1. I would like to download the source code to check that. However, I am on Windows platform, so I cannot use GIT. Is there any other way to download/browse the code for this particular release? I could not find this

Re: [android-developers] Aplicação criação de ar quivo PDF.

2010-10-07 Thread Filip Havlicek
Hi, I'm pretty sure the only official language for this group is English. Best regards, Filip Havlicek 2010/10/6 Erick erickbrit...@gmail.com Ola a todos! Estou com uma solicitação de desenvolvimento de uma aplicação que crie um arquivo PDF, tentei usar o IText mas na hora de fazer o

Re: [android-developers] Re: Android Web Server

2010-10-07 Thread Miguel Morales
I'd figure that would kill performance. Right? On Wed, Oct 6, 2010 at 11:35 PM, xiaoxiong weng ad...@littlebearz.com wrote: as long as you have access to a public server, you could always do a tunnel. I used to send stuff behind nat through ssh On Thu, Oct 7, 2010 at 2:22 AM, Miguel Morales

Re: [android-developers] Lost Checked state of check box in ListView while scrolling

2010-10-07 Thread Rocky
thanks for replay, but how to handle it, please provide the logic or code. --RKJ On Thu, Oct 7, 2010 at 11:06 AM, Kumar Bibek coomar@gmail.com wrote: Since the ListView recylces the convertViews, you will have to keep track of the items which are selected when they go off the screen.

Re: [android-developers] Date/time format change broadcast

2010-10-07 Thread Filip Havlicek
Hi, yes, you actually are - ACTION_TIME_CHANGED and ACTION_DATE_CHANGED. Best regards, Filip Havlicek 2010/10/7 Zsolt Vasvari zvasv...@gmail.com I am using android.intent.action.LOCALE_CHANGED to detect language changes and update my widgets. Is there something analogous for date and time

Re: [android-developers] HELLO I HAVE THIS QUESTION????(ABOUT ANATOMY):

2010-10-07 Thread Rocky
:) thanks for suggestion On Sun, Oct 3, 2010 at 12:15 AM, hugeman gp.ah...@gmail.com wrote: WHY DON'T U DEVELOP ANATOMY APPS AS BEAUTIFUL AS IPHONE I'LL BUY THEM RIGHT AWAY.ALSO MEDICAL APPS IN GENERAL CUZ THERE ARE SOME BUT ALL ARE BAD. -- You received this message because you are

Re: [android-developers] project help

2010-10-07 Thread Rocky
I'm with TreKing, we r here to solve specific problem not a particular problem, if u want a tutor, you need to pay, if u want consult me On Thu, Oct 7, 2010 at 7:43 AM, TreKing treking...@gmail.com wrote: On Sat, Oct 2, 2010 at 7:25 PM, Mike karl mike.d.k...@gmail.com wrote: i have great

[android-developers] Re: Killi Process with files on SD card

2010-10-07 Thread Heartnet
I have found a solution on 2.2 : before receiving the intent ACTION_MEDIA_EJECT, there is a few line in the logcat that indicate the SD card is going to be unmounted. So I just check in the last few logcat lines with Runtime.getRuntime().exec(new String[]{logcat, -d, -t 10, VoldCmdListener:V

[android-developers] Re: How to get Android Source code?

2010-10-07 Thread Dana L
You can get GIT for Windows. There are at least two options: MSYSGit http://code.google.com/p/msysgit/ Cygwin GIT http://cygwin.com/packages/git/ On Oct 7, 2:38 am, Indu isadas...@gmail.com wrote: I am having trouble with one of the phones. It is using Version 2.1 - update 1. I would like to

[android-developers] Re: project help

2010-10-07 Thread Yahel
Hi Mike, That's a very long mail just to try to hire an Android developper for half the potential revenue of splendor ideas you don't share anything about :) I think Treking and Rocky are right. May I suggest you go back to West Virginia University and find an under graduate in computer science

[android-developers] Re: Wierd memory leak

2010-10-07 Thread Alex
Thanks a lot, working with StringBuffer and it's impelemention of substring did the trick! As a C# developer, I'm not used to think of such things ... ;-) Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Video streaming from android mobile phone to a remote computer

2010-10-07 Thread Christina Loop
Because I was asked by several to share the code I used for capturing from the camera, here is where I got the idea from: http://beta.codeproject.com/script/Articles/ViewDownloads.aspx?aid=107270 On 27 Σεπτ, 17:29, Christina Loop chrisandroul...@gmail.com wrote: Hello everyone, The problem I

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread Doug
I saw an unusual spike on the 3rd and 4th of this month (roughly 30%), and then a substantial dip on the 5th the erased any unusual gains that I saw on the previous days. As far as I can tell, my buyers are not really coming from additional countries. One user from India noted that he saw my app

[android-developers]

2010-10-07 Thread poonam sinha
dOES ANY BODY HAVE SMALL PROJECTS RELATED TO PIZZA IN ANDROID PLZ SEND ME THE PROJECT -- 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,

[android-developers] How can I use different row view for selected or unselected list item?

2010-10-07 Thread Xiongzh
My intent was to use different view defined in xml when an item is clicked. I overwritten getView method in my child class of SimpleCursorAdapter: @Override public View getView(int position, View convertView, ViewGroup parent) { if (position == mSelectedItemPos)

[android-developers] Re: UI troubles with Android 2.2

2010-10-07 Thread Thibaut
The second trouble is resolved thanks to another message in this google group ( http://groups.google.com/group/android-developers/browse_thread/thread/4e8ad65d5cc7f103/c0986e9ad4e655e2 ). Nested scrollviews don't work anymore. Does anyone have an idea why several click attempts are necessary to

Re: [android-developers] How can I use different row view for selected or unselected list item?

2010-10-07 Thread Kumar Bibek
View newView = super.getView(position, convertView, parent); Why are you calling the super.getView??? http://android.amberfog.com/?p=296 you will find an example towards the end of this page. On Thu, Oct 7, 2010 at 1:36 PM, Xiongzh zx.zhangxi...@gmail.com wrote: My intent was to use different

[android-developers] Re: Lost Checked state of check box in ListView while scrolling

2010-10-07 Thread Zsolt Vasvari
No, won't write the code for you. Just keep the selected item ids in a member SparseArray or something. Add/remove the items as they are clicked on and query it when you are binding the view. On Oct 7, 2:46 pm, Rocky rkjhaw1...@gmail.com wrote: thanks for replay, but how to handle it, please

[android-developers] Re: How can I use different row view for selected or unselected list item?

2010-10-07 Thread Xiongzh
I call super.getView because I don't want to inflate the view and set the value by myself. I want the parent class to do that for me but use different view. On 10月7日, 下午4时17分, Kumar Bibek coomar@gmail.com wrote: View newView = super.getView(position, convertView, parent); Why are you

[android-developers] Re: Date/time format change broadcast

2010-10-07 Thread Zsolt Vasvari
Really? I would have thought those were for when the user sets the date and time, not the format. By format, I mean if they go from 10/01/2010 to 01/10/2010 or something. Will try those, thanks. On Oct 7, 2:46 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, yes, you actually are -

[android-developers] ANDROID_ELASPED_REALTIME_WAKEUP

2010-10-07 Thread Ln
Hi , When I set screen timeout for 15 seconds the board goes to suspend after 15sec. While going to suspend it is making an ioclt call to set rtc alarm with type ANDROID_ELASPED_REALTIME_WAKEUP. Can any one please let me know why is this happening? THanks Regards Ln -- You received this

[android-developers] In-field firmware upgrade mechanism

2010-10-07 Thread Nitin Mahajan
Hello, I have some basic queries regarding in-field application and firmware upgrade regarding android. 1. Is there a generic mechanism(client side) to upgrade boot-loader and kernel, or the device manufacturers have to implement themselves? 2. Is there a different mechanism(client-side) to

[android-developers] Re: Date/time format change broadcast

2010-10-07 Thread Zsolt Vasvari
As I suspected ACTION_DATE_CHANGED is not sent when changing the date format Even the Android 2.2 doesn't handle this properly. Chaning the date format won't change the date displayed in the notification tray. I would have expected to show 7 October, 2010 if I change the format to D/M/Y, but

[android-developers] Re: bitmap size exceeds VM budget

2010-10-07 Thread grace
hi refer this link,it may help u http://stackoverflow.com/questions/477572/android-strange-out-of-memory-issue/823966#823966 On Oct 7, 10:53 am, Kumar Bibek coomar@gmail.com wrote: Managing pictures needs special attention since the max heap area you get is 16MB or more on a few phones.

Re: [android-developers] Re: Wierd memory leak

2010-10-07 Thread Daniel Drozdzewski
Sorry guys for sending it 3 times - I have been on the train and was writing from my Android phone and phone kept loosing GRPS/EDGE. Anyway, here is an article that explains few points about String and StringBuffer: http://www.precisejava.com/javaperf/j2se/StringAndStringBuffer.htm Daniel On

Re: [android-developers] Re: project help

2010-10-07 Thread Rocky
I'm really interested to your splendor apps idea, let me know, might be i can help you. On Thu, Oct 7, 2010 at 1:05 PM, Yahel kaye...@gmail.com wrote: Hi Mike, That's a very long mail just to try to hire an Android developper for half the potential revenue of splendor ideas you don't share

Re: [android-developers]

2010-10-07 Thread Rocky
hey poonam, you want such a inbuild project or you want idea, about pizza in android On Thu, Oct 7, 2010 at 1:34 PM, poonam sinha sinhapoon...@gmail.com wrote: dOES ANY BODY HAVE SMALL PROJECTS RELATED TO PIZZA IN ANDROID PLZ SEND ME THE PROJECT -- You received this message because you

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread Pent
Had a Danish invasion couple of days ago, which was more pleasant than being invaded by scandanavians usually is. There are still quite a lot of those coming in. Only dribs and drabs of others (e.g. India, Russia) which started yesterday. Pent -- You received this message because you are

[android-developers] how to get back the image taken after Intent(MediaStore.ACTION_IMAGE_CAPTURE)

2010-10-07 Thread dadada
Hi all, how do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)? I need the image to be display as a thumbnail and also be attached to email. Thanks! bryan -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Key Dispatching Time Out problem

2010-10-07 Thread Charlie88
Hi, I am trying to buffer a video stream and play the video from the buffer file, but it seems not to work. I check the logcat, it says something about Key Dispatching Time Out problem. Does anyone know what's wrong? The problem is probably due to CPU consuption because this error appears after I

[android-developers] calling .NET webservice using ksoap Android

2010-10-07 Thread Rajnikant
Hi All, Same question is asked previously in this forum. I am asking it again after referring all question in this forum. Problem :- I am trying call call .NET Web service from Android device. I can call web service without parameter successfully; but when tried to pass parameter it shows null

[android-developers] sample code in GPL3 release

2010-10-07 Thread Shawn Brown
HI, I used some of the code from the Android sdk examples. Legally I know apache is compatible with GPL3 (license for my code), but what do I do about the copyright notice in the code? Do I keep the Copyright (C) 2009 The Android Open Source Project and apache license and just indicate the

[android-developers] Re: Any proposed changes to the Android Market?

2010-10-07 Thread String
Also, app markets have (unfortunately) become a numbers game in the eyes of the public. It's important for Google to be able to say they have 150,000 (or whatever) apps in the Market; clearing the dregs would drop that number considerably, probably by an order of magnitude. Although this would

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread String
On Oct 7, 5:11 am, William Ferguson william.ferguson...@gmail.com wrote: The one thing that it seems they will have to do is to change your package name to theirs, otherwise Market (AFAICT) won't allow it a duplicate package name to be published. So is it sufficient to just confirm that the

Re: [android-developers] sample code in GPL3 release

2010-10-07 Thread Christian Buchner
Whenever you publish GPL'ed code, you retain the copyright on the pieces that you've contributed. This is why the GPL is enforcable - you can hit GPL violators by means of a copyright lawsuit. So the correct thing to do (IMHO) is to leave the orginal copyright notice intact, but to put the GPL

Re: [android-developers] Re: UI troubles with Android 2.2

2010-10-07 Thread Daniel Drozdzewski
On Thu, Oct 7, 2010 at 9:15 AM, Thibaut aar...@gmail.com wrote: The second trouble is resolved thanks to another message in this google group ( http://groups.google.com/group/android-developers/browse_thread/thread/4e8ad65d5cc7f103/c0986e9ad4e655e2 ). Nested scrollviews don't work anymore.

[android-developers] Can I create a file in /data in android?

2010-10-07 Thread Lidia
Hello to all, I am trying to create a file in /data but i think i don't have the required permission for it: File file = new File(data, myFile.tmp); and i get java.io.FileNotFoundException: /data/mopayUpdateFile.tmp Is it possible to create a file in data, or somewhere else inside an android

Re: [android-developers] Can I create a file in /data in android?

2010-10-07 Thread Daniel Drozdzewski
On Thu, Oct 7, 2010 at 11:07 AM, Lidia lidyp...@yahoo.com wrote: Hello to all, I am trying to create a file in /data but i think i don't have the required permission for it: File file = new File(data, myFile.tmp); and i get java.io.FileNotFoundException: /data/mopayUpdateFile.tmp Is it

[android-developers] Re: Trouble with corrupt contact data

2010-10-07 Thread jarkman
In case anyone else creates this trouble for themselves, my solution was to log out the rows in the DATA table which had a blob in data15 and which did not have the mime type for photos. That revealed a whole bunch of nonsense rows, with mime types that obviously required strings. Once they were

[android-developers] Re: On multi-accounts setting, LVL returns NOT_LICENSED.

2010-10-07 Thread beemer
But the problem is mainly that even having the primary account different from the developers account, it should work if I add it as a Test account because the app is uploaded to the market! On 6 oct, 13:19, Carlos Silva r3...@r3pek.org wrote: This is normal since the Market only uses one

[android-developers] uses-feature (again)

2010-10-07 Thread Pent
So my app uses light and proximity sensors now, hence I fully expect it to disappear when I update on the market. Since the app doesn't actually require those features, my plan is to put: uses-feature android:name=android.hardware.sensor.proximity android:required=false Because that's how I

Re: [android-developers] sample code in GPL3 release

2010-10-07 Thread Shawn Brown
So the correct thing to do (IMHO) is to leave the orginal copyright notice intact, but to put the GPL header on top. That is assuming the Apache License is indeed GPL compatible. Apache 2.0 and GPL3 are. I'll take Apache at their word. http://www.apache.org/licenses/GPL-compatibility.html

[android-developers] Layout displacement with android:windowSoftInputMode = adjustPan

2010-10-07 Thread Helios
Hi, I need some suggestions in making an EditText view which is placed at the bottom of the screen fully visible. I am using adjustPan windowSoftInputMode for an activity which contains following in the given layout order. 1) Text View 2) Image View 3) EditTextView When I click on

[android-developers] Video buffer issue

2010-10-07 Thread Charlie88
Hi all, Recently I am doing a video streaming control stuff, which means I use VLC to stream video into Android client. But I meet some trouble in pause the streaming and resume it at some time later. Can anyone offer some ideas how to realize this goal? I try to use tempary file to store the

[android-developers] Create Image from String

2010-10-07 Thread Gorka
Hi, I am trying to depict on the screen the image I receive from my neighbour via a text message. I mean, the other node sends me a message where an image is encode (I can read the PNG header, ...) and now I want to show it on the screen, but it doesn't appear nothing. I must be doing something

[android-developers] Re: Android Build

2010-10-07 Thread FrankG
In this case better android-building .. as their is already a thread related to clearsilver and support from the build guru Ying Wang Questions regarding building the source should go on the porting or platform group.

[android-developers] Re: USB and Android

2010-10-07 Thread FrankG
A great answer (IMHO) can you find here : http://stackoverflow.com/questions/3434107/android-communicating-with-a-usb-device-which-acts-as-host On 6 Okt., 19:08, Andrew Whalen the.awh...@gmail.com wrote: Is there any way to allow communication between a program on a PC and an app on the

[android-developers] Re: Print documents from an Android device

2010-10-07 Thread FrankG
IMHO your application only needs to send the right Action Intent .. Look how this is done in the 3d gallery app i.e. in the share menu. I think soon you will also find devices, which have usb pictbridge support and allow direct printing via usb. Good luck ! Frank On 4 Okt., 12:49, Gober

[android-developers] Re: Launching my application from the Settings menu

2010-10-07 Thread FrankG
IMHO it is not so complicated, as you only need to add a additional menu and send the right intent for your own app . But the Settings-App is a core app signed with platform key, so you have to make at the end a system image and flush the device. Good luck ! Frank On 7 Okt., 07:45, Kumar

[android-developers] Simulating USB connection

2010-10-07 Thread { Devdroid }
Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been

[android-developers] Re: Any proposed changes to the Android Market?

2010-10-07 Thread William Ferguson
But that's just down to how the Google/Apple marketing departments put the spin on it. If it was 15,000 apps that really deliver vs a horde of apps of dubious quality, then a good marketing department should be able to run hard with that. It could be pitched as an accelerated Darwinian

[android-developers] What's on earth the SAX Parser changes between 2.1 and 2.2

2010-10-07 Thread Jun Jiang
I have wrote a ContentHandler for SAX parser to retrieve data from and xml file, but it does't work on 2.1-update1, but works fine on 2.2, What is on earth is the changes, anyone knows? the problem I encountered is exactly the same as stated at:

Re: [android-developers] Any proposed changes to the Android Market?

2010-10-07 Thread TreKing
On Wed, Oct 6, 2010 at 9:33 PM, Brad Gies rbg...@gmail.com wrote: If your app is in the bottom half of your category... it's effectively not there :). Unless you have 200+ apps and update a set of them every day in a weekly rotation to continuously hog the Just-In list. Then you're ALWAYS

[android-developers] Gestures in custom view?

2010-10-07 Thread Mansoor
hi friends, I am trying to handle fling event in my custom view using gesture detector but onFling() method is not calling .code snippet for handling fling follows public class CustomView extends View { private GestureDetector gestureDetector; public CustomView6(Context context, AttributeSet

Re: [android-developers] Re: Any proposed changes to the Android Market?

2010-10-07 Thread Stephen Jungels
I have a slightly different take on this than the original poster. Currently Google is treating apps like web pages, and using ranking algorithms to highlight the successful apps. The poor apps don't need to be expelled because they are in the rankings basement where nobody sees them. The only

Re: [android-developers] Security issue: Market fail to list all permissions granted to applications.

2010-10-07 Thread Mark Murphy
I'm going to go out on a limb and guess that the problem is with the Android Market servers, either in how they extract the permissions to display, or how they deliver that data to devices. That's because androlib.com has the same missing permission:

Re: [android-developers] second column list view not properly aligned

2010-10-07 Thread TreKing
On Wed, Oct 6, 2010 at 11:16 PM, Varun Khanduja varunkhand...@gmail.comwrote: I have been getting opinions that I should have gone for table layout Probably, if alignment of each column was important. could someone please save me from doing the work from scratch. I really dont want to do

[android-developers] Re: Wierd memory leak

2010-10-07 Thread DanH
The UNconditional behavior of referencing the original String's array is UNreasonable when you take into account the storage effects. Situations like the OP's are rare, but the technique also negatively impacts cache locality, garbage collection, etc. Modifying the technique can significantly

[android-developers] Re: Wierd memory leak

2010-10-07 Thread DanH
You just need to get rid of that lousy Android and get an iPhone. ;) (Then you wouldn't have connectivity in the first place, and hence no problem.) On Oct 7, 4:00 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: Sorry guys for sending it 3 times - I have been on the train and was

Re: [android-developers] How to creating Excel like sheet in Android with ListView / Tablelayout

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 12:17 AM, Android Shail androidsh...@gmail.comwrote: I have no Idea how can I achieve Excel row/column arrangement with Android ListView which can provide Excel like properties to every cell of sheet. Probably don't use a ListView. Try TableLayout.

[android-developers] Re: Simulating USB connection

2010-10-07 Thread DanH
You sure the problem doesn't only occur when the USB is attached in SD sharing mode? Do you get the same failure with just a charger? Are you accessing files on the SD chip? On Oct 7, 6:28 am, { Devdroid } webnet.andr...@gmail.com wrote: Hi, Our app seem to misbehave sometimes when user plug

[android-developers] Smack xmpp / Handler question

2010-10-07 Thread Federico Paolinelli
Have anybody tried it? I am doing some experiments, and I saw that: - connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue Now my question: when I

Re: [android-developers] Print documents from an Android device

2010-10-07 Thread Prakash Iyer
Also the paid PrinterShare version does say it will use wifi printers, so you might want to check that. I have only used the free version so don't know for sure. On Oct 6, 2010 7:30 PM, Gober herrsky...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Simulating USB connection

2010-10-07 Thread Kostya Vasilyev
Sometimes the charger can be seen by a phone as a computer connection. My Galaxy S sometimes does this - I guess it depends on the angle at which the usb cable is inserted. -- Kostya 07.10.2010 16:26, DanH пишет: You sure the problem doesn't only occur when the USB is attached in SD

Re: [android-developers] Smack xmpp / Handler question

2010-10-07 Thread Kostya Vasilyev
Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1 = data1; mData2 = data2; ... } @Override public void run() { mData1, mData2 are accessible here }

Re: [android-developers] Smack xmpp / Handler question

2010-10-07 Thread Federico Paolinelli
Thanks a lot. Federico On Thu, Oct 7, 2010 at 2:36 PM, Kostya Vasilyev kmans...@gmail.com wrote:  Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1

Re: [android-developers] Re: Date/time format change broadcast

2010-10-07 Thread Filip Havlicek
Oh, you are actually right, overlooked the format, my bad. I looked into the documentation and it seems there are almost no broadcast for a wide variety of settings user might change, which is weird, I would expect at least some ACTION_SETTINGS_CHANGED broadcast for all the changes, but didn't see

Re: [android-developers] scrollbar drawable not appearing properly

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 1:29 AM, kavitha b kkavith...@gmail.com wrote: Is there any other attribute i need to set to make image appear properly. Not sure, but I would look at the default image used by the system (it should be somewhere in the SDK along with the other default images) and see if

Re: [android-developers] Aplicação criação de ar quivo PDF.

2010-10-07 Thread TreKing
2010/10/7 Filip Havlicek havlicek.fi...@gmail.com I'm pretty sure the only official language for this group is English. Google Translate says: Hello everyone! I am with a request to develop an application that creates a PDF file, but tried to use iText's time to make the

Re: [android-developers] Re: Simulating USB connection

2010-10-07 Thread { Devdroid }
On 7 October 2010 14:26, DanH danhi...@ieee.org wrote: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? No. Plug the cable - boom :) That's why I wonder how can I debug this w/o doing extensive logging and hoping it got written to the log. Unfortunately, for

[android-developers] Key dispatching time out?

2010-10-07 Thread Charlie88
I repeated get the warning from logcat. What does this annoying message mean? -- 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

[android-developers] Re: UI troubles with Android 2.2

2010-10-07 Thread Thibaut
Thank you for your answer, I call setOnClickListener() in the Activity while I create the list of views. Then i give this list to the adapter. The Adapter::getView() method just returns the view _list.get(position). See below for code sample. But I would like to say that the onclick behavior is

[android-developers] Can't Connect to a remote host from Emulator !!!

2010-10-07 Thread adel zalok
hi, I am trying to setup a simple client/server connection, the server is running on a remote host (Normal Java) and the client is running on my computer on the emulator, it works fine when I try to connect from my machine, but I can't connect over a normal wi-fi internet connection to the

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread Craigo
I noticed my high score board Top Countries list double in size (http://headtoheadracing.appspot.com/highscores.html). However, I haven't really noticed an increase in sales. Maybe 10%. I think I need to get a weeks worth of data before I can safely make a call. On Oct 7, 4:08 am, Pent

Re: [android-developers] how to get back the image taken after Intent(MediaStore.ACTION_IMAGE_CAPTURE)

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 4:14 AM, dadada ytbr...@gmail.com wrote: how do i get back the image taken from starting the Intent(MediaStore.ACTION_IMAGE_CAPTURE)? Did you read the documentation for that Action?

[android-developers] Re: Can I create a file in /data in android?

2010-10-07 Thread Lidia
As i see, the lines above create new directories inside my application folders. This is not exactly what i need, but thank you anyway for you advice Daniel. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: UI troubles with Android 2.2

2010-10-07 Thread Daniel Drozdzewski
On Thu, Oct 7, 2010 at 2:14 PM, Thibaut aar...@gmail.com wrote: Thank you for your answer, I call setOnClickListener() in the Activity while I create the list of views. Then i give this list to the adapter. The Adapter::getView() method just returns the view _list.get(position). See below for

Re: [android-developers] onPause not being followed by onStop and onDestroy...

2010-10-07 Thread Prakash Iyer
It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster

[android-developers] Re: XML encryption

2010-10-07 Thread gcstang
You're right I missed the part where he wanted to decrypt on the phone also... On Oct 6, 11:02 am, DanH danhi...@ieee.org wrote: Using asymmetric keys won't fix the problem -- you'd still have to embed the decryption key somewhere in the code.  Best you can do is obfuscate the key generation

[android-developers] Re: Android Web Server

2010-10-07 Thread gcstang
I'd be interested in hearing about the results as well. On Oct 7, 1:38 am, Miguel Morales therevolti...@gmail.com wrote: I'd figure that would kill performance.  Right? On Wed, Oct 6, 2010 at 11:35 PM, xiaoxiong weng ad...@littlebearz.com wrote: as long as you have access to a public

[android-developers] Goo Market Frustration(s) -- a request to experienced app developers

2010-10-07 Thread tony obrien
HI, I have several applications available for d/l. They involve complicated use of the OS's facilities (GPS, SMS TXT, display manipulations, etc.) I have them tested on a Motorola DROID, and an LG ALLY, as well as a few others through family and friends (otherwise known as beta testers ;) I

[android-developers] Re: An external library needs org.apache.commons.httpclient instead of org.apache.commons.http.client

2010-10-07 Thread Brill Pappin
Of course! Create a wrapper class that has the same FQN and interface. It'll get picked up as if the library was there. Likely that single class is no the only one that you will need to wrap. - Brill On Sep 28, 10:11 am, SteveG st...@stevegibson.com wrote: I'm trying to use the Amazon Web

[android-developers] Re: Problem with interecepting outgoing calls on HTC Desire

2010-10-07 Thread felix
I got to borrow a HTC desire 2.2 today and I tested my application on that device for first time. I obviously found the same problem. I can confirm that setting the priority to 0, 1 or removing it doesn't effect the outcome for me. Current solution fix I have in place is the one Billias wrote.

[android-developers] Re: Goo Market Frustration(s) -- a request to experienced app developers

2010-10-07 Thread Nathan
On Oct 7, 7:27 am, tony obrien tobsourcecode...@gmail.com wrote: I was going to say, So if I can't test on EVERY device... but perhaps that's my first question... {a} Was I absent the day they told us in Android SDK class that any actual DEVICE may react differently from some other? I

[android-developers] Re: onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyer thei...@gmail.com wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if

Re: [android-developers] Re: onPause not being followed by onStop and onDestroy...

2010-10-07 Thread Kostya Vasilyev
See here: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle onPause is guaranteed to be called, but onStop/onDestroy is not. If Android needs memory after your activity has been paused, it may kill your process. This happens without invoking any callbacks.

[android-developers] List of task killers

2010-10-07 Thread { Devdroid }
Hi, The so called task killers are sort of pain in my *** as users keep using it w/o understanding it, so I decided to check installed apps to find out if TK is installed and if so, warn the user about the potential consequences. Anyone got by any chance list of such apps (or packages) to share?

Re: [android-developers] Re: Simulating USB connection

2010-10-07 Thread { Devdroid }
I managed to narow down the problem and it seems some combinations of Table Layout can hurt when using with RemoteViews? Did not yet found the exact culprit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] List of task killers

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 10:02 AM, { Devdroid } webnet.andr...@gmail.comwrote: Anyone got by any chance list of such apps (or packages) to share? What's the point of some pre-populated list? As more get published your list will quickly be outdated. A quick check shows these apps require the

[android-developers] Re: onPause not being followed by onStop and onDestroy...

2010-10-07 Thread sdphil
okay, if the system decides to kill your activity, it won't call it. but what i'm seeing is really weird. I have an activity stack A, B (with B being on top / visible). When I hit back on B, i get to activity A, but onStop is never called. Now, when I hit back on A, I go back to the home

Re: [android-developers] Re: Simulating USB connection

2010-10-07 Thread Kostya Vasilyev
RemoteViews are used by home screen widgets. The guide on creating those has this warning: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:

  1   2   >