[android-developers] Re: Call Conference with application

2011-12-27 Thread Ali Chousein
> I'm a young Android developer...
.
.
> I'd really be pleasured if someone could
> help me out with this in form of a useful
> tutorial or a good self-explaining source code.

No my friend, you are not a developer yet. Developers don't ask for
"already cooked" solutions. They research and find-out themselves the
way to implement a solution. The best help you can get from such
forums is guidance and if you are lucky examples for achieving
something very, very specific.

> but i always find comments about packages
> like com.android.phone or classes that access
> com.android.internal.* and even something
> like iTelephony API.

Honestly, that's everything you need to implement what you want to
implement. You already found good guidance yourself. Next step is to
sit down, try these APIs, make mistakes, find the cause of mistakes,
fix them and get your software running.

-
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


[android-developers] Re: how can we get the notification of sending message

2011-12-27 Thread Ali Chousein
Do you mean SMS? Read the tutorial in the following link, it's simply
great: http://mobiforge.com/developing/story/sms-messaging-android

-
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


On Dec 26, 7:55 am, surabhi jain  wrote:
> hi
>
> I want to get the notification when i will send a message from my device.
>
> thanx to 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] Account Manager Query

2011-12-27 Thread rinyogi
Hi All,
I am new to android. I went through Account manager and I have some
questions.

- Is it able to get contact and calendar data which are synced from
web by 3rd pary application without access control ?

- Is it able to create and access multiple addressbook with account
info?

 (but the account is not registered by AccountStore, account info is
just text information for displaying)

- Is it able to create and access multiple calendarbook with account
info?


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


Re: [android-developers] HelloWorld "..stopped unexpectedly"

2011-12-27 Thread Marcelo Henrique
Give-me main.xml and manifest.xml

2011/12/27 Narendra Bagade 

> register your activity in manifest file..
>
> On Mon, Dec 26, 2011 at 6:24 AM, Nathan Harness <7600on...@gmail.com>wrote:
>
>>
>> I followed the instructions on the Android Dev site for Hello World,
>> using the XML version about half way down.  Please see attached screen
>> shot.   The fatal exception is MAIN(.xml), with the code shown in the
>> window.
>>
>> This is the contents of HelloAndroid.java:
>>
>> package com.example.helloandroid;
>>
>> import android.app.Activity;
>> import android.os.Bundle;
>>
>> public class HelloAndroid extends Activity {
>> /** Called when the activity is first created. */
>> @Override
>> public void onCreate(Bundle savedInstanceState) {
>> super.onCreate(savedInstanceState);
>> setContentView(R.layout.main);
>> }
>> }
>>
>>
>> I'm not new to programming, but new to Eclipse and Java.  I'm sure it is
>> a simple bug... I would really appreciate your help!
>> Thanks,
>> Nathan
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Regards,
> Narendra
> .
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
  - Marcelo Henrique -
  "Se não puder se destacar pelo talento, vença pelo esforço." (Dave
Weinbaum)

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

2011-12-27 Thread poiuytrez
Thank you for your answers.

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

Re: [android-developers] Cancelar ligacao

2011-12-27 Thread Sander Theetaert
I don't mean to be rude but I think most people on this list expect the
questions to be written in english (even poor english is accepted by most ;)

I hope that you understand english and maybe could translate your question?

It would help us help you...

S.

2011/12/22 mdmota 

> Estou fazendo ligacao para um numero usando a chamada :
> startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:"   +
> ph_number.getText(;
>
> Gostaria de saber como eu cancelo a chamada durante a ligacao só que
> via codigo e nao pelo botao de desligar ligacao do cel.
>
> att
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Password app

2011-12-27 Thread Mukesh Srivastav
I have achieved this functionality. I was able to capture the wrong
password entered by user and was able to send the sms succesfully.

It had tested it the same with Pattern lock and pin lock as well.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad

On Tue, Dec 27, 2011 at 4:51 PM, poiuytrez wrote:

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

2011-12-27 Thread nemik
I thought the products presented at Google IO were ones that grew past
that 20% stage and had commitments to them. Shows what I know I guess.

On Dec 27, 1:05 am, Zsolt Vasvari  wrote:
> AFAIK, there has been no new official communications from Google
> related to Android@Home.  Maybe it was a cool 20% project and the guy
> left or whatever...
>
> On Dec 27, 12:17 pm, nemik  wrote:
>
>
>
>
>
>
>
> > I got excited about this supposedly 6LowPAN-powered Android@Home
> > project shown at Google IO and also 
> > herehttp://www.youtube.com/watch?v=AL2AJanKrqg
> > but no new info has come out. The guy presenting it at IO said it
> > would be out by the end of the year but I have looked hard and have
> > yet to find any of these products or frameworks from Google or
> > Lighting Science.
>
> > Does anyone know what is going on with this? It seems like it has a
> > lot of potential.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] "No rule to make target" make error on Froyo 2.2.1 (korg/froyo)

2011-12-27 Thread Sander Theetaert
apology excepted

2011/12/23 Giorgio Andronico 

> Hello to all,I'm source-building CyanogenMod 6 for a device called LG-
> P500 (ARMv6/MDPI). CyanogenMod or not,this doesn't really
> matter,because I'm getting this on AOSP Froyo too. Well,when starting
> it builds for 10-15 seconds (on a Core i7 featuring 6GB of RAM BTW)
> then stops at:
>
> make: ***  No rule to make target "out/host/linux-x86/framework/ddmlib-
> prebuilt.jar", needed by "out/host/common/obj/JAVA_LIBRARIES/
> hosttestlib_intermediates/javalib.jar".  Stop.
>
> Anyone got an idea?
>
> If posting CyanogenMod-related stuff here is prohibited I apologize in
> advance.
>
> Regards,
> Giorgio.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-12-27 Thread Atul Raut
Hi Dianee,

isHardwareAccelerated

This always returns false, as per code Canvas.java
How it make decision to return false or true depending on hardware ?

Thanks,

--
Atul Raut
http://rautatul.weebly.com/
http://atulraut.wordpress.com/ 
atulrau...@gmail.com 




On Wed, Apr 6, 2011 at 12:34 PM, Dianne Hackborn wrote:

> Hm, the background bitmap is shown basically based on whether
> View.isHardwareAccelerated() returns true.  The only time they can be
> different is when the view hierarchy is running in a process which has
> turned off hardware acceleration, which basically only happens as a special
> case in the system process so not something your application code will ever
> see.
>
> BouncingBalls is not a good example, because that one actually turns off
> hardware acceleration (look at the activity declaration in the manifest).
>
> Oh and you need to make sure you don't call this until *after* a view is
> attached to its window.  That is, after View.onAttachedToWindow().  Prior
> to that it doesn't have a surface any context for what it will be running
> in, so it can't return anything useful.  In other words if you are just
> calling this from Activity.onCreate(), that is too soon to actually get a
> good value.
>
> On Tue, Apr 5, 2011 at 1:31 AM, Shai  wrote:
>
>> Same results with ApiDemos!
>>
>> I created a new sample project (ApiDemos) using ADT with API level 11
>> as the target and I tried the following:
>> I DO get the patterned blue background in the main screen (seems like
>> hardware acceleration is working).
>>
>> In ApiDemos.Java:
>> - In the "OnCreate" I added a log print for
>> "getListView().isHardwareAccelerated()" and was "False"
>>
>> - In BouncingBalls.Java near the end of the onCreate I added a log
>> print :
>>
>>MyAnimationView v =new MyAnimationView(this);
>>container.addView(v);
>>Log.e("Test", "Result:" + v.isHardwareAccelerated());
>>
>> It was also false
>>
>> - In BouncingBalls.Java at MyAnimationView.onDraw(Canvas canvas)
>> Log.e("Test", "Canvas is:" + canvas.isHardwareAccelerated());
>>
>> It was also false
>>
>>
>> Can someone clear this out for me ?
>> Is hardware acceleration off ?
>> Is this a bug in the isHardwareAccelerated() function or am I doing
>> something wrong ?
>>
>> Best Regards,
>> Shai Levy
>>
>> On Apr 4, 9:58 pm, Dianne Hackborn  wrote:
>> > API demos is hardware accelerated.  Try putting the call in one of the
>> > simple samples there and see what it does.
>> >
>> > Fwiw, if you are using the default dark theme, if your window is
>> hardware
>> > accelerated than you will get the patterned blue background.  If it is
>> > drawing in software you will get the solid black background.
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Mon, Apr 4, 2011 at 10:53 AM, Shai  wrote:
>> > > Hi,
>> >
>> > > I am trying to turn on hardware acceleration for my HoneyComb
>> application
>> > > but I never seem to get a 'true' result from this function.
>> >
>> > > I tried all the methods in the Android Developers blog post about the
>> > > subject (
>> > >http://android-developers.blogspot.com/2011/03/android-30-hardware-ac.
>> ..
>> > > ).
>> >
>> > > I am working on a completely blank project (ADT generated project), I
>> added
>> > > the  tag  android:hardwareAccelerated="true"  to both the application
>> and
>> > > activity and even called
>> > > getWindow().setFlags(
>> > > WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
>> > > WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
>> >
>> > > before calling setContentView()
>> >
>> > > My view only has the TextView that was automatically generated from
>> the ADT
>> > > new project wizard.
>> >
>> > > Yet, no matter what I do, when I call isHardwareAccelerated() on the
>> > > textview or the root view or any canvas I try to obtain - the function
>> > > isHardwareAccelerated() of the view/canvas always returns false.
>> >
>> > > I am testing on a Motorola Xoom device with Android 3.0.1
>> >
>> > > What am I missing here ?
>> >
>> > > Best Regards,
>> > > Shai
>> >
>> > >  --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "Android Developers" group.
>> > > To post to this group, send email to
>> android-developers@googlegroups.com
>> > > To unsubscribe from this group, send email to
>> > > android-developers+unsubscr...@googlegroups.com
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/android-developers?hl=en
>> >
>> > --
>> > Dianne Hackborn
>> > Android framework engineer
>> > hack...@android.com
>> >
>> > Note: please don't send private questions to me, as I don't have time to
>> > provide private support, and so won't reply to such e-mails.  All such
>> > questions should be posted on public forums, where 

Re: [android-developers] simulating mouse on gingerbread 2.3.3

2011-12-27 Thread Sander Theetaert
I'm not sure why you would want to do this in the first place?

2011/12/22 Vlad 

> Hi guys,
>
> I'm interested in simulating a mouse on a mobile device, but
> unfortunately, as far as i can tell, there is no support for a mouse
> pointer on gingerbread.
>
> so i was wondering, is it achievable on the service-app level ( i
> mean, without applying it on the android source and recompiling the
> whole thing).
> making a transparent activity with a pointer image is not a big deal,
> but i don't see anyway of preforming a click on the activity
> underneath my own.. so this road is closed..
> maybe there's someway of doing it using IMF?
>
> anyways, if anyone has an idea, i would be more than glad to hear
> it :)
>
> thanks,
> vlad
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] publishing two versions of same application

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 9:54 AM, John Goche wrote:

> OK, so how do I set up an android library project then.


http://developer.android.com/guide/developing/projects/index.html#LibraryProjects


-
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] Camera Flash Turns Off Automatically After A Few Seconds (Galaxy Nexus, 4.0.1)

2011-12-27 Thread bklik
I have code that works without fail on all my LED flash enabled
devices (Droid, Nexus One, Galaxy Tab 10.1). But, on my Galaxy Nexus,
the app will launch, turn the LED flash on, then after ~1.5 seconds,
it turns the flash off. If I then turn it back on via a button, it
will stay on. If I delay the camera's flash for ~2 seconds from
launch, it will also stay on.

Basically, there's something that's taking a while to load, that
automatically turns the flash off, and I can't find it. I've put Log
statements all over the place, so I know it's not my code that's doing
it. I've implemented callbacks on the setPreview and SurfaceView, but
those aren't it either. I watch the Logs, but nothing comes up at the
moment something turns the LED flash off.

Anyone have any ideas what does it? Or, how to fix it more reliably
than a Handler?

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


Re: [android-developers] android hardware sensors information required

2011-12-27 Thread Sander Theetaert
This is a list to aid people in developing applications in the android-sdk,

as your problem is not related to that level of the android environment you
will find little help here,

other members might point you to the right group, I can't, as I don't know
one,
I advise to search an other source of help on this issue.

2011/12/22 Tom Kua 

> I am looking at implementing few hardware sensor with android on a
> custom board based on Ti - OMAP processor. Below is the list of
> sensors that I want to implement :
>
> Accelerometer
> Compass
> Humidity
> Pressure
> Light / Ambient proximity
> FastIrDA
>
> Where can I locate a list of hardware sensor chipset information that
> work with android and linux kernel (ubuntu). Preferably the linux
> drivers should be open source and the chipsets should be readily
> available. Basically I want a list of part numbers for the above
> sensors that work with android and linux.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Android@Home status

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 9:56 AM, nemik  wrote:

> I thought the products presented at Google IO were ones that grew
> past that 20% stage and had commitments to them.
>

Two words: Google Wave.

-
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: how can we get the notification of sending message

2011-12-27 Thread surabhi jain
thanx Ali

but I want to get notification when I send SMS from device, I want native
code for that

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

2011-12-27 Thread Mukesh Srivastav
Vlad,

Very nice thought of having an pointer image. I lked it a lot. Let me give
a try to that. Atleast writing a widget would solve it as far i know.

Thanks,
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Dec 27, 2011 at 4:24 PM, Sander Theetaert <
sander.theeta...@gmail.com> wrote:

> I'm not sure why you would want to do this in the first place?
>
>
> 2011/12/22 Vlad 
>
>> Hi guys,
>>
>> I'm interested in simulating a mouse on a mobile device, but
>> unfortunately, as far as i can tell, there is no support for a mouse
>> pointer on gingerbread.
>>
>> so i was wondering, is it achievable on the service-app level ( i
>> mean, without applying it on the android source and recompiling the
>> whole thing).
>> making a transparent activity with a pointer image is not a big deal,
>> but i don't see anyway of preforming a click on the activity
>> underneath my own.. so this road is closed..
>> maybe there's someway of doing it using IMF?
>>
>> anyways, if anyone has an idea, i would be more than glad to hear
>> it :)
>>
>> thanks,
>> vlad
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

Re: [android-developers] Re: Android 4.0 sensor emulation setup questions

2011-12-27 Thread Vladimir Chtchetkine
Hi Josh,

Due to some restrictions, emulator needs to connect to the device running
SdkControllerSensor application *before* the emulated system boots. Mostly
this is due to the fact that emulator needs to know the list of supported
sensors before booting the guest system. You can (indirectly) tell that
emulator has connected to the sensors port by checking emulator's output
for a warning "Unable to create sensors port". If there is such warning,
the emulator was not able to establish connection with the
SdkControllerSensor application, and you need to restart the emulator,
making sure that all the pieces needed for sensors emulation have been
properly setup. If there is no warning, it means that connection has been
made, and sensor emulation is available.

HTH,

Vladimir

On Mon, Dec 26, 2011 at 3:15 PM, Josh Guilfoyle  wrote:

> I answered my own question a bit.  It does appear that the emulator
> only connects on startup at present, not sure why it didn't work the
> first time I booted the ics AVD instance.  Still, it would be nice to
> see a controlling application in the emulator that would allow us to
> view the status (successful connection or not) and control it in some
> way.
>
> Regardless of the rough edges, this is a huge blessing for developers
> working with advanced sensor applications.  I'm mostly interested in
> the SdkControllerLib to create custom sensor playback and recording
> tools that will help me refine my application logic.  Thanks a ton
> guys :)
>
>
> On Dec 26, 3:03 pm, Josh Guilfoyle  wrote:
> > I believe I have the sensor emulation support working properly (I can
> > connect to port 1968 locally and it appears to be connecting to the
> > phone) but it is unclear to me how to determine if the emulator has
> > also connected on this port, or how to trigger this connection
> > manually?  The instructions indicate that it seems to make the
> > connection at boot (being that the set up is done before starting the
> > emulator) but this seems counter intuitive to me for the emulator to
> > automatically search for such a listening service only on boot.
> >
> > Can someone please shed some light on how this is supposed to work?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] How to generate Gallery thumbnails?

2011-12-27 Thread Lidia
Hello,

Does any one know if it is possible to generate a gallery thumbnail. I
do not need a simple thumbnail, like download and decode a picture, i
need to generate a gallery thumbnail, like it would be when gallery is
opened.

Thanks in advance,
Lidy

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


[android-developers] sending a backup file to the cloud

2011-12-27 Thread John Goche
Hello,

I have an application which saves important data to disk.
I would like to allow the user to backup the data by emailing
themselves the data. For this I need to open up a web browser
activity from within the application and allow the user to browse
the file system for the attachment (how else would I transfer the
data from a file in the application's sandbox to a user specified
server (such as a google mail server) on the web. Can someone
please offer some suggestions on how to achieve this operation
of "transfering data from the phone to a backup file in the cloud".

Thanks,

John Goche

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

2011-12-27 Thread bklik
As far as I know, everything has to be kept separate.


On Dec 27, 10:29 am, John Goche  wrote:
> Hello,
>
> I have an application which I would like to publish as a free version
> and then another with some extra features as a paid version. I was
> wondering, if my package name is com.bar.foo and my application
> name if com.bar.foo do I need to make a separate com.bar.foolite
> application name for the free version or can I keep publish both
> application under both reverse FQDNs.
>
> Also, do I need to make two separate packages for them in eclipse
> or is there a way I can keep both under one directory somehow?
>
> Thanks for your comments and feedback,
>
> John Goche

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


[android-developers] SurfaceView clearing screen on resume

2011-12-27 Thread Stuart
I've got a basic app, that depending on the state either continuously
draws lines from the user's touch location (a basic paint app) or
loads a saved drawing.

In each one, when I Pause the activity (by loading the
PreferencesActivity or pressing Home Button) and then resume the
activity the canvas has been cleared.

I have an Activity that creates a surfaceView from XML, and the
surfaceView contains a thread which handles the drawing.

I do the pausing of the app in the onPause method of the Activity that
calls the SurfaceView, it sets mPaused to true which causes a pause in
the run thread. It is resumed from the surfaceCreated() method of the
surfaceView which sets mPaused false. The pause works fine, however as
said, when I resume in either a drawing or load state the canvas has
been cleared.

I also tested to see if the pausing/resuming was what was wiping the
canvas, so I tested a simple pause and resume without leaving the
activity and they worked fine. This shows that whatever is clearing
the screen must be due to what happens when the activity loses focus.
Do I need to save the state somehow as a bundle?

Here's my code for the Run method in the Drawing Thread.

 @Override
public void run() {
while (_run){
// Set variable for running
threadRunning=true;
Canvas canvas = null;

// This code pauses the thread
synchronized (mPauseLock) {
while (mPaused) {
try {
 
mPauseLock.wait();
} catch (InterruptedException e) {
}
}
}

try{
canvas = mSurfaceHolder.lockCanvas(null);

// Split into DRAW and LOAD

// DRAW IMAGE FROM PATHS
if (STATE == STATE_DRAW){
synchronized(mDrawingPaths) {
// If not finished drawing or resetthen draw onto
canvas
if (!finishDrawing&&resetCanvas==0){
doDraw(canvas);
}
}
if (resetCanvas>0){
System.out.println("Resetting canvas");
canvas.drawColor(Color.BLACK);
resetCanvas--;
}
}

// DRAW IMAGE FROM POINTS
else if (STATE == STATE_LOAD){
doLoad(canvas, mMyLines);
// Then close the thread
setRunning(false);
}

}
 finally {
if (canvas!=null){
mSurfaceHolder.unlockCanvasAndPost(canvas);
}
}
} // While run
}

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

2011-12-27 Thread J Handal
http://developer.android.com/guide/topics/media/camera.html#capture-picture

They don't mention the Gallery thumbnails?

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

[android-developers] How Can I Get apk file icon, version, name?

2011-12-27 Thread 杨辉
Hi,Everyone:

  Is there a way I can get application name, application version and
application icon in the java code , for the package that is not yet
installed? (for some apk file on sdcard)


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

Re: [android-developers] Re: Password app

2011-12-27 Thread Sander Theetaert
Are you serious?

This behavior was the FIRST functionality I looked for in my TABLET!

And I wanted to implement it myself also...

Don't forget that android also runs on tablets,
which don't exactly fit in your pocket and could be left unattended
somewhere.

I find it cumbersome to re-enter my password for facebook/gmail/... so I
let the tablet remember all of that information.

But if I go out for a smoke I wouldn't want my colleagues to update my
facebook profile quite to often...

S.

2011/12/23 Ali Chousein 

> Have a look at the intent actions and see if any, or a set of them
> will serve your purpose.
> http://developer.android.com/reference/android/content/Intent.html
> BTW, why are you trying to do this? Even though this feature is useful
> on desktops/laptops I doubt that it'll have any popularity on phones.
> In my humble opinion a phone is something more "personal" than a
> desktop/laptop and it's too way cumbersome  to provide a password
> every time you wake it up.
>
> -
> 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
>
> On Dec 22, 5:09 pm, poiuytrez  wrote:
> > Hello,
> >
> > I have some experience in Android development but this time I would like
> to
> > create some kind of password app. Basically I need to show the app when
> the
> > user clicks on the power button. Do you have any idea where should I
> begin
> > ? I tried to browse the documentation but I could not find any example.
> >
> > Thank you
> >
> > poiuytrez
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] simulate hte speed for amdroid phones

2011-12-27 Thread Vladimir Chtchetkine
With r16 SDK you can use sensors emulation as described in here: Sensor
emulation 

On Thu, Dec 22, 2011 at 10:56 AM, poncho  wrote:

> On 12/21/2011 05:36 AM, Shabnaz wrote:
>
>> hi
>>   Iam trying to develop an app for accident detection and notification
>> system.
>>
>>   For tat I need to get the speed and acceleration of the mobile
>> phione equpped with android
>>
>>   how do I simulate ht espeed of the phone using the emulator because
>> the mibile phone does not physically change its location
>>
>>
> Hi,
>
> Not sure about the speed, you can set the location by:
>
>telnet localhost 5554
>geo fix 32.00 37.00
>geo fix 32.00 37.10
>geo fix 32.00 37.20
>...
>
> If you have more than one emulator the second emulator should be listen on
> port 5556.
>
> Hope this helps
> /Poncho
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, 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] Using ViewPager with dynamic view sets

2011-12-27 Thread tatebn
I'm trying to use ViewPager to allow the user to flip through a series
of web views.  I've looked at the ViewPager examples which look like
it uses an adapter which has a defined number of pages.  The problem I
have is that the number of pages I have changes regularly.  Is there
not a way to just use the ViewPager for it's paging ability and add/
remove views as I see fit?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] emulator: WARNING: Unable to create sensors port: Unknown error

2011-12-27 Thread Vladimir Chtchetkine
This warning is normal. It indicates that emulator was unable to establish
connection with an app (running on an actual device) that feeds real sensor
values to the emulator. If you don't care about sensors emulation, just
ignore this warning. However, if you do care about sensors emulation, this
warning would tell you that you need to properly setup sensors emulation,
and restart the emulator.

HTH.

On Thu, Dec 22, 2011 at 12:05 AM, snowgoon  wrote:

> Hi all
>
> I keeping getting this message very time i try and run my app. I've
> had my app running but know i keeping get this mess!!
>
> Please please please help!!
>
> Thanks
>
> Snowgoon , PS I've un-installed everything and re stalled (I am going
> to create a new work space see what happens) ;-(
>
>
> [2011-12-22 07:43:53 - Cells] --
> [2011-12-22 07:43:53 - Cells] Android Launch!
> [2011-12-22 07:43:53 - Cells] adb is running normally.
> [2011-12-22 07:43:53 - Cells] Performing cells.pack.CellsActivity
> activity launch
> [2011-12-22 07:43:53 - Cells] Automatic Target Mode: Preferred AVD
> 'cell' is not available. Launching new emulator.
> [2011-12-22 07:43:53 - Cells] Launching a new emulator with Virtual
> Device 'cell'
> [2011-12-22 07:44:04 - Emulator] emulator: WARNING: Unable to create
> sensors port: Unknown error
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] NDK on android

2011-12-27 Thread Hendrik Boom
Is it possible to run the entire Android Development Kit toolchain on the 
Android device itself?

-- hendrik

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


[android-developers] publishing two versions of same application

2011-12-27 Thread John Goche
Hello,

I have an application which I would like to publish as a free version
and then another with some extra features as a paid version. I was
wondering, if my package name is com.bar.foo and my application
name if com.bar.foo do I need to make a separate com.bar.foolite
application name for the free version or can I keep publish both
application under both reverse FQDNs.

Also, do I need to make two separate packages for them in eclipse
or is there a way I can keep both under one directory somehow?

Thanks for your comments and feedback,

John Goche

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-27 Thread Lew
rachana govilkar wrote:
>
> hey this is my ImageCapture.java..hope u [sic] get idea.
>
>
> package com.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;
>
Why did you use package-private access for these two variables?
 

> Camera camera;
>
protected PictureCallback raw;
>

Why 'protected' access here?
 

> protected ShutterCallback shutter;
> protected PictureCallback postview;
> protected PictureCallback jpeg;
>
> public ImageCapture(Context context) {
> super(context);
> // TODO Auto-generated constructor stub
>

Looks like this "TODO" was already done.
 

> previewHolder = this.getHolder();
>
>
> 
> previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>  previewHolder.addCallback(surfaceHolderListener);
> }
>
> SurfaceHolder.Callback surfaceHolderListener = new
>

Conventionally, for readability, one declares variables ahead of 
constructors and methods.
 

> SurfaceHolder.Callback()
> {
>public void surfaceCreated(SurfaceHolder holder)
>{
>camera=Camera.open();
>try {
>camera.setPreviewDisplay(previewHolder);
>

You need to use more conventional indentation and whitespace.
 

>}catch (Exception E ){ }
>

Don't ignore exceptions, and except for very limited use cases, don't catch 
just 'Exception' but the specific exception type.
 

>}
>

A blank line between methods improves readability.
 

>public void surfaceDestroyed(SurfaceHolder arg0)
>{
>camera.stopPreview();
>camera.release();
>}
>public void surfaceChanged(SurfaceHolder holder, int
> format,
> int width, int height)
>{
>Parameters params = camera.getParameters();
>params.setPreviewSize(width, height);
>params.setPictureFormat(PixelFormat.JPEG);
>camera.setParameters(params);
>camera.startPreview();
>
>camera.takePicture(shutter, raw, postview, 
> jpeg);
>camera.stopPreview();
>camera.release();
>}
> };
> }
>
> -- 
Lew


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

Re: [android-developers] Can't see "Hello World" on hello_avd screen ?????????

2011-12-27 Thread Sander Theetaert
I think patience is the key:

it actually does take some time before the application shows up, even
'hello world'.

I had a colleague who also 'suffered from the same problem' and the
'solution' was sitting next to him and stopping him 3 times from killing
the emulator.

S.

2011/12/22 Albert Pi 

