[android-developers] Re: A noob question about MultipartEntity

2011-10-12 Thread routis
thank you for your response

On 10월12일, 오전5시07분, Paul Turchenko paul.turche...@gmail.com wrote:
 well, there's nothing special in multipart. You can use apache mime
 library in your prroject or implement multipart yourself.

 On Oct 10, 6:58 am, routis ryu.ins...@gmail.com wrote:







  Hi I guess this is a stupid noob question but I want to know why
  Android framework does not provide with MultipartEntity class and if
  there is future plan to support this.

  Thank you for your reading.

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


[android-developers] assigning typeface to text view

2011-10-12 Thread bhumi kania
Hello,

I want to assign the typeface which I had placed in my asset folder to
all the textview of my application.
So is there any way through which I can assign this time at once to
all the textview of application?
Or I have to assign manually to all textview where they are appears on
activity?

Currently I am doing like this at place where I am having textview on
layout.
TextView title = (TextView)
findViewById(android.R.id.title);
Typeface whyteny =
Typeface.createFromAsset(getApplicationContext().getAssets(),
whitneymedium.ttf);
title.setTypeface(whyteny);

Thanks In advance

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


[android-developers] Re: Does Android Support SOAP web service?

2011-10-12 Thread Archana
Hi,

thanks all.



On Oct 12, 6:21 am, Anil Jagtap anil.so...@gmail.com wrote:
 You may be interested in this

 http://www.helloandroid.com/tutorials/using-ksoap2-android-and-parsin...

 Hope you will find this tutorial useful

 On Oct 10, 7:32 am, Archana archana.14n...@gmail.com wrote:



   Hi,

  Could some one tell me whether android supports SOAP web Service. If
  yes then how.
  I read in forum that there is no SOAP supported library for android.
  Its very urgent please reply.- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: capture video

2011-10-12 Thread Indicator Veritatis
See the SimpleVideo example in the download files for  Chapter 10 of
Android In Action, which source files you can download from
http://code.google.com/p/android-in-action/

On Oct 11, 10:28 pm, mohana priya gpriyara...@gmail.com wrote:
 I am created new instance of class for camera.I need to know how to
 capture video in android.Please tell me how to do so .Thanks in
 Advance.

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


[android-developers] How to escape ampersand?

2011-10-12 Thread ndiiie 90
Hi all,


how to escape ampersand, such as lt; gt; quot; amp;
And change it to proper character?


Thanks

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

[android-developers] Re: GL-related Crash on Xoom/Tab 10.1 requiring removal of battery or shell reboot?

2011-10-12 Thread Indicator Veritatis
When I read the bug description, it does not sound that severe,
because it is easily reproducible only on Nexus. Other devices are
described as either not having the problem at all or only after a long
time of running OpenGL mixed with other apps.

So if you have sound data that it is happening more often than
described, you should add that to the bug.

On Oct 10, 3:12 pm, Peter Sinnott psinn...@gmail.com wrote:
 Does anyone even pay attention to issues logged against the project?
 I imagine they are ignored like the public bug tracker.

 On Oct 10, 7:54 pm, Robert Green rbgrn@gmail.com wrote:

  Isn't this that really awful GL-related bug I've been talking about
  for nearly 2 years?  I can't believe this still exists in honeycomb,
  worse yet that it's nearly unrecoverable to tablet users that can't
  remove their battery and don't have enough technical knowledge to use
  ADB.

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

  IMO this should be upgraded to severe.  It's been plaguing Android
  devices since 2.1

  W/SharedBufferStack(  136): waitForCondition(LockCondition) timed out
  (identity=3, status=0). CPU may be pegged. trying again.
  W/SharedBufferStack(   78): waitForCondition(ReallocateCondition)
  timed out
  (identity=9, status=0). CPU may be pegged. trying again.
  W/SharedBufferStack(   78): waitForCondition(LockCondition) timed out
  (identity=5, status=0). CPU may be pegged. trying again.
  W/SharedBufferStack(  381): waitForCondition(LockCondition) timed out
  (identity=7, status=0). CPU may be pegged. trying again.
  W/SharedBufferStack(  136): waitForCondition(LockCondition) timed out
  (identity=3, status=0). CPU may be pegged. trying again.
  ...

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


Re: [android-developers] How to escape ampersand?

2011-10-12 Thread Francisco Dalla Rosa soares
how about this?

java.net.URLEncoder.encode(string, ISO-8859-1);


2011/10/12 ndiiie 90 rnd...@gmail.com

 Hi all,


 how to escape ampersand, such as lt; gt; quot; amp;
 And change it to proper character?


 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




-- 
株式会社アルゴ ARGO Inc.
〒130-0012
東京都墨田区太平3-11-10
NTKオオノビル8階

ソアレス フランシスコ ( Soares Francisco )
Mail : soa...@argo.bz HP : http://www.argo.bz/
TEL:03-5619-4511 FAX:03-5619-4512

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

[android-developers] Re: How to escape ampersand?

2011-10-12 Thread ndiiie90
thanks for your reply. But that what i mean.
What i want is to convert string, such as

quot to 
amp to 
lt to 
gt to 

etc

How to do it?
i've used other library, such as jsoup but it seems it can't convert
all ampersand characters.


On Oct 12, 2:20 pm, Francisco Dalla Rosa soares soa...@argo.bz
wrote:
 how about this?

 java.net.URLEncoder.encode(string, ISO-8859-1);

 2011/10/12 ndiiie 90 rnd...@gmail.com









  Hi all,

  how to escape ampersand, such as lt; gt; quot; amp;
  And change it to proper character?

  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

 --
 株式会社アルゴ ARGO Inc.
 〒130-0012
 東京都墨田区太平3-11-10
 NTKオオノビル8階

 ソアレス フランシスコ ( Soares Francisco )
 Mail : soa...@argo.bz HP :http://www.argo.bz/
 TEL:03-5619-4511 FAX:03-5619-4512

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


[android-developers] Re: How to escape ampersand?

2011-10-12 Thread Zsolt Vasvari
Perhaphs studying the documenation of the most basic Java class would
be helpful:

http://download.oracle.com/javase/6/docs/api/java/lang/String.html



On Oct 12, 3:35 pm, ndiiie90 rnd...@gmail.com wrote:
 thanks for your reply. But that what i mean.
 What i want is to convert string, such as

 quot to 
 amp to 
 lt to 
 gt to 

 etc

 How to do it?
 i've used other library, such as jsoup but it seems it can't convert
 all ampersand characters.

 On Oct 12, 2:20 pm, Francisco Dalla Rosa soares soa...@argo.bz
 wrote:



  how about this?

  java.net.URLEncoder.encode(string, ISO-8859-1);

  2011/10/12 ndiiie 90 rnd...@gmail.com

   Hi all,

   how to escape ampersand, such as lt; gt; quot; amp;
   And change it to proper character?

   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

  --
  株式会社アルゴ ARGO Inc.
  〒130-0012
  東京都墨田区太平3-11-10
  NTKオオノビル8階

  ソアレス フランシスコ ( Soares Francisco )
  Mail : soa...@argo.bz HP :http://www.argo.bz/
  TEL:03-5619-4511 FAX:03-5619-4512- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: assigning typeface to text view

2011-10-12 Thread Zsolt Vasvari
Just throw it out there:  Themes?

On Oct 12, 2:14 pm, bhumi kania bska...@gmail.com wrote:
 Hello,

 I want to assign the typeface which I had placed in my asset folder to
 all the textview of my application.
 So is there any way through which I can assign this time at once to
 all the textview of application?
 Or I have to assign manually to all textview where they are appears on
 activity?

 Currently I am doing like this at place where I am having textview on
 layout.
 TextView title = (TextView)
 findViewById(android.R.id.title);
 Typeface whyteny =
 Typeface.createFromAsset(getApplicationContext().getAssets(),
 whitneymedium.ttf);
 title.setTypeface(whyteny);

 Thanks In advance

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


[android-developers] Re: How to escape ampersand?

2011-10-12 Thread ndiiie90
Hi thanks for your reply. if i use that class, for sure i can do the
conversion to proper character, it's only replacing string. However,
the ampersand tags are very many, you can see the list here:
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

I think it's impossible to list all the ampersand tags one by one and
of course the running time of the application will be much slower.



On Oct 12, 3:04 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Perhaphs studying the documenation of the most basic Java class would
 be helpful:

 http://download.oracle.com/javase/6/docs/api/java/lang/String.html

 On Oct 12, 3:35 pm, ndiiie90 rnd...@gmail.com wrote:







  thanks for your reply. But that what i mean.
  What i want is to convert string, such as

  quot to 
  amp to 
  lt to 
  gt to 

  etc

  How to do it?
  i've used other library, such as jsoup but it seems it can't convert
  all ampersand characters.

  On Oct 12, 2:20 pm, Francisco Dalla Rosa soares soa...@argo.bz
  wrote:

   how about this?

   java.net.URLEncoder.encode(string, ISO-8859-1);

   2011/10/12 ndiiie 90 rnd...@gmail.com

Hi all,

how to escape ampersand, such as lt; gt; quot; amp;
And change it to proper character?

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

   --
   株式会社アルゴ ARGO Inc.
   〒130-0012
   東京都墨田区太平3-11-10
   NTKオオノビル8階

   ソアレス フランシスコ ( Soares Francisco )
   Mail : soa...@argo.bz HP :http://www.argo.bz/
   TEL:03-5619-4511 FAX:03-5619-4512- Hide quoted text -

  - Show quoted text -

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


[android-developers] Re: How to control the rotation

2011-10-12 Thread Perry168
hi all,

I found that even I changed the PNG to a square, it not rotate at a
point too. It may cause from matrix.setRotate. But I don't know how to
do it.
help pls.

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

2011-10-12 Thread nageswara rao rajana
Hi,

I developed an application on 2.1, i integrated built-in camera app in
my application.
Its working perfectly on Samsung pop device but not working on HTC
mobile.
Can any one suggest me what might be the issue.

   Thanking you,
   Nagu.

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

[android-developers] USB driver for android kernel

2011-10-12 Thread lbstr
Hello, I want to add a usb driver to my android device's kernel in
order use usb api after that, can anybody help?

Note: device have android os 2.2 and its from unknown vendor...

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


[android-developers] Best practice/difference between @id/ and @+id/

2011-10-12 Thread charlie babitt
What is a best practise for using ids defined in a separate ids.xml
file (and using them with @id/) or adding them dynamically with @+id/.
When should I declare them in the ids.xml and when should I simply
create them using the +id. Is there a recommendation, guidline or best
practise that you can recommend?

Thanks
Charlie

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


[android-developers] iPhone-style 3-button remote control headset support

2011-10-12 Thread Gerald Dalley
Is there any way to enable support for iPhone-style 3-button remote
control headsets on Android devices?  These are the ones that have a
button for play/mute, and a pair of volume control buttons.  Out-of-
the box, this doesn't seem to work, but I wonder if there's a way for
applications to obtain low-level enough information from the
microphone line or if it's possible to write some sort of driver 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] Re: activity launches with wrong layout orientation

2011-10-12 Thread 刘家豪
You might try to use the follow code from the Java class:

switch (this.getResources().getConfiguration().orientation)
{
case Configuration.ORIENTATION_PORTRAIT:
  // Do something here
  break;
case Configuration.ORIENTATION_LANDSCAPE:
  // Do something here
  break;
case Configuration.ORIENTATION_SQUARE:
  // Do something here
  break;
default:
  throw new Exception(Unexpected orientation enumeration returned);
  break;
}

See here for more info:
http://eigo.co.uk/News-Article.aspx?NewsArticleID=103

On Oct 7, 2:50 pm, Simon simon.wilkin...@gmail.com wrote:
 Hi,

 I have an activity that I have two layouts defined for: one for
 landscape and one for portrait.  So in my layout folder I have
 activity.xml and activity_landscape.xml.  When I am switching around
 orientation on my device the proper layout is loading on orientation
 change.  However, if I am in landscape mode, and then launch this
 activity from another activity, the portrait layout is rendered, even
 though the device is in landscape mode.  I am launching the activity
 using the following:

 Intent i = new Intent(OtherActivity.this, Activity.class);
 startActivityForResult(i, ACTIVITY_X);

 Does anybody have any ideas for why this could be happening?  Seems
 strange that it would work except for on initial load of the activity.

 Thanks,

 Simon

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


[android-developers] unable to view hindi web pages

2011-10-12 Thread Avichal
i have buied a new sony xperia X10i.and i am unable to view hindi web
pages on cell phone plz help

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


[android-developers] Re: Newbie Question About Eclipse and SDk

2011-10-12 Thread 刘家豪
The 32 bits program should works for 64bits machines too, although I
haven't tested for eclipse. In this case, the problem might be for the
emulators, which could run a bit slower. Why don't you try it? You can
always uninstall it later if you don't like it.

On Oct 6, 3:49 am, Mark Phillips m...@phillipsmarketing.biz wrote:
 I am just diving into Android development, and I have a question about
 setting up Eclipse with the SDK. My development machine runs Linux version
 3.0.0-1-amd64 (Debian 3.0.0-3), and I understand the SDk is 32 bit. Do I
 install the 32 bit Eclipse or the 64 bit Eclipse? Does it matter? Or, should
 I setup a 32 bit chroot or VM and work out of there?

 Thanks!

 Mark

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

2011-10-12 Thread Sam Blomberg
I recently encountered the problem as well. Verbose logging pauses in the 
Eclipse Console every 7 seconds on my Windows 7 machine, so I wasn't able to 
get any error information other than 'aapt' error. Pre Compiler Build 
aborted.

After manually executing the aapt command from cmd prompt, I got the 
following information that lead me to this discussion:

...
trying overlaySet Key=gameplay_screen.png
trying overlaySet Key=gameplay_screen_bg.jpg
trying overlaySet Key=icon.png
baseFile zd has flavor (null)
overlayFile zd has flavor (null)

In my case, the last file was the one that happened to be duplicated in an 
imported library. After renaming my icon.png to app_icon.png in my drawables 
folder, aapt completed the build successfully with verbose logging enabled.

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

2011-10-12 Thread T.Chow
may be help: http://android-er.blogspot.com/2011/09/onsaveinstancestate-and.html


On Oct 8, 4:45 am, King Salamon msalamon.comcast@gmail.com
wrote:
 Please can anyone give me a full coding example for getting data to persist
 after the device is rotated. All of my textView fields go back to zero when
 the device is rotated. I understand that the activity is destroyed and then
 recreated due to configuration change, and I think that using
 onSavedInstanceState somehow might resolve the issue--but I need a more
 detailed explanation with full code please. HELP!!

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


[android-developers] Android may notify to my application that a connection has been made​​?

2011-10-12 Thread valentina
My application shows data read from the web.
if my application IS CLOSED, Android may notify to my application that
an internet connection has been activated?
So my application could check for new data on the web and download.

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


[android-developers] Hide Menu Before Executing Code

2011-10-12 Thread Matthew Gray
Hi,

Is there an easy way, or work-around, in which I can hide the options
menu before a series of code runs? Currently a few things are
happening on the screen in my app that are hidden by the menu item
just clicked.

current code:

public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.menuitem:
RunSomeCode();
return true;
}
}

What i'd like is something along the lines of:


public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case R.id.menuitem:

Hide Menu  Undraw it here

RunSomeCode();
return true;
}
}


if that's possible?

Thanks,
Matt.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-10-12 Thread akhil vvs
when will we be able to UNLOCK BOOTLOADER of XPERIA NEO V

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


[android-developers] link button

2011-10-12 Thread rover
i am making an app which has buttons on the opening screen of the app.
i have linked buttons on the opening screen to another menus. But i am
not able to connect the buttons in the subsequent menus to more menus.
i have made a .java file for the menu of which buttons are not getting
connected. also i have started a new activity in the
androidmanifest.xml file as well. please help out.

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


[android-developers] How add a new Language on AVD

2011-10-12 Thread Jaicon
Hello,

I need do add a new language  (pt - portuguese) on the AVD, for take
screenShots but I dont found how to make that. someone can 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] XML (RSS) Ignores quotation marks

2011-10-12 Thread r6900
Im having a problem with SAX XML parser.
It DOES parse everything, except quotation marks ().
For example, if the text is hellquot;3o in a node, the result is hell.
Here are my codes:
**XML Handler:**

public class MyXMLHandler extends DefaultHandler {

Boolean currentElement = false;
String currentValue = null;
public static SitesList sitesList = null;

public static SitesList getSitesList() {
return sitesList;
}

public static void setSitesList(SitesList sitesList) {
MyXMLHandler.sitesList = sitesList;
}

/** Called when tag starts ( ex:- nameAndroidPeople/name
* -- name )*/
@Override
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {

currentElement = true;

if (localName.equals(channel))
{
/** Start */
sitesList = new SitesList();
} else if (localName.equals(item)) {
String attr=attributes.getValue(item);
sitesList.setItem(attr);
} else if (localName.equals(title)) {
/** Get attribute value */
String attr = attributes.getValue(title);
sitesList.setTitle(attr);
}
else if (localName.equals(link)) {
/** Get attribute value */
String attr = attributes.getValue(link);
sitesList.setLink(attr);
}
else if (localName.equals(description)) {
/** Get attribute value */
String attr = attributes.getValue(description);
sitesList.setDescription(attr);
}
else if (localName.equalsIgnoreCase(pubDate)) {
/** Get attribute value */
String attr = attributes.getValue(pubDate);
sitesList.setPubDate(attr);
}

}

/** Called when tag closing ( ex:- nameAndroidPeople/name
* -- /name )*/
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {

currentElement = false;

/** set value */
if (localName.equalsIgnoreCase(item))
sitesList.setItem(currentValue);
else if (localName.equalsIgnoreCase(title))
sitesList.setTitle(currentValue);
else if (localName.equalsIgnoreCase(link))
sitesList.setLink(currentValue);
else if (localName.equalsIgnoreCase(description))
sitesList.setDescription(currentValue);
else if (localName.equalsIgnoreCase(pubDate))
sitesList.setPubDate(currentValue);

}

/** Called to get tag characters ( ex:- nameAndroidPeople/name
* -- to get AndroidPeople Character ) */
@Override
public void characters(char[] ch, int start, int length)
throws SAXException {

if (currentElement) {
currentValue = new String(ch, start, length);
currentElement = false;
}

}

}

**Getter and Setter:**

import java.util.ArrayList;

/** Contains getter and setter method for variables */
public class SitesList {

/** Variables */
private ArrayListString title = new ArrayListString();
private ArrayListString link = new ArrayListString();
private ArrayListString description = new ArrayListString();
private ArrayListString pubDate = new ArrayListString();
private ArrayListString item=new ArrayListString();



/** In Setter method default it will return arraylist
* change that to add */

public ArrayListString getTitle() {
return title;
}

public void setTitle(String title) {
this.title.add(title);
}

public ArrayListString getLink() {
return link;
}

public void setLink(String link) {
this.link.add(link);
}

public ArrayListString getDescription() {
return description;
}

public void setDescription(String description) {
this.description.add(description);
}
public ArrayListString getPubDate() {
return this.pubDate;
}
public void setPubDate(String PubDate) {
this.pubDate.add(PubDate);
}
public ArrayListString getItem() {
return this.item;
}
public void setItem(String item) {
this.item.add(item);
}



}

And **RSS Thread class:**

