[android-developers] Re: Tracking memory allocation over time

2011-01-26 Thread William Ferguson

On Jan 27, 10:56 am, fadden  wrote:
>
> With the latest version of DDMS you
> can sort the list in various ways, including allocation order, so you
> can see what happened most/least recently.

Yeah, I ssaw that and it has helped somewhat.


> There is currently no way to increase the limit beyond 512, other than
> changing a constant in Dalvik and rebuilding the VM (see dalvik/vm/
> AllocTracker.c, kNumAllocRecords).

Bummer ..

> > I'm pretty certain I know where at least one main offender lies, but
> > I'd really like some emprical evidence that I'm hitting the right
> > target before I clean it up.
>
> If it's one of your classes, there are various ways to instrument the
> constructor so you can watch the allocations.

There's the rub. It's not one of mine.
I guess I'll just stamp on what I'm sure is the culprit and see if
that's it through oblique means.

Thanks for the 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: Regarding to Live Wallpaper

2011-01-26 Thread Shai
You don't need a live wallpaper for what you just described.

WallpaperManager.setResource()


On Jan 25, 10:39 am, android person  wrote:
> I am doing live wallpaper project.
> I want to set the wallpaper images from my resource folder. I don't
> know how can i set the image on the android wallpaper.
>
> If anyone know then inform the solution for that problem.
>
> Thanking 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] How many ways to find out..?

2011-01-26 Thread Abhilash baddam
Hi,

In how many ways we can find the current location of the user. Can we
find the current location without using GPS.
Can anyone help me out.

-- 
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] Why cant I install an apk from asset folder

2011-01-26 Thread Titus
Hello,

I have an X.apk which contains another Y.apk within is asset folder.
While X activity is trying to install the Y.apk android shows a
parsing error while installation. The Error message shown on the UI is
"There is a problem in parsing the package", while the adb logs shows
"WARN/PackageInstaller(270): Parse error when parsing manifest.
Discontinuing installation". The same Y.apk if i put in another
location (data/data/Y.apk) i can install fine from X.apk.

Is there a reason why Y.apk can't be put in asset folder ? or is there
a neater way to do this ?

thanks for your inputs,

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

2011-01-26 Thread Sarwar Erfan
What do you mean by "international SMS"? Please explain.


If you mean sending SMS to some other country, then there is no difference 
with sending SMS inside the country. 
You just specify the number in full format, i.e  +[Country code][Area 
code][Phone number]. You can also use 00 instead of +

But, it is upto your phone operator whether the SMS can be delivered or not. 
Not all operators can send SMS to all foreign operators.
But, if you can send SMS normally from Phone's sms option to that number, 
you can send from your application also.

Regards
Sarwar Erfan

-- 
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 set width and height of a View in DP through code not in XML ?

2011-01-26 Thread Xu Jiyong
http://developer.android.com/guide/practices/screens_support.html

search 'Converting dp units to pixel units' on above page.


On Thu, Jan 27, 2011 at 1:47 PM, Mansoor  wrote:

> hi ,
> i am creating a Image view  through code dynamically based on certain
> condition as below:
>
> ImageView t = new ImageView(mContext);
> t.setLayoutParams(new LinearLayout.LayoutParams(390,
>300));
> the width and height is in PX i.e 390 PX and 300 PX
>
> but i want to know how to set width and height in dp instead of px
> programmatically . In xml we can do but i have no idea how to do it in
> code
> please help me .
>
> Thanks
> Mansoor V.M
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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: Notepad Sample - adding more columns to listview

2011-01-26 Thread Hein
I thought one could not do a row click on a table, so I assumed
otherwise. Pity. Thanks again.

On Jan 26, 1:50 pm, Kostya Vasilyev  wrote:
> The popup in Iridium Flares looks like a TableLayout:
>
> http://developer.android.com/reference/android/widget/TableLayout.html
>
> TableLayout doesn't recycle views like ListView, and so isn't really
> suited for long scrollable lists, but it's just fine for presenting
> compact data (also useful for lining up controls within a 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] Re: Preferences screen won't rotate

2011-01-26 Thread Rahul Garg
try to include android:screenOrientation="sensor" in  Tag in your 
application's Manifest file. 

-- 
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: App can not start after I change the package name !!

2011-01-26 Thread Rahul Garg
It will be helpful, if you can also mention the exception thrown with this 
error. 

And in general what you can do is create a new project and copy all files in 
it.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] All Courses in SAP,Data warehousing,Testing,Microsoft,Oracle,Java,SAS Online Training In India,US,CAnada

2011-01-26 Thread big class
Model Article 1
Dear Friends,
We are happy to introduce ourselves BigClasses.com, offering Placement
Oriented Training in ALL areas of Data Warehousing, SAP, Java, .Net ,
and QA Testing by Real time and certified Professionals.
We offer Interactive Online Training (Live Server from US)
Data Warehousing  Courses @ BigClasses.com:
Informatica
Cognos
OBIEE
Data Stage
MS BI
BO XI
SAP BW BI
Micro Strategy
Tera Data

Other Courses @ BigClasses.com
SAS, SAS Project, QA Testing, QTP In-depth, JAVA, J2EE, .net, Oracle,
Features:
• Limited no.of students per batch
• Easy and convenient learning
• Lab access available even after the course completion
• Help on Resume preparations
• Placement Assistance for Proven candidates
• Excellent Material Downloads with FAQS
• Lab Exercises and Solutions for the chosen Subject
• Weekday and weekend batches available
• Demo on Live Servers

Model Articles2 :
Welcome to BigClasses.com, your gateway to personalized learning and a
jumpstart to a promising career in IT. We congratulate you for coming
here and taking the first step towards acquiring critical IT/
programming skills that will help you in your job search, advance your
career, and put you in the driver's seat on the road to a successful
and personally rewarding career.

Our students are discerning students and industry professionals who
have made a conscious choice to:
•   Go the extra mile to put their careers on the fast track to success.
•   Acquire the right technical skills to confidently launch their job
searches.
•   Build strong foundations that will open the doors to fulfilling
careers in progressive, high growth startups.
•   Dream Big, and play a key role in managing and operating the
technology strategy of complex enterprises across the world.
•
What makes us the right choice to help build your dreams?

The bigclases.com offering exclusive interactive classes, using Web
Conferencing technology.

Highlights
   Economical and Affordable courses.
   Choose your convenient time.
   Learn right from your place.
   Get professionally trained.
   Get the certification guidance.
   Interview and placement assistance.
If you have the drive and the determination to rise above the crowd
and be a trailblazer, then bigclasses.com is the place for you.

Welcome to a great journey and a most rewarding learning experience!

Data warehousing courses:
Informatica, Cognos, DataStage, OBIEE, Microstrategy, MS BI, BO XI, BO
DI, TeraData, SAP BW BI

SAP Courses:
ABAP/CA, FI CO, BO BW BI

Microsoft Technologies Courses:
.Net Technologies, Sharepoint 2010, MS BI

Oracle Courses:
Oracle 11g, Oracle DBA,RAC, Oracle Apps
OTHER DATA WAREHOUSING TOOLS OFFERED:
Reporting Tools: Business Objects, OBIEE, MicroStrategy, Hyperion.
ETL Tools : Informatica, Data Stage, BODI, Abinitio.
Other Tools   : MS BI, TeraData, SAS.

OTHER TRAININGS OFFERED:
* SAP
* Microsoft Technologies
* Java
* Testing Tools

Model Articles 3
BigClasses.com focuses on innovative, results-oriented solutions with
a singular, over-riding purpose: to improve student learning. We are
pioneers in providing premier, Web-enhanced instruction through
innovative and relevant solutions.
We believe in structuring our Web-enhanced solutions on the most
forward-thinking research into how children learn with technology:
•   We always incorporate multisensory experiences to create richer,
more complete learning.
•   We understand the place of game-based learning, fun and play to make
learning more effective and engaging for today's tech-savvy students.
•   We always provide opportunities for students to model the new skills
they are gaining, creating stronger connections to their learning.
Our Services:
Online IT Training
Corporate Training
Project Support
Staffing Solutions

Microsoft Technologies Courses:
.Net Technologies, Sharepoint 2010, MS BI

Oracle Courses:
Oracle 11g, Oracle DBA,RAC, Oracle Apps

Data warehousing courses:
Informatica, Cognos, DataStage, OBIEE, Microstrategy, MS BI, BO XI, BO
DI, TeraData, SAP BW BI

SAP Courses:
ABAP/CA, FI CO, BO BW BI

OTHER DATA WAREHOUSING TOOLS OFFERED:
Reporting Tools: Business Objects, OBIEE, MicroStrategy, Hyperion.
ETL Tools : Informatica, Data Stage, BODI, Abinitio.
Other Tools   : MS BI, TeraData, SAS.

OTHER TRAININGS OFFERED:
* SAP
* Microsoft Technologies
* Java
* Testing Tools

Model Articles 4
BigClasses.com is established with the motto of providing interactive
learning of essential IT related business courses viz., Data
Warehousing, Oracle, SAP, QA, .Net, Java etc to anyone, at any time
and at any place and provides an easy, convenient and effective
solution.

BigClasses.com is managed by real time IT Professionals. Every Mentor
is an exper

Re: [android-developers] Renderscript documentation

2011-01-26 Thread Romain Guy
More detailed documentation will come :)

RenderScript is more than just a drawing API, it's also a programming
language, compiled on the device (and partly on the host with LLVM.)
RenderScript was designed for high performance. For instance, all the
allocations happen outside of the scripts, which allows the system to run
your scripts on multiple cores (CPU or GPU.)

On Wed, Jan 26, 2011 at 9:54 PM, Peter Eastman wrote:

