[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 and i'd guess a whole lot more intuitive to
 use than the virtual keyboard for quick text entry.

 I'll definately have a play around with it when I get a spare minute
 or two; when I do i'll try and provide some feedback.

 Thanks for sharing!

 On Apr 11, 11:56 am, sydnal soydan.u...@gmail.com wrote:
  Hi; back around ADC 1; I had developed a simple gesture recognition
  library for Android (not for accelerometer; I mean touchscreen -
  finger gestures). I had to abandon it for quite a while, but recently
  I was able to clean it a bit and port it to 1.0 SDK. It is released
  under GPL. Here are some sample videos:
 
  http://www.youtube.com/watch?v=C7A6OHWfSOE
 
  http://www.youtube.com/watch?v=JxwGMtNS_YA
 
  You can download it here :
 http://blog.caffeine-driven.com/posts/dkn-a-gesture-recognition-libra...
  (Yeah the site sucks, i know)



 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 AndAppStore are built from the
cupcake branch open source tree and provide the date for the build (which,
as on most days there are no checkins, can be tracked to specific revision).
I also use the publicly available instructions, and I added text to show
that the branch is a work in progress and may not reflect what's shipped on
devices.
 
This brings me to the question of who deems what's official. JBQ indicated
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, but this didn't happen with 1.0 or 1.1 as far as I'm
aware, so if it really is going to be the community who decide what's bug
free enough to go gold when are we going to start seeing release candidates?
 
My personal suspicion is that Google feel only they have a say in what's
gets labelled as official and the community will get little or no
involvement, which completely misses the point of community based
development and all the benefits of having an army of potential testers
brings.
 
Al.

---

* Written an Android App? - List it at http://andappstore.com/
http://andappstore.com/  *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



 



From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Dianne Hackborn
Sent: 13 April 2009 04:39
To: android-developers@googlegroups.com
Subject: [android-developers] Re: SDKs  comparison with the iPhone


Which are exactly what Ralf is saying.  You can build an SDK out of some
random change # of the tree, and we are going to make it clear to people
that it is not official, because:

(1) We don't know what was done to build it, and thus what issues it may
have (such as networking being broken, it not being provisioned, etc).
(2) We don't know the state of the code at whatever place it was built from,
and thus don't want to leave people with the impression that this SDK can
actually be taken of an accurately reflection of the ultimate real SDK.

As an example of the latter, I spent a couple days last week doing a bunch
of cleanup of Cupcake, such as hiding new APIs that shouldn't be exposed in
the SDK, and exposing APIs that shouldn't be hidden any more.  So people
can't count on the actual APIs they get in a random build of the SDK to
actually accurately reflect what will be the final SDK, and that doesn't
even get in to the more subtle issues of changes to the code.


On Sat, Apr 11, 2009 at 11:00 PM, Al Sutton a...@funkyandroid.com wrote:



Quote sources;

Open source builds labelled as unofficial SDK -

http://groups.google.com/group/android-developers/msg/bb3374b419115644

Source of original quote on unofficial SDKs not working  -

http://groups.google.com/group/android-developers/msg/c408eb22c1722261

The rest of the discussion has moved to -discuss several hours
before your
email, so please continue any discussion about it over there.


Al.


---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



-Original Message-
From: android-developers@googlegroups.com

[mailto:android-develop...@googlegroups.com] On Behalf Of Ralf
Sent: 12 April 2009 03:04
To: android-developers@googlegroups.com
Subject: [android-developers] Re: SDKs  comparison with the iPhone



On Sat, Apr 11, 2009 at 12: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 public open source repository is 

[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 using my own post as evidence of why they felt I had
unreasonably rated their app.
 
Some users will see giving competing apps a 1* as a true reflection of their
opinion that compared to their favourite app another one is just a useless
distraction for users.

It's one of the reasons that AndAppStore allows users to say if a comment is
useful or not, that way you get an indication of what is considered a fair
comment and what's considered a blatant trashing of a useful app.

Al.
---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries. 


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of James
Sent: 10 April 2009 00:02
To: Android Developers
Subject: [android-developers] Re: Ultra-Competitive FireWallet supporters


Hi John,

This is James Gramata the creator of FireWallet.  I really do apologize for
users of my product behaving in this way.  I definitely do not condone these
actions but people are just expressing the way they feel and that is
understandable.

I have also had a number of comments/ratings on my product asking me not to
charge and to keep my product free or that other competing free applications
are better while giving me a rating of 1 star regardless of how they
actually felt about the quality of FireWallet.  These are kind of spam but
at the same time they are also legitimate ratings.

We as developers just have to hope that the good ratings/comments will
outweigh the negative.

Thanks,

James Gramata

On Apr 9, 8:57 am, John Lauricella jjlaurice...@hotmail.com wrote:
 Somebody named Peter, who has a comment on the FireWallet finance
application review page on the Android Market that says something like this
Firewallet is the greatest program ever, the best finance program, and the
best application period, for Android.. 5 STARS, went on a competing finance
application (BudgetProt) review site and wrote Firewallet is way way
better 2 STARS!!!
 That crushed the review stars average for the application and IS HURTING
SALES.
 This is highly confrontational behaviour, and will lead to retaliation. It
was not a real review, it was a way to hurt a competing product, by LYING.

 PLEASE STOP HURTING OTHER DEVELOPERS IN YOUR RACE TO OUTCOMPETE.

 _
 Rediscover Hotmail®: Get e-mail storage that grows with
you.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Redisco...




--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
information to confirm this?

Best regards,
Nicholas
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of milton
Sent: 13 April 2009 06:14
To: Android Developers
Subject: [android-developers] Re: When will google post official cupcake SDK


Hi , thanks for providing the SDK.
But I found the fake network is not workable.
I would like to try the phone call related features, is there any way that I
could enable it ?

Thanks in advance.

Regards
Milton

On 4月10日, 上午2時23分, Al Sutton a...@funkyandroid.com wrote:
 http://andappstore.com/AndroidPhoneApplications/sdk/

 ---

 * Written an Android App? - List it athttp://andappstore.com/*

 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.

   _

 From: android-developers@googlegroups.com
 [mailto:android-develop...@googlegroups.com] On Behalf Of Mattaku
 Betsujin
 Sent: 09 April 2009 19:22
 To: android-developers@googlegroups.com
 Subject: [android-developers] When will google post official cupcake
 SDK

 Even a beta SDK would be helpful. There are lots of app developers
 who don't necessarily know how to build cupcake from the GIT. Given
 that HTC Magic (based on cupcake, I heard) is rolling out real soon
 now, wouldn't it be nice to give the app developers a chance to test
 if their app is compatible with cupcake?

 Sure, Android API is supposed to be backwards compatible. However,
 there are quite a few bugs in the G1 that I had to work around with
 ugly hacks. Now I start to worry if those hacks would break on cupcake.



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 only occasionally ?

On Sun, Apr 12, 2009 at 1:47 PM, AK ajey...@gmail.com wrote:


 I have been developing on the windows Android SDK until recently i
 have moved to the Linux SDK. Once i launch the application from
 eclipse, i click the 'x' of the emulator window and an empty window
 persists, whereas this does not happen in the windows.
 I have to manually kill thru the shell (kill -9 emulator process
 id)
 Has anybody faced this problem on ubuntu 8.04, with android SDk 1.1 ?
 Thanks in advance
 AK

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
operations. The company respects copyrights, but does not take down apps
just because someone paid a lawyer a few hundred dollars to write a letter.

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.

Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries. 


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Ralf
Sent: 13 April 2009 06:38
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Apps labeled as Tetris Clones removed from
Android Market


You forget that Google is a US entity and as such is bound to US laws, such
as, for example, complying to US export limitations. If you don't like it,
you can always create your own app store that is not bound to US laws and
encourage developers to use it :-p

R/

On Sun, Apr 12, 2009 at 5:32 AM, Al Sutton a...@funkyandroid.com wrote:

 I think the most tragic thing about this is the guy who brought this 
 up is not US based and so the DMCA is irrelevant to hi as it has no
juristiction.

 If Google wants to apply US laws to everyone around the world who 
 wishes to list an app on market I can see a lot of problems ahead with 
 this and other Intellectual Property related issues.

 Al.

 - Original Message -
 From: Semprebon sempre...@gmail.com
 To: Android Developers android-developers@googlegroups.com
 Sent: Sunday, April 12, 2009 1:28 PM
 Subject: [android-developers] Re: Apps labeled as Tetris Clones 
 removed from Android Market



 Not strictly true. They can choose to remove the material and not be 
 liable for copyright infringement themselves, or they can ignore the 
 request and become liable. In reality, most will choose the first 
 option.

 On Apr 11, 3:23 pm, Edward  Falk ed.f...@gmail.com wrote:
 My understanding is: When an ISP or other provider receives a DMCA 
 takedown notice, they have no choice but to take the offending 
 material off line. They can't use their judgment, they just have to 
 do it.




 





--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 codes?

Thanks a lot!!

Ethan
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 to indicate that the 
LazyStrokesDictionary needs replaceing, so how about adopting the 
xstroke approach?

Best / Jonas

Mariano Kamp wrote:
 Yeah, me too, awesome stuff!
 
 On Sat, Apr 11, 2009 at 2:10 PM, Nishantha Pradeep 
 ucscnishan...@gmail.com mailto:ucscnishan...@gmail.com wrote:
 
 Good work and I am impressed. I will find someway to try this out
 
 On Sat, Apr 11, 2009 at 5:18 PM, mscwd01 mscw...@gmail.com
 mailto:mscw...@gmail.com wrote:
 
 That's really impressive and i'd guess a whole lot more intuitive to
 use than the virtual keyboard for quick text entry.
 
 I'll definately have a play around with it when I get a spare minute
 or two; when I do i'll try and provide some feedback.
 
 Thanks for sharing!
 
 On Apr 11, 11:56 am, sydnal soydan.u...@gmail.com
 mailto:soydan.u...@gmail.com wrote:
   Hi; back around ADC 1; I had developed a simple gesture
 recognition
   library for Android (not for accelerometer; I mean touchscreen -
   finger gestures). I had to abandon it for quite a while, but
 recently
   I was able to clean it a bit and port it to 1.0 SDK. It is
 released
   under GPL. Here are some sample videos:
  
   http://www.youtube.com/watch?v=C7A6OHWfSOE
  
   http://www.youtube.com/watch?v=JxwGMtNS_YA
  
   You can download it here
 
 :http://blog.caffeine-driven.com/posts/dkn-a-gesture-recognition-libra...
   (Yeah the site sucks, i know)


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 think this will help you



On Tue, Apr 7, 2009 at 5:09 PM, google swapna.annaman...@gmail.com wrote:


 hi,
 i am creating expandable list with group and childs,
 i am able to handle onchildclick()
 but not able to handle ongroupclick()  can anybody helps in this



 regards,
 chandra

 



-- 
Dilli Rao. M

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 function.

 But as far as first option is concerned the foreground activity
should be there running.
My background process should run even though the fore ground activity
is no more on screen. User ca launch other application also while
running my background process.

   So only second option is remains the choice. Or there is any other
way.
   Am I right about bindService() concept[that it remains only the
fore activity is there], is there any other way to keep binding with
backservice, to know update of it even though fore ground is no more
on screen.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
{
mMediaPlayer.setDataSource(/sdcard/test_cbr.mp3);
mMediaPlayer.prepare(); // Giving error.
mMediaPlayer.start();

}
catch(Exception e)
{
System.out.println(exception=+e.toString());
}



It is giving me error when i am calling prepare(). Cans some one tell
me what could be wrong in it ? Am i using wrong separator in run
configuration ?


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
 public open source repository is pretty worthless in its' current state.


As far as I know, open-source is not a value statement, but a set of
conditions that rule
how sources can be distributed and used. What is available from the git
repositories is as
open-source as it can be.

You seem to believe that the fact that you can't produce exact G1 device
images from them
makes them worthless, but many people are already using them to port the
platform to various
other devices. Also, the Android team is trying to make these sources more
useful to ADP1
owners, and closer to the internal tree used to prepare certain shipped
device binaries.

This is something that has been already discussed heavily in these forums
and is quite
well documented. There are some valid criticisms about this project's
roadmap and management
but I don't think this is one of them.



 The last time I tried to build the master branch it failed missing some
 Google internal API classes.


It is expected in any open-source project that sometimes the build of the
most recent sources
will not work correctly, or will not generate properly working code. This is
generally fixed by
providing patches, notifying of the problem, and/or waiting a bit for the
fixes to be submitted.

For the record, I did a full fresh download and build of the master branch
two days ago and
it built without any problem the generic-eng build product which is the
only one you should
care about at the moment. Oh, and networking is working in the emulator too.


 The SDKs I've produce from the cupcake branch
 seem to be considered by Google employees as pretty useless with comments
 like This is why we want to be clear it is unofficial, because it is not
 actually a working SDK being thrown around


First, it has been said several times in these forums that the cupcake
branch is only there to
reflect all the non-proprietary bits used by the internal Android source
tree, and that you should
not rely on it to build anything that works (be it system images or an SDK).
You should really
work from the master branch for anything real.

Also, the SDK is, compared to generic-eng, a very special build product for
a variety of nasty
technical details. Due to this it is very frequent that its build will not
work or will miss crucial
configuration files that break certain features. For cupcake, the tools team
has also made a
really big number of drastic changes to the way the SDK tools work in order
to support new
features like platforms, add-ons and AVDs, which did break custom SDK builds
more than
once.

The SDK is also very special because when we release an official one, it
comes with official documentation
on the public web site, a set of publicly supported APIs which are a very
strongly binding contract
between app developers and the platform, plus quite a lot of testing to
ensure that it works reasonably
well in terms of features and host platform support. Believe it or not, this
takes a lot of time

These are the reasons we say the things you mention: you are packaging
non-working SDKs and
should not expect us to throw much of our support behind them. At the
moment, we don't encourage
application developers to use custom SDKs to test their code against
Cupcake, do so at your own risk.


 and networking in the emulator
 still being broken a week after users started reporting the showstopper
 problem (And Romain did hint that Google have a fix, I read
 http://groups.google.com/group/android-developers/msg/41fcefc36bd16d44 as
 there is a version where this is fixed).


Networking works well in the generic-eng build product of the master
branch.
I have tested the SDK build yet, but I wouldn't be surprised if it is
broken, as explained
previously. However, this is the kind of thing that will get fixed when
preparing an official
SDK release.

Or you could look at this forum post, and integrate it into your custom
build:
http://groups.google.com/group/android-developers/msg/bcd639ecee7f270b

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 to implement image processing algorithm on JPEG
 data.I have set P.setpicturesize (640,480) so the  camera.takepicture
 (null,null,Imagecapture callbck) returns the image data.

 Void onPictureTaken(byte[] data, Camera Camera) returns JPEG data,
 but     ---(x = data.length) , the value of x is less than
 640*480 bytes.Please kindly let me know how can I start editing pixel
 information of the image and image comparison algorithms.

 thank you,
 Srikanth
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 moment
there is *nothing* which we can use to can prepare us for the imminent
release of a cupcake device from an OHA member.
 
No one I know would recommend last minute rushed coding, but as every day
goes past you're pushing developers further and further into that situation.
Vodafone have set a date for the Cupcake powered device release and that's
our deadline (which is just over 2 weeks away at best according to Vodafones
website), and yet we still don't have *anything* which allows us to do full
cupcake testing. The closest we can get is emulators with broken networking.
 
Btw, I do not and have never expect Google to support my SDK builds. The
closest I have got to statement like that is asking developers to submit
bugs to b.android.com, and expected Google, who have final sign-off on all
of the checkins to the public repository, to focus on fixing fundamental
bugs like broken networking. After a quick bit of work it looks like the fix
for http://code.google.com/p/android/issues/detail?id=996 only made into
master branch and not into cupcake and that fix dates back to November last
year.
 
Using the master branch would be fine, if you could tell us it would give a
good representation of what to expect from cupcake.
 
So what do you expect us to do?, Do you expect the development community to
sit back and take the flak when users start complaining that developers apps
don't work correctly on the HTC-Magic?, or do you expect many of us to start
pulling all nighters whenever you decide to release an official SDK to make
sure our apps are cupcake ready?, because at the moment I can only see we
have those two options and to me both of those sound like the OHA and Google
really doesn't give a shizzle about the public development community despite
its' efforts to help Android become popular.
 
Al.
---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.


 



From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of David Turner
Sent: 13 April 2009 11:14
To: android-developers@googlegroups.com
Subject: [android-developers] Re: SDKs  comparison with the iPhone



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
public open source repository is pretty worthless in its' current
state.



As far as I know, open-source is not a value statement, but a set of
conditions that rule
how sources can be distributed and used. What is available from the git
repositories is as
open-source as it can be.

You seem to believe that the fact that you can't produce exact G1 device
images from them
makes them worthless, but many people are already using them to port the
platform to various
other devices. Also, the Android team is trying to make these sources more
useful to ADP1
owners, and closer to the internal tree used to prepare certain shipped
device binaries.

This is something that has been already discussed heavily in these forums
and is quite
well documented. There are some valid criticisms about this project's
roadmap and management
but I don't think this is one of them.
 


The last time I tried to build the master branch it failed missing
some
Google internal API classes.


It is expected in any open-source project that sometimes the build of the
most recent sources
will not work correctly, or will not generate properly working code. This is
generally fixed by
providing patches, notifying of the problem, and/or waiting a bit for the
fixes to be submitted.

For the record, I did a full fresh download and build of the master branch
two days ago and
it built without any problem the generic-eng build product which is the
only one you should
care about at the moment. Oh, and networking is working in the emulator too.
 

The SDKs I've produce from the cupcake branch
seem to be considered by Google employees as pretty useless with
comments
like This is why we want to be clear it is unofficial, because it
is not
actually a working SDK being thrown around


First, it has been said several 

[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 developing software and in some cases I think other
developers may got some inspiration when hearing about patents involved in
US lawsuits.
 
The key point seems to be whether or not the UK operation is a truely
separate company, or if the UK operation relies on the use of assets either
located in the US or owned by a US organisation.
 
Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mariano Kamp
Sent: 13 April 2009 11:58
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Apps labeled as Tetris Clones removed from
Android Market


 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 true for all practical matters. I work for an
American company and certify once a year that I will adhere to US export
restrictions.

On Mon, Apr 13, 2009 at 10:34 AM, Al Sutton a...@funkyandroid.com wrote:



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
operations. The company respects copyrights, but does not take down apps
just because someone paid a lawyer a few hundred dollars to write a letter.

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.


Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.


-Original Message-
From: android-developers@googlegroups.com

[mailto:android-develop...@googlegroups.com] On Behalf Of Ralf
Sent: 13 April 2009 06:38
To: android-developers@googlegroups.com

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


You forget that Google is a US entity and as such is bound to US laws, such
as, for example, complying to US export limitations. If you don't like it,
you can always create your own app store that is not bound to US laws and
encourage developers to use it :-p

R/

On Sun, Apr 12, 2009 at 5:32 AM, Al Sutton a...@funkyandroid.com wrote:

 I think the most tragic thing about this is the guy who brought this
 up is not US based and so the DMCA is irrelevant to hi as it has no
juristiction.

 If Google wants to apply US laws to everyone around the world who
 wishes to list an app on market I can see a lot of problems ahead with
 this and other Intellectual Property related issues.

 Al.

 - Original Message -
 From: Semprebon sempre...@gmail.com
 To: Android Developers android-developers@googlegroups.com
 Sent: Sunday, April 12, 2009 1:28 PM
 Subject: [android-developers] Re: Apps labeled as Tetris Clones
 removed from Android Market



 Not strictly true. They can choose to remove the material and not be
 liable for copyright infringement themselves, or they can ignore the
 request and become liable. In reality, most will choose the first
 option.

 On Apr 11, 3:23 pm, Edward  Falk ed.f...@gmail.com wrote:
 My understanding is: When an ISP or other provider receives a DMCA
 takedown notice, they have no choice but to take the offending
 material off line. They can't use their judgment, they just have to
 do it.




 













--~--~-~--~~~---~--~~
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: 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 true for all practical matters. I work for an
American company and certify once a year that I will adhere to US export
restrictions.

On Mon, Apr 13, 2009 at 10:34 AM, Al Sutton a...@funkyandroid.com wrote:


 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
 operations. The company respects copyrights, but does not take down apps
 just because someone paid a lawyer a few hundred dollars to write a letter.

 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.

 Al.

 ---

 * Written an Android App? - List it at http://andappstore.com/ *

 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.


 -Original Message-
 From: android-developers@googlegroups.com
 [mailto:android-develop...@googlegroups.com] On Behalf Of Ralf
 Sent: 13 April 2009 06:38
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: Apps labeled as Tetris Clones removed
 from
 Android Market


 You forget that Google is a US entity and as such is bound to US laws, such
 as, for example, complying to US export limitations. If you don't like it,
 you can always create your own app store that is not bound to US laws and
 encourage developers to use it :-p

 R/

 On Sun, Apr 12, 2009 at 5:32 AM, Al Sutton a...@funkyandroid.com wrote:
 
  I think the most tragic thing about this is the guy who brought this
  up is not US based and so the DMCA is irrelevant to hi as it has no
 juristiction.
 
  If Google wants to apply US laws to everyone around the world who
  wishes to list an app on market I can see a lot of problems ahead with
  this and other Intellectual Property related issues.
 
  Al.
 
  - Original Message -
  From: Semprebon sempre...@gmail.com
  To: Android Developers android-developers@googlegroups.com
  Sent: Sunday, April 12, 2009 1:28 PM
  Subject: [android-developers] Re: Apps labeled as Tetris Clones
  removed from Android Market
 
 
 
  Not strictly true. They can choose to remove the material and not be
  liable for copyright infringement themselves, or they can ignore the
  request and become liable. In reality, most will choose the first
  option.
 
  On Apr 11, 3:23 pm, Edward  Falk ed.f...@gmail.com wrote:
  My understanding is: When an ISP or other provider receives a DMCA
  takedown notice, they have no choice but to take the offending
  material off line. They can't use their judgment, they just have to
  do it.
 
 
 
 
  
 




 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 was right.  I was somehow creating multiple copies
  of Activity C.  In case anyone can benefit from this, let me explain
  how it went wrong.

  I implemented onTouch() in Activity B, which would create an Intent
  for Activity C, and then call startActivity().  For some reason,
  onTouch() would get called multiple times with each touch, launching a
  new Activity C each time.

 Ah indeed. Remember that touch on the emulator, via the mouse, is a
 very precise operation -- you click one pixel, once. On a real device
 your finger generates lots of input events due to the imprecision of
 the point being touched, pressure, etc. If you real on a precise
 touch, you might want to implement a threshold in your touch listener
 to filter out noise.

 R/



  Jon, I've seen some oddities from that myself, although I can't really
  make sense of it.  But it's helpful to keep that in mind.

  Thanks!
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
nithinwarier.blogspot.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 DMCA removals. Why?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 at 3:12 AM, elDoudou the.edouard.merc...@gmail.comwrote:


 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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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), you'll have to figure out why the file was rejected.
 Also, if you're having problems on a particular device, you should
 probably post over on the android-porting list instead of here.


 On Sun, Apr 12, 2009 at 5:47 AM, l hx lihongxia8...@gmail.com wrote:
  i am sure that the file can been played in android. when i inport android
 to
  my device such as pxa310, it can be played in my device. but i can  not
 be
  seen in my emulation. but some other mp4 file can been seen in my
 emulation.
  i just copy the file into the sdcard normally and can be seen in the
 /sdcard
   catalog. i see in the mediacanner.java that ttis file is been sannered
  also.
 
  On Sat, Apr 11, 2009 at 1:58 PM, Marco Nelissen marc...@android.com
 wrote:
 
  Are the files in a supported format? How did you put the files in
 /sdcard?
 
 
  On Fri, Apr 10, 2009 at 10:33 PM, l hx lihongxia8...@gmail.com wrote:
   and i meet a matter such as: some file in the /sdcard can not be seen
 in
   the
   trackbrowserActivity of music app. i found the file also can not be
   found in
   the database of the mediaprovider. who know why?
  
  
   On Sat, Apr 11, 2009 at 1:24 PM, Marco Nelissen marc...@android.com
   wrote:
  
   It would help if you said what error you're getting.
   You can check whether the file is actually there by doing something
   like adb shell ls -l /sdcard and checking that the file exists.
  
  
  
   On Fri, Apr 10, 2009 at 9:23 PM, Nithin nithi...@gmail.com wrote:
   
Hi to all
   
  I push the one video file... and tried to play that video
file in emulator.. But
i got error... Can any tell me how can i check weather video file
insert or not...
   
   
Thank You
Nithin N V

   
   
  
  
 

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
download the update, and conveniently they can rate your app during the
download.

For the people who hate your app, they won't bother to install the update.
And, if they use Settings to uninstall your app, they won't even have a
chance to give you one star before uninstalling.

I found this out because every time I push an update, within a few hours I
get a bunch of new ratings and good reviews.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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?


Thanks
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 look and let me know if you found
something wrong in it.

On Apr 13, 5:10 pm, Nithin nithin.war...@gmail.com wrote:
 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
 nithinwarier.blogspot.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 XML Parsing Error until i erase the entire xliff tag...
Thx for replying.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
 getWindow().requestFeature(Window.FEATURE_NO_TITLE);
 in the Activity onCreate() method before the setContentView() call.

 But i want something different. I'd like to show/hide the title bar in
 any moment. To make an example, place a button in the view that toggle
 the title. Unfortunately the requestFeature can be done only before
 the call to setContentView().

 How to you think is the best way to achive this? There is a way to
 solve this issue?

 Thanks
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 http://developer.android.com/guide/topics/fundamentals.html and
read up on the Launch Modes section. You'll get the info you need
from there.

On Apr 9, 7:15 pm, Roman roman.baumgaert...@t-mobile.com wrote:
 Noam,

 Try to use the singleton pattern in your application. If you have
 already an instance created and try to create another one, then you
 would not be able to do this because of the singleton pattern.

 Sr. SW Engineer
 Roman Baumgaertner

 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Apr 9, 2:39 pm, Noam noam.ha...@gmail.com wrote:



  Hello,
  Is there a way to prevent the user of opening more than one instance
  of my application?

  For example:
  User clicks on App and opens it.
  The user clicks on the home button. (the app is still running in the
  background)
  The user clicks on (not the menu button, but the button above it in
  the homescreen), and then opens the application again.
  Does it open the same instance, or does it create another one?
  If it does create another one, how can I prevent it from creating
  another one, and just opening the existing instance?

  Thanks,
  Noam.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 right now since the current BT stack
is limited to 115k.)

On Sun, Apr 12, 2009 at 10:22 PM, angie hanab...@gmail.com wrote:



 Hello, All!

 1. How to enable DUN in G1 phone?
 2. If DUN is not in G1 phone, which Android version include DUN...?

 Please help me.

 thanks!

 -Angie-

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 never be a real grown-up operating
system.

On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
wrote:
 On Saturday April 4th, I received a message from google saying that my
 game Robotic Space Rock was pulled from the android market after a
 request made by a legal firm representing an entity known as Tetris
 Company. My application was removed from the android market together
 with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
 total) under claim that it violates the DMCA and more specifically
 trademarks and copyrighted material owned by the Tetris Company.
 However, none of the trademarks or copyrighted material (music,
 graphics and sound effects) are present in my game. Sound effects and
 music were created by me specifically for the game. There is no
 reference to the word tetris in the game. Additionally, all the game
 code, graphics and sound effects  were created by me and published on
 the code sitehttp://code.google.com/p/monolithandroid

 Additionally, I am not aware of a software patent covering the game
 mechanics of Tetris, so I cannot see how I could violate something
 that is not protected by a software patent. Also, even if the game was
 protected by a patent, the patent would have expired, since the
 original game, Tetris, was created 23 years ago. However game
 mechanics cannot be covered by patents.

 I would also like to point out that my game is available completely
 free of charge to every user of the android market.

 I wrote those concerns to Google and I sent an email to the EFF. The
 bottom line is that for my application to be restored on the android
 market, I have to send a DMCA counter-notification. And then the
 Tetris Company can sue and take the case to Court.

 When games were pulled from the iPhone App store, they blamed apple,
 but it is not hard to see that behind application removals we can find
 companies like the Tetris Company, that demand application removals
 claiming copyright infringement and trademarks. However, it is not
 easy to battle these companies as individual developers. I, for
 example, am a Greek citizen living in Greece, so it is difficult for
 me to file a counter-notification, because then the Tetris company
 will probably sue me and I will have to defend my case in court. Why
 should I bother? Am I making money out of the game? No! But even if I
 did you can see how easy it is for corporations to neutralize
 developers like that. I think that something should be done.
 Independent developers should get together to battle against such
 misuse of the law by corporations.
 And to those that want more facts, you can find more details on my
 blog:http://tkcodesharing.blogspot.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 setesting...@gmail.com wrote:


 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?


 Thanks
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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
  getWindow().requestFeature(Window.FEATURE_NO_TITLE);
  in the Activity onCreate() method before the setContentView() call.
 
  But i want something different. I'd like to show/hide the title bar in
  any moment. To make an example, place a button in the view that toggle
  the title. Unfortunately the requestFeature can be done only before
  the call to setContentView().
 
  How to you think is the best way to achive this? There is a way to
  solve this issue?
 
  Thanks
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 longer than a call to findViewById.