> I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell
> optiplex 755 has 4GB Memory.
> I had no issue to compile "Hello World" program and  to create
> "my_avd". When I ran program, my emulator only took a few minutes to
> show up then I saw  "lock" icon & Android, after I click "menu" from
> the right panel of the emulator's screen, I can see default android
> screen. It seems everything went well but I just can't see "Hello
> world" text in the grey bar is actually the application title of
> screen. It's not  like from tutorial Hello World.
>
> Pleas see below my log file:
> 2011-12-22 15:06:26 - Hello] --
> [2011-12-22 15:06:26 - Hello] Android Launch!
> [2011-12-22 15:06:26 - Hello] adb is running normally.
> [2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity
> activity launch
> [2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new
> emulator with compatible AVD 'hello_avd'
> [2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual
> Device 'hello_avd'
> [2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554
> [2011-12-22 15:07:00 - Hello] Waiting for HOME
> ('android.process.acore') to be launched...
> [2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554'
> [2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device
> 'emulator-5554'
> [2011-12-22 15:07:59 - Hello] Installing Hello.apk...
>
>
>  I thought it's very simple and easy android tutorial program. Do I
> miss something ?  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

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

2011-12-27 Thread J Handal
Follow this thread:


I'm using t also he built-in camera app in my Xoom,tryng to store the
picture in  the
App"Gallery" that comes by default.

same intent  :

new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);

The reason that is not working is because of memory reasons, you only
get a thumbnail unless you write it directly to disk (extra 1-2 lines
of code). I dont have the code with me but I learned it from the book
'Pro Android Media' by Shawn Van Avery (hint its on google books)
though I must advice you to buy the book if you are an Android
developer, it is worth it.

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

[android-developers] Re: problem parsing the package

2011-12-27 Thread rachana govilkar
Thank you for responding Jim.
But i solved that issue just now after debugging a lottt.
And
> First of all, what "package" are you having trouble with?  Your subject
> doesn't seem to match your problem here.  Did you hijack someone else's
> thread?  If so, don't do that...it's extremely rude, at the very least.

No this is my own thread.

> And fill in the missing info on this package you're stuck onYou
> completely left that questio out.

And i have mentioned in 3rd/4th post that i have cleared that issue.

Thank you for your interest.


On Dec 27, 1:33 am, Jim Graham  wrote:
> On Mon, Dec 26, 2011 at 05:19:17AM -0800, rachana govilkar wrote:
> > Hello,
> > I am in a problem related with ListView.
> > I attach my List of users to the ListView and i also have a button.
> > On click of which i need to pass the whole user object of that user to
> > next file.
>
> First of all, what "package" are you having trouble with?  Your subject
> doesn't seem to match your problem here.  Did you hijack someone else's
> thread?  If so, don't do that...it's extremely rude, at the very least.
>
> > userFriendInfoVO = mainFriendList.get(position);
>
> > see here i get whole object but no matter whichever object i click
> > upon, i only get details of user having last position.
> > can anyone help me into it??
>
> If you post a bit more of the relevant code, probably...almost certainly,
> in fact.  From what you describe, "position" is not getting set, or its
> value is being overwritten before you read the results.  If you'd posted
> the relevant code, I could tell you for sure.
>
> And fill in the missing info on this package you're stuck onYou
> completely left that questio out.
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>          No, I'm not going to explain it.  If you can't figure it
>          out, you didn't want to know anyway...      --Larry Wall
>
> 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] publishing two versions of same application

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 9:29 AM, John Goche wrote:

> I was
> wondering, if my package name is com.bar.foo and my application
> name if com.bar.foo do I need to make a separate com.bar.foolite
> application name for the free version
>

You can have the same application name, but not the same package name.


> or can I keep publish both application under both reverse FQDNs.
>

I have no idea what that means.


> Also, do I need to make two separate packages for them in eclipse or is
> there a way I can keep both under one directory somehow?
>

Yes, but an Android Library Project will help consolidate the common code.

-
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: ICS/Galaxy Nexus Can't Loop Audio without GAP

2011-12-27 Thread mot12
I also have a quite popular app looping sounds (>50
installations). Using MediaPlayer for simplicity, I found that MP3
files looped with an audible gap while OGG files looped without any
problems on pretty much all devices. That was at the time Android 1.5
came out! Since then, I never heard of problems looping sounds until
Android 4.0 came out. Suddenly, people who had no problems before had
gaps after they installed ICS via CyanogenMod. I thought it is the
mod, probably. Until I got my hands on a shiny new Galaxy Nexus
running 4.0, outpowering everything I have had before as a smartphone.
Big, audible gap!! What gives?

This may also be related:
http://code.google.com/p/android/issues/detail?id=18756

Martin Hunke
mobitobi

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: problems getting an app to work and avd won't show up with "adb devices" listed command

2011-12-27 Thread bamboomy
Do you call killing and restarting the server an 'issue'?

and if so:

why?

S.

2011/12/22 Heiko 

> Update: Well it seems, that the problem itsself is the adb server. The
> adb server won't update the device list when starting new avd (adb
> server already running).
> Is there an option that I don't have to kill adb server and restart it
> to update the manged device list?
> I didn't had this issue one month ago. Somthing changed and I don't
> know what it is.
>
> If anybody has a solution fixing this I would appreciate any help.
>
> Thanks!
> Heiko
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android@Home status

2011-12-27 Thread nemik
Touché.

Lighting Science did reply to my contact form though and said they're
going to have another press release about it when more info is
available; and that they're targeting the first half of this coming
year.

On Dec 27, 10:07 am, TreKing  wrote:
> On Tue, Dec 27, 2011 at 9:56 AM, nemik  wrote:
> > I thought the products presented at Google IO were ones that grew
> > past that 20% stage and had commitments to them.
>
> Two words: Google Wave.
>
> --- 
> --
> 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] NDK on android

2011-12-27 Thread Sander Theetaert
The problem is, for as far as I searched for the same answer:

eclipse.

It's quite hard to get the eclipse source code and once obtained you'd need
to port it to android.
Nobody has done it so far, as far as I know.

However,

there are development solutions (existing apps on the market) which, if you
speak terminal, can get you a long way.

I don't remember the end-point of my search but I still know where I took
off:

www.google.com

;)

S.

2011/12/27 Hendrik Boom 

> Is it possible to run the entire Android Development Kit toolchain on the
> Android device itself?
>
> -- hendrik
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Cancelar ligacao

2011-12-27 Thread Lew
Courtesy of translate.google.com, mdmota wrote what translates to:
> I'm doing call a number using the call:
> startActivity (new Intent (Intent.ACTION_CALL, Uri.parse ("tel:" +
> ph_number.getText (;
> 
> I wonder how I cancel the call during the connection only
> code and not via the link button to turn off cel.

On Tuesday, December 27, 2011 2:59:27 AM UTC-8, Bamboomy wrote:
>
> I don't mean to be rude but I think most people on this list expect the 
> questions to be written in english (even poor english is accepted by most ;)
>
> I hope that you understand english and maybe could translate your question?
>
> It would help us help you...
>
> S.
>
> 2011/12/22 mdmota 
>
>> Estou fazendo ligacao para um numero usando a chamada :
>> startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:"   +
>> ph_number.getText(;
>>
>> Gostaria de saber como eu cancelo a chamada durante a ligacao só que
>> via codigo e nao pelo botao de desligar ligacao do cel.
>>
>> att
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-develop...@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] publishing two versions of same application

2011-12-27 Thread John Goche
On Tue, Dec 27, 2011 at 4:43 PM, TreKing  wrote:

>
> Yes, but an Android Library Project will help consolidate the common code.
>

OK, so how do I set up an android library project then. Having to maintain
two separate source trees for every single application seems to be a pain.

Please share your approach with us, I am very willing to learn what the
alternatives may be,

Thanks,

John Goche

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

2011-12-27 Thread Adam Ratana
On Saturday, December 24, 2011 8:19:56 AM UTC-5, dashman wrote:

> I'd like my checkboxes to appear like the default ICS checkboxes. 
>
> how can i do that and maintaining backward compatibity. 
>
> i assume it has to do with style..or is it a theme. 
>
>

This page, specifically the "select a theme based on a platform version" 
section will help:

http://developer.android.com/guide/topics/ui/themes.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] Using ViewPager with dynamic view sets

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 10:49 AM, tatebn  wrote:

> I've looked at the ViewPager examples which look like it uses an adapter
> which has a defined number of pages.
>

A brief look at the PageAdapter shows methods for adding and removing
items. I'm sure you tried that already. What's the problem with those
methods?

-
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] Why is my drawing so unfluid and blinky?

2011-12-27 Thread Jeresam515
Here is the code of my two files:

package com.drawing;


import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;

import com.drawing.LemonadeMainMenuView.LemonadeMainMenuThread;
public class Main extends Activity{
private LemonadeMainMenuThread mLemonadeMainMenuThread;
private LemonadeMainMenuView mLemonadeMainMenuView;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mLemonadeMainMenuView = (LemonadeMainMenuView)
findViewById(R.id.lunar);
mLemonadeMainMenuThread = mLemonadeMainMenuView.getThread();
}
@Override
public boolean onTouchEvent(MotionEvent event) {
mLemonadeMainMenuView.setCoords(event.getX(), event.getY(), 11);
return true;
}

}


and

package com.drawing;




import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.TextView;
public class LemonadeMainMenuView extends SurfaceView implements
SurfaceHolder.Callback{
private boolean mRun = false;
public boolean b = false;
class LemonadeMainMenuThread extends Thread {
Bitmap bitmap = null;
private SurfaceHolder mSurfaceHolder;
private Handler mHandler;
private Context mContext;
public void setRunning(boolean b) {
mRun = b;
}
public LemonadeMainMenuThread(SurfaceHolder surfaceHolder, Context
context,
Handler handler) {
 mSurfaceHolder = surfaceHolder;
 mHandler = handler;
 mContext = context;
}
Resources res = getResources();

  @Override
  public void run() {
  while (mRun) {
  Canvas c = null;
  try {
  c = mSurfaceHolder.lockCanvas(null);
  synchronized (mSurfaceHolder) {
  c.restore();
  doDraw(c);
  c.save();
  }
  } finally {
  if (c != null) {
  mSurfaceHolder.unlockCanvasAndPost(c);
  }
  }
  }
  }


private void doDraw(Canvas canvas) {
if (bitmap == null) {
bitmap = Bitmap.createBitmap(1000,
1000,Bitmap.Config.ARGB_);
canvas.setBitmap(bitmap);
}
  if(b){
  canvas.drawColor(Color.TRANSPARENT);
  canvas.drawBitmap(bitmap, 0, 0, null);
Paint paint = new Paint();
paint.setColor(Color.BLUE);
paint.setStyle(Style.FILL);
  canvas.drawCircle(mx, my, msize, paint);
  }
}}
private TextView mStatusText;
private LemonadeMainMenuThread thread;
public int mx;
public int my;
public int msize;
public LemonadeMainMenuView(Context context, AttributeSet attrs) {
super(context, attrs);
SurfaceHolder holder = getHolder();
holder.addCallback(this);

thread = new LemonadeMainMenuThread(holder, context, new
Handler() {
@Override
public void handleMessage(Message m) {
}
});

setFocusable(true);
}
public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2,
int arg3) {

}
public void surfaceCreated(SurfaceHolder arg0) {
thread.setRunning(true);
thread.start();
}
public LemonadeMainMenuThread getThread() {
return thread;
}
public LemonadeMainMenuThread setThreadRunning(boolean b) {
  mRun = b;
return thread;
}
public LemonadeMainMenuThread setCoords(float f, float g, int size) {
 mx = (int) f;
 my = (int) g;
 msize = size;
 b = true;
return thread;
}
public void setTextView(TextView textView) {
mStatusText = textView;
}
public void surfaceDestroyed(SurfaceHolder arg0) {


}


}
 main.xml just displays LemonadeMainMenu.java

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visi

[android-developers] overflow visible like css

2011-12-27 Thread satahippy
how can i set overflow visible to some view like css?
and it is possible to use css in android apps?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why is my drawing so unfluid and blinky?

2011-12-27 Thread TreKing
Wait ... are you expecting someone to read through, understand, and debug
*your* code to tell you why it is "all fluid and blinky" - whatever that
means?

Seriously?

-
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] overflow visible like css

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 12:43 PM, satahippy  wrote:

> how can i set overflow visible to some view like css?
>

Assume we're stupid and explain the effect you hope to achieve with
"overflow visible".


> and it is possible to use css in android apps?
>

For a WebView probably. Not for your standard Android UI.

-
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] publishing two versions of same application