> Is there any documentation available for Renderscript?  I downloaded
> the SDK docs, but aside from the Javadocs (which aren't very
> enlightening), it doesn't seem to be mentioned at all.  What are the
> capabilities of Renderscript?  When would it make sense to use it
> instead of OpenGL?
>
> Peter
>
> --
> 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
>



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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Renderscript documentation

2011-01-26 Thread Peter Eastman
Is there any documentation available for Renderscript?  I downloaded
the SDK docs, but aside from the Javadocs (which aren't very
enlightening), it doesn't seem to be mentioned at all.  What are the
capabilities of Renderscript?  When would it make sense to use it
instead of OpenGL?

Peter

-- 
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 set width and height of a View in DP through code not in XML ?

2011-01-26 Thread Mansoor
hi ,
i am creating a Image view  through code dynamically based on certain
condition as below:

ImageView t = new ImageView(mContext);
t.setLayoutParams(new LinearLayout.LayoutParams(390,
300));
the width and height is in PX i.e 390 PX and 300 PX

but i want to know how to set width and height in dp instead of px
programmatically . In xml we can do but i have no idea how to do it in
code
please help me .

Thanks
Mansoor V.M

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to test SIP Demo in emulator.

2011-01-26 Thread Seung Yong Lee
Hi, This is jimmy.
I'm going  to test SIP demo in emulator, but I could not test it using
mic on laptop.

How should I test ? Anyone who has a good idea or info?

plz, help me the best way.

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] Control rotation of a 3D object using the touchscreen

2011-01-26 Thread Mac
Hello all, I'm a 4th year computer engineering student and have some
experience with Android dev.

I am working on an application that has a 3D component to it which
requires me to be able to rotate it around. I was looking at the
example at the android resources site.

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html

This example does not talk about rotation around the z-axis. I have
already tried using Quaternion for the rotations but I don't
understand how to get rotations around the z-axis

I was wondering if anyone can help me with learning how to just be
able to rotate around an object. like the example above but also
around the z-axis. I have already spend about 24 hours searching and
trying to figure this out.

The bigger issue is that once you rotate 90 degrees around the y-axis
how can you detect that the next rotation (going vertically on the
touchscreen) should be around the z-axis.

Thank you in advance.
Mac

-- 
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] Question Regarding an App

2011-01-26 Thread ThinkingDroid
We have an app that we want to develope, but want to make sure it's OK
firstI DO NOT want to post publically for obvious reasons.how
do I find this out??

-- 
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] Permission Denied exception on SD Card Write - Manifest has the permission

2011-01-26 Thread nathan forbes
On Jan 26, 2011 9:06 PM, "RS"  wrote:
>
> Hello ..
> I am writing a file to the SD card but getting
>
> INFO/SdCardManager(24132):
> Failed to create the temp file..java.io.FileNotFoundException: /mnt/
> sdcard/jest/t.txt (Permission denied)
>
> In the manifest I have the following:
> android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
>
>
> Totally lost - how can I resolve this issue? I need direction :(
>
> 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

Is your SD card mounted?

-- 
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 would you go about import an image from the users gallery and use it as a resource?

2011-01-26 Thread Travis Cornelius
I'm working on an app, and I would like to have the user be able to
use one of their pictures as a resource file for the app.  ex. one
activity would allow the user to select their picture, then click a
button and it opens a new activity that would have their select
picture as a background image for the activity.  There more to the
app, but this is the part I am stuck on.  Any help would be great.
PS. I have done a ton of those gallery tutorials where you can scroll
through pictures and select one and the picture goes full screen.
That is not what  I'm looking for, because those tutorials use images
that are stored in the /drawable folder, I want the user to be able to
select from the pictures they already.


A big THANKS to any help or points in the right direction.

-- 
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] Views with the same dip width number have different widths in appearance on device

2011-01-26 Thread Michael Smith
I have a horizontal linear layout separated with lines like the following:

 *   *

In the layout editor, the lines have the same width, however, on the device
they do not - the second line in the layout below is slightly wider than the
other two. I'm wondering if there is an explanation for this or a way around
it.

Here is what the layout looks like:


http://schemas.android.com/apk/res/android";
  android:background="@drawable/customized_title_bar_button"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent"
  android:orientation="horizontal"
>
  
  
**

 *   *

 *   *

  


Thanks,

Mike

-- 
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 create contact list view plug-in?

2011-01-26 Thread Xi Shen
Hi,

This is the function I want to implement:

>From the contact list view, when you click on the contact's image, a
small panel will fly in with buttons. I want to add a button to that
panel and also get the contact's information when my button is
clicked.

Is it possible? What API/topic should I look for?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/

-- 
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] Views with the same dip width number have different widths in appearance on device

2011-01-26 Thread Michael Smith
I have a horizontal linear layout separated with lines like the
following:



In the layout editor, the lines have the same width, however, on the
device they do not - the second line in the layout below is slightly
wider than the other two. I'm wondering if there is an explanation for
this or a way around it.

Here is what the layout looks like:


http://schemas.android.com/apk/res/
android"
  android:background="@drawable/customized_title_bar_button"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent"
  android:orientation="horizontal"
>
  
  






  


Thanks,

Mike

-- 
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 and 2.3 Emulator

2011-01-26 Thread outofcoffee
Broken for me on 2.3 - same code works on 2.2.

Also see 
http://code.google.com/p/marketlicensing/issues/detail?id=27&q=could%20not%20bind%20to%20service

On Dec 16 2010, 7:41 pm, jtoolsdev  wrote:
> Anybody think Google may have "rushed" the Gingerbread release?
>
> On Dec 16, 7:19 am, CedarF  wrote:
>
>
>
>
>
>
>
> > Does not work for me too, starting or not from eclipse avd
>
> > On 8 déc, 03:58, Nick  wrote:
>
> > > I haveLVLworking with my app and am able to test it with the 2.2
> > > Google API emulator. I updated to2.3and created a2.3Google API
> > > emulator. I signed in with you dev account on the emulator just like
> > > before, but now I am getting:
>
> > > 12-07 21:42:57.879: INFO/LicenseChecker(760): Binding to licensing
> > > service.
> > > 12-07 21:42:57.899: WARN/ActivityManager(61): Unable to start service
> > > Intent { act=com.android.vending.licensing.ILicensingService }: not
> > > found
> > > 12-07 21:42:57.899: ERROR/LicenseChecker(760): Could not bind to
> > > service.
>
> > > I haven't changed anything in the code and it still works on 2.2. I
> > > have read the2.3release docs and haven't found any documented
> > > changes toLVL? Obviously I don't have a real phone with2.3to test
> > > on :)
>
> > > Does2.3w/ Google API SDK supportLVL?
> > > Any ideas?
>
> > > Thanks,
> > > Nick

-- 
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 error( 1,-2147483648)

2011-01-26 Thread milos.pesic
Hi everyone,

I'm getting an error(what 1, extra -2147483648) when trying to play
audio from raw resource.
Anyone knows what this error means?

It's happening in 2.2.

-- 
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] Music / Soundtrack composer available for interesting projects - perhaps even free.

2011-01-26 Thread reuben cornell
Hey all Android devs,

A quick heads-up that I am currently seeking new projects -
particularly Android games. After doing library and short film music
for a while I have started working on game projects. My music is
mostly orchestral but I am very flexible (as can see form my demo
pieces). Feel free to contact me with any treatments – as I am looking
to expand my portfolio I will consider interesting project work for
FREE!

Reuben Cornell

http://www.reubencornell.co.uk/music-1/misc
http://soundcloud.com/ruby-tuesday

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

2011-01-26 Thread ob1
It seems your question is answered.
I've just downloaded the Honeycomb SDK.

As with other emulator images, it seems to need restarting a few times
before you get the "3G" network connectivity.

On Jan 17, 5:40 pm, Spiral123  wrote:
> Hi there...
>
> a quick request/plea to any Google employees that happen to be lurking
> around the group at the moment.
>
> Many of us here will have seen the CES preview video ofHoneycomband
> probably like myself are super excited about the possibilities for a
> future Android tablet version of our own apps.  Judging by the apps
> already delivered inHoneycombversions (at least GMail and Books by
> my reckoning) the SDK is probably reasonably stable.
>
> Is there any chance that a Beta version of the SDK could be released
> so that we have the chance to play with it?  If not a Beta SDK, how
> about access to the Beta Documentation?  It would be incredibly
> helpful to us ordinary developers to have at least some idea about the
> design opportunities that are ahead of us.  I'm sure Google want to
> encourage us all to enhance our apps to take advantage of all the cool
> new stuff that is coming inHoneycombrather than just do the minimum
> required to port to the new version.
>
> So, how about it?  Any chance of some advocacy with the Higher Ups on
> behalf of us little guys?
>
> Thanks.
>
> Nick

-- 
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: 2.3 LVL in Google API Package?

2011-01-26 Thread outofcoffee
Broken for me on 2.3 - same code works on 2.2.

Also see 
http://code.google.com/p/marketlicensing/issues/detail?id=27&q=could%20not%20bind%20to%20service


On Dec 8 2010, 7:24 pm, Nick  wrote:
> Hunter,
>
> I'm having the same 
> problems:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Nobody has responded and I haven't found a solution yet. Let us know
> if you figure anything out...
>
> Nick
>
> On Dec 7, 5:58 pm, HunterO  wrote:
>
>
>
>
>
>
>
> > When using the "Google APIs by Google Inc., Android API 9, revision 1"
> > in the emulator, my licensing is failing.  It works on API 8 (2.2).
>
> > Anyone else seeing this issue?
> > WasLVLincluded in this revision so we can test, or must we stick
> > with 2.2 for Licensing testing?
>
> > -Hunter

