[android-developers] Re: ics menu problems

2011-12-18 Thread Zsolt Vasvari
What's the story with the soft menu button on the ICS 4.0.3 (SDK 15)
emulator?

When I run my app, I get the menu button on the title bar most of the
time, but then when I have a Dialog open, it's displaying the button
on the bottom right (and does nothing, of course.)

Unfortunately, I have no access to an ICS phone here in Singapore.



On Dec 19, 3:32 pm, Kostya Vasilyev  wrote:
> The issue with the progress indicator being visible by default has been
> there for a long time - since 3.something.
> 19.12.2011 4:08 пользователь "dashman"  написал:
>
>
>
> > putting this line in the manifest solved the problem
>
> >  >                  android:targetSdkVersion="11"  
> > />
>
> > but i will look at the github link also...
>
> > for others migrating apps to 4.0...another gotcha
>
> > if you have the following in your activity:
>
> > requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
>
> > you have to call the following right after the setContentView()
>
> >        setProgressBarIndeterminateVisibility( false );
>
> > On Dec 18, 6:32 pm, Harri Smått  wrote:
> > > Hi,
>
> > > Also, I was only referring to this document which gives easy to
> > implement support for both API level prior to 11 and 11+;
>
> > >http://developer.android.com/guide/topics/ui/actionbar.html
>
> > > Especially the "Adding the Action Bar" section.
>
> > > --
> > > H
>
> > > On Dec 19, 2011, at 1:02 AM, Mark Murphy wrote:
>
> > > > On Sun, Dec 18, 2011 at 5:46 PM, dashman  wrote:
> > > >> Does this mean that i'll have to have 2 different executables -
> > > >> one for pre-4 and another for 4+.
>
> > > > Probably not.
>
> > > >> this would
> > > >> mean all pre 4.0 apps need to be modified.
>
> > > > Probably not.
>
> > > >https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC
>
> > > > That sample application correctly shows the "three dots" on a Galaxy
> > > > Nexus and on an emulator with hw.mainKeys=no. It does not show the
> > > > "three dots" on an emulator with hw.mainKeys=yes, simulating a device
> > > > that has the off-screen keys. Figure out where you are doing things
> > > > differently than I am and track down where the difference lies.
>
> > > > If you are testing with the emulator, make sure you are on the latest
> > > > Android 4.0 emulator image and the r16 tools.
>
> > > > --
> > > > Mark Murphy (a Commons Guy)
> > > >http://commonsware.com|http://github.com/commonsguy
> > > >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en- 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] After clicking Activate must I click Save too?

2011-12-18 Thread Droid
I should know this but
In Android market I upload a new apk version and hit 'Activate'
button.
Simple question - must I hit the 'Save' button to make users start
updating the App or is 'Activate' enough?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-18 Thread Stephen Williams

http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap%28android.graphics.Bitmap,%20int,%20int,%20boolean%29

Many things in Java, especially graphics operations, are implemented 
mainly by native code.  I've traced 2D graphics calls all the way down 
to very specific JNI calls for particular transformations or bitblit or 
whatever.  So, there's often little point in writing your own native 
code to implement something that the libraries already do since often 
they are well optimized.  If you want to do something not already 
included, then it can make sense to go native.


sdw

On Sun Dec 18 21:27:02 2011, s.rawat wrote:

Hi Stephen, thanks for the reply,
Can you Plz elaborate the "methods" and "this" in your last sentence --> "There are *fast built-in methods* to do *this* well, 
but basically you create a pixel from a weighted average in color space of the pixels that the resulting pixel overlaps"

a ltmgfy link will be great !!!
Rgds,
Saurabh

"..pain is temporary.quitting lasts forever.."



On Sun, Dec 18, 2011 at 3:07 AM, Stephen Williams mailto:stephendwilli...@gmail.com>> wrote:

There are fast built-in methods to do this well, but basically you create a 
pixel from a weighted average in color space
of the pixels that the resulting pixel overlaps.





--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Slow scrolling in Date/TimePicker using Holo theme

2011-12-18 Thread Dirk Vranckaert
Thanks for the help Matt! I implemented a CustomDatePicker and
CustomTimePicker, for both classes have overriden the
onInterceptTouchEvent method and works like a charm now! :)

On 16 dec, 16:47, Matt H  wrote:
> Hi Dirk,
>
> I had the same problem (noticed it yesterday, too, coincidentally!).
> The issue is that the ScrollView is intercepting and stealing the
> touch events once your finger moves outside of the Date/Time Picker
> controls.
>
> To work around this, I created sub classes of Date/TimePicker which
> prevent the parent from stealing events after the initial touch down
> (see below). If you use those in your layout XML instead, you should
> find the problem goes away.
>
> Hope that is useful!
>
> Matt.
>
> import android.content.Context;
> import android.util.AttributeSet;
> import android.view.MotionEvent;
> import android.view.ViewParent;
> import android.widget.DatePicker;
>
> public class CustomDatePicker extends DatePicker
> {
>     public CustomDatePicker(Context context, AttributeSet attrs, int
> defStyle)
>     {
>         super(context, attrs, defStyle);
>     }
>
>     public CustomDatePicker(Context context, AttributeSet attrs)
>     {
>         super(context, attrs);
>     }
>
>     public CustomDatePicker(Context context)
>     {
>         super(context);
>     }
>
>     @Override
>     public boolean onInterceptTouchEvent(MotionEvent ev)
>     {
>         /* Prevent parent controls from stealing our events once we've
> gotten a touch down */
>         if (ev.getActionMasked() == MotionEvent.ACTION_DOWN)
>         {
>             ViewParent p = getParent();
>             if (p != null)
>                 p.requestDisallowInterceptTouchEvent(true);
>         }
>
>         return 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


Re: [android-developers] Re: ics menu problems

2011-12-18 Thread Kostya Vasilyev
The issue with the progress indicator being visible by default has been
there for a long time - since 3.something.
19.12.2011 4:08 пользователь "dashman"  написал:

> putting this line in the manifest solved the problem
>
>   android:targetSdkVersion="11"  
> />
>
> but i will look at the github link also...
>
>
> for others migrating apps to 4.0...another gotcha
>
> if you have the following in your activity:
>
> requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
>
> you have to call the following right after the setContentView()
>
>setProgressBarIndeterminateVisibility( false );
>
>
>
>
>
> On Dec 18, 6:32 pm, Harri Smått  wrote:
> > Hi,
> >
> > Also, I was only referring to this document which gives easy to
> implement support for both API level prior to 11 and 11+;
> >
> > http://developer.android.com/guide/topics/ui/actionbar.html
> >
> > Especially the "Adding the Action Bar" section.
> >
> > --
> > H
> >
> > On Dec 19, 2011, at 1:02 AM, Mark Murphy wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Sun, Dec 18, 2011 at 5:46 PM, dashman  wrote:
> > >> Does this mean that i'll have to have 2 different executables -
> > >> one for pre-4 and another for 4+.
> >
> > > Probably not.
> >
> > >> this would
> > >> mean all pre 4.0 apps need to be modified.
> >
> > > Probably not.
> >
> > >https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC
> >
> > > That sample application correctly shows the "three dots" on a Galaxy
> > > Nexus and on an emulator with hw.mainKeys=no. It does not show the
> > > "three dots" on an emulator with hw.mainKeys=yes, simulating a device
> > > that has the off-screen keys. Figure out where you are doing things
> > > differently than I am and track down where the difference lies.
> >
> > > If you are testing with the emulator, make sure you are on the latest
> > > Android 4.0 emulator image and the r16 tools.
> >
> > > --
> > > Mark Murphy (a Commons Guy)
> > >http://commonsware.com|http://github.com/commonsguy
> > >http://commonsware.com/blog|http://twitter.com/commonsguy
> >
> > > Warescription: Three Android Books, Plus Updates, One Low Price!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Unable to execute Bluetooth HDP Demo

2011-12-18 Thread Raul Ruiz
Will Android 4.0.3 give a solution?

On 16 dic, 15:54, Raul Ruiz  wrote:
> Well we have same trouble. I have UA-767PBT-C device too and with HDP
> Demo doesnt connect.
>
> Im doing a program that receive ACL_CONNECT from device and opens a
> channel.
> In the program, Health service is use by android BT and the link is
> connected but device is in CONNECTING_STATE and then drops down.
> Using a BT sniffer like HCIDUMP, i watch that android BT doest send
> CONNECT RSP to device and I think that this is the problem.
>
> If you want some help tell me i will continue working in this.
>
> PD: Me too check this in linux, and it works finelly.I think that dbus
> library is different.
>
> On 16 dic, 12:29, jfernandez 
> wrote:
>
>
>
>
>
>
>
> > On 16 dic, 11:31, Raul Ruiz  wrote:
>
> > > Hi  Jorge,
>
> > Hi Raul,
>
> > > What device are you using? I have a same problem using Nonin 9560BT
> > > pulseoximeter. It conects and disconnects and any data had received in
> > > the Android.
>
> > I'm working with a board which is able to simulate several biomedical
> > devices.
>
> > On the other hand, I have a real device (blood pressure monitor
> > UA-767PBT-C). In that case, the device opens the HDP channel
> > automatically with the smartphone which acts as sink. But the truth is
> > that I don't see anything in the LogCat related to this channel.
> > However, if I try opening the connection channel from the HDP Demo
> > Application, I obtain the same error.
>
> > Anyway, I have checked all of this in a Linux laptop using the same
> > BlueZ stack that we have in Android and everything works fine.
>
> > > Do you have any solution?
>
> > Not yet. I'm expecting some feedback.
>
> > > Thanks
>
> > > On Dec 15, 6:30 pm, jfernandez 
> > > wrote:
>
> > > > Hi all,
>
> > > > I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0
> > > > Ice Cream Sandwich) in my Android smartphone. When I have registered
> > > > the application in order to receive data, and I have paired the
> > > > biomedical device with the smartphone, I try to open the channel
> > > > connection and I can see that the device starts sending data to the
> > > > smartphone. However, the smartphone is unable to open the channel
> > > > connectionHDP.
>
> > > > At the end of this message you can see the output obtained in the
> > > > LogCat.
>
> > > > Has anybody achieved to run successfully this sample about the use of
> > > > theBluetoothHealth Profile API? Any ideas?
>
> > > > Thanks. Regards.
>
> > > > [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html
>
> > > > This is the log that I obtain:
>
> > > > 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel()
> > > > 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE:
> > > > 00:80:25:14:A1:BC: 0 -> 1
> > > > 12-15 16:40:55.169: D/ConnectivityService(147):
> > > > handleInetConditionHoldEnd: net=1, condition=0, published condition=0
> > > > 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property
> > > > changed: 00:80:25:14:A1:BC property: Connected value: true
> > > > 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device :
> > > > devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/
> > > > bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue
> > > > 12-15 16:41:00.034: E/BluetoothService.cpp(147):
> > > > getChannelApplicationNative
> > > > 12-15 16:41:00.044: E/bluetooth_common.cpp(147):
> > > > dbus_func_args_timeout_valist: D-Bus error in Acquire:
> > > > org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed)
> > > > 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error
> > > > obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/
> > > > chan3115
> > > > 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative
> > > > 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147):
> > > > onHealthDeviceConnectionResult: D-Bus error:
> > > > org.bluez.Error.HealthError (Mdl is not created)
> > > > 12-15 16:41:00.074: D/BluetoothEventLoop(147):
> > > > onHealthDeviceConnectionResult 2 6001
> > > > 12-15 16:41:00.214: D/BluetoothEventLoop(147):
> > > > onHealthDeviceConnectionResult 2 6000
> > > > 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of
> > > > Property is: MainChannel Value:/org/bluez/278/hci0/
> > > > dev_00_80_25_14_A1_BC/chan3115

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: apk does not include classes.dex ,so apk can't be installed