2011-12-27 Thread James Black
What I did was to create a new project, with a new package name.
Then right-click on that project
go to properties
Then Android
Go to the bottom and click IsLibrary

I used the library activity as the main class and in the projects that use
the library I extend the library version.

You also need to go to properties->Android in your non-library and tell it
to use the library.

Then compile the library.

Restart eclipse.

Then finish development.
On Dec 27, 2011 10:54 AM, "John Goche"  wrote:

>
> On Tue, Dec 27, 2011 at 4:43 PM, TreKing  wrote:
>
>>
>> Yes, but an Android Library Project will help consolidate the common code.
>>
>
> OK, so how do I set up an android library project then. Having to maintain
> two separate source trees for every single application seems to be a pain.
>
> Please share your approach with us, I am very willing to learn what the
> alternatives may be,
>
> Thanks,
>
> John Goche
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] overflow visible like css

2011-12-27 Thread satahippy


вторник, 27 декабря 2011 г. 23:03:34 UTC+4 пользователь TreKing написал:
>
>
> Assume we're stupid and explain the effect you hope to achieve with 
> "overflow visible".
>
> parent has width 100dp, children has width 200dp
on default showed 100dp width children, i want to see 200dp 

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

[android-developers] Re: Using ViewPager with dynamic view sets

2011-12-27 Thread tatebn
I don't see add and remove items.

http://www.java2s.com/Open-Source/Android/App/appsorganizer/com/google/code/appsorganizer/prova/PageAdapter.java.htm

There are add and remove methods in the ViewPager.  But using them
outside of the adapter doesn't seem to do anything.

On Dec 27, 12:43 pm, TreKing  wrote:
> On Tue, Dec 27, 2011 at 10:49 AM, tatebn  wrote:
> > I've looked at the ViewPager examples which look like it uses an adapter
> > which has a defined number of pages.
>
> A brief look at the PageAdapter shows methods for adding and removing
> items. I'm sure you tried that already. What's the problem with those
> methods?
>
> --- 
> --
> 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] simulate hte speed for amdroid phones

2011-12-27 Thread Kristopher Micinski
Is sensor emulation what you need?  I'm not a physics expert, but I'd
think that if you're not changing your speed you're not going to be
feeling any acceleration :-P...

You can do the mock location, I'm not sure how quickly you can change
it, but how about you write a shell script to send the adb command to
update your location every few milliseconds, or quick enough as is
required to be able to find out the speed of your vehicle.  I know
that somebody posted here a while back that accurately tracks your
speed on your car, this surprised me, as I wasn't sure that a gps fix
was accurate enough to be able to find a reliable speed...

Kris

On Tue, Dec 27, 2011 at 11:18 AM, Vladimir Chtchetkine
 wrote:
> With r16 SDK you can use sensors emulation as described in here: Sensor
> emulation
>
>
> On Thu, Dec 22, 2011 at 10:56 AM, poncho  wrote:
>>
>> On 12/21/2011 05:36 AM, Shabnaz wrote:
>>>
>>> hi
>>>   Iam trying to develop an app for accident detection and notification
>>> system.
>>>
>>>   For tat I need to get the speed and acceleration of the mobile
>>> phione equpped with android
>>>
>>>   how do I simulate ht espeed of the phone using the emulator because
>>> the mibile phone does not physically change its location
>>>
>>
>> Hi,
>>
>> Not sure about the speed, you can set the location by:
>>
>>    telnet localhost 5554
>>    geo fix 32.00 37.00
>>    geo fix 32.00 37.10
>>    geo fix 32.00 37.20
>>    ...
>>
>> If you have more than one emulator the second emulator should be listen on
>> port 5556.
>>
>> Hope this helps
>> /Poncho
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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


Re: [android-developers] overflow visible like css

2011-12-27 Thread TreKing
2011/12/27 satahippy 

> parent has width 100dp, children has width 200dp
> on default showed 100dp width children, i want to see 200dp
>

Try setting the parent width to wrap_content and minWidth to 100dp.

-
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: Using ViewPager with dynamic view sets

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 2:10 PM, tatebn  wrote:

> I don't see add and remove items.
>

Try the official docs instead of some random open source project.
http://developer.android.com/reference/android/support/v4/view/PagerAdapter.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] overflow visible like css

2011-12-27 Thread satahippy
no, i need to 100dp parent width

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

Re: [android-developers] overflow visible like css

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 2:36 PM, satahippy  wrote:

> no, i need to 100dp parent width


Then set parent to 100dp width.

-
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: Android custom ImageView fade animation

2011-12-27 Thread Seb

Hmm I kind of understand... are you able to provide any code or psuedo
code though to show how it would fit together?
On Dec 25, 5:08 pm, AlexBonel  wrote:
> On 25 дек, 15:31, Seb  wrote:
>
> > But can I still define my animations in XML using your suggested
> > method?
>
> Yeah, Why not, just call static AnimationUtils.() with context
> instance (which is your Activity) and id of youranimationxml and
> it'll return youAnimationobject that you can pass to your
> startAnimation() method

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

2011-12-27 Thread satahippy
heh) i did it) but also i need to show all 200 dp width of children

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

[android-developers] Dalvik format error 1

2011-12-27 Thread DulcetTone
How can I tell what packages/classes are conflicting to cause this?

Is it a problem to have a package's classes contributed from more than
one project as long as the classes do not have the same
package.classname signature?

This is driving me bonkers, this vague error message.

tone

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


[android-developers] Nexus S Flash torch mode not working

2011-12-27 Thread Efi Merdler-Kravitz
Hey everybody,

I'm using Nexus S Android 2.3 stock version. Whenever I'm trying to
set the flash to torch mode:

if (camera == null) {
mCamera = camera = Camera.open();
}
final Parameters params = camera.getParameters();
params.setFlashMode(MODE_TORCH);
camera.setParameters(params);

nothing happens, the flash is not working at all. This piece of code
works perfectly on nexus one.

I've found this -http://stackoverflow.com/questions/5017455/how-to-use-
camera-flash-led-as-torch-on-a-samsung-galaxy-tab and also this one -
http://forum.xda-developers.com/showthread.php?t=923786 none of them
seems to help.

Why ?

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


Re: [android-developers] overflow visible like css

2011-12-27 Thread TreKing
On Tue, Dec 27, 2011 at 3:00 PM, satahippy  wrote:

> heh) i did it) but also i need to show all 200 dp width of children


Then try what I told you in the first place.

-
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 can we get the notification of sending message

2011-12-27 Thread Ali Chousein
What do you mean by "native code"? The example in the link I gave is
in Java and is based on Android SDK. This is as much Android SDK
native as you can imagine. Or are you trying to do something using the
NDK? For NDK related topics there is a dedicated group I think
http://groups.google.com/group/android-ndk

-
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


On Dec 27, 10:02 am, surabhi jain  wrote:
> thanx Ali
>
> but I want to get notification when I send SMS from device, I want native
> code for that

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


[android-developers] Re: Using ViewPager with dynamic view sets

2011-12-27 Thread tatebn
The destroyItem will work, but the instantiateItem will not.  The
instatiateItem method is called the number of times returned in
getCount, which is overrided to return a specific number.
instantiateItem doesn't not take a parameter for a view or object to
add.  It just creates and adds one based on position.

On Dec 27, 3:35 pm, TreKing  wrote:
> On Tue, Dec 27, 2011 at 2:10 PM, tatebn  wrote:
> > I don't see add and remove items.
>
> Try the official docs instead of some random open source 
> project.http://developer.android.com/reference/android/support/v4/view/PagerA...
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

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


[android-developers] error

2011-12-27 Thread Mulsaniya Bhadresh
Still no compatible AVDs with target 'Google APIs': Aborting launch.

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


[android-developers] Debugging Deadlock in ListAdapter?

2011-12-27 Thread Craig Setera
I've been fighting for a few weeks trying to build a list selector activity 
that is hanging up with a deadlock.  The list item consists of an image on 
the left and text on the right.  Because the image takes some time to load 
and render, the left area starts with an indeterminate progress bar which 
is replaced by the image when it is available.  The loading and rendering 
of the image is spun out to an asynchronous task.  When that task is 
completed, it posts a request to the UI thread to call 
notifyDataSetChanged().  On the next run through the getView method, the 
progress bar will be hidden and the image will be displayed.

This mostly seems to work, however I have race condition somewhere that 
causes a deadlock.  The first page of list items will render just fine.  As 
I scroll quickly to the bottom of the list, I will see the images slowly 
and correctly fill in until something catches and the UI hangs up. 
 Eventually, I will end up with an ANR.