public class RssThread {

private String title,html,pubDate;
public RssThread(String title,String html,String pubDate)
{
this.title=title;
this.html=html;
this.pubDate=CovertToDate(pubDate);
}
private String CovertToDate(String pubDate) {
// TODO Auto-generated method stub
//Wed, 28 Sep 2011 11:40:51//
String newDate=;
if (pubDate.substring(0,pubDate.indexOf(,)).equals(Sun))
newDate+=יום ראשון;
else if (pubDate.subSequence(0, pubDate.indexOf(,)).equals(Mon))
newDate+=יום שני;
else if (pubDate.subSequence(0, pubDate.indexOf(,)).equals(Tue))
newDate+=יום שלישי;
else if (pubDate.subSequence(0, pubDate.indexOf(,)).equals(Wed))
newDate+=יום רביעי;
else if (pubDate.subSequence(0, pubDate.indexOf(,)).equals(Thu))
newDate+=יום חמישי;
else if (pubDate.subSequence(0, pubDate.indexOf(,)).equals(Fri))
newDate+=יום שישי;
else if (pubDate.subSequence(0, 

[android-developers] hi

2011-10-12 Thread aditya rathod
whatsup

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

[android-developers] wifi communication between two or more devices

2011-10-12 Thread renato
I need to develop an appliation that can excange information directly
with other devices over WiFi without the need for an infrastructure
(server). Can this be done and can someone point me in the right
direction please?

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


[android-developers] honeycomb HW accelerated 2D bmp.copyPixelsFromBuffer(bf) not reupload texture to GPU

2011-10-12 Thread Selueco
Hi,

I am blitting a byte buffer to an Object Bitmap using a HW accelerated
Canvas. To avoid garbage collector i would like to reuse the  bitmap
doing a bmp.copyPixelsFromBuffer(bf).

The problem here is that Android 3.0 canvas HW accelerated seems to
not reupload bitmap texture unless it is a different object...

My workround was to use  drawBitmap(int[] colors ... previusly i had
to do a bmp.getPixels( ... this is slow... since involves an RGB565 to
RGB conversion by frame

any ideas why Android 3.0 HW accelerated not reupload bitmap textures
which bytes are internally changed?

is this a bug?

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


[android-developers] unable to view hindi web pages

2011-10-12 Thread Avichal
i am unable to view hindi web pages on my cell phone,when ever i open
a hindi site only boxes appeare ,hindi is very important to me so plz
help,tell me how to add hindi fonts to my new sony xperia X10i
plz reply soon...

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

2011-10-12 Thread Eugene Beletskiy
Can you post a stack trace (from Android Market) and say what is the name of 
a class you provided a peace of code for?
For a meantime you need to inject *Log* into your code (*onDestroy()*) to 
see why you get null pointer exception. Looking at the code you posted 
everything should work ok. If your *TabActivity* consists of several other *
Activities* you need to check if the problem from there. Anyway, it's hard 
to say unless you provide more info.

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

[android-developers] fetching fails dl-ssl.google.com

2011-10-12 Thread karan verma
great it works

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


[android-developers] AppWidgetHostView handle touch event problem

2011-10-12 Thread Barış
i am adding installed AppWidgetViews to my application as
AppWidgetHostView. The problem is they don't handle any touch events
as they were added to home screen. Here is part of my code;



AppWidgetHost host = new AppWidgetHost(getContext(), HOST_ID);
AppWidgetManager manager = AppWidgetManager.getInstance(getContext());

int id = host.allocateAppWidgetId();
AppWidgetHostView view = host.createView(getContext(), id, info);

-

Lets say AppWidgetProviderInfo object info belongs to
com.android.alarmclock.AnalogAppWidgetProvider, which is the default
analog clock widget of android. This view has to launch clock setting
when a click performed on it as it performed on home screen, still i
have no response from it. Is there a way to solve this problem? Thanks
in advance...

Same question is avaible @StackOverflow...
http://stackoverflow.com/questions/7514009/appwidgetprovider-handle-touch-event-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] Re: Compilation error on my if else statement

2011-10-12 Thread dhwanipatel
Remove ; located in between each if condition completion bracket and
start of curly bracket.

e.g.

 if (item.equalsIgnoreCase(I. The Global Business
Environment)) {
//go to chapter 1
startActivity(new Intent(ChaptersActivity.this,
Chapter1Activity.class));
} else if (item.equalsIgnoreCase(II. Information
Systems)) {
//go to chapter 2
startActivity(new
Intent(ChaptersActivity.this,
Chapter2Activity.class));
} .




On Oct 5, 11:28 pm, Isaac Ng isaac.n...@gmail.com wrote:
 I have an error on 'else' code on if-else statment. What's wrong, pls
 advise. Thank you.
 //click on one of chapters
  list.setOnItemClickListener(new OnItemClickListener()
  {
             public void onItemClick(AdapterView? parent, View view,
 int position, long id)
             {

                 String item = ((TextView)view).getText().toString();

                 Toast.makeText(getBaseContext(), item,
 Toast.LENGTH_LONG).show();

                 //Choose Chapter 1
                 if (item.equalsIgnoreCase(I. The Global Business
 Environment)); {
                 //go to chapter 1
                 startActivity(new Intent(ChaptersActivity.this,
 Chapter1Activity.class));
                 } else if (item.equalsIgnoreCase(II. Information
 Systems)); {
                         //go to chapter 2
                         startActivity(new Intent(ChaptersActivity.this,
 Chapter2Activity.class));
                 }

               //Choose Chapter 3
                 else if (item.equalsIgnoreCase(III. Operations
 Management));
                 {
                         //go to chapter 3
                         startActivity(new Intent(ChaptersActivity.this,
 Chapter3Activity.class));
                 }

               //Choose Chapter 4
                 else if (item.equalsIgnoreCase(IV. Marketing));
                 {
                         //go to chapter 4
                         startActivity(new Intent(ChaptersActivity.this,
 Chapter4Activity.class));
                 }

               //Choose Chapter 5
                 else if (item.equalsIgnoreCase(V. Managing Human
 Capital));
                 {
                         //go to chapter 5
                         startActivity(new Intent(ChaptersActivity.this,
 Chapter5Activity.class));
                 }

               //Choose Chapter 6
                 else if (item.equalsIgnoreCase(VI. Preparing for the
 Examination));
                 {
                         //go to chapter 6
                         startActivity(new Intent(ChaptersActivity.this,
 Chapter6Activity.class));
                 }
             }
         });

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


[android-developers] XPERIA NEO V

2011-10-12 Thread akhil vvs
WHEN WILL WE BE ABLE TO UNLOCK BOOT-LOADER OF  XPERIA NEO V

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

2011-10-12 Thread r6900
Im having a problem with SAX XML parser.
It DOES parse everything, except quotation marks ().
For example, if the text is hellquot;3o in a node, the result is
hell.
Here are my codes:
**XML Handler:**

public class MyXMLHandler extends DefaultHandler {

Boolean currentElement = false;
String currentValue = null;
public static SitesList sitesList = null;

public static SitesList getSitesList() {
return sitesList;
}

public static void setSitesList(SitesList sitesList) {
MyXMLHandler.sitesList = sitesList;
}

/** Called when tag starts ( ex:- nameAndroidPeople/name
* -- name )*/
@Override
public void startElement(String uri, String localName, String
qName,
Attributes attributes) throws SAXException {

currentElement = true;

if (localName.equals(channel))
{
/** Start */
sitesList = new SitesList();
} else if (localName.equals(item)) {
String attr=attributes.getValue(item);
sitesList.setItem(attr);
} else if (localName.equals(title)) {
/** Get attribute value */
String attr = attributes.getValue(title);
sitesList.setTitle(attr);
}
else if (localName.equals(link)) {
/** Get attribute value */
String attr = attributes.getValue(link);
sitesList.setLink(attr);
}
else if (localName.equals(description)) {
/** Get attribute value */
String attr = attributes.getValue(description);
sitesList.setDescription(attr);
}
else if (localName.equalsIgnoreCase(pubDate)) {
/** Get attribute value */
String attr = attributes.getValue(pubDate);
sitesList.setPubDate(attr);
}

}

/** Called when tag closing ( ex:- nameAndroidPeople/name
* -- /name )*/
@Override
public void endElement(String uri, String localName, String qName)
throws SAXException {

currentElement = false;

/** set value */
if (localName.equalsIgnoreCase(item))
sitesList.setItem(currentValue);
else if (localName.equalsIgnoreCase(title))
sitesList.setTitle(currentValue);
else if (localName.equalsIgnoreCase(link))
sitesList.setLink(currentValue);
else if (localName.equalsIgnoreCase(description))
sitesList.setDescription(currentValue);
else if (localName.equalsIgnoreCase(pubDate))
sitesList.setPubDate(currentValue);

}

/** Called to get tag characters ( ex:- nameAndroidPeople/name
* -- to get AndroidPeople Character ) */
@Override
public void characters(char[] ch, int start, int length)
throws SAXException {

if (currentElement) {
currentValue = new String(ch, start, length);
currentElement = false;
}

}

}

**Getter and Setter:**

import java.util.ArrayList;

/** Contains getter and setter method for variables */
public class SitesList {

/** Variables */
private ArrayListString title = new ArrayListString();
private ArrayListString link = new ArrayListString();
private ArrayListString description = new ArrayListString();
private ArrayListString pubDate = new ArrayListString();
private ArrayListString item=new ArrayListString();



/** In Setter method default it will return arraylist
* change that to add */

public ArrayListString getTitle() {
return title;
}

public void setTitle(String title) {
this.title.add(title);
}

public ArrayListString getLink() {
return link;
}

public void setLink(String link) {
this.link.add(link);
}

public ArrayListString getDescription() {
return description;
}

public void setDescription(String description) {
this.description.add(description);
}
public ArrayListString getPubDate() {
return this.pubDate;
}
public void setPubDate(String PubDate) {
this.pubDate.add(PubDate);
}
public ArrayListString getItem() {
return this.item;
}
public void setItem(String item) {
this.item.add(item);
}



}

And **RSS Thread class:**

public class RssThread {

private String title,html,pubDate;
public RssThread(String title,String html,String pubDate)
{
this.title=title;
this.html=html;
this.pubDate=CovertToDate(pubDate);
}
private String CovertToDate(String pubDate) {
// TODO Auto-generated method stub
//Wed, 28 Sep 2011 11:40:51//
String newDate=;
if (pubDate.substring(0,pubDate.indexOf(,)).equals(Sun))
newDate+=יום ראשון;
else if (pubDate.subSequence(0, 
pubDate.indexOf(,)).equals(Mon))
newDate+=יום שני;
else if (pubDate.subSequence(0, 
pubDate.indexOf(,)).equals(Tue))
newDate+=יום שלישי;
else if (pubDate.subSequence(0, 
pubDate.indexOf(,)).equals(Wed))
newDate+=יום רביעי;
  

[android-developers] dev software

2011-10-12 Thread tommy
Why is it that I've now gone through 14 g1 devices and have had to
basically self-teach myself about changing proprietary software on a
open source device, as long as you don't touch the recovery image or
put a custom or cooked ROM on the device? You may in fact void your
carriers warranty, but as far as HTC is concerned? Ur manufactures
warranty is well in tact! I'm so sick of the grey area and b.s. people
talk about, but as a developer? HTC has no right to tell customers
that warranties are voided when a user flashes adp software. Instead
they have shutdown their adp1 website and denied the device exists!
It's a bootloader/sim/hardware/software unlocked device and i got a
test phone that was a g1 at one point, and adp1 software at another.
But when I pressed *#*#checkin#*#* it updated and I happened to be
without data coverage
  I then asked for a replacement an got a stock device, only to get a
carrier based ROM phone And since then registered as a developer
and still cannot purchase a true developer device!! Any comments?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Developer- For a well funded Start-up, the Mobile in Red Bank, NYC

2011-10-12 Thread volorawha
Android Developer- For a well funded Start-up, the Mobile Version of
Face Book
Must have 2 years solid coding experience.  No consulting, this
opportunity is full time, permanent,

stock options.

Hello,  , my name is Volora Howell, I am the president of Emerging
Technical Search.  I have a great full time  opportunity for an
Android developer, Architect, Project Manager for their locations in
either Red Bank or New York City.

We are also seeking I-Phone developers.

Must be USA Citizen, Green Card, EAD, TN1

send resume as a MS Word document to:vol...@gmail.com

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


[android-developers] A better way to set up my MK files when building sub-projects

2011-10-12 Thread LDS
My main project relies on 2 libs containing the same config.h file in
their own dir. My main issue with Android.mk is that I am unable to
specify 2 sets of local includes for each object file. Two ways I can
resolve this:
1. Building 2 static libs in each sub-dir, with each Android.mk in
their respective sub-dirs pointing to the right config header:
 Top Dir: Android.mk builds two static libs
 Sub-DIr A: Android.mk with local header pointing to this dirA
 Sub-DIr B: Android.mk with local header pointing to this dirB

2. Changing the name of each config file (configA.h and configB.h) and
building from one Android.mk by adding the two sub-dirs in the local
includes.

The first method adds complexity to maintaining 2 additional
Android.mk, the second one adds complexity in requiring to modify
source files and renaming headers.

Is there a better way to handle this situation, knowing that in the
future, I would also need to have different C_FLAGS specified for each
sub-project?

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


[android-developers] OnCallStateChanged Method Triggers more then three times when a call comes

2011-10-12 Thread Umesh Sharma
Hello,
Here is my code for Phone State Listener the phone call state changed
should be called first when state = RINGING and after that state =
OFFHOOK and after that when call is ended then state = IDLE but so
according to this function i should get three toast but  i am getting
different number of toast each time :::
Can anyone here knows how should i resolve this problem .

///CODE ::
public class MyPhoneStateListener extends PhoneStateListener{
Context context;
MyPhoneStateListener(Context context){
this.context = context;
}


Date dt;

long seconds1;
public void onCallStateChanged(int state,String incomingNumber){
  switch(state){
  case TelephonyManager.CALL_STATE_OFFHOOK:
dt = new Date();
seconds1 = dt.getSeconds();

Toast.makeText(this.context, OFF
HOOK+String.valueOf(seconds1), Toast.LENGTH_SHORT).show();
break;
case TelephonyManager.CALL_STATE_RINGING:
///
dt = new Date();
seconds1 = dt.getSeconds();
///
Toast.makeText(this.context, 
RING+String.valueOf(seconds1),
Toast.LENGTH_SHORT).show();
break;
case TelephonyManager.CALL_STATE_IDLE:
dt = new Date();
seconds1 = dt.getSeconds();
Toast.makeText(this.context, 
IDLE+String.valueOf(seconds1),
Toast.LENGTH_SHORT).show();
break;
  }
}
}

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


[android-developers] Wrong size of images in landscape mode (correct images)

2011-10-12 Thread beste
Hi,

I have a layout which is shown fine in the layout editor:

https://picasaweb.google.com/106995904369678213329/ScrapbookPhotos#5661576214259998514

However, this layout gets distorted on any device (emulator, real
device, big screen, small screen all doesn't matter):

https://picasaweb.google.com/106995904369678213329/ScrapbookPhotos#5661576159749284082

In portrait mode everything is just fine:

https://picasaweb.google.com/106995904369678213329/ScrapbookPhotos#5661576194760017266

I have tried numerous combinations of fill_parent, wrap_content on the
various layout containers but I wasn't able to fix this. Has anybody
an idea what could be the cause of this?

Best regards,

Robert

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


[android-developers] Setting ringtone from an activity without using sdcard.

2011-10-12 Thread br0k3n
hi, i'm looking for more info/working code example.

i want to set the default ringtone of the device from an android app.
i want my apk to contain the media file/ringtone file and that my
application set it from there.
for example, the ringtome media file is named BrokenRingtone.mp3 and
can be found in 'assests' folder in Package explorer (Eclipse Android
project).

a) is it possible?
from googling all that i could see only examples with /sdcard for
example:
http://stackoverflow.com/questions/1986756/setting-ringtone-in-android
i could also find some example without sdcard (using mediastore) but i
could not understand how to combine it in my code:
http://stackoverflow.com/questions/4328673/android-set-ringtone-for-existing-record-in-mediastore-audio-media

b) what imports i need to include for doing that?
i'm sure i need the following imports:
import android.media.RingtoneManager;
import android.media.AudioManager;
import android.media.Ringtone;

c) what android entities i need to work with? for example do i need to
declare a context?
if you can please be specific.

i want that after i install the app on the device, the user will have
a button change ringtone to my son voice and if she press on it she
will hear my voice recorded as mp3 every time the phone ring as it
become the new ringtone.
again, a working code example would help me to understand the missing
gaps and what i need to include in the project.

thank you!
Br0k3n.

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


[android-developers] How to set microphone mute while recording live shoutcast streaming

2011-10-12 Thread GiLL
Hi there in  media  recorder even we  use setMicrophoneMute and  give
permission  in manifest  but  it  still  keep  recording from  mic
and  media anyone  help  please  thanks

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


[android-developers] Maps, Market and Gmail fail to connect after a VPN session

2011-10-12 Thread charles
Hi, I found a serious problem about these Google apps. I configured a
vpn, connected for a while, then stopped the vpn, all worked fine. But
after vpn was stopped I found Maps, Market and Gmail failed to connect
without vpn, forever. The only way to make them work again was start
vpn again!

While other network apps like browser, facebook, lastfm... work fine.

Can anyone help to verify the problem, and ideally, post a solution? I
need those Google apps work fine without vpn, thx.

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


[android-developers] Magnetic Sensor Driver GeomagneticField

2011-10-12 Thread HumphreyLin
I am coding a driver for one magnetic sensor hardware.
To fix one hardware problem, is it possible for me to access
GeomagneticField class from my magnetic sensor driver?

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


[android-developers] Not able to translate device co-ordinate system to world co-ordinate system

2011-10-12 Thread pulkit
I have written a small code to convert the device co-ordinates into
world co-ordinates by multiplying the Rotation matrix(using
getRotationMatrix) and the vector (Ax,Ay,Az) which are the
accelerometer values. When I run this, and the phone is static, I get
a very fluctuating value for the Z axis(from 9.3 to 10.3) and the
other two are 0. However when I give the phone some acceleration in
any direction , it still doesn't show any change to those values and
they remain zero. This is the part of the code where I get the values.

 if(ctp.getType()==Sensor.TYPE_ACCELEROMETER){
Ca[0]=event.values[0];
Ca[1]=event.values[1];
Ca[2]=event.values[2];
SensorManager.getRotationMatrix(R, I, Ca , Cm);
for(i=0;i16;i++)
rotmat[i/4][i%4]=R[i];
fAx=0;
fAy=0;
fAz=0;
Ca[3]=0;
for(i=0;i4;i++){
fAx+=rotmat[0][i]*Ca[i];
fAy+=rotmat[1][i]*Ca[i];
fAz+=rotmat[2][i]*Ca[i];
}
buff1.append(fAx);
x.setText(buff1.toString());
buff2.append(fAy);
y.setText(buff2.toString());
buff3.append(fAz);
z.setText(buff3.toString());
}
else if(ctp.getType()==Sensor.TYPE_MAGNETIC_FIELD){
Cm[0]=event.values[0];
Cm[1]=event.values[1];
Cm[2]=event.values[2];
}

Also I would like to know if it would be better to get the rotation
matrix based on the orientation sensor on my own or use the inbuilt
getRotationMatrix?

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


[android-developers] Successfully ported and running node.js on Android.

2011-10-12 Thread LDS
After spending a couple of days dealing with Android NDK madness, some
esoteric and intricate Linux implementations on this device, I finally
got node js latest to run as a native app on Android.

I was planning to originally run a v8 client on Android so I started
with the v8 port. That one was easy. However, when I realized how much
benefits node brings to any JavaScript development, and not only
server side, it was obvious that the rest of the stack needed to be
ported.

I did some research, hoping someone had gone thru the hoops already.
But all I could find was a direct port done on Linux arm and running
with root privilege. I couldn't adopt this approach because my
ultimate goal is to deliver JavaScript apps running on standard phones
and available on Android market.

Now that I am done with the initial port, my next task is to clean up
the codebase, refine some of the plug-in native bindings, fix a bunch
of remaining specific issues (e.g. fs, console, ipv6, etc…) and post
the result of this work on github (ldesegur/nodejs-android.)

Let me know if you have any interest. I would certainly appreciate any
help on this project.

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


[android-developers] Integration of VMGL in Android Emulator

2011-10-12 Thread Inder
Hi All,

I have built VMGL code for host (ubuntu). Now I want to integrate VMGL
in our Android Emulator. Is it possible? Any hardware dependencies?

Please revert back asap.

Thanks in advance.

-Inder

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


[android-developers] ebook for android

2011-10-12 Thread shweta
Hello,

Plz tell me best book for android which has basic concept .the book
should be like head first in java.



Thanks
shweta

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


[android-developers] Wrong size of images in landscape mode

2011-10-12 Thread beste
Hi,

I have a layout which is shown fine in the layout editor:

https://lh4.googleusercontent.com/-l-Qj6sjDzZs/TpH1kg_EnzI/AMk/YfmbrsiwhSM/s128/device-2011-10-09-211300.png

However, this layout gets distorted on any device (emulator, real
device, big screen, small screen all doesn't matter):

https://lh4.googleusercontent.com/-4eECMYjNcC8/TpH1hV6tIPI/AMc/tI0QHWwjO2I/s128/device-2011-10-09-211120.png

In portrait mode everything is just fine:

https://lh5.googleusercontent.com/-IY-EycoGK3Y/TpH1jYV6hXI/AMg/Lc_kiRv29u4/s128/device-2011-10-09-211208.png

I have tried numerous combinations of fill_parent, wrap_content on the
various layout containers but I wasn't able to fix this. Has anybody
an idea what could be the cause of this?

Best regards,

Robert

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


[android-developers] Any way to clear all message notifications in actual messaging app, without reading them

2011-10-12 Thread Andrew CrushFitness
Any way to clear all message notifications at once in actual messaging
app, without reading them. I would like to remove the number signaling
in the stock messaging app so I don't have to click on each individual
text to dismiss the notifications.

If there is a better forum please redirect. I have searched for a hr
and have to get back to studying.

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


[android-developers] shared database between devices

2011-10-12 Thread -Castiel-
Hi, i was wondering if anyone can give me a clue or even tell me if
its possible or not. I've looked everywhere and i can't find anything
close enough... I'm making an android app in which i save some values
taken from the device. Now my question is, it's possible to access
this values from another device that has the same app installed ? Of
course without purchasing any webserver that does this task, with some
kind of database that requires a login to determine which information
in it is accessible to each device.
Thanks in advance.

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


[android-developers] Devices Reboot on normal usage for One day

2011-10-12 Thread tanuja g
Hi ,
my device Reboots on normal usage for one day ,
DDMS logs gives the WATCHDOG KILLING SYSTEM PROCESS: null

which occurs on Dedlock ,to know the thread for the cause for of
deadlock we took the Traces.txt file from the device and we are not
able to analysis this log ,
please help us in analysing this log here is the log below ,

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
main prio=5 tid=1 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x400245c8 self=0xcfc8
  | sysTid=4157 nice=0 sched=0/0 cgrp=default handle=-1345006464
  at com.android.server.SystemServer.init1(Native Method)
  at com.android.server.SystemServer.main(SystemServer.java:783)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:507)
  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  at dalvik.system.NativeStart.main(Native Method)

Error dump: system_app_strictmode prio=5 tid=41 TIMED_WAIT
  | group=main sCount=1 dsCount=0 obj=0x408fb648 self=0x423f40
  | sysTid=4663 nice=0 sched=0/0 cgrp=default handle=4341880
  at java.lang.VMThread.sleep(Native Method)
  at java.lang.Thread.sleep(Thread.java:1213)
  at java.lang.Thread.sleep(Thread.java:1195)
  at com.android.server.am.ActivityManagerService
$10.run(ActivityManagerService.java:6706)

android.hardware.SensorManager$SensorThread prio=5 tid=56 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x409085e8 self=0x4d05e8
  | sysTid=4417 nice=-8 sched=0/0 cgrp=default handle=5048096
  at android.hardware.SensorManager.sensors_data_poll(Native
Method)
  at android.hardware.SensorManager$SensorThread
$SensorThreadRunnable.run(SensorManager.java:505)
  at java.lang.Thread.run(Thread.java:1019)

pool-1-thread-1 prio=5 tid=53 WAIT
  | group=main sCount=1 dsCount=0 obj=0x408dbd88 self=0x346c00
  | sysTid=4412 nice=0 sched=0/0 cgrp=default handle=3440520
  at java.lang.Object.wait(Native Method)
  - waiting on 0x408dbf10 (a java.lang.VMThread)
  at java.lang.Thread.parkFor(Thread.java:1424)
  at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
  at sun.misc.Unsafe.park(Unsafe.java:337)
  at java.util.concurrent.locks.LockSupport.park(LockSupport.java:
157)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer
$ConditionObject.await(AbstractQueuedSynchronizer.java:2016)
  at
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:
411)
  at
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:
1021)
  at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1081)
  at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:581)
  at java.lang.Thread.run(Thread.java:1019)

GpsLocationProvider prio=5 tid=52 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x40815fb8 self=0x344b20
  | sysTid=4355 nice=10 sched=0/0 cgrp=bg_non_interactive
handle=3156432
  at android.os.MessageQueue.nativePollOnce(Native Method)
  at android.os.MessageQueue.next(MessageQueue.java:119)
  at android.os.Looper.loop(Looper.java:117)
  at com.android.server.location.GpsLocationProvider
$GpsLocationProviderThread.run(GpsLocationProvider.java:1654)

 
refqueuewor...@org.apache.http.impl.conn.tsccm.ConnPoolByRoute@40870d40
daemon prio=5 tid=51 WAIT
  | group=main sCount=1 dsCount=0 obj=0x40874fa8 self=0x3b9080
  | sysTid=4328 nice=0 sched=0/0 cgrp=default handle=2893856
  at java.lang.Object.wait(Native Method)
  - waiting on 0x405c9428 (a java.lang.ref.ReferenceQueue)
  at java.lang.Object.wait(Object.java:395)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:107)
  at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:80)
  at
org.apache.http.impl.conn.tsccm.RefQueueWorker.run(RefQueueWorker.java:
102)
  at java.lang.Thread.run(Thread.java:1019)

Binder Thread #9 prio=5 tid=50 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x407e7d80 self=0x380508
  | sysTid=4306 nice=0 sched=0/0 cgrp=default handle=2950384
  at dalvik.system.NativeStart.run(Native Method)

Binder Thread #8 prio=5 tid=49 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x4080b890 self=0x2db468
  | sysTid=4305 nice=0 sched=0/0 cgrp=default handle=4030072
  at dalvik.system.NativeStart.run(Native Method)

Binder Thread #7 prio=5 tid=48 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x40716038 self=0x2d8fc8
  | sysTid=4298 nice=0 sched=0/0 cgrp=default handle=3022536
  at dalvik.system.NativeStart.run(Native Method)

Binder Thread #6 prio=5 tid=47 NATIVE
  | group=main sCount=1 dsCount=0 obj=0x40717ed0 self=0x3f3730
  | sysTid=4295 nice=0 sched=0/0 cgrp=default handle=701512
  at dalvik.system.NativeStart.run(Native Method)

[android-developers] Maven: dx: can't find dx.jar

2011-10-12 Thread Philipp Jenke
Hi group,

I have a problem building my app via Maven. I set up an android
project via Eclipse. It builds correctly and I can deploy it (both on
the emulator and on my device). Additionally, I set up a Maven build
script pom.xml (see below). The first part of the build seems to run
successfully, however, when calling dx it seems to fail. The
ANDROID_HOME variable is set correctly. However, there seem to be some
recent changes in the Android SDK (the tools moved from $ANDROID_HOME/
platforms/android-* to $ANDROID_HOME/platform-tools). The dx is
located under $ANDROID_HOME/platform-tools, the dx.jar under
$ANDROID_HOME/platform-tools/lib/.

Any help appreciated.

Thanks,
Philipp

--- MAVEN BUILD ERROR MESSAGE -

pjenke$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building AndroidTest3D 0.0.1-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
AndroidTest3D ---
[INFO] Deleting /Users/pjenke/pjenke/programming/android/android-game-
tutorial-project/target
[INFO]
[INFO] --- maven-android-plugin:2.6.0:generate-sources (default-
generate-sources) @ AndroidTest3D ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] Copying local resource files to combined resource directory.
[INFO] /Users/pjenke/android-sdk-mac_x86/platforms/android-8/tools/
aapt [package, -m, -J, /Users/pjenke/pjenke/programming/android/
android-game-tutorial-project/target/generated-sources/r, -M, /Users/
pjenke/pjenke/programming/android/android-game-tutorial-project/
AndroidManifest.xml, -S, /Users/pjenke/pjenke/programming/android/
android-game-tutorial-project/target/generated-sources/combined-
resources/res, -A, /Users/pjenke/pjenke/programming/android/android-
game-tutorial-project/assets, -I, /Users/pjenke/android-sdk-mac_x86/
platforms/android-8/android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
AndroidTest3D ---
[debug] execute contextualize
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/pjenke/pjenke/
programming/android/android-game-tutorial-project/src/main/resources
[INFO] skip non existing resourceDirectory /Users/pjenke/pjenke/
programming/android/android-game-tutorial-project/target/generated-
sources/extracted-dependencies/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
AndroidTest3D ---
[WARNING] File encoding has not been set, using platform encoding
MacRoman, i.e. build is platform dependent!
[INFO] Compiling 13 source files to /Users/pjenke/pjenke/programming/
android/android-game-tutorial-project/target/classes
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ AndroidTest3D
---
[INFO] Building jar: /Users/pjenke/pjenke/programming/android/android-
game-tutorial-project/target/AndroidTest3D-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-android-plugin:2.6.0:unpack (default-unpack) @
AndroidTest3D ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-
testResources) @ AndroidTest3D ---
[debug] execute contextualize
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/pjenke/pjenke/
programming/android/android-game-tutorial-project/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-
testCompile) @ AndroidTest3D ---
[WARNING] File encoding has not been set, using platform encoding
MacRoman, i.e. build is platform dependent!
[INFO] Compiling 3 source files to /Users/pjenke/pjenke/programming/
android/android-game-tutorial-project/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @
AndroidTest3D ---
[INFO] Surefire report directory: /Users/pjenke/pjenke/programming/
android/android-game-tutorial-project/target/surefire-reports

---
 T E S T S
---
Running com.androidtest3d.test.math.MathHelpersTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032
sec
Running com.androidtest3d.test.math.MyMatrixTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001
sec
Running com.androidtest3d.test.math.MyVectorTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001
sec

Results :