Take a look at this: 
http://developer.android.com/guide/practices/design/performance.html#samples

On Apr 13, 6:04 pm, Alexey avolo...@gmail.com wrote:
 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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
 MultiAutoCompleteTextView but can't find anything on how to pass my
 own filter to it. Any idea how to do 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 longer than a call to findViewById.

 Take a look at 
 this:http://developer.android.com/guide/practices/design/performance.html#...

 On Apr 13, 6:04 pm, Alexey avolo...@gmail.com wrote:

  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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 unable to download my app from the android market. Is it because
  of some settings I have to do while publishing? What is the reason
  that dev phone is unable to download the app? The same app is
  downloadable on other normal android phones. Please help this is
  really bugging me.

 Did you switch on the Copy Protection option when you uploaded your
 app? Copy protected apps can't be downloaded on ADP1s. If you're
 thinking about switching off the protection option look at this bug
 first, because changing the setting can cause some severe 
 problems:http://code.google.com/p/android/issues/detail?id=2047

 --
 Jon
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:id=@+id/line1 android:visibility=visible
android:textAppearance=?android:attr/textAppearanceMedium
android:layout_width=wrap_content
android:paddingLeft=4dip
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_alignWithParentIfMissing=true
android:layout_toRightOf=@id/testicon
android:ellipsize=marquee
android:singleLine=true /