I've tried all of the usual tricks that I can think of to figure out the 
cause of the deadlock:

* With lots of logging information in my adapter handling, it never *seems* 
to be hung in my code.  It may be, but I'm not seeing it.  If it is in the 
framework, I'm not sure where to look?
* The traces.txt file never contains traces from my application.  Instead, 
I see something like "W/dalvikvm(19144): threadid=4: spin on suspend #1 
threadid=9 (pcf=0)" whether it starts explicitly by SIGQUIT or 
automatically due to ANR.
* If I manage to recreate it under debugger control, I'm unable to break 
the UI thread in the debugger to see what it is waiting on.
* I even tried to use method tracing to see if I could spot anything, but 
unfortunately the race condition doesn't trigger with the extra time spent 
in tracing.

At this point, I've run out of ideas on how to figure out what is going on. 
 Is there something that the kernel could tell me?  Is there any UI-level 
logging that I could enable?  Are there any known framework bugs that I may 
be bumping against?  What other tricks that might help me to figure out 
where and why I'm hanging?

Thanks for any help,
Craig

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

[android-developers] Cocos2d android Texure issue on Motorola xoom

2011-12-27 Thread avantika thakkar
Hi,
i am developing a game in android with Cocos2d framework with latest
build from github(Weikuan Zhou).

in my game i used lot of images(total images size is around 11MB).

Problem :- i am getting the black box instead of images when i play my
game more than 3 times

What steps will reproduce the problem? 1. when i play my game more
than 3 times via "Play Again" functionality of my game.

What is the expected output? What do you see instead? - images should
be displayed properly instead of "BLACK BOX".

and in my logcat i see the Heap memory goes around 13Mb.

i already release Texture via below method
CCTextureCache.sharedTextureCache().removeAllTextures();
i also tried to remove sprite manually ex. removeChild() method.

But so far not succeeding to find any solution.

if any one have solution for this please let me know .

Thanks,
avantika

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


[android-developers] Checkbox status in list view

2011-12-27 Thread vishwa dani
My requriment is i have two listview activities 1st listview contain 2
textviews each row of listview 2nd one contain one textview & one
checkbox in each row of listview

1. I have to set the textview of 1st listview according to 2nd
listview checked item & also save checked item status after loading
2nd listview it shows previous checked item...

plz can any one give me the solution for this..or any example code

advance 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] Handling Popup site in webview

2011-12-27 Thread Android Lover
Hi there,
I am currently writing a webview, it first loads a twitter page (say,
NHL, http://twitter.com/nhl)
as you can see, you can find the tweet for NHL, and each NHL tweet has
another link for user to click, e.g. bit.ly/ujcNZo

in my webview, if i click that link (i.e. bit.ly/ujcNZo), my webview,
after 1 second, doesn't display anything but a twitter icon on a white
color background, it should load the content but it didn't.

after some time of investigation, i think it has to do with the fact
that the link in the tweet (i.e. bit.ly/ujcNZo) actually opens the
link in a separate window (pop up?) and not the current page where the
link is posted, i verified this by going to NHL's twitter page on a
browser in my laptop.

My Question is,
1. is there a way i can load the content of the external link (bit.ly/
ujcNZo, for instance) in my current webview?

Please help

thank you

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


[android-developers] Disable beam on-screen confirmation

2011-12-27 Thread Banjoo78
Hi, I'm developing an app that will use Android Beam to send messages
between Android's phones. Until Gingerbread I was capable to send and
receive messages without confirmation but, with Ice Cream Sandwich the
system automatically use beam on-screen confirmation... Anyone knows
if I can disable beam on-screen confirmation???
I tried to use enableForegroundNdefPush but I've the same problem...

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


[android-developers] Issue with my download

2011-12-27 Thread Chris Kehl
My device gives me an error "Download failed, A memory card is needed
for file download, please insert one and try again.

Here is my code.  I'm a little new to this, is there a line needed to
specify the download path?


package com.HelloWebView;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;



public class HelloWebView extends Activity {

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

Uri uri = Uri.parse("http://usacac.army.mil/cac2/WOCC/repository/
2011_Welcome_Letter.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);


}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How can apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?

2011-12-27 Thread dan raaka
in your manifest explicitly declare the hardware.telephony and set the
required="false". This solves the market filtering issues.

However, you will now have to @ runtime check if the device does indeed
support SMS !!

-Dan


2011/12/22 Kostya Vasilyev 

> While I don't have a workaround - sorry - but this particular device
> is quite weird...
>
> FWIW, this is what I recently ran into, it has to do with WiFi:
>
> http://wp.me/pSrdQ-lg
>
> Have you tried calling SmsManager.getDefault() and checking for null?
>
> -- Kostya
>
> 22 декабря 2011 г. 16:48 пользователь Terry  написал:
> > As no one has responed to this issue yet, I shall try to explain it in
> > more detail.
> >
> > In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model
> > GT-P7500, one could put the following in the Manifest file:
> >
> >  > android:required="false"/>
> >
> > In the app code, one could e.g. use the following too check what
> > features are available:
> >
> > PackageManager pm = getPackageManager();
> > boolean hasTelephony =
> > pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
> >
> > However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that
> > method.
> >
> > The problem would be solved if there existed a constant like
> > PackageManager.FEATURE_SMS or similar, but there is no such thing.
> >
> > I think that the Market is still not prepared for the type of products
> > like the Galaxy Tab 10.1 model GT-P7500.
> >
> > Any ideas as to how I can solve this?
> >
> > Terry
> >
> >
> > On 21 Des, 12:38, Terry  wrote:
> >> I have tried to ask this question elsewhere, but without getting any
> >> answer I can use. So I try it here also.
> >>
> >> I have some apps which send and receive SMSs. They are invisible for
> >> the new Galaxy Tablets on the Market, and they cannot be dowloaded to
> >> them.
> >>
> >> WHY?
> >>
> >> As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio
> >> phone calls - but it DOES support sending and receiving SMSs, there
> >> should be no problem. In fact, when I download these apps to the GT-
> >> P7500  locally, they work as expected.
> >>
> >> The Market however, sees the permissions to SEND_ and RECEIVE_SMS in
> >> the Manifest file of the apps, and interprets this so as to require
> >> hardware.telephony from the Galaxy Tabs. Which is does not seem to
> >> support.
> >>
> >> Any idea how to make a work-around for this problem?
> >>
> >> Terry
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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] I couldn't see the whole page

2011-12-27 Thread aluo.cn
http://aluo.cn/post/post_show.asp?ArticleID=284
I couldn't see the whole page (http://developer.android.com/resources/
tutorials/views/index.html) in android explorer on my MIONE mobile.

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


[android-developers] API Check: Can we answer incoming phone calls yet?

2011-12-27 Thread Merrell
Just wondering because I want to build an app that answers an incoming
call after  rings and interacts with the caller, potentially
connecting the phone owner with the caller, if the phone owner wishes.

Thanks in advance.  Is this possible... ?

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


[android-developers] Ways of getting high FPS for real time computer vision processing

2011-12-27 Thread Aleksandr Sugard
Crosspost from StackOverflow:
http://stackoverflow.com/questions/8649751/ways-of-getting-high-fps-for-real-time-computer-vision-processing

My goal is to get as high FPS as possible. I will be happy with BW
small frames, but FPS should be maximum. getSupportedPreviewFpsRange
on HTC WildFire S returns (9, 30). But when I try to draw preview
image with most simple processing it visually get at about 12-15 FPS
max. After setting Parameters and startPreview() method call I do
this:

camera.setPreviewCallback(new Camera.PreviewCallback() {
  @Override
  public void onPreviewFrame(byte[] bytes, Camera camera) {
Bitmap bitmap = Bitmap.createBitmap(size.width,
size.height, Bitmap.Config.ARGB_);
int[] colors = new int[size.width * size.height];
for (int i=0; i < colors.length; i++){
  colors[i] = getBWColor(bytes[i]);
}
bitmap.setPixels(colors, 0, size.width, 0, 0, size.width,
size.height);
secondView.setImageBitmap(bitmap);
  }
});
  }

private static int getBWColor(byte b){
int res = 255;
for(int i=0;i<3;i++){
  res = (res << 8) + b;
}
return res;
  }
Is there way to get it as fast as possible? =(

I looked everywhere, but still can't find the solution. I seems that I
need to work with media recorder streams, as someone suggested. But
How exactly ... ?

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


[android-developers] Input field on portrait view too long for screen, disobeys max-width in css

2011-12-27 Thread Kemis
Hello,

First of all, my android phone is awesome; but I have exhausted all
efforts known in css and html to solve a display issue when coding my
web page.

While developing my webpage for mobile, I noticed on my Google android
that my input field in portrait view becomes too long when the glass
is tapped with my finger. It goes way off the right side of the
screen.

While using Google's search -- in portrait view -- the blue search box
becomes highlighted, moves up, and stays within the confines of the
screen. I like this. This is awesome -- and exactly what I would like
for my page. There is no issue on landscape view.

Please tell me if there is a css / html workaround or solution to
keeping my input field in my webpage from running off the screen in
portrait view. I would like it to stay the same size when typing --
just like Google's.

Thank you.

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


Re: [android-developers] API Check: Can we answer incoming phone calls yet?

2011-12-27 Thread Kristopher Micinski
"phone stuff" isn't handled by the Android system.  That's lower level
hardware, and you really don't have access to it, so no, it's
impossible, and I suspect that it will *never* be possible.  It's not
an API issue, it's an issue as to how the hardware is designed...

Kris

On Fri, Dec 23, 2011 at 11:55 PM, Merrell  wrote:
> Just wondering because I want to build an app that answers an incoming
> call after  rings and interacts with the caller, potentially
> connecting the phone owner with the caller, if the phone owner wishes.
>
> Thanks in advance.  Is this possible... ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] API Check: Can we answer incoming phone calls yet?

2011-12-27 Thread Kristopher Micinski
On Tue, Dec 27, 2011 at 5:32 PM, Kristopher Micinski
 wrote:
> "phone stuff" isn't handled by the Android system.  That's lower level
> hardware, and you really don't have access to it, so no, it's
> impossible, and I suspect that it will *never* be possible.  It's not
> an API issue, it's an issue as to how the hardware is designed...
>
> Kris

(to protect me from the people who will inevitably note that some
amount of information is handled by the Android system, I should note
that in reality the stuff handled by low level things is the in call
audio stream, and in reality you do have access to call information,
at least at the android system level -- contacts -- however the in
call audio stream is off limits.)

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] Problem Loading CM7 on my SD Nook Tablet

2011-12-27 Thread hillgoo...@charter.net
Dudes,

I am trying to load the cm7 op sys on my nook tablet. It has version
1.4.0

Here is where I'm at:

1) I get a patriot SD card it has 2 GB
2) I use the win32diskimager to load the boot img. I could see the
files copied to it.

Here I noticed that the size of the SD card was then 116 MB ... Hmmm
baffling i think

3) then i copied the update-cm-7.1.0-encore-signed.zip to the SD
card.

I put the card in the nook (powered of) and turned it on. The nook op
sys came up and loaded some directories to the SD card, but no CM7
system!!

Do you guys know what is amiss in my process?

Mike

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


[android-developers] Problem installing CM7 on Nook Tablet

2011-12-27 Thread hillgoo...@charter.net
Dudes,

I am trying to load the cm7 op sys on my nook tablet. It has version
1.4.0

Here is where I'm at:

1) I get a patriot SD card it has 2 GB
2) I use the win32diskimager to load the boot img. I could see the
files copied to it.

Here I noticed that the size of the SD card was then 116 MB ... Hmmm
baffling i think

3) then i copied the update-cm-7.1.0-encore-signed.zip to the SD
card.

I put the card in the nook (powered of) and turned it on. The nook op
sys came up and loaded some directories to the SD card, but no CM7
system!!

Do you guys know what is amiss in my process?

Mike




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


[android-developers] Android GPS client which send Lat and Long to server via 3G/HSPDA once it enters a 1km almost straight road

2011-12-27 Thread coollearner
Hi from the title itself, please see below the specific requirements
of the android app that i'm preparing:

GPS android app which runs on the background checking its position
(LAT and LONG)
App will be used in a car, once the car enters a specified 1 km road
(almost straight 4 lane road or freeway), it will automatically send
its LAT, LONG and timestamp only to a server via 3G/HSPDA every
second.
Once it exit the specified 1 km road the app automatically stop
sending coordinates and timestamp to server.
I'm just starting to appreciate android programming and i think i was
able to find the code for the 1st requirement already using the one
below. For the 2nd and 3rd requirement i was reading about proximity
but it's concerned only on the distance from a certain point (radius)
and not on a rectangular area. Please help on the next coding step and
decisions that i will do and please also post some links about the
options so that i can study them since i'm just a new learner. My
gratitude.


import android.os.Bundle;
import android.widget.Toast;

// request location updates method

public class GpsActivity extends Activity {
private LocationManager lm;
private LocationListener locationListener;

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

lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);

locationListener = new MyLocationListener();

lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
locationListener);


//OPTIONAL

//Criteria criteria = new Criteria();
//criteria.setAccuracy(Criteria.ACCURACY_FINE);
//criteria.setAltitudeRequired(false);
//criteria.setBearingRequired(false);
//criteria.setCostAllowed(true);
//criteria.setPowerRequirement(Criteria.POWER_LOW);
//String provider = locationManager.getBestProvider(criteria, true);

}
private class MyLocationListener implements LocationListener{

@Override
public void onLocationChanged(Location location) {
if (location != null){
Toast.makeText(getBaseContext(), "Location changed : Lat:
" + location.getLatitude()+
" Long: " + location.getLongitude(),
Toast.LENGTH_SHORT).show();
}

}

@Override
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub

}

@Override
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub

}

@Override
public void onStatusChanged(String provider, int status, Bundle
extras) {
// TODO Auto-generated method stub

}

}
}

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

I am facing the same issue with Nonin 9560 BT device.

Anybody with update?

Thanks,
Charuhas.

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


[android-developers] XML parsing

2011-12-27 Thread Hank
I have this function in my code

public final static Document XMLfromString(String xml){
Document doc=null;
DocumentBuilderFactory dbf = 
DocumentBuilderFactory.newInstance();
try {
DocumentBuilder db = dbf.newDocumentBuilder();
InputSource XMLFile = new InputSource();
XMLFile.setCharacterStream(new 
StringReader(xml));
doc = db.parse(XMLFile);
} catch (ParserConfigurationException e) {
System.out.println("XML parse error: " + 
e.getMessage());
return null;
} catch (SAXException e) {
System.out.println("Wrong XML file structure: " 
+ e.getMessage());
return null;
} catch (IOException e) {
System.out.println("I/O exception: " + 
e.getMessage());
return null;
}
return doc;
}

When I walk through it in the Eclipse debugger, the value for 'xml' is
correct, it's from a file I pick up on the server and it's showing
correctly.
When I check the value it's fine going into the doc =
db.parse(XMLFile) at which time the doc shows nothing, so apparantly
the DocumentBuilder isn't finding what it needs.

Does anyone have any ideas on how I can find out where that function
is breaking?
Thank you

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


[android-developers] Unpublishe​d app not available for downloadin​g from market for Test Accounts

2011-12-27 Thread prasadreddy annapureddy
I exported unsigned app from eclipse and signed using keytool and
jarsigner of java jdk. I uploaded the signed app, application icon,
screenshots from android developer console. selected Copy Protection
"Off", all countried and not excluded any devices. I saved all above
details and clicked "Active" link next to apk file. Went to "Edit
Profile" and added few comma seperated gmail accounts to "Test
Accounts"
and selected "Respond normally" for "License Test Response". After
completing above steps waited for more than 2 days and still not able
to find the app from android market. Am I missing something? The whole
purpose of doingthis is to distribute beta version of app to selected
group of people. Your resposne is greatly appreciated.

Below are other detials VersionCode: 7 VersionName: 1.0 Size: 678k
Localized to: default Permissions: android.permission.INTERNET,
android.permission.CALL_PHONE Features: android.hardware.telephony,
android.hardware.screen.portrait, android.hardware.touchscreen

API level: 7-15+ Supported screens: small-xlarge OpenGL textures: 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] Android ICS Hardware Acceleration for setLayerType issue.

2011-12-27 Thread kaiping ken
*Situation:
*I porting some Android codes from 2.2 to 4.0, and want to enable the HW
acceleration(the Force GPU Rendering option) in this app. Then I found a
lot of compatibility issues, like incorrect texture, color and drawing,
also sometimes will get java.lang.UnsupportedOperationException then crash.

I try to fixed some of them following this mail(
http://groups.google.com/group/android-developers/browse_thread/thread/303813cfe0985a63?pli=1),
some parts were better but still not good.

**
*Problem:*
Recently I got a issue like this. The code try to use an API that was
marked in "Unsupported Drawing Operations" list in SDK, on that View I try
to set its attribute as "view.setLayerType(View.LAYER_TYPE_NONE, null);" ,
but after that the app runing with incorrect texture and crash with
UnsupportedOperationException. Change to LAYER_TYPE_SOFTWARE then eveything
is OK, but as we know using software to render into a bitmap and that will
cost a lots of memory, more bitmap more memory, and that will be a big
problem. I was wondering why using "LAYER_TYPE_NONE" still get incorrect
texture?(If using LAYER_TYPE_HARDWARD will 100% with wrong drawing and
crash). Is it "LAYER_TYPE_NONE" like a automation option? That means it
will automate to choose one of the option between SOFTWARE and HARDWARE ?


Thank you very much.
Ken Lai

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

[android-developers] how to get the size of navigation bar in android sdk 4.x

2011-12-27 Thread Jianyi Miao
Hi All,

I dind't know how to get the height of navigation bar when invoke the
method of onCreate().

At same time, I need to get the height of navigation bar when the
orientation is portrait or landscape.

e.g. screen size: 1280X720,  use the api get the screen size,
portrait: 1184X720 landscape:1196X720.

I need to get the height of navigation bar in oncreat method, include
portrait 96 and landscape 84.

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] Subject: emulator: WARNING: Unable to create sensors port: Unknown error

2011-12-27 Thread OpaSmurf
Responding to post from:
From: snowgoon 
Date: Thu, 22 Dec 2011 00:05:43 -0800 (PST)
Local: Thurs, Dec 22 2011 2:05 am

Because my error is almost identical with snowgoon's this seems the
right place to request a hint.  I also removed and reinstalled the ADK
and replaced eclipse 3.7.0 with 3.7.1 on Ubuntu 11.10.  HelloWorld
from the eclipse cheatsheet works to the console.  When I attempt
“Hello, World” from “http://developer.android.com/resources/tutorials/
hello-world.html”
I get the run log below.  I also get a virtual device displayed on my
desktop but the “Hello, World” text does not appear.

I have the file 51-android.rules to define usb ports but have no
physical device attached.

Any hints will be much appreciated by a rusty former programmer.
Thanks.

[2011-12-26 20:38:32 - MyAp] Android Launch!
[2011-12-26 20:38:32 - MyAp] adb is running normally
[2011-12-26 20:38:32 - MyAp] Performing HelloWorld.Droid.MyApActivity
activity launch
[2011-12-26 20:38:32 - MyAp] Automatic Target Mode: launching new
emulator with compatible AVD 'my_avd'
[2011-12-26 20:38:32 - MyAp] Launching a new emulator with Virtual
Device 'my_avd'
[2011-12-26 20:38:36 - Emulator] emulator: WARNING: Unable to create
sensors port: Connection refused
[2011-12-26 20:38:36 - MyAp] New emulator found: emulator-5554
[2011-12-26 20:38:36 - MyAp] Waiting for HOME
('android.process.acore') to be launched...

P.S.  I would be happy to know how I should have added to snowgoon's
post rather than creating a new one. TNX

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


[android-developers] Can't update..

2011-12-27 Thread Gr4yb3ard
File not found: C:\Program Files (x86)\Android\android-sdk\temp
\android-15_r01.zip (Access is denied)

WTF??

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


[android-developers] Re: How can apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?

2011-12-27 Thread Terry
Hello, Zsolt.
You may well ask - but that's how it is.
Yes, this tablet (Galaxy Tablet 10.1 GT-P7500) contains a cellular
radio.
It even has a microphone (which works well with Skype), but it doesnt
support voice telephony.

Terry


On 27 Des, 08:07, Zsolt Vasvari  wrote:
> Just curious, how can a device support SMS but not voice calling?
> They both require a cellular radio, don't they?
>
> On Dec 23, 3:29 pm, Terry  wrote:
>
>
>
>
>
>
>
> > Hi, Kostya.
> > Thanks for your response, and for info on your strange experience with
> > WiFi on the Galaxy Tablet.
>
> > My problem is not to make SMS-functions work on the Galaxy Tab (which
> > they do), but to make SMS apps visisble to devices which support SMS
> > (including the Galaxy Tabs) - and only those.
>
> > One could obviously try something like what you suggest, but in that
> > case you need to make the app visible to all sorts of devices, also
> > those which do not support SMS. Starting/running an app on deviced on
> > which it will not run properly, would probably result in lots of angry
> > users and bad/low ratings. Which we do not want.
>
> > At some stange it seemed that the Market would try to solve this
> > general problem - once and for all:
> > Read about "The 5 steps to future harware happiness":
>
> >http://android-developers.blogspot.com/2010/10/five-steps-to-future-h...
>
> > The Market may have thought that they had solved this issue, but it
> > seems not.
>
> > Or could there be other ways ?
>
> > Terry
>
> > On 22 Des, 13:55, Kostya Vasilyev  wrote:
>
> > > While I don't have a workaround - sorry - but this particular device
> > > is quite weird...
>
> > > FWIW, this is what I recently ran into, it has to do with WiFi:
>
> > >http://wp.me/pSrdQ-lg
>
> > > Have you tried calling SmsManager.getDefault() and checking for null?
>
> > > -- Kostya
>
> > > 22 ÄÅËÁÂÒÑ 2011šÇ. 16:48 ÐÏÌØÚÏ×ÁÔÅÌØ Terry  ÎÁÐÉÓÁÌ:
>
> > > > As no one has responed to this issue yet, I shall try to explain it in
> > > > more detail.
>
> > > > In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model
> > > > GT-P7500, one could put the following in the Manifest file:
>
> > > >  > > > android:required="false"/>
>
> > > > In the app code, one could e.g. use the following too check what
> > > > features are available:
>
> > > > PackageManager pm = getPackageManager();
> > > > boolean hasTelephony =
> > > > pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
>
> > > > However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that
> > > > method.
>
> > > > The problem would be solved if there existed a constant like
> > > > PackageManager.FEATURE_SMS or similar, but there is no such thing.
>
> > > > I think that the Market is still not prepared for the type of products
> > > > like the Galaxy Tab 10.1 model GT-P7500.
>
> > > > Any ideas as to how I can solve this?
>
> > > > Terry
>
> > > > On 21 Des, 12:38, Terry  wrote:
> > > >> I have tried to ask this question elsewhere, but without getting any
> > > >> answer I can use. So I try it here also.
>
> > > >> I have some apps which send and receive SMSs. They are invisible for
> > > >> the new Galaxy Tablets on the Market, and they cannot be dowloaded to
> > > >> them.
>
> > > >> WHY?
>
> > > >> As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio
> > > >> phone calls - but it DOES support sending and receiving SMSs, there
> > > >> should be no problem. In fact, when I download these apps to the GT-
> > > >> P7500 šlocally, they work as expected.
>
> > > >> The Market however, sees the permissions to SEND_ and RECEIVE_SMS in
> > > >> the Manifest file of the apps, and interprets this so as to require
> > > >> hardware.telephony from the Galaxy Tabs. Which is does not seem to
> > > >> support.
>
> > > >> Any idea how to make a work-around for this problem?
>
> > > >> Terry
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, 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


Re: [android-developers] Re: Password app

2011-12-27 Thread sai rajesh
Hi Can you share the logic here??

On Tue, Dec 27, 2011 at 5:09 PM, Mukesh Srivastav wrote:

> I have achieved this functionality. I was able to capture the wrong
> password entered by user and was able to send the sms succesfully.
>
> It had tested it the same with Pattern lock and pin lock as well.
>
>
> Warm Regards,
> *Mukesh Kumar*,
> Android Consultant/Freelancer,
> India,Hyderabad
>
> On Tue, Dec 27, 2011 at 4:51 PM, poiuytrez wrote:
>
>> Thank you for your answers.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.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




-- 
Regards
Sai Rajesh N
Mobile 8686776558

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

[android-developers] Api problem

2011-12-27 Thread rudraswamy mc
i will try to make a google map...but i got error like Api couldnt
found.plz send me ans..plz..plz..

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

2011-12-27 Thread shaanu

On Nov 25, 7:23 am, IcedNet  wrote:
> You need to refer to the ClipboardManager class in the3.0
> documentation, first, as you are using a deprecated
> class ...text.ClipboardManager, and method (emulateShiftHeld).
> Second, I have used the web view extensively in3.0+, and the 
> standardSelectionactionmode functions fairly well - so long as you are only
> trying to pass the data around the system...  It will not create a
> JavaScriptselectionobject.
>
> Peace

Hi,
I am facing same kind of problem. i need to select and highlight
the text on
webview, but im unable to do it as im not getting the javasccript
selecton object.
Is there any way to do it?


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


[android-developers] Android Developing tech problems

2011-12-27 Thread Mike Taylor
I'm trying to download the needed files to develope an application on
my computer and having a difficult time with the eclipse part of it
and connecting it to the plugins?

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

2011-12-27 Thread Franklin
I also met this problem.

The same VPN setting(L2TP/IPSec PSK) works fine with my Nexus One but not 
Galaxy Nexus.

It shows "Time out" message

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

[android-developers] About WXGA emulator(AVD)

2011-12-27 Thread hardrock
Hi All,

Let me know how to use emulator(AVD) the below case.

* Samsung Galaxy Tab 10.1"
WXGA(1280 x 800) / mdpi(160) / xlarge screen

=> As I know, Android SDK supports this AVD at android 3.x(honeycomb).

* Samsung Galaxy Note 5.3"
WXGA(1280 x 800) / hdpi(240) / normal screen

=> I guess that Android SDK doesn't support AVD in this case.
Could anybody help me how to make AVD in this case ?

And one more question is,
After reading the resolution, how can I  distinguish the devices
between  and  ?

If I have wrong informations, please correct it.

Sorry for my less knoweldge.

James

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


[android-developers] App force closes after adding more than 3 markers

2011-12-27 Thread Znaz
I am making an app that uses Google Maps. After I try to add any more
than 3 markers to the overlay, the app force closes. Why does this
happen?

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


[android-developers] Junit test to test MultiAutoCompleteTextView

2011-12-27 Thread Taher Galal
i would like to have a junit test to run MultiAutoCompleteTextView and
get the data from the dropdown of it

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


[android-developers] Re: L2TP/IPSEC PSK with Android 4

2011-12-27 Thread Franklin
I also met this problem. It shows "Time out" in Galaxy Nexus but the
same setting works fine with my Nexus One.


On Dec 24, 1:24 am, program  wrote:
> I am having trouble connecting to an L2TP/IPSec PSK VPN (with pre-
> shared key).
> The same connection is working on my nexus one, but not on the galaxy
> nexus with ics.
> On the galaxy nexus it always times out.
>
> Has anybody experienced the same problem?
>
> PPPT works fine by the way.

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


[android-developers] Junit test to test MultiAutoCompleteTextView

2011-12-27 Thread Taher Galal
I would like to write a junit test to assert a value received from a
MultiAutoCompleteTextView can anyone help me

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


[android-developers] Api problem

2011-12-27 Thread rudraswamy mc
i got error msg like api couldnt findplz give soloution...

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


[android-developers] Video Player

2011-12-27 Thread Harshal Patel
Hi All,

I want to create a video player that plays video from remote location
that called my own web server. After playing video for first time it
stored in device memory automatically and then next time it check on
server for any changes for video i.e. length with same name, other
video then previous then and then it sync with server and load video
on device and replace with old one else it will play older video.

How to do I stuck in logic. I had seen how to store image but not
found for video. Video play online properly but can't store in device.

Please any guideline tutorial or sample program available??? then
please help me.

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


[android-developers] how can I see live video from ip camera?

2011-12-27 Thread olivertm
Hello everyone!

I'm trying to make android code to see live images from my ip camera.
I use Motion to show the live jpg's images.
In my pc browser, I can see the live images, but on android's browser
I can't... my android code is:


protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.video);

myWebView = (WebView) findViewById(R.id.wbvideo);
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.loadUrl("http://192.168.1.41:8080";);
}

can anyone help me?

Thank 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


  1   2   >