[android-developers] Re: A Gesture Recognition Library

2009-04-13 Thread Mariano Kamp
Yeah, me too, awesome stuff! On Sat, Apr 11, 2009 at 2:10 PM, Nishantha Pradeep ucscnishan...@gmail.comwrote: Good work and I am impressed. I will find someway to try this out cheers Nishantha On Sat, Apr 11, 2009 at 5:18 PM, mscwd01 mscw...@gmail.com wrote: That's really impressive

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Al Sutton
Dianne, Ralf said; You're jumping to conclusions here, and I'd like to be quite interested in seeing the source of your quote as I guess that's your interpretation, not an actual quote. and hence I supplied the quote references as he asked. I make it clear that the SDKs available from

[android-developers] Re: Ultra-Competitive FireWallet supporters

2009-04-13 Thread Al Sutton
I think what we're seeing is just a feature of a subjective rating system. I posted the scheme I use to rate apps a few weeks ago at http://alsutton.wordpress.com/2009/03/23/marking-on-the-googles-android-mark et/ so that if developers felt I was being unfair on their app they could challenge me

[android-developers] Does Android not support old SSLv3 protocols?

2009-04-13 Thread yukinoba
to dear All, Does anyone meet NoSuchAlgorithmException in SSLContext.getInstance (SSLv3) method? I found Android may close the downward support of old SSL protocols, and keep the latest TLS connections only. Is this true that SSLv3 is not supported in Android? Could anyone provide some

[android-developers] Re: When will google post official cupcake SDK

2009-04-13 Thread Al Sutton
This is a known bug in the open source repository. I will roll new SDKs when a fix is made available in the open source repository by the Google engineers. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales

[android-developers] Re: why does clicking on 'x' of the linux emulator not working?

2009-04-13 Thread David Turner
This is not supposed to happen, unfortunately it sometimes does :-( What exact Linux distribution are you using ? The culprit is very probably a broken audio sound mixing daemon, generally you can recover by doing a killall -9 esd to kill the buggy EsounD daemon. Does this happen all the time, or

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Al Sutton
That’s why I set up the company behind AndAppStore. DMCA notices are irrelevant to apps on AndAppStore because the company and it's assets are solely located outside the USA to ensure the USAs ridiculous rules in relation to Intellectual Property do not interfere with the companies global

[android-developers] Does iTunes/3GPP metadata supported?

2009-04-13 Thread Ethan
Hi All, Please kindly help to answer the questions below, thank you very very much! 1. Does AAC codec supported in .mp4 container with iTunes metadata? 2. Does AAC codec supported in .3gp container with 3GPP metadata? Also please kindly indicate how retrieve these information, tracing the

[android-developers] Re: A Gesture Recognition Library

2009-04-13 Thread Jonas Petersson
Very cool. This reminds me of xstroke on iPaq in the old days. http://www.usenix.org/events/usenix03/tech/freenix03/full_papers/worth/worth_html/xstroke.html It was pretty easy to add new strokes for additional characters in that approach (I recall adding åäö). A glace at the DKN source seems

[android-developers] Re: Cities/Countries data provided by google API

2009-04-13 Thread Rockingteam
Any help on this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Margin-problem with changed layout for titlebar

2009-04-13 Thread elDoudou
As you are asking, please read http://developer.android.com/guide/developing/tools/hierarchy-viewer.html for the explanations about the hierarchy viewer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: expandable list view

2009-04-13 Thread dillirao malipeddi
you can use @Override public void onGroupExpand(int groupPosition) { // TODO Auto-generated method stub super.onGroupExpand(groupPosition); Toast.makeText(ExpandableList1.this, Group Clicked on pos = + groupPosition, Toast.LENGTH_SHORT).show(); } for get selected group position i

[android-developers] Re: running appl in background

2009-04-13 Thread jj
If service is running in background in another process, independent of foreground activity process. As per my study I got the two ways to know with background process update, 1. using IPC(AIDL) bindService() 2.broadcasting intent from service whenever we want update for particular

[android-developers] not able to play file when set data source to the sdcard file

2009-04-13 Thread Honest
Hello, I am trying to play file which is stored in SDCARD in emulator. I have Linux O/S. So i need to provide command in run configuration. I am providing following parameter. -sdcard /usr/android/sdcard/mysdcard.iso -audio oss [i] The following is my code to play file. try {

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread elDoudou
Anyone on this? Do I need to reformulate my question? I know it sounds cosmetics, but since I need to display a HTML banner, the need for accuracy is really needed? Android Googlers, your help is very welcome ;) Regards, Édouard --~--~-~--~~~---~--~~ You received

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread David Turner
On Sat, Apr 11, 2009 at 9:34 AM, Al Sutton a...@funkyandroid.com wrote: Now before I start on the iPhone comparison I'm going to pre-empt the normal But Android is open source. response by saying lets be honest and admit it as it stands Android is not an open source project because the

[android-developers] Re: How can I do Image processing on JPEG data

2009-04-13 Thread Emmanuel
Not a specialit, but I would say you should use bitmapfacotry.decodeByteArray to decode the jpeg image to some raw pixel image. Hope it helps, Emmanuel http://androidblogger.blogspot.com/ http://www.alocaly.com On Apr 13, 6:47 am, srik sri_reddy...@yahoo.com wrote: Hi I am confused on how

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Al Sutton
Dave, I'm not after G1 device images, I would be happy if I could get access to a fully working cupcake emulator, but no one in the public development community can. I said before the G1 launch I see Android as the platform, not the G1, Magic or any specific device implementation, but at the

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Al Sutton
I've worked for UK operations of some large US companies and for UK companies delivering to UK operations of US companies and US legal restrictions didn't enter into the equation at any point. As a specific example I have *never* worked at a company that took US patents into consideration when

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Mariano Kamp
You also forget Google is not just a US entity. It has registered companies around the world which are not bound by US laws (such as Google UK Ltd.) which could run and operate Market thus giving them the same freedoms as the rest of us outside the jurisdiction of US law. I am not sure that this

[android-developers] Re: finish() not killing Activity

2009-04-13 Thread quakeboy
can u give some sample code, technical details about that touch thresholding, I have been trying to implement and I am missing important events On Apr 13, 7:07 am, Ralf ralfo...@gmail.com wrote: On Sun, Apr 12, 2009 at 6:28 PM, Todd Sjolander guyfantas...@gmail.com wrote: Marco, your hunch

[android-developers] Re: not able to play file when set data source to the sdcard file

2009-04-13 Thread Nithin
Hi, It is giving me error when i am calling prepare(). Normally, this error occurs, when you didnt put sdcard in emulator. Launch emulator with SDCard. You put the .mp3 file in data/misc folder and try, if its working then the problem is launch emulator with SDCard only.. Thanks Nithin

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Tasos.Kleisas
What puzzles me is that when tetris clones were pulled from apple app store, a lot of tech related sites reported the news. However, not even one android related site wrote a word about the android market application removal. They only complained about the tethering apps removal. But no word on

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
I think the margin is probably implemented in C code inside WebKit. I looked at this in the past as well and couldn't find any Java options to configure the margins. What do you mean by accuracy? Do you mean finding the exact position of your HTML objects inside the WebView? On Mon, Apr 13, 2009

[android-developers] GB2312

2009-04-13 Thread l hx
some file in my sdcard can not been showed correctly. i find the code of the file name is GB2312 in chinese. so i can not been showed correctly. who know how to change the gb2312 to unicode. so the chinese can been showed correctly? --~--~-~--~~~---~--~~ You

[android-developers] Re: sdcard

2009-04-13 Thread l hx
i found the matter may be the title of the file. because i seen the log LOGW(JNI WARNING: illegal start byte 0x%x\n, utf8);.who know why? On Sun, Apr 12, 2009 at 11:46 PM, Marco Nelissen marc...@android.comwrote: If it's been scanned, but doesn't appear in the database (as you said earlier),

[android-developers] How to improve your ratings

2009-04-13 Thread Mattaku Betsujin
Not that I do this intentionally :-) Usually people give ratings only after they use your app. Now, after running the app, giving ratings is a hassle. The user needs to go into Market, find your app, and rate it. But if you push a new update, those users who like your app enough will

[android-developers] Webview questions

2009-04-13 Thread Roy M
Hello, say I have a local html invoked using webview, has the content... a herf=foo('me') test /a Is it possible when user click on the hyperlink, a method in my Java class called foo() will be called? Or any otherway to keep track if a user clicked on a specific elements in the HTML page?

[android-developers] Re: not able to play file when set data source to the sdcard file

2009-04-13 Thread Honest
Thanks nitin for your quick reply. From you suggestion i solved my problem but i am not geting why it is not able to access file from sdcard even if the file is available there so there should be something wrong in it. I also added the command line paramiter which i am passing so please take a

[android-developers] XML With Xliff

2009-04-13 Thread MaTriXy
Hi, I have seen projects with Xliff and wanted to know how exactly it's used. i saw it on the lock screen and wanted to do it myself so i took this line: string name=lockpattern_recording_incorrect_too_shortConnect at least xliff:g id=number%d/xliff:g dots. Try again:/string But i get

[android-developers] Re: Showing/hiding dynamically the title bar

2009-04-13 Thread Streets Of Boston
Write your own title-bar. It's a hassle, but this is a way to do it. Create a View that looks like a title-bar and put it on top of your screen. You can hide and show it at any time. On Apr 10, 4:27 am, bonfo vale...@javaground.com wrote: Hi, I already know ho to hide the title bar with the

[android-developers] Re: More Than One Instance of Application

2009-04-13 Thread Streets Of Boston
This won't work. Android controls the creation of activities. Android provides callbacks such as 'onCreate' (and 'onDestroy', etc.) that inform the application developer of the lifetime management of his/her activity. In anser to the original question from Noam: go to

[android-developers] Re: How to enable DUN in G1 phone?

2009-04-13 Thread Disconnect
Its not included. And never will be, since google is doing what tmob says and removing tethering ability. (Thats not to say that future cupcake-based JF images won't have it, for example. There are already patches out there that I did 'way back when' that enable it. It is not worth the effort

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Sundog
Anyone who is surprised by this must be very, very new to the programming game. I've been waiting for this since the store opened. IMHO, to the extent that the Android community becomes a proxy for those that think All Ideas Should Be Free And Stealable, that is the extent to which Android will

[android-developers] Re: Webview questions

2009-04-13 Thread Mattaku Betsujin
You need to do this: a href=javascript:window.jsinterface.mymethod('parameter') xxx /a In Java code: intf = new Object { public void mymethod(String param) { } } myWebView.addJavascriptInterface(intf , jsinterface); On Mon, Apr 13, 2009 at 6:13 AM, Roy M

[android-developers] Re: Showing/hiding dynamically the title bar

2009-04-13 Thread Mattaku Betsujin
If you want the title most of the time, and only hide it temporarily, you can use a PopupWindow. On Mon, Apr 13, 2009 at 7:24 AM, Streets Of Boston flyingdutc...@gmail.comwrote: Write your own title-bar. It's a hassle, but this is a way to do it. Create a View that looks like a title-bar

[android-developers] how expensive findViewById ??

2009-04-13 Thread Alexey
Hi all, trying to find some performance numbers for findViewById - need to convince to change bunch of the findViewById for the same widget to member variable with just one findViewById on create . Or may be i'm wrong and it's fine ? --~--~-~--~~~---~--~~ You

[android-developers] Re: draw text as big as possible inside a rectangle

2009-04-13 Thread Michael Bollmann
thanks for your reply in case anyone runs into the same problem i solved it using getTextBounds 1. calculate the scale factor between your original rect and the rect returned by getTextBounds 2. multiply the font size by this factor --~--~-~--~~~---~--~~ You

[android-developers] Re: how expensive findViewById ??

2009-04-13 Thread Michael Bollmann
It depends on how often you call it and what your app is doing anyway. Now matter how good it's implementation is access to a member variable is always much faster than a function call. On the other hand you might not notice any improvement in case your app does some stuff that takes 1000 times

[android-developers] Re: Customize filter with MultiAutoCompleteTextView

2009-04-13 Thread Al
Anyone know? On Apr 11, 3:12 pm, Al alcapw...@googlemail.com wrote: Currently I'm using the default filter but I would like to be able to make it so I can ignore some letters at the beginning of the strings in the adapter. I've had a look at the public methods available on

[android-developers] Re: how expensive findViewById ??

2009-04-13 Thread Alexey
yeah, that reference doesn't have number i'm looking for. On Apr 13, 11:20 am, Michael Bollmann michael.bollm...@googlemail.com wrote: It depends on how often you call it and what your app is doing anyway. Now matter how good it's implementation is access to a member variable is always much

[android-developers] Re: Unable to download app on the dev phone from the android market...

2009-04-13 Thread havexz
Thanks for the reply I had read the 2047 article but there they are saying even if i dont change the Copy Protection the next upgrade will not work. Is it so? Havexz On Apr 12, 10:59 pm, Jon Colverson jjc1...@gmail.com wrote: On Apr 13, 4:02 am, havexz bali.param...@gmail.com wrote: I am

[android-developers] how to re-draw the listview ?

2009-04-13 Thread dumpspecs
Hi all, here is my question: 1. I created a new ListAdapter and a new layout xml for the list item as followings: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=64dip TextView

[android-developers] Read text file and search contents

2009-04-13 Thread CompuCor
Greetings, I am new to Java and Android. I have a flat file (pipe-delimited) stored in R.raw called wordlist.txt. I want to open this file and quickly search for a word I pass into my procedure. I've been searching for a simple way to do this but not having much luck. Can anyone share some

[android-developers] Re: New application - testing help wanted

2009-04-13 Thread amer
Hi Camurphy, I have G1 and i am willing to help you to test your application. Send me the details Regards, Amer On Apr 13, 10:17 am, camurphy camur...@gmail.com wrote: Hi all, I recently developed an application, published it and to my horror about half of the people who downloaded it were

[android-developers] Using SQLite for caching and serialization options

2009-04-13 Thread Alan Jones
Hi All, I've got some classes which inherit from a single class, but differ significantly in the data they store. They get returned in a list of the parent class so there's a mix of the two. Because there could be a bunch of these in the results I'd like to cache them into an sqlite db and have

[android-developers] Gallery Child View Problem

2009-04-13 Thread Alekh
I have created a child class from the Gallery view, named MyGallery. I did this because I wanted to get rid of the onFling event in the gallery view. Having that achieved, it lead me to a different problem. Scrolling the Gallery with the Dpad doesn't work now. When I tried using the original

[android-developers] Re: cant read file from data/data/pkg/files/...

2009-04-13 Thread xiao dao
Hi, Please change this line code . FileOutputStream fos = mcontx.openFileOutput(imageName, Context.MODE_WORLD_READABLE) On Mar 30, 10:29 am, Komal komal...@gmail.com wrote: Hi, I am saving an image using openFileOutput and now i want to use this image in my java script file. I am saving

[android-developers] help......i am a Beginners

2009-04-13 Thread yoyo
package com.androidyo.firstbmi; import java.text.DecimalFormat; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class

[android-developers] Re: not able to play file when set data source to the sdcard file

2009-04-13 Thread Marco Nelissen
On Mon, Apr 13, 2009 at 2:52 AM, Honest honestsucc...@gmail.com wrote: Hello, I am trying to play file which is stored in SDCARD in emulator. I have Linux O/S. So i need to provide command in run configuration. I am providing following parameter. -sdcard /usr/android/sdcard/mysdcard.iso

[android-developers] Re: sdcard

2009-04-13 Thread Marco Nelissen
That message indicates the name is not valid utf-8. What's the name/encoding you used? On Mon, Apr 13, 2009 at 5:39 AM, l hx lihongxia8...@gmail.com wrote:  i found the matter may be the title of the file. because i seen the log LOGW(JNI WARNING: illegal start byte 0x%x\n, utf8);.who know

[android-developers] Re: Does iTunes/3GPP metadata supported?

2009-04-13 Thread Marco Nelissen
Some of the iTunes metadata is supported, but not all of it. If you bought a song from the iTunes music store, it should at least get artist/album/title/year from the file. On Mon, Apr 13, 2009 at 1:41 AM, Ethan lawrence@gmail.com wrote: Hi All, Please kindly help to answer the

[android-developers] Re: how expensive findViewById ??

2009-04-13 Thread Michael Bollmann
I guess findViewById uses some kind of map implementation with O(log n) So my guess is that it's about 100-200 compared to 0 when you use member access. On Apr 13, 6:40 pm, Alexey avolo...@gmail.com wrote: yeah, that reference doesn't have number i'm looking for. On Apr 13, 11:20 am, Michael

[android-developers] Re: help......i am a Beginners

2009-04-13 Thread Marco Nelissen
You almost no information as to what goes wrong, but my guess is that since you didn't input any values, the call to Double.parseDouble() throws an exception. BTW, since you say you're a beginner, you might want to give the android-beginners mailing list a try. On Mon, Apr 13, 2009 at 7:11 AM,

[android-developers] Re: finish() not killing Activity

2009-04-13 Thread Dianne Hackborn
In general, you shouldn't be starting an activity at all passed on movements. Probably not on downs either. Only on ups. And at that point, if you want to abort the operation based on movement, just look at how far the up event x and y is away from the original down event. On Mon, Apr 13,

[android-developers] Re: Gallery Child View Problem

2009-04-13 Thread Marco Nelissen
How did you get rid of the onFling event? It sounds like whatever you did to achieve that also broke scrolling. On Mon, Apr 13, 2009 at 8:22 AM, Alekh alek...@gmail.com wrote: I have created a child class from the Gallery view, named MyGallery. I did this because I wanted to get rid of the

[android-developers] Re: running appl in background

2009-04-13 Thread Dianne Hackborn
No. You are right that bindService() will keep the target service running (ONLY if you pass in the appropriate flag), but if you use startService() then the service will remain running even if nothing is bound to it. On Mon, Apr 13, 2009 at 2:35 AM, jj jagtap...@gmail.com wrote: If

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread David Turner
On Mon, Apr 13, 2009 at 1:17 PM, Al Sutton a...@funkyandroid.com wrote: Dave, I'm not after G1 device images, I would be happy if I could get access to a fully working cupcake emulator, but no one in the public development community can. I said before the G1 launch I see Android as the

[android-developers] Re: help......i am a Beginners

2009-04-13 Thread MrChaz
You need to make sure that there is text in the TextEdits before calling parseDouble because it will throw an exception otherwise. Something like: String heightText = fieldheight.getText().toString(); if( heightText != null !heightText.equals()){ // do stuff here } should work. On Apr 13,

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Al Sutton
Dave, There are a number of cases where the cupcake changes affect how UIs are rendered. Take, for example, the one I reported at http://groups.google.com/group/android-developers/browse_thread/thread/48dc0 0dad63aac41 which does not use unfrozen/unstable APIs, does not involve permissions,

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Ikon
This is not legal advice. I actually am a lawyer, and these copyright violation claims are very shaky. Basically, they have a copyright to the exactly worded source code. So if they wrote int numTetrads = 50 and you wrote int numBlocks = 50 you would not be infringing. You need to copy,

[android-developers] Re: Map not Displaying, Just tiles only

2009-04-13 Thread MrChaz
Have you added the INTERNET permission? On Apr 13, 6:17 pm, nithin warier nithin.war...@gmail.com wrote: Hi, I tried to display map in emulator. But its showing just tiles only. I am attaching the screenshot and the log message is like this. 04-13 22:30:06.934: INFO/ActivityManager(48):

[android-developers] How to validate data being entered into an EditText control?

2009-04-13 Thread Videoguy
Hi I have an EditText control to accept IP address fields. Its xml input attribute allows everything else except IP addresses. How to make the control accept dotted IP quad addresses only? Thanks Videoguy --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Read text file and search contents

2009-04-13 Thread Charlie Collins
Here is a basic example of reading a raw resource: http://unlocking-android.googlecode.com/svn/chapter5/trunk/FileStorage/src/com/msi/manning/chapter5/filestorage/ReadRawResourceFile.java. On Apr 13, 12:26 pm, CompuCor caro...@compucor.com wrote: Greetings, I am new to Java and Android.  I

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Marco Nelissen
On Mon, Apr 13, 2009 at 10:39 AM, Ikon ayanafr...@gmail.com wrote: This is not legal advice. I actually am a lawyer, and these copyright violation claims are very shaky.  Basically, they have a copyright to the exactly worded source code.  So if they wrote int numTetrads = 50 and you wrote

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Marco Nelissen
You can never patent abstract ideas. Game ideas cannot be patented OK, so we've established you're not a patent lawyer... :) My favorite patent is the one for swinging sideways on a swing, which IMO illustrates you can patent pretty much anything. On Mon, Apr 13, 2009 at 10:44 AM, Ikon

[android-developers] Persistant Variables

2009-04-13 Thread Kirk
I have an activity that responds to the accelerometer. When the device is rotated, a different layout is displayed based on whether the phone is portrait or landscape. I notice, however, that each time the phone is rotated, the onCreate method is called and all of my instance variables are reset.

[android-developers] Re: Using SQLite for caching and serialization options

2009-04-13 Thread nEx.Software
You could use an object-oriented database such as http://www.db4o.com/android/, of course this one requires GPL. On Apr 13, 5:41 am, Alan Jones skyp...@gmail.com wrote: Hi All, I've got some classes which inherit from a single class, but differ significantly in the data they store. They

[android-developers] Re: Incorrect clip rect in onDraw()?

2009-04-13 Thread Leisuresuit Larry
Thanks for the explanation. We worked around this behavior send separate messages to a Handler on the UI thread. I'm curious, though, to why Android doesn't handle the invalidate regions separately. On Apr 9, 11:46 am, Romain Guy romain...@google.com wrote: setText() invalidates the TextView

[android-developers] Re: Persistant Variables

2009-04-13 Thread MrChaz
Take at look at on onSaveInstanceState() You can use that to save things into the bundle that is passed to onCreate() On Apr 13, 7:26 pm, Kirk kirk.mora...@gmail.com wrote: I have an activity that responds to the accelerometer. When the device is rotated, a different layout is displayed based

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread elDoudou
That was my fear, i.e. that the left and top margin be hard-coded deep down on the C inaccessible layer ;( Thank you for taking the time. By accuracy, I mean that I want to control the width of the total WebView widget, so that it takes exactly 320 pixels and that the loaded HTML inside the

[android-developers] Re: How to validate data being entered into an EditText control?

2009-04-13 Thread MrChaz
Could you could create your own KeyListener and pass it into the TextView via setKeyListener()? On Apr 13, 7:02 pm, Videoguy puri_mall...@yahoo.com wrote: Hi I have an EditText control to accept IP address fields. Its xml input attribute allows everything else except IP addresses. How to

[android-developers] Re: How-to start service automatically on system startup and on installation

2009-04-13 Thread Mike Collins
I have been down this road with my app, you probably don't want to do this. It is much better to have the app that uses the service start the service when it needs it and simply leaves it running. mike On Apr 9, 10:47 am, kijiten orma cutbl...@gmail.com wrote: Translate English version :

[android-developers] Re: how expensive findViewById ??

2009-04-13 Thread Dianne Hackborn
Actually it's not nearly so smart -- it is just a traversal through the view hierarchy until it finds a matching id. As with all things, you should avoid doing this repeatedly if you don't need to (keep the thing you find in a variable so you don't have to look it up again). For more subtle

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Ikon
The variable example was just a small example. My point was that on the variable rename alone is not a copyright violation, just because it relates to the same idea. However you cannot copy someones functions and rename the functions/vars and make it your own. This is obviously a close call, and

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Marco Nelissen
On Mon, Apr 13, 2009 at 11:40 AM, Ikon ayanafr...@gmail.com wrote: The variable example was just a small example.  My point was that on the variable rename alone is not a copyright violation, just because it relates to the same idea. However you cannot copy someones functions and rename the

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Ikon
They've lost. They will probably lose again. They need to stop trying to make a mockery of copyrights. On Apr 13, 3:09 pm, Sundog sunns...@gmail.com wrote: OK, so after checking Wikipedia my memory was flawed... though there were massive copyright fights over Tetris that dragged on for years,

[android-developers] Re: XML With Xliff

2009-04-13 Thread Dianne Hackborn
You probably need to declare the xliff namespace prior to its use. Also the xliff stuff is only for localization; if you aren't giving your strings to localizers (who use this information to determine how to handle parts of the string), there is little reason for dealing with it. Of course if

[android-developers] Re: how expensive findViewById ??

2009-04-13 Thread Alexey
Thanks. that answers my question. On Apr 13, 1:40 pm, Dianne Hackborn hack...@android.com wrote: Actually it's not nearly so smart -- it is just a traversal through the view hierarchy until it finds a matching id. As with all things, you should avoid doing this repeatedly if you don't need

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Sundog
OK, so after checking Wikipedia my memory was flawed... though there were massive copyright fights over Tetris that dragged on for years, the original author ended up making very little. But a quick scan of the History part of the entry should convince anyone pretty quick that they don't want to

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Xavier Ducrohet
On Mon, Apr 13, 2009 at 10:31 AM, Al Sutton a...@funkyandroid.com wrote: Are you really expect that one or two weeks is enough for every app written to go through a testing procedure to check for problems? Of course not. We know that the current situation is far from perfect, but we aren't

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread george_c
A method can be patented. And not 'anything' On Mon, Apr 13, 2009 at 9:18 PM, Marco Nelissen marc...@android.com wrote: You can never patent abstract ideas. Game ideas cannot be patented OK, so we've established you're not a patent lawyer... :) My favorite patent is the one for swinging

[android-developers] Re: How to validate data being entered into an EditText control?

2009-04-13 Thread Videoguy
That is what I thought initially. But Editable has all types of InputFilters you can register to validate/constrain input being entered. I didn't find any filter so far that can validate IP quads. I will write one probably. Thanks Videoguy --~--~-~--~~~---~--~~

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Ikon
Actually even method patents are in peril. See a recent case called In Re Bilski. Even method patents must be tied to particular physical apparatuses, or must transform some physical subject matter into another state or thing. On Apr 13, 3:18 pm, george_c chrisg...@gmail.com wrote: A method

[android-developers] Re: Map not Displaying, Just tiles only

2009-04-13 Thread Nithin
i did both these already... my i got map API and put all permissions in manifest uses-permission android:name=android.permission.INTERNET/ uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-library android:name=com.google.android.maps / still its showing his error,

[android-developers] Re: Embed Contacts activity

2009-04-13 Thread Dianne Hackborn
That is not the phone app, that is the contacts app, which implements the entire UI. The main thing the phone app implements in the in-call screen. On Sun, Apr 12, 2009 at 9:57 PM, Bin Chen binary.c...@gmail.com wrote: I seached this forum and someone said for the security reason, we can

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Sundog
This is as wrong as wrong can be. Believe this at your economic peril. On Apr 13, 11:39 am, Ikon ayanafr...@gmail.com wrote: This is not legal advice. I actually am a lawyer, and these copyright violation claims are very shaky.  Basically, they have a copyright to the exactly worded source

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Sundog
Again, you both might want to review a little history... in particular the (if memory serves, pretty successful and pretty savage) fight of the author of Tetris to protect his intellectual property over the last 20 years or so. And as I think someone else pointed out, your understanding of the

[android-developers] Re: Persistant Variables

2009-04-13 Thread Kirk - Actual Metrics
Thanks that works great. I feel kind of stupid for not figuring that out on my own now. I do think it's silly for onCreate to be called again on rotate; there should be an onOrientationChange event or something. Kirk On Apr 13, 11:31 am, MrChaz mrchazmob...@googlemail.com wrote: Take at look

[android-developers] Change Spinner content on fly

2009-04-13 Thread arnouf
Hi all, I've a ListActivity containing entries present in my db. Each line of this list is a Linearlayout containing image and text. To avoid to reload a part of my db each time, I load it one time. Records are put in my list used to build my adapter. I would like to set invisible some lines

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Sundog
I find it disheartening that this discussion is even taking place. Is this really the level of understanding of intellectual property rights among the community? Let's say you're Electronic Arts with Tetris and Monopoly ready for the Android platform, as they claimed was imminent way back in

[android-developers] Re: Persistant Variables

2009-04-13 Thread MrChaz
I think that there is a permission for saying that you will handle it and another event that you can hook. But I've not explored those :) On Apr 13, 8:49 pm, Kirk - Actual Metrics kirk.mora...@gmail.com wrote: Thanks that works great. I feel kind of stupid for not figuring that out on my own

[android-developers] Re: FTP on android

2009-04-13 Thread tiwana
I am using wifi. Now actually my AndFTP is working but still no change in the app i wrote. Thanks Birjodh On Apr 11, 11:54 pm, Marco Nelissen marc...@android.com wrote: Are you accessing the server through wi-fi, or through the carrier network? If the latter, make sure it's actually

[android-developers] Re: Permissions to install other apps...

2009-04-13 Thread tiwana
So when will be the cupcake available? On Apr 9, 7:06 pm, Dianne Hackborn hack...@android.com wrote: That's why apps can't install other apps without the user being involved.  I was addressing the first part of the original poster's request, being able to download and run Dalvik code in your

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Al Sutton
Xav, We're 6 months in and on the 3rd firmware release, lessons should have been learnt already. Personally I don't care whether it's intentional or not. The end result is the same for me in that Google are once again involved in the release of some new Android related functionality and once

[android-developers] Animating resizing of TextView

2009-04-13 Thread George
I have a textView that changes size dynamically and I want to animate the resizing. Here are my steps: (1) use TextView.layout to set the initial size - editText.layout(0, 0, 200, 50); (2) use startAnimation(scale) to scale the textView in the Xdirection (to animate resize) scale

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-13 Thread Michael Elsdörfer
Are you unaware of the recent Scrabble issue on the iPhone? You are probably referring to Scrabulous on Facebook. As far as I am aware, this also was mainly a trademark issue. Hasbro has claimed copyright on the game itself, but of course, that doesn't really mean much. I don't think you

[android-developers] Re: SDKs comparison with the iPhone

2009-04-13 Thread Michael Elsdörfer
it would be done on a discussion list, which would fit in with many open source projects I've worked on where pre-release versions are circulated and then developers say Yay or Nay to whether it's good enough to call a production release, I'm not sure what Open Source projects work like

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
There is a hack to do what you want -- make your WebView into a width of 336 -- that way you will have extra 8 pixels on each side. Then, put in somewhere off screen (use absolute layout), and get a drawing cache from it. That way, you can use the drawing cache bitmap, and draw that onto the real

[android-developers] Re: How to remove the WebView top/left 8-pixel inner margin?

2009-04-13 Thread Mattaku Betsujin
Oh, come to think of it, (assuming you want a WebView banner at the top of the screen) if you use AbsoluteLayout, you can put the WebView at (-8,-8). This can get rid of the top,left, and right edge. Then, place another View over the bottom edge of the WebView to cover that part as well. this

  1   2   >