CheckBox android:id=@+id/checkbox1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=4dip
android:text=
android:layout_alignParentRight=true
android:visibility=invisible/

 /RelativeLayout

2. as you may noticed that I set the CheckBox as invisible as the
initial state

3. in my list activity, I want to show the CheckBox for all list items
 it may be triggered by a button click or some other events, so
what I want to do is:  just refresh the list, make the checkbox get
shown.

4. so I changed the visibility in BaseAdapter::getView(int position,
View convertView, ViewGroup parent):
CheckBox itemChkBx = ( CheckBox ) mActivityContext.findViewById
( R.id.checkbox1 );
itemChkBx.setVisibility(View.VISIBLE);

but I have to scroll the list to make the checkbox get shown.
I also tried the getListView().invalidateViews() method, but it
doesn't stable,
so do we have a method to force the list view re-draw everything?

Regards,
James

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 code on how to do this?

Thanks SO much for any help!

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 having major issues
 with it.

 It is a very simple application designed to allow the toggling of
 connectivity to 3G/EDGE/GPRS services. It exploits the fact that if
 you set the APN type of an access point on the phone to a hyphen, the
 phone does not try and connect to it.

 When first run, the application copies all the access point names and
 types into a database. It then sets the APN type of every access point
 to a hyphen. It then displays 'Disabled'. When the application is next
 run it restores the APN type of each access point. This works
 perfectly on my development dream and the emulator.

 I can not tell what part of this is failing for people so if anyone
 would like to help me test this application it would be greatly
 appreciated.

 Thanks

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 an adapter which pulls
data from there as the listview requires it.