Tests run: 12, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-android-plugin:2.6.0:dex (default-dex) @
AndroidTest3D ---
[INFO] /Users/pjenke/android-sdk-mac_x86/platforms/android-8/tools/dx
[--dex, --output=/Users/pjenke/pjenke/programming/android/android-game-

[android-developers] Broadcast receiver on REBOOT

2011-10-12 Thread ranjit R
I need to trigger a broadcast receiver  when it starts to reboot/
reboots not when boot_completed .
i not able to trigger the broadcast receiver.
below is my code
public class broadcastreceiver extends BroadcastReceiver{
 @Override
 public void onReceive(Context context, Intent intent) {
 Log.i(LOG_TAG,rebooted);
}
manifest file
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.broadcast
android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
receiver
android:name=com.example.broadcastreceiver.broadcastreceiver
android:enabled=true
android:exported=true
android:permission=android.permission.REBOOT
intent-filter
action android:name=android.intent.action.REBOOT /
/intent-filter
/receiver
/application

i need to write in to file some data  when phone starts rebooting.

thanks to all in advance

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


[android-developers] SurfaceView Overlay Not Working?!?!

2011-10-12 Thread Bobby
Details here:
 
http://stackoverflow.com/questions/7714820/how-to-make-a-custom-overlay-view-transparent-on-top-of-a-surfaceview

I just get a black box on top of the surfaceview camera preview..
I've tried everything, any ideas?

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


[android-developers] Make Custom Overlay View Transparent on top of a SurfaceView?

2011-10-12 Thread Bobby
OK I've gone through a few similar questions on SO and around the web,
to no avail. I'm just trying to overlay a transparent view on top of a
SurfaceView.. and eventually draw a rectangle on it, such that it
appears to overlay the camera preview.

I cannot get the custom view to be transparent, it blocks-out the
underlying camera preview (showing a black rectangle). Any
suggestions?

XML Layout code:

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent

FrameLayout
android:layout_alignParentTop=true
android:layout_width=fill_parent
android:layout_height=400dip
SurfaceView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/drawSurface  /
com.bobby.facecapture.FaceOverlayView
android:id=@+id/drawOverlay
android:background=@android:color/transparent
android:layout_width=200dip
android:layout_height=200dip
/
/FrameLayout
/RelativeLayout

The FaceOverlayView is just deriving from View.  I'm overriding onDraw
to draw some custom shapes, but tested without the overridden method
too, same effect).
Thanks for any help

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


[android-developers] Where to start building a launcher application?

2011-10-12 Thread njackson
I've been looking for the source on android.git.kernel.org/?p=platform/
packages/apps/Launcher.git;a=summary, but I've had 2 problems: the
page won't load; and I've read that it's not designed to be simply
built into a standalone APK.

Does anybody know where else I could get hold of some standalone
downloadable source code for a launcher?

Many 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


[android-developers] Android camera flashlight

2011-10-12 Thread Howely
Hello everyone,

Here's my problem:

I use WinDev Mobile (http://www.windev.com/windevmobile/index.html) to
create an android application.

Windev provides a field camera that makes it possible to display the
camera and can take a picture.

My problem is that the function I use to take a photo does not support
flash.

I want to change the settings of the camera already active  to put the
FLASH_MODE_TORCH (not ON, more interesting for our utlisation)

As you can probably understand, the camera is activated by windev, I
have no direct access to Java code.

Do you know if we can get an active camera to change settings?

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] Device discovery on Extended BSS

2011-10-12 Thread Dipesh
I'm making an android app for chat and file sharing over wifi. I'm
able to generate a multicast address(and receive the packet) for the
same access point but my device(Desire HD) does not receive UDP packet
broadcasted at 255.255.255.255. So how do I discover devices connected
to a different access point on the same LAN. I did some research and
read about jmdns. Is this the only way around? Or is there some other
alternative for device discovery?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 a ViewFlipper contain many ListViews which are added programatically?

2011-10-12 Thread aimee daniells
Hi, i wonder if someone here can help me.

I have an application which flips left and right through a ViewFlipper. In 
each page i have a ScrollView containing many LinearLayouts which are 
inflated at runtime to populate data. I feel these should each be in a 
ListView within the flipper, but i don't know how to add more than one 
ListView at runtime. I only know how to make one ListView by making the 
activity inherit from ListActivity and setting a ListAdapter.

Can you populate more than one ListView? What's the best way to go about it? 
Are there any example apps which i could look at for inspiration?

Many thanks,
aimee

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

[android-developers] XDR

2011-10-12 Thread Neil Menne
I'm trying to get XDR built for android, and I was looking at sysroot/
usr/include/linux/sunrpc/xdr.h and that's empty. For the most part,
everything in this directory seems largely unimplemented. Does anybody
have this stuff working?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 bluetooth framework in Android SDK slows down the system extremely while uninstalling the app

2011-10-12 Thread can
Hi,
I asked the same question at stackoverflow and here is the link just
in case: http://stackoverflow.com/questions/7714816/

**UPDATE:**
I figured that out if I close the bluetooth before uninstalling the
app the problem no longer remains so there is indeed a resource not
released when the application quits.

I have built a simple app that receives data from my pc using
bluetooth and displays it on a TextView. The app is working fine as I
am able to see the received data on the TextView. The problem is while
the app is being uninstalled, the system slows down extremely and it
remains same after the uninstall is finished. The same is happening
while I am uploading a new version of the project using Eclipse. I
exported and signed the app to run it in release mode and the same
thing keeps happening while uninstalling the app. I have to restart
the device eventually. I only came across this situation while
uninstalling or upating the app as I said. I quit and relunch the app
several times and it is working just fine and no slow down on the
system. May be an allocated system resource is not being released but
I couldn' t be able to find it.
The device is a Samsung Galaxy GIO(S5660) ,has 2.2 version of Android
on it and the app is compiled using minSdkVersion=8. My project
contains three classes which are below:

**BluetoothTestAppActivity.java**

package com.test.bluetoothtestapp;

import java.util.UUID;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.TextView;

public class BluetoothTestAppActivity extends Activity {
/** Called when the activity is first created. */
private BluetoothServerThread mBtServerThread;
private Handler mHandler;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mHandler = new Handler(){
public void handleMessage(Message msg){
Bundle bundle = msg.getData();
String data = bundle.getString(data);
TextView tv = (TextView)findViewById(R.id.hello);
tv.setText(data);
}
};

// see http://code.google.com/p/android/issues/detail?id=16587
for why we are calling this method on UI thread
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
adapter.cancelDiscovery();

mBtServerThread = new BluetoothServerThread(adapter,
mHandler,getString(R.string.bt_service_name),
UUID.fromString(getString(R.string.bt_service_uuid)));
mBtServerThread.start();
}

@Override
public void onDestroy(){
super.onDestroy();
try{
if(mBtServerThread != null){
mBtServerThread.cancel();
}
}
catch(Exception ex){
Log.e(BluetoothTestAppActivity Exception,
ex.getMessage());
}
}
}

**BluetoothServerThread.java**

package com.test.bluetoothtestapp;

import java.io.IOException;
import java.util.UUID;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothServerSocket;
import android.bluetooth.BluetoothSocket;
import android.os.Handler;
import android.util.Log;

public class BluetoothServerThread extends Thread{

private BluetoothServerSocket mServerSocket;
private String mServiceName;
private UUID mUUID;
private BluetoothAdapter mAdapter;
private BluetoothDataTransferThread mTransferThread;
private Handler mHandler;

public BluetoothServerThread(BluetoothAdapter adapter,Handler
handler ,String serviceName, UUID uuid){
mHandler = handler;
mAdapter = adapter;
mServerSocket = null;
mServiceName = serviceName;
mUUID = uuid;
}

public void run(){

BluetoothSocket socket = null;
try{
mServerSocket =
mAdapter.listenUsingRfcommWithServiceRecord(mServiceName,mUUID);
socket = mServerSocket.accept();
if(socket != null){
mTransferThread = new
BluetoothDataTransferThread(socket, mHandler);
mTransferThread.start();
mServerSocket.close();

}
}
catch(IOException ex){
Log.e(BluetoothServerThread
run,ex.getMessage());

}
}

public void cancel(){
try{
if(mTransferThread != null){
   

[android-developers] Want to update SimpleCursor Adapter on the runtime with changed value of cursor

2011-10-12 Thread Namit Virmani
Hi,

I'm using SimpleCursorAdapter for my listview. As shown in example
below:

Cursor notesCursor = myDbHelper.fetchDayPanelNotes(type, day);
startManagingCursor(notesCursor);
String[] from = new String[]{DataBaseHelper.KEY_NAME,
DataBaseHelper.KEY_ROOM, DataBaseHelper.KEY_TIME};

int[] to = new int[]{R.id.text1, R.id.text2, R.id.text3};

SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.main_row,
notesCursor, from, to);
setListAdapter(notes);


Now if on the runtime, i have to again query my DB, my cursor will get
updated. I want to know, how to update my ListView with the new cursor
values?

or setListAdapter(notes); will take care of showing new values of my
cursor?

or there is some other solution to this 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] re: JNI - FindClass() returns null

2011-10-12 Thread Bob
Sorry to revisit such an old post, but the answer by fadden is
precisely what I needed to know, and one that took some effort to dig
up.  The issue about non-system classes not being loaded will come up
if you are implementing callbacks from C into the JVM; there seem to
be plenty of other developers running in to this problem.

The reply by Andrew Stadler, JNI development is not currently
supported on the SDK, although true, might be a little misleading.
The point is that discussions about JNI belong in the NDK forum.

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

2011-10-12 Thread Howely
Hello,

the guy who have a problem is me :)

The script in the post is an exemple:

The camera is initialized by an other program and i don't have access to the 
code.

So i want to change the parameters without release the camera and without 
access to the initialisation of the camera :/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] [SOLVED] Real Multi touch in Android - Going Open Source!!!

2011-10-12 Thread 金光是党员
cool

2011/10/11 metin ögtem android.develope...@gmail.com

 Good..That applicatios uses in presentation

 2011/10/10, swapnil kamble swap.kam...@gmail.com:
  Cool app. I just tried it, works awesome.
  Nice work
 
  Swapnil
 
  On Mon, Oct 10, 2011 at 2:08 PM, Asim asim.mit...@gmail.com wrote:
 
  Hey Everyone,
 
  I've been working on a project to improve android's multi touch
  capability. The droid has really poor binding between touch events and
  views. I've worked around its drawbacks to create something that works
  like microsoft surface.
 
  Here's a video of what I've made. Check it out:
  http://www.youtube.com/watch?v=m5w8EDM3Sgc
 
  I've also decided to go open source with this project so that everyone
  can benefit from my work. If you're interested in taking this project
  forward, visit my blog @
 
 
 http://blog.asimmittal.net/blog1.php/tech/android/real-multitouch-on-android-andash-going-open-source
 
  Thanks
  Asim Mittal
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
 
 
  --
  Swapnil
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Update application data

2011-10-12 Thread Juliano Nunes
Hi,
 
My application will use a local database with almost 2MB of data 
(non-compressed) that will be updated every month, so I'd like to know which 
is the best approach for an update mechanism. 
 
The first option is a REST service that sends only the differences to be 
applied to the devices database (rows to be included or removed), and the 
second option is to provide the entire SQLite database as a ZIP file that 
will be downloaded from the app and will replace the current database.
 
Which do you think is the best option? And even if you think the second 
option is better, do you know any tutorial on working with RESTful services 
(using Service API or Content Providers) just like Google suggested on 
Google I/O 2010?
 
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] Access GeomagneticField from Magnetic Sensor Driver

2011-10-12 Thread HumphreyLin
Hello,

I am coding a driver for one magnetic sensor hardware.
To achieve better performance, is it possible to access
GeomagneticField class from my magnetic sensor driver?

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


[android-developers] Modify init.rc (ramdisk) to run script myscript.sh

2011-10-12 Thread Naga
Dear Android Scholars,
 I am wanting run a script on boot up. There by I need to modify
init.rc which executes on bootup. I am using emulator on eclipse
(windows 7)

a)  To modify init.rc, i need to update the ramdisk,img
b)  I tired the following link
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images#Unpacking.2C_Editing.2C_and_Re-Packing_the_images


Issues:

a) Where can I find mkbootimg.
I tried this link : 
http://code.google.com/p/zen-droid/downloads/detail?name=mkbootimg
but seems mkbootimg seems not recognized on cygwin or cmd
b) What changes do I need to make in the init.rc file to run
myscript.sh ?

Look forward for your solutions and suggestions.

Thank you

With Regards,
Nagaraju

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


[android-developers] Context menu does not work in ListView with SimpleCursorAdapter

2011-10-12 Thread MirecXP
Hello

I'm new to android development and I work on the application for
tablet running Android 3.1.
The main activity is divided into more functional parts and one of
them shows the list of some items, the long click on the item should
open the context menu.
I have a problem, because I can't make it work.

The main activity extends the MapActivity because it contains also the
map...
The ListView uses the SimpleCursorAdapter.

The list view is registered for context menu in the onCreate method of
the main activity:

  alarmList = (ListView) findViewById (R.id.alarmList);
  registerForContextMenu(alarmList);

And the main activity overrides onCreateContextMenu and also
onContextItemSelected methods, but this are never called when the item
is clicked.