-- 
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 get noticed when the My Location setting location service is enabled or disabled by user

2011-01-26 Thread hongjie
I have a Location service that runs in the background as long as the
the device is booted. I requested the network and gps provider update
by calling LocationManager requestLocationUpdate method, however, when
the My Location setting page is changed by enabling or disabling the
location service, the onProviderEnabled or on ProviderDisabled are
never called. So I want to know how could my background service got
notified everytime the user changes  the location setting? Can I do it
in a receiver mode which caches the broadcast message ?

-- 
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] Honeycomb browser broken?

2011-01-26 Thread James Pearce
Is it a known issue that the browser can barely render a page before
it crashes? (e.g. http://google.com)

I can load a very small page (e.g. http://metajam.mobi) but then not
follow any links.

On any other page, the last I ever see is something like http://cl.ly/4EHe
followed by a brief message about the activity browser not responding,
followed by the home screen again.

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

2011-01-26 Thread Michael
Hi,

I've tested my app on two real devices (HTC Evo and Motorola Droid)
and the emulator and it works fine. However, some customers haven't
been able to properly open the app (Samsung Moment is one affected
device). I do not have any icons in the folders other than the
drawable-hdpi, so I'm wondering if thats the problem (with icons
displaying on lower resolutions etc). I've attached the manifest file.
Any help would be much appreciated!


http://schemas.android.com/apk/res/android";
  package="a.b.c"
  android:versionCode="1"
  android:versionName="1.0">






















-- 
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] Live folder firing custom intents

2011-01-26 Thread tubfish
I have created a Live Folder which should fire a custom intent when an
item is clicked.  The custom intent should be picked up by a Broadcast
receiver which is defined in my androidmanifest.xml file.

The custom intent is created and passed to the live folder using a
matrix cursor.

However when the intent is fired, it appears to be contained as data
within another intent (android.action.VIEW) and a toast displays the
message "application is not installed on your phone".

intent created:
MatrixCursor c;
String[] columnHeadings =
{LiveFolders._ID,LiveFolders.NAME,LiveFolders.DESCRIPTION,LiveFolders.INTENT};
c = new MatrixCursor(columnHeadings);

for(int i=0; ihttp://groups.google.com/group/android-developers?hl=en


[android-developers] Enabling of the two other modes for NFC in current Android OS Gingerbread

2011-01-26 Thread muasif80
I will like to hear from anyone who is working on this aspect.
Actually I want the two other modes for my intended work and if there
are people who are working on these two other modes enabling then I am
very keen to collaborate with them.

Regards,
Asif

-- 
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 a j2se applet on android?

2011-01-26 Thread giangiammy
Dear all,

I'm evaluating Android as a platform to run automation control
interfaces.
The client needs to use http://www.isagraf.com/index.htm which
produces a J2SE java applet,
(i have just the resulting jar, not the source code) which should run
on Android.

Looking around, I found http://www.microemu.org/ which builds a
wrapper around the jar of
a J2ME application, building an APK file to be run on android.

Is there anything similar to have a wrapper to run J2se java applets
on Android?
Is there any implementation of VM running on android, j2se compliant?

thanks
giammy

-- 
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 access the "Product Key" on Archos tablets?

2011-01-26 Thread Armond Avanes
Hi Folks,

I need to access the product key (or whatever unique device ID) of the
Archos devices. I've found the following API mentioned on Archos website
which should work on Archos5 series:
Settings.System.getString(getContentResolver(), "archos.product_key");

But it does not work on 101 tablets (returning NULL). Any clue?

Further Note: It seems that "Telephony.getDeviceId()" always returns NULL on
all Archos devices.

Thank you,
Armond

-- 
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] Problem with a remote service

2011-01-26 Thread Pablo.mj
Hi everyone,
I tried again and again to put on a remote service by means of an AIDL
interface and I need some help.
On the one hand, I have a project in which I specified the AIDL
interface in a myFile.aidl file that generated an myFile.java. In
addition, I implemented a Service in which a implement the method of
the interface.


private final IAdditionService.Stub myBinder=new
IAdditionService.Stub()
   {
  //Implementation of the add() method
  public int add(int value1, int value2) throws RemoteException
  {
   Log.d(TAG, String.format("AdditionService.add(%d,
%d)",value1, value2));
   return value1 + value2;
   }
};


All of these files (.aidl and his generated java file, and the
service) are inside a package called com.package1


Now, I want to use this service in another project. So, I have an
activity in a package called com.package2.
In this activity, I want to do a bindService or an startService for
example, and the question is:
What I need to include in this second project?
I need import the package1?
I need to create a package called also com.package1 and to put inside
a java interface?
I need to create a package called also com.package1 and to put inside
the aidl file?
Maybe some extra information in the manifest?
I've read several links but I don't found the solution and I'm so
saturaded at this moment? Some advice?
A lot of thanks,
Pablo.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to invert colors within a region of a bitmap

2011-01-26 Thread sotcha
If you want to invert colors you have to use this table : 

float mx [] = {
 -1.0f,  0.0f,  0.0f,  1.0f,  0.0f,
 0.0f,  -1.0f,  0.0f,  1.0f,  0.0f,
 0.0f,  0.0f,  -1.0f,  1.0f,  0.0f,
 1.0f,  1.0f,  1.0f,  1.0f,  0.0f 
};

-- 
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] openFileOutput, FileNotFoundException

2011-01-26 Thread Michael
Hi!
I've read most available post for this exception with openFileOutput,
and it seem to be a common issue. Though, i can't find a solution.
This code throughs a FileNotFoundException on the row "fos =
openFileOutput(fil, Context.MODE_PRIVATE);". Why? I can't figure it
out. Thanks!


import java.io.FileOutputStream;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
public class firstActivity extends Activity {
public firstActivity(){
}
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maininterface);


String fil = "test2";
String string = "exempeltext";

FileOutputStream fos;

fos = openFileOutput(fil, Context.MODE_PRIVATE);

fos.write(string.getBytes());
fos.close();
}
}

-- 
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: Media player problems with android 2.3 (gingerbread), I can't open a service connection....

2011-01-26 Thread Johny_G
Reading track info is easy, you can register to receive service's
broadcasts (see i.e. Last.fm source code for reference), but
controlink is PITA. Is there any way to control Gingerbread player? Is
it possible to emulate headset buttons? Because I didn't succeeded.

