[android-developers] Android Developer Needed - Norcross, GA

2010-01-17 Thread Adam Brookins
I hope everyone is having a wonderful day!  If interested in our position
please send a word copy of your resume to abrook...@sysdevit.com.

 

Regards,

 

Adam

Client is looking for a mobile developer with Android/iPhone experience.
This individual will also have the opportunity to learn/use other
technologies such as Ruby and PHP. The client uses pairing for development
and believes in a strong diverse team. This individual would serve as the
mobile expertise of the team and would be expected to teach other members of
the team.

Job Summary: 
Designs, modifies, develops, implements and supports applications. Must
ensure all work is fully covered by tests. Must be familiar with a variety
of industry concepts, practices and procedures. Must employ the right
technology for the best solution approach. Must be able to perform a variety
of complicated tasks. May lead and direct the work of others. Must be a team
player and willing to work in a pairing environment. 
Requires bachelors degree in a related area and 1-2 years of experience in
the field, or a minimum 3 years of experience in the field without a degree.

Essential Functions: 
* Provide architecturally sound software applications. 
* Provide meaningful testing implementations. 
* Provide production support. 
* Participate in planning meetings and software releases. 
* Share knowledge and stay atop industry trends. 
Skills: 
* Strong attention to detail and accuracy. 
* Excellent problem solving and communication skills. 
* Application technology agnostic. 
* Strong web technology (HTML, CSS, Javascript) knowledge. 
* Adroid and iPhone development experience required. 
* Ruby and PHP experience preferred.

 

Adam Brookins

Managing Partner

abrook...@sysdevit.com

O: 678-392-1328

C: 404-229-4765

F: 678-252-6625

www.sysdevit.com

 

 

 

 

Adam Brookins

Managing Partner

abrook...@sysdevit.com

O: 678-392-1328

C: 404-229-4765

F: 678-252-6625

www.sysdevit.com

logo_sysdev_small

 

image001.jpg-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Community for Android Developers and Device Users

2010-01-17 Thread theresa
Hi everyone, I wanted to let you know about Duarlander - it's a
community we created for Android developers and device owners. We
started it out to get users and developers in the same place, so
people who own Android devices can test out applications, ideally
finding potential issues and allowing you to fix them or at least know
of their existence before bad reviews appear on the market.

Once we get more people we'll be not only testing applications but
reviewing them as well. And of course, everyone is free to talk about
their own apps, talk about apps that they like or use a lot, talk
about their phones, discuss issues or questions that they have...etc.

Take a look and sign up if you're interested! The website is www.duarlander.com.
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] android.telephony.cdma.CdmaCellLocation

2010-01-17 Thread pHrail
Is this broken?  What im getting is this On GSM side you use Telephony
Manager, but with CDMA the debugger throws an error

TelephonyManager tm = (TelephonyManager) getSystemService
(Context.TELEPHONY_SERVICE);
CdmaCellLocation cd = (CdmaCellLocation) tm.getCellLocation();

int BSID = cd.getBaseStationId();

Throws an exception with CDMA stating
java.lang.ClassCastException: android.telephony.gsm.GsmCellLocation

Why is this throwing a Gsm exception?   Does anyone know how to get
this working on CDMA?  or is this broken completely in 2.01?  Any help
would be much appreciated.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Request is not from browser- need help

2010-01-17 Thread Testingjsp
Hi,

I am making a request from an android application to jsp server, when
running the jsp url from android browser,
server is able to maintain session and page navigation history. When
trying the same from android application it is not maintaining the
session.

Ie. if a user logs-in  his details are not maintained if it is from
android application.

Please can you help me on this.

Thanks in advance.

Regards,
tesingjsp.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Request is not from browser- need help

2010-01-17 Thread Testingjsp
Hi,

I am making a request from an android application to jsp server, when
running the jsp url from android browser,
server is able to maintain session and page navigation history. When
trying the same from android application it is not maintaing and
sessiion.

Ie. if a user logs-in  his details are not maintained if it is from
android application.

Please can you help me on this.

Thanks in advance.

Regards,
tesingjsp.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] VideoView background problems

2010-01-17 Thread jesusandeinstein
I'm trying to play a video, where the first and last frame of the
video match a static background image, and the video is triggered by
the accelerometer.
My problem is that i can't get the video view to have a transparent
background.  I've tried setting it to a transparent ping drawable, and
also as an alpha'd color, and in those instances there is always a
black box where the VideoView is.  I've tried to switch the
VideoView's visibililty on and off when the video plays, but I get a
flicker of the black background of the VideoView as the video starts/
completes.
Does anyone have any thoughts as to how I can achieve this?

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/background
VideoView
android:id=@+id/surface
android:layout_width=200px
android:layout_height=200px
android:layout_gravity=centerd/
/LinearLayout
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 13 Topics

2010-01-17 Thread anil karwankar
Hi There any one giving me the lead on how to use handwriting recognition on
android and any basic code for it please mail me akarwan...@gmail.com

Anil Karwankar

On Sat, Jan 16, 2010 at 4:37 AM, 
android-developers+nore...@googlegroups.comandroid-developers%2bnore...@googlegroups.com
 wrote:

   Today's Topic Summary

 Group: http://groups.google.com/group/android-developers/topics

- Creating custom button looks? #126343e2a69effdd_group_thread_0 [6
Updates]
- JOB OFFER--developing the Android SMS 
 application#126343e2a69effdd_group_thread_1[1 Update]
- Load image from Jar file #126343e2a69effdd_group_thread_2 [1
Update]
- Scrolling an EditText #126343e2a69effdd_group_thread_3 [1 Update]
- ClearTaskOnLaunch flag is not 
 working#126343e2a69effdd_group_thread_4[1 Update]
- sending around 1000 messages in batch using SMS 
 API#126343e2a69effdd_group_thread_5[1 Update]
- GL for Live Wallpaper? #126343e2a69effdd_group_thread_6 [5 Updates]
- Profiling Bitmap Memory #126343e2a69effdd_group_thread_7 [1 Update]
- Sprites VS 3D ? #126343e2a69effdd_group_thread_8 [2 Updates]
- Motorola Droid (possible android) multi-touch bug and how to
reproduce #126343e2a69effdd_group_thread_9 [3 Updates]
- CircularLayout for HorizontalScrollView 
 ?#126343e2a69effdd_group_thread_10[1 Update]
- WebKit : how to scoll content from JavaScript 
 ?#126343e2a69effdd_group_thread_11[1 Update]
- How to have fullscreen keyboard in portrait mode 
 ?#126343e2a69effdd_group_thread_12[1 Update]

   Topic: Creating custom button 
 looks?http://groups.google.com/group/android-developers/t/f6b31716fffee51c

theSmith chris.smith...@gmail.com Jan 15 11:11AM -0800 
 ^#126343e2a69effdd_digest_top

use an imagebutton





Tommy Hartz droi...@gmail.com Jan 15 02:18PM -0500 
 ^#126343e2a69effdd_digest_top

Ok so its shape will changed based on the image I assign to it?





Kevin Duffey andjar...@gmail.com Jan 15 12:30PM -0800 
 ^#126343e2a69effdd_digest_top

You can use a png I believe with transparency to produce any style
button
you want. I don't know if the hit-test for clicking on it will work
only on
the image part or the whole square width/height size of the button
itself
tho.






clark clarkd...@gmail.com Jan 15 01:14PM -0800 
 ^#126343e2a69effdd_digest_top

I had added a D-Pad image button to a game, and the transparent areas
still registered hits. This was using the 1.5 SDK so I am not sure if
any of the newer SDKs have changed this.






Moto medicalsou...@gmail.com Jan 15 01:22PM -0800 
 ^#126343e2a69effdd_digest_top

None of the SDK versions will automatically check what areas in the
button should be a hit area... it's just a plane W x H area

You will need to create a custom image button class and catch the
touch events and decide if it's a hit or not... :)

-Moto





theSmith chris.smith...@gmail.com Jan 15 03:06PM -0800 
 ^#126343e2a69effdd_digest_top

If you need multiple hit areas you may want to consider using several
images to create 'one' button. For example a d-pad could be 5
imagebuttons, u/d/l/r and the middle.

This approach will most likely save you quite a headache.

-theSmith




   Topic: JOB OFFER--developing the Android SMS 
 applicationhttp://groups.google.com/group/android-developers/t/9b6b0f8f71dac38d

Lorys Pognon pognonlo...@gmail.com Jan 16 12:01AM +0100 
 ^#126343e2a69effdd_digest_top

Hi
Your mail is not working. Your project is interesting and I would like
to
work on it.
this is my email - pognonlo...@yahoo.com

cheers

LP




   Topic: Load image from Jar 
 filehttp://groups.google.com/group/android-developers/t/54c4b2652927fa37

Rmac ry...@me.com Jan 15 02:58PM -0800 ^#126343e2a69effdd_digest_top

You can read a byte array via an inputstream using something like
myclass.getClassLoader().getResourceAsStream(imagePath) where
imagePath is the path to the image inside the jar.




   Topic: Scrolling an 
 EditTexthttp://groups.google.com/group/android-developers/t/1973f106698eaf99

Mark Wyszomierski mar...@gmail.com Jan 15 02:43PM -0800 
 ^#126343e2a69effdd_digest_top

Hi,

I have an EditText with an extremely long string. I'd like to scroll
the text in marquee fashion, automatically for the user. The best I
have is this:

private Runnable mAnimate = new Runnable() {
public void run() {
mMyEditText.scrollBy(3, 0);
mHandler.post(mAnimate);
}
};

Button btnStart = new Button();
btnStart.setOnClickHandler(new OnClickHandler() {
public void onClick(View view) {
mHandler.post(mAnimate);
}
}

it works, but is pretty choppy. Any better way to animate the text
scrolling? Should I drop this and try writing my own implementation of
EditText for this purpose? The chopiness may come from the fact that
the EditText is 

[android-developers] how can I tell when my activity/views is/are fully loaded for use?

2010-01-17 Thread Derrick
I'm in the process of working on an automated test suite for our
android app, and running into trouble waiting for activities to fully
load.  I can call getActivity, but just because it shows the activity
that I'm hoping to see in my test doesn't always seem to mean that the
activity's components are ready for use (fully loaded).  Looking
through the Activity API didn't turn anything up, and other methods
seem to invasive and have spoiled the tests initial state.  Does
anyone know if there's a way to ask the app or the VM if the current
activity is loaded?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Animating 2 objects at the same time

2010-01-17 Thread Mr Coffee
Hi guys,

I was looking at the animation sdk and I saw you can do multiple
animations on 1 object, such as rotating it and shrinking.

But say I want 1 window to transition in as another windows
transitions out, at the same time.  Is it possible to animate 2
windows at the same time?


Also how easy is it to define your own animations if you don't like
the ones built in to android?  I'm seeing if we should make the switch
to android or not, we are currently using QT to do our user interface.

Thanks,

Cory
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Preparing for Droid OpenGL issues

2010-01-17 Thread Michael
Hi Guys,

That's a nice list Philip. Just a couple of questions about it.

When you say RBGA_ and ALPHA_8 are you talking about the pixel
format of the gl context? What is the benefit of one over the other?

I had input problems until I put a wait in my onTouchEvent, but I was
wondering how the notify in onDraw helps?

What do you mean by the on demand drawing?


I had great trouble trying to get a stable frame rate even with all
the things listed, but my problems appeared to have been caused in
part by the rotation bug in 1.5. I occasionally got a good frame rate,
but then other times didn't. That's one reason I started using VBO's,
just to speed things up. As soon as I got 1.6 I could easily get a
decent frame rate.

It sounds like VBO's are broken on a lot of the newer phones so maybe
I should pull them out and see how it runs. With a bit of tweaking I
should be able to switch VBO's on and off in my code easily, so maybe
I could target individual phones if they really help with performance.

My code currently doesn't use Vector objects due to the gc involved
when they are created and destroyed. Anyone found a nice way of
getting round that?

Cheers,
Mike



On Jan 14, 11:34 pm, Philip philip.dese...@gmail.com wrote:
 My experience so far:
 - Create your textures in power of two and make sure you scale and
 clip them to the right ratio when you draw.
 - Don't stick to RBGA_ when you can do ALPHA_8 (text rendering)
 - Do whatever you can do in OnSurfaceCreated before you get called in
 OnSurfaceDraw
 - Avoid the GL11 context cast. Some things won't work e.g glColor4ub
 will compile but not work.
 - Balance your calls of enable and disable for each component draw
 your call into your scene graph.
 - Pre-allocate your nio buffers
 - Use DrawElements but for the simplest shapes of one vertice
 - Test on as many devices as you can. Just don't settle for the
 emulator e.g. non power of twos work on emulator but not on the phone.
 - If you can then use the on demand drawing.
 - Use the trick of putting a wait in the onTouchEvent call for 20ms
 and a notify in your onDraw to reduce the deluge of motion events you
 have to process. You can bypass onTouchEven and use a lower call to
 save some cycles as well.
 - Use texture atlas as much as you can e.g. to draw score and text or
 animations
 - Disable the fancy rendering options (DITHER_TEST etc...) Unless you
 crave a realistic rendering on textures.
 - If you draw in 2D, then disable the DEPTH_TEST
 - Don't forget the Bitmap.recycle() call when you are done binding
 your textures.
 - Avoid Object creation destruction (PointF Rect) in your rendering
 routines. GC calls will slow down your frame rate.
 - Preload your textures extensively. don't wait until you draw at the
 last minute to bind your textures. The lag is noticable if you do so
 it's better at app start up time.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] java.util.TimerTask on android

2010-01-17 Thread richf
Can I rely on Timer and TimerTask to work properly on Android?

I have a background Service with a single Timer, and I schedule
(possibly
multiple) TimerTask's via Timer.schedule()

At the beginning of each implemented TimerTask.run() method, I check
the
TimerTask.scheduledExecutionTime() and compare it with the current
time.
Sometimes things are fine, and the difference is a small number of
ms.  But
sometimes things are nowhere near fine, and the invocation of my
TimerTask is
*way* late -- like multiple hours late.

Can an Android phone go into some deep sleep mode when it doesn't
think
anything is going on that would cause a TimerTask to be so late?  Can
I not
reliably use TimerTask for scheduling events, and should I be using
some
Android-specific means (e.g. the AlarmManager, or a Handler) instead?

I've searched around a bit, and while I can find numerous posts
suggesting
Android-specific timing mechanisms, I have not found anything that
says that
java.util.TimerTask shouldn't be sufficient, the Android docs include
no kinds
of qualifiers, and this post (from Mark Murphy, who's written several
good
Android books) specifically mentions it as being available:

http://groups.google.com/group/android-developers/browse_thread/thread/42effa0b2deb1b49/74c79d801be765ad?lnk=gstq=TimerTask#

Thanks for any help anyone may be able to provide.

- Rich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Install apk files on Acer aspire one d250

2010-01-17 Thread dnalor
Hi,

I recently bought a Acer aspire one D250 laptop with dual boot XP/
Android.
I also have a HTC2 Google Phone and I know how to create android apps
and install them on the phone
using the apkInstaller application.
I would like to install the same apps on the Acer D250 to take
advantage of a larger screen but I don't know how!

If a developer has already done it or know how to do it that would
help me a lot.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Request is not from browser- need help

2010-01-17 Thread Testingjsp
Hi,

I am making a request from an android application to jsp server, when
running the jsp url from android browser,
server is able to maintain session and page navigation history. When
trying the same from android application it is not maintaining the
session.

Ie. if a user logs-in  his details are not maintained if it is from
android application.

Please can you help me on this.

Thanks in advance.

Regards,
tesingjsp.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 supporting higher resolutions and bigger screens? 7

2010-01-17 Thread Mr Coffee
Hi guys,

I want to make the switch to android but I need to make sure its
possible with bigger screens/resolutions.Currently we are
devleloping on an embeded device that has a 7 screen using Qt and its
running a Linux OS.

I remember reading somewhere that if you go passed a certain
resolution with android (which is quite small  3.5) it will cause
the applications to shrink and to have a black bar around them.

But then I saw videos of android running on tablet PC's that have
higher resolutions like 800x600 and the applications look fine with no
black bars around the applications, so how is this possible?

Will android run on bigger resolutions and screens and not have issues
with displaying the OS/ applications running on the OS?  Do I need to
do something special to enable android to run on a bigger resolution/
screen?

Thanks,

Cory
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Background processes for tracking system status

2010-01-17 Thread Narseo Vallina
Hi,

I'm kind of new in Android after moving from WiMo. I am considering
deploying an application to track the CPU load, the battery status and
other system variables by sampling them periodically. No UI is needed
at all and the daemon should be running for 5 days aprox and then kill
itself. However, I was looking about how to develop background process
and it's not still clear for me.

Should it be developed as a background process despite android can
kill the process in case computational resources are required? How can
I avoid this?

If anyone knows any tutorial or thread about how to do this kind of
background process, I will really appreciate it.

Many thanks,

N
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Disable History

2010-01-17 Thread Justinkauai
I would like to disable history and cache like Chromes Incognito mode.
Anyone have 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] Using a raw resource as a ringtone without transfering to SD card

2010-01-17 Thread Wh33t
Is it possible to use a raw resource as a ringtone/notification tone
without transfering it to the sd card first?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android Emulator

2010-01-17 Thread Naoufel
Hi,
I am using Eclipse 3.5.1 with Android SDK 2.1, and I have P IV 3 Ghz
with 1 Go DDR-RAM, it's cool to develop with it because it's easy to
learn and stable, but the problem lies in the Emulator (any of SDK
version : 1.5, 1.6, 2.0 and 2.1).
Is there any patch or update that can fix this problem?
Or can I migrate to X64 windows?
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] Dynamic layout changing

2010-01-17 Thread Mr Coffee
Hi guys,

Is it possible to for android to dynamically change its layout?  Like
for instance, if I want to be able to dynamically add a new button to
a toolbar and have the toolbar shrink/grow based on how many buttons
are in it, is it possible with android's current sdk?

Thanks,

Cory
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do I test the CDMA package/radio in the emulator

2010-01-17 Thread pHrail
I am wondering and have the same question, does the SDK Emulator
support CDMA or is there a way to switch the emulator to CDMA, i
notice cdma specific functions fail in the emulator. :(  If you've
figured this out let me know thanks

On Dec 1 2009, 6:23 am, Bryan piusve...@gmail.com wrote:
 Hi,

 My application makes use of cell tower info, specifically the CID for
 GSM. I'm able to test this on my G1, but I don't have access to a
 Droid phone to test the same functionality, baseStationId, for CDMA.
 How can I test this in the emulator so that I can support Droid
 phones?

 Thank you!
 Bryan
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handling getSupportedPreviewSizes() for Camera use on sdk 2.0 and up

2010-01-17 Thread Juan
Disclaimer: I am new to Android development so if this topic deserves
to be bumped down to the Newbie group I'll gladly repost there.

Now for some background...

I intend to write some apps that will make use of the the hardware
camera. I purchased and now have a Nexus One to develop with, but I'm
finding that most of the example apps across the web and in the API
demos which use camera fail on the Nexus with a force close error
resulting from calling setPreviewSize with invalid dimensions
(presumably hardcoded for G1/Dev1 specs). After some quick research I
discovered the getPreviewSize / setPreviewSize pairing for properly
setting the camera on sdk1.5 - 1.6, and indeed I was able to get the
camera preview to function in 1.6 APIDemo by substituting:

parameters.setPreviewSize(w, h);

with:

parameters.setPreviewSize(parameters.getPreviewSize().width,
parameters.getPreviewSize().height);

inside of surfaceChanged()


So this is a pretty quick fix for sdk 1.5-1.6, or rather its what
should have been used all along as a method of ensuring you support
future unknown camera specs (although I'm sure there's more to it than
that as the resulting preview had a bad aspect ratio on account of the
status bar still taking screen real estate). But where does this leave
us going forward with development on sdk 2.0, 2.1, and future
releases?

The camera api in 2.0 gives us getSupportedPreviewSizes(), but whereas
the previous api had us comfortably in a one-to-one relationship
between getPreviewSize  setPreviewSize, 2.0, 2.1 can potentially
return several resolutions. So here's my real meat and potatoes
question: Just as the get/set methods were the best practices camera
solution for camera previews in 1.5, 1.6 what should be the similar
best practice to handle multiple camera resolutions from
getSupportedPreviewSizes in 2.0 and up?

Off the top of my head I thought of calling getSupportedPreviewSizes()
at the apps first run after install/upgrade and then storing the list
in preferences or another suitable place where a settings activity has
access to it and then iterating the list (still in that first run) to
chose an appropriate default and begin to use it. As I said in the
disclaimer I'm still new so I don't know how doable that is or if it
might be a bad choice for reasons unknown to me.

Opinions?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 animate view apearance smoothly within layout.

2010-01-17 Thread Alexander Racheev
I have a custom View inherited from LinearLayout. It contains a Button
and a EditText. EditTest has initial visibility set to GONE. When
Button is pressed I want EditText to appear with animation effect. So
I've made an ScaleAnimation and when Button is pressed I set
EditText#setVisibility(VISIBLE) and start the animation. The problem
is that it takes 100% of space and animation is performed inside those
bounds. So when there are more View's placed below they are moved down
immediately, but I want them to move slowly as the animation
progresses. Is there any way to do this?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Alberto
UPDATE: At first this was going to be just a call to fix the updating
process, but I've realized is not just the updates Google needs to
take control of.

Now is the time to address the fragmentation issue that's starting to
plague the platform, before there are hundred of handsets and the
whole thing spins out of control. I believe we've seen enough evidence
that the updating process through the carriers doesn't work, many
phones are left behind and the whole thing is a mess, today we're
already talking about the next update (2.5 Froyo?) while there are
phones out there stuck on 1.5, the fragmentation is only going to get
worse as we move on.

Imagine when 3.0 gets here, and we have hundreds of handsets with 1.5,
1.6, 2.1, 2.5, 2.7, 3.0 some with Sense UI, MotoBLUR, etc. It's going
to be hell for developers and even more confusing for consumers,
driving everybody away from the platform. You guys need to take
control of this at least for the Google Experience phones. I'm not
sure if Google updating the handsets directly would bring legal issues
with the carriers/manufacturers, if it would, please enlighten me.

So how do we fix this? I'm pretty sure you guys have already thought
about this and I wouldn't be surprised if a solution was coming soon,
since it''s such an obvious problem. However, here's my two cents, the
solution is very simple, a desktop application for syncing/updating/
media playback/android market/amazon mp3, lets call it Android HQ or
Android Home for the sake of argument.

The updates would be available to consumers as soon as they're
released, instead of months, years, or never depending on carriers.
This way most users would've the latest version as well as the
developers would have the latest SDK, developers would be able to take
advantage of the new APIs each updates bring and innovate faster,
instead of spending time supporting older versions.

Android HQ would also address the next two biggest problems with the
platform, they're: media ecosystem and media syncing/backing. Also,
the Android Market badly needs a desktop client.

The fragmentation issue is the biggest obstacle the platform is facing
today and it will most likely decide its success, I've sensed a couple
of times that Google stance on these issues is to let manufactures/
carriers make the decisions on a phone to phone basis (multi-touch
anyone?) but that won't work, it'll eventually slow the momentum we
have now and kill the platform (WinMo?) Google needs to have a more
hands-on approach to Android if it wants it succeed.

Anyway, the guys/gals in the Android Team want the platform to succeed
as much as me, I'm sure they've given this a lot of thought, and a
solution is probably on the works.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] drawing word-wrapped text at arbitrary position on a canvas

2010-01-17 Thread Samsyn
Sorry if this has been covered, but I have been googling for 3 hours
with no success, so here goes.

Please assume that while being new to android, I believe I know the
basics and have successfully published a nice graphical game (Tairu).
I know about inflating an xml layout and instantiating views that
work.

For my current project, I really just want something similar to the
Windows 'DrawText' function where it will draw a bit of a text inside
an arbitrary rectangle of the surface, and do word wrap within that
rectangles boundaries.  That's what I really WANT, but I can't find
any form of drawText that will wrap.

So, while that's what I WANT, I can accept the thought of
programmatically instantiating a TextView (which wraps beautifully).
But I still need to be able to provide the rectangle, which is highly
dynamic.  (which is why I want to call a form of drawText inside of my
onDraw method).  In this particular case, I have something which is
static to a particular view instance (I mean, the View becomes
visible, the position is set, and does not change after that.  but the
text position is dependent on game state and cannot be pre-determined
inside an XML layout).  So in this one case, I could afford the
expense of runtime recalculation of the layout when the view is
displayed.

OK, fine.  So I do something like this:

enlistLayout = (AbsoluteLayout) mWarPath.findViewById
( R.id.main_frame );
mEmpireDescriptionView = new TextView( 
enlistLayout.getContext() );
enlistLayout.addView(   mEmpireDescriptionView,
mEmpireDescriptionRect.width(),
mEmpireDescriptionRect.height() 
);
mEmpireDescriptionView.layout(  mEmpireDescriptionRect.left,
mEmpireDescriptionRect.top,
mEmpireDescriptionRect.right,
mEmpireDescriptionRect.bottom );

Pretend you didn't see 'AbsoluteLayout' there, I am desperate and have
tried all possible layout classes

main_frame is defined in my main XML layout (it is the outermost
layout, fills the parent, and, as I said, I've tried all the offered
layouts)

With this code, the textView appears, but along the top of the layout,
and not using the width I provided either.

Adding, out of desperation,

   enlistLayout.requestLayout();

makes no difference.  In fact, so far, NOTHING has made any
difference.  So I thought, ok, while this seems like a useful thing to
be able to do, I can accept if it can't.  I accept that it is
impossible to provide dimensions in advance and that you have to
override the measure and layout callbacks then requestLayout and in
your overrides, force the final layout for the TextView.

Of course, that is completely unacceptable for my FIRST desire (a
drawText that wraps to a rectangle, called from onDraw as needed).
But the point is I feel something like that OUGHT to work, and it
doesn't, so clearly this is MY fault.

Getting back to what I WANT, I guess I can do it myself by repeated
calls to measure text and parsing the string for spaces until I get
the N characters which fit on the first line, then repeat for
additional lines, calling a normal drawText for each line (and using
textMetrics to determine the vertical offset to the next line.)

But why wouldn't that method already exist?  I promise not to fill the
screen with a zillion calls, and/or to cache pre-rendered text on some
bitmap somewhere if antialiased drawText is too expensive to repeat
frequently.

Where is my head going wrong?

And yes, feel free to weigh in with comments suggesting I just use XML
layout, but tell me how I can change the position and size of the text
view in real time then.

Thanks!

- Dan



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2010-01-17 Thread choffman
Hi, I had the same problem on Fedora 12.
I added a new site- http://dl.google.com/android/repository/repository.xml
, selected it and it worked.
Force https in the settings had no effect.

Strange thing though. When I reopen AVD, the new http site is checked,
but AVD is still trying to go to
the https site. So I have to deselect and reselect the site check
boxes. IDK, it works.

On Jan 4, 9:31 am, teryz teryzpl...@gmail.com wrote:
 I have a problem using Android SDK Updater (revision 4). For the
 record I'm under win xp 32-bits, jdk 1.6.
 I set up the Force https://... sources to be fetched using http://
 This seemed to work fine but as I am behing a (corporate) proxy I also
 filled the proxy server and port settings, however this proxy requires
 a user/password and I can't find a way to give Android Updater a proxy
 authentication as no authentication box pops up when I try downloading
 updates and I have a
  response code: 407 for 
 URL:http://dl-ssl.google.com/android/repository/repository.xml;
 when refreshing sources.

 If someone can help...

 Teryz.

 On 4 déc 2009, 09:30, Cédric Berger cedric.berge...@gmail.com wrote:

  2009/10/29 Cédric Berger cedric.berge...@gmail.com:

   2009/10/29 Cédric Berger cedric.berge...@gmail.com:
   I can't download through a proxy requiring authentication.

   I had to select force http, and put user/password for proxy in JVM
   command line. This way I can get the list of available updates.
   But when trying to download, it stays stuck (looks like it waits for
   user/password, but no prompt).

   Oh in fact it is ok. Through a second proxy (with authentication too)
   it worked. Looks like the first proxy (a bit more restrictive) blocked
   the downloading url. (I could not check why since the URL is not
   shown)

  What is the download URL ?
  Because I still have problems with the proxy I use. I can download
  updates metadata, but when trying to install, it hangs.
  I suspect the proxy blocks the download URL (but 
  nothttp://dl-ssl.google.com/android/repository/repository.xml)... how
  can I check what this download url is  (so I could ask for correction
  in the proxy rules) ?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Permission Denied when using geo fix

2010-01-17 Thread tony95
I am trying to test a GPS app on the 2.0.1 emulator.  When I start the
terminal emulator and enter

geo fix -121.45356 46.51119 4392

it returns permission denied.

When I run my app nothing happens.  No error, but none of the listener
callbacks fire.  I do not see a GPS indicator.

Anyone have an idea what I need to do to get past this problem?

Thanks,
Tony
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] EditText := size of the text content

2010-01-17 Thread Helloween
Hi All,

I am beginner in Android development. How do I restrict the size of
text ( e.g. I just want 3 character in edit text)?
Also How do I align text in center within Edittext?

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

[android-developers] Re: drawing word-wrapped text at arbitrary position on a canvas

2010-01-17 Thread skink


On Jan 17, 4:26 am, Samsyn d...@synthetic-reality.com wrote:
 For my current project, I really just want something similar to the
 Windows 'DrawText' function where it will draw a bit of a text inside
 an arbitrary rectangle of the surface, and do word wrap within that
 rectangles boundaries.  That's what I really WANT, but I can't find
 any form of drawText that will wrap.


 - Dan


use one of android.text.Layout subclass

pskink
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TableLayout will not draw new row addition

2010-01-17 Thread MCON Dev
I have  TableLayout defined in the main.xml. Simple, 1 header row and 1 data
row.
TableLayout android:id=@+id/*reportsTable*
android:layout_width=fill_parent
android:layout_height=wrap_content
TableRow
TextView android:id=@+id/DateOfReport
android:text=Report Date
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
TextView android:id=@+id/HeightHeading
android:text=Height
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
TextView android:id=@+id/WeightHeading
android:text=Weight
android:textSize=14px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/TableRow
TableRow android:id=@+id/r1
android:layout_width=wrap_content
android:layout_height=wrap_content
LinearLayout android:orientation=horizontal
android:layout_width=fill_parent
android:layout_height=wrap_content
EditText android:id=@+id/dateOfReport
android:text=DD/MM/
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
Button android:id=@+id/changeReportDate
android:text=...
android.textSize=12px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/LinearLayout
EditText android:id=@+id/height
android:text=inCmOrInch
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
EditText android:id=@+id/weight
android:text=inKgOrPound
android:textSize=11px
android:layout_width=wrap_content
android:layout_height=wrap_content /
/TableRow


Now in the code I have a function defined that adds a new row.


private TableRow createNewTableRow(TableRow newRow){
newRow.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
LinearLayout newLinearLayout = new LinearLayout(appActivity) ;
newLinearLayout.setOrientation(LinearLayout.HORIZONTAL);
newLinearLayout.setLayoutParams(new
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)) ;
EditText newReportDate = new EditText(appActivity) ;
newReportDate.setTextSize((float) 11.0);
newReportDate.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
Button changeReportDate = new Button(appActivity) ;
changeReportDate.setTextSize((float) 12.0);
changeReportDate.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
changeReportDate.setText(...);
EditText newHeight = new EditText(appActivity) ;
newHeight.setTextSize((float) 11.0);
newHeight.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;
EditText newWeight = new EditText(appActivity) ;
newWeight.setTextSize((float) 11.0);
newWeight.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)) ;

newRow.addView(newLinearLayout);
newLinearLayout.addView(newReportDate);
newLinearLayout.addView(changeReportDate);
newRow.addView(newHeight);
newRow.addView(newWeight);
return newRow ;
}



Now, in the main code I call this function

if (v == (View) *addReportWidget*) {
TableRow newRow = new TableRow(appActivity, null);
*reportsTableWidget*.addView(createNewTableRow(newRow));
reportsTab.invalidate();
}

Now, the new row just wont show up. If I run the code in the debugger, and
watch *reportsTableWidget*.mChildren, everytime I click on *addReportWidget*,
a new entry shows up in the debugger watch variables.

What am I missing. Very frustating, please advice me.

Regards
Siddharth
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Preparing for Droid OpenGL issues

2010-01-17 Thread Robert Green
I don't think more than 2 phones had issues with VBOs and I believe
they have been resolved (at least the Cliq problem was resolved.)  I
think they are safe to use unless reported otherwise and then you
could just check the model of phone and not use them on that one
device.  It's easy to write a model data class that holds buffers and
is responsible for loading VBOs and binding to buffers or VBO ids and
drawing.  I do that.

To determine if a device has VBO support, you have to parse the GL
version string and if it's 1.1 or greater or there exists
vertex_buffer_object extension, you can use them, unless it's an
original model of CLIQ, but those have been updated so you maybe don't
need to worry about it.

I still have bad touch lag problems on 1.5/1.6 but they are resolved
in 2.x.  I do Thread.sleep(20) at the end of my onTouchEvent but it
doesn't help as much as I'd like it to.  I still get a bad FPS drop.

I use javax.math.Vector3f all over the place.  I never allocate in
main loop code, though.  If a class requires vector math, I usually
instantiate a few aux vectors like this:

private Vector3f vAux1 = new Vector3f();
private Vector3f vAux2 = new Vector3f();

public boolean checkSomeCollision(Sphere s, AABB box) {
  Vector3f direction = vAux1;
  direction.set(...
  direction.sub(...

I have a robust system in now and have found that just a few aux
vectors works with any collision detection or physics algorithm I've
used so far.  You don't need a fancy pooling solution and in fact, one
would most likely require more cycles to work with and manage, but if
you really want efficient code you'll have to move it into native
anyway and then you get the luxury of a vector struct and operator
overloading which makes the code a lot easier to work with.

On Jan 15, 12:17 pm, Michael nicholls...@googlemail.com wrote:
 Hi Guys,

 That's a nice list Philip. Just a couple of questions about it.

 When you say RBGA_ and ALPHA_8 are you talking about the pixel
 format of the gl context? What is the benefit of one over the other?

 I had input problems until I put a wait in my onTouchEvent, but I was
 wondering how the notify in onDraw helps?

 What do you mean by the on demand drawing?

 I had great trouble trying to get a stable frame rate even with all
 the things listed, but my problems appeared to have been caused in
 part by the rotation bug in 1.5. I occasionally got a good frame rate,
 but then other times didn't. That's one reason I started using VBO's,
 just to speed things up. As soon as I got 1.6 I could easily get a
 decent frame rate.

 It sounds like VBO's are broken on a lot of the newer phones so maybe
 I should pull them out and see how it runs. With a bit of tweaking I
 should be able to switch VBO's on and off in my code easily, so maybe
 I could target individual phones if they really help with performance.

 My code currently doesn't use Vector objects due to the gc involved
 when they are created and destroyed. Anyone found a nice way of
 getting round that?

 Cheers,
 Mike

 On Jan 14, 11:34 pm, Philip philip.dese...@gmail.com wrote:



  My experience so far:
  - Create your textures in power of two and make sure you scale and
  clip them to the right ratio when you draw.
  - Don't stick to RBGA_ when you can do ALPHA_8 (text rendering)
  - Do whatever you can do in OnSurfaceCreated before you get called in
  OnSurfaceDraw
  - Avoid the GL11 context cast. Some things won't work e.g glColor4ub
  will compile but not work.
  - Balance your calls of enable and disable for each component draw
  your call into your scene graph.
  - Pre-allocate your nio buffers
  - Use DrawElements but for the simplest shapes of one vertice
  - Test on as many devices as you can. Just don't settle for the
  emulator e.g. non power of twos work on emulator but not on the phone.
  - If you can then use the on demand drawing.
  - Use the trick of putting a wait in the onTouchEvent call for 20ms
  and a notify in your onDraw to reduce the deluge of motion events you
  have to process. You can bypass onTouchEven and use a lower call to
  save some cycles as well.
  - Use texture atlas as much as you can e.g. to draw score and text or
  animations
  - Disable the fancy rendering options (DITHER_TEST etc...) Unless you
  crave a realistic rendering on textures.
  - If you draw in 2D, then disable the DEPTH_TEST
  - Don't forget the Bitmap.recycle() call when you are done binding
  your textures.
  - Avoid Object creation destruction (PointF Rect) in your rendering
  routines. GC calls will slow down your frame rate.
  - Preload your textures extensively. don't wait until you draw at the
  last minute to bind your textures. The lag is noticable if you do so
  it's better at app start up time.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

[android-developers] Gridview loads in reverse on onConfigurationChanged

2010-01-17 Thread Mike M
Hey everyone,

I have a gridview of images that I load from the internet.  When the
phone rotates (or some other config change), onConfigurationChanged()
is called.  When that happens, the items in the gridview are reversed
(meaning, the 1st image is the last; they are in reverse order).

Does anyone know why this is or how to change it?   I'm hoping someone
has run into this before...


Sorry if I don't share any code.  I don't think It'd help; it's more
of a conceptual question.


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: drawing word-wrapped text at arbitrary position on a canvas

2010-01-17 Thread Samsyn
So, having spent the obligatory five hours trying to figure out how
android wanted me to do it (other than just don't do that!), I ended
up writing this bit of code to do what I actually WANTED.

It's not too bad except for the one section which needs to be made a
lot more efficient.

In case it helps anyone else, I post it here.  I would still like to
hear about the 'right way' to do it.

public void drawTextInRect( Canvas canvas, Paint paint, Rect r,
CharSequence text ) {
// ok, I have to do it all myself, pity me!

// initial text range and starting position
int start = 0;
int end   = text.length() - 1;
float x = r.left;
float y = r.top;
int allowedWidth = r.width();   // constrain text block within 
this
width in pixels
if( allowedWidth  30 ) {
return;  // you have got to be kidding me!  I can't 
work with
this!  You deserve worse!
}

// get the distance in pixels between two lines of text
int lineHeight = paint.getFontMetricsInt( null );

// emit one line at a time, as much as will fit, with word wrap 
on
whitespace.
while( start  end ) {
int charactersRemaining = end - start + 
1;
int charactersToRenderThisPass  = charactersRemaining;  
//
optimism!
int extraSkip   = 0;

// This 'while' is nothing to be proud of.
// This should probably be a binary search or more 
googling to
// find character index at distance N pixels in string
while( charactersToRenderThisPass  0
paint.measureText(text, start, start
+charactersToRenderThisPass )  allowedWidth ) {
// remaining text won't fit, cut one character 
from the end and
check again
charactersToRenderThisPass--;
}

// charactersToRenderThisPass would definitely fit, but 
could be in
the middle of a word
int thisManyWouldDefinitelyFit = 
charactersToRenderThisPass;
if( charactersToRenderThisPass  charactersRemaining ) {
while( charactersToRenderThisPass  0
 !Character.isWhitespace( 
text.charAt( start
+charactersToRenderThisPass-1) ) ) {
charactersToRenderThisPass--;   // good 
bye character that would
have fit!
}
}

// Now wouldn't it be nice to be able to put in line 
breaks?
int i;
for( i=0; icharactersToRenderThisPass; i++ ) {
if( text.charAt( start+i ) == '\n' ) {  // um, 
what's unicode for
'isLineBreak' or '\n'?
// cool, lets stop this line early
charactersToRenderThisPass = i;
extraSkip = 1;  // so we don't start 
next line with the lineBreak
character
break;
}
}

if( charactersToRenderThisPass  1  (extraSkip == 0)) 
{
// no spaces found, must be a really long word.
// Panic and show as much as would fit, 
breaking the word in the
middle
charactersToRenderThisPass = 
thisManyWouldDefinitelyFit;
}

// Emit this line of characters and advance our offsets 
for the
next line
if( charactersToRenderThisPass  0 ) {
canvas.drawText( text, start, 
start+charactersToRenderThisPass, x,
y, paint );
}
start+= charactersToRenderThisPass + extraSkip;
y+= lineHeight;

// start had better advance each time through the 
while, or we've
invented an infinite loop
if( (charactersToRenderThisPass + extraSkip)  1 ) {
return; // better than freezing, I guess.  I am 
a coward.
}
}

// write google a letter asking why I couldn't find this as an
existing function
// after doing a LOT of googling.  Is my phone going to explode?
}
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To 

[android-developers] Re: Android Pirate Site

2010-01-17 Thread Edward Falk

 Now with that out of the way you can contact the owner of the site and ask
 them to remove your app.   If they don't comply you probably will need to
 lawyer up to get any satisfaction and in the end you will probably not be
 able to collect.   All you get is a lawyer bill.

That's what the DMCA is for.  Sent a notice to the site and they're
legally required to take your stuff down.  If they don't, sent a
notice to their provider, and they're legally required to take the
site down.

Now, if they want to fight you, they can file a counter-notice, and
then it has to go to court, but in practice, if they're genuinely
guilty, it doesn't go that far.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: drawing word-wrapped text at arbitrary position on a canvas

2010-01-17 Thread skink


On Jan 17, 10:25 am, Samsyn d...@synthetic-reality.com wrote:
 So, having spent the obligatory five hours trying to figure out how
 android wanted me to do it (other than just don't do that!), I ended
 up writing this bit of code to do what I actually WANTED.

 It's not too bad except for the one section which needs to be made a
 lot more efficient.

 In case it helps anyone else, I post it here.  I would still like to
 hear about the 'right way' to do it.

as i said earlier: use android.text.Layout e.g. StaticLayout and its
draw(Canvas) method

pskink
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Alessandro Pellizzari
Il giorno sab, 16/01/2010 alle 20.06 -0800, Alberto ha scritto:

 So how do we fix this? I'm pretty sure you guys have already thought
 about this and I wouldn't be surprised if a solution was coming soon,
 since it''s such an obvious problem. However, here's my two cents, the
 solution is very simple, a desktop application for syncing/updating/
 media playback/android market/amazon mp3, lets call it Android HQ or
 Android Home for the sake of argument.
 
 The updates would be available to consumers as soon as they're
 released, instead of months, years, or never depending on carriers.
 This way most users would've the latest version as well as the
 developers would have the latest SDK, developers would be able to take
 advantage of the new APIs each updates bring and innovate faster,
 instead of spending time supporting older versions.

I quite like your idea (but please make it cross-platform, or at least
for Windows, OSX and Linux, and open source), even if I prefer mounting
the SD card as a mass storage and manage it myself.

But I think the main problem today with manufacturers upgrades is with
kernel drivers.

If all the kernel drivers were open source, I think now we could have
them integrated in the official kernel, and upgrades could be smooth.

But a recent implementation of Android 2.0 for the Samsung Galaxy had to
revert to backport Android 2.0 to 2.6.27 kernel because of missing
driver sources.

It is the same problem plaguing Linux on the desktop. We need hardware
developers to release hardware tech specs.

Bye.


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

Re: [android-developers] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Ray Benjamin


There is also the issue of phone manufacturers that want to customize 
Android in order to control the user experience. Since it is an open 
source application, they are free to do as they wish, even if it means 
running a version or two behind the official Android release. This is 
common in the open source world, for instance, KnoppMyth and other 
specialized distributions of Linux tend to lag behind the official releases.


What might be useful is to come up with a finite range of releases that 
developers should be expected to support. It also might be a good idea 
to create some kind of notification system that alerts developers as to 
changes in Android that might affect their applications. Google could 
set up the marketplace so they could get a list of applications, and 
hence developers, that use given features. When those features are going 
to be changed in an upcoming release, an automatic email could be sent 
to alert the developers. That might make it easier to ensure our 
applications aren't tripped up by the latest release.


It might eventually be possible to introduce a compatibility mode so 
older applications could run in the latest versions of Android, but I 
suspect that is a ways off since it is likely memory intensive.


It's a complicated issue.

Alessandro Pellizzari wrote:

Il giorno sab, 16/01/2010 alle 20.06 -0800, Alberto ha scritto:

  

So how do we fix this? I'm pretty sure you guys have already thought
about this and I wouldn't be surprised if a solution was coming soon,
since it''s such an obvious problem. However, here's my two cents, the
solution is very simple, a desktop application for syncing/updating/
media playback/android market/amazon mp3, lets call it Android HQ or
Android Home for the sake of argument.

The updates would be available to consumers as soon as they're
released, instead of months, years, or never depending on carriers.
This way most users would've the latest version as well as the
developers would have the latest SDK, developers would be able to take
advantage of the new APIs each updates bring and innovate faster,
instead of spending time supporting older versions.



I quite like your idea (but please make it cross-platform, or at least
for Windows, OSX and Linux, and open source), even if I prefer mounting
the SD card as a mass storage and manage it myself.

But I think the main problem today with manufacturers upgrades is with
kernel drivers.

If all the kernel drivers were open source, I think now we could have
them integrated in the official kernel, and upgrades could be smooth.

But a recent implementation of Android 2.0 for the Samsung Galaxy had to
revert to backport Android 2.0 to 2.6.27 kernel because of missing
driver sources.

It is the same problem plaguing Linux on the desktop. We need hardware
developers to release hardware tech specs.

Bye.


  


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

[android-developers] Implementing BaseInputConnection using SpannableStringBuilder

2010-01-17 Thread jamesc
I'm attempting to work out how BaseInputConnection works using the
SpannableStringBuilder as the Editable and have this code:

public class MyInputConnection extends BaseInputConnection {

private static final String DEBUG_TEST = new String(ABCDEF);
private SpannableStringBuilder mEditable;

public CrosswordInputConnection(View targetView, boolean fullEditor)
{
super(targetView, fullEditor);
}

public Editable getEditable() {
if (mEditable == null) {
mEditable = (SpannableStringBuilder)
Editable.Factory.getInstance().newEditable(DEBUG_TEST);
}
return mEditable;
}

public boolean commitText(CharSequence text, int newCursorPosition) {
mEditable.append(text);
return true;
}

public ExtractedText getExtractedText(ExtractedTextRequest request,
int flags) {
ExtractedText ext = new ExtractedText();
ext.text = mEditable.toString();
return ext;
}
}

What I'm having trouble understanding is where the cursor is set in
the Editable/SpannableStringBuilder.  The mEditable.mText member
contains 'ABCDEF' (as per the getEditable call).  When the soft
keyboard pops up, and I press 'x' this breaks into the commitText()
method above.  The mEditable.append(text) (of the 'x' char) applies
the 'x' to mEditable.mText[0], rather than at the end (which is what
one would expect with an append() call).  So, clearly I'm missing
something here with regards to the placement of a cursor or somesuch
within the Editable object.  I'd appreciate a push 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] Re: how to make two apks install at the same place

2010-01-17 Thread guiha...@gmail.com
Thanks, very good document.

I have a question: Note that in order to retain security, only two
applications signed with the same signature (and requesting the same
sharedUserId) will be given the same user ID

Does this means that its impossible to have 3 or more applications
sharing the same user id?

thx

   guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 a activity or a view that can be used by any application

2010-01-17 Thread guiha...@gmail.com
Hi,

I'm not yet familiar with the android terms...

I have a library (a view) that has a simple activity. How can i make
it available to any application?

I can explain in details: i have a virtual machine that is composed of
0.1% java code and 99.9% c code. Basically, the java code process
events and sends to the vm.

Now an user may deploy its application. The idea is to have something
like this:

  Intent intent = new Intent(android.intent.action.MAIN);
  intent.setClassName(packageName, className);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
 Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
  startActivity(intent);
  return 0;

How can i make the activity available to any application so that the
code above would work?

best regards

guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Quality Software Solutions Provider

2010-01-17 Thread soft buzz
Hi,

We provide IT services in a dynamic environment where business and
technology strategies converge into one objective of delivering “Value” to
the business. We are total-technology solution provider with capabilities in
application development, maintenance and SQA, product engineering, offshore
outsourcing and web services.

Our goal with every project we undertake is to create the ever-lasting
experience that reflects in the value provided through tangible and
measurable results. We achieve this goal by dual strength of our experience
and expertise.

Whether you need an open source highly portable distributed multi
architecture application or a desktop solution, we have all what it takes to
deliver the same.

We have excellent competencies in IT services listed below:

Mobile Applications
-- iPhone SDK Applications
-- iPhone Game Development
-- Android Applications
-- Android Game Development
-- BlackBerry Applications
-- BlackBerry Game Development
-- PDA Applications
-- Compatible Web Application

Microsoft Platform
-- Office Development
-- Windows Applications
-- Web Based Solutions
-- SharePoint Application

Open Source
-- CMS Solutions
-- CRM Solutions
-- e-Commerce Application
-- Blog
-- Forum
-- Social Networking
-- Web Based Directory

Multimedia Solutions
-- 2D/3D Animation
-- Game Development
-- Audio/Video Streaming
-- Portfolio  Presentation

Graphics Designing
-- Web Designing
-- Logo Design
-- Banner Design
-- Stationary Design

Quality Control
-- Functional Testing
-- Performance Testing
-- Compatibility Testing
-- Usability Testing
-- System and User Acceptance Testing

Following are the technical skills B Solutions has adopt to make platform
for state of the art product and application development:

Languages:
.Net, PHP, Java, C++,C#, Cocoa, C,Win32 API's, UML,XML, XSL, XHTML, Perl,
Scripting languages

Application /Web Servers:
Microsoft IIS, Apache Tomcat, Oracle Application Server, SharePoint, Adobe
Multimedia Server, Web logic, Web sphere

Databases:
MSSQL Server, MySQL, Postgres, Oracle, DB2, Sybase

Web:
ASP.Net, PHP, AJAX, JSP, Servlets

Open Source:
JOOMLA, MAMBO, OsCommerce, Zen Cart, CreLoaded, oSC Max, PHPFox, Word press

3rd Party Tools:
Telerik Controls, Google Map, Google Calendar, Google Spreadsheet, MapQuest.


Payment Gateway:
PayPal, PayPal Pro, Google Checkout, Authorize.Net, EGold.

Shipping Tools:
UPS, USPS, Fedex.

Graphics  Multimedia:
Flash, Flex, Adobe Photoshop, Illustrator, Corel Draw, 3D Max Studio, swish,
QuarkXPress, Sound forge, Gif Animator

Programming Tools:
MS Visual Studio, Microsoft Reporting Service, Eclipse, Borland J Builder,
Crystal reports.

Software Engineering Tools:
MS Visio, Enterprise Architect, ER Studio, Microsoft Project Rational Suite,
Bugzilla

Testing/Profiling Tools:
Load runner, Win runner

Configuration Management:
CVS, Rational Clear Case, VSS

Outsourcing to us , essentially offers the following key advantages of
working:

-- Risk Sharing
-- Radically Low Prices
-- Availability of Internationally Accepted High Quality Professionals
-- Strict Adherence to Global Quality Standards
-- Smooth and Seamless Delivery Process
-- Quick Scalability to Ramp-up Operations
-- Time-zone Difference Working in Favor for Quicker Turn Around
-- Similar Cultural and Professional Working Conditions
-- Most Importantly- Proven Track Record of Working with Global Companies

Thanks for your time and interest.

Regards,

-buzz
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 using AudioRecord in Motorola Milestone

2010-01-17 Thread Omer Gilad
My application uses AudioRecord to record streaming voice. On ANY
OTHER Android device it initializes properly and works great,
excluding Motorola Milestone, which force closes and the log shows:

01-17 14:08:41.124: DEBUG/AudioHardwareMot(1059):
AudioMgr:AudioHardwareMot::openInputStream enter
01-17 14:08:41.124: DEBUG/AudioHardwareMot(1059):
AudioMgr:AudioStreamInMot::set(0xaf00, 4, 1, 10, 8000)
01-17 14:08:41.124: ERROR/AudioRecord(2190): AudioFlinger could not
create record track, status: -22
01-17 14:08:41.124: ERROR/AudioRecord-JNI(2190): Error creating
AudioRecord instance: initialization check failed.
01-17 14:08:41.124: ERROR/AudioRecord-Java(2190):
[ android.media.AudioRecord ] Error code -20 when initializing native
AudioRecord object.

Sometimes it happens, sometimes it doesn't, and looking into the
platform source code doesn't clarify it. It returns with BAD_VALUE
error code. The code in AudioFlinger.cpp that does that:

[CODE]spIAudioRecord AudioFlinger::openRecord(
2890 pid_t pid,
2891 int input,
2892 uint32_t sampleRate,
2893 int format,
2894 int channelCount,
2895 int frameCount,
2896 uint32_t flags,
2897 status_t *status)
2898 {
2899 spRecordThread::RecordTrack recordTrack;
2900 spRecordHandle recordHandle;
2901 spClient client;
2902 wpClient wclient;
2903 status_t lStatus;
2904 RecordThread *thread;
2905 size_t inFrameCount;
2906
2907 // check calling permissions
2908 if (!recordingAllowed()) {
2909 lStatus = PERMISSION_DENIED;
2910 goto Exit;
2911 }
2912
2913 // add client to list
2914 { // scope for mLock
2915 Mutex::Autolock _l(mLock);
2916 thread = checkRecordThread_l(input);
2917 if (thread == NULL) {
2918 lStatus = BAD_VALUE;
2919 goto Exit;
2920 }
2921
2922 wclient = mClients.valueFor(pid);
2923 if (wclient != NULL) {
2924 client = wclient.promote();
2925 } else {
2926 client = new Client(this, pid);
2927 mClients.add(pid, client);
2928 }
2929
2930 // create new record track. The record track uses one
track in mHardwareMixerThread by convention.
2931 recordTrack = new RecordThread::RecordTrack(thread,
client, sampleRate,
2932format,
channelCount, frameCount, flags);
2933 }
2934 if (recordTrack-getCblk() == NULL) {
2935 // remove local strong reference to Client before
deleting the RecordTrack so that the Client
2936 // destructor is called by the TrackBase destructor with
mLock held
2937 client.clear();
2938 recordTrack.clear();
2939 lStatus = NO_MEMORY;
2940 goto Exit;
2941 }
2942
2943 // return to handle to client
2944 recordHandle = new RecordHandle(recordTrack);
2945 lStatus = NO_ERROR;
2946
2947 Exit:
2948 if (status) {
2949 *status = lStatus;
2950 }
2951 return recordHandle;
2952 }[/CODE]

The code that initializes AudioRecord:

[CODE]record = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, 
AudioRecord.getMinBufferSize
(8000,

AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT) * 4);[/CODE]

Again, it works fine on any other device, including Droid.

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

[android-developers] HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread Mika
Simple question, what is the fastest way to iterate through
collections on Android? I generally use collection.iterator(); and the
iterator.next() to iterate through the whole collection. Is it any
faster to drop that and iterate with old (and I use the term old
loosely...) :

for( int i=0; icollection.size(); i++) ?

I was thinking of getting the collection.size() into a separate
variable so I wouldn't be asking the collection it's size all the time
so basically the for loop would turn into something like this:

int size = collection.size();
for( int i=0; isize; i++ )
   collection.get(i);

Any better? Speed wise, I mean. I'm in a point where I need to get
every possible inch of speed for my application.
Or maybe allocate everything into Lists in the start, and once I know
the correct amount of data, I turn all that into arrays and drop the
Lists so I can have array[index] (Log(1) access, right? OH wait.. how
did this go again _ ) access instead of having the slow method
calls in between like .get(); when accessing the data in the
collection.

And what about getters  setters for Classes? Like let's have a
Vector2D class that contains obvious integer x and integer y values.
What is the fastest way to access them inside the class? Have them as
public and just straight Vector2D.x = someValue; or through getters
and setters? I've had much debate with my tutor about this (working on
my final year project) but not to get too much into details of it...

Also all links for further Android application optimisation are more
than welcome and greatly appreciated (I read the googles docs on this
already). Plus if you have found some really good tricks / quirks on
Android to punish the device even more so it runs faster, do share, do
share. Heh.

Please be gentle on me, I'm such a beginner in all things Android that
I feel absolutely dumb as a boot for asking these kind of things. I
come from strong C++ / Java background but getting the extra inch of
speed for everything on Android is so different than optimizing code
for PC side and not that you even have to do it on PC side that often.

Fire away gents and ladies!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] handling user groups in android

2010-01-17 Thread guiha...@gmail.com
Hi,

I have the following situation:

library L, and three applications, A ,B and C

A should access data in L and L should access data in A
B should access data in L and L should access data in B
C should access data in L and L should access data in C

However, A, B and C should NOT be able to access each other's data.

In linux, this should be achieved using groups. So, A,B,C would belong
to the group L.

I learned about the sharedUserId, but it doesn't supports groups. Any
thoughts on how this could be achieved?

best regards

guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make two apks install at the same place

2010-01-17 Thread guiha...@gmail.com
Answering my own question:

http://developer.android.com/reference/android/R.attr.html#sharedUserId
.. says that many packages can share the same id. So, i would suggest
that the document should be updated to inform that, instead of saying
that only 2 are allowed.

regards

guichh
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: corporate calendar testing needed -help?

2010-01-17 Thread andrew android
I am unable to get my Droid to connect to my trial of MS Exchange
online.  I have tried.  Has anyone got this to work... if so... how do
you set it up?  I have the trial but the connection doesn't work.

Thanks!

On Jan 13, 5:54 pm, andrew android andygoldm...@gmail.com wrote:
 Thanks!  I will try this, I think!

 On Jan 11, 6:04 am, Kumar Bibek coomar@gmail.com wrote:



  HeyAndrew.

 Microsoftonline has a 30 day evaluation forExchange2007 server. You
  can register there and get upto 20 accounts with all functions free
  for 30 days.

  Thanks and Regards,
  Kumar Bibekhttp://tech-droid.blogspot.com

  On Jan 11, 4:40 pm,andrewandroidandygoldm...@gmail.com wrote:

   Could anyone help test my app with anandroiddevice that is using a
   corporate calendar  alternatively, can you tell me how to set up a
   mock corporateexchangeserver connection (and thus corporate
   calendar) on the emulator?  Can this be done in AVD?
   Thanks!- Hide quoted text -

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

[android-developers] installing files in the data/data/package using apk?

2010-01-17 Thread guiha...@gmail.com
Hi,

I want to install some data files in the data/data/package folder.
These data files are mixed-case. Can apk do this someway?

If this is not possible, i was thinking in the creation of a packages,
like a zip file. Then, when my app first runs, i would decompress the
files into the data/data/package folder and then delete the original
zip. I could create the zip as a resource, however, doing this, i'm
sure that i would not be able to delete the zip, am I right?

thx

guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Varying screen resolutions

2010-01-17 Thread Neilz
 Step 1: RT[F]M 
 ;^)http://developer.android.com/guide/practices/screens_support.html

Fair enough ;-) though it's not as much fun as chatting on a forum!

 The summary is that you can
 either leave android:anyDensity=false in your manifest to let the
 platform scale your bitmaps, or you can include bitmaps of different
 sizes for different screen densities.

Well, I read the docs, now that I know they're there, although I can't
say I find them very clear.

I tried various combinations of android:anyDensity and supports-
screens, but the default action seems to have been the best I could
get anyway. I set up two Emulators:

- Android 2.0 (level 5) WVGA800, density 240
- Android 2.0 (level 5) WVGA854, density 240

My app appears fine in the first, but in the second it gets shrunk and
leaves a black border.

Any ideas how I can get this working? Current manifest reads:

uses-sdk android:minSdkVersion=3  android:targetSdkVersion=4 /
supports-screens
  android:largeScreens=true
  android:normalScreens=true
  android:smallScreens=true
  android:anyDensity=false /
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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's Gallery is finding my Resource images!

2010-01-17 Thread Chris
Hello,

I have an application that uses a lot of png textures. There are too
many to store with the app, so they are installed onto the SDCARD
instead. The problem is that the default android gallery is seeing the
png textures and is cluttering up the user's gallery screens with
them.

Is there a way to mark this resource folder in a particular manner so
that Gallery will skip over it? Ideally, i'd like this to be something
that my app can set so that the user doesn't have to do it.

Thanks in advance!
Chris
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Accelerometer Reading ranges

2010-01-17 Thread ko5tik


On Jan 16, 9:37 pm, MPower123 michaelh...@gmail.com wrote:

 I just hope theres an API call to set the resolution to 2g or 4g mode.

TANJ - AFAIR, there is no such official API in android SDK (though you
may
be able to hack around or have more luck with  native code )
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDK and Linux 64 bits

2010-01-17 Thread Perty
Hi,

If you run 64 bit you need 32 bit libraries. I don't know exacly which
libraries:

if you run strace ./adb or strace ./emulator you could see which
libraries you are missing.

/per jonsson

On 4 Jan, 10:53, Nanard bsegon...@free.fr wrote:
 Hi,

 I have installed Mandriva 2010 32 bits   :-)
 Unfortunately 'adb' still had a problem but, it gave me some error
 messages this time.  (all was OK on Mandriva 2009 !)

 So, I had to manually setup this file :  /etc/udev/rules.d/50-
 android.rules

 SUBSYSTEM==usb|usb_device, SYSFS{idVendor}==0bb4, MODE=0660,
 GROUP=plugdev
 SUBSYSTEM==usb|usb_device, ATTR{idVendor}==0bb4, ATTR{idProduct}
 ==0c02, SYMLINK+=android_adb
 SUBSYSTEM==usb|usb_device, ATTR{idVendor}==0bb4, ATTR{idProduct}
 ==0c01, SYMLINK+=android_fastboot

 Mandriva 2010 64 bits and Android SDK are not yet compatibles :-(
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Mark Murphy
 It might eventually be possible to introduce a compatibility mode so
 older applications could run in the latest versions of Android, but I
 suspect that is a ways off since it is likely memory intensive.

On the whole, older applications run quite delightfully in newer versions
of Android.

Some small percentage of apps will need to be modified for any given
Android release (e.g., those apps using contacts may need a revamp to deal
with the new contacts API introduced with Android 2.0). And applications
may need updates to take full advantage of newer capabilities (e.g.,
improved multiple screen resolution support introduced in Android 1.6).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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

Re: [android-developers] Android's Gallery is finding my Resource images!

2010-01-17 Thread Alessandro Pellizzari
Il giorno dom, 17/01/2010 alle 06.19 -0800, Chris ha scritto:

 Is there a way to mark this resource folder in a particular manner so
 that Gallery will skip over it? Ideally, i'd like this to be something
 that my app can set so that the user doesn't have to do it.

Put an empty file named .nomedia (with the starting dot. I hope I
remember correctly the name :) ) in the folder.

Bye.


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

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread MrChaz
Marks right, generally things work well.  Although there do appear to
be some differences between handsets in terms of their openGL support
- seems like droid has some issues with png formats (at least from
what I've seen on message boards)

On Jan 17, 2:35 pm, Mark Murphy mmur...@commonsware.com wrote:
  It might eventually be possible to introduce a compatibility mode so
  older applications could run in the latest versions of Android, but I
  suspect that is a ways off since it is likely memory intensive.

 On the whole, older applications run quite delightfully in newer versions
 of Android.

 Some small percentage of apps will need to be modified for any given
 Android release (e.g., those apps using contacts may need a revamp to deal
 with the new contacts API introduced with Android 2.0). And applications
 may need updates to take full advantage of newer capabilities (e.g.,
 improved multiple screen resolution support introduced in Android 1.6).

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make two apks install at the same place

2010-01-17 Thread Lance Nanek
The one time I needed shareUserId for something this bug scared me out
of using it:
http://code.google.com/p/android/issues/detail?id=2773

Android 1.5 is still 31% of the market, unfortunately:
http://developer.android.com/resources/dashboard/platform-versions.html

On Jan 17, 8:27 am, guiha...@gmail.com guiha...@gmail.com wrote:
 Answering my own question:

 http://developer.android.com/reference/android/R.attr.html#sharedUserId
 .. says that many packages can share the same id. So, i would suggest
 that the document should be updated to inform that, instead of saying
 that only 2 are allowed.

 regards

     guichh
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] احصل على ماستر كا رد MasterCard مجانا وتوصلك إلى بيتك

2010-01-17 Thread alagmy
احصل على ماستر كارد MasterCard مجانا وتوصلك إلى بيتك


احصل على بطاقة الانتماء مجانا حتى لو كنت في كوكب من غير الارض :


جبتلكم اليوم طريقة لطلب بطاقة ماستر كارد بايونر مجانا
وااالله حقيقة بدوون كدب
و وصلتى خلال 20 يوم


بسم الله الرحمان الرحيم
اول شىء ارجوا ان نتفاهم على شىء واحد
بعض الناس للاسف .لمعرفته ان البطاقه مجانيه يبدئ بطلب عشرات البطاقات و
النتائج المترتبه على ذلك انه سيضر نفسه و دولة


ستمنع ايبيات IP تلك الدوله من الاستفاده منها قبل كل شىء و سيضر اخوانه
من بعده في عدم الاستفادة من البطاقه
فالبطاقه واحده لها مصاريفها.عند التفعيل و مصاريف الصيانه الشهريه و
مصاريف الاستعمال.لذا بطاقتين .انا اجزم انك لن تستفيد


من اي شىء بهما و ربما انك تترك فرصه لاخيك احسن في الاستفاده و الحصول
عليها مثلك


احب لاخيك كما تحب لنفسك و اجعله فعل و ليس مجرد كلام و شعار


باختصار هو موقع للتعارف تطلب منه البطاقة عبر الوسيط friendfinder


احنا معندناش وقت لتعارف نشوف المهم الاول وههه !!


اولا نشترك في في الموقع


من هنا
http://friendfinder.com/go/g1186007


ولمتابعة الشرح بالصور أدخل هنا

http://agd3as7ab.eb2a.com/vb/showthread.php?p=99#post99
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread theSmith
Mika,

Check out the Real-time games and lightning talks videos, they're very
helpful.

As far as the speed, I would run some tests and look at the results,
some nice hard data :)
Become familiar with DDMS (the stand alone program, not plugin) - DDMS
has an allocation tracker, which lets you know where you are
requesting the most memory, which is what is going to slow you down.
http://developer.android.com/guide/developing/tools/ddms.html

Also you can use method tracing and traceview to further optimize your
code.
http://developer.android.com/guide/developing/tools/traceview.html

These tools are covered in some detail in the 'Debugging Arts of the
Ninja Masters' video

-theSmith

On Jan 17, 8:17 am, Mika mts...@googlemail.com wrote:
 Simple question, what is the fastest way to iterate through
 collections on Android? I generally use collection.iterator(); and the
 iterator.next() to iterate through the whole collection. Is it any
 faster to drop that and iterate with old (and I use the term old
 loosely...) :

 for( int i=0; icollection.size(); i++) ?

 I was thinking of getting the collection.size() into a separate
 variable so I wouldn't be asking the collection it's size all the time
 so basically the for loop would turn into something like this:

 int size = collection.size();
 for( int i=0; isize; i++ )
    collection.get(i);

 Any better? Speed wise, I mean. I'm in a point where I need to get
 every possible inch of speed for my application.
 Or maybe allocate everything into Lists in the start, and once I know
 the correct amount of data, I turn all that into arrays and drop the
 Lists so I can have array[index] (Log(1) access, right? OH wait.. how
 did this go again _ ) access instead of having the slow method
 calls in between like .get(); when accessing the data in the
 collection.

 And what about getters  setters for Classes? Like let's have a
 Vector2D class that contains obvious integer x and integer y values.
 What is the fastest way to access them inside the class? Have them as
 public and just straight Vector2D.x = someValue; or through getters
 and setters? I've had much debate with my tutor about this (working on
 my final year project) but not to get too much into details of it...

 Also all links for further Android application optimisation are more
 than welcome and greatly appreciated (I read the googles docs on this
 already). Plus if you have found some really good tricks / quirks on
 Android to punish the device even more so it runs faster, do share, do
 share. Heh.

 Please be gentle on me, I'm such a beginner in all things Android that
 I feel absolutely dumb as a boot for asking these kind of things. I
 come from strong C++ / Java background but getting the extra inch of
 speed for everything on Android is so different than optimizing code
 for PC side and not that you even have to do it on PC side that often.

 Fire away gents and ladies!
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] GMail in intent chooser for twitter intent ???

2010-01-17 Thread greg1x
Hi!

I'm sending a twitter intent from my app, but the intent chooser
brings up GMail as the first choice and Twidroid as the second one.

My question is: Why is GMail popping up for application/
twitter? ..It simply starts composing an email message..

I'm sending the intent as read on the Twidroid plugins page:

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, tweet);
sendIntent.setType(application/twitter);
mContext.startActivity(Intent.createChooser(sendIntent, null));

Thanks for any help!

P.S.: Seesmic is also installed, but it doesn't seem to handle this
intent. Isn't there a common twitter intent type that is supported by
all the major clients?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Pirate Site

2010-01-17 Thread Jeffrey Blattman
and co-pilot is hacked and available for free also. i guess that didn't
work.

On Sat, Jan 16, 2010 at 11:13 AM, theSmith chris.smith...@gmail.com wrote:

 Would it be feasible to authicate the app with a google checkout
 number like copilot does?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: HashMap, ArrayList and fastest way to iterate Collections on Android (+other ways to make it run like a wild horse)

2010-01-17 Thread Mika
Thanks for the answers. I'll have to give those two a try. :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Keys don't work with SurfaceView

2010-01-17 Thread guiha...@gmail.com
The fix to this problem is call:
  setFocusableInTouchMode(true);

guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make two apks install at the same place

2010-01-17 Thread guiha...@gmail.com
Thanks. Not a big problem for me because my software requires 1.6.

cheers

 guich
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Poll Accelerometers instead of using a listener?

2010-01-17 Thread Chris
Hi,

Can someone tell me if it's possible to periodically poll the
accelerometers for data instead of registering a listener? I know i
can just use the listener to store the data and then poll my temporary
storage later but I'd prefer to just poll for data when I need it
instead of having it constantly flowing.

Thanks,
Chris
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Find out if the user rated my application in the Market

2010-01-17 Thread Martin
Hi!

I want all the users of my application to rate it in the Market.
I want to place a small TextView in my application which says: Please
rate my application but this TextView should only be there if the
user has not already rated it.
How can I realize this?

Greetings, Martin
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 get the current rotation of my mobile using g-sensor and compass?

2010-01-17 Thread Martin
Hi!
Is there some example-code to get the current rotation of my cellphone
using g-sensor and compass at the same time?
With the Google-Sky application for example, you can watch EVERY star
on your mobile. You can turn your mobile in 360 degrees in x-, y-, and
z-direction.

I want to get the rotation of my cellphone but I do not understand
much of the g-sensor and compass api. Can somebody help me, give me an
example-code or better, if possible, a class which tells me the actual
rotation?

THANK YOU!!! :-)
Martin
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Find out if the user rated my application in the Market

2010-01-17 Thread Maps.Huge.Info (Maps API Guru)
I've found that about 1% of users will take the trouble to rate an
app. If you bug them about it, I'm guessing they'll give you a low
star rating along with some sort of comment that says Dev annoys with
request to rate.

Additionally (and counter intuitively), low ratings seem to affect
market position while high ratings do not.

The question you should be asking yourself is: Do I really want every
user to rate my app?

As to the answer, since you have no access to rating information nor
who made the rating, your problem will be difficult if not impossible
to solve given the current access to market data.

On the flip side, the data to identify a particular user exists, it
may not identify who the user is in terms of if they downloaded your
app or not, but there is identification data of some sort that goes
along with the comments. You can see this in Androlib, click on a
comment, you'll see every comment that user made on any app.

-John Coryat

Radar Now!

What Zip Code?

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

[android-developers] Is there a way to refer to a group of attributes

2010-01-17 Thread Ray Benjamin
In creating a layout file, I have 25 buttons that all use the same 
attributes except for ID. It seems like there should be some way to 
package up all those attributes and use a reference to them, but I can't 
recall how. Been a while since I did a lot with XML. Can someone help?


Thanks,
 Ray
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bussiness Model

2010-01-17 Thread Business Talk
Do you think that the business model based on an application that
displays/manages paid content is workable in the android environment?
I think it is not due to the application market’s lack of support for
the paid content?  What I mean is that applications, such as iTunes,
can be installed from the market but the paid content, such as mp3s,
can not be purchased from the market. So, it would have to be
purchased through a service outside of the market, as it is the case
with iTunes, which is a well established service. In case of a new
service, the user would have to open a separate account with the
charge information, which is always a problem, specially when it’s a
new service. Also, the service itself would have to manage the
financial transactions, which introduces additional complexity. Any
thought on the subject?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Daniel
The fragmentation problem is mainly with the newest APIs, and
applications taking advantage of them.

Official, or supported APIs barely change, and if they do, the older
API is backward compatible.
Take for instance the contacts API before 2.0 (Contacts.People), and
the newest (ContactsContract) that supports multiple contacts sources
(multiple google accounts syncing contacts). Using the Contacts.People
API on newer versions (2.0+) still works, its just limited to display
the contacts from the main account but it works, it doesn't break.

However, when it comes to newer APIs, like lets say Text-to-Speech
(introduced in 1.6), and Dock support (introduced in 2.0), it's a pain
in the butt to make the apps backward compatible with older or
outdated devices, and take advantage of those APIs in newer or
updated devices, yes, there are ways to introduce these new features,
but its very painful to keep those users that are on older versions of
android happy, without errors and such.

As of now it is an issue, not that big of an issue but it's there, and
it can just become worse. Keeping track of 3-4 versions is not that
big of a deal, but manufacturers need to move, because I would shoot
myself if I had to keep supporting 5-6 versions of android (1.5, 1.6,
2.0, 2.1, 2.5?, 2.7?, 3.0?)... that my friends, will be extremely
painful for MOST developers out there.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bussiness Model

2010-01-17 Thread Frank Weiss
I think hybrid business models are worth looking into. Look at the business
models of some of the free applications. For example, the Bank of America
application is free. Although the development investment was probably modest
(for a bank), the expense can be justified by the brand-building the
application provides. They could have perhaps charged for it, but they
weren't dependent on the revenue of selling the application. Another
perspective is the whole services vs applications model. You can charge only
once for the application, but repeatedly for the service. Yet another
perspective is to look for who benefits besides the user. Remember the
original MTV? The users got free music videos. The record stores sold more
music. This leads to another perspective. Think about what your users would
buy besides your application.

On Sun, Jan 17, 2010 at 11:28 AM, Business Talk 
roman.businesst...@gmail.com wrote:

 Do you think that the business model based on an application that
 displays/manages paid content is workable in the android environment?
 I think it is not due to the application market’s lack of support for
 the paid content?  What I mean is that applications, such as iTunes,
 can be installed from the market but the paid content, such as mp3s,
 can not be purchased from the market. So, it would have to be
 purchased through a service outside of the market, as it is the case
 with iTunes, which is a well established service. In case of a new
 service, the user would have to open a separate account with the
 charge information, which is always a problem, specially when it’s a
 new service. Also, the service itself would have to manage the
 financial transactions, which introduces additional complexity. Any
 thought on the subject?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Request is not from browser- need help

2010-01-17 Thread Frank Weiss
Probably a cookie. Look into understanding how cookies work and how the
servlet container uses them, then understand how to manage cookies with
HttpClient.

On Sat, Jan 16, 2010 at 12:57 AM, Testingjsp testfi...@gmail.com wrote:

 Hi,

 I am making a request from an android application to jsp server, when
 running the jsp url from android browser,
 server is able to maintain session and page navigation history. When
 trying the same from android application it is not maintaining the
 session.

 Ie. if a user logs-in  his details are not maintained if it is from
 android application.

 Please can you help me on this.

 Thanks in advance.

 Regards,
 tesingjsp.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Search AndroidMarket from my app

2010-01-17 Thread DAVIDT
Hi All

How to go to Search AndroidMarket from my app?

Thanks
David
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Request is not from browser- need help

2010-01-17 Thread Kevin Duffey
I am assuming you posted 3 times by accident?

Yes.. cookie. Desktop (or mobile device) applications don't maintain cookies
automatically like a browser. Usually a jsp page returns a jsessionid=  back
as party of the response. You can then append this to pass the same cookie
back... or look into how HttpClient maintains cookies as the above post
said.

On Sun, Jan 17, 2010 at 12:02 PM, Frank Weiss fewe...@gmail.com wrote:

 Probably a cookie. Look into understanding how cookies work and how the
 servlet container uses them, then understand how to manage cookies with
 HttpClient.

 On Sat, Jan 16, 2010 at 12:57 AM, Testingjsp testfi...@gmail.com wrote:

 Hi,

 I am making a request from an android application to jsp server, when
 running the jsp url from android browser,
 server is able to maintain session and page navigation history. When
 trying the same from android application it is not maintaining the
 session.

 Ie. if a user logs-in  his details are not maintained if it is from
 android application.

 Please can you help me on this.

 Thanks in advance.

 Regards,
 tesingjsp.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Is there a way to refer to a group of attributes

2010-01-17 Thread Frank Weiss
Have you looked into Themes and Styles:
http://developer.android.com/guide/topics/ui/themes.html

If the attributes are not related to that, other approaches would be:
inflater hook, attribute injection at runtime, generate the layout xml files
with XSLT.

On Sun, Jan 17, 2010 at 11:19 AM, Ray Benjamin ray.benja...@gmail.comwrote:

 In creating a layout file, I have 25 buttons that all use the same
 attributes except for ID. It seems like there should be some way to package
 up all those attributes and use a reference to them, but I can't recall how.
 Been a while since I did a lot with XML. Can someone help?

 Thanks,
  Ray

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Find out if the user rated my application in the Market

2010-01-17 Thread Frank Weiss
I read a fascinating book A Complaint is a Gift. The gist is that few
people will give you feedback, and most of it will be negative. Furthermore,
the few negatives are the tip of the iceberg, so treat every complaint as a
gift. I also suggest you don't relay solely on the Android Market for
feedback. Publish your email address (like many other Android developers
do), get people to post about your application in other Android websites,
maintain contact with your users and give them top-notch support.

On Sun, Jan 17, 2010 at 11:06 AM, Maps.Huge.Info (Maps API Guru) 
cor...@gmail.com wrote:

 I've found that about 1% of users will take the trouble to rate an
 app. If you bug them about it, I'm guessing they'll give you a low
 star rating along with some sort of comment that says Dev annoys with
 request to rate.

 Additionally (and counter intuitively), low ratings seem to affect
 market position while high ratings do not.

 The question you should be asking yourself is: Do I really want every
 user to rate my app?

 As to the answer, since you have no access to rating information nor
 who made the rating, your problem will be difficult if not impossible
 to solve given the current access to market data.

 On the flip side, the data to identify a particular user exists, it
 may not identify who the user is in terms of if they downloaded your
 app or not, but there is identification data of some sort that goes
 along with the comments. You can see this in Androlib, click on a
 comment, you'll see every comment that user made on any app.

 -John Coryat

 Radar Now!

 What Zip Code?

 Mail it Now!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Gridview loads in reverse on onConfigurationChanged

2010-01-17 Thread Streets Of Boston
I've seen this too in my app.

If you add a layout-animation, that animates the grid-view children
(i.e. the grid-items), you can clearly see this reverse order.

On Jan 17, 4:03 am, Mike M mike.mos...@gmail.com wrote:
 Hey everyone,

 I have a gridview of images that I load from the internet.  When the
 phone rotates (or some other config change), onConfigurationChanged()
 is called.  When that happens, the items in the gridview are reversed
 (meaning, the 1st image is the last; they are in reverse order).

 Does anyone know why this is or how to change it?   I'm hoping someone
 has run into this before...

 Sorry if I don't share any code.  I don't think It'd help; it's more
 of a conceptual question.

 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] Record raw Audio, process audio and save as ogg or another compressed format

2010-01-17 Thread maecky
Hi,
I have searched the whole group but wasn't able to find a answer for
my problem.

I want to record audio from the microphone,  apply some audio signal
processing and than save the processed audio data in a compressed
format.

I figured out, how to record audio uncompressed but now I wonder if I
can use some api functions to store this data in a supported
compressed format.

Has anyone some suggestions?

Thanks for your help
regards Maecky
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Broadcast Receiver not getting called when expected

2010-01-17 Thread DroidAttack
Hi,
I have the same issue but I cannot seem to find a way to
disconnect the connectivity on the emulator as you described in your
solution.
Can you please describe how this can be done.
Thanks.


On Dec 28 2009, 7:40 pm, Albert albert8...@googlemail.com wrote:
 solved! it appears that the emulator would not send the broadcast only
 by not being connected, you also have to disconect it on the emulator.
 Maybe in the future releases it will be better sync with the pc...
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Porting android on a AT91SAM9G20 with 64MByte of RAM and 8MByte dataflash memory

2010-01-17 Thread SebFox
Hi all,

New on this Group i'am the french google moderator of groupe de
discussion autour de Netus G20 et FOX Board G20.

I have a Fox Board G20 based on ARM926EJ-S ™ ARM with ARM9 at 400MHz,
64MByte of RAM and 8MByte dataflash memory. My question is: It is
possible to port android on this board.

For more information on the board,

Feel free to consult this links:
http://netus.acmesystems.it/doku.php
http://eshop.acmesystems.it/?id=NETUSG20

Thanks for your answer.

SebFox
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bluetooth SPP question

2010-01-17 Thread Lord Vandrac
Hey Arjan, I have the bluetooth example code fully working in a
eclipse project. Tell me hoy can i give it to you. There is the google
page with the code but it's not like a eclipse project.
http://developer.android.com/resources/samples/BluetoothChat/index.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: lock_layer timed out (is the CPU pegged?)

2010-01-17 Thread rupy
Think I solved this for my demo app, might give you a hint!

http://code.google.com/p/android/issues/detail?id=6108

Cheers,

/marc

On Nov 22 2009, 10:13 am, Lance Nanek lna...@gmail.com wrote:
 I see that message often when displaying a Toast or GestureOverlayView
 on top of a GLSurfaceView. In my case GestureOverlayView is being
 shown on top of the GLSurfaceView using a FrameLayout, though.
 Wrapping like the developer blog recommends doesn't seem to work with
 GLSurfaceView.

 Avoiding using those things doesn't just get rid of the message for
 me, it also seems to considerably improve the worst time between
 ondraw calls frame rate statistic that I track for my game as well.

 On Nov 18, 10:54 pm, Julius Spencer jul...@msa.co.nz wrote:



  Hi,

  I have a situation occurring intermittently with an application where  
  I receive the following message. It's probably something to do with a  
  Thread. The application seems to stop, but I get the following message  
  and I'm not sure what it means:

  WARN/SurfaceComposerClient(2106):lock_layertimed out (is the CPU  
  pegged?) layer=1, lcblk=0x424800a0, state=0043 (was 0043)

  I see others have had this issue, but I don't see a solution or  
  explanation (that I can understand :-) ). Can anyone point me in the  
  right direction?

  Thanks for any help.

  Regards,
  Julius.- Hide quoted text -

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

[android-developers] Facebook Camera Activity - Custom or Not?

2010-01-17 Thread AndroidDevFTW

Hi all--

I'm looking to implement functionality similar to the Facebook Apps'
Take Photo feature -- does anyone know if the Camera activity that
pops up after clicking the Take Photo icon is a custom Activity or a
re-use of our phone's OOTB Camera app?  The interface looks quite
similar to the OOTB app, but I'm not sure how to reconfigure
applications responding to implicit intents so that the available
buttons are different.  For example, the OOTB Camera App displays last
taken picture, slider to choose between video/camera -- the Facebook
app Camera app displays Cancel and Retake buttons...

Thanks for any tips!
ADev
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 navigate from one page to another?

2010-01-17 Thread Rahul
Hello, I m the new user in Android.

m trying to do one apll in which when we click on Button then control
goes to next page and on Back button it comes to main 1st page...
can anybody tell me hw to do this or any link??

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

Re: [android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Kevin Duffey
First.. let me ask for those of you that have apps in the market.. if I have
a 1.5 version out there.. it shows up on any device that is 1.5 or later,
right? Now..if I update it to run on 2.0.. will the update be made available
or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
users in their market?

As someone else said, one of the appeals of Android, and no doubt one of the
biggest reasons every carrier and manufacturer has jumped on board is the
ability to customize it. For example, the new Sony phone coming out... it
has a really nice custom in-house notification manager that no other phone
has. It's that capability that is going to bring a lot of vendors and
carrier to Android. Also keep in mind.. competition. If every android device
looks/operates exactly the same.. then the only difference really is
hardware and name brand recognition. A driving force behind all these
companies supporting Android and building to it is to distinguish themselves
from others. They want people to buy their phones because the Sense UI is
better or easier than others. Android allows them to do this, and quite
easily for the most part compared to say building on Palm's or other OSs out
there. So without a doubt you're going to see different UIs and us
developers may face UI issues trying to have apps integrate within those
custom UIs. HOWEVER, I stand firm when I say.. if your app does NOT work on
a given devices customized UI, its the fault of the customizer, not your
app. They should absolutely be held to the same standards we are when it
comes to developing on Android. If they make custom capabilities that do not
work on other devices, what's the point of even using them? Honestly if
Sony's custom scrolling notification system is accessible to us Android
developers, then really it's only of use to build custom apps specific to
that phone. It doesn't benefit Sony to make such a custom modification in
hopes that us one-offs will build something from it that only runs on the
Sony phone. Most likely they will do in-house stuff with it and offer custom
apps for their phone only.  I think this is possible, because Verizon has a
tab on my moto droid, which I assume is only verizon and/or moto droid apps.
So I would imagine Sony could provide a tab on the market specific to their
phone, and place apps under it that will only show up for those using that
phone. I am not for sure on this tho.

Lastly, while I agree it will be a pain for us developers to maintain
multiple versions..  keep in mind that updates generally aren't more than a
couple a year and as Mark and others said, most things work on newer
updates. So unless you get issues with your app for specific API changes,
you shouldn't have to worry too much about future updates. Even if you do, I
don't see this being much different than most jobs I've had, where we have
older versions of software that we still support, fix bugs in, and continue
on with newer versions. As for display size changes. as far as I knew, if
you built your app to the SDK.. your displays would resize properly in most
cases. Not sure about video games, but at least most text based apps with
the right layouts should work on any screen size. What are some examples of
different screen sizes causing problems? I am curious for my own knowledge
to be prepared as I haven't seen that issue brought up much.



On Sun, Jan 17, 2010 at 11:40 AM, Daniel velaz...@gmail.com wrote:

 The fragmentation problem is mainly with the newest APIs, and
 applications taking advantage of them.

 Official, or supported APIs barely change, and if they do, the older
 API is backward compatible.
 Take for instance the contacts API before 2.0 (Contacts.People), and
 the newest (ContactsContract) that supports multiple contacts sources
 (multiple google accounts syncing contacts). Using the Contacts.People
 API on newer versions (2.0+) still works, its just limited to display
 the contacts from the main account but it works, it doesn't break.

 However, when it comes to newer APIs, like lets say Text-to-Speech
 (introduced in 1.6), and Dock support (introduced in 2.0), it's a pain
 in the butt to make the apps backward compatible with older or
 outdated devices, and take advantage of those APIs in newer or
 updated devices, yes, there are ways to introduce these new features,
 but its very painful to keep those users that are on older versions of
 android happy, without errors and such.

 As of now it is an issue, not that big of an issue but it's there, and
 it can just become worse. Keeping track of 3-4 versions is not that
 big of a deal, but manufacturers need to move, because I would shoot
 myself if I had to keep supporting 5-6 versions of android (1.5, 1.6,
 2.0, 2.1, 2.5?, 2.7?, 3.0?)... that my friends, will be extremely
 painful for MOST developers out there.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email 

[android-developers] Size 0kb for all transferred images to sdcard (Android Emulator)

2010-01-17 Thread Kevin Cherdchai
Hey Android community, I'm actually new here, so I would like to ask
for some guidance.

I recently just setup the Android SDK and got the emulator to be up
and running. However, right now I'm not able to add files into the
sdcard.img for some strange reasons.

I entered the following command:
adb push test.jpg /sdcard/test.jpg

What happens is the file shows up inside the image, but it reports
that the file has the size 0kb which is what I don't know where to
approach.

My end goal is to get the image to pop up within the gallery, but
apparently it always show No media found in which i suppose it came
from the 0kb in size.

Any help or suggestions would be greatly appreciated. Thank you in
advance.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to navigate from one page to another?

2010-01-17 Thread Frank Weiss
Sounds like you haven't tried any of the tutorials:
http://developer.android.com/resources/index.html

On Sun, Jan 17, 2010 at 1:39 AM, Rahul rahulsak2...@gmail.com wrote:

 Hello, I m the new user in Android.

 m trying to do one apll in which when we click on Button then control
 goes to next page and on Back button it comes to main 1st page...
 can anybody tell me hw to do this or any link??

 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.comandroid-developers%2bunsubscr...@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] Can someone on 2.0+ test my application?

2010-01-17 Thread Alexander Blom
I need someone on 2.0+, preferably using multiple Google accounts to
test my widget.

I just need you to add the widget and on the preference screen see
that your (possibly multiple) Google accounts are listed in the first
option.

The APK is available at: 
http://alexanderblom.se/gmail-unread-count/GmailUnreadCount.apk

Thanks,
Alexander
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Find out if the user rated my application in the Market

2010-01-17 Thread Maps.Huge.Info (Maps API Guru)
I agree with your post 100%. While it's nice to receive compliments, a
complaint, or most complaints, are quite valuable.

I publish my e-mail address, have an app web site and also have
enlisted a fairly large beta test group (about 80 people at this
writing) to support the app Radar Now! The beta test group is
probably the most valuable. They run pre-release versions through the
paces on virtually every device and OS, then report back problems and
other comments. Without the beta group, the end user experience would
be a lot worse.

Negative comments on the market are not so useful though. Most of them
are something along the lines Does not work, uninstall with nothing
more. There are also the asdfrehasg and sucks one star ratings
that are less than useful to anyone. Why did it suck? What did you do
to make it suck? What didn't suck? None of those can be answered nor
can you address the complaint, even useful ones with any hope that the
poster will read them.

The best feedback is feedback you can answer, inquire, refine, address
and solve to the satisfaction of the complainer. I've had people write
to me complaining that RN didn't find their position. Upon inquiry,
some discovered their wireless network location service was disabled
and they were inside where GPS didn't work. Enabling that service made
the app work to their delight and they were satisfied.

What did I do about that? Add a generous number of informative error
messages so that the next user who had a similar problem would be
informed what to do instead of suffer with a seemingly inoperative
program. I wouldn't have added those messages without the feedback.

Android Users Beta Test Community

I think it would be a great idea if Android developed an official beta
test community of users. Perhaps this could be done with a
notification of some sort in the market app.

A beta test community of users would be available to the developer to
try out apps or new versions of apps before they hit the market. The
mechanism could be as simple as having any app that wanted to be part
of the beta community automatically create a new Google Group and have
the beta people be notified there is a new app to be tested. Results
could be posted in the group and the developer or other beta members
could respond to the postings. End result would be better, more bullet
proof apps and a more satisfied user experience.

-John Coryat
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bussiness Model

2010-01-17 Thread Kevin Duffey
For the OP.. I think what Frank says above is very true.. although possibly
not so big yet on Android. There are a couple of barriers that I wonder if
we'll be able to get past. The biggest barrier to me is having to NOT use
your carrier to pay for items. It would be VERY nice if the market would
just charge stuff to the carrier bill and not have to deal with google
checkout and such. That is one of those things that can be a deal breaker
for many people that don't quite get how all that works. Even better would
be a way for developers to be able to securely tap into that feature.. so
they could offer pay services of some sort and not have to have a user log
in to google checkout, paypal, etc to pay for it. If those two hurtles are
overcome, I think you'll see a LOT more free apps with pay services
attached.

I'll give you the best example I think you'll see.. and I certainly would do
this myself even with the present semi-difficult pay arrangements needed.
Game packs. Or app packs depending on the app (app packs could be plugins
like codecs for a music player, etc). I see no reason why a game or app
can't offer more updates without using the market, to get users to pay for
those addons. One minor issue with this (although this may not be so) is the
inability to store the stuff to the SD card. I think it could be possible
tho..just not entirely sure. But being able to get a free or cheap game or
app on the market.. then simply grab new updates via addon packs would be
really nice. I just paid for some xbox 360 add-on packs for a couple games.
I think the biggest problem for games on Android right now tho that will
pretty much null the pay-for packs is the inability to create high quality
games. There are some, for sure... but having read a few articles on them,
presently android developers have to really really fine tune their apps to
reak 30fps or better out of them. That will change once the JIT comes out
for Dalvik AND OpenGL and OpenCL libraries are readily available! We should
see iPhone like games/music apps soon after that.

But I definitely would myself make use of this sort of business model. I
think it gets your app/game into far more hands when it's free.. and if it's
good, people will pay. The one area that may be difficult tho is avoiding
piracy. Not sure yet how to get around that, but it would be nice if you
could. If you're game requires internet, then it's possible you can always
send a check to a server to make sure the game/add on pack is valid before
allowing for it. For example, when the game users accepts to pay for an
addon pack.. I can see the server side actually compiling in the code the
game passed as part of the request, and returning a custom compiled/built
add-on pack, so that the game can then verify that it's not a copied pack,
and the server side could keep track of the actual game/pack code and if a
2nd one springs up, disallow it. I am sure there is a lot more to it tho.


On Sun, Jan 17, 2010 at 11:58 AM, Frank Weiss fewe...@gmail.com wrote:

 I think hybrid business models are worth looking into. Look at the business
 models of some of the free applications. For example, the Bank of America
 application is free. Although the development investment was probably modest
 (for a bank), the expense can be justified by the brand-building the
 application provides. They could have perhaps charged for it, but they
 weren't dependent on the revenue of selling the application. Another
 perspective is the whole services vs applications model. You can charge only
 once for the application, but repeatedly for the service. Yet another
 perspective is to look for who benefits besides the user. Remember the
 original MTV? The users got free music videos. The record stores sold more
 music. This leads to another perspective. Think about what your users would
 buy besides your application.

 On Sun, Jan 17, 2010 at 11:28 AM, Business Talk 
 roman.businesst...@gmail.com wrote:

 Do you think that the business model based on an application that
 displays/manages paid content is workable in the android environment?
 I think it is not due to the application market’s lack of support for
 the paid content?  What I mean is that applications, such as iTunes,
 can be installed from the market but the paid content, such as mp3s,
 can not be purchased from the market. So, it would have to be
 purchased through a service outside of the market, as it is the case
 with iTunes, which is a well established service. In case of a new
 service, the user would have to open a separate account with the
 charge information, which is always a problem, specially when it’s a
 new service. Also, the service itself would have to manage the
 financial transactions, which introduces additional complexity. Any
 thought on the subject?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To 

[android-developers] I can launch any app, but problems with contacts and phone

2010-01-17 Thread C.Versieux
Hi.

I recently made a software that can launch any application that is
open. It works really fine, except for 2 applications, and i really
don't understand why.

Here is what i do:


1) I make a list of all running apps:

Code:
activityManager = (ActivityManager)this.getSystemService
(ACTIVITY_SERVICE);
ListActivityManager.RunningTaskInfo allTasks =
activityManager.getRunningTasks(30);


2) I get all the Intents to lauch apps:

Code:
for (ActivityManager.RunningTaskInfo aTask : allTasks) {
(...)
PackageManager monPackageManager =getPackageManager();
myIntent= myPackageManager.getLaunchIntentForPackage
(aTask.baseActivity.getPackageName()));


3) I launch my apps:

Code:
this.startActivity(myIntent);


This code work for all applications and it's nice. Therefore, i get
problems with:

com.android.contacts
com.android.phone - myIntent is null!!!

I really don't understand what happen with these 2 android
applications!
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Find out if the user rated my application in the Market

2010-01-17 Thread String
On 17 Jan, 18:42, Martin google-gro...@digle.de wrote:

 I want all the users of my application to rate it in the Market.
 I want to place a small TextView in my application which says: Please
 rate my application

Bringing this back to the OP, how about a one-shot popup which asks
users to rate your app, but which appears a couple of weeks after the
app has been installed? The reasoning is that folks which don't like
your app won't keep it that long. Even if not everyone is 100%
satisfied with your app, this at least seems more likely to get useful
feedback (see other posts in this thread) than the simple sucks
comments.

 but this TextView should only be there if the
 user has not already rated it.

I don't think that information is available, so I'd just include a
button labeled I've already rated it. Some folks will use that
button anyway, of course, but you probably wouldn't have gone ahead
and rated it anyway.

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

[android-developers] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-17 Thread Martin
But since the Google Market just allows to use the Market api for 5
Minutes an hour, cyrket.com is down and all the caching-pages will not
be up to date anymore.

(Info for germans: 
http://www.androidpit.de/android/de/de/forum/thread/391210/Warum-Cyrket-down-ist?si=0
)

On 16 Jan., 15:37, Adrian Vintu adrianvi...@gmail.com wrote:
 androlib and androidzoom both do a cache of the Android Market. Aaik
 you do not need to create any new accounts on these 2 sites.

 BR,
 Adrian Vintu

 On 1/16/10, Adrian Vintu adrianvi...@gmail.com wrote:



  I usehttp://www.androidzoom.comThey update comments more often.

  BR,
  Adrian Vintu

  On 1/16/10, Al alcapw...@googlemail.com wrote:
  Androlib.com allows you to use this if you link an app to your account
  on their site. They keep a cache of comments and update it on a
  regular basis so the comments you see are not always the most recent
  ones, but it's the best alternative at this time.

  Martin wrote:
  No, I don't mean the comments I wrote for my program. I mean the
  comments of other users who rated my application. I just can see the
  german comments and every time I want to see other comments, I have to
  clear the Market-cache and change the locale on my phone. Is there a
  faster way to see comments from other countries?

  Greetings, Martin
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Daniel
1) It depends on your Manifest.xml file, if your minSdk is set to,
lets say 4 (1.6), then new users on Android 1.6 and above will be the
only ones that see it. UNLESS, users on 1.5 already had your app (it
shows as installed, or purchased), then those users on sdk 3 (1.5)
will still see it and be able to download that update, then it will
forceclose and have all kinds of VerifyErrors when it comes to where
you use the new APIs

2) Completely agree, if manufacturers will create their own custom UI,
then they need to NOT break official Android's APIs and that all
android apps are compatible with their custom UI.
Also, Verizon's tab on the Android market, as well as other carriers,
are not showing apps that are specific to the phone you are using,
those apps are just apps that are recommended by that specific
carrier. T-mobile's tab has this as well (and they have an app called
AppPack, that lists the same apps apparently).

3) Agree, the problem comes when you need to update your app to
support new stuff, for example when version 2.0 showed up, users
wanted to see support on the Dock on several apps... or when 1.6
showed up, users wanted to see apps using the Text-to-Speech API on
some apps, etc, etc... there are solutions, but they are very painful.



On Jan 17, 3:26 pm, Kevin Duffey andjar...@gmail.com wrote:
 First.. let me ask for those of you that have apps in the market.. if I have
 a 1.5 version out there.. it shows up on any device that is 1.5 or later,
 right? Now..if I update it to run on 2.0.. will the update be made available
 or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
 users in their market?

 As someone else said, one of the appeals of Android, and no doubt one of the
 biggest reasons every carrier and manufacturer has jumped on board is the
 ability to customize it. For example, the new Sony phone coming out... it
 has a really nice custom in-house notification manager that no other phone
 has. It's that capability that is going to bring a lot of vendors and
 carrier to Android. Also keep in mind.. competition. If every android device
 looks/operates exactly the same.. then the only difference really is
 hardware and name brand recognition. A driving force behind all these
 companies supporting Android and building to it is to distinguish themselves
 from others. They want people to buy their phones because the Sense UI is
 better or easier than others. Android allows them to do this, and quite
 easily for the most part compared to say building on Palm's or other OSs out
 there. So without a doubt you're going to see different UIs and us
 developers may face UI issues trying to have apps integrate within those
 custom UIs. HOWEVER, I stand firm when I say.. if your app does NOT work on
 a given devices customized UI, its the fault of the customizer, not your
 app. They should absolutely be held to the same standards we are when it
 comes to developing on Android. If they make custom capabilities that do not
 work on other devices, what's the point of even using them? Honestly if
 Sony's custom scrolling notification system is accessible to us Android
 developers, then really it's only of use to build custom apps specific to
 that phone. It doesn't benefit Sony to make such a custom modification in
 hopes that us one-offs will build something from it that only runs on the
 Sony phone. Most likely they will do in-house stuff with it and offer custom
 apps for their phone only.  I think this is possible, because Verizon has a
 tab on my moto droid, which I assume is only verizon and/or moto droid apps.
 So I would imagine Sony could provide a tab on the market specific to their
 phone, and place apps under it that will only show up for those using that
 phone. I am not for sure on this tho.

 Lastly, while I agree it will be a pain for us developers to maintain
 multiple versions..  keep in mind that updates generally aren't more than a
 couple a year and as Mark and others said, most things work on newer
 updates. So unless you get issues with your app for specific API changes,
 you shouldn't have to worry too much about future updates. Even if you do, I
 don't see this being much different than most jobs I've had, where we have
 older versions of software that we still support, fix bugs in, and continue
 on with newer versions. As for display size changes. as far as I knew, if
 you built your app to the SDK.. your displays would resize properly in most
 cases. Not sure about video games, but at least most text based apps with
 the right layouts should work on any screen size. What are some examples of
 different screen sizes causing problems? I am curious for my own knowledge
 to be prepared as I haven't seen that issue brought up much.



 On Sun, Jan 17, 2010 at 11:40 AM, Daniel velaz...@gmail.com wrote:
  The fragmentation problem is mainly with the newest APIs, and
  applications taking advantage of them.

  Official, or supported APIs barely change, and 

[android-developers] Re: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Christine
On Jan 17, 9:26 pm, Kevin Duffey andjar...@gmail.com wrote:
 First.. let me ask for those of you that have apps in the market.. if I have
 a 1.5 version out there.. it shows up on any device that is 1.5 or later,
 right? Now..if I update it to run on 2.0.. will the update be made available
 or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
 users in their market?

By specifiying minSdkVersion and maxSdkVersion, you can provide
different versions for different sdks. Every user would only see one
version in the market, if I'm not mistaken. But you don't really want
to do that unless you really need those different versions.
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Find out if the user rated my application in the Market

2010-01-17 Thread Maps.Huge.Info (Maps API Guru)

 Bringing this back to the OP, how about a one-shot popup which asks
 users to rate your app, but which appears a couple of weeks after the
 app has been installed? The reasoning is that folks which don't like
 your app won't keep it that long. Even if not everyone is 100%
 satisfied with your app, this at least seems more likely to get useful
 feedback (see other posts in this thread) than the simple sucks
 comments.


I think this is brilliant! I wish I had thought of that myself, I will
implement this into my apps asap.

-John Coryat
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ATTENTION ANDROID TEAM: Take back control of Android.

2010-01-17 Thread Kevin Duffey
Man..now that sucks. That is a bug if you ask me.. the market should NOT
show a 1.5 users a 1.6 SDK app update. That's just pure stupidity. That
makes no sense at all and I am shocked and disturbed that this is how it
works. They basically want you to submit a brand new 1.6 app so that 1.5
users don't get the update.. how hard is it to actually put a little code in
the market app that checks the min SDK and even IF the user has the app, if
their OS is not 1.6, don't show it. Very bad design of the market app
developers/designers.

On Sun, Jan 17, 2010 at 2:03 PM, Christine christine.kar...@gmail.comwrote:

 On Jan 17, 9:26 pm, Kevin Duffey andjar...@gmail.com wrote:
  First.. let me ask for those of you that have apps in the market.. if I
 have
  a 1.5 version out there.. it shows up on any device that is 1.5 or later,
  right? Now..if I update it to run on 2.0.. will the update be made
 available
  or even notify 1.5/1.6 users? Or does it only show up for 2.0 and later
  users in their market?

 By specifiying minSdkVersion and maxSdkVersion, you can provide
 different versions for different sdks. Every user would only see one
 version in the market, if I'm not mistaken. But you don't really want
 to do that unless you really need those different versions.

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

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

Re: [android-developers] How to navigate from one page to another?

2010-01-17 Thread Kevin Duffey
Hy Frank,

I've done the tutorials, Mark's book, etc. Do you happen to know if there is
a way to utilize a single activity and.. sort of like ajax web apps, hide
one view and show another without starting another activity? I'm not a fan
of handling the various life cycle events for different activities. I've not
figured out yet if you absolutely must use different activities for
different views, or can you use a single activity and simply swap views as
needed? I ask this because it seems to me that at any point, the user may be
in any one of your activities.. and I hate the idea of having to implement
the pause/resume/create/start/destory methods for each and every activity. I
am curious what developers do in this regard. Do they actually copy/paste
their code into each method for all their activities.. of course putting
activity specific stuff where appropriate?  Seems to me using a single
activity as the main app lifecycle hook, and simply swapping views would
make it easier to manage life cycle events for the app in one place. Perhaps
I am lost on why it is necessary to have various activities.. my main
concern being duplication of the life cycle handling events depending on
where a user is within your app.

Thanks.


On Sun, Jan 17, 2010 at 12:37 PM, Frank Weiss fewe...@gmail.com wrote:

 Sounds like you haven't tried any of the tutorials:
 http://developer.android.com/resources/index.html

 On Sun, Jan 17, 2010 at 1:39 AM, Rahul rahulsak2...@gmail.com wrote:

 Hello, I m the new user in Android.

 m trying to do one apll in which when we click on Button then control
 goes to next page and on Back button it comes to main 1st page...
 can anybody tell me hw to do this or any link??

 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Is there a way to refer to a group of attributes

2010-01-17 Thread Ray Benjamin
That helps, at least it reduces the clutter. What isn't covered by 
styles I may be able to handle using values. If I have all the 
attributes reference the same values, at least there will only be one 
place it has to be changed, and thus a lot fewer possible breakage 
points. :)


Thanks for the help!

Ray

Frank Weiss wrote:
Have you looked into Themes and Styles:  
http://developer.android.com/guide/topics/ui/themes.html
 
If the attributes are not related to that, other approaches would be: 
inflater hook, attribute injection at runtime, generate the layout xml 
files with XSLT.


On Sun, Jan 17, 2010 at 11:19 AM, Ray Benjamin ray.benja...@gmail.com 
mailto:ray.benja...@gmail.com wrote:


In creating a layout file, I have 25 buttons that all use the same
attributes except for ID. It seems like there should be some way
to package up all those attributes and use a reference to them,
but I can't recall how. Been a while since I did a lot with XML.
Can someone help?

Thanks,
 Ray

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@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: Events on GLSurfaceView

2010-01-17 Thread Peter Eastman
Here is where I create and add the listener:

http://gamine.svn.sourceforge.net/viewvc/gamine/trunk/src/net/sf/gamine/common/InputStage.java?revision=8view=markup

It gets added in onStart(), which is called from the start() method of

http://gamine.svn.sourceforge.net/viewvc/gamine/trunk/src/net/sf/gamine/common/Sequence.java?revision=8view=markup

I just tested calling setFocusable(true) again to be sure.  As before:
I still don't get key events, and the Back and Menu buttons stop
working.

If at all possible, I'd really prefer not to do event handling at the
Activity level.  This is a library (a 3D game engine), and I don't
want to restrict how developers create their Activities.  They just
need to provide a suitable View for the library to work with.

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

Re: [android-developers] XML reports from JUnit and Emma

2010-01-17 Thread Brett Chabot
Sorry for the late response - see inline:

On Wed, Dec 16, 2009 at 5:33 AM, Praetor konrad.piekar...@gmail.com wrote:

 Hi all,
 I've a question about generating XML reports after unit tests. I want
 to move build process to Hudson build server. It has plugins, which
 can read JUnit and Emma reports in XML file format, parse them and
 view in nice looking way.  My first thought was to create ant
 buildifle in which I would compile sources, add instrumentation and
 run Junit tests with instrumentated code, and generate report (using
 Emma and Junit tasks). It works fine but only when classes which don't
 use Android classses (e.g. Log.d(TAG,Log message)) were tested.
 I've found that this is because Android classes are available only in
 actual runtime (real device, emulator) - trying to test not on
 emulator caused runtime exception: Stub!.

 So I decided to do those tests in a way shown on Android developer
 site. I created two projects: first with main application, an second
 for test purposes. I installed those two on emulator, and executed
 tests via:
 badb shell am instrument  -w com.newbay.vault.test/
 android.test.InstrumentationTestRunner/b

 It run tests but, there wasn't very verbose output. I executed next
 command, to include coverage:
 badb shell am instrument  -e coverage true -w com.newbay.vault.test/
 android.test.InstrumentationTestRunner/b

 It created coverage.ec file on emulator which I was able to download
 via adb pull command.

 The problem is I need XML report from JUnit. Also - to generate Emma
 report - two files are needed: coverage.ec (which is generated on
 emulator) and coverage.em file (metadata) which I cannot find
 anywhere.

 Questions are:
 1. Can I somehow force Android to generate XML report from JUnit test
 results?


Try running the tests via Eclipse. There's an Test Run history icon on the
Junit results pane. Select it and choose Export from the resulting menu.
This will save an XML file of the results.


 2. Where shall I look for metadata file (coverage.em)?


coverage.em is generated from your built source code. I believe the 'emma
instr' command can generate it. However, there is an easier way of getting
code coverage results. The latest SDK (version 4 tools, and 1.6 platform or
greater) has built in support for generating emma code coverage. Just set up
your main app and test app as android projects, and then execute the 'ant
coverage' command for your test project. It should do all the necessary
behind-the-scenes compiling, installing, running of the tests, etc

3. Is it possible to successfully run tests without running emulator
 instance?


Android tests must be executed on an Android platform - either an Android
device or emulator.


 I've found some posts on Google where EMMA_INSTRUMENT=true variable
 was exported. Does this mean, that I have to compile SDK manually with
 this variable defined to turn on coverage.em generation?


EMMA_INSTRUMENT=true is used to get code coverage builds when building the
Android platform source code. Its not applicable when using the SDK - just
use 'ant coverage'



 Thanks in advance four your answers

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] ACTION_POWER_CONNECTED broadcast receiver not working

2010-01-17 Thread fhucho
Hi,
I want to do something after the the phone is put into charger. So I
created ChargingOnReciever:

public class ChargingOnReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
context.startActivity(someActivity);
}
}

and I put this into manifest:

reciever android:name=ChargingOnReceiver
intent-filter
action
android:name=android.intent.action.ACTION_POWER_CONNECTED /
action
android:name=android.intent.action.ACTION_POWER_DISCONNECTED /
/intent-filter
/reciever
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >