[android-developers] Re: Unable to detect phone call/dial capabilities on tablet

2011-04-07 Thread ole!
Appreciate the answer Mark...
Thanks..

I wonder if anyone knows how to get in touch with developers who
ported Android to Galaxy tablet?
It seems to me that if the dialer/caller intents do nothing that they
should throw an exception that could be caught downstream.



On Apr 3, 11:45 am, Mark Murphy mmur...@commonsware.com wrote:
 Long term, for most tablets, android.hardware.telephony with
 uses-feature or hasSystemFeature() on PackageManager should work.

 Some Android 2.x tablets, like the Galaxy Tab, may claim to have
 telephony even if they do not have a dialer, in order to qualify for
 the Android Market. Short of using android.os.Build to identify these
 by manufacturer and model, I do not know how else you can tell.





 On Sun, Apr 3, 2011 at 1:34 PM, ole! olub...@gmail.com wrote:
  I have not been able todetectwhether a dialer executes correctly on
  a tablet.
  The ACTION_CALL intent does nothing.
  The problem arises on the T-Mobile Galaxy, but I suspect other tablets
  have the same problem.

  What I have tried:
  1. catching an exception from start_activity using the ACTION_CALL
  intent (no exception generated)
  2. TelephonyManager.getPhoneType() returns a valid state (GSM)
  3. TelephonyManager.getCallState() return a valid state (IDLE)

  Any ideas?

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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 3.3 Available!

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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Kostya Vasilyev

07.04.2011 21:39, Nathan ?:

As has been noted in these forums, a ContentProvider*never*  closes a
database because is there is no call on its interface to do so.


The Linux kernel closes open files when/if the process is killed or 
crashes, just like it cleans up other stuff.


SQLite, as noted by its primary developer, does not corrupt the DB when 
this happens. I've previously posted a link to where he says that.



I
haven't been using contentproviders but this seems bad, and will
definitely leave red messages in your log.


There are no red messages about this in the log at the time the process 
is terminated.


There are logcat warnings if a SQLiteCursor is left open and 
unreferenced, so it's GC'd while still open.


I suppose this can happen with SQLiteDatabase objects as well. That 
would also be a genuine leak of the native data structures allocated by 
SQLite library, but that'd be a bug in application code, and won't 
happen at process termination time, but much sooner.


-- Kostya

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

Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Dianne Hackborn
Don't do that.  Only open the database once.  If you are not using a content
provider, implement a singleton that takes care of opening the database once
for all code in your app.

And let me be clear -- there is NOTHING wrong with the content provider
never closing the database.  Nothing.  That is NO reason to avoid using a
content provider.  In fact it is a very good design approach, and if you
aren't using a content provider but directly accessing, I would recommend
using the exact same approach for the singleton implementation.

If you want to have a content provider *AND* also elsewhere do direct access
to the database, then implement your content provider on top of the
singleton that owns the database.

On Thu, Apr 7, 2011 at 10:39 AM, Nathan critter...@crittermap.com wrote:


 On Apr 7, 9:23 am, Dianne Hackborn hack...@android.com wrote:
 
  You should never open a database multiple times.
 

 Let me make sure I understand this rule.

 It seems reasonable to pass an intent:
 + A path to a database
 + A key to find information in said database.

 Then the activity will create a list, form etc, after creating an
 SQLiteDatabase and then a cursor. It will then make sure that it
 closes the cursor and close the SQliteDatabase at the appropriate spot
 in its lifecycle.

 But if you have multiple activities, this would violate the rule about
 opening a database multiple times.

 You would pretty much have to have a static factory that keeps track
 of open databases in a hashtable, keyed by filename, with reference
 counting. Am I right?

 As has been noted in these forums, a ContentProvider *never* closes a
 database because is there is no call on its interface to do so. I
 haven't been using contentproviders but this seems bad, and will
 definitely leave red messages in your log.


 Nathan

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




-- 
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] Oracle Financial Developer Needed in TX -- F2F Required

2011-04-07 Thread Leon Parker
Hello Folks,
Hope the day is treating you well!

Please go through the below requirement and let me know if you have any
consultant for the below position?

*Job Title: Oracle Financial Developer
Location: Houston, TX
Duration: 3+ Months*

Job Description:
Strong experience writing and supporting interfaces between Oracle EBS and
non-Oracle applications
Strong Oracle Reports experience writing new reports and enhancing existing
reports
Technical knowledge of Oracle Financials v11.5.10.2 (especially, AP, AR, PO,
order entry, inventory)
Experience using XML Publisher (BI Publisher)
Experience writing, reading and debugging PL/SQL code

Thanks
Leon Parker - l...@panzersolutions.com
203-983-9475

-- 
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: Android emulator too snow, unusable

2011-04-07 Thread seanw
Hi,

Some random tips:

- Make sure to enable the snapshot feature when creating new emulator 
instances to greatly improve startup time.
- When the emulator has started up, turn off animations in the settings 
screen to improve performance.
- Test the parts of your app that aren't tablet specific on an actual phone 
or on a non-tablet emulator. 
- When you can, use a small resolution on the emulator for improved 
performance.

Regards,

Sean

-- 
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: SQLCipher for Android?

2011-04-07 Thread lbendlin
Not sure I understand. You include them in your source and use them. This 
has nothing to do with Android.

-- 
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: Honeycomb Sourcecode

2011-04-07 Thread JAlexoid (Aleksandr Panzin)
Why would you need Honeycomb source?

On 5 апр, 11:53, MeikeTalbach meike.talb...@women-at-work.org wrote:
 Hi all,

 this is my first post to this group and for the start, I only have a
 simple question.
 I've read on multiple web sites that the Honeycomb source code is not
 available for general download. But to get it, I only have to ask
 google.

 See for example here:http://mashable.com/2011/03/24/honeycomb-androidocalypse/

 So my question is: where can I ask for the sourcecode ?

 Thanks
 Meike

-- 
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: resizing the touch event generating area

2011-04-07 Thread andre
the problem is that if a user accidentally has his/her hand on the bottom 
half of the screen (i know it sounds silly, but it is quite often the case 
with this application), it seems we can't receive any ACTION_DOWN of 
interest since since all action pointers are consumed with events caused in 
the  ignore area.

-- 
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: resizing the touch event generating area

2011-04-07 Thread lbendlin
are you using the multitouch version of the event handler? 

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Emanuel Moecklin
Using a singleton to open the database, where/when would you close the
database?
Should the singleton keep track of open connections from clients (the
singleton would expose a close method) and close it when all
connections are closed or should Application be sub-classed and the
db closed in onDestroy()?

Emanuel Moecklin

On Apr 7, 2:22 pm, Dianne Hackborn hack...@android.com wrote:
 Don't do that.  Only open the database once.  If you are not using a content
 provider, implement a singleton that takes care of opening the database once
 for all code in your app.

 And let me be clear -- there is NOTHING wrong with the content provider
 never closing the database.  Nothing.  That is NO reason to avoid using a
 content provider.  In fact it is a very good design approach, and if you
 aren't using a content provider but directly accessing, I would recommend
 using the exact same approach for the singleton implementation.

 If you want to have a content provider *AND* also elsewhere do direct access
 to the database, then implement your content provider on top of the
 singleton that owns the database.









 On Thu, Apr 7, 2011 at 10:39 AM, Nathan critter...@crittermap.com wrote:

  On Apr 7, 9:23 am, Dianne Hackborn hack...@android.com wrote:

   You should never open a database multiple times.

  Let me make sure I understand this rule.

  It seems reasonable to pass an intent:
  + A path to a database
  + A key to find information in said database.

  Then the activity will create a list, form etc, after creating an
  SQLiteDatabase and then a cursor. It will then make sure that it
  closes the cursor and close the SQliteDatabase at the appropriate spot
  in its lifecycle.

  But if you have multiple activities, this would violate the rule about
  opening a database multiple times.

  You would pretty much have to have a static factory that keeps track
  of open databases in a hashtable, keyed by filename, with reference
  counting. Am I right?

  As has been noted in these forums, a ContentProvider *never* closes a
  database because is there is no call on its interface to do so. I
  haven't been using contentproviders but this seems bad, and will
  definitely leave red messages in your log.

  Nathan

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

 --
 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: Android sqlite and multithreading

2011-04-07 Thread lbendlin
I close the databases in the onDestroy() of the launcher activity. I also 
include code in other activities and services to check if the databases have 
been closed, and then prevent these lenient lurkers from trying to access 
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

Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Kostya Vasilyev

Ok, here is my setup, just for grins.

I have one database object in the entire application, opened by the 
content provider and never closed. The database is accessible as a 
singleton (my own SQLiteOpenHelper type class that can put the DB on the 
memory card).


The UI uses the CP for the few queries that are shown live (in list 
views) so it can leverage the change notification mechanism built into 
the framework.


For the all other database queries and updates, often made by non-UI 
threads, I directly use the same database object.


The code that writes to the DB uses ContentResolver.notifyChange() to 
trigger updates to live lists in the UI, as necessary. Doing this rather 
than writing through the content provider gives me better control over 
when and how these notifications are sent. It also makes it easier to 
use transactions.


-- Kostya

07.04.2011 23:26, lbendlin пишет:
I close the databases in the onDestroy() of the launcher activity. I 
also include code in other activities and services to check if the 
databases have been closed, and then prevent these lenient lurkers 
from trying to access 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 



--
Kostya Vasilyev -- http://kmansoft.wordpress.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: Rich UI Development

2011-04-07 Thread Paulo Cesar
If you find a professionaly designed toolkit for Android tell us,
because I know none of them. But here is two nice links about UI
design on Android: 
http://www.mutualmobile.com/wp-content/uploads/2011/03/MM_Android_Design_Guidelines.pdf
and http://www.androidpatterns.com/



On 5 abr, 13:08, nandroid nishantpar...@gmail.com wrote:
 Hi,

 I am new to Android based application development.
 It seems android offers very basic level of UI component.

 Can anybody suggest how to develop Rich UI development on android?
 Where should I exactly start? I had created simple projects with basic
 elements of UI but looks very raw..

 Any book, link, blog suggestion all are welcome.

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Emanuel Moecklin
That doesn't work if the launching activity has been removed from the
task (e.g. because Android needs more memory).
With your approach the db would be closed and the other activities had
no db access any more (the other activities could still be running).
Instead of spreading the db access code across all activities I would
strongly vote for Dianne's singleton approach.

Emanuel Moecklin

On Apr 7, 3:26 pm, lbendlin l...@bendlin.us wrote:
 I close the databases in the onDestroy() of the launcher activity. I also
 include code in other activities and services to check if the databases have
 been closed, and then prevent these lenient lurkers from trying to access
 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: what are 9-patch bad patches?

