[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-05-13 Thread Mariano Kamp
What's your app? On Wed, May 13, 2009 at 6:53 PM, Sundog wrote: > > > > I think you can make the situation a lot better for yourself by > > accepting that people generally suck. > > Sadly, yeah. > > Any moment now there will be an everything-should-be-free freak here > saying that you shoul

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Keith Wiley
Right, and unlike some of the other posters who seemed to have a slight more agitated tone, I really tried to emphasize that I want to get on board with respect to this particular issue. I'm not complaining about AbsoluteLayout's deprecation at all, I just want to write my code correctly, and if

[android-developers] UI problem

2009-05-13 Thread Sukitha Udugamasooriya
Hi geniuses, I have few buttons on the content. When I click on one button, 1-- I want to change the text of the button. 2-- Then I want to change the content view. this is my method which executes with the onClick event. private void markUser(int index) { btnArray[ind

[android-developers] Options for synchroinizing data between Android and backend database

2009-05-13 Thread Lonifasiko
Hi all, Wanted to develop a mobile application for Android devices that stores data locally and synchonizes (bidirectionally) local data with a database server every 'N' minutes. That is, instead of building a web application accesible from Android's browser that forces me to be "always connected

[android-developers] Re: 1.5 api change - broken scrollbar resources

2009-05-13 Thread Peter Carpenter
Hi Romain, That makes complete sense. Will make appropriate changes. Cheers, Peter. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Thursday, 14 May 2009 4:07 PM To: android-developers@googlegroup

[android-developers] Re: dynamically setting drawSelectorOnTop

2009-05-13 Thread Romain Guy
Oops my bad, you were talking about *Spinner*. Spinner does NOT support android:drawSelectorOnTop, so there's no equivalent Java API. Setting this attribute in XML has absolutely no effect (in particular because a Spinner does not have a selector.) On Wed, May 13, 2009 at 7:59 PM, damnesia wrote

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Ask
Hi Dianne, Thanks a lot for your suggestion. Problem has been solved as I had passed the Context of the application as an argument of invoked method display(). Regards, Asif On May 14, 10:22 am, Dianne Hackborn wrote: > You seem to be passing in a bad ContextWrapper that somehow has a nul

[android-developers] Re: 1.5 api change - broken scrollbar resources

2009-05-13 Thread Romain Guy
The system scrollbar does not have a track anymore. Your code should simply account for that possibility. The framework code does attempt to load a scrollbar track but does not crash if no resource is present. On Wed, May 13, 2009 at 10:36 PM, Peter Carpenter wrote: > > > Hi all, > > I've just b

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Romain Guy
Again, AbsoluteLayout was deprecated to encourage developers to use "real" layout managers. AbsoluteLayout just won't work with other screen resolutions and densities. Like Dianne said, it won't go away but we want you guys to think very hard before using it. It is (most of the time) bad practice

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Mark Murphy
> I believe I have politely and thoroughly stated my question. Anyone > have an answer? Everybody, even to an extent the core Android team folk on this list, is contributing answers on a volunteer basis. Lots of questions get asked here that do not get answered, for any number of reasons. Also,

[android-developers] Re: Adb remount fails on Android 1.5

2009-05-13 Thread KG
I have figured out a way to do this... First run "adb root" this will give you root access to G1's file system, then you can execute commands like adb push, adb pull etc --kartic On May 13, 9:41 pm, Kartic wrote: > Hi All, > > I have upgraded my phone's images to Android 1.5 images > (fromhtt

[android-developers] Re: getting addresses from location

2009-05-13 Thread Android Users
Check this, http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60/aedf666aa0faa216?lnk=raot&pli=1 On Wed, May 13, 2009 at 2:55 PM, neoraptor wrote: > > Hello, > > I have the same problem (code working on SDK 1.1 but not on 1.5). > Does someone find a solution?

[android-developers] 1.5 api change - broken scrollbar resources

2009-05-13 Thread Peter Carpenter
Hi all, I've just been attempting to upgrade my application to support 1.5 and discovered that I can no longer retrieve a resource for my scrollbar background. My app requires me to draw a scrollbar that I can use to control a custom component. Currently I was using the following code (which J

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Keith Wiley
I believe I have politely and thoroughly stated my question. Anyone have an answer? On May 13, 3:20 pm, Keith Wiley wrote: > Bump.  Thanks for any input. > > On May 13, 10:27 am, Keith Wiley wrote: > > > I have seen a number of threads discussing the deprecation > > ofAbsoluteLayout.  I'm a l

[android-developers] Re: Threading and Message Loops

2009-05-13 Thread radarcg
I replaced my threading code with the AsyncTask, and its such a direct solution for my issue that I don't need to post my code. The references listed above provided all the solutions. Also, the stacktrace also seemed to be caused by the reason stated above because it too went away with this soluti

[android-developers] No Pig Fats in Lays | Certificate from Pepsi Pakistan

2009-05-13 Thread meh.altaf
see details http://emailzz.blogspot.com/2009/05/no-pig-fats-in-lays-certificate-from.html - Best and Worst Brain Foods By David Zinczenko, wit... - Miracle Found at Hanif's Butcher in Fordsburg

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Dianne Hackborn
You seem to be passing in a bad ContextWrapper that somehow has a null base pointer: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/Toast.java;h=ff747878fba0ddf7b9a477a11f0fdd5a3821bb62;hb=HEAD 85 public Toast(Context context) { 86

[android-developers] Re: Problem installing application onto HTC Magic

2009-05-13 Thread Android Users
Do we get the Google APIs addon for download? Or is there anyway to upgrade the device to support maps? If so please provide a way to do so. Thanks in advance. Hoping for a quick response. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Screen/Activity orientation

2009-05-13 Thread doubleslash
Situation: I set my activity to be in landscape mode. In this activity, I move a box along the x direction, which is along the longer side of the phone due to being in landscape. When the activity is first started, everything works great--the x axis in my code corresponds to the expected x direct

[android-developers] Re: dialog is getting dismissed when I am flipping the device

2009-05-13 Thread Android Users
Hi Dianne, I suggested the way i followed to retain the state of the dialog, which may not be preferred. Thanks for the suggestion. It would be good if you could provide a sample as to how to retain the state after flipping, so that i could implement the same. --~--~-~--~~~

[android-developers] Send SMS Message

2009-05-13 Thread yves...@gmail.com
There are lots of post talking about sending SMS messages. But my question is not answered there. So, I can send sms messages using my app, but after the message is sent, I can't find them in the "Messaging" app's outbox, you know, like it list all incoming and outgoing messages. What I want to a

[android-developers] Re: Problem installing application onto HTC Magic

2009-05-13 Thread Xavier Ducrohet
If you develop an application that uses MapView (with your manifest declaring a uses-library node with com.google.android.maps), it will never install on a device that does not have Maps (actually Google Maps is not required, it's the Google Maps library that is required. I'm guessing if your devi

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread Ask
Fadden, It throws these exceptions only when " I tried to create any UI component like Toast message or invoking phone dialer inents etc. " It executes nicely when I just "tried to print a log message or created MediaPlayer and playing a song " . So my conclusion is that It throws NullPoi

[android-developers] Re: Problem installing application onto HTC Magic

2009-05-13 Thread Android Users
Any help on this?.. On Mon, May 11, 2009 at 11:04 AM, Android Users wrote: > Hi Raphael, > > Thanks for your reply. > > Build number : 2.14.720.1 146733 CL#24595 > Carrier : AIRTEL > > > > > On Sun, May 10, 2009 at 3:37 AM, Raphael wrote: > >> >> On Fri, May 8, 2009 at 10:31 PM, Android Users >

[android-developers] Re: opengl 纹理映射

2009-05-13 Thread xiaofeng
now i found the problem is in the following code.Maybe the following process loses some important data;can give me some code about this? 现在我确定问题是在下面的对bmp图片作处理过程导致丢失了一些重要信息,或下面的算法有问题,有没有人有这方面的算法代码? ByteBuffer bb = ByteBuffer.allocateDirect(bmp.getHeight() *bmp.getWidth()*4); bb.order(B

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Dianne Hackborn
You can always catch the exception. On Wed, May 13, 2009 at 4:59 PM, Todd wrote: > > So, how does one programatically determine the amount of heap space > free including space used by bitmap memory? Is there such a way? I > would prefer to inform my users that there isn't enough memory to load >

[android-developers] Post your ad for free + jobs opportunities

2009-05-13 Thread meh.altaf
Do u have something to sell .. ? aur wants to offer tution. .. place your ad for free @ http://apnayads.blogspot.com/ Categories - Cellphone For Sale (15) - Computer n Accessories

[android-developers] Re: opengl 纹理映射

2009-05-13 Thread xiaofeng
this is my code!是不是loadTexture里有问题? protected static int loadTexture(GL10 gl,Bitmap bmp, boolean reverseRGB) { System.out.println("Eenter loadTexture in GLTutorialBase"); int[] tmp_texture = new int[1]; gl.glGenTextures(1, tmp_texture, 0);

[android-developers] Re: Unified Database Populating Solution

2009-05-13 Thread toto
Hi I have an offer for you keep your dictionary as text file zip it and store it in the asset or raw resource direcory ZIP can provide really good results on text use Java ZipInputStream to expand it to the SDCard in you app , do background SQLlite buildup, simple do the population on a different

[android-developers] Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

2009-05-13 Thread chrispix
Not sure what is going on. Running Windows Vista x64. Not had really any problems with eclipse. I had to upgrade to 1.5 and when I did that I got all kinds of install errors. So I said 'f-it'. I decided to start over and downloaded the 1.5SDK, downloaded the Eclipse for Java, Not Eclipse classic (

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread android app
And also how refund affects getInstalledPackages(int flags) with flags set as GET_UNINSTALLED_PACKAGES? ( If an order of a paid app in cancelled / refunded) On May 13, 11:23 pm, android app wrote: > For a paid app, the app will be still in the "My Downloads" even if it > is uninstalled.  You ca

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread android app
For a paid app, the app will be still in the "My Downloads" even if it is uninstalled. You can re-install the app from "My Downloads". I am looking into getInstalledPackages(int flags). Just found an option for flags::GET_UNINSTALLED_PACKAGES, which may return applications with "DONT_DELETE_DAT

[android-developers] Re: getRuntime().exec("su do seomthing") fails (exit code)

2009-05-13 Thread toto
Hi BiAji yes, I had a spelling mistake the firmware is made by Jesus Freak anyway the supplied terminal emulation in JF ADP1.5 does perform su (after approving the popup window) actions with no problem. just verified. maybe dear Mr. JF modified some sources On 14 מאי, 04:27, biAji wrote: > I

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread Johnny
I think the results from the PackageManager is accurate. The "My Downloads" is propobably saved the downloaded info in its own provider. One test, can you launch the application from "My Downloads" after uninstall it? On May 14, 11:07 am, android app wrote: > Thanks, Jeff. > > Can an app know

[android-developers] Re: ActivityInfo is null in Intrumentation class

2009-05-13 Thread Johnny
Could you paste also the two manifest file? On Apr 28, 7:05 pm, "a...@lg" wrote: > @Override >     public void onStart() { >         super.onStart(); > _intent = new Intent(Intent.ACTION_MAIN); > _intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > _intent = _intent.setClass(getTargetContext(), Cl

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread android app
Thanks, Jeff. Can an app know whether another app was installed if it was uninstalled and is still in the "My Downloads" list? A purchased application will still in the list of "My Downloads" even after it is uninstalled. On May 13, 11:00 pm, android app wrote: > I mean programatically in an a

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread Johnny
Yes, as Jeff suggested, PackageManager#getInstalledApplication and getInstalledPackages is what you need. On May 14, 11:00 am, android app wrote: > I mean programatically in an application. > > How to write code in an application to know whether another app is > installed or not? > > Thanks > >

[android-developers] Re: where to download android 1.5 r1 source code ?

2009-05-13 Thread Marco Nelissen
On Wed, May 13, 2009 at 7:51 PM, rain wrote: > > I know I can find the source code from > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary > > but I'm not familiar with git, don't know how to download it from > there. That's why detailed instructions are provided. See htt

[android-developers] Re: where to download android 1.5 r1 source code ?

2009-05-13 Thread Johnny
I'm afraid you'll have to get familiar with git and repo. If you want to work with the source code. There is nowhere to find a single zip file of the source code, that's a too old way for code distributions. On May 14, 10:51 am, rain wrote: > I know I can find the source code > fromhttp://and

[android-developers] Re: where to download android 1.5 r1 source code ?

2009-05-13 Thread Jeff Sharkey
There are several git tutorials across the web, and there are a nice set of instructions on how to get the Android source here: http://source.android.com/download j On Wed, May 13, 2009 at 7:51 PM, rain wrote: > > I know I can find the source code from > http://android.git.kernel.org/?p=platfo

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread android app
I mean programatically in an application. How to write code in an application to know whether another app is installed or not? Thanks On May 13, 10:57 pm, Johnny wrote: > Settings -> Applications -> Manage Applications > > On May 14, 10:53 am, android app wrote: > > > > > how to know whether

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread Jeff Sharkey
You can programatically access all packages installed. Something like PackageManager.getInstalledApplications() is probably what you're looking for: http://d.android.com/reference/android/content/pm/PackageManager.html j On Wed, May 13, 2009 at 7:57 PM, Johnny wrote: > > Settings -> Applicati

[android-developers] Re: dynamically setting drawSelectorOnTop

2009-05-13 Thread damnesia
Yeah, I saw it in the documentation online but when I do spinner.setDrawSelectorOnTop(true); I get "The method setDrawSelectorOnTop(boolean) is undefined for the type Spinner". I am using Android android-sdk-linux_x86-1.1_r1. Do I need to upgrade? Thank you for your time. On May 13, 2:59 pm, R

[android-developers] Re: how to know whether an app is installed or not

2009-05-13 Thread Johnny
Settings -> Applications -> Manage Applications On May 14, 10:53 am, android app wrote: > how to know whether an app is installed or not? > > Can an app access the list of application in "My Downloads"? --~--~-~--~~~---~--~~ You received this message because you a

[android-developers] Re: webView: How to click a web link and display in my WebView app

2009-05-13 Thread Jerry Fan
I got the answer by myself. If anyone is also interested to know how to do it, please go to below URL for a tutorial. http://developer.android.com/guide/tutorials/views/hello-webview.html On Thu, May 14, 2009 at 8:01 AM, jerryfan2000 wrote: > > Hi, > I am trying to add a webview in my app to disp

[android-developers] how to know whether an app is installed or not

2009-05-13 Thread android app
how to know whether an app is installed or not? Can an app access the list of application in "My Downloads"? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send em

[android-developers] where to download android 1.5 r1 source code ?

2009-05-13 Thread rain
I know I can find the source code from http://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary but I'm not familiar with git, don't know how to download it from there. where to find a zip archive file about the source code? I donot know why the sdk don't contain the source code.

[android-developers] Re: ActivityInfo is null in Intrumentation class

2009-05-13 Thread iqueen
try intent.setClassName("com.abc.def", "abc.def.ClassUnderTest"); On Apr 28, 7:05 pm, "a...@lg" wrote: > @Override >     public void onStart() { >         super.onStart(); > _intent = new Intent(Intent.ACTION_MAIN); > _intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > _intent = _intent.setClass(

[android-developers] Re: About SQLite (query)

2009-05-13 Thread Daehoon Jeon
Thanks for help...I have already figure it out, thank you anyway. --~--~-~--~~~---~--~~ 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: problems with my htc magic

2009-05-13 Thread Johnny
Have you tried this: http://developer.android.com/guide/developing/device.html#setting-up ? On May 14, 7:25 am, petunio wrote: > Hi everybody > > I am trying to install apk's in my new htc magic > > I had before a G1 and I didn't found any problem, just doing adb > install myapp.apk and that's i

[android-developers] Re: About SQLite (query)

2009-05-13 Thread Johnny
You should use "select * from notes2 where title=\"" + str + "\"" On 5月14日, 上午10时12分, Daehoon Jeon wrote: > How to use rawQuery with Variable? > > Cursor mCursor = mDb.rawQuery("select * from notes2 where title=\"title1\"", > null); > it's worked > but I want to use variable instead of Stri

[android-developers] Re: About SQLite (query)

2009-05-13 Thread Daehoon Jeon
How to use rawQuery with Variable? Cursor mCursor = mDb.rawQuery("select * from notes2 where title=\"title1\"", null); it's worked but I want to use variable instead of String... like this String str = "title1"; Cursor mCursor = mDb.rawQuery("select * from notes2 where title= str", null); it's

[android-developers] Re: getRuntime().exec("su do seomthing") fails (exit code)

2009-05-13 Thread biAji
I'm not understand what is the "JS firmware", do you mean "JF"? Actually , the emulator can not exec "su" correctly, it will return value 1 and error of "su: uid XXX not allowed to su" . If you using JF firmware, It will exec correctly. BUT...you should allow it to exec in superuser app. On Ma

[android-developers] About SQLite (query)

2009-05-13 Thread daehoon
Hi everyone. I know db.query was written like below in Android sample. I want to use other field instead of rowId witch is KEY_DATE, but it's not worked as well. public Cursor fetchNote(long rowId) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE, new String[]

[android-developers] simple MediaController example

2009-05-13 Thread kostmo
Hi, I would like to show the MediaController (http://developer.android.com/ reference/android/widget/MediaController.html) view (with the play/ pause buttons and progress bar) when a button is pressed. The backend passed to setMediaPlayer() is a MediaController.MediaPlayerControl implementation t

[android-developers] webView: How to click a web link and display in my WebView app

2009-05-13 Thread jerryfan2000
Hi, I am trying to add a webview in my app to display a web page. However, every time I click link on the web page, Browser will be launched to display content in that link. I understand it is something about intent but I am still wondering is there any simpler method to ask webview to display lin

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Todd
So, how does one programatically determine the amount of heap space free including space used by bitmap memory? Is there such a way? I would prefer to inform my users that there isn't enough memory to load their image rather than getting an OOM and have the app exit. --~--~-~--~~

[android-developers] problems with my htc magic

2009-05-13 Thread petunio
Hi everybody I am trying to install apk's in my new htc magic I had before a G1 and I didn't found any problem, just doing adb install myapp.apk and that's it now, when I do the same with my htc, it says "error: device not found" Also, I noticed that if I type "adb devices", I dont get any devi

[android-developers] Re: DexClassLoader caould not invoke method from another application properly

2009-05-13 Thread fadden
On May 13, 8:05 am, Asif k wrote: >    I had used DexClassLoader to execute the code of other application > dynamically. I am calling method display() of another application from > my application. The display() method will just show the Toast pop up. [...] > 05-13 20:10:22.336: WARN/System.err(77

[android-developers] Re: getRuntime().exec("su do seomthing") fails (exit code)

2009-05-13 Thread fadden
On May 12, 11:02 pm, toto wrote: > I have a theory > since terminal application is signed with same certificate as the > system certificate it has the ability to perform superuser actions > What you probably meant is that a 3rd party applications (which are > signed with different keys) won't pas

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread fadden
On May 13, 1:17 pm, Streets Of Boston wrote: > According to the heap 'browser' that comes with the ADT plugin in > Eclipse. > My app is using less than 4MByte (it's using about 2MByte) but it > won't allow me to create a bitmap of 12MByte. Something to play with: grab http://bigflake.com/gclog.p

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Keith Wiley
Bump. Thanks for any input. On May 13, 10:27 am, Keith Wiley wrote: > I have seen a number of threads discussing the deprecation ofAbsoluteLayout.   > I'm a little fearful of reading third-party blogs > that suggest solutions to the deprecation because in some discussion > threads the Google em

[android-developers] Re: JNI check failures when trying to use a configured SOCKS Proxy object...

2009-05-13 Thread fadden
On May 12, 6:53 pm, fadden wrote: > Are you including any of your own native code?  If not, this is likely > a bug in the core libraries. ...and so it is. OSNetworkSystem.java declares: static native InetAddress getHostByNameImpl(String addr, boolean preferIPv6Addresses) throws U

[android-developers] Re: Another AbsoluteLayout deprecation question

2009-05-13 Thread Keith Wiley
Bump. On May 13, 10:27 am, Keith Wiley wrote: > I have seen a number of threads discussing the deprecation of > AbsoluteLayout.  I'm a little fearful of reading third-party blogs > that suggest solutions to the deprecation because in some discussion > threads the Google employees have explicitly

[android-developers] Re: Framework support for detecting starting and stopping of activities

2009-05-13 Thread clemsongrad
Dianne, Could you please shed any light on where i should look in 1.5 for this launch information? Atleast i can research on what is there instead of reinventing the wheel. -Best Regards, On May 13, 4:00 pm, Dianne Hackborn wrote: > There is nothing in the SDK for this.  In 1.5 there is now

[android-developers] Re: dynamically setting drawSelectorOnTop

2009-05-13 Thread Romain Guy
It's in the documentation :) Hint, look for setDrawSelectorOnTop(boolean). On Wed, May 13, 2009 at 2:53 PM, damnesia wrote: > > Is it possible to dynamically set the drawSelectorOnTop attribute on a > Spinner instead of having to do it in the layout XML? > > > > -- Romain Guy Android framewo

[android-developers] Re: opengl 纹理映射

2009-05-13 Thread Yusuf T. Mobile
你确定α价值? Yusuf T. Mobile 的看法,意见和声明此电子邮件是那些作者只是以个人身份,并不一定代表的T Mobile美国公司 On May 13, 7:30 am, Wendal Chen wrote: > 能贴一下代码吗? > > 图片也可以 > > On May 13, 8:31 pm, xiaofeng wrote: > > > > > 原来色彩很清楚的图片贴在立方体表面后发黄? --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: Framework support for detecting starting and stopping of activities

2009-05-13 Thread Dianne Hackborn
I believe the class is UsageStatsService. "adb shell dumpsys usagestats" will dump its current data. On Wed, May 13, 2009 at 2:21 PM, clemsongrad wrote: > > > Dianne, > > Could you please shed any light on where i should look in 1.5 for this > launch information? Atleast i can research on wha

[android-developers] dynamically setting drawSelectorOnTop

2009-05-13 Thread damnesia
Is it possible to dynamically set the drawSelectorOnTop attribute on a Spinner instead of having to do it in the layout XML? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Dianne Hackborn
On Wed, May 13, 2009 at 1:17 PM, Streets Of Boston wrote: > According to the heap 'browser' that comes with the ADT plugin in > Eclipse. > My app is using less than 4MByte (it's using about 2MByte) but it > won't allow me to create a bitmap of 12MByte. I don't think that takes into account bitma

[android-developers] Re: Framework support for detecting starting and stopping of activities

2009-05-13 Thread Dianne Hackborn
There is nothing in the SDK for this. In 1.5 there is now some lauch information maintained by the system, which you can modify to have reported if you'd like, though it is pretty rudimentary (for each day, the number of times each .apk has been resumed, and the total duration it was resumed). You

[android-developers] Re: Custom android ANT tasks

2009-05-13 Thread Alexey Volovoy
It'll be nice to have this info here as well http://developer.android.com/sdk/1.5_r1/upgrading.html#AntUsers On Apr 14, 2:29 pm, Xavier Ducrohet wrote: > Hello, > > The new SDK include multiple versions of the Android platforms. > Because newer versions could have slightly different build steps,

[android-developers] Re: SDK 1.5: unable to send SMS to another emulator

2009-05-13 Thread lilbyrdie
I couldn't find an open issue for this, so I opened a new one: http://code.google.com/p/android/issues/detail?id=2660 On May 12, 6:33 pm, lilbyrdie wrote: > I also have the same issue where twoemulatorinstances can't call orSMSeach > other like they could before (and simulatedSMSor calls to > t

[android-developers] Re: java.awt

2009-05-13 Thread bra...@gmail.com
I have very nearly finished porting the java.awt lib to android. I have skipped all the swing functionality as I cannot see us need ing it along with some fairly large chunks of the text handling. Graphic manipulation and IO etc should all still work. If you are ever given the choice between buil

[android-developers] Re: Animated progress in Imageview

2009-05-13 Thread Jeff Sharkey
You're probably looking for AnimatedImageView instead of ImageView, which will trigger the animation automatically once its visible. Here's an example in an XML layout: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/layout/status_bar_latest_event_content.xml;h

[android-developers] Re: Threading and Message Loops

2009-05-13 Thread radarcg
Thanks to you both for this information, it sounds like its exactly what I was looking for. It is appreciated, thanks for your contributions to the community. I'll pay back by posting results... On May 12, 6:41 pm, Dianne Hackborn wrote: > The error means that this Message object has already bee

[android-developers] Re: Animated progress in Imageview

2009-05-13 Thread Mark Murphy
> I've had a look at RotateDrawable, which seems to be the correct thing > for me to use. I'd vote for RotateAnimation, personally, but that's only because I've used it for the scenario you're describing. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android D

[android-developers] Re: Animated progress in Imageview

2009-05-13 Thread Al
Forgot to mention, the progress indicator is indeterminate, like you have in an Activity with Window.FEATURE_INDETERMINATE_PROGRESS. I've had a look at RotateDrawable, which seems to be the correct thing for me to use. The docs say a RotateDrawable should be used with an xml that uses . I've trie

[android-developers] Framework support for detecting starting and stopping of activities

2009-05-13 Thread clemsongrad
To support usability studies on what applications are used, i want to write a service that logs when an activity is started and also when it has finished. This is to understand how the users are using the device: One straightforward option is to have the applications modify, to write this out.

[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-13 Thread Danny
This seems to work, but now I'm getting "Could not find myapp.apk!" On May 2, 10:05 am, CnmJbm wrote: > ok, it seems i fixed it on my environment. > > just delete the R.java (by refreshing the project) and rebuild the > project. > > On May 2, 9:57 am, CnmJbm wrote: > > > i got the sameerror, TO

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Streets Of Boston
According to the heap 'browser' that comes with the ADT plugin in Eclipse. My app is using less than 4MByte (it's using about 2MByte) but it won't allow me to create a bitmap of 12MByte. About max heap usage: Is and will the heap limit be set to 16MByte on all devices (i.e. on current devices suc

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Dianne Hackborn
Yes this is a new API in 1.5. If you need to run on older versions, you can copy the old code out of Contacts before it was integrated into the framework. (That's what I did for Rings Extended.) On Wed, May 13, 2009 at 1:12 PM, Joel Wright wrote: > > Thanks for the help, I've got the scrollbar

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Joel Wright
Thanks for the help, I've got the scrollbar working how I wanted it and I'm working on the SectionIndexer. I just have one question left. Does this mean I'm forced to use the Android 1.5 SDK if I want fastScrollEnabled? - Trying to build the project at a 1.1 level gives me a "no resource identif

[android-developers] read from local socket does not work

2009-05-13 Thread alexdonnini
Hello, I was wondering if anyone would explain to me why the code snippet below does not work: s.getOutputStream().write(length); s.getOutputStream().write(data); Log.i(TAG, "data from socket - "+Integer.toString(s.getInput

[android-developers] Re: get Certificates from Package

2009-05-13 Thread friedger
I would assume that the signature is valid, if not the package would not be installed. So a hacked Android version could break this assumption. But then the API to access the public key or even the package file could be hacked as well Friedger On Mar 25, 12:11 pm, Lutz Schönemann wrote:

[android-developers] Re: SQLLite constraint on delete cascade

2009-05-13 Thread Marco Nelissen
It might help if you posted the final string that you're passing to db.execSQL(), instead of us trying to figure out what the resulting command is by running the code in our heads. My guess is that it doesn't work because you're trying to specify a column-constraint using table-constraint syntax (c

[android-developers] Re: How to debug android source code using eclipse?

2009-05-13 Thread Keith Wiley
Both on the emulator and by USB to a physical device. Yes. I can't remember which documents in the dev guide got me up and running. Try this one: http://developer.android.com/guide/developing/eclipse-adt.html On May 13, 7:33 am, Nio wrote: > Hi , > Is there a way to debug Android source code

[android-developers] Re: what problem is the log.....

2009-05-13 Thread Marco Nelissen
This group is about developing applications using the SDK. You want the android-porting group. On Tue, May 12, 2009 at 7:45 PM, dduri wrote: > > hi all... > > I testing android-1.5 on virtualbox. > I compiled x86 porting. > > success booting and stop dial app. > > what problem?? > > 05-13 10:00

[android-developers] Re: open socket failed: Permission denied when application to run a native C function.

2009-05-13 Thread Marco Nelissen
Your application needs to request the 'INTERNET' permission in its manifest. On Tue, May 12, 2009 at 8:03 PM, Terence wrote: > > Hi > > I port a tool in native C and builed a executable file or a library, > and the executable can work successfully in console (Alt + F1). > > Then I creat a Simpl

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Jeff Sharkey
Also, to get the A-Z overlay when using fastScrollEnabled, you'll need to implement SectionIndexer for your adapter. Something like AlphabetIndexer works great if you have a sorted Cursor. http://developer.android.com/reference/android/widget/SectionIndexer.html j On Wed, May 13, 2009 at 11:42

[android-developers] Stuck in landscape mode after launching YouTube

2009-05-13 Thread Chister Nordvik
Hi! 1. User clicks an image in my app 2. The app launches YouTube 3. Screen is rotated in landscape 4. User presses home button 5. User starts my program again 6. My program is launched with the main screen but it's stuck in landscape mode (due to Youtube switching orientation) Nothing I do will

[android-developers] Re: Change View in ListView if selected

2009-05-13 Thread Mark Murphy
>> I'd like to create my ListView and make it's Views be changed while >> selected (or, clicked). How could I do it? > > Detect clicks or selections, and change the appropriate row View. > > Could you be more specific in terms of where you need assistance? At the risk of replying to myself, let m

[android-developers] Re: Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Dianne Hackborn
And there are of course other ways to do this -- have a PolygonCursor object for instance that lets you iterate over the cursor and provides an API to get the polygon data for the current position. On Wed, May 13, 2009 at 11:40 AM, Mark Murphy wrote: > > > Please bear in mind that you are writing

[android-developers] Re: How do I make a ListView scrollbar expand whilst scrolling?

2009-05-13 Thread Dianne Hackborn
Use this: http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:fastScrollEnabled On Wed, May 13, 2009 at 3:39 AM, Joel Wright wrote: > > Hi, > > I'm having a little problem with a ListView scrollbar. The scrollbar > appears at the side as expected, but how do I get

[android-developers] Re: Should I use Cursors, or and Object[] to return data from a DB

2009-05-13 Thread Mark Murphy
> Please bear in mind that you are writing applications to run on mobile > devices whose horsepower is reminiscent of PCs from a decade ago. > > Programming techniques that you might use on a current PC with tons of > RAM, fast CPUs, and access to constant AC power are not necessarily > recommende

[android-developers] Re: Question: How to guestimate the available bitmap memory on a device

2009-05-13 Thread Dianne Hackborn
According to what heap dump? I am pretty sure that the code just checks to see if there is that amount of space left in the java heap, and if not fail (otherwise allocate it and tell the VM to account for that as part of its heap usage). On Wed, May 13, 2009 at 11:24 AM, Streets Of Boston wrote:

[android-developers] Re: Android Dev Phone 1 activation Problem

2009-05-13 Thread devi prasad
Hi, I'm also facing a similar problem with Airtel SIM in India.I get the following error message: "There is a problem communicating with the Google Servers; This could be a temporary problem. Your SIM card may not be provisioned for data services. If it continues, call customer care." Any help

[android-developers] Re: Gallery usage without using styleable

2009-05-13 Thread lilbyrdie
I've answered my own question. Net result is the same, just a different way of getting to the default theme resources, but it's what I was missing. Within your attrs.xml file, place a block that looks like the following: This basically provides access to the galleryItemBackgr

[android-developers] Re: Question on ContentProviders

2009-05-13 Thread Jonathan Herriott
Thanks Dianne. That helps alot. The reason I asked is because my ContentProvider will allow other applications to insert into it, similar to a logging system. Since I can't guarantee an application won't try to abuse it, I was just trying to figure out what type of safeguards to put into it. I

[android-developers] List items not clickable when using ListAdapter, but clickable with SimpleAdapter

2009-05-13 Thread brian.schim...@googlemail.com
Hi, I was populating a list with a SimpleAdapter like this: final List> data = someObject.getData(); SimpleAdapter dataAdapter = new SimpleAdapter (this, data, R.layout.listline, from, to); listView.setAdapter(dataAdapter); listView.setOnItemClickListener(...); The listV

  1   2   3   >