Seeing as they're so different I can't just dump required info into
columns in a db (particularly given one type has a hashmap).

Is it possible to use bundle and parcels? The bundle forcing it to be
flattened? I couldn't see a way to dump a parcel to a string to push
it into sqlite.

This leaves me with just serializing objects and streaming it into a
string before I'm out of ideas.

Any suggestions on the most efficient way to deal with this? I'm also
not sure on the overhead of serializing and retrieving objects for the
db. I can see it quite possibly ripping through battery.

Cheers,

Alan.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Gallery class, the dpad works fine. But when I
extend the Gallery and use my custom gallery class, the dpad stops
working. Am I missing something? Please help.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 image using this code :

 Bitmap b=DownloadImage(imageUrl);
 FileOutputStream fos = mcontx.openFileOutput(imageName,
 Context.MODE_WORLD_WRITEABLE)                  

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Bmi extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);


Button button=(Button)findViewById(R.id.submit);
button.setOnClickListener(calcBMI);
}
private OnClickListener calcBMI = new OnClickListener()
{
public void onClick(View v)
{
DecimalFormat nf=new DecimalFormat(0.00);

EditText fieldheight=(EditText)findViewById(R.id.height);
EditText fieldweight = (EditText)findViewById(R.id.weight);
double height = 
Double.parseDouble(fieldheight.getText().toString
());
height=height/100;
double weight = 
Double.parseDouble(fieldweight.getText().toString
());

TextView result = (TextView)findViewById(R.id.result);
TextView fieldsuggest = (TextView)findViewById(R.id.suggest);
if(height=0||weight=0)
result.setText(input wrong);
else
{
   double BMI = weight / (height * height);


 result.setText(Your BMI is +nf.format(BMI));

 if(BMI25){
fieldsuggest.setText(R.string.advice_heavy);
   }else if(BMI20){
fieldsuggest.setText(R.string.advice_light);
   }else{
fieldsuggest.setText(R.string.advice_average);
   }
 }

}

};
}



MY question:



when runing the app .if i input nothing .it will force close

how can i fix it???
please give me a hang...i am a beginners.thanks

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 -audio oss

The sd card image needs to be a FAT filesystem image, not an ISO image.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 why?

 On Sun, Apr 12, 2009 at 11:46 PM, Marco Nelissen marc...@android.com
 wrote:

 If it's been scanned, but doesn't appear in the database (as you said
 earlier), you'll have to figure out why the file was rejected.
 Also, if you're having problems on a particular device, you should
 probably post over on the android-porting list instead of here.


 On Sun, Apr 12, 2009 at 5:47 AM, l hx lihongxia8...@gmail.com wrote:
  i am sure that the file can been played in android. when i inport
  android to
  my device such as pxa310, it can be played in my device. but i can  not
  be
  seen in my emulation. but some other mp4 file can been seen in my
  emulation.
  i just copy the file into the sdcard normally and can be seen in the
  /sdcard
   catalog. i see in the mediacanner.java that ttis file is been sannered
  also.
 
  On Sat, Apr 11, 2009 at 1:58 PM, Marco Nelissen marc...@android.com
  wrote:
 
  Are the files in a supported format? How did you put the files in
  /sdcard?
 
 
  On Fri, Apr 10, 2009 at 10:33 PM, l hx lihongxia8...@gmail.com wrote:
   and i meet a matter such as: some file in the /sdcard can not be seen
   in
   the
   trackbrowserActivity of music app. i found the file also can not be
   found in
   the database of the mediaprovider. who know why?
  
  
   On Sat, Apr 11, 2009 at 1:24 PM, Marco Nelissen marc...@android.com
   wrote:
  
   It would help if you said what error you're getting.
   You can check whether the file is actually there by doing something
   like adb shell ls -l /sdcard and checking that the file exists.
  
  
  
   On Fri, Apr 10, 2009 at 9:23 PM, Nithin nithi...@gmail.com wrote:
   
Hi to all
   
          I push the one video file... and tried to play that
video
file in emulator.. But
i got error... Can any tell me how can i check weather video file
insert or not...
   
   
Thank You
Nithin N V

   
   
  
  
 




 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 codes?

 Thanks a lot!!

 Ethan
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 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 longer than a call to findViewById.

  Take a look at 
  this:http://developer.android.com/guide/practices/design/performance.html#...

  On Apr 13, 6:04 pm, Alexey avolo...@gmail.com wrote:

   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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, yoyo zjw...@gmail.com wrote:

 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 Bmi extends Activity {

        /** Called when the activity is first created. */
   �...@override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);


        Button button=(Button)findViewById(R.id.submit);
        button.setOnClickListener(calcBMI);
    }
    private OnClickListener calcBMI = new OnClickListener()
    {
        public void onClick(View v)
        {
                DecimalFormat nf=new DecimalFormat(0.00);

                EditText fieldheight=(EditText)findViewById(R.id.height);
                EditText fieldweight = (EditText)findViewById(R.id.weight);
                double height = 
 Double.parseDouble(fieldheight.getText().toString
 ());
                height=height/100;
                double weight = 
 Double.parseDouble(fieldweight.getText().toString
 ());

                TextView result = (TextView)findViewById(R.id.result);
                TextView fieldsuggest = (TextView)findViewById(R.id.suggest);
                if(height=0||weight=0)
                        result.setText(input wrong);
                else
                {
                   double BMI = weight / (height * height);


             result.setText(Your BMI is +nf.format(BMI));

             if(BMI25){
                    fieldsuggest.setText(R.string.advice_heavy);
                   }else if(BMI20){
                fieldsuggest.setText(R.string.advice_light);
                   }else{
                    fieldsuggest.setText(R.string.advice_average);
                   }
             }

        }

    };
 }



 MY question:



 when runing the app .if i input nothing .it will force close

 how can i fix it???
 please give me a hang...i am a beginners.thanks

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, 2009 at 5:04 AM, quakeboy prasna...@gmail.com wrote:


 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 was right.  I was somehow creating multiple copies
   of Activity C.  In case anyone can benefit from this, let me explain
   how it went wrong.
 
   I implemented onTouch() in Activity B, which would create an Intent
   for Activity C, and then call startActivity().  For some reason,
   onTouch() would get called multiple times with each touch, launching a
   new Activity C each time.
 
  Ah indeed. Remember that touch on the emulator, via the mouse, is a
  very precise operation -- you click one pixel, once. On a real device
  your finger generates lots of input events due to the imprecision of
  the point being touched, pressure, etc. If you real on a precise
  touch, you might want to implement a threshold in your touch listener
  to filter out noise.
 
  R/
 
 
 
   Jon, I've seen some oddities from that myself, although I can't really
   make sense of it.  But it's helpful to keep that in mind.
 
   Thanks!
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 Gallery class, the dpad works fine. But when I
 extend the Gallery and use my custom gallery class, the dpad stops
 working. Am I missing something? Please help.

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 function.

 But as far as first option is concerned the foreground activity
 should be there running.
 My background process should run even though the fore ground activity
 is no more on screen. User ca launch other application also while
 running my background process.

   So only second option is remains the choice. Or there is any other
 way.
   Am I right about bindService() concept[that it remains only the
 fore activity is there], is there any other way to keep binding with
 backservice, to know update of it even though fore ground is no more
 on screen.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 platform,
 not the G1, Magic or any specific device implementation, but at the moment
 there is *nothing* which we can use to can prepare us for the imminent
 release of a cupcake device from an OHA member.


Yes, and we have said pretty consistently that application developers should
rather wait for an official cupcake SDK rather than try to build their own,
if they
want to avoid more frustration than they imagine.

If you want to surf on the bleeding edge, the generic-eng build product in
the
master branch is the only thing you should try, and even this is a rocky
road for
an application developer, less so for a system integrator.

Apart from that, we're still committed to providing a Cupcake SDK before
devices
ship, and we want to gradually but seriously reduce the gap between our
internal
tree and the public one. We have been doing that for quite some time but
this is
not directly visible. The Android team is currently doing many internal
changes in
the tools and processes it uses internally to reach this goal, but this
takes some
time, especially when you're trying to build shippable products at the same
time.


 No one I know would recommend last minute rushed coding, but as every day
 goes past you're pushing developers further and further into that
 situation.
 Vodafone have set a date for the Cupcake powered device release and that's
 our deadline (which is just over 2 weeks away at best according to
 Vodafones
 website), and yet we still don't have *anything* which allows us to do full
 cupcake testing. The closest we can get is emulators with broken
 networking.


I can tell you that most applications will work on Cupcake is they run on
the 1.0 and
1.1 firmware images. The problematic ones are generally those who use
unfrozen/unstable APIs, and developers have been warned well in advance that
problems are to be expected.

There may be a few corner cases, like some permissions being modified or
removed
for system-level security reasons, but they should hopefully be exceptions
and will  be
explicitely documented when the SDK is out.

I have been dog-fooding cupcake builds for a while now, and I don't think
I've encountered
more than one application over 50+ that did have a problem on them. However
anecdote
is not data, so take that with a grain of salt.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, 3:11 pm, yoyo zjw...@gmail.com wrote:
 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 Bmi extends Activity {

         /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         Button button=(Button)findViewById(R.id.submit);
         button.setOnClickListener(calcBMI);
     }
     private OnClickListener calcBMI = new OnClickListener()
     {
         public void onClick(View v)
         {
                 DecimalFormat nf=new DecimalFormat(0.00);

                 EditText fieldheight=(EditText)findViewById(R.id.height);
                 EditText fieldweight = (EditText)findViewById(R.id.weight);
                 double height = 
 Double.parseDouble(fieldheight.getText().toString
 ());
                 height=height/100;
                 double weight = 
 Double.parseDouble(fieldweight.getText().toString
 ());

                 TextView result = (TextView)findViewById(R.id.result);
                 TextView fieldsuggest = (TextView)findViewById(R.id.suggest);
                 if(height=0||weight=0)
                         result.setText(input wrong);
                 else
                 {
                    double BMI = weight / (height * height);

              result.setText(Your BMI is +nf.format(BMI));

              if(BMI25){
                     fieldsuggest.setText(R.string.advice_heavy);
                    }else if(BMI20){
                 fieldsuggest.setText(R.string.advice_light);
                    }else{
                     fieldsuggest.setText(R.string.advice_average);
                    }
              }

         }

     };

 }

 MY question:

 when runing the app .if i input nothing .it will force close

 how can i fix it???
 please give me a hang...i am a beginners.thanks
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, and relates to an XML layout which renders differently between
1.0/1.1 and cupcake (and Romain was kind enough to confirm that the cupcake
layout I saw is an accurate reflection of how the layout manager was suppose
to work).
 