On 19 led, 17:37, Cleverson  wrote:
> Hi Android Team!
>
> Same problem here. I need to identify which music is currently
> playing. I was using the MediaPlaybackService up to Froyo (I know, I
> couldn't be doing that..) and now my app doesn't work on Gingerbread.
> Any suggestions?
>
> Thanks!
>
> On 7 jan, 16:22, Dennix  wrote:
>
>
>
>
>
>
>
> > I'm also facing this problem. I created a costumized music widget and
> > I use that service to control music and get track infos.
> > It works fine on 2.1 and 2.2, but on 2.3 I can't bind to that service
> > because it's not exported
>
> > Looking manifest file in souce code I found:
>
> > --
> > Froyo
> > :
> >  >             android:exported="true" />
> > :
> > --
> > Gingerbread
> > :
> >  >             android:exported="false" />
> > :
> > --
>
> > So, android team, is it possible use that service?
> > I wouldn't like to create another playback service to my widget.
>
> > //Dennis
>
> > On 21 dez 2010, 06:38, Jaumard  wrote:
>
> > > There is no way to do this in gingerbread?
>
> > > On 20 déc, 21:51, Mark Murphy  wrote:
>
> > > > Please understand that this is not part of the Android SDK. According
> > > > to the source code, it is not exported, and therefore is not available
> > > > outside of its process.
>
> > > > On Mon, Dec 20, 2010 at 3:43 PM, neuromit  
> > > > wrote:
> > > > > I'm trying to setup a service connection to control the stock android
> > > > > media player. This works great under 2.1 and 2.2. However, when I
> > > > > tried to run my application on the 2.3 emulator my application crashes
> > > > > and I get the following error:
>
> > > > > ERROR/AndroidRuntime(466): Caused by: java.lang.SecurityException: Not
> > > > > allowed to bind to service Intent
> > > > > {cmp=com.android.music/.MediaPlaybackService }
>
> > > > > Have the permissions to bind to the IMediaServiceConnetion been
> > > > > revoked for gingerbread?
>
> > > > > Here is the code I'm running from my class that is a child of
> > > > > ServiceConnection
>
> > > > > Intent i = new Intent();
> > > > > i.setClassName("com.android.music",
> > > > > "com.android.music.MediaPlaybackService");
> > > > > a.bindService(i, (ServiceConnection) this, 0);
>
> > > > > --
> > > > > 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
>
> > > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
> > > > 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


[android-developers] Accessing starred places in google maps account

2011-01-26 Thread Brian
Can someone point me in the right direction on going about accessing
the list of starred places in a user's google maps that is linked to
their account? For instance if you log in, on a PC or your phone, you
can browse places and star them. The PC and phone will sync the
starred places so you can see them on either location.

I need a way to get access to this list for my app. I need to be able
to retrive the list and/or even add to it. I've been searching and can
not find any reference and need some guidance.
Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Launching an application from a email. Is that possible?

2011-01-26 Thread mbuchanan
I'm also having no luck with intent URIs.  It would be very helpful if
someone could post an example href that launched some common app, e.g.
calculator.  It seems to me it should be something like
Intent
url
but that doesn't work.  I've tried a lot of variations on it, and so
far they all either get a 404 from the browser or crash the browser.

On Jan 9, 6:55 pm, sdphil  wrote:
> interesting.  so I made that call got the string back, and plugged
> that string into
>
> here --
>
> Test Link
>
> and it still tried to browse to that page within the browser...
>
> On Jan 8, 12:21 pm, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > There is no need to play tricks with schemes andintentfilters matching
> > hosts and paths and such.  Just use thisIntent.toUri() method to turn the
> > actualIntentyou want (such as one with a custom action of yours and the
> > package set to your app's package name) into a URI you can use else where
> > such as in a web page:
>
> >http://developer.android.com/reference/android/content/Intent.html#to...)
> > 
>
> > On Sat, Jan 8, 2011 at 8:00 AM, sdphil  wrote:
> > > okay, yeah, doesn't work --
>
> > >            
> > >                
> > >                 > > android:name="android.intent.category.DEFAULT"/>
> > >                 > > android:name="android.intent.category.BROWSABLE"/>
> > >                
> > >                
> > >                
> > >                
> > >            
>
> > > And my html looks like this:
>
> > >        http://www.mycompany.com/subpath?arg=1";
> > > mimetype="mycompany/test">Test Link
>
> > > When I click on that link in the phone's browser, it tries to navigate
> > > to a page within the browser instead of launching my app...  And in
> > > the logcat window, I can see theintent, and everything looks fine
> > > except for the component: cmp=com.android.browser/.BrowserActivity
>
> > > On Jan 8, 7:12 am, sdphil  wrote:
> > > > okay, i finally got this to work, but it will only work if i use a
> > > > unique scheme.  if I try to do it without a standard http scheme, then
> > > > i can't get it to work -- even if I specify mimeType.
>
> > > > On Jan 7, 8:01 am, Kumar Bibek  wrote:
>
> > > > > I think yes.
>
> > > > >http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broad.
> > > ..
>
> > > > > But if it will work on the gmail app, or any other app is a question
> > > that I
> > > > > am not sure of (but most probably you should be able to do this).
>
> > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
>
> > > > > On Fri, Jan 7, 2011 at 9:19 PM, Parag  wrote:
> > > > > > Hi All,
>
> > > > > > I am looking for a way to launch an application from a link sent in
> > > an
> > > > > > email? Is that possible? The application i am developing is 
> > > > > > basically
> > > > > > a work order application which is installed on the device. If a new
> > > > > > work order comes an email will be sent to the registered email
> > > address
> > > > > > and that email will havea link to launch the application.
>
> > > > > > Let me know your views.
>
> > > > > > Thanks,
> > > > > > Parag
>
> > > > > > --
> > > > > > 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 > > > > >  cr...@googlegroups.com>
> > >  > >  nsubscr...@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 > >  cr...@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] Providing 2 differing interfaces to a remoteService

2011-01-26 Thread Dale Harvey
I have an application that provides a remoteService that is defined
through an .aidl generated interface, this all works great, completely
seperate applications just need to bundle the .aidl and they can
control the service in a specific way

However I want the sevice to provide an extra API when it is bound to
the application that it ships with, which is an administrative
interface.

The administrative interface still needs to perform the usual
bidirectional communication that remoteService lets me use but with
additional calls in the api that arent provided to other packages

Since the service and activity that starts it are in the same package
I have tried various setups of singletons and static interfaces to no
avail (there is state involved so a pure static interface isnt enough)
however none of these have worked, I can get round it with various
nasty ways through Application variables / talk through the filesystem
however I was wondering if it was possible in a cleaner way.

Thanks
Dale Harvey

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

2011-01-26 Thread sangram pawar
Hi,friends
 I have one problem to send international sms anyone explain me
international sms format .

-- 
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: Notepad Sample - adding more columns to listview

2011-01-26 Thread fatima mansuri
please don't send message me

-- 
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] Local Developers Work Group

2011-01-26 Thread Felix Adams
To : Android developers

If anyone in the Tallahassee, Florida area is interested in meeting
once a month as a group at a local eating establishment to discuss,
already developed app, soon to be developed app, or pitfalls in app
development. Please feel free to email me. I will try to organize a
time and place here in Tallahassee if enough interest is shown.

Felix Adams
isid.d...@gmail.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] App can not start after I change the package name !!

2011-01-26 Thread Jar
Hi, everyone, I have to change a app's package name for different
market.

But after I changed the app's package name, when I start the app, it
shows this message:

"The Application(process com.AAA.BBB) has stopped unexpectedly, Please
try again."

The original packname is COM.AAA. I have changed all the package name
within the java files and there is no error in the java files.

The way I used is :

1. To modify the package name in the AndroidManifest.xml.
2. To change the folder name of src/com.AAA to src/com.AAA.BBB

So How can I solve this problem ... thank you all 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


[android-developers] How to change the background color of ToggleButton?

2011-01-26 Thread Eric Chow
Hello,

How can I change the background color of a ToggleButton?

-- 
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: Get reference to "parent" window from TabHost Activity

2011-01-26 Thread Angelos Katharopoulos
Although old thread I am replying because it pops up on google search.

>From inside the child activity.

parent = (ParentActivity) *this*.getParent();

-- 
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] Bring application on top

2011-01-26 Thread Zakaria Elfassi
Hi,
I'd like to know how to bring a running app on the foreground (as in the *Task 
Killer*, *switch to*).
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] Smooth animation and GC

2011-01-26 Thread Odd
Hi,



I am fairly new as an android programmer (although I have many years
experience in C++).  I have a question regarding the smooth animation
of objects when drawing on a canvas using SurfaceView using a separate
rendering thread.

For the sake of discussion, let's say I have a ShapeDrawable 'sd' that
I want to move smoothly across the screen.  My first attempt at this
was to decide its position using the sd.setBounds(int, int, int, int)
and then call sd.draw(Canvas).  This works fine, and I get an
excellent framerate (~60FPS), but movement is still a bit jerky due to
the fact that setBounds() does not take floating point values
(resulting in the smallest possible move being at least one whole
pixel.

My next attempt was to shift the canvas itself rather than calling
sd.SetBounds(), using a transformation matrix.  This can be done with
floating point values, and the animation becomes visibly smoother, but
now I have another problem: garbage collection.

It seems as if, when I use a matrix to shift the canvas, there is some
memory allocation going on behind the scenes.  It does not seem to
matter whether I use the matrix that comes with the canvas or if I
supply my own preallocated one - as soon as I am changing the matrix
content, logcat shows me that the garbage collector becomes active
every 250 frame or so.  This does not happen when I use the
setBounds() approach - only when I use the matrix approach.

Each time the garbage collector kicks in, there's an annoying drop in
framerate.  I have not figured out a way to avoid this.

My question is therefore threefold:
1) Is there a way to place a ShapeDrawable (or any other Drawable) on
the canvas, using sub-pixel precision?
2) Is there a way to handle matrix transformations where you have
control of the allocation/deallocation of memory? (so that you can
prevent the garbage collector from regularly kicking in).
3) If the answer is 'no' to both above, is there another/better way to
obtain smooth sprite animation?

Thanks,
Odd

-- 
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] Battery usage indicator

2011-01-26 Thread Dillon Yang
Are their currently any API's that can allow developers to track what
applications are using the battery?

Like if I am writing an application, I want to know how much battery
my application is consuming in a period of time, how do I accomplish
this?

I've searched the API but it only has the batteryMonitor which does
not provide the identity of application that uses battery.

-- 
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: a redundant UI syntax ?

2011-01-26 Thread Hari Edo


This is pretty common with XML systems with a lot of tags, especially
if they're meant to be expanded or mashed up.

If you create your own View types, you can extend the XML DTD to
include
your namespace.  Third-party libraries can add all of their features
with their own namespace.  It's the combination of these namespaces
and
DTD rules that allow the XML scanning process to find errors or
mistyped
parameter names.  No namespace, weaker protection from errors.

You might see the official reply in this bug tracker entry:
  http://code.google.com/p/android/issues/detail?id=7123

On Jan 24, 9:31 pm, Naren  wrote:
> Hi,
> I am a beginner to android development and wanted to ask a question to
> the developer community.
>
> What is the significance of specifying "android:" in front of every
> attribute.?
>
> be it view or layout, I know that I am already in android, then I feel
> its kind of redundant to prefix an attribute with android colon.
>
>  android:layout_width="wrap_content"
>                 android:layout_height="wrap_content" android:text="Master of
> Computer Applications">
> 
>
> Cant this be expressed as follows?
>
>                  layout_height="wrap_content" text="Master of Computer 
> Applications">
> 
>
> However the one reason that I can think of is specifying the package
> name (android:) as a prefix to resource will help to retrieve the
> resource easilly. But still, this need not be prefixed in every
> attribute. This should have been able to be specified in only one
> header or similar at the top.
>
> I think this might help in bringing down the code size and also for a
> quicker parsing.
>
> Let me know if I am missing something.
>
> Thank you
>
> Further,
> the attributes itself also can be very well shortened.
> ex:width as "w" height as "h" and layout_width as "lw" and
> layout_height as "lh"
>
> Thank you,
> Naren P

-- 
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] seeing GENERIC_FAILURE in logs of network selection

2011-01-26 Thread Bryan Clark
Hi -

I'm trying to debug why my phone doesn't seem to like connecting to
roaming networks and I'm hoping someone can help me make a little more
sense of the radio debug logs I'm seeing.

I'm running a Nexus One with Android 2.2.2.  I have a Canadian service
provider, WIND Mobile, and when I travel to the states I roam on the T-
Mobile network.  If I drive to the states I can roam on T-Mobile for a
certain amount of time however if my phone disconnects from the
network it won't successfully be able to reconnect.  Similarly if I
fly into the states my phone won't connect at all.  It seems as if
when I'm handed off from WIND to T-Mobile the connection works and
otherwise it won't.  Otherwise it works correctly on my home network.


I'm seeing the GENERIC_FAILURE initially at [015] when I believe it
tries to automatically select the correct network.  At [0026] ->
[0033] you see some SIM_IO errors which make me wonder if there's an
issue with my SIM card that's possibly causing this.  Again you see
SIM_IO errors at [0052] and [0058].  And finally at [0059] you see
REQUEST_GET_NEIGHBORING_CELL_IDS producing failures a few times in a
row.


here's the radio log from a fresh reboot:

$ logcat -b radio &
$ E/RILC(   57): RIL_register: upgrade RIL to version 3 current
version=2
I/PHONE   (  160): Network Mode set to 0
I/PHONE   (  160): Cdma Subscription set to 1
I/RILC(   57): libril: new connection
I/RILC(   57): RIL Daemon version: HTC-RIL 1.6.1062G (Apr 23
2010,17:35:06)
I/RILJ(  160): Connected to 'rild' socket
D/RILB(  160): Notifying: radio available
D/RILJ(  160): []> SCREEN_STATE: true
D/RILJ(  160): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED
RADIO_OFF
D/RILJ(  160): []< SCREEN_STATE error:
com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/PHONE   (  160): mDoesRilSendMultipleCallRing=true
D/PHONE   (  160): mCallRingDelay=3000
W/GSM (  160): Can't open /system/etc/voicemail-conf.xml
W/GSM (  160): Can't open /system/etc/spn-conf.xml
D/GSM (  160): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM (  160): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM (  160): [GsmDataConnection-1] DataConnection constructor E
D/GSM (  160): [GsmDataConnection-1] clearSettings
D/GSM (  160): [GsmDataConnection-1] DataConnection constructor X
D/GSM (  160): [GsmDataConnection-1] Made GsmDataConnection-1
D/RILJ(  160): [0001]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/STK (  160): StkService: StkService: is running
D/STK (  160): StkService: NEW sInstance
D/RILJ(  160): [0001]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
error: com.android.internal.telephony.CommandException:
REQUEST_NOT_SUPPORTED
I/PHONE   (  160): Creating GSMPhone
D/RILJ(  160): [0002]> RADIO_POWER
E/GSM (  160): Wrong network type: 0
E/GSM (  160): Wrong network type: 0
D/GSM (  160): Poll ServiceState done:  oldSS=[1 home null null
null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly:
false] newSS=[3 home null null null  Unknown CSS not supported -1
-1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1 newGprs=1
oldType=unknown newType=unknown
D/RILJ(  160): [UNSL]< UNSOL_STK_PROACTIVE_COMMAND
D03B810301250082028182050457494E448F0801456E676C6973688F09024672616E636169738F1080526F616D696E672053657474696E67180321
D/GSM (  160): GSMDataConnTrack handleMessage { what=3 when=46203
obj=android.os.AsyncResult@44963e78 }
D/GSM (  160): GSMDataConnTrack handleMessage { what=12 when=46203
obj=android.os.AsyncResult@44963f18 }
D/GSM (  160): [GsmDataConnectionTracker] Radio is off and clean
up all connection
D/GSM (  160): [GsmDataConnectionTracker] Clean up connection due
to radioTurnedOff
D/GSM (  160): [GsmDataConnectionTracker] setState: DISCONNECTING
D/GSM (  160): [GsmDataConnectionTracker] cleanUpConnection: !
tearDown, call conn.resetSynchronously
D/GSM (  160): [GsmDataConnection-1] DcInactiveState:
msg.what=EVENT_RESET, ignore we're already reset
D/GSM (  160): [GsmDataConnection-1] NotifyDisconnectCompleted
D/RILB(  160): Notifying: Radio On
D/RILJ(  160): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED
SIM_NOT_READY
D/RILJ(  160): [0002]< RADIO_POWER
D/RILB(  160): Notifying: SIM ready
D/RILJ(  160): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED
SIM_READY
D/GSM (  160): [DataConnection] Stop poll NetStat
D/GSM (  160): [GsmDataConnectionTracker] cleanupConnection: !
notificationDeferred
D/GSM (  160): [GsmDataConnectionTracker]
gotoIdleAndNotifyDataConnection: reason=radioTurnedOff
D/GSM (  160): [GsmDataConnectionTracker] setState: IDLE
D/GSM (  160): [GsmDataConnection-1] clearSettings
D/GSM (  160): GSMDataConnTrack handleMessage { what=19 when=46203
obj=android.os.AsyncResult@44964268 }
D/GSM (  160): [DataConnection] Stop poll NetStat
D/GSM (  160): GSMDataConnTrack handleMessage { what=22 when=46203
obj=android.os.AsyncResult

[android-developers] Re: Lat/long coord to pixel screen XY coord without showing MapView

2011-01-26 Thread Machete
Hi Hari and Treking, thanks for the msgs, I get the idea, I will try
to do it and post here the code.


thanks


On Jan 14, 8:03 pm, TreKing  wrote:
> On Fri, Jan 14, 2011 at 1:51 PM, Hari Edo  wrote:
> >  (1) there's no way to know the X Y on the screen from the
> >       latitude and longitude,
>
> Sure there is - it's whatever you want it to be.
>
> If you have an aerial view picture that's some given size (SX by SY) then
> the Lat / long of the top lef correspond to [0, 0] and the Lat / long of the
> bottom right corresponds to [SX, SY]. From there simple math will let your
> correlate a given lat / long pair to a relative x/y screen location given
> your min and max lat and long bounds defined by your image.
>
> This of course assumes you're not zooming in and out.
>
> --- 
> --
> 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] Can't see my view structure by HierarchyViewer

2011-01-26 Thread Alfie
Hi, all
I've been using HierarchyViewer to see view structure of emulator, and
tried to test on actual phone device. However, I tried around 4 phones
(rooted and debug mode) and fails 3 of them. Really have no idea why
it happens??!!

Anyone has the suggestion to fix it? Thanks 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


[android-developers] Couple of Honeycomb API errors

2011-01-26 Thread Zsolt Vasvari
Noticed a couple of minor problems.  Hopefully these can be addressed
for the final version.


android.database.sqlite.SQLiteDatabase.getAttachedDbs() returns
ArrayList instead of List


android.os.AsyncTask onCancelled() uses the UK spelling of the word
where everywhere else in the API, the US spelling variations are
used.  It's not just Canceled vs. Cancelled, but *ize vs. *ise.


-- 
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: Signing in Eclipse

2011-01-26 Thread PFP Dev
Yeah i did that also didnt work. It started working randomly like it
did before. Last time it didnt work until i did a restart this time i
restarted like 500 times and it randomly started working.. Not sure
what issue ever was.

On Jan 19, 2:19 pm, Justin Buser  wrote:
> Some screen shots/more information would be helpful, have you tried
> signing manually from the command line using keytool/jarsigner?
>
> On Jan 15, 12:13 am, PFP Dev  wrote:
>
> > Not sure if this is the place to be asking this, I have tried many
> > places with no answer.
>
> > I am recently trying export my app with Eclipse and I am running to
> > "ERROR: cannot recover key" I know I am using the right password. I
> > tired restarting eclipse, removing and importing project, cant seem to
> > get anything to work.
>
> > 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] Regarging to SOAP Webservice in android

2011-01-26 Thread android person
I m doing the web service application but i don't know the SOAP
webservices properly.

I  hav the problem in passing the complex type as a argument

If any solution regarding this problem then give me suggetion or guide

-- 
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 write audio into microphone?

2011-01-26 Thread Mahendra Liya
Hello,

Is there any way in which we can write directly to something like the
"microphone buffer" , so that it gets directly to the caller?

Is there any way in which we can access / modify the contents send
to / through the microphone?

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] How to access the "Product Key" on Archos tablets?

2011-01-26 Thread Armond Avanes
Hi Folks,

I need to access the product key (or whatever unique device ID) of the
Archos devices. I've found the following API mentioned on Archos website
which should work on Archos5 series:
Settings.System.getString(getContentResolver(), "archos.product_key");

But it does not work on 101 tablets (returning NULL). Any clue?

Further Note: It seems that "Telephony.getDeviceId()" always returns NULL on
all Archos devices.

Thank you,
Armond

-- 
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 Market filter problems

2011-01-26 Thread Naftali
Hi guys.

I'm new to the group, so I don't know if anyone ever asked this.

Anyway, I recently created a game (Save Da Whale) using AndEngine and
made it available at the Android Market. The only filter my game has
is android.hardware.touchscreen.

It wasn't supposed to have any problems. But some customers have
reported that they cannot see the game using their device.

The devices that showed the problem are Xperia X10 (with custom rom
2.2) and Motorola Cliq XT (also with custom rom 2.1). They both have
touchscreen, so I think it wouldn't be the problem.

Anyone might know why are these devices being filtered?

PS.: They can download other apps, such as Adobe Flash, normally.

Thank you in advance,
Naftali

-- 
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: Mediaplayer cuts off early

2011-01-26 Thread dirk
I've seen the case where on some devices (like the Nexus One and the
Evo) where the while audio track gets played, but the current play
time is not reported correctly. Similarly, the duration gets reported
correctly. Is that the case here?

On Jan 25, 9:40 am, Hank  wrote:
> I don't get any exceptions and the log doesn't provide any
> information. I am trying to play a amr file
>
> On Jan 25, 12:17 pm, TreKing  wrote:
>
> > On Tue, Jan 25, 2011 at 10:02 AM, Hank  wrote:
> > > I have a recording that is around 4 minutes and when I try to play it 
> > > using
> > > the MediaPlayer API, it doesn't play the full file, it cuts off early 
> > > maybe
> > > at most 30 seconds into the file.
>
> > Do you have any more information than that? Exceptions? Log messages? The
> > file type? Etc.
>
> > -
> > 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] Error in building Android 2.2

2011-01-26 Thread amador ayala
Hello, my name is Amador.

I have problems when I build Android. I have done the following:

repo init -u git://gitorious.org/rowboat/manifest.git -m rowboat-
froyo.xml
repo sync

I download correctly all files.

But when I build the rootfs I get the following error:

amador@amador-desktop:~/rowboat-android$ make TARGET_PRODUCT=igepv2

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2
TARGET_PRODUCT=igepv2
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER

*** Build configuration changed: "igepv2-tests-{mdpi,nodpi,hdpi}" ->
"igepv2-eng-{mdpi,nodpi,hdpi}"
*** Forcing "make installclean"...
*** Done with the cleaning, now starting the real build.
build/core/java.mk:20: *** frameworks/ex/common: Invalid
LOCAL_SDK_VERSION '7' Choices are: current .  Alto.

What I can do? Can you help me? Please.

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] Input text-field hidden behind keyboard in Air 2 app

2011-01-26 Thread Sangram Patil
Hi,

We have created a Adobe Air 2 app for Android 2.2 devices and
installed on Samsung Galaxy.

When we enter the text in the input text-field, the text filed is
getting behind the keyboard and the user can not see the text being
entered. Initially when the user sets focus to input text-field, the
device keyboard is opened with the app being shifted so as to make the
input text-field visible within top area. But as soon as user starts
keying in text, the app restores to normal view and the text field is
hidden behind keyboard.

Is it possible to make the current input text field visible even when
the text is being entered?

-- 
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: Retrieve tweets from my twitter account

2011-01-26 Thread Manohar Reddy
dont send me any mesages

On 1/23/11, Martin Jernberg  wrote:
> i always use this twitter client: http://twitter.com/SWIFTAPP
>
> On 1/18/11, Albert  wrote:
>> Cool thanks for the answers!
>>
>> Alberto
>>
>> --
>> 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] Intent filter to catch links from SMS doesn't work

2011-01-26 Thread Vincent
Hi all,

I actually already asked this question on StackOverflow but I didn't
get any answer that could help me solve the problem.
Here is the thing.

What I want to do is to define a URI like myapp://some_data in a
intent filter. And when this kind of URI is met in a SMS or email,
clicking on it would open myapp.
I found on StackOverflow the way to do it. Here is my code:








However it does not work. Actually, if I have such a link in a SMS, it
is not clickable...so of course clicking on it does nothing.
If instead of android:scheme="myapp" I am using android:scheme="http"
it does work. When I click on the link, Android asks the user whether
to open it with Browser or myapp and it simply works because the link
is clickable (http web adress is always clickable).

What should I do to make my link myapp://some_data clickable in a SMS/
email ? As the intent filter works with http, I guess it can work with
myapp as a scheme.

Thanks a lot.

Vincent

-- 
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 create contact list view plug-in?

2011-01-26 Thread Xi Shen
Hi,

This is the function I want to implement:

>From the contact list view, when you click on the contact's image, a
small panel will fly in with buttons. I want to add a button to that
panel and also get the contact's information when my button is
clicked.

Is it possible? What API/topic should I look for?



-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/

-- 
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] the command add to home screen

2011-01-26 Thread WINDRUNNER
when you long press on the home screen a box pops up"add to home
screen " and lists shortcut, widgets, etc.
i want to add a button to my home screen to get to this point. what
command in activities would i be looking for?
or when you long press on the home screen what command is it that
makes the add to home screen box pop up?

-- 
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] Views with the same dip width number have different widths in appearance

2011-01-26 Thread Michael Smith
Hello,
I have a horizontal linear layout separated with lines like the following:

 *   *

In the layout editor, the lines have the same width, however, on the device
they do not - the third line in the layout below is slightly wider than the
other two. I'm wondering if there is an explanation for this or a way around
it.

Here is what the layout looks like:


http://schemas.android.com/apk/res/android";
  android:background="@drawable/customized_title_bar_button"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent"
  android:orientation="horizontal"
>
  
  
**

 *   *

 *   *

  


Thanks,

Mike

-- 
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] Eclipse Stuck at "Android SDK: Resolving error markers"

2011-01-26 Thread paul french
Eclipse Galileo

Android SDK 2.2

Everytime I start eclipse I cannnot do anything useful since when
viewing the progress tab eclipse is permanently stuck at the task
"Android SDK: Resolving error markers"

Any ideas what the problem might be?

-- 
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] LinearGradient arguments

2011-01-26 Thread [sXo]Pi1
How does positions argument in LinearGradient(float x0, float y0,
float x1, float y1, int colors[], float positions[], TileMode tile)
work? For null colors are distributed evenly, but what is actually the
meaning for this "positions"? I've experimented with this values and
got only strange results. Does this stands for color weights or
something?..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Preferences screen won't rotate

2011-01-26 Thread Jay Bryant
I have a vanilla preferences screen with just a few preferences.
Here's the XML that defines it:


http://schemas.android.com/apk/res/android";>









I've compared it to a number of samples I've found on the web, and
I've Googled around, but I've not found anything that would cause my
problem, which is this: When I rotate my phone, the preferences page
doesn't arrange itself into a landscape display. I tried it on a
friend's Android-powered phone and hers didn't rotate either. Other
apps on my phone rotate their preferences pages correctly, but mine
doesn't. What have I missed?

It does rotate correctly in the emulator.

Thanks much.

Jay Bryant

-- 
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] Close or uninstall DDMS from Eclipse

2011-01-26 Thread Johannes Mario Ringheim
Is there any way to close or uninstall the DDMS from Eclipse? I'm
using the standalone one, and have no use for two of them at the same
time. Also, programs seem to show up in only one of the DDMS's at
random, displaying a question mark in the other.

Thanks for 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] Speed and Bearing data from a GPX file

2011-01-26 Thread mxdatamike
Hi all,

I am trying to simulate a route using a GPX file I have created.

When I load it into the emulator, I get the correct latitude and
longitude data. However, the Speed and Bearing are always returned as
0.0.

Does anyone know what I might be mising? Below is a sample of my GPX
file.

Any help will be greatly appreciated!

Mike





gpxdata M56


  
4.46
4.23
2009-10-17T18:36:32Z
  

  
4.94
5.23
2009-10-17T18:37:32Z
  

  
6.87
6.23
2009-10-17T18:37:36Z
  






-- 
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] simple image question from a noob

2011-01-26 Thread TJ
I am trying to create a very simple application that displays an image
when you click a button.  I have searched and done "trial and error"
for days and have not come up with a solution.  I have the  PNG image
in the drawable folder.  I feel like an idiot but am frustrated by not
being able to solve this on my own.  Thank you for your time.

TJ

-- 
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] Smooth animation and GC

2011-01-26 Thread Odd
Hi,



I am fairly new as an android programmer (although I have many years
experience in C++).  I have a question regarding the smooth animation
of objects when drawing on a canvas using SurfaceView using a separate
rendering thread.

For the sake of discussion, let's say I have a ShapeDrawable 'sd' that
I want to move smoothly across the screen.  My first attempt at this
was to decide its position using the sd.setBounds(int, int, int, int)
and then call sd.draw(Canvas).  This works fine, and I get an
excellent framerate (~60FPS), but movement is still a bit jerky due to
the fact that setBounds() does not take floating point values
(resulting in the smallest possible move being at least one whole
pixel.

My next attempt was to shift the canvas itself rather than calling
sd.SetBounds(), using a transformation matrix.  This can be done with
floating point values, and the animation becomes visibly smoother, but
now I have another problem: garbage collection.

It seems as if, when I use a matrix to shift the canvas, there is some
memory allocation going on behind the scenes.  It does not seem to
matter whether I use the matrix that comes with the canvas or if I
supply my own preallocated one - as soon as I am changing the matrix
content, logcat shows me that the garbage collector becomes active
every 250 frame or so.  This does not happen when I use the
setBounds() approach - only when I use the matrix approach.

Each time the garbage collector kicks in, there's an annoying drop in
framerate.  I have not figured out a way to avoid this.

My question is therefore threefold:
1) Is there a way to place a ShapeDrawable (or any other Drawable) on
the canvas, using sub-pixel precision?
2) Is there a way to handle matrix transformations where you have
control of the allocation/deallocation of memory? (so that you can
prevent the garbage collector from regularly kicking in).
3) If the answer is 'no' to both above, is there another/better way to
obtain smooth sprite animation?

Thanks,
Odd

-- 
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] openFileOutput, FileNotFoundException

2011-01-26 Thread Michael
Som alla andra (tydligen) så får jag FileNotFound på raden där jag kör
"openFileOutput". Borde det inte funka i en activityklass? Vad tusan
är fel? Jag har läst trådar till förbannelse men hittar ingen lösning.
/Micke


import java.io.FileOutputStream;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
public class firstActivity extends Activity {
public firstActivity(){
}
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maininterface);

String fil = "test";
String string = "test";

FileOutputStream fos;

fos = openFileOutput(fil, Context.MODE_PRIVATE);

fos.write(string.getBytes());
fos.close();

}
}

-- 
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] Testing on Different Devices

2011-01-26 Thread KAKLOTAR DILIPKUMAR
You have to dowanload android SDK and install the eclipse then you can
create virtal avd and u can test you application in different version of
android



-- 
dilip kaklotar
Mobile No: 8000722607

-- 
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 can I control USB port on hardware level?

2011-01-26 Thread Jisung

Hi.
I want to control USB serial port on hardware level.
I'm working on a project about Android USB.
Datas coming through USB port on real-time,
and it needs to be processed to xml files.

I found some old java API project JSR80 or jUSB, but it's working on
Linux and i don't know it works on Android.

Is there any source codes or APIs that i can use?
Or, any way to use JSR80 project on Android?

Thanks for reading & wait for your answer.
Please, help me!

-- 
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: Append numbers to a TextView by clicking buttons-just like a calculator

2011-01-26 Thread Zakaria Elfassi
You could post your current code, as a start.

-- 
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] Resume for Sr QA Analyst

2011-01-26 Thread Carlos Junior
Humm, good idea.

[]'s
Carlos Júnior


On Mon, Jan 24, 2011 at 5:50 PM, Inderjeet Singh  wrote:

> Would be great if this guy received 10,000 faxes *requesting* more
> information ..
>
>
> On Mon, Jan 24, 2011 at 12:41 PM, Haroon Khalid <
> haroon.kha...@rabblesoft.com> wrote:
>
>> I am going down to DE to kick this guys ass.
>>
>>
>> On Mon, Jan 24, 2011 at 3:35 PM, David Overcash > > wrote:
>>
>>> Seriously - Can a moderator mark this as spam?
>>>
>>>
>>> On Mon, Jan 24, 2011 at 1:24 PM, prasad sirisol <
>>> prasad.siri...@gmail.com> wrote:
>>>
 Hi,

 Hope you are doing good.

 I am a Recruiter at  SIRI Solutions INC.

 Here I attached our consultant resume with this mail.



 Consultant details are given below,

 Name*:*  *MRUDULA*

 Present Location  *:  Edison, NJ*

 Visa Status*   :  Green Card*

 Relocation *   :  Looking contract
 positions only in NJ state and New York City.*

 Availability *:  Immediate*

 Face 2 Face *:  Ready After Initial
 Telephonic interview with Client
 *

 * *

 Kindly let me know if you have any requirements for our consultant in NJ
 state and NYC.


 Feel free to contact me for contact details and rate.


 If you have any requirements please send to my mail address *
 pra...@sirisol.com .*

 *
 *

 Thanks & Regards,

 *Prasad*

 *Sr. Technical Recruiter*

 *Siri Solutions International INC*

 2217 Prior Rd,

 Wilmington, DE-19809

 Fax: 302-380-3305

 *pra...@sirisol.com*

 *www.sirisol.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
>>>
>>>
>>>  --
>>> 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
>

-- 
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] About Live Wallpaper

2011-01-26 Thread Dilipkaklotar
Hello Friends, I am Developing live wallpaper Example. I m getting one
problem that i am not getting how can i access the images which stored
in resource folder   /res/raw the /raw folder contain my images and i
want to show that all images on the wallpaper is there any solution or
suggestion then plz inform me

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] android: a redundant UI syntax ?

2011-01-26 Thread Naren
Hi,
I am a beginner to android development and wanted to ask a question to
the developer community.

What is the significance of specifying "android:" in front of every
attribute.?

be it view or layout, I know that I am already in android, then I feel
its kind of redundant to prefix an attribute with android colon.





Cant this be expressed as follows?




However the one reason that I can think of is specifying the package
name (android:) as a prefix to resource will help to retrieve the
resource easilly. But still, this need not be prefixed in every
attribute. This should have been able to be specified in only one
header or similar at the top.

I think this might help in bringing down the code size and also for a
quicker parsing.

Let me know if I am missing something.

Thank you

Further,
the attributes itself also can be very well shortened.
ex:width as "w" height as "h" and layout_width as "lw" and
layout_height as "lh"

Thank you,
Naren P

-- 
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] ts-lib to enable touch?

2011-01-26 Thread Buing
I would like have a lcd-monitor in my kitchen, with apps for music,
foodtips, surfing the web and grocery lists and the idea is to run
this on android with a touchscreen.  I allready own a touch-lcd
screen
so
i surfed the web and found out that there was somthing called
Beaglebord xM and there was pepole who runs android on that board. So
i ordered a board and attached the lcd-monitor to it.

I have also got Android 2.2 from the TI_Android_FroYo_DevKit-V2 up
and
running.


BUT as it seems to be quite impossible for me to get the touch-part
working, i try a final aproach and ask this group what to do?


Im not in any way familiar with kernel development under Linux, so to
all you who answers me, please have  have that in mind.


I can see that /dev/input/event1 and /dev/input/mouse0 is beeing used
by the touch, because if i do a "cat" command on one of those in the
console ill get a lot of garbage on the console when i touch the
screen.


If you have compiled a kernel that works with touch for the xM board
and a tslib (if ill need that for android) or know where i can find
it, please let me know.


Next best is a page who describe the steps, verry exactly and ill try
that.


As i have searched the internet for this problem, ill found out that
i
need to recompile the kernel with some changes, but i do not know
what
the changes are, in witch files or if its more than the kernel who
need to be recompiled. Here im stuck. Compiling under linux is new to
me and ill have only just started with java, so i want to use Andrid
for my tryouts for apps making.


I can not in my life understand why there is a Android package
without
touch support out there att all, so at the  moment im quite sorry
that
i bought this card. So please help me, or ill connet it to my TV so i
can surf from the livingroom.


//Buing



-- 
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: Soundpool.play() fails, returns 0, Playing From Widget

2011-01-26 Thread LysolPionex
I meant to add also, that toast at the end show the play() function
returning an error.

-- 
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: Soundpool.play() fails, returns 0, Playing From Widget

2011-01-26 Thread LysolPionex
Sorry for the multiple posts; I just saw Samsyn's response.

I did mean to make it loop infinitely, thinking it might eventually
play.

I also made it call the play function several times in a row and even
had a 15 sec delay in between calls to the play() function, but it
would simply toast that it had played unsuccessfully.



On Jan 22, 2:14 am, Samsyn  wrote:
> This is probably not helpful, but:
>
> * did you mean to have the loop value of -1?  (infinite looping sound)
> * can you try triggering the sound later, after the load has had a
> chance to complete (I believe the sound samples load asynchronously,
> but cannot be played until the samples are all squared away).
>
> On Jan 8, 8:25 pm,LysolPionex
> wrote:
>
> > I'm trying to get a sound to play from a widget. The code (below) is a
> > near copy of code from another project which successfully plays
> > sounds.  The sounds which I use work in other projects, and working
> > sounds from other projects also don't play in this project.
>
> > I think I just need a pair of fresh eyes.
>
> > Thanks for any insight!
>
> >       ...
> > public void onReceive(Context context, Intent intent){
>
> >       ...
>
> >   //for deciding which sound to play
> >   int soundToPlay;
>
> >       ...
>
> >    /**
> >     * Play the sound *
> >     **/
> >    //make a sound pool
> >    SoundPoolsoundPool= newSoundPool(4, AudioManager.STREAM_MUSIC,
> > 0);
> >    int soundID =soundPool.load(context, soundToPlay, 1);
>
> >   /
> >    * this showssoundPool.play() returning a 0  *
> >    /
> >    CharSequence text = soundID + " -> " +soundPool.play(soundID, 1,
> > 1, 1, -1, 1);
> >    int duration = Toast.LENGTH_SHORT;
> >    Toast toast = Toast.makeText(context, text, duration);
> >    toast.show();
>
> >       ...

-- 
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] Flash player for Emulator

2011-01-26 Thread Prerna Gupta
I want to run swf flash games on my android 2.2 emulator is there any
way for doing it. I tried with webview also but it requires flash
player on my emulator.

-- 
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] Regarding to Live Wallpaper

2011-01-26 Thread android person
I am doing live wallpaper project.
I want to set the wallpaper images from my resource folder. I don't
know how can i set the image on the android wallpaper.

If anyone know then inform the solution for that problem.


Thanking 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 C++ Development with Visual Studio

2011-01-26 Thread Dean Horak
If you're going to do C++ development, then you'll want to use the
NDK.
(see http://developer.android.com/sdk/ndk/index.html)

You can use VS as a glorified text editor, but the builds will
ultimately have to be done using the tools supplied in the NDK. If
you're feeling adventurous, you could probably configure your project
in VS to execute the NDK build tools within your project settings as
well, although I'm not sure how much work that would be.

On Jan 21, 4:59 pm, Jack Underwood 
wrote:
> I am trying to figure out how to setup android development with Visual
> Studio. I plan on using C++ (targeting 2.3 and above), but I see very
> little on the subject. Does anyone know how to do this?
>
> I know that Android development suggests Java/Eclipse, however, I want
> to do C++/VS.

-- 
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 create contact list view plug-in?

2011-01-26 Thread Xi Shen
Hi,

This is the function I want to implement:

>From the contact list view, when you click on the contact's image, a
small panel will fly in with buttons. I want to add a button to that
panel and also get the contact's information when my button is
clicked.

Is it possible? What API/topic should I look for?


-- 
Best Regards,
Xi Shen (David)

http://twitter.com/davidshen84/

-- 
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] multiple rendererActivity classes instances problem

2011-01-26 Thread blackMasoon
Hi everyone!

I'm totally new to Android but I'm an experienced game developer. That
is why I want to create a 3D game using min3d framework. My problem
was that I couldn't pass the" scene" parameter through objects of many
classes like Game, Player and GameActivity. Probably it was because
each class extends RendererActivity and creating an instance of one
inside another running is unavailable. I found something like:
Looper.prepare(); and now there's no problem with creating objects
from these classes, but now suddenly getResources method stopped
working and returns nullPointerException in the place where I parse 3D
object file. That part of code was good because the path to the model
resource was correct and the app was working when there was no multi
class structure What may be the problem here?

-- 
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] Suggested Android Phone for Unity Game Development Testing?

2011-01-26 Thread HV-Charley
Hey everyone,

I'm new to Android development and am looking to sort out what I
should be getting as a development device for non-emulator testing
purposes. Naturally, my goal would be to get a device that best
represents the most common end-user device looking ahead to the next
4-12 months when our first title(s) are likely to be released.

Of course, there are a host of devices out there, and analyzing the
direction of the market is entirely speculative. Nonetheless, I'm
pretty much just looking to make the most informed choice I can and
then will work around the other details.

My limited research on phone penetration has been a bit inconclusive.
Nonetheless, these were the components that I’ve been trying to take
into account:

--ARMv7 ENABLED--
Given that we will be developing with Unity, it appears that I will
need to get an ARMv7 enabled phone (per the post below):
http://forum.unity3d.com/threads/73598-Before-you-buy-Android-for-Unity-ARMv6-and-what-you-should-know.

--UNITY TESTED PHONES--
Per Unity's site, they specifically cite a few phones that they have
tested extensively. Ideally the target phone would be found among this
list (presumably Unity was looking at market penetration as well)

http://unity3d.com/unity/publishing/android
Nexus One, Motorola Droid, Motorola Droid X, HTC Droid Incredible, HTC
EVO 4G, Samsung Galaxy S

--ANDROID PLATFORM VERSION--
Unity requires 2.0+. Per the oft-referenced platform versions site:

http://developer.android.com/resources/dashboard/platform-versions.html

It looks like 2.2 is the current standard, and will likely persist
given that there is a substantial foundation of users that are now
working with that version.  So, naturally, it seems I’ll want a phone
that is 2.2 enabled.

--EXISTING PHONES--
My business partners have a Motorola Droid X and HTC EVO 4G as their
personal phones. While we’ll ultimately test on those devices, we’d
like to have one phone entirely devoted to being a development device.

I know that’s a fair amount of data, but I’d like to try and make the
most informed decision I can given the circumstances. Still learning
the ins and outs.

Thanks in advance for any help/advice you may be able to provide!

-- 
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: Soundpool.play() fails, returns 0, Playing From Widget

2011-01-26 Thread LysolPionex
My phone is a SE Xperia X10i.  But this doesn't play in the debug
emulator nor on my phone.  I'm sure it's the code.  The only thing I
could think of was perhaps android 1.6 (the target platform) couldn't
play sounds from a widget, but I think mine did when it was on 1.6.

-=- Lysol Pionex

-- 
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] Image capturing

2011-01-26 Thread KAKLOTAR DILIPKUMAR
in DDMS there is one option to capture the screen shot in android



-- 
dilip kaklotar
Mobile No: 8000722607

-- 
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: startActivity with Intent - currently murderous intent :-(

2011-01-26 Thread Prerna Gupta
You can also replace:
startActivity(new Intent(this, BroadcastActivity.class));
with
 startActivity(new Intent(getApplicationContext(),
BroadcastActivity.class));

-- 
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] Where can I find info about the licences for codecs that come with Android?

2011-01-26 Thread Taavet
Hello,

I'm looking for information that describes the licensing terms for the
codecs that come with Android. Especially AMR-NB.

Can anyone point me in the right direction?

Thanks

Taavet

-- 
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 - serial port API?

2011-01-26 Thread soupdog
You could use the NDK and expose a simple open/read/write/close
interface via JNI.  Then you could take it a step further by deriving
new classes from InputStream and OutputStream that call the JNI
methods, allowing you to use UART comms transparently wherever you can
use InputStream and OutputStream.  I've done that for USB host mode
comms.  Only catch is whether you would have read/write privileges for
the tty node.  For USB, I did not, because the usbfs was mounted
readonly for non-root users, so I needed to root the device, which is
why this wouldn't work for an app that I intend to publish.  But it
was fun to get it working and communicate with an external device over
USB from my app!

I suspect future revisions of the Android SDK will include a USB API,
especially with more android tablets coming out featuring USB Host or
OTG.  Serial APIs are probably less likely, but of course you could
use a USB-to-serial converter for peripherals with a UART and no USB.
-soup

On Jan 24, 5:04 am, "pramod.deore"  wrote:
> Hi Everybody, Does Android SDK supports any API for reading and
> writing to the Linux TTY serial ports?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Change Resolution Policy when screen orientation changes

2011-01-26 Thread Jeff
I have a Live Wallpaper using AndEngine which has several small images
floating around the screen. I can set the initial screen orientation
and RatioResolutionPolicy without any problems, but if I rotate the
screen (or slide the the keyboard on some devices) and trigger a
ScreenOrientation change, the ratio is off because it's trying to
stretch each image since the ratio has changed. I.E. the width is
originally 480 and height is originally 720, so 720/480 = 1.5, but
when the screenorientation changes/rotates, the images try to fit into
480/720 ratio (0.67).

I have confirmed onResume is called when the screen is rotated, but
there doesn't appear to be a way to re-set the Engine using the new
height/width.

-- 
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: Built-in resource unexpectedly not found

2011-01-26 Thread Mark Carter
In this particular example, it's not a simple case of copying
the primary_text_light.xml to the app's resource structure because that file
references "private" built-in resources.

How best to handle that!?

On 27 January 2011 10:55, Bob Kerns  wrote:

> Just to be very clear about it -- given the current reality, I suggest
> viewing all firmware-defined resources as, well, infirm.
>
> I'm just saying this is something which OUGHT to have been done
> better, and could still be, by the platform team -- including the
> tricky task of getting the OEMs on board to not screw it up.
>
> This is a long way from happening, and I would predict it NEVER
> happens. If *I* were in charge, that would be a different matter...
>
> I'm not claiming it's easy, either.
>
> On Jan 26, 11:53 am, Mark Murphy  wrote:
> > I would recommend that developers depend as little as possible on
> > explicitly using firmware-defined resources. If you need them, copy
> > their values into your project. Or, at least have a value that you use
> > as a fallback in case a firmware-defined resource is not available.
> > There have been too many cases of OEMs changing (or, in your case,
> > apparently removing) these resources in ways that cause problems for
> > apps.
> >
> > While I appreciate the argument that using system-defined resources
> > makes it easier to blend into the platform, IMHO...
> >
> > stability > internal consistency > platform fidelity
> >
> > and the system resources are unreliable and, if changed, may be
> > inconsistent with non-system-resources in the rest of your app.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jan 26, 2011 at 10:26 AM, Mark Carter 
> wrote:
> > > Analytics for one of my apps tells me that on rare occasions this
> > > exception is thrown from the Activity.setContentView() method:
> >
> > > java.io.FileNotFoundException: res/color/primary_text_light.xml
> >
> > > It happened on a Motorola Milestone which appears to be using official
> > > firmware: SHOLS_U2_01.03.1.1257641482 (which is SDK 2.0, I think)
> >
> > > The resource in question refers to a built-in Android resource which
> > > has been there since API level 1.
> >
> > > Clearly this is not a programming error but something else.
> >
> > > Any ideas how this can happen?
> >
> > > --
> > > 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 Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2
>
> --
> 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: GLIBC 2.11 needed for emulator in SDK 2.3 !!!!

2011-01-26 Thread John McInnes
It works! thanks.

On 01/26/2011 06:00 PM, Xavier Ducrohet wrote:
> Download tools r9.
> 
> Xav
> 
> On Wed, Jan 26, 2011 at 6:56 PM, jam  wrote:
>> BUMP
>>
>> glibc 2.10 here also.. I suppose I can create a chroot with new glibc.. :/
>>
>> --
>> 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: Built-in resource unexpectedly not found

2011-01-26 Thread Bob Kerns
Just to be very clear about it -- given the current reality, I suggest
viewing all firmware-defined resources as, well, infirm.

I'm just saying this is something which OUGHT to have been done
better, and could still be, by the platform team -- including the
tricky task of getting the OEMs on board to not screw it up.

This is a long way from happening, and I would predict it NEVER
happens. If *I* were in charge, that would be a different matter...

I'm not claiming it's easy, either.

On Jan 26, 11:53 am, Mark Murphy  wrote:
> I would recommend that developers depend as little as possible on
> explicitly using firmware-defined resources. If you need them, copy
> their values into your project. Or, at least have a value that you use
> as a fallback in case a firmware-defined resource is not available.
> There have been too many cases of OEMs changing (or, in your case,
> apparently removing) these resources in ways that cause problems for
> apps.
>
> While I appreciate the argument that using system-defined resources
> makes it easier to blend into the platform, IMHO...
>
> stability > internal consistency > platform fidelity
>
> and the system resources are unreliable and, if changed, may be
> inconsistent with non-system-resources in the rest of your app.
>
>
>
>
>
>
>
>
>
> On Wed, Jan 26, 2011 at 10:26 AM, Mark Carter  wrote:
> > Analytics for one of my apps tells me that on rare occasions this
> > exception is thrown from the Activity.setContentView() method:
>
> > java.io.FileNotFoundException: res/color/primary_text_light.xml
>
> > It happened on a Motorola Milestone which appears to be using official
> > firmware: SHOLS_U2_01.03.1.1257641482 (which is SDK 2.0, I think)
>
> > The resource in question refers to a built-in Android resource which
> > has been there since API level 1.
>
> > Clearly this is not a programming error but something else.
>
> > Any ideas how this can happen?
>
> > --
> > 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 Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2

-- 
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 Status Bar Icons Lifecycle

2011-01-26 Thread AndroidDevTime
I am able to place Status Bar Icons using Notification Manager,  and I
see a way to send/cancel notifications to add/remove them.  Is this
the right way however to maintain icons in the status bar over a
period of time like to duration that my app is running?

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