I wondered that while using the ArrayAdapter and simple string display
of the item, the context menu of the list works well and the list
provides a nice selection of items when clicked (with some nice fade-
out effect). But when I change the adapter to SimpleCursorAdapter, the
list view does not react on clicking at all. To simulate the clicks
I have added clickable attribute to ListView:
ListView android:id=@+id/alarmList
android:layout_width=fill_parent android:layout_height=fill_parent
android:clickable=true/

And the single list item is formatted using its own layout, which
starts like this:
[alarm_list_item.xml:]

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android android:id=@+id/linearLayout
android:layout_width=match_parent android:background=@color/
alarm_list_bg
android:clickable=true android:baselineAligned=true
android:layout_height=wrap_content android:minHeight=65dp
...

[alarm_list_bg:]
?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_selected=false android:state_pressed=false
android:drawable=@color/black_12/
item android:state_pressed=true  android:drawable=@color/grey_12 /

item android:state_selected=true android:state_pressed=false
android:drawable=@color/blue_12 /
/selector

I have tried to register some listeners directly on the ListView
instance (OnItemLongClickListener, OnCreateContextMenuListener,
OnItemClickListener), but none of them is called.

Could you please have an idea what could be wrong?

Kind regards
Mirec

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


[android-developers] Slide button

2011-10-12 Thread Felipe Theodoro
Anyone know if that object that the android has to unlock the screen that
you slide the button to the other end of the screen to unlock or even used
to answer a call. Does anyone know ifit has anything ready?

-- 
*Felipe Theodoro Gonçalves - *about.me http://about.me/ftgoncalves
*ftgoncal...@gmail.com*
*itWeb/blog http://itweb.com.br/colaborador/felipe-theodoro-goncalves/
Market CoffeeCrusherhttps://market.android.com/developer?pub=CoffeeCrusher
*
--

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 use menu if my activity is full screen without titlebar for tablet?

2011-10-12 Thread Changzhi Wang
how can I use menu if my activity is full screen without titlebar for tablet?
since android 3.1 doesnt have hard key.

Many thanks! very appreciate for your answer!

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


[android-developers] Making a Custom View Transparent?? Overlay on top of SurfaceView

2011-10-12 Thread Bobby
OK I've gone through every resource I can find around the web, to no
avail. I'm just trying to overlay a transparent view on top of a
SurfaceView.. and eventually draw a rectangle on it, such that it
appears to overlay the camera preview.

I cannot get the custom view to be transparent, it blocks-out the
underlying camera preview.
I've tried every conceivable combination of layouts, backgrounds,
etc... Always just get black.

Any suggestions?

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent

FrameLayout
android:layout_alignParentTop=true
android:layout_width=fill_parent
android:layout_height=400dip
SurfaceView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/drawSurface  /
com.bobby.facecapture.FaceOverlayView
android:id=@+id/drawOverlay
android:background=@android:color/transparent
android:layout_width=200dip
android:layout_height=200dip
/
/FrameLayout
/RelativeLayout

The 200x200 is just temporary, to prove that it is indeed overlaying
the other view.

The FaceOverlayView is just a custom view - deriving directly from
View, without overriding anything (for now).

I get a black rectangle on top of the camera preview

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

2011-10-12 Thread Muthu S
Hi All

If any body knows the solution for my issues.kindly help me .I
like to play the remote url videos .i use the two kind of way but is
not working properly.

 vid = http://www.tamilclips.net/components/
com_contushdvideoshare/videos/24_hd.mp4;
1.  VideoView videoView = new VideoView(this);
 setContentView(videoView);
 MediaController mc = new MediaController(this);
 mc.setAnchorView(videoView);
 mc.setMediaPlayer(videoView);
 videoView.setMediaController(mc);
 videoView.setKeepScreenOn(true);
 videoView.setVideoPath(vid);
 videoView.start();


2.  Uri uri = Uri.parse(vid);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setDataAndType(uri, video/mp4);
startActivity(intent);



   The first one is not working properly but the second
one is working, The android player having the streaming player option.
Please help me if anybody  know  the solution for this

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


[android-developers] How Play the remote url videos

2011-10-12 Thread Muthu S
Hi

   Anybody Know the solution for my issue please help me.

Issue:

 How play the remote url videos in android app .Am try two kind of way
but is not working correctly please find my two kind of codes.

   vid=http://www.tamilclips.net/components/
com_contushdvideoshare/videos/24_hd.mp4

 1.VideoView videoView = new VideoView(this);
 setContentView(videoView);
 MediaController mc = new MediaController(this);
 mc.setAnchorView(videoView);
 mc.setMediaPlayer(videoView);

 videoView.setMediaController(mc);
 videoView.setKeepScreenOn(true);

 videoView.setVideoPath(vid);
 videoView.start();

  2.   Uri uri = Uri.parse(vid);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setDataAndType(uri, video/mp4);
startActivity(intent);

 The first one not working but the second one is working but the
android phone having streaming player option otherwise its show the
video can't played error.

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


[android-developers] How to run application when listview application name clicked with appropiate application

2011-10-12 Thread hktsang
Dear sir,

I'm trying to write an apps just like a file manager. my code is as
follow:

private void openFile(File f)
{
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_VIEW);
String mExt = MimeTypeMap.getFileExtensionFromUrl(f.getName());
String mMimetype =
MimeTypeMap.getSingleton().getMimeTypeFromExtension(mExt);
String type = mMimetype;
type += /*;
intent.setDataAndType(Uri.fromFile(f), type);
startActivity(intent);
}

After I run the programme, some of the file like (mp4, jpg) can open
the dialog to select the application. but other then that, it found
error and force close the app. How can I do if I want to run e.g.
application/msword, applciation/pdf... etc.?

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

2011-10-12 Thread yeasincs
Hi,

I am trying to write a RESTful client for Android platform using
Jersey API. I am using ADT for Eclipse. Below is the source code

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class AndroidJerceyClientActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView textView = (TextView) 
findViewById(R.id.outputTextView);

try {
RESTfulClientImplementation restClient = new
RESTfulClientImplementation();
String response = restClient.doGet();
textView.setText(response);

} catch (Exception e) {
textView.setText(e.getMessage());
}

}
}

public class RESTfulClientImplementation {

private ClientConfig configLight;
private Client client;

public RESTfulClientImplementation() {

configLight = new DefaultClientConfig();
client = Client.create(configLight);


}

public String doGet() {
try {
WebResource service = client.resource(new URI(
http://smartbridge.homeip.net;));
String response = 
service.path(api).path(00178800ffd9)
.path(messagequeue).path(2)

.accept(MediaType.APPLICATION_JSON).get(String.class);

System.out.println(Complete Response Jercey API:  + 
response);
return response;
} catch (Exception e) {
}
return null;
}
}

If I try to deploy this application I am getting an exception. Below
is the trace from LogCat


10-11 09:56:21.854: WARN/dalvikvm(474): threadid=1: thread exiting
with uncaught exception (group=0x4001d800)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): FATAL EXCEPTION: main
10-11 09:56:22.123: ERROR/AndroidRuntime(474):
java.lang.ExceptionInInitializerError
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.core.spi.factory.MessageBodyFactory._getMessageBodyReader(MessageBodyFactory.java:
311)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.core.spi.factory.MessageBodyFactory.getMessageBodyReader(MessageBodyFactory.java:
298)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
536)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
506)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:674)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:
503)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
org.philips.jerceyclient.RESTfulClientImplementation.doGet(RESTfulClientImplementation.java:
42)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
org.philips.jerceyclient.AndroidJerceyClientActivity.onCreate(AndroidJerceyClientActivity.java:
17)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.os.Looper.loop(Looper.java:123)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
android.app.ActivityThread.main(ActivityThread.java:4627)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
java.lang.reflect.Method.invokeNative(Native Method)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
java.lang.reflect.Method.invoke(Method.java:521)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-11 09:56:22.123: ERROR/AndroidRuntime(474): at

[android-developers] about booting from an browser by a scheme name

2011-10-12 Thread kono

Hello, i'm Kono.
Sorry for my english 


After an application is booted from an browser by a scheme name,
the application quits (the process is killed) when the HOME button is
pushed.

I recognize that the application should make a transition to
background
and the process should not be killed.

I don't know why.
I hope someone tells me why.


the processiong flow is below.
1. the application is booted from an browser.
2. the application is quited by 'finish();'.
3. the application is booted by calling the scheme name from opened
URL.
4. after the application is booted, the application quits when the
HOME button is pushed.


if I set android:launchMode=singleTop in the AndroidManifest file,
this phenomenon doesn't occurs.
But it's not the way to code I hope.


I set the Intent like below which is created when the browser is
booted.

intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY
 | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
 | Intent.FLAG_ACTIVITY_NO_ANIMATION
 | Intent.FLAG_ACTIVITY_NEW_TASK);


I hope someone tells me why these phenomenon is occured.


In addition, when the HOME button is pushed, onPause is NOT called and
called only onStop.
Is it the normal behavior under some condition?

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


[android-developers] Re: Can't upload an apk to Android Market

2011-10-12 Thread Asher Lwin
Ya I'm also the same problem.Please google fix it.

On Oct 11, 6:15 pm, burnayev burna...@gmail.com wrote:
 I've been trying to upload a new apk for my application to the market
 for the past hour or so with no success. Once I hit the Upload button
 the progress bar stays at 0 B for a long time and then I get An
 unexpected error occurred. Please try again later.

 Is there a maintenance or something going on? When is later?

 Kind regards,
 Borys Burnayev
 actioncomplete.com
 GTD for Android and Web

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


[android-developers] Add a link on a TextView

2011-10-12 Thread aru
Hi Guys,

My name's Aru.

I got a little trouble to add a link on a TextView.
I thought it would be easy to add it using
mTextView.regulationTxt.setText(Html.fromHtml(stringContainsLink));
do you guys know the other ways ?

Regards,

Aru

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


[android-developers] الانظمام الي هذا المجموعة

2011-10-12 Thread محمد علي الضلعي
ارجو من سادتكم الانظمام الي هذا المجموعة ومعرفة ماهو جديد في جميع
مجالات الكمبيوتر
شكر لتعاونكم

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


[android-developers] HI i want to retrive the values from excel file

2011-10-12 Thread basha
Hi i am the new developer for phone-gap android.. i want some code, to
retrieve the value from the excel sheet and stored it in an array.


PLZ help me for that

Regards
Basha

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

2011-10-12 Thread KevinC
Hi -

Is it possible to switch between multiple advertising networks for
placing in-app ads? For example, if I want to show an InMobi ad, and
then later switch over to AdMob, and then perhaps put in my own
affiliate link, is there an easy way to do this?

I know this is easy to do on a web page, and even on a mobile web page
with Javascript or an iframe, but with apps, I don't really know how
you would do this.

Are there any standards in API or SDK based ad services, or is each
network proprietary, requiring me to write a big complicated ad
rotation algorithm?

Thanks for any help,
Kevin

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

2011-10-12 Thread Andy Harrah
Is there a way to determine if any applications are using a given
AudioSource? Best would be to get the list of applications currently
using an AudioSource.

This could be used by a VoIP application to know if another
application is recording the call.

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


[android-developers] Is it possible to create a app that's connected to a desktop client.

2011-10-12 Thread Jin
Hi I've been doing a bit of research and am wondering if its possible
to connect a android made application to a program on a PC.

For example User 1 on the Desktop PC, User 2 on the mobile device.

User 1 asks for user locations,User 2 gets notification to requesting
location they accept and it sends details to user 1.

User 1 program gets updated and a icon appears on a map where the user
2 is. User 1 places a icon on the map

User 2's own map gets update with icon where user 1 placed it.

Regards

Jin.

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


[android-developers] Question : Markers(QR code) based augmented reality

2011-10-12 Thread smile.heegon
Hello, I'm New developer.

I'm trying to create some program but I do not have sense yet. I would
like to recieve tips and a guideline.


I generate a QR code with a kind of query message onto, and send the
query when recognize that.

My device show some graphs or text box on the camera screen as a
background in the response.


I think I can code the using QR generator and reader using zxing.

I will study overlay view to display new view on live camera screen.


My initiative is to have the above. Is there anything more that I
should consider?

Please give me advice about QR code technology or maker-based
augmented reality.

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


[android-developers] Re: Can't upload an apk to Android Market

2011-10-12 Thread Gianluca
I'm unable too, it seems not a browser problem, neither IE or chrome
or Firefox are working.


On Oct 11, 1:15 pm, burnayev burna...@gmail.com wrote:
 I've been trying to upload a new apk for my application to the market
 for the past hour or so with no success. Once I hit the Upload button
 the progress bar stays at 0 B for a long time and then I get An
 unexpected error occurred. Please try again later.

 Is there a maintenance or something going on? When is later?

 Kind regards,
 Borys Burnayev
 actioncomplete.com
 GTD for Android and Web

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-12 Thread Tushar Bera
Dear Android Team,
   Please dont send me mail like this.

Regards,

Tushar

On Tue, Oct 11, 2011 at 4:22 PM, saex elpablos...@gmail.com wrote:

 I am following the OpenGL es rotation examples from google to rotate a
 simple Square (not a cube) on my Android App, for example this code:

 gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f);   //X
 gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);   //Y
 gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f);   //Z

 It works fine if you only rotate to one axis.

 But if you rotate to one axis, and after that, you rotate to other
 axis, the rotation is not fair. I mean that the rotation is done from
 the plane (real world) coordinates and not from the square own
 coordinates. I am not sure if i am explaining me fine.

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

2011-10-12 Thread Milad khajavi
see this post:
http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-app

On Tuesday, October 11, 2011, arun kumar hariarun2...@gmail.com wrote:
 SMTP means simple mail transfer protocol. first search in google about
 smtp in android and then you got some idea...
 On 10/10/11, rahul verma rahulsgonnar...@gmail.com wrote:
 What is SMTP?

 On 10 Oct 2011 06:16, rahul verma rahulsgonnar...@gmail.com wrote:

 Yeah i too need to know that. .whenever we try to send a mail a gmail app
 screen comes ,what is the way to omit that i mean send the mail
 automatically


 On 8 Oct 2011 22:43, Palike palo...@centrum.sk wrote:

 Hi, at first sorry for my English

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

-- 
Milad Khajavi
http://lincafe.wordpress.com
Having the source means you can do it yourself.
I tried to change the world, but I couldn’t find the source code.

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

[android-developers] onItemLongClockListener - ArrayList throws IndexOutOfBoundsException

2011-10-12 Thread Graham Bright
Hi,

When I try to remove the list element in my ArrayLilst I get
IndexOutofBoundsException. Specifically in OnItemLongClickListener.

Can anyone help ?

Thanks,

Graham

package listmodified.org;

import java.util.Arrays;
import java.util.ArrayList;
import android.app.ListActivity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemLongClickListener;
import android.view.GestureDetector.OnGestureListener;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.Toast;




public class listmodified extends ListActivity implements
OnGestureListener {
public ArrayListString myList = new
ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected or
not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);


//PART OF AdapterView.OnItemClickListener
//PASS TO listener and catching the selection changes
OnItemLongClickListener itemDelListener = new
OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent, View arg1,
int position, long arg3) {
// TODO Auto-generated method stub

itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is: + 
position,
Toast.LENGTH_SHORT).show();
myList.remove(position);
adapter.notifyDataSetChanged();

return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIEW TO ARRAYLIST myList WHICH CONTAINS STRINGS
adapter=new
ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list items
gestureScanner = new GestureDetector(this);
getListView().setOnTouchListener(new View.OnTouchListener() {
  @Override
public boolean onTouch(View v, MotionEvent event) {
return gestureScanner.onTouchEvent(event);
}
});

//UPDATE VIEW DELETE WHEN ONLONG CLICK IS PRESSED
getListView().setOnItemLongClickListener(itemDelListener);

}


//LIST ITEM PRESS CHECKING
public void onListItemClick(ListView parent, View v,
int position, long id){
selection.setText(myList.get(position));
//check to see if LONGCLICK IS PRESSED
if (longClickedItem != -1) {
 Toast.makeText(listmodified.this, A short click detected,
Toast.LENGTH_SHORT).show();

}
longClickedItem=0;
}

//IMPLEMENTED BY GESTURE
@Override
public boolean onDown(MotionEvent arg0) {
// TODO Auto-generated method stub
return false;
}


@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
float velocityY) {
// TODO Auto-generated method stub
return false;
}


//CHECKS ONLONGPRESS EVENTS SET LONG PRESS TO -1,
//COOL I CAN USE THIS TO SEE IF A LONG CLICK WAS SELECTED LATER ON

@Override
public void onLongPress(MotionEvent e) {
// TODO Auto-generated method stub
Toast.makeText(listmodified.this, A long click detected,
Toast.LENGTH_SHORT).show();


if (e.getAction()==MotionEvent.ACTION_DOWN)
{

longClickedItem = -1;

}

}


@Override
public boolean onScroll(MotionEvent e1, 

[android-developers] Free lancers / Expert for developing eLearning assignments on Android Tabs

2011-10-12 Thread Priya
Hi ,

Want add an interactive elearning module in the elearning package
being developed on Android tabs.

Is there anyone who 1st hand experience on multi-user intearctive
android based apps development.

Feel free to connect with me  at priya(dot)positions(at)gmail(dot)com

Priya

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

2011-10-12 Thread luca aliberti
I have extracted a yaffs2 image of my android phone situated in /dev/
mtd/mtd0, for forensics purpose.

I would know how can I mount it in ubuntu 11,04 to exploore the
contents, because yaffs2 is not supported.

Thanks to everyone.

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


[android-developers] hi

2011-10-12 Thread pr biztech
hello everyone

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

2011-10-12 Thread Graham Bright
Found the problem


myList.remove(*this*); //remove the current object , *postion* throws an
exception


On Tue, Oct 11, 2011 at 11:37 AM, Graham Bright gbwienmobil...@gmail.comwrote:

 Hi,

 When I try to remove the list element in my ArrayLilst I get
 IndexOutofBoundsException. Specifically in OnItemLongClickListener.

 Can anyone help ?

 Thanks,

 Graham

 package listmodified.org;

 import java.util.Arrays;
 import java.util.ArrayList;
 import android.app.ListActivity;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemLongClickListener;
 import android.view.GestureDetector.OnGestureListener;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.widget.Toast;




 public class listmodified extends ListActivity implements
 OnGestureListener {
public ArrayListString myList = new
 ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected or
 not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);


//PART OF AdapterView.OnItemClickListener
//PASS TO listener and catching the selection changes
OnItemLongClickListener itemDelListener = new
 OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent, View
 arg1,
int position, long arg3) {
// TODO Auto-generated method stub

  itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is: +
 position,
 Toast.LENGTH_SHORT).show();
myList.remove(position);
adapter.notifyDataSetChanged();

return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIEW TO ARRAYLIST myList WHICH CONTAINS STRINGS
adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list
 items
gestureScanner = new GestureDetector(this);
getListView().setOnTouchListener(new View.OnTouchListener() {
  @Override
public boolean onTouch(View v, MotionEvent event) {
return gestureScanner.onTouchEvent(event);
}
});

//UPDATE VIEW DELETE WHEN ONLONG CLICK IS PRESSED
getListView().setOnItemLongClickListener(itemDelListener);

}


 //LIST ITEM PRESS CHECKING
public void onListItemClick(ListView parent, View v,
int position, long id){
selection.setText(myList.get(position));
//check to see if LONGCLICK IS PRESSED
if (longClickedItem != -1) {
 Toast.makeText(listmodified.this, A short click
 detected,
 Toast.LENGTH_SHORT).show();

}
longClickedItem=0;
}

 //IMPLEMENTED BY GESTURE
@Override
public boolean onDown(MotionEvent arg0) {
// TODO Auto-generated method stub
return false;
}


@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
 velocityX,
float velocityY) {
// TODO Auto-generated method stub
return false;
}


 //CHECKS ONLONGPRESS EVENTS SET LONG PRESS TO -1,
 //COOL I CAN USE THIS TO SEE IF A LONG CLICK WAS SELECTED LATER ON

@Override
public void onLongPress(MotionEvent e) {
// TODO Auto-generated method stub
Toast.makeText(listmodified.this, A long click detected,
 Toast.LENGTH_SHORT).show();


if 

[android-developers] Update application data

2011-10-12 Thread Juliano Nunes
Hi, 
 
My application will use a local database with almost 2MB of data 
(non-compressed) that will be updated every month, so I'd like to know which 
is the best approach for an update mechanism.
 
The first option in my opinion is to use a REST service that will generate 
the data operations (insert, update and delete) to get the database to the 
latest version, and the second option is to provide a compressed SQLite 
database that will be downloaded and unzipped to the data folder everytime 
the app detects an update.
 
Which do you think is the best approach?

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

[android-developers] SQLite Query

2011-10-12 Thread dipti desai
How to insert more than two values in the coulmn.?
i have a table having columns name and country
I want to insert input data into SQLitedatabase
public void insert(String name,String country)
{
String[]params = new String[2];
   params[0]=name;
   params[1]=country;
   db.execSQL(INSERT INTO table1(name,country)
VALUES(?,?),params);
}

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

2011-10-12 Thread guru moorthy
i want to unsubcribe

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

2011-10-12 Thread Muthu S
Hi all

   How to integrate the html5 player in android app 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


  1   2   3   >