This isn't just an API thing, there could be a number of developers who have
stuck to the API guidelines yet get blindsided by changes in cupcake (see
http://groups.google.com/group/android-developers/msg/f060b726d81c207b for
another example).
 
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?
 
Al.

---

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the
company number  6741909. The registered head office is Kemp House,
152-160 City Road, London,  EC1V 2NX, UK.

The views expressed in this email are those of the author and not
necessarily those of Funky Android Limited, it's associates, or it's
subsidiaries.



 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of David Turner
Sent: 13 April 2009 18:17
To: android-developers@googlegroups.com
Subject: [android-developers] Re: SDKs  comparison with the iPhone



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 platform,
not the G1, Magic or any specific device implementation, but at the moment
there is *nothing* which we can use to can prepare us for the imminent
release of a cupcake device from an OHA member.



Yes, and we have said pretty consistently that application developers should
rather wait for an official cupcake SDK rather than try to build their own,
if they
want to avoid more frustration than they imagine.

If you want to surf on the bleeding edge, the generic-eng build product in
the
master branch is the only thing you should try, and even this is a rocky
road for
an application developer, less so for a system integrator.

Apart from that, we're still committed to providing a Cupcake SDK before
devices
ship, and we want to gradually but seriously reduce the gap between our
internal
tree and the public one. We have been doing that for quite some time but
this is
not directly visible. The Android team is currently doing many internal
changes in
the tools and processes it uses internally to reach this goal, but this
takes some
time, especially when you're trying to build shippable products at the same
time.




No one I know would recommend last minute rushed coding, but as every day
goes past you're pushing developers further and further into that situation.
Vodafone have set a date for the Cupcake powered device release and that's
our deadline (which is just over 2 weeks away at best according to Vodafones
website), and yet we still don't have *anything* which allows us to do full
cupcake testing. The closest we can get is emulators with broken networking.



I can tell you that most applications will work on Cupcake is they run on
the 1.0 and
1.1 firmware images. The problematic ones are generally those who use
unfrozen/unstable APIs, and developers have been warned well in advance that
problems are to be expected.

There may be a few corner cases, like some permissions being modified or
removed
for system-level security reasons, but they should hopefully be exceptions
and will  be
explicitely documented when the SDK is out.

I have been dog-fooding cupcake builds for a while now, and I don't think
I've encountered
more than one application over 50+ that did have a problem on them. However
anecdote
is not data, so take that with a grain of salt.







--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, wholesale, a portion of their code in order to
infringe on their copyright.  Further, they have trademarks on the
look and feel of colors/blocks and a trademark on the name Tetris.
So technically, according to the law there is no claim.  With that
said, if they have a good lawyer and are in front of a retarded judge,
then maybe they can go somewhere with this.
They also have NO software patent claims, nor allege any.  Even if
they DID have a software patent, software patents are under a lot of
scrutiny, and it probably would not take too much to get it
invalidated.

On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:
 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 never be a real grown-up operating
 system.

 On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
 wrote:

  On Saturday April 4th, I received a message from google saying that my
  game Robotic Space Rock was pulled from the android market after a
  request made by a legal firm representing an entity known as Tetris
  Company. My application was removed from the android market together
  with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
  total) under claim that it violates the DMCA and more specifically
  trademarks and copyrighted material owned by the Tetris Company.
  However, none of the trademarks or copyrighted material (music,
  graphics and sound effects) are present in my game. Sound effects and
  music were created by me specifically for the game. There is no
  reference to the word tetris in the game. Additionally, all the game
  code, graphics and sound effects  were created by me and published on
  the code sitehttp://code.google.com/p/monolithandroid

  Additionally, I am not aware of a software patent covering the game
  mechanics of Tetris, so I cannot see how I could violate something
  that is not protected by a software patent. Also, even if the game was
  protected by a patent, the patent would have expired, since the
  original game, Tetris, was created 23 years ago. However game
  mechanics cannot be covered by patents.

  I would also like to point out that my game is available completely
  free of charge to every user of the android market.

  I wrote those concerns to Google and I sent an email to the EFF. The
  bottom line is that for my application to be restored on the android
  market, I have to send a DMCA counter-notification. And then the
  Tetris Company can sue and take the case to Court.

  When games were pulled from the iPhone App store, they blamed apple,
  but it is not hard to see that behind application removals we can find
  companies like the Tetris Company, that demand application removals
  claiming copyright infringement and trademarks. However, it is not
  easy to battle these companies as individual developers. I, for
  example, am a Greek citizen living in Greece, so it is difficult for
  me to file a counter-notification, because then the Tetris company
  will probably sue me and I will have to defend my case in court. Why
  should I bother? Am I making money out of the game? No! But even if I
  did you can see how easy it is for corporations to neutralize
  developers like that. I think that something should be done.
  Independent developers should get together to battle against such
  misuse of the law by corporations.
  And to those that want more facts, you can find more details on my
  blog:http://tkcodesharing.blogspot.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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): Start proc org.me.map for
 activity org.me.map/.MapAct: pid=615 uid=10022 gids={3003} 04-13
 22:30:06.944: DEBUG/dalvikvm(607): VM cleaning up 04-13 22:30:06.954:
 DEBUG/dalvikvm(607): LinearAlloc 0x0 used 541500 of 4194304 (12%) 04-13
 22:30:06.976: ERROR/dalvikvm(607): pthread_setspecific failed, err=22 04-13
 22:30:07.425: INFO/System.out(615):   Setting locale to en_US 04-13
 22:30:07.466: WARN/Maps_Persistence(615): Couldn't find file:
 /data/data/org.me.map/files/DATA_Preferences 04-13 22:30:07.545:
 INFO/jdwp(615): received file descriptor 27 from ADB 04-13 22:30:07.645:
 WARN/Maps_Persistence(615): Couldn't find file:
 /data/data/org.me.map/files/DATA_Tiles 04-13 22:30:07.675:
 WARN/Maps(615): Couldn't
 restore map info, data == null 04-13 22:30:07.995: INFO/MapActivity(615):
 Handling network change notification:CONNECTED 04-13 22:30:08.015:
 ERROR/MapActivity(615): Couldn't get connection factory client 04-13
 22:30:08.194: INFO/ActivityManager(48): Displayed activity
 org.me.map/.MapAct: 1400 ms

 Please tell whats wrong with this, My source code is very simple, I ididnt
 try anything special,

 public class MapAct extends MapActivity { /** Called when the activity is
 first created. */ @Override public void onCreate(Bundle savedInstanceState)
 { super.onCreate(savedInstanceState); setContentView(R.layout.main); }
 @Override protected boolean isRouteDisplayed() { // TODO Auto-generated
 method stub return false; } }

 Thanks
 Nithin
 nithinwarier.blogspot.com
 +919739146701

  map.bmp
 3112KViewDownload
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 code on how to do this?

 Thanks SO much for any help!
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 int numBlocks = 50 you would not be infringing.

You seem to be saying that I could take someone's source code, rename
all the variables, and then claim it as my own. That can't be right.
Also note that with most languages the binary would be exactly the same.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 ayanafr...@gmail.com wrote:

 Your contention that grown up operating systems should not allow you
 to copy ideas is totally unfounded.  You can never patent abstracty
 ideas. Game ideas cannot be patented.  Whether they should be is a
 different discussion.  You can go right and now, and make a game on
 Windows with a story very similar to fallout, and write all your own
 code, and use all your own graphics/sound assets and you will not be
 infringing on that IP in any way.  A company may come and try to sue
 you, but that has no relevance to a maturity of an operating system.

 On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:
 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 never be a real grown-up operating
 system.

 On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
 wrote:

  On Saturday April 4th, I received a message from google saying that my
  game Robotic Space Rock was pulled from the android market after a
  request made by a legal firm representing an entity known as Tetris
  Company. My application was removed from the android market together
  with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
  total) under claim that it violates the DMCA and more specifically
  trademarks and copyrighted material owned by the Tetris Company.
  However, none of the trademarks or copyrighted material (music,
  graphics and sound effects) are present in my game. Sound effects and
  music were created by me specifically for the game. There is no
  reference to the word tetris in the game. Additionally, all the game
  code, graphics and sound effects  were created by me and published on
  the code sitehttp://code.google.com/p/monolithandroid

  Additionally, I am not aware of a software patent covering the game
  mechanics of Tetris, so I cannot see how I could violate something
  that is not protected by a software patent. Also, even if the game was
  protected by a patent, the patent would have expired, since the
  original game, Tetris, was created 23 years ago. However game
  mechanics cannot be covered by patents.

  I would also like to point out that my game is available completely
  free of charge to every user of the android market.

  I wrote those concerns to Google and I sent an email to the EFF. The
  bottom line is that for my application to be restored on the android
  market, I have to send a DMCA counter-notification. And then the
  Tetris Company can sue and take the case to Court.

  When games were pulled from the iPhone App store, they blamed apple,
  but it is not hard to see that behind application removals we can find
  companies like the Tetris Company, that demand application removals
  claiming copyright infringement and trademarks. However, it is not
  easy to battle these companies as individual developers. I, for
  example, am a Greek citizen living in Greece, so it is difficult for
  me to file a counter-notification, because then the Tetris company
  will probably sue me and I will have to defend my case in court. Why
  should I bother? Am I making money out of the game? No! But even if I
  did you can see how easy it is for corporations to neutralize
  developers like that. I think that something should be done.
  Independent developers should get together to battle against such
  misuse of the law by corporations.
  And to those that want more facts, you can find more details on my
  blog:http://tkcodesharing.blogspot.com
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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. Is there any way to make the values of these
variables persists?

Thanks,