2011-12-18 Thread xuxiake2...@gmail.com
i think Android.mk  effect this

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


[android-developers] Re: about addaccountexplicitly

2011-12-18 Thread Fanny Lau
the error is nullpointerexception

On 12月19日, 下午2時14分, Fanny Lau  wrote:
> It seems every time run to addaccountexplicitly the error occur
>
> On 12月14日, 上午4時33分, TreKing  wrote:
>
>
>
>
>
>
>
> > On Wed, Dec 7, 2011 at 12:53 AM, Fanny Lau  wrote:
> > > finally the program has stopped every time(even the
> > > toast also no show)... what's wrong with my code
>
> > You're not debugging it. Try that.
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

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


[android-developers] Re: about addaccountexplicitly

2011-12-18 Thread Fanny Lau
It seems every time run to addaccountexplicitly the error occur

On 12月14日, 上午4時33分, TreKing  wrote:
> On Wed, Dec 7, 2011 at 12:53 AM, Fanny Lau  wrote:
> > finally the program has stopped every time(even the
> > toast also no show)... what's wrong with my code
>
> You're not debugging it. Try that.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] Re: How to determine what Activities are bound to my Service

2011-12-18 Thread Bsweet
Diane and Mark,

Thanks for your help.  I am able to determine the calling
applications.

Harri, if you are curious this is what I did:

1. Activity binds to my service and makes a call to my remote service
requesting a token.
2. In the remote binder interface, the service uses
Binder.getCallingUid to get uid, then package then signatures
3. Service generates a UID (token) and associates the signature in a
cache with that token.  Token is returned to activity
4. Activity unbinds from token binder and binds again to my actual
service binder.  Passes the token in the intent.  Service validates
the signature.

Thanks again all!

On Dec 17, 7:43 am, Harri Smått  wrote:
> Oh,
>
> Forgot to add. Bear in mind that Facebook SSO uses 
> Activity.startActivityForResult(..) which gives them access to 
> Activity.getCallingActivity() once authentication Activity is spawned.
>
> --
> H
>
> On Dec 17, 2011, at 5:22 PM, Harri Smått wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > AFAIK there is no way to determine calling application from 
> > yourServiceautomatically (as many have stated already). As for Facebook 
> > SSO, it's a bit different situation since it handles logging in directly 
> > into their web services via assigned access token. In your situation you 
> > ought to do something similar though, especially give your clients a client 
> > library for making it easier to authenticate with your AndroidService.
>
> > Now, if you have a webservice, which clarifies your situation a lot, the 
> > whole authentication procedure could go roughly as follows.
>
> > 1. Your clients have to register their package signature vie web interface 
> > to server side.
> > 2. Client calls, e.g, identify(signature) IPC method after binding.
> > 3.Serviceforwards it to webservice, which determines is it ok to continue.
> > 4.Serviceassigns client a session id on positive answer.
>
> > It would be totally up to you do you want to do whole identifying procedure 
> > as a separate thread, which returns session id viaServicecallback 
> > mechanism, or as a blocking method which returns it instantly. When it 
> > comes to safely dealing with client signature, and package signatures in 
> > general, goes beyondmyknowledge though.
>
> > --
> > H
>
> > On Dec 17, 2011, at 1:14 AM, Bsweet wrote:
>
> >> Ultimately what I would like to do is check the signature of thebound
> >> application.
>
> >> I want to have a mechanism where developers can register their
> >> signatures withmyservice, then I will check to see if their package/
> >> signature combination matches what I have inmywebservice.
>
> >> This is exactly what the Facebook Android application does for Single
> >> Sign On.
>
> >> I just can't find a clean way to get the calling application.
>
> >> On Dec 16, 8:46 am, Harri Smått  wrote:
> >>> Hi,
>
> >>> I would go for a simple handshaking mechanism quite likely. You can let 
> >>> anyone bind to yourservicebut disallow usage of IPC methods for 
> >>> unidentified clients. E.g.
>
> >>> 1. Client connects toservice.
> >>> 2. After connection is established, client is required to call, say, 
> >>> identify() IPC method which returns a String, Integer, what so ever.
> >>> 3. After receiving this challenge, client has to call identify(result) 
> >>> method which gives client a session id.
> >>> 4. For all of the later calls client has to use this session id among 
> >>> with the call.
>
> >>> Quite obviously all this depends totally on how much security you're 
> >>> required to have within your client-serviceinteraction but some very 
> >>> simple handshaking protocol might work surprisingly well if it's kept 
> >>> secret.
>
> >>> --
> >>> H
>
> >>> On Dec 16, 2011, at 6:26 PM, Bsweet wrote:
>
>  It is the spoof part that concerns me.
>
>  Anyone else out there have any creative ideas?
>
>  Right now I'm considering just checking who is on the top  of the
>  activity stack, but that is hokey and not reliable.
>
>  On Dec 16, 4:30 am, Mark Murphy  wrote:
> > On Thu, Dec 15, 2011 at 9:54 PM, Kristopher Micinski
>
> >  wrote:
> >> When you get a bind in yourservice(your onBind) can you just take
> >> the intent and get component associated with it?
>
> >> From Intent:
> >> ComponentName    getComponent()
> >> Retrieve the concrete component associated with the intent.
>
> > That should be the recipient, not the sender.
>
> > The only way I know to find out whoboundto you is if you require
> > that information in an extra, and that can always be spoofed. The
> > expectation is that you should not care *who*boundto you, merely
> > whether they had sufficient permissions to do so.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 4.1 Available!
>
>  --
>  You received this message because you are subscribed to the 

[android-developers] where can get the Android sample source codes?

2011-12-18 Thread android developer
where can get the  Android sample source codes?

send me the site links

Thanks you all...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can select any file pro-grammatically from android's Internal/External Storage ..

2011-12-18 Thread android developer
On Fri, Dec 16, 2011 at 2:56 PM, Jalp Bhatt  wrote:

> Hello,
>
> i develop an app which select any file from internal storage and then
> upload that file online .
>
> So if any body know how to select any file from internal/external
> storage then please help me on this issue as fast as possible ..
>
> Here i show you what i want  to do actually :
>
> In my app there is a button called "select file to upload " , When
> user click on that at that time one window is open and that shows all
> the mobile phone internal folders(like Gallery, sd cards n all ) so
> that i can select file from in it .
>
> But i don't know how to do it programmatically so please help me on
> this issue .
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-12-18 Thread JBirdVegas
Sorry misspost this was in responce to another question. apologies.
On Dec 18, 11:57 pm, JBirdVegas  wrote:
> http://android-developers.blogspot.com/2011/12/introducing-android-tr...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SENDING YUV-TO-JPEG CONVERTED BUFFER AS A BITMAP from JNI to Android code...plzzz help...Not a Noob , Am i??

2011-12-18 Thread s.rawat
Hi Stephen, thanks for the reply,
Can you Plz elaborate the "methods" and "this" in your last sentence --> "There
are *fast built-in methods* to do *this* well, but basically you create a
pixel from a weighted average in color space of the pixels that the
resulting pixel overlaps"
a ltmgfy link will be great !!!
Rgds,
Saurabh

"..pain is temporary.quitting lasts forever.."



On Sun, Dec 18, 2011 at 3:07 AM, Stephen Williams <
stephendwilli...@gmail.com> wrote:

> There are fast built-in methods to do this well, but basically you create
> a pixel from a weighted average in color space of the pixels that the
> resulting pixel overlaps.

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

2011-12-18 Thread 杨辉
check the ApiDemos in the Android  SDK。

2011/12/19 Michael Leung 

> Read the Android tutorial
> After you learn the basic, I recommend this book ,
> http://www.manning.com/collins/ .
> There are a lot of techniques in there.
>
>
> On Mon, Dec 19, 2011 at 12:13 PM, TreKing  wrote:
>
>> On Fri, Dec 16, 2011 at 5:57 AM, J S  wrote:
>>
>>> Hi, how to become a android develoler?
>>
>>
>> Develoler for Android. You're welcome.
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Regards,
> Michael Leung
> http://www.itblogs.info - My IT Blog
> http://diary.skynovel.info - My Blog
> http://www.michaelleung.info - My Homepage
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
杨辉
Impossible is nothing!

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

2011-12-18 Thread android developer
Hi i want small car game, in that let me know how to move object(car image).

can anyone send me sample code for that..

Thank you all.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run application in background on click of device back button

2011-12-18 Thread Kristopher Micinski
On Sun, Dec 18, 2011 at 11:50 PM, lbendlin  wrote:
> I guess the second question is - can you start an application from a URL?
> (In iOS you can sort of register custom URI schemes, and tell the OS to
> redirect these links to your (installed) app).
>

Sure

http://developer.android.com/guide/topics/intents/intents-filters.html

kris

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


[android-developers] learn to develop

2011-12-18 Thread JBirdVegas
http://android-developers.blogspot.com/2011/12/introducing-android-training.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A%20blogspot%2FhsDu%20%28Android%20Developers%20Blog%29&m=1

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

2011-12-18 Thread rachana govilkar
Need help in MMS issue.
This is the flow.
I open my application and after i login i get a screen of writing
message.This message can be SMS/MMS but right now i am concerned about
MMS so i write some text and click on "Add Attachment" button.
Then it shows me another screen of adding image/video/audio.Whenever i
select a image/video/audio it must be displayed on 1st
screen where there is ImageView or whatever.
Here i am not able to see that selected thing.
I use XPERIA ARC n it works in your android way of showing me the
attachment.
But in my application complete flow is working correctly except last
part of showing attachment.
so i am not getting what i must do?can u just explain?
thanks.

On Dec 8, 3:03 pm, rachana govilkar 
wrote:
> hey thank you so much for help
> actually i changed my code.wrote a simple 1 n it is running.
> but i have not solved video select error
> just check this thread..i have mentioned it in previous posts.
> could u help me??
> i wil put my code if you want.
> but do help me as soon as possible
> thanks in advance...
>
> On Dec 5, 5:19 pm, Mukesh Srivastav  wrote:
>
>
>
>
>
>
>
> > Rachna,
>
> > Please call the unlock method immediate after preview display,that helps.
>
> > --
> > Warm Regards,
> > *Mukesh Kumar*,
> > Android Consultant/Freelancer,
> > India,Hyderabad.
>
> > On Mon, Dec 5, 2011 at 5:38 PM, rachana govilkar 
> > > wrote:
> > > hello...
> > > y anybody is not replying on this thread???
> > > anywys plz help this time.am just stuck up at audio recording
> > > i just wrote this program given in android guide..
> > >http://developer.android.com/guide/topics/media/audio-capture.html
> > > but getting error as prepare() is failed..
> > > this error is killing me. plzzz help.
>
> > > On Dec 1, 5:09 pm, rachana govilkar 
> > > wrote:
> > > > hey now am capturing video n getting same error..
> > > > Unable to instantiate activity ComponentInfo{com.privacygram.activity/
> > > > com.privacygram.activity.VideoCapture}:
> > > > java.lang.InstantiationException:
> > > > com.privacygram.activity.VideoCapture
> > > > plz help me...
>
> > > > On Nov 30, 4:41 pm, rachana govilkar 
> > > > wrote:
>
> > > > > hey now i hav aproblemworking on Create Contact.i usedhttp://
> > > developer.android.com/guide/topics/providers/content-providers...
> > > > > this link
> > > > > but as per given there i could create contact statically
> > > > > but i need to create dynamically as android built-in create contact
> > > > > functionality
> > > > > n also tell me when u save the contact u do save it in Database or
> > > > > smthing else??
> > > > > any help is appreciated.
>
> > > > > On Nov 29, 5:10 pm, rachana govilkar 
> > > > > wrote:
>
> > > > > > Hey Its Working...
> > > > > > yaaay!
> > > > > > i knw it must hv been very simple for u but for me its a start
> > > > > > 1st android program n exception was comingu can guess how sick i
> > > > > > was feeling...
> > > > > > but no more sick now
> > > > > > i just need to focus more on itthnk u for help
>
> > > > > > On Nov 29, 4:08 pm, rachana govilkar 
> > > > > > wrote:
>
> > > > > > > above described was 1 way i tried.
> > > > > > > it was to develop customized camera feature as given in Android
> > > guide/
> > > > > > > camera...
> > > > > > > i also tried another way of using existing camera feature but am
> > > > > > > getting NullPointerException
> > > > > > > can u tel where am going wrong??
>
> > > > > > > On Nov 29, 10:13 am, rachana govilkar 
> > > > > > > wrote:
>
> > > > > > > > hey this is my ImageCapture.java..hope u get idea.
>
> > > > > > > >packagecom.privacygram.activity;
>
> > > > > > > > import android.content.Context;
> > > > > > > > import android.graphics.PixelFormat;
> > > > > > > > import android.hardware.Camera;
> > > > > > > > import android.hardware.Camera.Parameters;
> > > > > > > > import android.hardware.Camera.PictureCallback;
> > > > > > > > import android.hardware.Camera.ShutterCallback;
> > > > > > > > import android.view.SurfaceHolder;
> > > > > > > > import android.view.SurfaceView;
>
> > > > > > > > public class ImageCapture extends SurfaceView{
>
> > > > > > > >         SurfaceHolder previewHolder;
> > > > > > > >         Camera camera;
> > > > > > > >         protected PictureCallback raw;
> > > > > > > >         protected ShutterCallback shutter;
> > > > > > > >         protected PictureCallback postview;
> > > > > > > >         protected PictureCallback jpeg;
>
> > > > > > > >         public ImageCapture(Context context) {
> > > > > > > >                 super(context);
> > > > > > > >                 // TODO Auto-generated constructor stub
> > > > > > > >                 previewHolder = this.getHolder();
>
> > > previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>
> > >  previewHolder.addCallback(surfaceHolderListener);
> > > > > > > >         }

Re: [android-developers] How to run application in background on click of device back button

2011-12-18 Thread lbendlin
I guess the second question is - can you start an application from a URL?  
(In iOS you can sort of register custom URI schemes, and tell the OS to 
redirect these links to your (installed) app).

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

2011-12-18 Thread rachana govilkar
Ok.I understood what you both meant and I am sorry.(I hope sorry is
fine).
So can we get back to the issue of MMS?
I am posting it on my thread again.Hope you would feel helping me.
Thank you for paying attention.


On Dec 19, 5:55 am, Jim Graham  wrote:
> On Sun, Dec 18, 2011 at 04:33:36PM -0600, TreKing wrote:
> > Yes - but people are more likely to help others that take the time to
> > formulate a well written question and don't write like a 14-year-old girl
> > texting her friends (I'm not saying you are, that's an extreme analogy).
> > Otherwise many people will dismiss you as spam or not take you seriously.
>
> I just wanted to second that.  Personally, if I can't make sense of the
> post without having to try and figure out what the OP meant, I just
> delete it and move on.  That's assuming that the Subject line (or the
> portion of it that doesn't fall off the side of the screen, as that's all
> I see---the first few words matter), I usually don't even bother to read
> it at all.
>
> I also skip posts where what appears to be a question is worded as a
> stateement (usually also with no question mark), or with statements that
> have question marks instead of periods (and this is far too common with
> American-English speakers, too).  Every now and then, if I'm in the mood
> to try to help, I will at least try to figure it out...otherwise, delete
> and move on.
>
> With that, I'm out of here...other stuff to do.
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)        | "Now what *you* need is a proper pint of
> spooky1...@gmail.com    | porter poured in a proper pewter porter
> < Running FreeBSD 7.0 > | pot.."
> ICBM / Hurricane:       |    --Peter Dalgaard in alt.sysadmin.recovery
>    30.44406N 86.59909W  |
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.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] How to run application in background on click of device back button

2011-12-18 Thread Kristopher Micinski
On Sun, Dec 18, 2011 at 11:33 PM, TreKing  wrote:
> On Sun, Dec 18, 2011 at 9:31 PM, Uday Gokhale 
> wrote:
>>
>> 1) I get the message,on click of that message I want to check whether my
>> application is install on device?
>
> You app can only check if it is installed ... if it is installed ...

Surely he must mean another one of his apps, correct?

Kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run application in background on click of device back button

2011-12-18 Thread TreKing
On Sun, Dec 18, 2011 at 9:31 PM, Uday Gokhale wrote:

> 1) I get the message,on click of that message I want to check whether my
> application is install on device?
>
You app can only check if it is installed ... if it is installed ...

> 2) If my app install on a device i want to show route,
>
> 3)I want my application to run in background when back key(Device) pressed.
>
http://developer.android.com/reference/android/app/Service.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: How to run application in background on click of device back button

2011-12-18 Thread lbendlin
3.  moveTaskToBack(true);

Keep in mind that you should stop all UI activities when your app moves to 
the background (like, updating the "my location" icon on the map). You can 
re-enable them in onResume();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 run application in background on click of device back button

2011-12-18 Thread Uday Gokhale
I want to show route between source and destination using google
map.whenever -

1) I get the message,on click of that message I want to check whether my
application is install on device?

2) If my app install on a device i want to show route,

3)I want my application to run in background when back key(Device) pressed.

Please any idea how to achieve above three functionality? 3rd one is most
imp.


Thanks.






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

[android-developers] Re: Developing an app that views a forum

2011-12-18 Thread lbendlin
Professor: "Memorize the entire phone book."
Medical student: "By when?"
Engineering student/software developer: "Come again?"

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

2011-12-18 Thread Michael Leung
Read the Android tutorial
After you learn the basic, I recommend this book ,
http://www.manning.com/collins/ .
There are a lot of techniques in there.

On Mon, Dec 19, 2011 at 12:13 PM, TreKing  wrote:

> On Fri, Dec 16, 2011 at 5:57 AM, J S  wrote:
>
>> Hi, how to become a android develoler?
>
>
> Develoler for Android. You're welcome.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2011-12-18 Thread Michael Leung
try to read this blog post:
http://timewasted.net/?p=127

There are a number of good examples on the web.

On Mon, Dec 19, 2011 at 12:07 PM, TreKing  wrote:

> On Sun, Dec 18, 2011 at 10:44 AM, bigKidd01 wrote:
>
>> how do i create a basic soap web service so i can get and post xml data
>> to a web service.
>>
>
> Read a book or website that explains how to do this. This is group is for
> Android SDK programming, so you're way off base here.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can select any file pro-grammatically from android's Internal/External Storage ..

2011-12-18 Thread TreKing
On Fri, Dec 16, 2011 at 3:26 AM, Jalp Bhatt  wrote:

> But i don't know how to do it programmatically so please help me on this
> issue .
>

Google "Android file browser".

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Connect to SQLServer

2011-12-18 Thread TreKing
On Thu, Dec 15, 2011 at 8:19 PM, chamroeun oum wrote:

> could you please tell me how to create web service?
> or give me any link to read about this?
>

This has nothing to do with this list, but here's a link:
http://justfuckinggoogleit.com/

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: problem:FingerPaint using surfaceview

2011-12-18 Thread Hassy
Thank you Jeremy

On Nov 1, 11:24 am, Jeremy Dagorn  wrote:
> Hi,
>
> I've done a project using FingerPaint.
> You could look at it :https://github.com/jrm2k6/ElectronicCalendar
>
> Best,
>
> On Oct 31, 9:56 pm,Hassy wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I'm trying to create a finger paint application using surfaceview.
> > I have tried and able to paint on the screen using view but when I use
> > surfaceview
> > ,I can't draw on the screen.
>
> > can anybody tell me how to solve this problem.
>
> > CODE
>
> > Main Activity
>
> > public class MainAct extends Activity {
> >         DrawView drawView;
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
> >         // Set full screen view
>
> > getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
> >                 WindowManager.LayoutParams.FLAG_FULLSCREEN);
> >         requestWindowFeature(Window.FEATURE_NO_TITLE);
>
> >         drawView = new DrawView(this);
> >         setContentView(drawView);
> >         drawView.requestFocus();
> >     }
>
> > }
>
> > DrawView.class
>
> > public class DrawView extends SurfaceView implements
> > SurfaceHolder.Callback{
> >          private static final String TAG = "DrawView";
>
> >             List points = new ArrayList();
> >             Paint paint = new Paint();
> >             Thread mainLoop = null;
>
> >             public DrawView(Context context) {
> >                 super(context);
>
> >                 getHolder().addCallback(this);
> >                 setFocusable(true);
> >                 setFocusableInTouchMode(true);
> >                 paint.setAntiAlias(true);
> >                 paint.setColor(Color.WHITE);
> >                 paint.setAntiAlias(true);
> >             }
> >             public void doDraw(){
> >                 Canvas canvas = getHolder().lockCanvas();
> >                 canvas.drawColor(Color.BLACK);
> >                 canvas.drawCircle(50, 50, 50, paint);
> >                         for (Point point : points) {
> >                             canvas.drawCircle(point.x, point.y, 25, paint);
> >                             // Log.d(TAG, "Painting: "+point);
>
> >                      }
> >                          getHolder().unlockCanvasAndPost(canvas);
> >             }
>
> >                 @Override
> >                 public void surfaceChanged(SurfaceHolder holder, int 
> > format, int
> > width,
> >                                 int height) {
> >                         // TODO Auto-generated method stub
>
> >                 }
>
> >                 @Override
> >                 public void surfaceCreated(SurfaceHolder holder) {
> >                         // TODO Auto-generated method stub
> >                         Log.d(getClass().getName(), "surfaceCreated");
> >                         doDraw();
> >                 }
>
> >                 @Override
> >                 public void surfaceDestroyed(SurfaceHolder holder) {
> >                         // TODO Auto-generated method stub
>
> >                 }
> >                 @Override
> >                 public boolean onTouchEvent(MotionEvent event) {
> >                 // if(event.getAction() != MotionEvent.ACTION_DOWN)
> >                 //return super.onTouchEvent(event);
> >                         Point point = new Point();
> >                 point.x = event.getX();
> >                 point.y = event.getY();
> >                 points.add(point);
> >                 Log.d(TAG, "point: " + point);
> >                 return super.onTouchEvent(event);
> >             }
> >         }
>
> >         class Point {
> >             float x, y;
>
> >             @Override
> >             public String toString() {
> >                 return x + ", " + y;
> >             }
> >         }
>
> > Thank you
> >Hassy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implement a finger slide selection of multiple cells in a gridview

2011-12-18 Thread TreKing
On Sat, Dec 17, 2011 at 3:26 AM, DK  wrote:

> I am unable to implement this using a ontouchlistener and even
> a onClicklistener as wel...
>

Why not? What have you tried? What work have you done? Where specifically
are you stuck?

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] unknow extend an ArrayAdapter

2011-12-18 Thread TreKing
On Fri, Dec 16, 2011 at 3:46 AM, nguyendu_vietnam  wrote:

> Thanks for answer everybody


I doubt you'll get an answer since you didn't ask a question, and what you
did post doesn't make a ton of sense. Try rephrasing and clarifying.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Need help on making mobile catalog

2011-12-18 Thread TreKing
On Fri, Dec 16, 2011 at 2:02 AM, Squallionz wrote:

> i got an order from my boss to make a mobile catalog for our company
> product for android devices. Does anyone can help me or maybe have an
> example that i can try and learn from?
>

An example for what? What are you looking for that you can't find on your
own using Google?
http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] 3d globe in android

2011-12-18 Thread TreKing
On Fri, Dec 16, 2011 at 8:46 PM, Raju Gaddam  wrote:

> Hi please tell me the procedure how to implement 3d globe in android
> and here OPENGL ES is enough are anything is required
>

http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] how to become a developer

2011-12-18 Thread TreKing
On Fri, Dec 16, 2011 at 5:57 AM, J S  wrote:

> Hi, how to become a android develoler?


Develoler for Android. You're welcome.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Developing an app that views a forum

2011-12-18 Thread TreKing
On Thu, Dec 15, 2011 at 4:13 PM, jjfmarine  wrote:

> Any good code references/videos/or text would be appreciated!
>

http://developer.android.com/index.html
https://www.google.com/

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Is google calendar api is public yet

2011-12-18 Thread TreKing
On Thu, Dec 15, 2011 at 3:39 PM, Bhupi  wrote:

> I am planning to use calender api and couldn't find any documentation.


You couldn't? Come on.
http://developer.android.com/search.html#q=calendar&t=0

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] soap web service

2011-12-18 Thread TreKing
On Sun, Dec 18, 2011 at 10:44 AM, bigKidd01 wrote:

> how do i create a basic soap web service so i can get and post xml data to
> a web service.
>

Read a book or website that explains how to do this. This is group is for
Android SDK programming, so you're way off base here.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: how to make minor changes but not push out an update

2011-12-18 Thread John Coryat
If you have any code in the app that saves user preferences or other data, 
you could use that to check if the user was new to the app or not and show 
ads only to those that have never used it before. If you don't have any 
configuration or saved settings, it may be difficult.

You might just give your users a free opt-out option. That way if they were 
annoyed by your placement of ads, they could simply stop them. I think 
you'll find it's a relatively small percentage, like 4%, who object to ads.

-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] LinkedList or ArrayList?

2011-12-18 Thread Michael Leung
Sorry about that, I should not say "better". I should say "my preference".
Each of them are good at some areas , bad at some areas.
that is depending on your task.


On Mon, Dec 19, 2011 at 6:41 AM, James Black wrote:

> When it comes to which is better, the best option is to write using both
> options, then profile it, as which is better is context-dependent.
>
> By profiling that application the OP can find the best option for his use,
> and have the numbers to back it up.
>
> If you know how many items you are going to have in a collection, for
> example, then the arraylist is obviously the better choice.  If you are
> adding/removing frequently then it won't be the best choice.
>
> I tend to use an arraylist, since I read often from my preferences, and
> can split up the string that is stored there, so I know how many items to
> store.
>
> On Sun, Dec 18, 2011 at 11:28 AM, Lew  wrote:
>
>> Based on what?  We have zero facts on which to base such a baseless
>> conclusion.
>>
>> The consensus of the referenced reference seems to be the opposite of
>> your conclusion,
>> though it is equally devoid of context-relevant data for the OP.  The
>> point being that it
>> doesn't support your inference.
>>
>> So how did you decide that 'LinkedList' is "better" for the OP?  Did they
>> write you
>> privately with more data?
>>
>> Did I perhaps misunderstand your post?
>>
>> --
>> Lew
>>
>> On Sunday, December 18, 2011 5:43:41 AM UTC-8, Michael Leung wrote:
>>>
>>> That sounds Linked List better!
>>>
>>
>>
>>> On Sun, Dec 18, 2011 at 11:34 PM, Mark Murphy wrote:
>>>
 http://stackoverflow.com/**questions/322715/when-to-use-**
 linkedlist-over-arraylist


 On Sun, Dec 18, 2011 at 8:27 AM, bob  wrote:
 > Let's say you are making a game for Android.  You want a container to
 > store the list of enemy ships… maybe a linked list…  maybe an array.
 >
 > Which is probably better?  LinkedList or ArrayList?  Or, is there
 > something I haven't thought about that's better than those two?
 >
 > I would think LinkedList would be better in theory, but I saw
 > ArrayList being used in this Android game book I bought… Beginning
 > Android Games.

>>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> "I know that you believe you understand what you think I said, but I'm not
> sure you realize that what you heard is not what I meant."
> - Robert McCloskey
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

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

2011-12-18 Thread Nikolay Elenkov
On Sat, Dec 17, 2011 at 5:47 AM, Amra  wrote:
>
> 1: Do not verify certificates at all. This is the easiest fix that
> solves my problem, but is considered horrible from a security
> perspective. I would like to avoid this solution.
>

Right, don't do this.

> 2: Create a Bouncy Castle keystore and add my certificate to the
> client upon compile time. Does wonders for me, but is bad for others
> in my situation (not everyone want to compile all their android
> applications)
>

Who is going to use this application? If it's just for you or it only
connects to your sever, that is good enough. If you want to make it
possible to add certificates, you just need to copy that keystore to
a mutable location, under (/data) and write some code to import
certificates. Other than that, initializing the trust store is the same.

> 3: Make the funambol client use the certificates that a user has
> imported through the Settings->Security->Install_from_memory_card menu
> in android. Sounds like a good solution, but seems to be impossible to
> do for some reason.

This is not possible prior to ICS. Certificates and keys imported from
that menu are only used *and* visible by the VPN and WiFi clients.
There is no API for SDK applications to access the imported
certificates. You probably can't write one either because you need
system permissions to connect to the native keystore daemon.

If you are interested in the details, read this:

http://nelenkov.blogspot.com/2011/12/ics-trust-store-implementation.html

> 4: Make the funambol client warn about self-signed certificates - for
> then to remember the accepted certificates for later (the typical
> behavior of an email application). Probably the best way to do it. I
> have not found any pointers on how to do this on google though, but I
> guess I could bend my brain around the K-9mail source code and see if
> I understand what they have done.

You need a mutable keystore for your app to do this. You would catch
verification errors, show a dialog to the user, and if they decide to trust
the cert, add it to the store (pretty much everyone will click 'OK' without
thinking, but make it a big, fat warning). Then try to connect again, and
it should work. This is not trivial, but if you really need it, do check how
K-9 and others are doing it, they've probably thought about things you
will miss on your fast pass.

>
> Anyway, can anyone tell me what is the "right" way to fix this issue
> so that users of an android applications can use both self-signed and
> globally trusted certificates - and that without sacrificing security
> completely?
>

Use ICS :) If you need to use both, load the system trust store, then
add the certificates from your own to it. IIRC, BouncyCastle has a
on memory KeyStore class that makes this easier. Then use the
resulting collection to initialize your TrustManager's.

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


[android-developers] WindowManager.LayoutParams window z-level

2011-12-18 Thread dashman
In my app I create a window that I display depending on context.

This window gets displayed above the system menu z-level layer -

i.e. the window hides a portion of the menu.

I would like this window to be displayed behind the menu.

WindowManager.LayoutParams lp = new
WindowManager.LayoutParams(
LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_APPLICATION,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.TRANSLUCENT);

Any help?

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


[android-developers] Re: ANDROID: the application just "stop unexpectedly" when run on the phone

2011-12-18 Thread uyen nguyen
thank you very much :)

On Dec 19, 6:41 am, Harri Smått  wrote:
> On Dec 17, 2011, at 9:00 PM, uyen nguyen wrote:
>
> > $SharedPreferencesImpl.getInt(ContextImpl.java:2721)
> > at com.example.background.DiningRoom.onStart(DiningRoom.java:80)
>
> In your stack trace there's this one line indicating line number in your code 
> causing problems. Apparently you're trying to read a preference as an integer 
> which wasn't stored as one. Uninstalling and reinstalling your application on 
> your phone resets preferences and may fix the problem.
>
> --
> H

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

2011-12-18 Thread Jim Graham
On Sun, Dec 18, 2011 at 04:33:36PM -0600, TreKing wrote:

> Yes - but people are more likely to help others that take the time to
> formulate a well written question and don't write like a 14-year-old girl
> texting her friends (I'm not saying you are, that's an extreme analogy).
> Otherwise many people will dismiss you as spam or not take you seriously.

I just wanted to second that.  Personally, if I can't make sense of the
post without having to try and figure out what the OP meant, I just
delete it and move on.  That's assuming that the Subject line (or the
portion of it that doesn't fall off the side of the screen, as that's all
I see---the first few words matter), I usually don't even bother to read
it at all.

I also skip posts where what appears to be a question is worded as a
stateement (usually also with no question mark), or with statements that
have question marks instead of periods (and this is far too common with
American-English speakers, too).  Every now and then, if I'm in the mood
to try to help, I will at least try to figure it out...otherwise, delete
and move on.

With that, I'm out of here...other stuff to do.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| "Now what *you* need is a proper pint of
spooky1...@gmail.com| porter poured in a proper pewter porter
< Running FreeBSD 7.0 > | pot.."
ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.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] Re: hi

2011-12-18 Thread Michael Leung
Agreed.
Install SDK, do tutorial.
Then Google "Android Examples", to read the example codes.
Write your own first simple android app.
That is the way to lean Programming.

On Mon, Dec 19, 2011 at 9:24 AM, Mark Ayers  wrote:

> Agreed. Take the jump, buy a book on Android development, go through it,
> ask us if you need 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
>



-- 
Regards,
Michael Leung
http://www.itblogs.info - My IT Blog
http://diary.skynovel.info - My Blog
http://www.michaelleung.info - My Homepage

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 minor changes but not push out an update

2011-12-18 Thread martypantsROK
can't do the version code/name as Market uses that to handle your
available apps.  I would recommend
using XML. Put whatever data you want to push without update into XML
on a server somewhere
and have your app read/parse that.  Always fresh, always updated.

On Dec 17, 6:32 am, TW  wrote:
> haven't seen this question posted, and here's the scenario (and I'm
> not the technical person on the team, so go easy):
>
> I have a published app, currently free and NOT ad-supported
>
> going to start publishing ads, and want to try a couple of different
> strategies, maybe a couple of different services, but I don't want to
> have all my current users getting an update notification for the app,
> if the only change is to accommodate ads where there were none
> before.
>
> is it possible to updated the versioncode and/or versionname in a
> manner that would refrain from notifying or updating my existing user
> base (so that only future installs would have the ad service?)
>
> hope that makes sense. thanks.
>
> Tim

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


[android-developers] Re: ics menu problems

2011-12-18 Thread dashman
putting this line in the manifest solved the problem



but i will look at the github link also...


for others migrating apps to 4.0...another gotcha

if you have the following in your activity:

requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

you have to call the following right after the setContentView()

setProgressBarIndeterminateVisibility( false );





On Dec 18, 6:32 pm, Harri Smått  wrote:
> Hi,
>
> Also, I was only referring to this document which gives easy to implement 
> support for both API level prior to 11 and 11+;
>
> http://developer.android.com/guide/topics/ui/actionbar.html
>
> Especially the "Adding the Action Bar" section.
>
> --
> H
>
> On Dec 19, 2011, at 1:02 AM, Mark Murphy wrote:
>
>
>
>
>
>
>
> > On Sun, Dec 18, 2011 at 5:46 PM, dashman  wrote:
> >> Does this mean that i'll have to have 2 different executables -
> >> one for pre-4 and another for 4+.
>
> > Probably not.
>
> >> this would
> >> mean all pre 4.0 apps need to be modified.
>
> > Probably not.
>
> >https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC
>
> > That sample application correctly shows the "three dots" on a Galaxy
> > Nexus and on an emulator with hw.mainKeys=no. It does not show the
> > "three dots" on an emulator with hw.mainKeys=yes, simulating a device
> > that has the off-screen keys. Figure out where you are doing things
> > differently than I am and track down where the difference lies.
>
> > If you are testing with the emulator, make sure you are on the latest
> > Android 4.0 emulator image and the r16 tools.
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com|http://github.com/commonsguy
> >http://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, One Low Price!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] ANDROID: the application just "stop unexpectedly" when run on the phone

2011-12-18 Thread Harri Smått
On Dec 17, 2011, at 9:00 PM, uyen nguyen wrote:

> $SharedPreferencesImpl.getInt(ContextImpl.java:2721)
> at com.example.background.DiningRoom.onStart(DiningRoom.java:80)

In your stack trace there's this one line indicating line number in your code 
causing problems. Apparently you're trying to read a preference as an integer 
which wasn't stored as one. Uninstalling and reinstalling your application on 
your phone resets preferences and may fix the problem.

--
H

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

2011-12-18 Thread Harri Smått
Hi,

Also, I was only referring to this document which gives easy to implement 
support for both API level prior to 11 and 11+;

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

Especially the "Adding the Action Bar" section.

--
H

On Dec 19, 2011, at 1:02 AM, Mark Murphy wrote:

> On Sun, Dec 18, 2011 at 5:46 PM, dashman  wrote:
>> Does this mean that i'll have to have 2 different executables -
>> one for pre-4 and another for 4+.
> 
> Probably not.
> 
>> this would
>> mean all pre 4.0 apps need to be modified.
> 
> Probably not.
> 
> https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC
> 
> That sample application correctly shows the "three dots" on a Galaxy
> Nexus and on an emulator with hw.mainKeys=no. It does not show the
> "three dots" on an emulator with hw.mainKeys=yes, simulating a device
> that has the off-screen keys. Figure out where you are doing things
> differently than I am and track down where the difference lies.
> 
> If you are testing with the emulator, make sure you are on the latest
> Android 4.0 emulator image and the r16 tools.
> 
> -- 
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
> 
> Warescription: Three Android Books, Plus Updates, One Low Price!
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: hi

2011-12-18 Thread Mark Ayers
Agreed. Take the jump, buy a book on Android development, go through it, 
ask us if you need help.

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

[android-developers] Re: Fragments help

2011-12-18 Thread Mark Ayers
Ah. Sorry, I had my version numbers mixed up. Thanks!

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

[android-developers] Re: hi

2011-12-18 Thread Ali Chousein
Come-on guys, what a silly question being asked in this list lately?
You want to become an Android developer? Install the necessary tools
(you can find all information here http://developer.android.com/sdk/index.html)
and get started by implementing your "Hello World" program. You want
to swim my friend? You need to jump into the pool, whether you have
ever swum before or not. That's the way you become software
developer!

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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


Re: [android-developers] Problem writing to sdcard

2011-12-18 Thread Harri Smått

On Dec 16, 2011, at 5:01 AM, wtaylorjr2...@gmail.com wrote:

>in = assetManager.open("test.z8");
>size = in.available();
>buffer = new byte[size];
>while ((len = in.read(buffer, 0, size)) != -1){
>   f.write(in.read());
>}

Problem lies within your while -loop. First you try to read "size" amount of 
data but write only "in.read()" which returns exactly one byte. Using 
"f.write(buffer)" should fix your copy method. Anyway, in general it's usually 
safest not to rely on InputStream.available() to return actual amount of bytes 
it has to offer. Yet alone expect InputStream.read(buffer, 0, size) read 
exactly the amount of bytes you're asking for.

In your case;
InputStream is = assetManager.open("filename");
byte[] buffer = new byte[8192]; // Fixed size buffer
int len;
while ((len = is.read(buffer, 0, buffer.length)) != -1) {
os.write(buffer, 0, len);
}

Might be more reliable solution.

--
H

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

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 6:06 PM, Mark Ayers  wrote:
> Build target decides which jar is added as a resource, correct? If so, you
> can see that the jar for 3.0 is loaded.

Which proves that your build target is set below API Level 13, since
Android 3.0 is API Level 11.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-12-18 Thread Mark Ayers
Build target decides which jar is added as a resource, correct? If so, you
can see that the jar for 3.0 is loaded.

On Sun, Dec 18, 2011 at 3:02 PM, Mark Murphy wrote:

> Presumably because you have your build target set below API Level 13.
>
> On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers  wrote:
> > Why is Eclipse saying this is undefined when it's right here???
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Murphy
Presumably because you have your build target set below API Level 13.

On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers  wrote:
> Why is Eclipse saying this is undefined when it's right here???
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 5:46 PM, dashman  wrote:
> Does this mean that i'll have to have 2 different executables -
> one for pre-4 and another for 4+.

Probably not.

> this would
> mean all pre 4.0 apps need to be modified.

Probably not.

https://github.com/commonsguy/cw-android/tree/master/Menus/ActionBarBC

That sample application correctly shows the "three dots" on a Galaxy
Nexus and on an emulator with hw.mainKeys=no. It does not show the
"three dots" on an emulator with hw.mainKeys=yes, simulating a device
that has the off-screen keys. Figure out where you are doing things
differently than I am and track down where the difference lies.

If you are testing with the emulator, make sure you are on the latest
Android 4.0 emulator image and the r16 tools.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Need freelancer developer to create PDFViewer with Annotation feature

2011-12-18 Thread Kristopher Micinski
http://www.qoppa.com/android/index.html

So expensive that they don't list a price...

Kris

P.s., but one of their products is licensed at $400 per server (yes,
it's a library..)


On Sun, Dec 18, 2011 at 5:36 PM, IcedNet  wrote:
>
>
> On Dec 18, 10:07 am, Mark Murphy  wrote:
>> I hope you have a very large pile of money.
>>
> Man, you got that right..
>
> Peace,
> 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

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

2011-12-18 Thread dashman

Does this mean that i'll have to have 2 different executables -
one for pre-4 and another for 4+.

Can you tell me why actionbar "in this case".

if you can explain a little bit - i'd be more than happy to do the
rest.

i'm confused because my app just opens a standard menu - this would
mean all pre 4.0 apps need to be modified.




On Dec 18, 9:46 am, Harri Smått  wrote:
> On Dec 18, 2011, at 4:04 PM, dashman wrote:
>
> > It's a standard android 1.6+ appnothing special...
>
> You're following Honeycomb, and later, rules for using ActionBar though, yes? 
> Especially ActionBar requirements may apply in this case.
>
> --
> H

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Need freelancer developer to create PDFViewer with Annotation feature

2011-12-18 Thread IcedNet


On Dec 18, 10:07 am, Mark Murphy  wrote:
> I hope you have a very large pile of money.
>
Man, you got that right..

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


Re: [android-developers] Re: MMS group texting

2011-12-18 Thread TreKing
On Sun, Dec 18, 2011 at 6:33 AM, rachana govilkar <
rachana.govil...@gmail.com> wrote:

> 1.Check this link.This is my thread.
>
> http://groups.google.com/group/android-developers/browse_thread/thread/759edf51479c88d4/4c467d7ecd119f27?lnk=gst&q=problem+parsing+package#4c467d7ecd119f27
> But i guess no one is interested in answering my questions there and
> so i posted my query here.
>

Looks like you got a few replies. If you still need help, bump the original
post after a day or two or start a new thread. Jumping into another thread
is not going to get you very far.


> 3.I thought we are here to help people about android and not for so
> called-english-grammer-mistake-show and so i don't think total 5
> question marks and only 1 word "no1" misspelled in my previous post
> matter so much to you.
>

Yes - but people are more likely to help others that take the time to
formulate a well written question and don't write like a 14-year-old girl
texting her friends (I'm not saying you are, that's an extreme analogy).
Otherwise many people will dismiss you as spam or not take you seriously.
My advising you to review your post was me trying to help you get help on
your Android issue, if you can believe that.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: question about lockscreens

2011-12-18 Thread Kevin TeslaCoil Software
> But does this mean that you guys are opposed to well known apps
> such as WidgetLocker, or Lockscreen Agenda?

Well I'm the developer of WidgetLocker, so I'm not opposed to it at
all :P. But this list is about developing apps that following the
documentation, guidelines and restrictions of the SDK. WidgetLocker
does not. I know it's hypocritical but I recommend other app devs,
especially ones just starting, follow the SDK.  It's safer and easier,
and (mostly) protects you from fragmentation (I test against ~20
devices. I still need more). As you noticed, this list isn't very
helpful if you chose to ignore the SDK rules. I imagine most devs that
do, including myself, don't discuss it much. If you choose to ignore
them, you're on your own.

> I wish to make an app that
> acts as a lockscreen. it would disable the home button, disable the
> back button, and then it would dismiss itself upon a successful entry
> of a password.

Implementing security in an app, rather than at the system level, is a
huge task and well beyond the scope of this list. There isn't even
anyone to discuss it with, as it has not been done. Find an app that
implements "security" (Note: WidgetLocker does not. There is good
reason.) and if you can't bypassing it in less than 5 minutes, you
aren't trying hard enough. Android is designed to disallow apps from
blocking other apps.

Even ignoring the Home and recent apps buttons, what about an incoming
call? Or a phone reboot? Or a SMS popup? Or any notification in the
notification bar for that matter? Or a malicious app? Or a task
killer? Or the system task killer? Or out of memory? Or a bug causing
a force close? It certainly is possible to display a screen that
prompts for a password and when the password is enter the screen
disappears. But implementing it in a manner that is more than just a
false sense of security is very different. I theorize that with root
and/or a device admin and a slightly-to-incredibly awkward user
experience it's possible, but even if that's true it's a lot of work
and a lot of testing and I guarantee you'd run into "fragmentation"
issues of trying to support Sense vs Blur vs TouchWiz vs Stock. A
custom rom, rather than an app, definitely could do this, but again
this list is not the place to discuss that (There's a firmware
building/modifying list for that kind of thing).

> 1. how do i make an application launch when the screen is activated?

ACTION_SCREEN_OFF and ACTION_SCREEN_ON broadcasts. You'll need a
service running to receive them (not a manifest receiver). Also note
that no app can start within 5 seconds of the Home button being
pressed, so Home, screen off, screen on, and you're delayed.


> 2. what method does one call to dismiss an application? (for example,
> when a password is entered successfully)

Your own activity you mean? finish() or moveTaskToBack().

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

2011-12-18 Thread TreKing
On Sun, Dec 18, 2011 at 7:30 AM, romdroid  wrote:

> where the left picture shows the "hidden" audio-player (just a bar
> upon the control
> buttons) and the full audio-player which could be shown by sliding the
> bar to the top
> (just like the status bar could be expanded).
>

That looks like a (high customized) SlidingDrawer.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: executable files on android

2011-12-18 Thread Kristopher Micinski
On Sun, Dec 18, 2011 at 5:03 PM, lbendlin  wrote:
> .EXE files are for Windows, and for Intel/AMD processors. Your phone is not
> (yet) powerful enough to run a Wintel emulator on your ARM processor.
>

Along with being .EXE files, executables are entirely different from
.apk files.  While .exe's include actual binary code in a specifically
structured binary format (along with file header, etc...), .apk are a
zip file, with resource defs, a manifest, and a dalvik bytecode file,
and even this code isn't executable, it has to be interpreted / (jit)
compiled by the vm..

And on top of that an .exe almost certainly includes dynamic
references to libraries not included on Android..

So basically, going from .exe to .apk is impossible.

kris

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

2011-12-18 Thread lbendlin
.EXE files are for Windows, and for Intel/AMD processors. Your phone is not 
(yet) powerful enough to run a Wintel emulator on your ARM processor. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: SDK Manager update fails every time

2011-12-18 Thread Kostya Vasilyev
Yes, it's true, the SDK Manager itself is what prevents the rename /
update from completing.

I just updated the issue on b.android.com with some screenshots from
SysInternals Process Explorer that show exactly that:

http://code.google.com/p/android/issues/detail?id=4410#c172

A fix for this is trivial, but the bug is still there more than two
years later...

-- Kostya

19 декабря 2011 г. 1:49 пользователь sblantipodi
 написал:
> I have posted a personal workaround for the problem a lot of time ago.
> It is really incredible that google didn't fixed the problem yet.
>
> To workaround the problem do this:
> - Close everything, antivirus included.
> - Go rename your ./android/tools directory in something else ./android/
> tools_somethingelse
> - Enter the renamed directory and run the android.bat
> - Install the update
> - Delete the renamed directory
>
> This will solve your problem but I really hope that google will sove
> their own prolems too.
>
> On 18 Dic, 15:34, Michael Ganss  wrote:
>> I'm not sure but it seems the SDK Manager itself may be keeping it from
>> updating, at least it's the only process I can see in Process Explorer
>> that's got an open handle in that folder. I made a copy of the folder and
>> double-clicked android.bat from there to make it work. It looks like the
>> only thing the update is doing is replacing the old tools folder with the
>> contents from the zip file that's in the temp folder, though. So you might
>> just to need to remove the old tools folder and unzip the new tools
>> archive. Wouldn't bet on it, though :)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: SDK Manager update fails every time

2011-12-18 Thread sblantipodi
I have posted a personal workaround for the problem a lot of time ago.
It is really incredible that google didn't fixed the problem yet.

To workaround the problem do this:
- Close everything, antivirus included.
- Go rename your ./android/tools directory in something else ./android/
tools_somethingelse
- Enter the renamed directory and run the android.bat
- Install the update
- Delete the renamed directory

This will solve your problem but I really hope that google will sove
their own prolems too.

On 18 Dic, 15:34, Michael Ganss  wrote:
> I'm not sure but it seems the SDK Manager itself may be keeping it from
> updating, at least it's the only process I can see in Process Explorer
> that's got an open handle in that folder. I made a copy of the folder and
> double-clicked android.bat from there to make it work. It looks like the
> only thing the update is doing is replacing the old tools folder with the
> contents from the zip file that's in the temp folder, though. So you might
> just to need to remove the old tools folder and unzip the new tools
> archive. Wouldn't bet on it, though :)

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

2011-12-18 Thread Larry/MavrickProductions
TreKing, you are the best! Much of my code is based on code from a
couple of different books. I totally missed that I was creating two
SharedPreferences instances, and, more important, looking at the wrong
one for the year. Your catch - asking why two instances - was enough
to find the problem.

The prefsEditor is used in two locations of other activities: first to
set the year if it has not been set originally, and then to add a year
when the event passes.

THANK YOU!

Best, -Larry

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 build ICS for HTC Wildfire?

2011-12-18 Thread Mark Murphy
This has nothing to do with this list. This list is for developing
applications with the Android SDK.

On Sat, Dec 17, 2011 at 1:20 AM, mingzhou zhuang
 wrote:
> Hello, I want to build ICS, however, I don't have any device listed in
> /device such as samsung tuna.
>
> I have downloaded
> CM7 http://wiki.cyanogenmod.com/wiki/HTC_Wildfire:_Compile_CyanogenMod_(Linux) and
> built it successfully.
> I ran it on my HTC Wildfire. But, I don't like CM7, it's so ugly compared
> with ICS :D
>
> I built ICS (src from http://source.android.com/source/downloading.html) for
> samsung tuna, but i don't know how to emulator it, will anybody help me?
> I really want to know how to build and run it on my own HTC Wildfire. When
> will google support my device?
>
> Thank you all!!!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Execute code when device is turned back on.

2011-12-18 Thread Mark Murphy
On Sat, Dec 17, 2011 at 5:29 AM, Sander Theetaert
 wrote:
> What if the methods of the OS don't suffice?

Then write your own firmware.

> And I have my own method that I want to be plugged-in ?

Then write your own firmware.

> is it possible?

Then write your own firmware.

> perhaps with some ndk-code?

Not really.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-12-18 Thread James Black
When it comes to which is better, the best option is to write using both
options, then profile it, as which is better is context-dependent.

By profiling that application the OP can find the best option for his use,
and have the numbers to back it up.

If you know how many items you are going to have in a collection, for
example, then the arraylist is obviously the better choice.  If you are
adding/removing frequently then it won't be the best choice.

I tend to use an arraylist, since I read often from my preferences, and can
split up the string that is stored there, so I know how many items to store.

On Sun, Dec 18, 2011 at 11:28 AM, Lew  wrote:

> Based on what?  We have zero facts on which to base such a baseless
> conclusion.
>
> The consensus of the referenced reference seems to be the opposite of your
> conclusion,
> though it is equally devoid of context-relevant data for the OP.  The
> point being that it
> doesn't support your inference.
>
> So how did you decide that 'LinkedList' is "better" for the OP?  Did they
> write you
> privately with more data?
>
> Did I perhaps misunderstand your post?
>
> --
> Lew
>
> On Sunday, December 18, 2011 5:43:41 AM UTC-8, Michael Leung wrote:
>>
>> That sounds Linked List better!
>>
>
>
>> On Sun, Dec 18, 2011 at 11:34 PM, Mark Murphy wrote:
>>
>>> http://stackoverflow.com/**questions/322715/when-to-use-**
>>> linkedlist-over-arraylist
>>>
>>>
>>> On Sun, Dec 18, 2011 at 8:27 AM, bob  wrote:
>>> > Let's say you are making a game for Android.  You want a container to
>>> > store the list of enemy ships… maybe a linked list…  maybe an array.
>>> >
>>> > Which is probably better?  LinkedList or ArrayList?  Or, is there
>>> > something I haven't thought about that's better than those two?
>>> >
>>> > I would think LinkedList would be better in theory, but I saw
>>> > ArrayList being used in this Android game book I bought… Beginning
>>> > Android Games.
>>>
>>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

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

[android-developers] select items in GridView after onClick

2011-12-18 Thread ProOne
I create post on stackoverflow.com but didn't get any answer.
May be this I can get it.
http://stackoverflow.com/questions/8528060/select-items-in-gridview-after-onclick
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] ICS: Progress monitor graphic broken, Different Padding?

2011-12-18 Thread Mariano Kamp
Hi,

I am wondering if anybody else is seeing this and knows what it is.

I use a progress monitor that with ICS now looks like this:
[image: Screen shot 2011-12-16 at 4.22.18 PM.png]

This is the relevant code:



I ran it on the emulator after Nexus Galaxy users reported the issue. Is 
this my code that is broken or ICS? Shouldn't dp solve this? It works with 
ldpi, mdpi and hdpi with releases before ICS.

Best, Mariano

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 build ICS for HTC Wildfire?

2011-12-18 Thread mingzhou zhuang
Hello, I want to build ICS, however, I don't have any device listed in 
/device such as samsung tuna.

I have downloaded CM7 
http://wiki.cyanogenmod.com/wiki/HTC_Wildfire:_Compile_CyanogenMod_(Linux) and 
built it successfully.
I ran it on my HTC Wildfire. But, I don't like CM7, it's so ugly compared 
with ICS :D

I built ICS (src from http://source.android.com/source/downloading.html) 
for samsung tuna, but i don't know how to emulator it, will anybody help me?
I really want to know how to build and run it on my own HTC Wildfire. When 
will google support my device?

Thank you all!!!

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

[android-developers] executable files on android

2011-12-18 Thread Karim Nabil
I would like to install a program on my android sony ericson Xperia
Neo. But i am facing some problems.

The system is not viewing the.exe files. So is there a way to convert
the .exe files to .apk files  ??

If not, is there a way to emulate the executable file?

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


Re: [android-developers] Help with Lint Warning

2011-12-18 Thread Ben Sandee
On Sat, Dec 17, 2011 at 8:45 PM, Zsolt Vasvari  wrote:
> I have the following layout:
>
>  minHeight="?android:attr/listPreferredItemHeight">
>    layout_height="wrap_content" layout_gravity="center_vertical"
> orientation="vertical">
>       layout_height="wrap_content"/>
>       layout_height="wrap_content"/>
>   
> 
>
> The idea here is that the 2 TextViews (which each could have different
> heights), are centered vertically within the possibly taller frame,
> just as you would expect in a ListView.
>
> I am getting the following Lint warning: "This LinearLayout layout or
> its FrameLayout parent is useless."
>

I've got several similar layouts but the warning says (emphasis mine)
"This LinearLayout or its FrameLayout parent *may* be useless."  I
found that all of the cases in my app where the warnings said that it
"is useless" were legitimate. Many of those "may be useless" cases
were situations where I used layout_gravity="center", like you. I
suppose there may be a more optimal layout, but in my case it isn't
worth the effort to find it.

Ben

Ben

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

2011-12-18 Thread Seb
I am creating a game. Most of the computation is done in a custom View
class which contains a grid of custom Squares which extend imageview.
Here's some code to describe what's happening:

public class GameView extends View {
public Square squares[] = null;

public GameView(Context context, AttributeSet a) {
super(context, a);
setFocusable(true);

}

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
squares = new Square[numSquares];
}

public void resetGame()
{

}

public void restartGame()
{

}

public boolean onTouchEvent(MotionEvent event) {
int eventaction = event.getAction();
int X = (int)event.getX();
int Y = (int)event.getY();

switch (eventaction)
{
case MotionEvent.ACTION_DOWN:
currentTouchIndex = checkForSquareTouch(X, Y);

if(currentTouchIndex >= 0)
{
squares[currentTouchIndex].select();
((MainActivity)this.getContext()).startSquareAnimation();

.
return true;
}

Thats the main View. Square implementation:

public class Square extends ImageView {

public Square(Context context, AttributeSet attrs, int x, int y,
int squareWidth, boolean operator, int textS, Typeface f) {
super(context, attrs);
{
this.setImageResource(R.drawable.chalkbox);
this.getDrawable().setBounds(x, y, x + squareWidth, y +
squareWidth);


this.setAlpha(10);
}

protected void onDraw(Canvas canvas) {
Paint foreground = new Paint(Paint.ANTI_ALIAS_FLAG);
foreground.setStyle(Style.FILL);
foreground.setTextSize(textSize);
foreground.setColor(Color.WHITE);
foreground.setTextScaleX(1);
foreground.setTextAlign(Paint.Align.CENTER);
foreground.setTypeface(font);

int left = this.getDrawable().getBounds().left;
int right = this.getDrawable().getBounds().right;
int top = this.getDrawable().getBounds().top;
int bottom = this.getDrawable().getBounds().bottom;

if (invalidMove) {

}

if (isOperator) {
if (text.equals("+"))
bottom += 10;

if (text.equals("/"))
bottom += 5;

if (text.equals("x") || text.equals("/"))
foreground.setTextSize(textSize - 5);
else
foreground.setTextSize(textSize);
}

this.getDrawable().draw(canvas);
canvas.drawText(text, (left + right) / 2, ((top + bottom) / 2) +
10, foreground);
}

Hope that gives you a view of the structure. I'm trying to animate the
Square, so that when a player presses on a Square, the Square
brightens and then fades again when they lift their finger off. The
problem is that the call to square[0].startAnimation() does not seem
to be working and the animation is not playing. Am I doing something
wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 make minor changes but not push out an update

2011-12-18 Thread TW
haven't seen this question posted, and here's the scenario (and I'm
not the technical person on the team, so go easy):

I have a published app, currently free and NOT ad-supported

going to start publishing ads, and want to try a couple of different
strategies, maybe a couple of different services, but I don't want to
have all my current users getting an update notification for the app,
if the only change is to accommodate ads where there were none
before.

is it possible to updated the versioncode and/or versionname in a
manner that would refrain from notifying or updating my existing user
base (so that only future installs would have the ad service?)

hope that makes sense. thanks.

Tim

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


[android-developers] Error message

2011-12-18 Thread Rob Carton
I did what she said but when installing the WST i got this erroe
Cannot complete the install because of a conflicting dependency.
  Software being installed: WST Server Adapters
3.1.0.v200906020451-51DFAkF77g7GCNc
(org.eclipse.wst.server_adapters.feature.feature.group
3.1.0.v200906020451-51DFAkF77g7GCNc)
  Software currently installed: Shared profile 1.0.0.1319586806289
(SharedProfile_AppceleratorProfile 1.0.0.1319586806289)
  Only one of the following can be installed at once:
Equinox Provisioning Engine 2.0.1.R36x_v20110201
(org.eclipse.equinox.p2.engine 2.0.1.R36x_v20110201)
Equinox Provisioning Engine 1.0.102.R35x_v20091117
(org.eclipse.equinox.p2.engine 1.0.102.R35x_v20091117)
Equinox Provisioning Engine 1.0.101.R35x_v20090825
(org.eclipse.equinox.p2.engine 1.0.101.R35x_v20090825)
  Cannot satisfy dependency:
From: Shared profile 1.0.0.1319586806289
(SharedProfile_AppceleratorProfile 1.0.0.1319586806289)
To: org.eclipse.equinox.p2.engine [2.0.1.R36x_v20110201]
  Cannot satisfy dependency:
From: org.eclipse.wst.server.discovery 1.0.1.v20090812b
To: bundle org.eclipse.equinox.p2.engine [1.0.100,2.0.0)
  Cannot satisfy dependency:
From: org.eclipse.wst.server.discovery 1.0.1.v20100210
To: bundle org.eclipse.equinox.p2.engine [1.0.100,2.0.0)
  Cannot satisfy dependency:
From: HTTP Server UI Support 1.0.200.v20090113
(org.eclipse.wst.server.http.ui 1.0.200.v20090113)
To: bundle org.eclipse.wst.server.ui [1.0.103,2.0.0)
  Cannot satisfy dependency:
From: Server UI 1.1.103.v20090909 (org.eclipse.wst.server.ui
1.1.103.v20090909)
To: bundle org.eclipse.wst.server.discovery [1.0.0,2.0.0)
  Cannot satisfy dependency:
From: Server UI 1.1.103.v20100123 (org.eclipse.wst.server.ui
1.1.103.v20100123)
To: bundle org.eclipse.wst.server.discovery [1.0.0,2.0.0)
  Cannot satisfy dependency:
From: WST Server Adapters 3.1.0.v200906020451-51DFAkF77g7GCNc
(org.eclipse.wst.server_adapters.feature.feature.group
3.1.0.v200906020451-51DFAkF77g7GCNc)
To: org.eclipse.wst.server.http.ui [1.0.200.v20090113]
Please help me out here

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


Re: [android-developers] Execute code when device is turned back on.

2011-12-18 Thread Sander Theetaert
What if the methods of the OS don't suffice?

And I have my own method that I want to be plugged-in ?

is it possible?

perhaps with some ndk-code?

or am I totally off the track here?

br,

Sander

2011/12/10 Mark Murphy 

> On Fri, Dec 9, 2011 at 7:46 AM, Bamboomy 
> wrote:
> > The idea is to implement a lock for android that requires a code to
> > unlock your device.
>
> This is already implemented by the OS. You do not need to write one
> yourself, and anything you do at the SDK level can be trivially
> bypassed.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: the application just "stop unexpectedly" when run on the phone

2011-12-18 Thread uyen nguyen
ANDROID: the application just  "stop unexpectedly" when run on the
phone


When I run my application on the emulator, it run right and no problem
happens. But when I run it on the phone, a problem appear "stop
unexpectedly".

In my application:
The main activity (Background) can exchange to 4 activities:
LivingRoom, DiningRoom, Wc, Garage. The problem "stop unexpectedly"
just happens when i try to go to the DiningRoom activity.

This is my code :

1.Background
[CODE]

package com.example.background;



import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import at.abraxas.amarino.Amarino;


public class BackgroundActivity extends Activity {

private Button Wc, Dining_Room, Living_Room, Garage;
private Intent D_intent, L_intent, G_intent, W_intent;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

//Amarino.connect(this, DEVICE_ADDRESS);

Living_Room = (Button) findViewById(R.id.living);
//Living_Room.setBackgroundColor(Color.TRANSPARENT);

Living_Room.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
L_intent = new Intent(view.getContext(),
LivingRoom.class);
startActivityForResult(L_intent, 0);
}

});

Dining_Room = (Button) findViewById(R.id.dining);
   // Dining_Room.setBackgroundColor(Color.TRANSPARENT);

Dining_Room.setOnClickListener(new View.OnClickListener()
{
public void onClick(View view) {
D_intent = new Intent(view.getContext(),
DiningRoom.class);
startActivityForResult(D_intent, 0);
}

});

Wc = (Button) findViewById(R.id.wc);
//Wc.setBackgroundColor(Color.TRANSPARENT);

Wc.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
W_intent = new Intent(view.getContext(),
Wc.class);
startActivityForResult(W_intent, 0);
}

});

Garage = (Button) findViewById(R.id.garage);
   // Garage.setBackgroundColor(Color.TRANSPARENT);

Garage.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
G_intent = new Intent(view.getContext(),
Garage.class);
startActivityForResult(G_intent, 0);
}

});


}


}

[/CODE]

2. DiningRoom

[CODE]



 package com.example.background;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.ToggleButton;
import at.abraxas.amarino.Amarino;


public class DiningRoom extends Activity implements
OnCheckedChangeListener, OnSeekBarChangeListener{


private static final String DEVICE_ADDRESS = "00:06:66:43:9B:
56";


final int DELAY = 150;

ToggleButton button;
SeekBar seekbar1;
SeekBar seekbar2;

boolean light2;

int light1;
int fan;
long lastchange;


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.diningroom);


//back ve trang chinh
Button backhome = (Button)
findViewById(R.id.D_backhome);
backhome.setOnClickListener(new
View.OnClickListener() {
public void onClick(View view) {
Intent intent = new Intent();
setResult(RESULT_OK, intent);
finish();
}

});


Amarino.connect(this, DEVICE_ADDRESS);

button = (ToggleButton) findViewById(R.id.Dbutton);
seekbar1 = (SeekBar) findViewById(R.id.Dseekbar1);
seekbar2 = (SeekBar) findViewById(R.id.Dseekbar2);

   

[android-developers] tape measure by accerelometer

2011-12-18 Thread heri hahihu
hello everybody..
i want ask, how make accelerometer sensor can be distance measure
tools? like millimeters application..
please help me.. 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] Deleted apk and ENTIRE app w/ metadata was removed from publisher console!

2011-12-18 Thread r
Just dealt with another extremely frustrating facet of the broken
Android Market publisher console.

I thought I would upload a placeholder apk so I could start working on
my metadata before the final release was ready -- I shouldn't have had
to since it should let you create a new app without uploading a binary
like iTunes Connect. Little did I know that when I go to delete the
placeholder and replace it with the final, the ENTIRE app gets removed
from the publisher console. WTF? Now I have to replace all my
screenshots, logos, featured images, description, changelog, and set
all my country preferences.

Fix this for crying out loud.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Manager update fails every time

2011-12-18 Thread Michael Ganss
I'm not sure but it seems the SDK Manager itself may be keeping it from 
updating, at least it's the only process I can see in Process Explorer 
that's got an open handle in that folder. I made a copy of the folder and 
double-clicked android.bat from there to make it work. It looks like the 
only thing the update is doing is replacing the old tools folder with the 
contents from the zip file that's in the temp folder, though. So you might 
just to need to remove the old tools folder and unzip the new tools 
archive. Wouldn't bet on it, though :)

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

[android-developers] Odd ICS Scrolling Behavior

2011-12-18 Thread jathak
I've installed an app I'm working on (built for 2.2) to both my old
phone (OG Droid with Gingerbread, rooted) and my new phone (VZW Galaxy
Nexus with ICS, rooted). I have several ListViews in the app. If I try
to scroll fast on the OG Droid, it works fine (aside from some minor
lag that happens everywhere). On my Galaxy Nexus, it scrolls fine for
a second, but then freezes. The app usually crashes after that. In
LogCat, it says that there was an out of memory error. Also, when they
are both doing the same thing, the Nexus uses twice the memory.

Has anyone experienced any similar issues?

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


[android-developers] soap web service

2011-12-18 Thread bigKidd01
how do i create a basic soap web service so i can get and post xml
data to a web service.
what files need to be create and what code needs to written? if
someone can walk me through that it will be great

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


[android-developers] question about lockscreens

2011-12-18 Thread kalzenith
>From what i have gathered, this community is quite opposed to custom
lockscreens, because what they do is remove access to safeties like
the back button and the home button by exploiting loopholes in the
SDK. But does this mean that you guys are opposed to well known apps
such as WidgetLocker, or Lockscreen Agenda?

The reason i ask is because i am learning to develop apps for android
for one specific reason (and i have only managed to make it through
the hello world tutorial at the moment). I wish to make an app that
acts as a lockscreen. it would disable the home button, disable the
back button, and then it would dismiss itself upon a successful entry
of a password. If anyone is willing to help, i am coming from a
programming background of C# and i have no XML, CSS, or Java
experience.

Could someone please answer just a couple questions for me? i would
greatly appreciate it.

1. how do i make an application launch when the screen is activated?
from what ive gathered, i could somehow use the
Powermanager.isScreenOn() method, but i do not know how to set up a
listener. Additionally, it sounds as though the isScreenOn() method is
a huge battery drain.

2. what method does one call to dismiss an application? (for example,
when a password is entered successfully)

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


[android-developers] socket connection timed out always

2011-12-18 Thread Support Remote
Please help, the socket connection always timed out after 1 minute
(even in use and acquired a WifiLock)

Here is the error message:

V/WifiStateTracker(   96): Changing supplicant state: COMPLETED ==>
DORMANT
D/WifiStateTracker(   96): Reset connections and stopping DHCP
W/System.err( 4903): java.net.SocketException: Connection timed out
W/System.err( 4903):at
org.apache.harmony.luni.platform.OSNetworkSystem.read
(Native Method)
W/System.err( 4903):at dalvik.system.BlockGuard
$WrappedNetworkSystem.read(Bl
ockGuard.java:273)
W/System.err( 4903):at
org.apache.harmony.luni.net.PlainSocketImpl.read(Plai
nSocketImpl.java:458)
W/System.err( 4903):at
org.apache.harmony.luni.net.SocketInputStream.read(So
cketInputStream.java:85)
W/System.err( 4903):at
org.apache.harmony.luni.net.SocketInputStream.read(So
cketInputStream.java:65)
W/System.err( 4903):at
java.io.BufferedInputStream.fillbuf(BufferedInputStre
am.java:140)
W/System.err( 4903):at
java.io.BufferedInputStream.read(BufferedInputStream.
java:225)

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


Re: [android-developers] Camera Problem!

2011-12-18 Thread James Black
I expect some devices will allow this, but your best bet is to follow the
suggestion here:
http://stackoverflow.com/questions/8410876/is-there-any-api-to-fetch-both-rear-and-front-camera-view-at-the-same-time


Basically have two surface holders and two camera instances, but design in
case it doesn't work on some devices, as I expect a minority will allow
this.

On Thu, Dec 15, 2011 at 9:28 PM, Kecics  wrote:

> My device has both front camera and back camera,Can I write a
> application that can display the preview of the 2 cameras at a time?
> if  it·s impossible,please tell me the reason
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bitmap vm memory location in ice cream sandwich

2011-12-18 Thread Romain Guy
Also even when bitmaps were allocated on the native heap they counted
against the Dalvik heap limit.

On Sun, Dec 18, 2011 at 12:26 PM, Mark Murphy  wrote:
> On Fri, Dec 16, 2011 at 10:35 AM, Hithredin  wrote:
>> Do you know how the bitmaps are managed by Android 4.0?
>> In previous version the bitmaps were not located inside the VM of the
>> application, but in the Native Heap instead.
>>
>> I ask this question because my application works well under versions
>> 2.x and 3.x, but since 4.0, it take more than 25Mb of heap space
>> instead of 4Mb before.
>> After an investigation oh HPROF files with MAT, it shows that 3
>> bitmaps take each 6MB of memory when the app run on 4.0 device, which
>> is not the case on lower versions.
>
> MAT, for Android 3.0+, will report bitmap memory, whereas it did not
> on previous versions.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

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

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 9:19 AM, AlexanderL  wrote:
> is there a wat to intercept and override the menu opened in gmail or
> webbrowser or is it not possible?

Only if you write your own "gmail" or "webbrowser" app.

> Android seems to be proud saying almost every aspect of it can be
> overriden so why can i not do what i want.

Because you did not write "gmail" or "webbrowser". You are attempting
to hack into third-party applications.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Self-signed certificates and android

2011-12-18 Thread Amra
Hi everyone,

I have decided to use the Funambol android client to sync my contacts
with my private server. The client application connects nicely to my
server over HTTP, but I would like it to use HTTPS. This is supposed
to work flawlessly on sites with trusted certificates, but I do
unfortunately only have a self-signed certificate (which results in a
javax.net.ssl.SSLPeerUnverifiedException). My plan is therefore to add
support for self-signed certificates to this application. As far as I
understand there are four ways to do this:

1: Do not verify certificates at all. This is the easiest fix that
solves my problem, but is considered horrible from a security
perspective. I would like to avoid this solution.

2: Create a Bouncy Castle keystore and add my certificate to the
client upon compile time. Does wonders for me, but is bad for others
in my situation (not everyone want to compile all their android
applications)

3: Make the funambol client use the certificates that a user has
imported through the Settings->Security->Install_from_memory_card menu
in android. Sounds like a good solution, but seems to be impossible to
do for some reason. Never found a single comment on google on how to
do this. (I did try to import my self-signed certificate, but I still
get the SSLPeerUnverifiedException)

4: Make the funambol client warn about self-signed certificates - for
then to remember the accepted certificates for later (the typical
behavior of an email application). Probably the best way to do it. I
have not found any pointers on how to do this on google though, but I
guess I could bend my brain around the K-9mail source code and see if
I understand what they have done.

Anyway, can anyone tell me what is the "right" way to fix this issue
so that users of an android applications can use both self-signed and
globally trusted certificates - and that without sacrificing security
completely?

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


[android-developers] Question about android ICS touchscreen framework change.

2011-12-18 Thread jesse
Hi all,
Back in android2.3 there is such code in InputReader.cpp:
MultiTouchInputMapper::sync():
   if (inPointer.absMTPressure <= 0) {
   // Some devices send sync packets with X / Y but with
a 0 pressure to indicate
   // a pointer going up.  Drop this finger.
   continue;
   }
and
   if (inPointer.absMTTouchMajor <= 0) {
   // Some devices send sync packets with X / Y but with
a 0 touch major to indicate
   // a pointer going up.  Drop this finger.
   continue;
   }
so that means when you move your finger away from the screen,driver
send up a ABS_MT_TOUCH_MAJOR with absMTTouchMajor==0, this point is
dropped,through
MultiTouchInputMapper::sync()>TouchInputMapper::syncTouch>calculatePointerIds():
currentPointerCount == 0 and mCurrentTouch.idBits.clear();
then in dispatchTouches() currentIdBits <> lastIdBits and interpreted
as a UP movement.

BUT Android4.0 seems don't consider this ,in InputReader.cpp:
when driver send up ABS_MT_TOUCH_MAJOR:
MultiTouchMotionAccumulator::process();
   case ABS_MT_TOUCH_MAJOR:
   slot->mInUse = true;
   slot->mAbsMTTouchMajor = rawEvent->value;
   break;
mInUse is set to true no matter if rawEvent->value equals 0,and this
point is not dropped,in
MultiTouchInputMapper::syncTouch():
   if (!inSlot->isInUse()) {
   continue;
   }
and mCurrentRawPointerData.markIdBit(id, isHovering); called.

Then in dispatchTouches(),because currentIdBits == lastIdBits,this
action is interpreted as a MOVE action,not UP!

Where am I wrong? Plz help,thanks in advance!

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


[android-developers] Changing contact's photo

2011-12-18 Thread L[s]D
Hi,
I'm trying to change chosen contact's photo and I ran into some
trouble..
I used the code from this post: 
http://groups.google.com/group/android-developers/msg/7798b51e01c61c1e?

and this is my entire code:

public class ContactFacesActivity extends ListActivity {

ArrayList Contacts;
ContentResolver cr;

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

Contacts = new ArrayList();



cr = getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, null);
if (cur.getCount() > 0) {
while (cur.moveToNext()) {
String id =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts._ID));
String name =
cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
if
(Integer.parseInt(cur.getString(cur.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER)))
> 0) {
Contacts.add(new Contact(name, id));
}
}

setListAdapter(new
ArrayAdapter(ContactFacesActivity.this,
android.R.layout.simple_list_item_1, Contacts));

}
}


@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
super.onListItemClick(l, v, position, id);

Bitmap temp =
((BitmapDrawable)getResources().getDrawable(R.drawable.house)).getBitmap();

ByteArrayOutputStream bos = new ByteArrayOutputStream();
temp.compress(CompressFormat.JPEG, 90 , bos);
byte[] bitmapdata = bos.toByteArray();


setPhoto(Uri.withAppendedPath( ContactsContract.Contacts.CONTENT_URI,
Contacts.get(position).getID()), bitmapdata);
}

public void setPhoto(Uri personUri, byte[] photo) {
ContentValues values = new ContentValues();
int photoRow = -1;
String where = ContactsContract.Data.RAW_CONTACT_ID 
+ " == " +
ContentUris.parseId(personUri) + " AND " + 
Data.MIMETYPE + "=='" +

ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE + "'";
Cursor cursor = getContentResolver().query
(ContactsContract.Data.CONTENT_URI, null, where, null, 
null);
int idIdx = cursor.getColumnIndexOrThrow
(ContactsContract.Data._ID);
if(cursor.moveToFirst()){
photoRow = cursor.getInt(idIdx);
}
cursor.close();
values.put(ContactsContract.Data.RAW_CONTACT_ID,
ContentUris.parseId(personUri));
values.put(ContactsContract.Data.IS_SUPER_PRIMARY, 
1);

values.put(ContactsContract.CommonDataKinds.Photo.PHOTO,
photo);
values.put(ContactsContract.Data.MIMETYPE,

ContactsContract.CommonDataKinds.Photo.CONTENT_ITEM_TYPE);
if(photoRow >= 0){
getContentResolver().update
(ContactsContract.Data.CONTENT_URI, values,
ContactsContract.Data._ID
+ " = " + photoRow, null);
} else {
getContentResolver().insert
(ContactsContract.Data.CONTENT_URI, values);
}
}

}


But it doesn't seem to work... Am I doing anything wrong?

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] Got infected by SMSTrojan in my development tools (Eclipse/Windows XP)...

2011-12-18 Thread solution9420
Dears,
I posted previously but not sure if it got thru.

All I am saying it that, my virus scanner (on my PC/Windows XP) detects an
Android SMSTrojan WHEN I BUILD MY ANDROID EXECUTABLE. (reporting that
class.dex got infected).

My points are...
1.0  I feel that it is quite unusual that virus is infecting at development
level. And maybe we all look at the wrong place to find this Trojan. (Fell
like warning you all)
2.0 Is it infecting at the Android SDK repository level, or just my PC (I
think it is the later).
3.0 Has anyone experienced this case before.

I will refresh my PC and reload all SDK to ensure the virus are gone.

Best Regards,
Solution 9420

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 google calendar api is public yet

2011-12-18 Thread Mark Murphy
CalendarContract was added to the Android SDK for API Level 14 (Ice
Cream Sandwich).

On Thu, Dec 15, 2011 at 4:39 PM, Bhupi  wrote:
> I am planning to use calender api and couldn't find any documentation.
> Earlier posts says calender api is not public. I am wondering is still
> that is the case?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Progress monitor graphic broken with ICS

2011-12-18 Thread Mariano Kamp
Hi,

I am wondering if anybody else is seeing this and knows what it is.

I use a progress monitor that with ICS now looks like this:
[image: Screen shot 2011-12-16 at 4.22.18 PM.png]

This is the relevant code:



I ran it on the emulator after Nexus Galaxy users reported the issue. Is
this my code that is broken or ICS? Shouldn't dp solve this? It works with
ldpi, mdpi and hdpi with releases before ICS.

Best, Mariano

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] "Clear Data" causes application to stop, normal behavior?

2011-12-18 Thread Mark Murphy
On Fri, Dec 16, 2011 at 10:25 AM, Aiteal  wrote:
> I'm building a location aware application with a foregroundservice
> thanks to Mark Murphy's wonderful tutorial books.

Glad you like them!

> I've noticed that when I hit the 'clear data' button for my
> application under the Manage Applications activity my application
> seems to be forcibly closed, is this normal behavior, am I mismanaging
> my application data in some way
> or simply not registering for an intent to notify me of this (for the
> life of me I cannot see a documented intent for this purpose)
> Currently it has a simple sql-lite table which never exceeds 10 rows
> and a small text file with some application settings.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your error. It is
difficult to provide more specific advice without knowing exactly what
is crashing and why.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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

2011-12-18 Thread l.picky vikashkumar
okey

On 12/16/11, TreKing  wrote:
> On Fri, Dec 16, 2011 at 3:02 AM, romdroid  wrote:
>
>> So, I just downloaded the Nullsoft Winamp Application and I wonder
>> which UI element is used for their player?  Is here anybody who can
>> tell me what they implemented? I mean the player which is hideable and
>> then goes to the status bar if the app is closed? How did they manage
>> it to let the player continue even if the Acitivity was closed? Is the
>> media run in a separate Thread in a Service? How could a touch on the
>> status bar show the actual song played and another touch on the
>> information open the player again?
>>
>
> It would be very difficult for anyone that has not worked on this app to
> say what was done, particularly when you are basing your questions on the
> supposition that everyone you're asking is familiar with the UI in
> question. I, for one, have never seen this app nor am I going to download
> it just to see what you're talking about - I suspect that will be the case
> for many others.
>
> From your description, I would venture to guess "they're using a foreground
> Service", as that's what most (all?) media players do. At least post some
> screenshots to illustrate what you're asking about. Or try asking Winamp
> themselves - though it's unlikely you'll get an answer.
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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