2011-04-07 Thread String
I assume you've looked at the docs:

*Show bad patches*: Adds a red border around patch areas that may produce 
artifacts in the graphic when stretched. Visual coherence of your stretched 
image will be maintained if you eliminate all bad patches


Still not *too* clear what that means, but I'd say that if you're OK with 
how your 9-patches look in your app, don't worry about it.

String

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

Re: [android-developers] Problem loading gadget

2011-04-07 Thread String
If users get that message just when updating your app, one possible cause is 
that you've made a change in your widget's XML. Changing something like the 
name of the XML file means that the OS doesn't recognize it as the same 
widget - so it can't find the widget to load - so it displays that message.

For this reason, I've got widgets with some really obsolete names to their 
XML, but I'm not willing to change them. If you already have, then the best 
you can probably do is to advice your users that they need to just delete 
and re-add the widget.

String

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Emanuel Moecklin
I would not recommend putting the db on sdcard.
I went down that path and it worked well for all the devices I tested
it on (15 hardware devices and of course emulators).
It even worked well for the published app in the beginning but because
the availability of the sdcard can be shaky at times especially on
some devices (I won't mention brands),
with increased downloads I got more and more reports of
SQLiteExceptions, SQLiteDatabaseCorruptException and
SQLiteDiskIOExceptions and there is nothing you can do about it
(sdcard is either there or not, db is either accessible or not).

Right now I got approximately 200 reports of that sort for an app with
250K downloads. I finally decided to remove the db on sdcard feature
and since then haven't gotten any error reports of that sort.
But of course this decision depends also on the size of the database
(mine was 5 MB, today much smaller).

Cheers
Emanuel Moecklin

On Apr 7, 3:45 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Ok, here is my setup, just for grins.

 I have one database object in the entire application, opened by the
 content provider and never closed. The database is accessible as a
 singleton (my own SQLiteOpenHelper type class that can put the DB on the
 memory card).

 The UI uses the CP for the few queries that are shown live (in list
 views) so it can leverage the change notification mechanism built into
 the framework.

 For the all other database queries and updates, often made by non-UI
 threads, I directly use the same database object.

 The code that writes to the DB uses ContentResolver.notifyChange() to
 trigger updates to live lists in the UI, as necessary. Doing this rather
 than writing through the content provider gives me better control over
 when and how these notifications are sent. It also makes it easier to
 use transactions.

 -- Kostya

 07.04.2011 23:26, lbendlin пишет:

  I close the databases in the onDestroy() of the launcher activity. I
  also include code in other activities and services to check if the
  databases have been closed, and then prevent these lenient lurkers
  from trying to access 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

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Kostya Vasilyev

08.04.2011 0:42, Emanuel Moecklin пишет:

I would not recommend putting the db on sdcard.
I went down that path and it worked well for all the devices I tested
it on (15 hardware devices and of course emulators).
It even worked well for the published app in the beginning but because
the availability of the sdcard can be shaky at times especially on
some devices (I won't mention brands),


I see what you mean.

My code does this only for the Samsung Galaxy S family, trying to deal 
with its horrific RFS file system.


The external and internal memory on this device are just partitions 
allocated on the same memory chip.


--
Kostya Vasilyev -- http://kmansoft.wordpress.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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Dianne Hackborn
On Thu, Apr 7, 2011 at 12:18 PM, Emanuel Moecklin 1gravity...@gmail.comwrote:

 Using a singleton to open the database, where/when would you close the
 database?
 Should the singleton keep track of open connections from clients (the
 singleton would expose a close method) and close it when all
 connections are closed or should Application be sub-classed and the
 db closed in onDestroy()?


Don't worry about closing it.  Why do you want to close it?  You might as
well keep it open so the next time you need it you'll have it right there.

You can try to open and close the database as you need it (for example in
each activity onCreate() and onDestroy()), but that is a huge amount of
work, and for what?  Mostly it will just close down your app as you keep on
opening the db when you need it again.

-- 
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] Limits send post video and image

2011-04-07 Thread maggy mtac
Hello,

What is limit to send a video file and image using method http post?

How fixed a limit of size or change a quality of video (high,
medium ...) before send?

Thank you.

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Nathan

On Apr 7, 11:22 am, Dianne Hackborn hack...@android.com wrote:
 Don't do that.  Only open the database once.  If you are not using a content
 provider, implement a singleton that takes care of opening the database once
 for all code in your app.

The database? I guess that would work if you only use ONE,
statically determined database.

Since I don't have just one, I think I need a singleton hash table of
opened databases, like I mentioned.


 And let me be clear -- there is NOTHING wrong with the content provider
 never closing the database.

I'll take your word for it. So if the user opens 10 or 100 databases
in a session, I'll just leave them all open. That simplifies the
singleton implementation if I don't have to do reference counting.

Nathan

-- 
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: SQLCipher for Android?

2011-04-07 Thread DanH
They need to be customized for the device file system and encryption
facilities.

On Apr 7, 2:06 pm, lbendlin l...@bendlin.us wrote:
 Not sure I understand. You include them in your source and use them. This
 has nothing to do with Android.

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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Dianne Hackborn
On Thu, Apr 7, 2011 at 2:04 PM, Nathan critter...@crittermap.com wrote:

 The database? I guess that would work if you only use ONE,
 statically determined database.
 Since I don't have just one, I think I need a singleton hash table of
 opened databases, like I mentioned.


You are making this too complicated.

class StuffDatabase {
  SQLiteDatabase mDatabase;
  static StuffDatabase getInstance();
}

class OtherStuffDatabase {
  SQLiteDatabase mDatabase;
  static OtherStuffDatabase getInstance();
}


 I'll take your word for it. So if the user opens 10 or 100 databases
 in a session, I'll just leave them all open. That simplifies the
 singleton implementation if I don't have to do reference counting.


Why in the world do you have 10s of databases?

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

Re: [android-developers] Re: resizing the touch event generating area

2011-04-07 Thread Dianne Hackborn
On Thu, Apr 7, 2011 at 12:12 PM, andre andre.steingr...@gmail.com wrote:

 the problem is that if a user accidentally has his/her hand on the bottom
 half of the screen (i know it sounds silly, but it is quite often the case
 with this application), it seems we can't receive any ACTION_DOWN of
 interest since since all action pointers are consumed with events caused in
 the  ignore area.


The answer depends on what you are doing:

(1) If this is all one View, use the multitouch data to track individual
pointers.
(2) If the can be holding down in some other view, Android 3.0 will split
touches across the views; prior to 3.0 doing this in your app would be very
non-trivial.

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Nathan
On Apr 7, 3:15 pm, Dianne Hackborn hack...@android.com wrote:

 You are making this too complicated.
No, I am not.


 class StuffDatabase {
   SQLiteDatabase mDatabase;
   static StuffDatabase getInstance();

 }

 class OtherStuffDatabase {
   SQLiteDatabase mDatabase;
   static OtherStuffDatabase getInstance();

 }

That works if the number and filenames of databases are statically
determined.


 Why in the world do you have 10s of databases?


Why in the world would this be so unexpected?

Does Excel only allow you to have three spreadsheets and pick all the
names for you?
No.
To use a Google app example, does MyTracks only allow you to record
one track?
No - I've seen the code. It creates multiple Sqlite databases without
having a class for each one.
Would a shopping list application only allow you to have one shopping
list, called default?
A lame one would, yes.

I really don't think my scenario is that outrageous.

Nathan

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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Mark Murphy
On Thu, Apr 7, 2011 at 6:33 PM, Nathan critter...@crittermap.com wrote:
 Would a shopping list application only allow you to have one shopping
 list, called default?
 A lame one would, yes.

A sensible implementation would use one database, with a lists table
to identify the lists, and foreign key relationships in the other
tables as needed back to the lists table. This is a fairly basic
relational database design.

 I really don't think my scenario is that outrageous.

I would say that the code smell increases as the square of the number
of databases. So, more than one database is not necessarily stinky,
but 100 databases would certainly qualify as outrageous in my book.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

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


Re: [android-developers] Re: Android sqlite and multithreading

2011-04-07 Thread Dianne Hackborn
Okay, sure, if you are letting the user open and close databases then you
could have an arbitrary number open (if you are actually letting the user do
that).  But then... you also already have the answer for when to close the
database.

For the vast, vast majority of Android applications, there will just be a
couple databases the app is dealing with, which a reasonable implementation
would just leave open.

On Thu, Apr 7, 2011 at 3:33 PM, Nathan critter...@crittermap.com wrote:

 On Apr 7, 3:15 pm, Dianne Hackborn hack...@android.com wrote:
 
  You are making this too complicated.
 No, I am not.

 
  class StuffDatabase {
SQLiteDatabase mDatabase;
static StuffDatabase getInstance();
 
  }
 
  class OtherStuffDatabase {
SQLiteDatabase mDatabase;
static OtherStuffDatabase getInstance();
 
  }

 That works if the number and filenames of databases are statically
 determined.


  Why in the world do you have 10s of databases?
 

 Why in the world would this be so unexpected?

 Does Excel only allow you to have three spreadsheets and pick all the
 names for you?
 No.
 To use a Google app example, does MyTracks only allow you to record
 one track?
 No - I've seen the code. It creates multiple Sqlite databases without
 having a class for each one.
 Would a shopping list application only allow you to have one shopping
 list, called default?
 A lame one would, yes.

 I really don't think my scenario is that outrageous.

 Nathan

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




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

Re: [android-developers] Create a list of items on top of an activity running a video

2011-04-07 Thread Justin Anderson
What have you tried so far?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Apr 6, 2011 at 12:52 PM, DM dalveermar...@gmail.com wrote:

 Hi,

 I am not quite sure how to achieve this.
 The requirement is to Create a list of ite.ms on top of an activity
 running a video

 While doing so the video must be running.
 Once an item is selected of the list the list disapears and video is
 still running.

 Please provide with how to implement this,

 Thanks,
 DM

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

-- 
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: Logcat debug level --help

2011-04-07 Thread Michael
try adb logcat *:e

On Apr 7, 6:12 am, Yash Jain yash2le...@gmail.com wrote:
 Hello All,
 I have one dumb question,
 when i read a logcat message through command logcat -d, i will get a list of
 all events with the prefix I, V, D, W, and E which represent *I*nformation,
 *V*erbose, *D*ebug, *W*arning and *E*rror.
 I am interested only to display the error messages in the log file( logcat
 -f log_error.txt) or to the console( logcat -d).
 Can anyone help me to print only the error log messages.

 Thanks in advance.

 Regards,
 Yash Jain.

-- 
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: LVL does not work while testing

2011-04-07 Thread jtoolsdev
I assume you are using a Froyo (Android 2.2) emulator?  It doesn't
work with versions.  What Google should have done with LVL is also to
have included a couple example Policy source files for the developers
to examine and get hints from.

On Apr 6, 1:56 pm, ted t...@filigreeinc.com wrote:
 I followed the developer.android.coml guidelines by  copying the LVL
 source into my
 project scr folder (it couldn't find the library.ask file if I
 installed lvl as a library) . I added the manifest attribute
 and much of the 'sample' code into my apps main activity.

 When I call this code in my app:

     mChecker.checkAccess(mLicenseCheckerCallback)

 it never returns to the MyLicenseCheckerCallback callback methods.
 Instead it returns to the next line after the
 'mChecker.checkAccess(mLicenseCheckerCallback)' statement in my app.

 When debugging thru the 'LicenseChecker.java', I can see that the
 'mService' variable == 'null' so it then goes on to bind and the
 'bindResult' variable becomes 'true'. It then runs the statement:

 mPendingChecks.offer(validator); and returns to my calling method,
 without going to the MyLicenseCheckerCallback method in my app. I
 can't find any documentation explaining the workings of the lvl code
 and its variables, so I am stumped as to why the lvl code is not
 working properly.

-- 
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 detect phone call/dial capabilities on tablet

2011-04-07 Thread Zsolt Vasvari
Isn'r there a resolveIntent() or something like that where you can see
if the Intent will sucessfully execute?

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


Re: [android-developers] Re: Unable to detect phone call/dial capabilities on tablet

2011-04-07 Thread Mark Murphy
On Thu, Apr 7, 2011 at 7:42 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Isn'r there a resolveIntent() or something like that where you can see
 if the Intent will sucessfully execute?

The problem is that on the Galaxy Tab, it *does* execute, just to a
do-nothing activity of some form.

Ideally, something on the Galaxy Tab would be a more feature-based
identifier that we really can't place phone calls. As it stands,
AFAIK, we're left with checking manufacturer and model via Build and
routing around the problem, which stinks.

Fortunately, I suspect that there will be relatively few tablets
taking the Galaxy Tab approach, since Honeycomb supports the Android
Market on non-phones.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

-- 
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: Android sqlite and multithreading

2011-04-07 Thread Nathan


On Apr 7, 3:46 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Apr 7, 2011 at 6:33 PM, Nathan critter...@crittermap.com wrote:
  Would a shopping list application only allow you to have one shopping
  list, called default?
  A lame one would, yes.

 A sensible implementation would use one database, with a lists table
 to identify the lists, and foreign key relationships in the other
 tables as needed back to the lists table. This is a fairly basic
 relational database design.

OK, a shopping list is a bad example. For the record, I've never
written one. In the real world, there is some retrieval overhead of
having multiple virtual databases in one physical database. But this
wouldn't show up in a shopping list application.

But does Excel really do that? Last I checked, I could create
multiple .xls files. Each one could be considered a database, but they
are stored in separate files.

  I really don't think my scenario is that outrageous.

 I would say that the code smell increases as the square of the number
 of databases. So, more than one database is not necessarily stinky,
 but 100 databases would certainly qualify as outrageous in my book.


We can agree to disagree about how stupid my implementation is. There
are more details than I can share here.

I do not require nor encourage users to create 100 databases, but I
don't see any reason to limit them just so my code smells better. They
could certainly use one database.

It would be unlikely, though not impossible, that they would open and
close 100 databases in one session, and not more than one open at a
time - currently. Though under Diane's suggestion of never closing
them, there could be many.

Nathan

-- 
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] Custom SurfaceView with overlayed views

2011-04-07 Thread Alistair
Hi there,

My program is a grid (surfaceView) which holds tiles. The surfaceView
runs a thread which has synchronized access to the surfaceView (I used
the lunar lander example).

The surfaceview is added programmatically to a frame layout. I have a
palette object which extends a view. When i touch the palette view,
after a while, i get a SIGSEV. I think this is because of multiple
threads accessing the same object but I've tried everything to fix
it.

Should I try to avoid using views over the top of each other? Does
this kind of thing happen because of the way android works? Or is it
purely my fault for being an idiot?

Cheers.

-- 
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] Best way to do this

2011-04-07 Thread arudzki
I'ld like to make an app with a new inspirational message per day.
Whats the best way to store the 365 strings so that they can be
accessed?  A database or a string list in a file?   I'm looking for
something that will be easy to code and easy to update (separate
inspirational packs).

I'm new to this whole Android thing, but am enjoying picking and
coding my way through the learning process.

Thanks

TonyR

-- 
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: Code Needed.

2011-04-07 Thread Kromosome
Get a clue!

On Apr 5, 8:32 pm, Kirti Joshi joshikirti...@gmail.com wrote:
 hello everyone,

 i wanna code for same application,  can any one help me ?

 https://market.android.com/details?id=br.com.android.appointments.ota...

 Thanks in advance.

-- 
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] ActivityGroup and SearchManager

2011-04-07 Thread Cyril
Hi,

I've been taking my head for hours trying to display the search UI
above my activity...My app is as below :

A main activity, which is tab-based :
public class CsvTabWidget extends TabActivity { ... }
In each tab, I have a Activity, which is a ActivityGroup. Here is the
first one :
public class EndpointsActivity extends ActivityGroup { ... }

I'd like to launch a search in one of the activity managed by
EndpointsActivity. What I get is :

04-07 11:37:03.953: ERROR/AndroidRuntime(24112):
android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.LocalActivityManager$LocalActivityRecord@482136f0 is
not valid; is your activity running?

I've been reading 
http://stackoverflow.com/questions/3523324/activitygroup-and-searchdialog,
but none of the solutions works for me.

So my questions:

- Do I have to declare my ActivityGroup as searchable of just managed
activities in Manifest?
- Do I have to call onSearchRequested() in ActivityGroup or in each
managed activity?

Any help appreciated!

-- 
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 use charts in android

2011-04-07 Thread amey bura
I want use charts in my application.. Actually i want to draw varoius
charts for example bar /pie chart by using the values from database..
so can anyone tell me how do i pass the values from my app to xml
programs which is used for drawing the chart

-- 
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] [Android] Bugs TabActivity in Child ActivityGroup

2011-04-07 Thread DOXA
Hi all, I create a tab activity at main activity. When I click on 1
button, it start a new child activity. This new child has tab-groups
at bottom of GUI and an input text box. When I insert into input text
box, an virtual keyboard appear and push the tab-groups above it.

I attached a link that one person has the same question.

http://stackoverflow.com/questions/5321539/android-bugs-tabactivity-in-child-activitygroup?s=c67b80b1-9080-4a73-a42a-4071cc31c463#new-answer

Please help me if you can find solutions for this.

Best regards,

-- 
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: Create a list of items on top of an activity running a video

2011-04-07 Thread Kromosome
Depending upon what kind of data is in your list and what you want the
selection to do you could use a Dialog:

http://developer.android.com/guide/topics/ui/dialogs.html



On Apr 7, 4:52 am, DM dalveermar...@gmail.com wrote:
 Hi,

 I am not quite sure how to achieve this.
 The requirement is to Create a list of ite.ms on top of an activity
 running a video

 While doing so the video must be running.
 Once an item is selected of the list the list disapears and video is
 still running.

 Please provide with how to implement this,

 Thanks,
 DM

-- 
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: startup application

2011-04-07 Thread Kromosome
Refer here:

http://groups.google.com/group/android-developers/browse_thread/thread/112887fbb59f3ee2

On Apr 6, 10:08 pm, आशुतोष हिन्दुस्तानी  ashutosh.h...@gmail.com
wrote:
 can i make a autostart or startup application in android.

 --
 Thanks
 Ashutosh Mohle
 Software Engineer
 CS-KNIT-2010

-- 
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 listen messages from http server

2011-04-07 Thread JK Park
I am trying to build up a managing program from web server.

And I uses APM server and be trying in AVD.

What I want to know is a program that listens a message(like packet or
socket?) from server when the admin controls.

Is anyone can tell me how to do?

-- 
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] New to android development

2011-04-07 Thread Rajah
Hi I'm new to android development.
I would like to develop database(SQLite) application.
There got ang guide or reference.

Tq
Regard
T.Kanagarajah

-- 
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: Honeycomb Sourcecode

2011-04-07 Thread Al Sutton
From Andy Rubins recent post at
http://android-developers.blogspot.com/2011/04/i-think-im-having-gene-amdahl-moment.html
;

Finally, we continue to be an open source platform and will continue
releasing source code when it is ready. As I write this the Android
team is still hard at work to bring all the new Honeycomb features to
phones. As soon as this work is completed, we’ll publish the code.
This temporary delay does not represent a change in strategy. We
remain firmly committed to providing Android as an open source
platform across many device types.

Al.

--
T: @alsutton W: www.funkyandroid.com

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.


On Apr 7, 9:41 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 7 April 2011 10:40, Marcin Orlowski webnet.andr...@gmail.com wrote:

   So my question is: where can I ask for the sourcecode ?

  AFAIK you can't, unless you are sort of hw manufacturer etc.

 ... or sign sign a licensing agreement. Try using your publisher consoler's
 Help - Contacting Us form

 Regards,
 Marcin Orlowski

 *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
 WebnetMobile on *Facebook http://webnetmobile.com/fb/* and
 *Twitterhttp://webnetmobile.com/twitter/
 *

-- 
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] anyone knows how to zoom paint view with image correctly?

2011-04-07 Thread choijuho
Hi. anyone knows how to zoom paint view with image correctly?

At following code, I used canvas zoom in order to zoom paint view with
image including using setImageMatrix().
But problem arised, that is entire screen became to zoom in/out but
not paint view and image only.
So If anyone knows this issue, reply plz.


PaintScreen.java

public class PaintScreen extends Activity implements
ColorPickerDialog.OnColorChangedListener{

Context mContext;
private Paint mPaint;
MaskFilter  mEmboss;
MaskFilter  mBlur;
private ImageView mImageView;
private LinearLayout mPaintBaseLayout;
private FrameLayout mTouchBaseLayout;
private PaintView mPaintView;
private int[] mPixels;
private Bitmap mBitmapImage;

private DisplayMetrics mDisplayMetrics = new DisplayMetrics();
MultiTouchListener multiTouchLitener = new MultiTouchListener(this);

  private static final String TAG = Touch;
   // These matrices will be used to move and zoom image
   Matrix matrix = new Matrix();
   Matrix savedMatrix = new Matrix();
  Matrix savedMatrix2 = new Matrix();

  private  int WIDTH = 0;
  private  int HEIGHT = 1;

   // We can be in one of these 3 states
   static final int NONE = 0;
   static final int DRAG = 1;
   static final int POINT2 = 2;
   static final int ZOOM = 3;
   int mode = NONE;

   // Remember some things for zooming
   PointF start = new PointF();
   PointF mid = new PointF();
   float oldDist = 1f;
  float newDist;
  float distanceOffset = 50f;
  float minOffset = 50f;
  float maxOffset = 1f;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.paint_mode1_paint);

this.initialize();

this.PaintSet();
}

private void initialize()
{
mPaintBaseLayout = (LinearLayout)
findViewById(R.id.paint_paint_base_layout);
mTouchBaseLayout = (FrameLayout)
findViewById(R.id.paint_touch_base_layout);

mContext = this;
mPaint = new Paint();
mPaintView = new PaintView(mContext);
mPaintView.setBackgroundColor(Color.TRANSPARENT);
mPaintBaseLayout.addView(mPaintView, new
LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
mPaintBaseLayout.setBackgroundColor(Color.TRANSPARENT);

mPaintView.setScaleType(ScaleType.MATRIX);
mPaintView.setMPaint(mPaint);

Intent intent = getIntent();
Bundle itstr = intent.getExtras();
String imagePath = itstr.getString(image_path);

Drawable d = Drawable.createFromPath(imagePath);

mPaintView.setBackgroundDrawable(d);

mPaintView.setOnTouchListener(new OnTouchListener() {

@Override
public boolean onTouch(View v, MotionEvent event) {
dumpEvent(event);
PaintView view = (PaintView) v;

switch (event.getAction()  MotionEvent.ACTION_MASK) {
case MotionEvent.ACTION_DOWN:
savedMatrix.set(matrix);
start.set(event.getX(), event.getY());
break;
case MotionEvent.ACTION_POINTER_DOWN:
oldDist = spacing(event);
if (oldDist  10f) {
start.set(event.getX(), event.getY());
savedMatrix.set(matrix);
midPoint(mid, event);
mode = POINT2;
}
break;
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_POINTER_UP:
 mode = NONE;
 distanceOffset = minOffset;
 break;
case MotionEvent.ACTION_MOVE:
if (mode == POINT2)
 {
newDist = spacing(event);
if (newDist - oldDist  5f
|| newDist - oldDist  
-5f) {
mode = ZOOM;
} else {
start.set(event.getX(), 
event.getY());
mode = DRAG;

}
 } else
 if (mode == DRAG) {
  

[android-developers] How to retrieve a JSON object from a php url to my android

2011-04-07 Thread Jennifer
Hi,
I am having this code
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet();
request.setURI(new URI(uri));

HttpResponse response=client.execute(new HttpGet(uri));
InputStream ips  = response.getEntity().getContent();

//String a = String(ips);
BufferedReader buf = new BufferedReader(new
InputStreamReader(ips,UTF-8));

And I am having a url like http://site.com/webservice.php that returns
a JSON object. But am not getting the result.Somebody please help. I
want to get the JSON object in my android class.

I have went through almost all questionnaires in this site.

Thanks in advance.

-- 
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] Getting image from Web Server

2011-04-07 Thread Fusion
Hi,
I am using this file to retrieve image - logo from web server.

public ImageView getView(String myImageURL) {
static String myImageURL = http://www.fusionedv.com %imagedit;
   Log.i(TAG,downloadFile00+myImageURL);
ImageView i = new ImageView(this);

try {
/* Open a new URL and get the InputStream to load data
from it. */
URL aURL = new URL(myImageURL);
URLConnection conn = aURL.openConnection();

Log.i(TAG,downloadFile111+myImageURL);
conn.connect();
InputStream is = conn.getInputStream();

Log.i(TAG,downloadFile22+is.read());
/* Buffered is always good for a performance plus. */
BufferedInputStream bis = new BufferedInputStream(is);

Log.i(TAG,downloadFile=+bis.read());
/* Decode url-data to a bitmap. */
   // Bitmap bm = BitmapFactory.decodeStream(bis);
Bitmap bm = BitmapFactory.decodeStream(is);
   //
Log.i(TAG,downloadFile444+bm.getHeight());
   // bis.close();
is.close();
/* Apply the Bitmap to the ImageView that will be
returned. */
i.setImageBitmap(bm);
Log.i(TAG,downloadFile5);
   } catch (IOException e) {
  Log.i(TAG,downloadFile);
Log.e(DEBUGTAG, Remtoe Image Exception, e);
   }

/* Image should be scaled as width/height are set. */
   // i.setScaleType(ImageView.ScaleType.FIT_CENTER);
/* Set the Width/Height of the ImageView. */

return i;
}

I still get streaming problem and images are not loaded. Anybody can
help?

Best,
Markoz

-- 
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 retrieve a JSON object from a php url to my android

2011-04-07 Thread Jency Johnson
Hi,
I am having this code
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet();
request.setURI(new URI(uri));

HttpResponse response=client.execute(new HttpGet(uri));
InputStream ips  = response.getEntity().getContent();

//String a = String(ips);
BufferedReader buf = new BufferedReader(new
InputStreamReader(ips,UTF-8));

But am not getting the result.Somebody please help. I want to get the
JSON object in my android class.

I have went through almost all questionnaires in this site.

Thanks in advance.

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


Re: [android-developers] startup application

2011-04-07 Thread Samuel Anandaraj.J
Yes! you can.

   uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED
/


2011/4/6 आशुतोष हिन्दुस्तानी ashutosh.h...@gmail.com

 can i make a autostart or startup application in android.

 --
 Thanks
 Ashutosh Mohle
 Software Engineer
 CS-KNIT-2010






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

-- 
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] Amazon MP3 store intents - quick how to.

2011-04-07 Thread Kent
It has been pretty difficult to track down information on interacting
with the Amazon MP3 application. After a bit of poking around, it
appears the app provides a way to handle external intents through a
proxy activity. There are two mechanisms for accessing the Amazon MP3
search service. Here are a few code snippits to demonstrate how to set
up the intent object using both methods.

The first implementation appears to be geared to handle searches based
on the MediaStore constants and responds to the
INTENT_ACTION_MEDIA_SEARCH action.

Intent i = new Intent();
String query = SEARCH TERMS;
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.setClassName(com.amazon.mp3,
com.amazon.mp3.activity.IntentProxyActivity);
i.setAction(MediaStore.INTENT_ACTION_MEDIA_SEARCH);
i.putExtra(MediaStore.EXTRA_MEDIA_TITLE, query);

A more interesting way to accomplish the same thing is using the
EXTERNAL_EVENT action. This is the mechanism used by the Shazam app.

Intent i = new Intent();
String query = SEARCH TERMS;
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.setClassName(com.amazon.mp3,
com.amazon.mp3.activity.IntentProxyActivity);
i.setAction(com.amazon.mp3.action.EXTERNAL_EVENT);
i.putExtra(com.amazon.mp3.extra.EXTERNAL_EVENT_TYPE,com.amazon.mp3.type.SEARCH);
i.putExtra(com.amazon.mp3.extra.SEARCH_TYPE, 0); // 0 = Song, 1 =
album
i.putExtra(com.amazon.mp3.extra.SEARCH_STRING, query);

Both of these do essentially the same thing. The EXTERNAL_EVENT action
has several other EXTERNAL_EVENT_TYPE values to launch other features.
Here's a quick rundown of the fields

extra: com.amazon.mp3.type.SEARCH
 (uses) extra: com.amazon.mp3.extra.SEARCH_STRING
 (uses) extra: com.amazon.mp3.extra.SEARCH_TYPE

extra: com.amazon.mp3.type.SHOW_ALBUM_DETAIL
(uses) extra: com.amazon.mp3.extra.ALBUM_ASIN

extra: com.amazon.mp3.type.GENRE_BROWSE
 (uses) extra: com.amazon.mp3.extra.BROWSE_TYPE
 (uses) extra: com.amazon.mp3.extra.GENRE_NAME

extra: com.amazon.mp3.type.TOP_MUSIC_BROWSE
 (uses) extra: com.amazon.mp3.extra.BROWSE_TYPE

there does not appear to be any way to indicate an associate ID.
However, the Amazon system does log the package initiating the search.

-- 
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: Reusing the same external class with 2 different Activities

2011-04-07 Thread Kromosome
You should include some code and the actual error, I can't clearly
understand the error you are encountering

On Apr 5, 1:54 pm, Digeridoo eugene.ko...@bluescopesteel.com wrote:
 Hi All,

 I am trying to reuse an external class in the same package in 2
 Activities thus:

 First.class
 Manual.class
 Auto.class
 Tower.class

 The app starts up in First.class with a Select Case statement that
 directs it either to the Manual.class or the Auto.class each with its
 own intent and View. From there the user plays the same game either in
 manual or auto.

 My problem is when I seperate out the Tower.class from the
 Manual.class and from the Auto.class the app will not run even though
 I instantiate it in both Manual and Auto. I have remembered to include
 the Manual.class and Auto.class in the manifest.

 I get a runtime error which basically refuses to run a method in the
 Tower.class.

 Any ideas?

-- 
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: Intercept Emails

2011-04-07 Thread Dmitry
Hi, Daniel

I solve this problem by installing app as system app. For example, I'm
using following batch file with commands:
adb shell mount -oremount,rw -t yaffs2 /dev/block/mtdblock3 /system
adb push C:\Your.apk /system/app/
adb reboot

On Apr 7, 8:53 am, Daniel Felix zaandr...@gmail.com wrote:
 Hi All,

   Thanks for your kind replies, I am wondering some software are using
 these facilities like flexiSpy is using this facility.
   I want to only read the emails from the email client and when I try
 to access it throws an exception which is security permission access
 exception.

   If someone know about this exception please give me suggestion. I
 have add the security permission which is mentioned in exception.

 Regards,
 Felix

 On Apr 6, 6:29 pm, Dianne Hackborn hack...@android.com wrote:







  On Wed, Apr 6, 2011 at 3:41 AM, Daniel Felix zaandr...@gmail.com wrote:
   I have rooted phone. Could you send me some snippet for the email
   recieving.

  I doubt anybody is going to be able to send you a snippet of code.  This is
  an extremely non-trivial thing to do, and will be deeply tied to whatever
  implementations there are in the particular e-mail app you are using.

  If you have a rooted phone, replace your e-mail app with one that does what
  you want.

  --
  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] How do I initiate/terminate xml-defined SurfaceView upon a button push?

2011-04-07 Thread Greg
Hello,

I've patterned my initial code from another tutorial to create classes
to handle drawing to a SurfaceView.  This tutorial (and others I've
found) associate an xml-defined SurfaceView to a class which intiates
upon creation.

My goal is to initiate animation in an xml-defined surface view upon
pushing a button in my layout and terminating it when I push it
again.  Furthermore, the animation must run inside the region I've
specified in my xml (rather than the entire display) confined to that
region and not disturb the other widgets on the layout.

For simplicity, I'm currently only drawing a circle in the surfaceview
until I figure out how to get my layout working.

So, when I click the Go button (BattleActivity::onClick), my surface
view is created and drawn, but it fills the entire display covering
the other controls in my layout including the button.  I want the
animation to take place only in the surface view defined as part of my
layout (id=battleView).

Here's a sub-layout section of my XML code (tabBattle.xml).

LinearLayout
android:orientation=vertical
android:gravity=center
android:layout_width=fill_parent
android:layout_height=fill_parent

SurfaceView
android:id=@+id/battleView
android:layout_weight=70
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_gravity=center_horizontal/

Button
android:onClick=onClick
android:text= Go 
android:gravity=center
android:layout_weight=30
android:layout_width=wrap_content
android:layout_height=wrap_content/

/LinearLayout


Here's my main activity class.  This is created when I navigate to the
tab view where its layout (tabBattle) resides.  The onClick is called
when I push the Go button.  My intention in onClick is to get the
surface view, create a new BattleView instance, and and pass the
surface view context to the BattleView constructor.   Based on my
tests, this clearly is not correct but I have no idea how else to
accomplish my goal.


public class BattleActivity extends Activity implements
View.OnClickListener
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.tabbattle);
}

@Override
public void onClick(View v)
{
SurfaceView battleSurface =
(SurfaceView)findViewById(R.id.battleView);
setContentView(new BattleView( battleSurface.getContext() ));
}
}

SurfaceView subclass:

public class BattleView extends SurfaceView implements
SurfaceHolder.Callback
{
private int circleRadius;
private Paint circlePaint;
UpdateThreadBattle updateThread;

private int width;
private int height;
private int xPos;
private int yPos;
private int xVel;
private int yVel;

public BattleView(Context context)
{
super(context);
getHolder().addCallback(this);

circleRadius = 10;
circlePaint = new Paint();
circlePaint.setColor(Color.BLUE);
}

@Override
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
canvas.drawCircle(xPos, yPos, circleRadius, circlePaint);
}


@Override
public void surfaceCreated(SurfaceHolder holder)
{
Rect surfaceFrame = holder.getSurfaceFrame();
width = surfaceFrame.width();
height = surfaceFrame.height();

// do stuff herre

updateThread = new UpdateThreadBattle(this);
updateThread.setRunning(true);
updateThread.start();
}

@Override
public void surfaceDestroyed(SurfaceHolder arg0)
{
boolean retry = true;

updateThread.setRunning(false);

while (retry) {
try {
updateThread.join();
retry = false;
} catch (InterruptedException e) {

}
}
}

}