Kirk
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 an adapter which pulls
 data from there as the listview requires it.

 Seeing as they're so different I can't just dump required info into
 columns in a db (particularly given one type has a hashmap).

 Is it possible to use bundle and parcels? The bundle forcing it to be
 flattened? I couldn't see a way to dump a parcel to a string to push
 it into sqlite.

 This leaves me with just serializing objects and streaming it into a
 string before I'm out of ideas.

 Any suggestions on the most efficient way to deal with this? I'm also
 not sure on the overhead of serializing and retrieving objects for the
 db. I can see it quite possibly ripping through battery.

 Cheers,

 Alan.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 entirely and when two invalidates
 happen in the same UI event (as it is the case in your code), the
 invalidate region becomes the union of the two original invalidate
 regions.



 On Wed, Apr 8, 2009 at 6:40 PM, Leisuresuit Larry larrywan...@gmail.com 
 wrote:

  Hi all,

  We came across a strange behavior. The cliprectof our custom view is
  getting reset to its entire visible region, if we change the value of
  another view.

  Below is a sample app to demonstrate the behavior:

  main.xml:
  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     

  com.test.MyView
     android:id=@+id/view
     android:layout_width=fill_parent
     android:layout_height=100px /

  TextView
     android:id=@+id/text
     android:layout_width=fill_parent
     android:layout_height=wrap_content /

  /LinearLayout

  ClipTest.java:
  package com.test;

  import android.app.Activity;
  import android.os.Bundle;
  import android.view.KeyEvent;
  import android.widget.TextView;

  public class ClipTest extends Activity {
     /** Called when the activity is first created. */
    �...@override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
     }

    �...@override
     public boolean onKeyDown(int keyCode, KeyEvent event) {
         TextView tv = (TextView)findViewById(R.id.text);
         tv.setText(Test);

         findViewById(R.id.view).invalidate(100, 0, 150, 75);
         return true;
     }
  }

  MyView.java:
  package com.test;

  import android.content.Context;
  import android.graphics.Canvas;
  import android.graphics.Rect;
  import android.util.AttributeSet;
  import android.view.View;

  public class MyView extends View {

     public MyView(Context context) {
         super(context);
     }

     public MyView(Context context, AttributeSet attrs) {
         super(context, attrs);
     }

     protected void onDraw(Canvas canvas) {
         super.onDraw(canvas);

         Rectclip= canvas.getClipBounds();
         System.out.println(clip +clip);
     }
  }

  If you run the above app, MyView.onDraw() prints clipRect(0, 0, 320,
  100). If you comment out tv.setText(Test);, then MyView.onDraw()
  prints clipRect(100, 0, 150, 75).

  Why does setting the TextView's text affect MyView'scliprect? How
  can we get the correctcliprectin MyView.onDraw()? Thanks for any
  help!

  Larry

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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. Is there any way to make the values of these
 variables persists?

 Thanks,

 Kirk
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 WebView contains a 320-wide pixels image that
should perfectly fit the Android device width of 320 pixels... This
does not seem to be possible because of this built-on margin, except
in a margin can be set negative...
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 make the control accept dotted IP quad addresses only?

 Thanks
 Videoguy
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 :

 hello,

 someone can be how to define a service that launch automatically at
 startup and / or when installation without having to go through
 activity. I look beautiful everywhere, I do found that the functions
 and BindService but StartService
 which requires action outside.

 thank you.

 French version :

 bonjour,

 quelqu'un saurait-il comment définir un service qui se lancerai
 automatiquement au démarrage et/ou lors de l'installation sans pour
 autant passer par une activity. J'ai beau regarder un peu partout,
 je ne trouve que les fonctions startService et BindService mais qui
 nécessite une action extérieur.

 merci.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 performance questions, the profiler is really what
you need to use.

On Mon, Apr 13, 2009 at 10:09 AM, Michael Bollmann 
michael.bollm...@googlemail.com wrote:


 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 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 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 longer than a call to findViewById.
 
   Take a look at this:
 http://developer.android.com/guide/practices/design/performance.html#...
 
   On Apr 13, 6:04 pm, Alexey avolo...@gmail.com wrote:
 
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 ?
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 it must be made by a fact-finder.

As for your example of a swing, my comment was directed towards video-
games, and not physical apparatuses, which are clearly patentable.  I
know what is accepted as patentable or not by the USPTO, as I submit
these patents on a regular basis.

On Apr 13, 2: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 sideways on a swing, which
 IMO illustrates you can patent pretty much anything.

 On Mon, Apr 13, 2009 at 10:44 AM, Ikon ayanafr...@gmail.com wrote:

  Your contention that grown up operating systems should not allow you
  to copy ideas is totally unfounded.  You can never patent abstracty
  ideas. Game ideas cannot be patented.  Whether they should be is a
  different discussion.  You can go right and now, and make a game on
  Windows with a story very similar to fallout, and write all your own
  code, and use all your own graphics/sound assets and you will not be
  infringing on that IP in any way.  A company may come and try to sue
  you, but that has no relevance to a maturity of an operating system.

  On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:
  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 never be a real grown-up operating
  system.

  On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
  wrote:

   On Saturday April 4th, I received a message from google saying that my
   game Robotic Space Rock was pulled from the android market after a
   request made by a legal firm representing an entity known as Tetris
   Company. My application was removed from the android market together
   with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
   total) under claim that it violates the DMCA and more specifically
   trademarks and copyrighted material owned by the Tetris Company.
   However, none of the trademarks or copyrighted material (music,
   graphics and sound effects) are present in my game. Sound effects and
   music were created by me specifically for the game. There is no
   reference to the word tetris in the game. Additionally, all the game
   code, graphics and sound effects  were created by me and published on
   the code sitehttp://code.google.com/p/monolithandroid

   Additionally, I am not aware of a software patent covering the game
   mechanics of Tetris, so I cannot see how I could violate something
   that is not protected by a software patent. Also, even if the game was
   protected by a patent, the patent would have expired, since the
   original game, Tetris, was created 23 years ago. However game
   mechanics cannot be covered by patents.

   I would also like to point out that my game is available completely
   free of charge to every user of the android market.

   I wrote those concerns to Google and I sent an email to the EFF. The
   bottom line is that for my application to be restored on the android
   market, I have to send a DMCA counter-notification. And then the
   Tetris Company can sue and take the case to Court.

   When games were pulled from the iPhone App store, they blamed apple,
   but it is not hard to see that behind application removals we can find
   companies like the Tetris Company, that demand application removals
   claiming copyright infringement and trademarks. However, it is not
   easy to battle these companies as individual developers. I, for
   example, am a Greek citizen living in Greece, so it is difficult for
   me to file a counter-notification, because then the Tetris company
   will probably sue me and I will have to defend my case in court. Why
   should I bother? Am I making money out of the game? No! But even if I
   did you can see how easy it is for corporations to neutralize
   developers like that. I think that something should be done.
   Independent developers should get together to battle against such
   misuse of the law by corporations.
   And to those that want more facts, you can find more details on my
   blog:http://tkcodesharing.blogspot.com
--~--~-~--~~~---~--~~
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: 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 functions/vars and make it your own. This is
 obviously a close call, and it must be made by a fact-finder.

 As for your example of a swing, my comment was directed towards video-
 games, and not physical apparatuses, which are clearly patentable.  I
 know what is accepted as patentable or not by the USPTO, as I submit
 these patents on a regular basis.

If you file patents on a regular basis, then surely you must have
heard of the 'swing' patent before, which isn't actually a patent for
the apparatus itself, but for a method for swinging sideways on a
standard swing. Anyone who was ever a child should be aware of the
prior art for that, yet it still got issued. Perhaps patent clerks
don't go through the normal human growth cycle but emerge fully grown
from a vat or something... :)

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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,
 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 fight The Tetris Company.

 On Apr 13, 12:49 pm, Sundog sunns...@gmail.com wrote:

  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 issues involved is not complete, as one would
  think was self evident in the Google action... game ideas are most
  certainly protectable. Try writing a Monopoly clone and see what
  happens, real quick. Are you unaware of the recent Scrabble issue on
  the iPhone?

  I don't think you see my point, which is that an operating system/
  community/environment that openly disregards intellectual property
  rights is, in my humble opinion, doomed to failure from the get-go
  from the inability to form a viable business model for anyone
  involved.

  On Apr 13, 11:44 am, Ikon ayanafr...@gmail.com wrote:

   Your contention that grown up operating systems should not allow you
   to copy ideas is totally unfounded.  You can never patent abstracty
   ideas. Game ideas cannot be patented.  Whether they should be is a
   different discussion.  You can go right and now, and make a game on
   Windows with a story very similar to fallout, and write all your own
   code, and use all your own graphics/sound assets and you will not be
   infringing on that IP in any way.  A company may come and try to sue
   you, but that has no relevance to a maturity of an operating system.

   On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:

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 never be a real grown-up operating
system.

On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
wrote:

 On Saturday April 4th, I received a message from google saying that my
 game Robotic Space Rock was pulled from the android market after a
 request made by a legal firm representing an entity known as Tetris
 Company. My application was removed from the android market together
 with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
 total) under claim that it violates the DMCA and more specifically
 trademarks and copyrighted material owned by the Tetris Company.
 However, none of the trademarks or copyrighted material (music,
 graphics and sound effects) are present in my game. Sound effects and
 music were created by me specifically for the game. There is no
 reference to the word tetris in the game. Additionally, all the game
 code, graphics and sound effects  were created by me and published on
 the code sitehttp://code.google.com/p/monolithandroid

 Additionally, I am not aware of a software patent covering the game
 mechanics of Tetris, so I cannot see how I could violate something
 that is not protected by a software patent. Also, even if the game was
 protected by a patent, the patent would have expired, since the
 original game, Tetris, was created 23 years ago. However game
 mechanics cannot be covered by patents.

 I would also like to point out that my game is available completely
 free of charge to every user of the android market.

 I wrote those concerns to Google and I sent an email to the EFF. The
 bottom line is that for my application to be restored on the android
 market, I have to send a DMCA counter-notification. And then the
 Tetris Company can sue and take the case to Court.

 When games were pulled from the iPhone App store, they blamed apple,
 but it is not hard to see that behind application removals we can find
 companies like the Tetris Company, that demand application removals
 claiming copyright infringement and trademarks. However, it is not
 easy to battle these companies as individual developers. I, for
 example, am a Greek citizen living in Greece, so it is difficult for
 me to file a counter-notification, because then the Tetris company
 will probably sue me and I will have to defend my case in court. Why
 should I bother? Am I making money out of the game? No! But even if I
 did you can see how easy it is for corporations to 

[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 you think you may be doing this in the future, it is certainly not a
problem to pro-actively but the stuff in now.

On Mon, Apr 13, 2009 at 7:05 AM, MaTriXy elkri...@gmail.com wrote:


 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 XML Parsing Error until i erase the entire xliff tag...
 Thx for replying.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
 to (keep the thing you find in a variable so you don't have to look it up
 again).  For more subtle performance questions, the profiler is really what
 you need to use.

 On Mon, Apr 13, 2009 at 10:09 AM, Michael Bollmann 



 michael.bollm...@googlemail.com wrote:

  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 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 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 longer than a call to findViewById.

Take a look at this:
 http://developer.android.com/guide/practices/design/performance.html#...

On Apr 13, 6:04 pm, Alexey avolo...@gmail.com wrote:

 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 ?

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 fight The Tetris Company.

On Apr 13, 12:49 pm, Sundog sunns...@gmail.com wrote:
 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 issues involved is not complete, as one would
 think was self evident in the Google action... game ideas are most
 certainly protectable. Try writing a Monopoly clone and see what
 happens, real quick. Are you unaware of the recent Scrabble issue on
 the iPhone?

 I don't think you see my point, which is that an operating system/
 community/environment that openly disregards intellectual property
 rights is, in my humble opinion, doomed to failure from the get-go
 from the inability to form a viable business model for anyone
 involved.

 On Apr 13, 11:44 am, Ikon ayanafr...@gmail.com wrote:



  Your contention that grown up operating systems should not allow you
  to copy ideas is totally unfounded.  You can never patent abstracty
  ideas. Game ideas cannot be patented.  Whether they should be is a
  different discussion.  You can go right and now, and make a game on
  Windows with a story very similar to fallout, and write all your own
  code, and use all your own graphics/sound assets and you will not be
  infringing on that IP in any way.  A company may come and try to sue
  you, but that has no relevance to a maturity of an operating system.

  On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:

   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 never be a real grown-up operating
   system.

   On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
   wrote:

On Saturday April 4th, I received a message from google saying that my
game Robotic Space Rock was pulled from the android market after a
request made by a legal firm representing an entity known as Tetris
Company. My application was removed from the android market together
with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
total) under claim that it violates the DMCA and more specifically
trademarks and copyrighted material owned by the Tetris Company.
However, none of the trademarks or copyrighted material (music,
graphics and sound effects) are present in my game. Sound effects and
music were created by me specifically for the game. There is no
reference to the word tetris in the game. Additionally, all the game
code, graphics and sound effects  were created by me and published on
the code sitehttp://code.google.com/p/monolithandroid

Additionally, I am not aware of a software patent covering the game
mechanics of Tetris, so I cannot see how I could violate something
that is not protected by a software patent. Also, even if the game was
protected by a patent, the patent would have expired, since the
original game, Tetris, was created 23 years ago. However game
mechanics cannot be covered by patents.

I would also like to point out that my game is available completely
free of charge to every user of the android market.

I wrote those concerns to Google and I sent an email to the EFF. The
bottom line is that for my application to be restored on the android
market, I have to send a DMCA counter-notification. And then the
Tetris Company can sue and take the case to Court.

When games were pulled from the iPhone App store, they blamed apple,
but it is not hard to see that behind application removals we can find
companies like the Tetris Company, that demand application removals
claiming copyright infringement and trademarks. However, it is not
easy to battle these companies as individual developers. I, for
example, am a Greek citizen living in Greece, so it is difficult for
me to file a counter-notification, because then the Tetris company
will probably sue me and I will have to defend my case in court. Why
should I bother? Am I making money out of the game? No! But even if I
did you can see how easy it is for corporations to neutralize
developers like that. I think that something should be done.
Independent developers should get together to battle against such
misuse of the law by corporations.
And to those that want more facts, you can find 

[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 making it hard on you on purpose.

We want to make it easy for you to release good quality app, and early
access to releases is one way where we have a lot of progress to do.
We hope to get better in the next releases.

I know it is frustrating, but as David said we've been working on
improving things. Hopefully this will become visible soon.

Xav
-- 
Xavier Ducrohet
Android Engineer, Google.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 sideways on a swing, which
 IMO illustrates you can patent pretty much anything.


 On Mon, Apr 13, 2009 at 10:44 AM, Ikon ayanafr...@gmail.com wrote:
 
  Your contention that grown up operating systems should not allow you
  to copy ideas is totally unfounded.  You can never patent abstracty
  ideas. Game ideas cannot be patented.  Whether they should be is a
  different discussion.  You can go right and now, and make a game on
  Windows with a story very similar to fallout, and write all your own
  code, and use all your own graphics/sound assets and you will not be
  infringing on that IP in any way.  A company may come and try to sue
  you, but that has no relevance to a maturity of an operating system.
 
  On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:
  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 never be a real grown-up operating
  system.
 
  On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
  wrote:
 
   On Saturday April 4th, I received a message from google saying that my
   game Robotic Space Rock was pulled from the android market after a
   request made by a legal firm representing an entity known as Tetris
   Company. My application was removed from the android market together
   with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
   total) under claim that it violates the DMCA and more specifically
   trademarks and copyrighted material owned by the Tetris Company.
   However, none of the trademarks or copyrighted material (music,
   graphics and sound effects) are present in my game. Sound effects and
   music were created by me specifically for the game. There is no
   reference to the word tetris in the game. Additionally, all the game
   code, graphics and sound effects  were created by me and published on
   the code sitehttp://code.google.com/p/monolithandroid
 
   Additionally, I am not aware of a software patent covering the game
   mechanics of Tetris, so I cannot see how I could violate something
   that is not protected by a software patent. Also, even if the game was
   protected by a patent, the patent would have expired, since the
   original game, Tetris, was created 23 years ago. However game
   mechanics cannot be covered by patents.
 
   I would also like to point out that my game is available completely
   free of charge to every user of the android market.
 
   I wrote those concerns to Google and I sent an email to the EFF. The
   bottom line is that for my application to be restored on the android
   market, I have to send a DMCA counter-notification. And then the
   Tetris Company can sue and take the case to Court.
 
   When games were pulled from the iPhone App store, they blamed apple,
   but it is not hard to see that behind application removals we can find
   companies like the Tetris Company, that demand application removals
   claiming copyright infringement and trademarks. However, it is not
   easy to battle these companies as individual developers. I, for
   example, am a Greek citizen living in Greece, so it is difficult for
   me to file a counter-notification, because then the Tetris company
   will probably sue me and I will have to defend my case in court. Why
   should I bother? Am I making money out of the game? No! But even if I
   did you can see how easy it is for corporations to neutralize
   developers like that. I think that something should be done.
   Independent developers should get together to battle against such
   misuse of the law by corporations.
   And to those that want more facts, you can find more details on my
   blog:http://tkcodesharing.blogspot.com
  
 

 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 sideways on a swing, which
  IMO illustrates you can patent pretty much anything.

  On Mon, Apr 13, 2009 at 10:44 AM, Ikon ayanafr...@gmail.com wrote:

   Your contention that grown up operating systems should not allow you
   to copy ideas is totally unfounded.  You can never patent abstracty
   ideas. Game ideas cannot be patented.  Whether they should be is a
   different discussion.  You can go right and now, and make a game on
   Windows with a story very similar to fallout, and write all your own
   code, and use all your own graphics/sound assets and you will not be
   infringing on that IP in any way.  A company may come and try to sue
   you, but that has no relevance to a maturity of an operating system.

   On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:
   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 never be a real grown-up operating
   system.

   On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
   wrote:

On Saturday April 4th, I received a message from google saying that my
game Robotic Space Rock was pulled from the android market after a
request made by a legal firm representing an entity known as Tetris
Company. My application was removed from the android market together
with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
total) under claim that it violates the DMCA and more specifically
trademarks and copyrighted material owned by the Tetris Company.
However, none of the trademarks or copyrighted material (music,
graphics and sound effects) are present in my game. Sound effects and
music were created by me specifically for the game. There is no
reference to the word tetris in the game. Additionally, all the game
code, graphics and sound effects  were created by me and published on
the code sitehttp://code.google.com/p/monolithandroid

Additionally, I am not aware of a software patent covering the game
mechanics of Tetris, so I cannot see how I could violate something
that is not protected by a software patent. Also, even if the game was
protected by a patent, the patent would have expired, since the
original game, Tetris, was created 23 years ago. However game
mechanics cannot be covered by patents.

I would also like to point out that my game is available completely
free of charge to every user of the android market.

I wrote those concerns to Google and I sent an email to the EFF. The
bottom line is that for my application to be restored on the android
market, I have to send a DMCA counter-notification. And then the
Tetris Company can sue and take the case to Court.

When games were pulled from the iPhone App store, they blamed apple,
but it is not hard to see that behind application removals we can find
companies like the Tetris Company, that demand application removals
claiming copyright infringement and trademarks. However, it is not
easy to battle these companies as individual developers. I, for
example, am a Greek citizen living in Greece, so it is difficult for
me to file a counter-notification, because then the Tetris company
will probably sue me and I will have to defend my case in court. Why
should I bother? Am I making money out of the game? No! But even if I
did you can see how easy it is for corporations to neutralize
developers like that. I think that something should be done.
Independent developers should get together to battle against such
misuse of the law by corporations.
And to those that want more facts, you can find more details on my
blog:http://tkcodesharing.blogspot.com
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, what may be the reason..

Thanks
Nithin

On Apr 13, 11:04 pm, Charlie Collins charlie.coll...@gmail.com
wrote:
 Also make sure you have a maps key, the error message you are getting
 look unrelated, but just check that to make sure.

 http://code.google.com/android/maps-api-signup.html

 On Apr 13, 1: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): Start proc org.me.map for
  activity org.me.map/.MapAct: pid=615 uid=10022 gids={3003} 04-13
  22:30:06.944: DEBUG/dalvikvm(607): VM cleaning up 04-13 22:30:06.954:
  DEBUG/dalvikvm(607): LinearAlloc 0x0 used 541500 of 4194304 (12%) 04-13
  22:30:06.976: ERROR/dalvikvm(607): pthread_setspecific failed, err=22 04-13
  22:30:07.425: INFO/System.out(615):   Setting locale to en_US 04-13
  22:30:07.466: WARN/Maps_Persistence(615): Couldn't find file:
  /data/data/org.me.map/files/DATA_Preferences 04-13 22:30:07.545:
  INFO/jdwp(615): received file descriptor 27 from ADB 04-13 22:30:07.645:
  WARN/Maps_Persistence(615): Couldn't find file:
  /data/data/org.me.map/files/DATA_Tiles 04-13 22:30:07.675:
  WARN/Maps(615): Couldn't
  restore map info, data == null 04-13 22:30:07.995: INFO/MapActivity(615):
  Handling network change notification:CONNECTED 04-13 22:30:08.015:
  ERROR/MapActivity(615): Couldn't get connection factory client 04-13
  22:30:08.194: INFO/ActivityManager(48): Displayed activity
  org.me.map/.MapAct: 1400 ms

  Please tell whats wrong with this, My source code is very simple, I ididnt
  try anything special,

  public class MapAct extends MapActivity { /** Called when the activity is
  first created. */ @Override public void onCreate(Bundle savedInstanceState)
  { super.onCreate(savedInstanceState); setContentView(R.layout.main); }
  @Override protected boolean isRouteDisplayed() { // TODO Auto-generated
  method stub return false; } }

  Thanks
  Nithin
  nithinwarier.blogspot.com
  +919739146701

   map.bmp
  3112KViewDownload
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
 only embed the activity we own, but I am wondering how the phone app
 embeds the activity from contacts? Is there any tricks for that?

 Thanks.
 Bin
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 code.  So if they wrote int numTetrads =
 50 and you wrote int numBlocks = 50 you would not be infringing.
 You need to copy, wholesale, a portion of their code in order to
 infringe on their copyright.   - Show quoted text -
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 issues involved is not complete, as one would
think was self evident in the Google action... game ideas are most
certainly protectable. Try writing a Monopoly clone and see what
happens, real quick. Are you unaware of the recent Scrabble issue on
the iPhone?