Any help is greatly appreciated!

Greg

-- 
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: Thread and ProgressDialog

2011-04-07 Thread Kromosome
Hello, I'm trying to do some work in a thread

For starters you're still in the UI thread, your application is not
multi threaded, try using a real thread:

http://developer.android.com/reference/android/os/AsyncTask.html

This will most likely guide you as to when you can update a progress
dialog.


On Apr 6, 2:45 pm, SD315 sailer...@gmail.com wrote:
 Hello, i'm trying to do some work in a thread while showing a progress
 dialog until the work is done in the most simple possible way, so far
 i got this:

 // this is the current activity
 final ProgressDialog prgDialog = ProgressDialog.show(this, ,
                 Working..., true, false);

 new Thread() {
   public void run()
     {
     Util.DoSomeWork(); // a static method
     prgDialog.dismiss();
     }}.start();

 at least it work fine in the emulator, but i'm concerned about it's
 correctness, specifically about calling prgDialog.dismiss(); (note
 that the variable prgDialog is created in the main thread), is this
 correct?

 bye

-- 
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] Android 3.0 ActionBar, changing colors

2011-04-07 Thread Chris Stewart
How can I change the color of the underline beneath the tabs?  It's
currently the light blue, and I can't find any resources on how to change
this for Android 3.0.  Additionally, I'd like to change the text color for
the menu items that show up on the right of the ActionBar as a result of:
android:showAsAction=ifRoom|withText.

Anyone know how to change these?

--
Chris Stewart
http://chriswstewart.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] How do I stop the emails

2011-04-07 Thread ted
Somehow when I joined this group yesterday I got listed to be copied
on all posts, which is loading my mailbox up too fast. How do I remove
my name from the email list?

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


Re: [android-developers] How do I stop the emails

2011-04-07 Thread Kristopher Micinski
What's the thing at the bottom of this email say?

Kris

On Thu, Apr 7, 2011 at 10:59 PM, ted t...@filigreeinc.com wrote:

 Somehow when I joined this group yesterday I got listed to be copied
 on all posts, which is loading my mailbox up too fast. How do I remove
 my name from the email list?

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

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

Re: [android-developers] New to android development

2011-04-07 Thread Kristopher Micinski
Rajah,

There are many references for database development using SQLite. Generally
your database will be wrapped in a ContentProvider. Try googling SQLite
android.  You probably won't directly use it, however, so also read the
Content Provider section in the android tutorial.

Really, the android introduction tutorial is quite well written and brings
you up to speed with many concepts very quickly. You should read all of it
soon if you want to become a serious application developer.

Kris

On Thu, Apr 7, 2011 at 12:15 AM, Rajah kraja...@gmail.com wrote:

 Hi I'm new to android development.
 I would like to develop database(SQLite) application.
 There got ang guide or reference.

 Tq
 Regard
 T.Kanagarajah

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

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

Re: [android-developers] Re: Thread and ProgressDialog

2011-04-07 Thread TreKing
On Wed, Apr 6, 2011 at 10:10 PM, Kromosome m...@kromosome.net wrote:

 For starters you're still in the UI thread, your application is not multi
 threaded, try using a real thread


What? Since when is a Thread not a real thread?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Best way to do this

2011-04-07 Thread Kristopher Micinski
I think I'd prefer storing them in a database as opposed to a file.  How
would you store them in a file? Something like comma separated values or xml
or something? You can avoid all that parsing code and use a database
instead.  This also might make it easier if you want to add more strings for
your messages in the future.

If you have a small amount of data you can keep it as static variables, but
I'm not sure if this is kosher with ~400 messages at an average length of
let's say 50 characters a piece.

Kris

On Wed, Apr 6, 2011 at 8:39 PM, arudzki tony.rud...@gmail.com wrote:

 I'ld like to make an app with a new inspirational message per day.
 Whats the best way to store the 365 strings so that they can be
 accessed?  A database or a string list in a file?   I'm looking for
 something that will be easy to code and easy to update (separate
 inspirational packs).

 I'm new to this whole Android thing, but am enjoying picking and
 coding my way through the learning process.

 Thanks

 TonyR

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

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

Re: [android-developers] how to listen messages from http server

2011-04-07 Thread Kristopher Micinski
Can you not just use a standard socket connection?  I don't see anything too
different from a standard java socket application.  Read general socket
tutorials in Java to learn how to do this kind of stuff, this doesn't sound
specific to Android.

Kris

On Thu, Apr 7, 2011 at 4:10 AM, JK Park jkpar...@gmail.com wrote:

 I am trying to build up a managing program from web server.

 And I uses APM server and be trying in AVD.

 What I want to know is a program that listens a message(like packet or
 socket?) from server when the admin controls.

 Is anyone can tell me how to do?

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

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

Re: [android-developers] New to android development

2011-04-07 Thread Kristopher Micinski
(Let me add a comment, when I said you probably won't directly use it, I
meant you will be using it *within* a content provider, which will certainly
use the android.database.sqlite classes to do things like insertion, lookup,
etc... Your activities will then call to this content provider)

Kris

On Thu, Apr 7, 2011 at 11:11 PM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Rajah,

 There are many references for database development using SQLite. Generally
 your database will be wrapped in a ContentProvider. Try googling SQLite
 android.  You probably won't directly use it, however, so also read the
 Content Provider section in the android tutorial.

 Really, the android introduction tutorial is quite well written and brings
 you up to speed with many concepts very quickly. You should read all of it
 soon if you want to become a serious application developer.

 Kris


 On Thu, Apr 7, 2011 at 12:15 AM, Rajah kraja...@gmail.com wrote:

 Hi I'm new to android development.
 I would like to develop database(SQLite) application.
 There got ang guide or reference.

 Tq
 Regard
 T.Kanagarajah

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




-- 
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 eliminate paint sawtooth

2011-04-07 Thread a a
I draw a 30 degree line with paint,  but it seams not smoothness. How
can i eliminate the sawtooth?

my code below:



mPaint.setColor(Color.WHITE);
mPaint.setAntiAlias(true);
mPaint.setStrokeCap(Paint.Cap.ROUND);
mPaint.setStyle(Paint.Style.STROKE);
Canvas.drawLine(x1, y1, x2, y2, mPaint);

-- 
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] FragmentActivity class appears to be incompatible with instrumented test classes

2011-04-07 Thread securelpb
I have a problem executing android unit tests against android
applications that utilize the recently released Fragment support API.
When the test is run against a FragmentActivity the following error
shows up in the log and the class fails to load. When run against an
identical class, but one derived from Activity the test works fine.
Both classes work correctly as apps! Meaning that when simply invoked
they both display their layout and function correctly. The support jar
is part of the build path and included in the project.

The problem I have is that the only way to utilize fragments (and
support pre3.0 android) is to utilize FragmentActivity, but if that
excludes automated testing then what good is this library.

4-05 18:00:11.276: WARN/dalvikvm(1095): Class resolved by unexpected
DEX: Lcom/example/android/app/FragmentLayoutSupport;(0x406351a0):
0x12e5c8 ref [Landroid/support/v4/app/FragmentActivity;] Landroid/
support/v4/app/FragmentActivity;(0x406351a0):0x12e440
04-05 18:00:11.276: WARN/dalvikvm(1095): (Lcom/example/android/app/
FragmentLayoutSupport; had used a different Landroid/support/v4/app/
FragmentActivity; during pre-verification)
04-05 18:00:11.286: WARN/dalvikvm(1095): Unable to resolve superclass
of Lcom/example/android/app/FragmentLayoutSupport; (49)
04-05 18:00:11.286: WARN/dalvikvm(1095): Link of class 'Lcom/example/
android/app/FragmentLayoutSupport;' failed
04-05 18:00:11.286: ERROR/dalvikvm(1095): Could not find class
'com.example.android.app.FragmentLayoutSupport', referenced from
method com.example.android.app.test.FrameLayoutTest.init
04-05 18:00:11.286: WARN/dalvikvm(1095): VFY: unable to resolve const-
class 131 (Lcom/example/android/app/FragmentLayoutSupport;) in Lcom/
example/android/app/test/FrameLayoutTest;

Here is the code I constructed to demonstrate the issue. The test case
simply tries to instantiate the class under test:

FrameLayoutTest.java
public class FrameLayoutTest extends
ActivityInstrumentationTestCase2FragmentLayoutSupport {
public FrameLayoutTest() {
super(FragmentLayoutSupport.class);
}

public void testActivityTestCaseSetUpProperly() {
assertNotNull(activity should be launched successfully,
getActivity());
}
}

The two classes I have created are as follows and fragment_layout is
an empty LinearLayout:

FrameLayout.java
public class FragmentLayout extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.fragment_layout);
}
}

And

FragmentLayoutSupport.java
public class FragmentLayoutSupport extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.fragment_layout);
}
}

-- 
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] Custom ArrayAdapter add items programmatically

2011-04-07 Thread cmg_george
I need some help.
i've create a custom ArrayAdapter and override getView method like
this:

View v=convertView;
if(v==null){
LayoutInflater li = (LayoutInflater)
getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = li.inflate(R.layout.dynamic_element_layout, null);
}
In my dynamic_element_layout.xml i defined one table layout with 2
row. In the first row i have one TextView and i set the text for this
in my  getView method(that works ok) the problem is that i want to
programmatically add an other control in my second table row
(EditText, Spinner, etc) and it's not working. I tried:

TableRow tr=(TableRow) v.findViewById(R.id.elementContainerTableRow);
if(tr!=null){
TextView tv=new TextView(getContext());
tv.setText(Text);
tv.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

tr.addView(tv);
}

Can somebody help me with this issue??

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


Re: [android-developers] Re: Honeycomb Sourcecode

2011-04-07 Thread Devon Narine
Thats not easy to come by unless someone gives it to you.
Google will give you as long as you are a registered manufacturer or you are
representing one of them.

On Thu, Apr 7, 2011 at 3:06 PM, JAlexoid (Aleksandr Panzin) 
jalex...@gmail.com wrote:

 Why would you need Honeycomb source?

 On 5 апр, 11:53, MeikeTalbach meike.talb...@women-at-work.org wrote:
  Hi all,
 
  this is my first post to this group and for the start, I only have a
  simple question.
  I've read on multiple web sites that the Honeycomb source code is not
  available for general download. But to get it, I only have to ask
  google.
 
  See for example here:
 http://mashable.com/2011/03/24/honeycomb-androidocalypse/
 
  So my question is: where can I ask for the sourcecode ?
 
  Thanks
  Meike

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


-- 
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] bouncycastle CMS API works on Android 2.3 but failed on 2.2

2011-04-07 Thread Yu Wang
Hi experts
I have tried to use bouncycastle CMS API to generate CMS Enveloped Data.
The following line will work on Android 2.3 but fail on Android 2.2

 CMSEnvelopedDataGenerator gen = new CMSEnvelopedDataGenerator();


The exception thrown on Android 2.2 is as following:

04-07 09:50:23.764: ERROR/AndroidRuntime(369): Caused by:
java.lang.NoSuchFieldError:
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_alg_CMS3DESwrap


Please help! and Thanks

Best Regards

-- 
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] Android Build Error for 2.3 version

2011-04-07 Thread NARAYANA1
Hi,
I'm facing the following build error.
All the required tools are installed.
I'm using ubuntu 10.04

Install: out/target/product/generic/system/lib/libttssynthproxy.so
Generating CSSPropertyNames.h = CSSPropertyNames.in
Generating CSSValueKeywords.h = CSSValueKeywords.in
target Generated: libwebcore = external/webkit/WebCore/css/make-css-
file-arrays.pl
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
target Generated: libwebcore = external/webkit/WebCore/bindings/js/
JSDOMWindowBase.cpp
Creating hashtable for external/webkit/WebCore/bindings/js/
JSDOMWindowBase.cpp
target Generated: libwebcore = external/webkit/WebCore/css/
CSSCharsetRule.idl
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Can't call method fileName without a package or object reference at
external/webkit/WebCore/bindings/scripts/IDLParser.pm line 110.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/
libwebcore_intermediates/WebCore/css/JSCSSCharsetRule.h] Error 255


But actually I see that file is present in the specified directory.

-- 
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] Difference between Android application and Android service

2011-04-07 Thread Asym
Hi Guys

Fundamental question, is there any difference in the functionality of
a service and an application? I know there is minimum user interaction
involved with a service but can a service also perform read write
operations for example to the sdcard?
Can a service invoke other services or applications?

Thanx
Asym

-- 
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] load an image from a URL

2011-04-07 Thread Julien Bunel
How to load an image from a URL in a ImageView ?

I tried this :

ImageView imgVw = (ImageView)findViewById(R.id.lm1);
imgVw.setImageURI(http://www.intelligent-solutions.be/pics/e_mail2.jpg;);

But it doesn't work !!

---
Julien

-- 
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] Memory Leaks in application

2011-04-07 Thread NURAIZ
I developed a simple application in which I just logged the Native
heap size. Why our native heap size is increased every time we run the
application? I logged the size with Debug.getNativeHeapAllocatedSize().

-- 
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] FragmentActivity class appears to be incompatible with instrumented test classes

2011-04-07 Thread securelpb
I have a problem executing android unit tests against android
applications that utilize the recently released Fragment support API.
When the test is run against a FragmentActivity the following error
shows up in the log and the class fails to load. When run against an
identical class, but one derived from Activity the test works fine.
Both classes work correctly as apps! Meaning that when simply invoked
they both display their layout and function correctly. The support jar
is part of the build path and included in the project.

The problem I have is that the only way to utilize fragments (and
support pre3.0 android) is to utilize FragmentActivity, but if that
excludes automated testing then what good is this library.

4-05 18:00:11.276: WARN/dalvikvm(1095): Class resolved by unexpected
DEX: Lcom/example/android/app/FragmentLayoutSupport;(0x406351a0):
0x12e5c8 ref [Landroid/support/v4/app/FragmentActivity;] Landroid/
support/v4/app/FragmentActivity;(0x406351a0):0x12e440
04-05 18:00:11.276: WARN/dalvikvm(1095): (Lcom/example/android/app/
FragmentLayoutSupport; had used a different Landroid/support/v4/app/
FragmentActivity; during pre-verification)
04-05 18:00:11.286: WARN/dalvikvm(1095): Unable to resolve superclass
of Lcom/example/android/app/FragmentLayoutSupport; (49)
04-05 18:00:11.286: WARN/dalvikvm(1095): Link of class 'Lcom/example/
android/app/FragmentLayoutSupport;' failed
04-05 18:00:11.286: ERROR/dalvikvm(1095): Could not find class
'com.example.android.app.FragmentLayoutSupport', referenced from
method com.example.android.app.test.FrameLayoutTest.init
04-05 18:00:11.286: WARN/dalvikvm(1095): VFY: unable to resolve const-
class 131 (Lcom/example/android/app/FragmentLayoutSupport;) in Lcom/
example/android/app/test/FrameLayoutTest;

Here is the code I constructed to demonstrate the issue. The test case
simply tries to instantiate the class under test:

FrameLayoutTest.java
/*
  *This test case uses  ActivityInstrumentationTestCase2, but I've
also duplicated this failure
 * with ServiceTestCase while attempting to test a working service in
my app.
*/
public class FrameLayoutTest extends
ActivityInstrumentationTestCase2FragmentLayoutSupport {
public FrameLayoutTest() {
super(FragmentLayoutSupport.class);
}

public void testActivityTestCaseSetUpProperly() {
assertNotNull(activity should be launched successfully,
getActivity());
}
}

The two classes I have created are as follows and fragment_layout is
an empty LinearLayout:

FrameLayout.java
public class FragmentLayout extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.fragment_layout);
}
}

And

FragmentLayoutSupport.java
public class FragmentLayoutSupport extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.fragment_layout);
}

-- 
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] Flickr api connection with android

2011-04-07 Thread Mohamed Hisham
Hey guys,I need assistance in connecting my android app to flickr api
methods to be able to use the method of photosforlocation and view the
retirevied photo from the photolist in an imageview, yet i have been
searching for over 2 days with no use, please help me in this matter

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


Re: [android-developers] Re: resizing the touch event generating area

2011-04-07 Thread Joao Braga
Why can't you put a method to be executed when the user touched or leaves
the screen in order to get the X and Y and verify if it happend inside the
area of interest for you ?

if not, you just ignore it.

 public boolean onTouch(View v, MotionEvent event) {
if (yourRectObject.verify (event.getX(), event.GetY()){
//IDENTIFY THE EVENT TYPE DO UR STUFf
return true;
}
//DO NOTHING
return false;
}



2011/4/7 lbendlin l...@bendlin.us

 are you using the multitouch version of the event handler?

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


-- 
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: Testing in app billing, all purchases end up cancelled

2011-04-07 Thread Steven
hi,
I've just tried it with my own account and it worked on the second
try.  Sorry, I should have tried that earlier.  No idea why the other
one fails, but at least I can make some progress with the other
features, testing restore purchases and refunds etc.

Thanks for your help.

On Apr 7, 5:39 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 Steven,

 Weird.

 I've made two purchases with Dungeons under the test account, and the
 orders went through all the way immediately. They were both for
 sword_001, which is managed.

 Perhaps you could try a different customer phone, and / or contact
 Market support.

 -- Kostya

 07.04.2011 20:27, Steven пишет:





  Hi,  sorry for my delay replying.

  The app is unpublished (draft) and all the in app products are
  published.  Unfortunately we still have the same error.

  Also in Google Checkout which shows the purchase ascancelled, there
  doesn't seem to be any way to retry the purchase or delete it / mark
  it invalid.  The test account can now never attempt to purchase that
  same product again.

  This seems to only be affecting the Managed purchases, the UnManaged
  consumable product was successful.

  Steven

  On Mar 30, 4:41 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
  Is your billing item published?

  This is under in app products in the console. Publishing an item
  doesn't publish your application, you can keep it as a draft.

  -- Kostya

  29.03.2011 19:17, Steven пишет:

  Hi,
  I've been adding in app billing to a new (as yet unpublished) game,
  very much based on the Dungeons example Google provided.
  Every attempt to purchase is sent to the server correctly, but then I
  receive nothing else back.  Looking at the test user account I can see
  the transaction ends upcancelled.  We could not complete your order  in 
  a timely fashion. Please verify your payment information in Google  
  Checkout and try again later.
  I've been through all I can find about why it may fail so far.
  * Account is @gmail.com instead of @googlemail.com
  * Test user accounts setup in the market account settings
  * Build is built and signed as release, unpublished app with the in
  app purchases setup and published
  * Market public key is correct from our publisher account
  * Billing the credit card setup works for other apps in the market.
  * I have also made a test using the Dungeons example with no other
  changes than the package name and public key
  Now any attempt to purchase the same product results in a dialog
  saying Item already purchased.  Attempts to restore purchases result
  in the orders field being blank.  The nonce matches the request.
  signedData: {nonce:-5466231341533323209,orders:[]}
  I was able to use the testing string com.android.purchased, but that
  wont really help test the game properly.
  So has anyone seen the same issue or have any clues as to what I may
  be missing?
  Thanks very much
  Steven
  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

 --
 Kostya Vasilyev --http://kmansoft.wordpress.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] bouncycastle CMS API works on Android 2.3 but failed on 2.2

2011-04-07 Thread Yu Wang
Hi experts
I have tried to use bouncycastle CMS API to generate CMS Enveloped Data.
The following line will work on Android 2.3 but fail on Android 2.2

 CMSEnvelopedDataGenerator gen = new CMSEnvelopedDataGenerator();


The exception thrown on Android 2.2 is as following:

04-07 09:50:23.764: ERROR/AndroidRuntime(369): Caused by:
java.lang.NoSuchFieldError:
org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.id_alg_CMS3DESwrap


Please help! and Thanks

Best Regards
Wang Yu

-- 
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] android.R.styleable.Theme

2011-04-07 Thread android
obtainStyledAttributes(android.R.styleable.Theme) gives the error
styleable cannot be resolved.  what's the solution for 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] Running multiple Services in Android

2011-04-07 Thread declantraynor
Hi,

I'm currently building some movement-detection functionality into my
application. I haven't found a way of continually monitoring the
accelerometer without keeping the phone awake all the time. In trying
to overcome this, I currently have a Service implementing
SensorEventListener. I can start this service at intervals (using
alarm manager), get readings from the device acclerometer, determine
if the device is moving, and then shut down the service. Generally,
this appears as follows:

public class MyService extends Service implements SensorEventListener
{

@Override
public void onCreate() {
super.onCreate();
}

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
super.onStartCommand(intent, flags, startId);
/* Register this SensorEventListener with Android sensor
service */
return START_STICKY;
}

@Override
public IBinder onBind(Intent intent) {
return null;
}

@Override
public void onDestroy() {
/* Unregister SensorEventListener */
}

/* SensorEventListener Implementation /

@Override
public void onAccuracyChanged(Sensor sensor, int accuracy) {}

/* Receives callback when sensor values change */
@Override
public void onSensorChanged(SensorEvent event) {
/* Determine if moving  then call stopSelf() to shut service
down */
}
}

I have a further problem, however, in that my application has a second
service which is invoked on a different schedule. As far as I know,
both of the services will be run in the same thread, which is not good
as they could conflict.

I need to know if there is a safe way to run more than one service
simultaneously within the same application. I have considered the use
of IntentService instead of the standard Service class. I am aware
that these implement their own worker thread for handling invocations.
The problem there is that I have no idea how I can implement the type
of asynchronous callbacks required by SensorEventListener from within
an IntentService. To put it another way, I have no guarantee that a
method like onSensorChanged will receive a callback before
IntentService completes its work and shuts down.

Any suggestions on a workaround to this problem are highly
appreciated.

Thanks, Declan

-- 
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] HelloAndroid] Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

2011-04-07 Thread miten
Hi,

I have downloaded and tried to extract and install android sdk for win
xp.  I tried hello android example and it gives error when trying
build in subject line.


here are the archives I used to setup.

ADT-10.0.1.zipandroid-2.2_r02-windows.zipandroid-
sdk-windows  android_usb_windows.zipplatform-tools_r03-
windows.zip
Beginning_Android_2-4530.zip  android-3.0_pre_r01-linux.zip  android-
sdk_r10-windows.zip  commonsguy-cw-android-f1de3a5  projects


here is how its setup.  The platform-tools was extracts and renamed
since eclipse was looking an exe in that path.  I have added ./android-
sdk-windows/platforms/android-2.2_r02-windows and ./android-sdk-
windows/tools to path env.

./android-sdk-windows
./android-sdk-windows/platforms
./android-sdk-windows/platforms/android-2.2_r02-windows
./android-sdk-windows/platforms/android-2.2_r02-windows/ant
./android-sdk-windows/platforms/android-2.2_r02-windows/data
./android-sdk-windows/platforms/android-2.2_r02-windows/images
./android-sdk-windows/platforms/android-2.2_r02-windows/skins
./android-sdk-windows/platforms/android-2.2_r02-windows/templates
./android-sdk-windows/platforms/android-2.2_r02-windows/tools
./android-sdk-windows/add-ons
./android-sdk-windows/tools
./android-sdk-windows/tools/ant
./android-sdk-windows/tools/lib
./android-sdk-windows/tools/lib/x86_64
./android-sdk-windows/tools/lib/emulator
./android-sdk-windows/tools/lib/x86
./android-sdk-windows/tools/proguard
./android-sdk-windows/tools/proguard/ant
./android-sdk-windows/tools/proguard/lib
./android-sdk-windows/tools/proguard/bin
./android-sdk-windows/tools/Jet
./android-sdk-windows/tools/Jet/demo_content
./android-sdk-windows/tools/Jet/logic_templates
./android-sdk-windows/tools/Jet/JetCreator
./android-sdk-windows/android_usb_windows
./android-sdk-windows/platform-tools
./android-sdk-windows/platform-tools/lib


Probably its simple setup issue.  Please guide.

Regards,

Miten.

-- 
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] Android Playing YouTube video in WebView

2011-04-07 Thread Dan
I am trying to implement a web browser within my app and using WebView
for that.

For playing youtube video I used the following resource to start
playing the video:

http://stackoverflow.com/questions/3815090/webview-and-html5-video
To stay in the webView when a link is pressed and not go to the web
browser, I had to add

   @Override
public boolean shouldOverrideUrlLoading(WebView view, String url)
{
view.loadUrl(url);
return true;
}


This seems to work well if I am touching the screen to start the
video.

However if I call webView.dispatchKeyEvent to navigate to the video
image on the screen and then send a dispatchKeyEvent
KEYCODE_DPAD_CENTER Down followed by up, the image shows loading and
stays in the same state. So it did react to this key event but did not
start playing the video.

I noticed that if I touch on the video image, onShowCustomView is
called in WebChromeClient. However, if the a KEYCODE_DPAD_CENTER is
sent to the selected video image, shouldOverrideUrlLoading is called.

Can anyone help how to get this video playing with a
dispatchKeyEvent ?

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] MediaPlayer to play Multicast (igmp) medias?

2011-04-07 Thread zooldk
Hi,

I've been searching for a while for an example of the MediaPlayer, to
play multicast medias, such as live broadcast signals (e.g.
igmp://224.0.18.10:8810), by setting up my own multicast stream in
VLC.

Is it possible through the MediaPlayer, or should I do a
MulticastSocket on my own, join the IP address and pass the file
descriptor to the MediaPlayer?.

Does anyone have examples of that or any experience?

-Cheers!
/Steffen

-- 
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 do I initiate/terminate xml-defined SurfaceView upon a button push?

2011-04-07 Thread Greg
Hello,

I'm trying to initiate an animation to run in a specific xml-defined
view with a button push.  Currently It runs when I push the button but
but the animation uses the entire display, covering all of the other
widgets including the button used to start it.

The info and examples I've found all demmonstrate how to display
animation in the full screen upon startup of the layout activity.  My
goal is to initiate animation in an xml-defined surface view that
resides INSIDE the layout.

On other platforms I would simply create a timer (initiated and/or
terminated by the button push) in the ui thread which does the
animation in slices.  Is there any concept like that in android?

Anyways, in the onClick method I get the surface view  using the id
specified in the xml.  I then create my surface view object and pass
the context of the surface view.  Alas, this doesn't work.

Here's a sub-layout section of my XML code (tabBattle.xml).

LinearLayout
android:orientation=vertical
android:gravity=center
android:layout_width=fill_parent
android:layout_height=fill_parent

SurfaceView
android:id=@+id/battleView
android:layout_weight=70
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_gravity=center_horizontal/

Button
android:onClick=onClick
android:text= Go 
android:gravity=center
android:layout_weight=30
android:layout_width=wrap_content
android:layout_height=wrap_content/

/LinearLayout


Here's my main activity class.  This is created when I navigate to the
tab view where its layout (tabBattle) resides.  The onClick is called
when I push the Go button.  My intention in onClick is to get the
surface view, create a new BattleView instance, and and pass the
surface view context to the BattleView constructor.   This clearly is
not correct but I have no idea how else to accomplish my goal.


public class BattleActivity extends Activity implements
View.OnClickListener
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.tabbattle);
}

@Override
public void onClick(View v)
{
SurfaceView battleSurface =
(SurfaceView)findViewById(R.id.battleView);
setContentView(new BattleView( battleSurface.getContext() ));
}
}

SurfaceView subclass:

public class BattleView extends SurfaceView implements
SurfaceHolder.Callback
{
private int circleRadius;
private Paint circlePaint;
UpdateThreadBattle updateThread;

private int width;
private int height;
private int xPos;
private int yPos;
private int xVel;
private int yVel;

public BattleView(Context context)
{
super(context);
getHolder().addCallback(this);

circleRadius = 10;
circlePaint = new Paint();
circlePaint.setColor(Color.BLUE);

xVel = 2;
yVel = 2;
}

@Override
protected void onDraw(Canvas canvas) {

// you can always experiment by removing this line if you wish!
canvas.drawColor(Color.WHITE);

canvas.drawCircle(xPos, yPos, circleRadius, circlePaint);
}


@Override
public void surfaceCreated(SurfaceHolder holder)
{
Rect surfaceFrame = holder.getSurfaceFrame();
width = surfaceFrame.width();
height = surfaceFrame.height();

xPos = width / 2;
yPos = circleRadius;

updateThread = new UpdateThreadBattle(this);
updateThread.setRunning(true);
updateThread.start();
}

@Override
public void surfaceDestroyed(SurfaceHolder arg0)
{
boolean retry = true;

updateThread.setRunning(false);

while (retry) {
try {
updateThread.join();
retry = false;
} catch (InterruptedException e) {

}
}
}

@Override
public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2,
int arg3) {
// TODO Auto-generated method stub

}

}


I would appreciate ANY help here.  Thanks!

Greg

-- 
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] do not get corrent value from window.innerHeight/innerWidth

2011-04-07 Thread yuuy
hello.

I deveopment web application for android chromelite.
In web page is not set viewport,
I get html's height/width from window.innerHeight/innerWidth all of
the time though pinch in/ pinch out.
I want window size.
is there solution?

-- 
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: Compare MonkeyImage

2011-04-07 Thread Peddi Kanumuri
Bill,

How to build just the monkeyrunner.jar with these changes?
We are in need of loadImageFromFile API.

-Peddi.

On Mar 7, 8:02 pm, Bill Napier nap...@android.com wrote:
 https://review.source.android.com//#change,21478

 https://review.source.android.com//#change,21478Adds support for this
 change.  If you check the android source out and build monkeyrunner from
 that, you should be able to read images from the file system.  It will also
 eventually find its way into an SDK release, but checking it out and
 building it youself is the fastest way to get it.

 Bill

 On Fri, Feb 25, 2011 at 5:52 PM, Andrew W. Hill kj6...@gmail.com wrote:







  I know this is an old thread, but I was wondering if MonkeyRunner has
  the capability to read screenshots from the file system yet.  I
  couldn't find any info on it.
  Cheers,
  Andrew

  On Feb 15, 4:11 pm, Bill Napier nap...@android.com wrote:
   Hi Christopher,

   Being able to load an image into MonkeyRunner from the filesystem
   makes a lot of sense, I don't see how I had missed that.  All the
   test's we've been using MonkeyRunner before only ever wanted to
   compare to subsequent snapshots (to see what has changed).  This looks
   pretty straight forward feature to add, but may take me a couple days
   to get to it.

   Bill

   On Mon, Feb 14, 2011 at 6:14 PM, Christopher M. Judd javaj...@gmail.com
  wrote:

According to the monkeyrunner documentation, you can compare
screenshot output to known screenshot for regression testing. How do
you do this? I see the method sameAs on MonkeyImage but that takes a
MonkeyImage presumably one saved on disk for regression testing but
there appears to be no way to load one from disk.

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

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

-- 
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: what are 9-patch bad patches?

2011-04-07 Thread weasel
Aha, no - I didn't find any links to docs about the program in the Android 
docs, just a reference to the program in the part talking about 9-patch 
images.

It makes sense to warn about artifacting - I presume it refers to how 
stretched images will become blocky if the stretched columns and rows aren't 
the same in the direction of stretch - they'd get all blocky. Maybe I'll 
approach my particular task a different way.

It foxed me that my central two columsn and rows looked identical - I infer 
they're subtly different. If I only choose one row or one column, the 'bad' 
markers vanish: a row or column can hardly fail to match itself!

Cheers,

Tim

-- 
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] Displaying data from database in table format

2011-04-07 Thread hari narayanan
Hi, i am trying to display the data from database in table format, but
it doesnt work. Pls take a look at the code here (I dont want to spam
this thread by posting a 2 page code here ...So, pls take a look at it
here):

http://pastebin.me/24d7e33ce334e56087dcb657081684e9

I will just post the XML part of the code here :

?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

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
TableLayout
android:id=@+id/mytablelayout
android:layout_width=fill_parent
android:layout_height=wrap_content

/TableLayout
/LinearLayout

-- 
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: what are 9-patch bad patches?

2011-04-07 Thread weasel


This is what the 'show bad patches' mode looks like: 

https://lh5.googleusercontent.com/_23u4H0QVvog/TZ4WKD8-XRI/Ax8/4k7DcLa3gVA/patches-bad.jpg

And when it's off:

https://lh4.googleusercontent.com/_23u4H0QVvog/TZ4W2OxZijI/AyA/DbjLnI1jYOs/patches-bad-hidden.jpg
But it's really not clear what it's talking about.

-- 
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 does one post a question here?

2011-04-07 Thread Greg
Hello,

I posted a question almost 24 hours ago and I can find it no where on
this site.  How do people ask questions here?

Did I use too many words?  Was my code too complicated?  What's the
secret?

-- 
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] Is it possible to use DDMS to send mock locations to a physical device?

2011-04-07 Thread KingFish53
I am debugging an application on a Droid 2 physical device. When I
invoke DDMS I can see the physical device. I can see Logcat entries,
threads etc etc., so I know I am communicating with the physical
device. When I look at the emulator control tab to send a location
everything is grayed out (both telephony and location controls)

In the manifest I have the following permissions:

uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_MOCK_LOCATION /

On my Droid 2 physical device under application ---  development   I
have checked:

USB debugging:
Allow mock locations:

 If I use an AVD I have no problems with location control. In field
testing the location listener is processing information properly but I
would like to test more thoroughly with DDMS.

Is there any way to send mock locations to using DDMS?
Thanks in advance 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: eclipse/sdk combo crash

2011-04-07 Thread Dustin Lane
I am having nearly the exact same problem.  If anyone out there has
any insight, it would greatly be appreciated!

Thanks,

On Mar 24, 10:46 pm, Keith Wiley kbwi...@gmail.com wrote:
 If I right-click the res folder of a project, I can create amenu
 folder.  If I right click that folder and try to create amenu.xml
 file,eclipsehangs.  I have to force quit it.  After 
 relaunchingeclipse,menu.xml is there.  I've seen this behavior on two 
 different
 computers now.  If I then try to open the emptymenu.xml to edit it,
 on one computereclipsehangs again, although on the other it opens
 and I can then edit the file.

 I'm runningeclipseHelios and the very latest Android SDK 3.0.  Both
 computers are running Snow Leopard although one is a core 2 duo
 (macbook) and the other is an i7 (macbook pro).

 Anyone else run into 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] Viewing SVG in Honeycomb webview

2011-04-07 Thread Thomas Tobin
Is there some special setting for a webview to allow it contain SVGs
in honeycomb?
We have web content that renders correctly in the web browser but the
SVG area doesn't render in a webview we create inside the app.
Setting min sdk to 11 doesn't seem to make the webview behave like the
browser webview...

-- 
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] Can't add menu.xml in Eclipse

2011-04-07 Thread Dustin
I've recently starting developing with the android sdk. Currently, I
am trying to add code to use a menu in my application, however, when I
try to add a menu.xml under res/menu, Eclipse hangs and freezes every
time. When I reopen Eclipse, menu.xml is there, but every time I try
to open it, Eclipse hangs and freezes again.
I am running on OS X Snow Leopard, Eclipse 3.6.2 and the latest
android sdk and adt plugin.

Any help, insight, thoughts?? I am thoroughly stuck.

Thanks.

Dustin

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


Re: [android-developers] Difference between Android application and Android service

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 7:25 AM, Asym asm@gmail.com wrote:

 Fundamental question, is there any difference in the functionality of a
 service and an application?


Yes. Big difference.


  I know there is minimum user interaction involved with a service but can a
 service also perform read write operations for example to the sdcard?


Yes. It's a Context and can do whatever a Context can do.


 Can a service invoke other services or applications?


Yes.

Sounds like you need to look over the documentation.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Android Build Error for 2.3 version

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 7:20 AM, NARAYANA1 vishnunaraya...@gmail.com wrote:

 I'm facing the following build error.
 All the required tools are installed.
 I'm using ubuntu 10.04


This is the wrong list for this question. Review the the documentation to
find a more appropriate site to post to.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Memory Leaks in application

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 5:16 AM, NURAIZ yousuf_...@yahoo.com wrote:

 Why our native heap size is increased every time we run the application?


Based on the detailed information you provided, I can conclude with
confidence that it's because you're using more memory every time you run the
application.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Displaying data from database in table format

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 4:04 PM, hari narayanan hari.zla...@gmail.comwrote:

 Hi, i am trying to display the data from database in table format, but it
 doesnt work.


You might want to explain what it doesnt work means. It will be slightly
faster than everyone guessing.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] How does one post a question here?

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 8:07 PM, Greg v.greg...@gmail.com wrote:

 How do people ask questions here?


Exactly as you just did.


 Did I use too many words?


Nope.


 Was my code too complicated?


Uh-uh.


 What's the secret?


Patience. Google Groups ain't the fastest sometimes.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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] Problems extending AbsSeekBar, ProgressBar and SeekBar

2011-04-07 Thread Luiz Vitor Martinez Cardoso
Hello,

I'm modifying the SeekBar a little bit but I'm having troubles with
the com.android.internal.R.stylable. In a 2-hour research I found
that the best way to fix it is to do something like the following:


# resources.xml

?xml version=1.0 encoding=utf-8?
resources xmlns:android=http://schemas.android.com/apk/res/android;
declare-styleable name=SeekBar
attr name=android:SeekBar/
/declare-styleable

declare-styleable name=SeekBar_thumb
attr name=android:SeekBar_thumb/
/declare-styleable

declare-styleable name=SeekBar_thumbOffset
attr name=SeekBar_thumbOffset/
/declare-styleable

declare-styleable name=Theme
attr name=android:Theme/
/declare-styleable

declare-styleable name=Theme_disabledAlpha
attr name=android:Theme_disabledAlpha/
/declare-styleable

/resources

But I'm getting the following error messages:

[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:47 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:48 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar, unable to find attribute android:SeekBar
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumb, unable to find attribute android:SeekBar_thumb
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
SeekBar_thumbOffset, unable to find attribute SeekBar_thumbOffset
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable Theme,
unable to find attribute android:Theme
[2011-04-08 01:18:49 - AdBoxApp] ERROR: In declare-styleable
Theme_disabledAlpha, unable to find attribute
android:Theme_disabledAlpha



How can I discovery the correct XML resource path to these names?

Thank you so much!

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


Re: [android-developers] Can't add menu.xml in Eclipse

2011-04-07 Thread TreKing
On Thu, Apr 7, 2011 at 4:54 PM, Dustin r.dustin.l...@gmail.com wrote:

 Any help, insight, thoughts??


Right-click the file. There should be multiple options for how to open the
file. Try each one. See which hoses it. There might be some debug
information in one of the tools windows (Console I think).

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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: Can't add menu.xml in Eclipse

2011-04-07 Thread Chambras
Did you try using Galileo instead?. I am using that one and it works just 
fine and think Google recommends it as well it has better compatibility .

-- 
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   3   >