I don't think you see my point, which is that an operating system/
community/environment that openly disregards intellectual property
rights is, in my humble opinion, doomed to failure from the get-go
from the inability to form a viable business model for anyone
involved.

On Apr 13, 11:44 am, Ikon ayanafr...@gmail.com wrote:
 Your contention that grown up operating systems should not allow you
 to copy ideas is totally unfounded.  You can never patent abstracty
 ideas. Game ideas cannot be patented.  Whether they should be is a
 different discussion.  You can go right and now, and make a game on
 Windows with a story very similar to fallout, and write all your own
 code, and use all your own graphics/sound assets and you will not be
 infringing on that IP in any way.  A company may come and try to sue
 you, but that has no relevance to a maturity of an operating system.

 On Apr 13, 10:43 am, Sundog sunns...@gmail.com wrote:



  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 never be a real grown-up operating
  system.

  On Apr 7, 8:43 am, tasos.klei...@gmail.com tasos.klei...@gmail.com
  wrote:

   On Saturday April 4th, I received a message from google saying that my
   game Robotic Space Rock was pulled from the android market after a
   request made by a legal firm representing an entity known as Tetris
   Company. My application was removed from the android market together
   with Blocks, Cubik, Net Tetris, Netblocks and Tetroid (6 apps in
   total) under claim that it violates the DMCA and more specifically
   trademarks and copyrighted material owned by the Tetris Company.
   However, none of the trademarks or copyrighted material (music,
   graphics and sound effects) are present in my game. Sound effects and
   music were created by me specifically for the game. There is no
   reference to the word tetris in the game. Additionally, all the game
   code, graphics and sound effects  were created by me and published on
   the code sitehttp://code.google.com/p/monolithandroid

   Additionally, I am not aware of a software patent covering the game
   mechanics of Tetris, so I cannot see how I could violate something
   that is not protected by a software patent. Also, even if the game was
   protected by a patent, the patent would have expired, since the
   original game, Tetris, was created 23 years ago. However game
   mechanics cannot be covered by patents.

   I would also like to point out that my game is available completely
   free of charge to every user of the android market.

   I wrote those concerns to Google and I sent an email to the EFF. The
   bottom line is that for my application to be restored on the android
   market, I have to send a DMCA counter-notification. And then the
   Tetris Company can sue and take the case to Court.

   When games were pulled from the iPhone App store, they blamed apple,
   but it is not hard to see that behind application removals we can find
   companies like the Tetris Company, that demand application removals
   claiming copyright infringement and trademarks. However, it is not
   easy to battle these companies as individual developers. I, for
   example, am a Greek citizen living in Greece, so it is difficult for
   me to file a counter-notification, because then the Tetris company
   will probably sue me and I will have to defend my case in court. Why
   should I bother? Am I making money out of the game? No! But even if I
   did you can see how easy it is for corporations to neutralize
   developers like that. I think that something should be done.
   Independent developers should get together to battle against such
   misuse of the law by corporations.
   And to those that want more facts, you can find more details on my
   blog:http://tkcodesharing.blogspot.com- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit 

[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 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 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. Is there any way to make the values of these
  variables persists?

  Thanks,

  Kirk
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 of this ListActivity when
user clicks on a button.

In debug mode, the view seems Gone, but even if I use forceLayout on
adapter or requestLayout, the list is not reloaded.

Do you have an idea?
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
OCTOBER. Are you going to release your games in a Wild West free-for-
all where anyone can clone your game and sell it? Not a chance. That
isn't the way the real world works, whether it fits with the
everything should be free philosophy or not. It's piracy, whether we
want to say the word or not.

It seems so simple: Come up with your own ideas, or at least if you're
going to copy something, make sure it's in the public domain first.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 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 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. Is there any way to make the values of these
   variables persists?

   Thanks,

   Kirk
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 accessible from your carrier's network.

 On Sat, Apr 11, 2009 at 2:39 PM, tiwana tiwana.birj...@gmail.com wrote:

  By th way the problem is with my dev phone not with emulator, emulator
  is working fine.

  On Apr 11, 2:07 pm, tiwana tiwana.birj...@gmail.com wrote:
  Actually my bucket upload is also not working.It is not able to
  connect to anyFTPserver. What settings do i need to change?

  David Given wrote:
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1

   Mark Murphy wrote:
   [...]
Bear in mind that the Android emulator runs in a virtual machine 
(qemu).
Just because you can get to theFTPserver from your desktop does not
necessarily mean you can get to it from the virtual machine.

   Also, don't forget that depending on how youFTPsession is configured
   then the server might need to make a connection back to your Android
   system ---FTPis a ghastly protocol, and needs to be configured just
   right (PASV) to avoid this:

  http://slacksite.com/other/ftp.html

   - --
   ┌─── dg@cowlark.com ─http://www.cowlark.com─
   │
   │ All power corrupts, but we need electricity. --- Diana Wynne Jones,
   │ _Archer's Goon_
   -BEGIN PGP SIGNATURE-
   Version: GnuPG v1.4.9 (GNU/Linux)
   Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org

   iD8DBQFJ4NTRf9E0noFvlzgRArcJAJ9PaPtNzwl35G+ziZH+wWXKjCLCfgCfWvl/
   G6lErc/AmwUU36VYUb1K1Fs=
   =PFsP
   -END PGP SIGNATURE-
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 own process.  In that case the new
 API will let you do this, though of course you are running the other code as
 -yourself- so taking responsibility for anything it does.



 On Thu, Apr 9, 2009 at 3:35 PM, BIRJODH birjodh.tiw...@gmail.com wrote:

  Would not it be somewhat dangerous to allow apps is /data/app folder
  to install other applications?? An app can just create an infinite
  loop in which downloads applications which do not require any
  permission and keep on installing them and fill out the memory space?

  Birjodh

  On Apr 9, 1:56 pm, Dianne Hackborn hack...@android.com wrote:
   There is an API in cupcake to allow you to perform the dexopt into your
  own
   directory.  That will be available when cupcake is available.

   On Thu, Apr 9, 2009 at 2:05 AM, Eborix13 ebori...@yahoo.com wrote:

Hi,

We are a team of Android developers and we are facing a serious
problem for quite some time. Our app (a game client) is designed in
such a way, that once it's installed it can be used to download games
from a game server. In order for the downloaded games to work, they
have to be installed and launched by the client.

The problem is that the client has no write/update rights for the /
data/dalvik-cache directory, unless we specifically execute the chmod
777 command for that directory. Setting the
android.permission.INSTALL_PACKAGES permission in the client's
manifest file also doesn't work. After reading countless forums where
other people have complained about the same problem, we would like to
know when this issue is going to be resolved. Apparently the code for
this feature already exists (the DexFile class of the so called
cupcake release) but it hasn't been released yet.

What's more frustrating is that the Android team points out that all
Android apps are equal, that system apps are equal in rights to custom
apps. Obviously this is not the case. If the client game app is
installed in the /system/app the problem described above is solved.
System apps have the right to dynamically install other apps. Regular
apps (installed in the /data/data folder) do not.

Is this issue going to be resolved anytime soon? Will the cupcake
DexFile class going to be present in the next release? This is a
rather urgent problem since we are waiting for this new functionality
in order to continue development.

Thank you...

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support, and so won't reply to such e-mails.  All such
   questions should be posted on public forums, where I and others can see
  and
   answer them.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 again the development community seems to 
be pretty low on the list of considerations.

Al. 

Xavier Ducrohet x...@android.com wrote:


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 making it hard on you on purpose.

We want to make it easy for you to release good quality app, and early
access to releases is one way where we have a lot of progress to do.
We hope to get better in the next releases.

I know it is frustrating, but as David said we've been working on
improving things. Hopefully this will become visible soon.

Xav
-- 
Xavier Ducrohet
Android Engineer, Google.



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:fromXScale=1.0 android:toXScale=1.5
android:fromYScale=1.0 android:toYScale=1.0
android:pivotX=0% android:pivotY=0%
android:duration=600 /
(3) Set the new size of the textview using layout() - editText.layout
(0, 0, 300, 50);

If I use ScaleAnimation, the text in the view get stretched or
squeezed. Is there a way to animate the resizing of the textview
without causing the text to get stretched or squeezed?

-George
--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 see my point, which is that an operating system/
 community/environment that openly disregards intellectual property
 rights is, in my humble opinion, doomed to failure from the get-go
 from the inability to form a viable business model for anyone
 involved.

I don't see this happening. However, at the very least within this 
thread, TTC's factual intellectual property rights are in dispute.

See, I think we all here believe in copyright. Some however may believe 
that copyright should expire at some point (which in fact it does). Some 
may believe that the rules of a game like Tetris should not be covered 
by copyright. Evidence I've seen so far seems to suggest that indeed 
they aren't. Laws also differ between different countries. Clearly, it's 
a judgment call how far intellectual property rights should go.

Michael

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 that. All projects I've 
ever been involved with have some kind of circle of leadership that 
decides what is released, and when. Sometimes community input plays a 
larger role, sometimes it is smaller. I think we all agree that Android 
moving towards being more community driven is a good thing, and should 
happen rather sooner than later. But at the end of the day, there will 
always be a single instance calling the shots, and for Android, for the 
foreseeable future, that will be Google.

You really can't expect a random private build that you made to be 
considered anything other than unofficial. In pretty much any Open 
Source project I've ever heard of.

Michael

--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
screen (minus the 8 pixel borders).

You should also override the onDraw() method. This way you know whenever the
webview changes, and reload your drawing cache.

If you want to handle user input, that would require more hacks so that you
can feed the events to the webview.

I have not exactly done this before, but I have been using WebView in
hackish ways and I think this might work.

Good luck!

On Mon, Apr 13, 2009 at 11:37 AM, elDoudou the.edouard.merc...@gmail.comwrote:


 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 WebView contains a 320-wide pixels image that
 should perfectly fit the Android device width of 320 pixels... This
 does not seem to be possible because of this built-on margin, except
 in a margin can be set negative...
 


--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 way, you have the visible areas of the WebView to extend
exactly to where you want it.


On Mon, Apr 13, 2009 at 2:25 PM, Mattaku Betsujin 
mattaku.betsu...@gmail.com wrote:

 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
 screen (minus the 8 pixel borders).

 You should also override the onDraw() method. This way you know whenever
 the webview changes, and reload your drawing cache.

 If you want to handle user input, that would require more hacks so that you
 can feed the events to the webview.

 I have not exactly done this before, but I have been using WebView in
 hackish ways and I think this might work.

 Good luck!


 On Mon, Apr 13, 2009 at 11:37 AM, elDoudou 
 the.edouard.merc...@gmail.comwrote:


 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 WebView contains a 320-wide pixels image that
 should perfectly fit the Android device width of 320 pixels... This
 does not seem to be possible because of this built-on margin, except
 in a margin can be set negative...
 



--~--~-~--~~~---~--~~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >