[android-developers] IP Camera

2011-08-25 Thread kirti waykole
Hello Friends,
  I am going to design new application for my Apad .I want to use IP camera
out side the door. When I click on my ip camera Icon on Apad then it shows
doors front preview. Please Guide me to proceed . How the Ip camera use in
program. Please help me.

Thanks in Advance

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

Re: [android-developers] Hindi font issue

2011-08-25 Thread Jyothi Reddy
I have tried several different fonts but I can see the style change but core
problem with matras remains the same.

On Thu, Aug 18, 2011 at 7:59 PM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 On 18 August 2011 07:33, jyothi winit gattujyo...@gmail.com wrote:
  Hi All,
   I have developed an application which supports multiple languages.
  I'm facing issue in rendering Hindi font. I'm using Mangal font.
  The matras are being misplaced.
  I have tried -
  overriding onDraw method
  Using webview instead of Textview
  Please let me know if any one of you have a solution for this.
 
  I appreciate your help in advance.
 
  Thanks,
  Jyothi

 Try using different font just to test.

 Wikipedia suggests that Mangal has issues with ligatures/matras:
 http://en.wikipedia.org/wiki/Mangal_(font)

 --
 Daniel Drozdzewski

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

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

Re: [android-developers] Re: how to integrate video codec for video view android

2011-08-25 Thread NaveenShrivastva
Hello sir,


Please help me otherwise i will loss my 5 months and project.



Please find the C++ JNI attachment.

Android is not allowing me to place the large video on surface, it's
Android - firmware(Video view) limitation, so resolving this issue
need codec interface for place video on surface.

i am trying to integrate codec using  JAVA JNI.

i am using ffmpeg library for video codec interface, that works  but
facing some issues. Audio is running but video not appear on surface
view.

C++ video view library is not getting two values
sws_format_name(c-srcFormat), sws_format_name(c-dstFormat) so error.

error msg occur:08-23 18:12:29.002: ERROR/FFMpegMediaPlayer(3889):
AV_LOG_WARNING: No accelerated colorspace conversion found from %s to
%s.


NOTE:Here unavailability of c-dstFormat this value it's not going
switch statement for accelerate the video.For more information review
the attached document.

Error Block resign:

 if (t)
return t;

av_log(c, AV_LOG_WARNING, No accelerated colorspace conversion
found from %s to %s.\n, sws_format_name(c-srcFormat),
sws_format_name(c-dstFormat))
;

switch (c-dstFormat) {
case PIX_FMT_RGB48BE:
case PIX_FMT_RGB48LE:return yuv2rgb_c_48;
case PIX_FMT_ARGB:
case PIX_FMT_ABGR:   if (CONFIG_SWSCALE_ALPHA  c-srcFormat
== PIX_FMT_YUVA420P) return yuva2argb_c;
case PIX_FMT_RGBA:
case PIX_FMT_BGRA:   return (CONFIG_SWSCALE_ALPHA 
c-srcFormat == PIX_FMT_YUVA420P) ? yuva2rgba_c : yuv2rgb_c_32;
case PIX_FMT_RGB24:  return yuv2rgb_c_24_rgb;
case PIX_FMT_BGR24:  return yuv2rgb_c_24_bgr;
case PIX_FMT_RGB565:
case PIX_FMT_BGR565:
case PIX_FMT_RGB555:
case PIX_FMT_BGR555: return yuv2rgb_c_16;
case PIX_FMT_RGB444:
case PIX_FMT_BGR444: return yuv2rgb_c_12_ordered_dither;
case PIX_FMT_RGB8:
case PIX_FMT_BGR8:   return yuv2rgb_c_8_ordered_dither;
case PIX_FMT_RGB4:
case PIX_FMT_BGR4:   return yuv2rgb_c_4_ordered_dither;
case PIX_FMT_RGB4_BYTE:
case PIX_FMT_BGR4_BYTE:  return yuv2rgb_c_4b_ordered_dither;
case PIX_FMT_MONOBLACK:  return yuv2rgb_c_1_ordered_dither;
default:
assert(0);

Please help me , i will very thankful of you.


On Wed, Aug 24, 2011 at 9:50 PM, RichardC
richard.crit...@googlemail.com wrote:
 *plonk*

 On Aug 24, 4:55 pm, NaveenShrivastva kumarnaveen.si...@gmail.com
 wrote:
 i want video - codec implementation









 On Tue, Aug 23, 2011 at 4:38 PM, Aladin Q aladin.q...@gmail.com wrote:
  Naveen, there is a serious problem with your english which dramatically
  decreases your credibility (sounds almost like a bot attempting to
  converse).

  We don't even know if you want a codec for audio, video, image, etc... 
  maybe
  tryhttp://stackoverflow.com/search?q=android+codec

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

 --
 Naveen Shrivastava
 BCA+MCA(LAST SEM)+O/A/B Level(DOEACC SOCITY IT GOVT INDIA)

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

2011-08-25 Thread Damien Cooke
Hi all,
I am sure what I want to do is possible I think I am going about it the wrong 
way.

I am building a kind-of tab controller.  I am attempting to define compound 
views in XML layouts and I want to import them into my Activity.  The idea 
being that each tab continues to function regardless whether it is visible or 
not.  

What I am attempting to do is create a View object and inflate the layout I 
want into the View Object.  Is this the correct approach?  (by the way the 
reason I can not use the tabhost is because the client needs a scrolling tabbar 
so they can have 10 options on the tab bar, so I have implemented a scrollview 
containing buttons for the tabbar)

The structure will be an array of Views each attached to one of the buttons in 
the scrollView.  When selected the View object (if not already populated) will 
populate using inflate then become visible.

Am I close? Is this the wrong approach? Thanks in advance for any assistance. 

Regards
Damien

  

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


Re: [android-developers] Re: ISO 15693 card emulation

2011-08-25 Thread Michael Roland
Hallo Sumit,

 So there is no way at present in Android by which one can perform card
 emulation from Nexus S?

Watch out that this thread is about *ISO/IEC 15693* (vicinity) card
emulation (as opposed to proximity card emulation). There is no way the
PN544 NFC controller (which is used in the Nexus S) can do vicinity card
emulation. Proximity card emulation is a whole different story (see the
other threads on card emulation).

br,
Michael

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

2011-08-25 Thread prosardar
Ok i will do it after some hours.

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

2011-08-25 Thread prosardar
Ok i will do it

On Aug 25, 2:26 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 On Wed, Aug 24, 2011 at 2:29 PM, prosardar prosar...@gmail.com wrote:
  Hi everyone. I created Android project, add link to jpl library (swi-
  prolog interface). Then put in assert file logic.pl.
  And now a need create query like this Query q1 = new Query(consult,
  new Term[] {new Atom(assets/logic.pl)} ); . Then when i run it,
  raise some exception. How i can run this query ???

  --

 Hmm... which exception did you get?  I would say to ask the swi prolog
 list, but they probably aren't used to you dropping their code into
 android either...

 Provide some relevant stack trace, also logcat, etc..

 Kris

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


Re: [android-developers] Re: how to integrate video codec for video view android

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 2:39 AM, NaveenShrivastva
kumarnaveen.si...@gmail.com wrote:
 Please find the C++ JNI attachment

NDK support is available on the [android-ndk] Google Group or StackOverflow.

Also, please understand that there may only be a few dozen people on
the planet who have tried doing what you are doing, and they may not
be in position to assist you.

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

Android Training in NYC: http://marakana.com/training/android/

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


Re: [android-developers] Re: NdefRecord(NdefMessage) extraction from the intent in a NFC design

2011-08-25 Thread Michael Roland
Hallo Dominik,

 What do you mean by all three NFC intents *have* three extras? I
 ask, because the documentation at
 http://developer.android.com/reference/android/nfc/NfcAdapter.html
 states, that EXTRA_ID and EXTRA_NDEF_MESSAGES are optional (which is
 obvious for the latter) and only EXTRA_TAG is mandatory.

Correct. Those intent extras are listed as optional. Still the current
implementation (or at least the one in Android 2.3.4) adds all three
extras to every intent. Though, some of the extras, especially
EXTRA_NDEF_MESSAGES, might be null.

 Anyway, in which case is the ID field not available?

I don't think that there is any case where the ID field will be
empty/not available. For NFC/RFID tags there will always be an ID field.
Even for the NDEF push protocol a mock tag with an ID of
new byte[] { 0x00 }
is used.

br,
Michael

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

2011-08-25 Thread skink


On Aug 24, 5:55 pm, NaveenShrivastva kumarnaveen.si...@gmail.com
wrote:
 i want video - codec implementation





 On Tue, Aug 23, 2011 at 4:38 PM, Aladin Q aladin.q...@gmail.com wrote:
  Naveen, there is a serious problem with your english which dramatically
  decreases your credibility (sounds almost like a bot attempting to
  converse).

  We don't even know if you want a codec for audio, video, image, etc... maybe
  tryhttp://stackoverflow.com/search?q=android+codec

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

 --
 Naveen Shrivastava
 BCA+MCA(LAST SEM)+O/A/B Level(DOEACC SOCITY IT GOVT INDIA)


Did you read any threads from this:

http://google.com/m?q=No+accelerated+colorspace+conversionclient=ms-opera-mini-androidchannel=new

pskink

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


[android-developers] Re: Text gone when clicked

2011-08-25 Thread ndiiie90
Hi Mark, thanks for your help..you save my life again..:D

On Aug 20, 10:18 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sat, Aug 20, 2011 at 10:59 AM, ndiiie 90 rnd...@gmail.com wrote:
  I see that some of them in editText of password and username, there are some
  text with gray color (usually) and when user clicked it, the text is gone..
  what is the attribute of editText to do it?

 android:hint

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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


Re: [android-developers] Re: how to integrate video codec for video view android

2011-08-25 Thread NaveenShrivastva
Sorry for more posting , but i am trying for long time not getting
success then what i can do. i need help of google because alws i
resolved my issues using googing.

Thanks for your good response

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

2011-08-25 Thread Lakshmi Priya
Hi Mark:

I am trying to locate this.  Could you confirm if the code is ok.

Thanks
..Priya

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy
Sent: Wednesday, August 24, 2011 10:45 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Web View Error

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
LogCat and look at the stack trace associated with your error.

On Wed, Aug 24, 2011 at 1:12 PM, Lakshmi Priya
lakshmi_pr...@simply-logic.com wrote:
 Hi all:



 Please see attached the code I have written for web view..When I run the
 code I get the following error every time.



 Sorry The application WebViewDemo(process org.example.webviewdemo)has
 stopped unexpectedly.Please try again.



 Can someone help me please.



 Thanks

 ..Priya



 lakshmi_pr...@simply-logic.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



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

Android Training in NYC: http://marakana.com/training/android/

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

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


[android-developers] The way to get coordinate of any element on activity

2011-08-25 Thread Vicky Wang
Hi ,all
What way to get coordinate of any element on activity? Thank you for your
help.


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: attach prolog file in Android project

2011-08-25 Thread prosardar
Found in LogCat this
PackageManager : Package game.app desires unavailable shared library
jpl; ignoring!
and then after some logs
dalvikvm: Could not find class 'jpl.Query$1', referenced from method
jpl.Query.abort
dalvikvm: VFY: unable to resolve new-instance 91 (Ljpl/Query$1;) in
Ljpl/Query
dalvikvm: VFY: replacing opcode 0x22 at 0x0006
dalvikvm: VFY: dead code 0x0008-0011 in Ljpl/Query;.abort ()I
dalvikvm: Exception Ljava/lang/UnsatisfieldLinkError; thrown during
Ljpl/fli/Prolog;.client
dalvikvm: Shutting down VM
   I thing something wrong with link jpl.jar

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

2011-08-25 Thread Tomas Prochazka
I found that it maybe doesn't cause animation but
child.setVisibility(View.GONE) in ViewAnimator class. I tried to call
setVisibility(View.GONE) on some my object during Gallery swype and it
also cause stop animation of swiping.

On Aug 24, 8:39 pm, Tomas Prochazka tomas.procha...@gmail.com wrote:
 Hi. I have ViewFlipper and the Gallery on the same activity.
 ViewFlipper periodically switch two view with simple fade animation.
 Problem is when I scrolling in Gallery at every switch start, Gallery
 stop animation and jump to nearest item. Is almost impossible to
 scroll if switch period is too short. I think that ViewFlipper start
 Animation which call invalidate() and this cause refresh Gallery, but
 why? Gallery is on the opposite side of screen, completely no reason
 to refresh gallery on every animation start,

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


[android-developers] How to scroll a background on a glSurfaceView

2011-08-25 Thread loril...@gmail.com
Hello All,

Can anyone point to good tutorials which describe how I can smoothly
scroll a background on a glSurfaceView?

I need to have a horizontally scrolling background with various
objects that auto-scrolls as your character/player moves just like
various car/motorbikes games.

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


[android-developers] Re: Disabling a set of 'reserved characters' from user Input?

2011-08-25 Thread bdk
Thanks for your suggestion, Daniel.

Actually it appears to me like a new input method would need to be
implemented (by Google...? :) at least for soft-keyboard, so the user
just sees the allowed keys (just the forbidden ones are not shown).
And, with a flag to enable or disable the path-separator char (fun
read: http://blogs.msdn.com/b/oldnewthing/archive/2005/10/14/481044.aspx
)
On the other hand your suggestion seems like a good (the only?) option
for an hardware keyboard.

I'll go hunting for an 'official' list of locale-specific path
separators...
Maybe it's just Yen, Won and slashes-backslashes...

best

--
Mathieu

On Aug 24, 6:39 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 On 24 August 2011 17:05, bdk mathieu.b...@gmail.com wrote:



  Hi

  I'm showing the user a Save as... dialog to save files, and I'd like
  to disable a set of 'reserved characters' into a related EditText
  field.

  Let's say, something like:

   private static final String ReservedChars = |\\?*\:+/'¥;

   (useful read:http://en.wikipedia.org/wiki/Filename)

  I have to be careful not to use chars not compatible with other
  filesystems like Windows (for instance: ? or   would make the file
  unusable in a Win* filesystem)

  Moreover, I don't want the user to be able to put sequences like ../
  or /foo/bar/filename.xxx to access other paths.

  This also brings up another point: _all_ possible filepath separators
  should be forbidden (for instance, ¥ is the filepath separator on
  Japanese locale computers).

  So, what would be the most elegant solution to filter out these
  characters from user input?
  I'm also thinking about automatically replacing the forbidden chars
  with underscores, but it's not really user-friendly.

  I looked 
  intohttp://developer.android.com/reference/android/text/InputType.html
  but something like InputType.TYPE_CLASS_FILE_NAME is missing...

  TYPE_TEXT_VARIATION_URI does not seem an option since apparently the
  soft keyboard ends up containing chars like: / *  ? ¥ and... smileys?

  For now I've tried with:

                 EditText myEditText = new EditText(activity);
                 myEditText.setSingleLine();
                 myEditText.setInputType(InputType.TYPE_CLASS_TEXT |
  InputType.TYPE_TEXT_VARIATION_URI);

  to no luck.

  Now I'm reading 
  across:http://stackoverflow.com/questions/6626283/how-to-use-inputconnection...
  ...

  best

 Just add a listener to EditText.

 In the listener you capture the text change event and filter through
 only allowed characters.
 --
 Daniel Drozdzewski

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


Re: [android-developers] Re: how to integrate video codec for video view android

2011-08-25 Thread NaveenShrivastva
Thanks for your this nice url,

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


[android-developers] WebView

2011-08-25 Thread bob
Anyone know why WebView doesn't like this?

String html = htmlheadstyle type=\text/css\tr { background-
color: rgba(0, 0, 0, 0.8); } tbody.striped tr:nth-child(even)
{ background-color: rgba(20, 20, 20, 0.8); } tbody.striped tr:nth-
child(odd) { background-color: rgba(10, 10, 10, 0.8); } table { width:
100%; } td { padding: 4px; font-size: 13px; } body { color: white;
font-family: \Helvetica Neue\; padding: 0; border: 0; margin: 0;
background-color: transparent; } tr.graytd td { background-color:
#000; } /style/headbodytable;

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


[android-developers] Plain Unit Testing

2011-08-25 Thread Ryan Huang
Hi All,
I want to do some plain junit testing(using TestCase) for some utility
classes. I followed the guide in
http://developer.android.com/resources/tutorials/testing/helloandroid_test.html
But the problem is, the test is a separate project, when I wrote
TestCase I cannot import the utility class since it's in the target
project. Any idea how to achieve this?
Thanks!

Best Regards,
Ryan

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


Re: [android-developers] Re: attach prolog file in Android project

2011-08-25 Thread Daniel Drozdzewski
On 25 August 2011 09:31, prosardar prosar...@gmail.com wrote:
 Found in LogCat this
 PackageManager : Package game.app desires unavailable shared library
 jpl; ignoring!
 and then after some logs
 dalvikvm: Could not find class 'jpl.Query$1', referenced from method
 jpl.Query.abort
 dalvikvm: VFY: unable to resolve new-instance 91 (Ljpl/Query$1;) in
 Ljpl/Query
 dalvikvm: VFY: replacing opcode 0x22 at 0x0006
 dalvikvm: VFY: dead code 0x0008-0011 in Ljpl/Query;.abort ()I
 dalvikvm: Exception Ljava/lang/UnsatisfieldLinkError; thrown during
 Ljpl/fli/Prolog;.client
 dalvikvm: Shutting down VM
   I thing something wrong with link jpl.jar

Is it possible that you have compiled against JPL but did not package
it with the app?

Perhaps you obfuscated your code?

-- 
Daniel Drozdzewski

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


[android-developers] The textview not displaying the text

2011-08-25 Thread Ratheesh Valamchuzhy
Hi

here is my XML file


?xml version=1.0 encoding=utf-8?
RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:screenOrientation=portrait
  android:orientation=vertical 


TextView
android:layout_height=44dip
android:id=@+id/toolbar
android:layout_alignParentTop=true
android:background=@drawable/toolbar
android:text=SIGN IN
android:gravity=center
android:textSize=18px
android:textColor=#000
android:layout_width=fill_parent
/TextView

  ImageButton
  android:layout_alignParentRight=true
  android:layout_alignParentTop=true
  android:id=@+id/skridttaellerHome
  android:src=@drawable/signup
  android:focusable=true
  android:background=#
  android:scaleType=fitXY
  android:layout_width=62dip
  android:layout_height=32dip
  android:layout_marginTop=6dip
  android:layout_marginBottom=6dip
  android:layout_marginRight=6dip
  /ImageButton
  /RelativeLayout

while exicuting the xml file , it does not shows the text  (SIGN IN) in the
textview ,

plse help me






[image: device.png]


Thanks
 Ratheeesh CN

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

[android-developers] Re: attach prolog file in Android project

2011-08-25 Thread prosardar
I added uses-library android:name=jpl android:required=true /
. But nothing again. May be wrong path to library in the property
android:name ?

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

2011-08-25 Thread String
On Thursday, August 25, 2011 12:19:02 AM UTC+1, Jack Deslippe wrote:

I basically want to know if this a bug in the GoogleTV AVD or some 
 conceptual difference about GoogleTV hardware


If it's the former, there's a good chance that someone (Xav?) will drop by 
this thread and chime in. Especially on pre-release SDKs, they usually seem 
to.

If it's the latter, well, there are probably quite a few devs on this list 
who (1) have an app that writes to external storage, and (2) have Google TV 
hardware (considering Google has given them out a couple of times). 
Hopefully one of them can spare a couple of minutes to tell you their 
experiences.

String

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

Re: [android-developers] Re: attach prolog file in Android project

2011-08-25 Thread Daniel Drozdzewski
On 25 August 2011 09:52, Daniel Drozdzewski
daniel.drozdzew...@gmail.com wrote:
 On 25 August 2011 09:31, prosardar prosar...@gmail.com wrote:
 Found in LogCat this
 PackageManager : Package game.app desires unavailable shared library
 jpl; ignoring!
 and then after some logs
 dalvikvm: Could not find class 'jpl.Query$1', referenced from method
 jpl.Query.abort
 dalvikvm: VFY: unable to resolve new-instance 91 (Ljpl/Query$1;) in
 Ljpl/Query
 dalvikvm: VFY: replacing opcode 0x22 at 0x0006
 dalvikvm: VFY: dead code 0x0008-0011 in Ljpl/Query;.abort ()I
 dalvikvm: Exception Ljava/lang/UnsatisfieldLinkError; thrown during
 Ljpl/fli/Prolog;.client
 dalvikvm: Shutting down VM
   I thing something wrong with link jpl.jar

 Is it possible that you have compiled against JPL but did not package
 it with the app?

 Perhaps you obfuscated your code?


waait a mintute...

JPL is just a connector to SWI Prolog (standard Prolog environment).
As the name suggests it only mediates between Java and Prolog engine.
The same way that JDBC driver alone does not give you persistence, JPL
alone is not Prolog yet.

You need to look into pure Java Prolog implelentation.

Quick google finds me:

http://www.ugosweb.com/jiprolog/index.aspx

The fact that is portable all the way down to Java ME, means that it
will run on Android.

-- 
Daniel Drozdzewski

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

2011-08-25 Thread MobileVisuals
I debugged this on Logcat and got the following messages, when it
switched from GLSurfaceView to SurfaceView, but freezed:

handle 0x494900 still locked (state=4001)
WARN/WindowManager(53): No window to dispatch pointer action 1
WARN/InputManagerService(53): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub
$Proxy@43d3c260

Does anyone know how I can avoid this?

On Aug 24, 9:54 pm, MobileVisuals eyv...@astralvisuals.com wrote:
 My app switches between a SurfaceView and 10 GLSurfaceViews. It can
 swith to the GLSurfaceViews without problem, but sometimes the
 displayed GLSurfaceView freezes when I try to switch back to the
 SurfaceView,
 I assume this is a threading issue.

 I used suspend() and resume() to control the  SurfaceView before, but
 then I read this can result in deadlocks. So I changed it to
 yield(),but the problem remained. I use onResume() and onPause to
 control the GLSurfaceViews. I can't find any yield method that I can
 use for the GLSurfaceView thread. Is there a better way to control the
 GLSurfaceView? Can onResume() and onPause result in deadlocks?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: New (?) market bug: most free games are GONE

2011-08-25 Thread String
On Thursday, August 25, 2011 12:06:03 AM UTC+1, Spooky wrote:

I was amazed to find that only 5 screens (on my Motorola
 Bravo) of free games still exist in the Android market.


This certainly isn't a universal situation. I just opened the Market on my 
N1, went to Games  Top Free, and scrolled for at least a minute through 
what must have been a couple dozen screens. And just to be clear, the 
listings didn't stop there, that was just when I got tired of scrolling.

What version of the Market app does your handset have? Mine's on 3.0.27.

String  

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

Re: [android-developers] WebView

2011-08-25 Thread Daniel Drozdzewski
On 25 August 2011 09:49, bob b...@coolgroups.com wrote:
 Anyone know why WebView doesn't like this?

Any more details, on how WebView does not like it? Does it say
anything, when you feed it?
How are you feeding it? Do you specify the MIME type?


        String html = htmlheadstyle type=\text/css\tr { background-
 color: rgba(0, 0, 0, 0.8); } tbody.striped tr:nth-child(even)
 { background-color: rgba(20, 20, 20, 0.8); } tbody.striped tr:nth-
 child(odd) { background-color: rgba(10, 10, 10, 0.8); } table { width:
 100%; } td { padding: 4px; font-size: 13px; } body { color: white;
 font-family: \Helvetica Neue\; padding: 0; border: 0; margin: 0;
 background-color: transparent; } tr.graytd td { background-color:
 #000; } /style/headbodytable;

Did you notice, that your your body and table are not closed?
I did not try to parse CSS, but W3C validators should be of great help
for both markup, and painting and decorating.

-- 
Daniel Drozdzewski

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

2011-08-25 Thread Ratheesh Valamchuzhy
 where is the REPLY,,:)

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

Re: [android-developers] Re: The textview not displaying the text

2011-08-25 Thread Rathna Kumara Premadasa
Did u can see the text view on the design view


-- 
*Rathna Kumara Premadasa*
Sri Lanka.

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

2011-08-25 Thread sajjan jyothi
Seems like your text colour and layout back ground also in black colour.

On Thu, Aug 25, 2011 at 9:52 AM, Ratheesh Valamchuzhy
android...@gmail.comwrote:


 Hi

 here is my XML file


 ?xml version=1.0 encoding=utf-8?
 RelativeLayout
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:screenOrientation=portrait
   android:orientation=vertical 


 TextView
 android:layout_height=44dip
 android:id=@+id/toolbar
 android:layout_alignParentTop=true
 android:background=@drawable/toolbar
 android:text=SIGN IN
 android:gravity=center
 android:textSize=18px
 android:textColor=#000
 android:layout_width=fill_parent
 /TextView

   ImageButton
   android:layout_alignParentRight=true
   android:layout_alignParentTop=true
   android:id=@+id/skridttaellerHome
   android:src=@drawable/signup
   android:focusable=true
   android:background=#
   android:scaleType=fitXY
   android:layout_width=62dip
   android:layout_height=32dip
   android:layout_marginTop=6dip
   android:layout_marginBottom=6dip
   android:layout_marginRight=6dip
   /ImageButton
   /RelativeLayout

 while exicuting the xml file , it does not shows the text  (SIGN IN) in the
 textview ,

 plse help me






 [image: device.png]


 Thanks
  Ratheeesh CN

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




-- 
Thanks  Regards
Sajjan Jyothi

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

[android-developers] Json Gzip Problem

2011-08-25 Thread mugurel cosmin
I am trying to read from a json a gzip that was gzuncompress. I`m loading it
into a string and then i`m trying to convert it to bytes to decompress it
with GZIPInputStream.

Any suggestions ?

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

Re: [android-developers] Re: The textview not displaying the text

2011-08-25 Thread rambabu mareedu
check the proporteis of your textview and imageview

On Thu, Aug 25, 2011 at 2:34 AM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

  where is the REPLY,,:)

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

2011-08-25 Thread Sivaprakash
Hi


I have a 200 different list (each list might have 200 items) size of the
each list will be 100 KB that need to be loaded into ListView. But I'll use
only one list at a time.


I would like to know which is the best mechanism to deal with the data

1. Download the list data every time from server (as a JSON) and load also I
can use caching to remember data for some time

or

2. Persist in local memory as a file all 200 different lists.

Can someone suggests what approach I should take?



-- 
- Prakash.

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

2011-08-25 Thread Ratheesh Valamchuzhy
Hi All

if we give the text color BLACK or WHITE it will display in the design phase
but not in the running phase

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: The textview not displaying the text

2011-08-25 Thread skink


Ratheesh Valamchuzhy wrote:
 where is the REPLY,,:)


use hierarchyviewer and see where is your missing view

pskink

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


Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread a a
HI String,

add the following red attribute

?xml version=1.0 encoding=utf-8?
appwidget-provider
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:minWidth=294dip
   android:minHeight=220dip
   android:initialLayout=@layout/abc_layout
   android:updatePeriodMillis=8640
   *android:resizeMode=horizontal|vertical*
   /

2011/6/24 Kostya Vasilyev kmans...@gmail.com:
 This seems to be a design constrant, with the idea of keeping
 AppWidgetProvider processes in memory as little as possible.

 I can see this being useful for regular widget rendering, but loading the
 process for the one current widget the user is interacting with doesn't
seem
 too bad.
 Besides, this constraint is already violated by the new scrollable widgets
 in 3.0, which rely on an application-side service for providing list
items.

 Home screen widgets were introduced in 1.5, two years ago. Have the
devices
 not improved since then?

 -- Kostya
 2011/6/24 String sterling.ud...@googlemail.com

 On Thursday, June 23, 2011 4:45:40 PM UTC+1, TreKing wrote:

 On Thu, Jun 23, 2011 at 3:44 AM, String sterlin...@googlemail.com
 wrote:

 1* Would be 5* if the widgets were expandable, rather than cluttering
 up my widget picker with 8 different sizes.

 Can't you disable Widgets such that they don't show up in the Widget
 Picker?

 Not directly, though there are ways... But if I can't do a resizable
 widget, I'll still need the 4 discrete sizes, so I'm not sure that helps.
 String


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

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

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

Re: [android-developers] Re: The textview not displaying the text

2011-08-25 Thread Rathna Kumara Premadasa
android:layout_height=44dip

according to that it may be out of range in design view

-- 
*Rathna Kumara Premadasa*
Sri Lanka.

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

Re: [android-developers] Re: The textview not displaying the text

2011-08-25 Thread Ratheesh Valamchuzhy
Hi All

At last I solved it

the problem is the background color of the image button i used

 android:background=#fff

The complete file is

?xml version=1.0 encoding=utf-8?
RelativeLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:screenOrientation=portrait
  android:orientation=vertical 


TextView
android:layout_height=44dip
android:id=@+id/toolbar
android:layout_alignParentTop=true
android:background=@drawable/toolbar
android:text=SIGN IN
android:gravity=center
android:textSize=18px
android:textColor=#000
android:layout_width=fill_parent
/TextView

  ImageButton
  android:layout_alignParentRight=true
  android:layout_alignParentTop=true
  android:id=@+id/skridttaellerHome
  android:src=@drawable/signup
  android:focusable=true
  android:background=#fff
  android:scaleType=fitXY
  android:layout_width=62dip
  android:layout_height=32dip
  android:layout_marginTop=6dip
  android:layout_marginBottom=6dip
  android:layout_marginRight=6dip
  /ImageButton
  /RelativeLayout
[image: device1.png]


*Thanks To ALL *

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

[android-developers] Focusing on the list view menu when selected

2011-08-25 Thread rajesh nair
Hi
I have a list view, when I click on a item it gets highlighted and then
return backs to the non highlighted state
I would like to keep the highlighting on until I have selected another menu
item or until I have exited the list view
I tried setting
android:choiceMode=singleChoice
android:focusableInTouchMode=true
android:focusable=true
but none of them gave me the desired result.
I also read that highlighting should be avoided but I have seen applications
using it.
If anyone has done it before please let me know how to do it.
A sample code would be  helpful
Thanks in advance
Rajesh

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

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Um, that was in my original 
post? 
https://groups.google.com/d/msg/android-developers/oAl2Ix9erSY/tGvvqqbf9soJ

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

2011-08-25 Thread Yogeshkumar Tiwari
Hi jyothi,

 i have also developed the application in that i used kiran.ttf font for
hindi language.
it work just try this. i hope you got the solution if not let me know about.

Regards:
Yogesh Kumar

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

2011-08-25 Thread rickrvo
I ran this:  $ . build/envsetup.sh  inside ~/bin/WORKING_COPY folder
and it returned this:
including device/htc/passion/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including sdk/bash_completion/adb.bash

Then I went into the source folder and did:
$ m -j16 clean-libcrypto clean-libssl clean-openssl clean-ssltest
Couldn't locate the top of the tree.  Try setting TOP.

I even tried to run this:source ~/bin/WORKING_DIRECTORY/build/
envsetup.shinside the source folder but it didn't return anything
and still m or mm commands return the try setting top message

On 11 Ago, 13:56, Amit Pundir pundira...@gmail.com wrote:
 On Fri, Aug 5, 2011 at 3:27 PM, rickrvo rick...@hotmail.com wrote:
  I can't get m nor mm commands to work. both say to try setting top...

  help please :\

 How did you run envsetup.sh? It is a script which will set your build
 environment for AOSP.

 You should use it like this --

 $ source $(AOSP_ROOT)/build/envsetup.sh
               where AOSP_ROOT is the AOSP root directory.

 This will export m and mm commands.

 Regards,
 Amit Pundir







  On 4 Ago, 15:53, rickrvo rick...@hotmail.com wrote:
   I've read the instructions... and ran the envsetup.sh but didn't
   realize that it must be ran on the openssl folder and not on
   working_directory folder...

   after running from openssl folder: m -j16 clean-libcrypto clean-libssl
   clean-openssl clean-ssltest
   Couldn't locate the top of the tree.  Try setting TOP.

   What is TOP? How do I set it? :\

   It's hard just to build a openssl version for android... I don't get
   why every project has only the source available for people to compile
   themselves... and not a lib.so for a direct download... then what
   happens is that noobs like me fill forums with questions... lol and
   some may seem stupid... but for me with almost no experience in linux
   is a pain in the a** lol

   On 4 Ago, 15:21, Nikolay Elenkov nikolay.elen...@gmail.com wrote:

On Thu, Aug 4, 2011 at 11:13 PM, rickrvo rick...@hotmail.com wrote:
 I've managed to build the ASOP and ran envsetup.sh but still can't
 find m and mm commands... :\

Did you read the instructions? Or the shell script?

Invoke . build/envsetup.sh from your shell to add the following
functions to  your environment:
- croot:   Changes directory to the top of the tree.
- m:       Makes from the top of the tree.
- mm:      Builds all of the modules in the current directory.
- mmm:     Builds all of the modules in the supplied directories.
- cgrep:   Greps on all local C/C++ files.
- jgrep:   Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir:   Go to the directory containing a file.
- cmremote: Add git remote for CM Gerrit Review
- cmgerrit: Send patch request request to CyanogenMod repos
- mka:     Builds using SCHED_BATCH on all processors
- reposync: Parallel repo sync using ionice and SCHED_BATCH

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

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


[android-developers] How to toggle on gps in android programatically?

2011-08-25 Thread Shruthi Varma
Hi All,

In my application, I need to toggle on the GPS programatically.

This question was asked many times, and the answer is in Android, you
can programmatically turn the Wifi on or off, but not the GPS.

But many market applications can turn the GPS on or off programatically.

So I thought there may be a way to do this. Please help.



Regards,
Shruthi.

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


[android-developers] Regular expressions and ICU4C

2011-08-25 Thread Mark Carter
I have read that Android uses ICU4C to support regular expressions.

Does this mean that the java.util.regex.Pattern class uses ICU4C under the 
hood? If so, why does \U0002A700-\U0002B73F (or similar \U expressions) not 
work?

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

[android-developers] Re: Deadlocks when switching from GLSurfaceView to SurfaceView

2011-08-25 Thread RichardC
In your original post did you actually mean 10 (ten) GLSurfaceViews in
one activity?

On Aug 25, 10:05 am, MobileVisuals eyv...@astralvisuals.com wrote:
 I debugged this on Logcat and got the following messages, when it
 switched from GLSurfaceView to SurfaceView, but freezed:

 handle 0x494900 still locked (state=4001)
 WARN/WindowManager(53): No window to dispatch pointer action 1
 WARN/InputManagerService(53): Window already focused, ignoring focus
 gain of: com.android.internal.view.IInputMethodClient$Stub
 $Proxy@43d3c260

 Does anyone know how I can avoid this?

 On Aug 24, 9:54 pm, MobileVisuals eyv...@astralvisuals.com wrote:







  My app switches between a SurfaceView and 10 GLSurfaceViews. It can
  swith to the GLSurfaceViews without problem, but sometimes the
  displayed GLSurfaceView freezes when I try to switch back to the
  SurfaceView,
  I assume this is a threading issue.

  I used suspend() and resume() to control the  SurfaceView before, but
  then I read this can result in deadlocks. So I changed it to
  yield(),but the problem remained. I use onResume() and onPause to
  control the GLSurfaceViews. I can't find any yield method that I can
  use for the GLSurfaceView thread. Is there a better way to control the
  GLSurfaceView? Can onResume() and onPause result in deadlocks?

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

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 6:23 AM, Shruthi Varma
shruthi.tlis...@gmail.com wrote:
 In my application, I need to toggle on the GPS programatically.

If by toggle on you mean enable, this is not allowed, for obvious
privacy reasons.

 This question was asked many times, and the answer is in Android, you
 can programmatically turn the Wifi on or off, but not the GPS.

Correct.

 But many market applications can turn the GPS on or off programatically.

They exploit security holes in the OS. Those holes have been closed in
newer versions of Android.

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

Android Training in Oslo: http://bit.ly/fjBo24

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


[android-developers] Re: SDK Tools r12 causing aapt to fail

2011-08-25 Thread Marcus Wolschon
So...what is a good public replacement for
parent=android:WindowTitle ?
So everything except the few things you change are inherited from
whatever the current platform uses.

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

2011-08-25 Thread Arslan Khan

should i assume that they are not providing any api to do so

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

2011-08-25 Thread Dominik
is there a difference between declaring
   uses-feature android:name=android.hardware.nfc
android:required=false /
and not declaring any nfc specific uses-feature at all?
Dominik

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


Re: [android-developers] Re: Optional permissions

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 6:58 AM, Dominik dominik.gru...@fhnw.ch wrote:
 is there a difference between declaring
   uses-feature android:name=android.hardware.nfc
 android:required=false /
 and not declaring any nfc specific uses-feature at all?

Possibly.

With other hardware-related permissions (e.g.,
android.permission.CAMERA), asking for the permission implies
uses-feature android:name=... android:required=true. While
android.permission.NFC is not listed in the table for this in the
uses-feature documentation, it might be a documentation bug and has
the same behavior as the others.

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

Android Training in Oslo: http://bit.ly/fjBo24

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

2011-08-25 Thread Ash
Hi Matthew,
Thanks for the sample code. I will definitely try this out.

Cheers

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

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Now that I've come back to it after some time has passed, I've found a 
partial solution to this issue, one that I'm surprised none of us thought of 
before.

If your give the root of your appwidget's layout a width  height of 
match_parent, then it will expand to fill all available space that the OS 
gives it as the user resizes. Seems obvious in retrospect, but none of us 
mentioned it the first time around. All you then need to do is ensure that 
the rest of your content resizes gracefully, but that's essentially the same 
as for any layout of variable dimensions (portrait vs. landscape, or 
whatever).

For my specific use case of a single large image, my layout ended up just 
looking like this:

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:gravity=center
 
ImageView android:scaleType=fitCenter
   android:id=@+id/my_image
   android:layout_width=match_parent
   android:layout_height=match_parent
   /
/RelativeLayout

The only drawback that I've found is that, since there's no onResize event, 
the source image needs to be as big as possible to avoid pixellation. For 
me, that meant a size of 360px (my image is intrinsically square) was as 
large as I could go before running into the dreaded !!!

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

Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
Posted too soon, argh.

Anyway, what I was saying was that 360px square was as large as I could go 
before running into the dreaded !!! FAILED BINDER TRANSACTION !!! bug. I'd 
really hoped that would be fixed by now, but apparently not.

I'd also like to say that the resizable widget support could be better - and 
I still intend to open a feature request on b.android.com, I never got 
around to it before - but this is good enough for me to work with for now.

String

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

[android-developers] how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Hitendrasinh Gohil
Hi,

I am having 3x3 array which contains 3x3 imagebuttons array.I am
repeating 3x3 imagebuttons 9 times.
how can i handle click events for that?

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


[android-developers] Re: Disabling a set of 'reserved characters' from user Input?

2011-08-25 Thread bdk
This one looks like a good read on the file-path separators question:

  http://blogs.msdn.com/b/michkap/archive/2005/09/17/469941.aspx

--
Mathieu

On Aug 25, 10:35 am, bdk mathieu.b...@gmail.com wrote:
 Thanks for your suggestion, Daniel.

 Actually it appears to me like a new input method would need to be
 implemented (by Google...? :) at least for soft-keyboard, so the user
 just sees the allowed keys (just the forbidden ones are not shown).
 And, with a flag to enable or disable the path-separator char (fun
 read:http://blogs.msdn.com/b/oldnewthing/archive/2005/10/14/481044.aspx
 )
 On the other hand your suggestion seems like a good (the only?) option
 for an hardware keyboard.

 I'll go hunting for an 'official' list of locale-specific path
 separators...
 Maybe it's just Yen, Won and slashes-backslashes...

 best

 --
 Mathieu

 On Aug 24, 6:39 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com
 wrote:

  On 24 August 2011 17:05,bdkmathieu.b...@gmail.com wrote:

   Hi

   I'm showing the user a Save as... dialog to save files, and I'd like
   to disable a set of 'reserved characters' into a related EditText
   field.

   Let's say, something like:

    private static final String ReservedChars = |\\?*\:+/'¥;

    (useful read:http://en.wikipedia.org/wiki/Filename)

   I have to be careful not to use chars not compatible with other
   filesystems like Windows (for instance: ? or   would make the file
   unusable in a Win* filesystem)

   Moreover, I don't want the user to be able to put sequences like ../
   or /foo/bar/filename.xxx to access other paths.

   This also brings up another point: _all_ possible filepath separators
   should be forbidden (for instance, ¥ is the filepath separator on
   Japanese locale computers).

   So, what would be the most elegant solution to filter out these
   characters from user input?
   I'm also thinking about automatically replacing the forbidden chars
   with underscores, but it's not really user-friendly.

   I looked 
   intohttp://developer.android.com/reference/android/text/InputType.html
   but something like InputType.TYPE_CLASS_FILE_NAME is missing...

   TYPE_TEXT_VARIATION_URI does not seem an option since apparently the
   soft keyboard ends up containing chars like: / *  ? ¥ and... smileys?

   For now I've tried with:

                  EditText myEditText = new EditText(activity);
                  myEditText.setSingleLine();
                  myEditText.setInputType(InputType.TYPE_CLASS_TEXT |
   InputType.TYPE_TEXT_VARIATION_URI);

   to no luck.

   Now I'm reading 
   across:http://stackoverflow.com/questions/6626283/how-to-use-inputconnection...
   ...

   best

  Just add a listener to EditText.

  In the listener you capture the text change event and filter through
  only allowed characters.
  --
  Daniel Drozdzewski



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 handle click events for 3x3 image buttons arrays?

2011-08-25 Thread hoyski
On Aug 25, 7:47 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 Hi,

 I am having 3x3 array which contains 3x3 imagebuttons array.I am
 repeating 3x3 imagebuttons 9 times.
 how can i handle click events for that?

Assign a unique ID to each button. Assign the same OnClickListener to
each button. In the OnClick method, inspect the ID of the View that's
received to determine which button was clicked.

- Dave

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] New (?) market bug: most free games are GONE

2011-08-25 Thread Jim Graham
On Thu, Aug 25, 2011 at 02:08:57AM -0700, String wrote:
 
 This certainly isn't a universal situation. I just opened the Market on my 
 N1, went to Games  Top Free, and scrolled for at least a minute through 
 what must have been a couple dozen screens. And just to be clear, the 
 listings didn't stop there, that was just when I got tired of scrolling.
 
 What version of the Market app does your handset have? Mine's on 3.0.27.

Same here...3.0.27.  And I just confirmed it:  5 screens, 12 apps
(6 rows, 2 columns) per screen, last pair listed was 7 Little Words
and Yoo Ninja! Free.

No idea what the difference is.

Later,
   --jim

-- 
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
 Running FreeBSD 7.0  | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] New (?) market bug: most free games are GONE

2011-08-25 Thread Appaholics
I am running 2.3.6 (the market update hasn't come to India yet apparently)
and I am getting the countless apps in free games as per normal. Could the
carriers be affecting it?

On Thu, Aug 25, 2011 at 5:51 PM, Jim Graham spooky1...@gmail.com wrote:

 On Thu, Aug 25, 2011 at 02:08:57AM -0700, String wrote:
 
  This certainly isn't a universal situation. I just opened the Market on
 my
  N1, went to Games  Top Free, and scrolled for at least a minute through
  what must have been a couple dozen screens. And just to be clear, the
  listings didn't stop there, that was just when I got tired of scrolling.
 
  What version of the Market app does your handset have? Mine's on 3.0.27.

 Same here...3.0.27.  And I just confirmed it:  5 screens, 12 apps
 (6 rows, 2 columns) per screen, last pair listed was 7 Little Words
 and Yoo Ninja! Free.

 No idea what the difference is.

 Later,
   --jim

 --
 73 DE N5IAL (/4)| DMR: So fsck was originally called
 spooky1...@gmail.com|  something else.
  Running FreeBSD 7.0  | Q:   What was it called?
 ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

Re: [android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Hitendrasinh Gohil
There are 9 buttons in one box.I m repeating this box 9 times.There are 9
different ids assign to 9 diff buttons.

But how to determine button is clicked from which box as there are 9 same
boxes?


On Thu, Aug 25, 2011 at 5:48 PM, hoyski hoy...@gmail.com wrote:

 On Aug 25, 7:47 am, Hitendrasinh Gohil hitendrasin...@gmail.com
 wrote:
  Hi,
 
  I am having 3x3 array which contains 3x3 imagebuttons array.I am
  repeating 3x3 imagebuttons 9 times.
  how can i handle click events for that?

 Assign a unique ID to each button. Assign the same OnClickListener to
 each button. In the OnClick method, inspect the ID of the View that's
 received to determine which button was clicked.

 - Dave

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] New (?) market bug: most free games are GONE

2011-08-25 Thread String
Seems more likely that it's country-specific rather than carrier-specific, 
especially since Google is doing country-specific rankings now. Doesn't make 
any more *sense*, mind.

I'm in the UK, FWIW.

String

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

[android-developers] how to control movie rate like 320kbps in android ffmpeg android jni.

2011-08-25 Thread Naveen
how to control movie rate like 320kbps in android ffmpeg android jni.

which file contains it's all setting in jni library in android code.

Please help me if any tool for measuring the video speed.

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

2011-08-25 Thread Nick Risaro
If you are not using the DB don't worry, maybe it's from another app in your
phone

On Thu, Aug 25, 2011 at 12:47 AM, kypriakos demet...@ece.neu.edu wrote:


 Hi all,

 I am getting this exception but I am not sure what it's all about - I
 am not really using
 a DB in my app and this started happening a couple of days ago. Any
 hints would
 certainly help me chase it. Thanks:

 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@4380fe20 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native
 Method)
 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@437fd090 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native
 Method)
 I/dalvikvm(  878): Uncaught exception thrown by finalizer (will be
 discarded):
 I/dalvikvm(  878): Ljava/lang/IllegalStateException;: Finalizing
 cursor android.database.sqlite.SQLiteCursor@437e9370 on null that has
 not been deactivated or closed
 I/dalvikvm(  878):  at
 android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
 I/dalvikvm(  878):  at dalvik.system.NativeStart.run(Native Method)

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

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

2011-08-25 Thread MobileVisuals
Yes, there is one activity for the 2d GUI, which is implemented with
SurfaceView. That GUI has a list with 10 3d visuals, that you can
choose to view. When you choose to view a 3d visual, a GLSurfaceView
is shown. You can then go back to the 2d menu. You can then choose
another 3d visual. Another GLSurfaceView is then shown. You can then
go back to the 2d menu and so on... This usually works but the
GLSurfaceView freezes for a few seconds in about 10% of the cases,
where the user wants to go back to the 2d menu.

On Aug 25, 12:38 pm, RichardC richard.crit...@googlemail.com wrote:
 In your original post did you actually mean 10 (ten) GLSurfaceViews in
 one activity?

 On Aug 25, 10:05 am, MobileVisuals eyv...@astralvisuals.com wrote:

  I debugged this on Logcat and got the following messages, when it
  switched from GLSurfaceView to SurfaceView, but freezed:

  handle 0x494900 still locked (state=4001)
  WARN/WindowManager(53): No window to dispatch pointer action 1
  WARN/InputManagerService(53): Window already focused, ignoring focus
  gain of: com.android.internal.view.IInputMethodClient$Stub
  $Proxy@43d3c260

  Does anyone know how I can avoid this?

  On Aug 24, 9:54 pm, MobileVisuals eyv...@astralvisuals.com wrote:

   My app switches between a SurfaceView and 10 GLSurfaceViews. It can
   swith to the GLSurfaceViews without problem, but sometimes the
   displayed GLSurfaceView freezes when I try to switch back to the
   SurfaceView,
   I assume this is a threading issue.

   I used suspend() and resume() to control the  SurfaceView before, but
   then I read this can result in deadlocks. So I changed it to
   yield(),but the problem remained. I use onResume() and onPause to
   control the GLSurfaceViews. I can't find any yield method that I can
   use for the GLSurfaceView thread. Is there a better way to control the
   GLSurfaceView? Can onResume() and onPause result in deadlocks?

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

2011-08-25 Thread Chris Stratton
On Wednesday, August 24, 2011 5:38:59 PM UTC-4, lbendlin wrote:

 there is no perceptible difference between the energy required to establish 
 a connection and the energy required to maintain a connection. Plus, most 
 devices are always connected anyhow.


On mobile.  On wifi, there probably *is* some difference since it tends to 
be shut down when idle.  Waking it up would cause it to be on until it times 
out 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

[android-developers] Re: Native SIP Client Device Support List?

2011-08-25 Thread jakkaxe
They disable the SIP part of the API has been my experience.  If you
call isAPISupported on SipManager and it returns false trying to get
an instance of the SipManager will return null.  Without the
SipManager it doesn't matter if everything else is there...you're
pretty much dead in the water.

Amir

On Aug 23, 10:04 am, Harald Mueller harald@gmail.com wrote:
 Same question:
 Is there a list of currently supported devices.

 I wonder if device manufacturer simple remove SIP-related stuff from
 settings-menu or if they remove SIP-part from the api.

 Thanks.
 Harry

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

2011-08-25 Thread lbendlin
If, however you mean start using the GPS then all you need to do is 
register a location listener. The GPS icon will then automatically appear in 
the status bar. A few seconds after you stopped your listener the icon will 
disappear. 

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

2011-08-25 Thread lbendlin
this depends entirely on your user expectations. Are they willing to wait 
while the list is fetched?  Can you predict which list they will look at 
first, next etc? (In that case you could do prefetching)
Are these users on a mobile data plan? How often does the data change on the 
server?

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

[android-developers] Reading byte to byte array from Socket - help

2011-08-25 Thread Matej755N
Hello,

is anybody to help me with reading 332 bytes from Socket client when I
send aswear 0xD9,0x30 to Server.
I need to receive as byte Array type.

my Client code:

final byte comand_out_30[] = {(byte) 0xD9,0x30};
..
try {
  s = new Socket(fadresa, fport);
  OutputStream writer = s.getOutputStream();
  InputStream reader = s.getInputStream();
  writer.write(comand_out_30);
  writer.flush();
  //reading
  byte [] b = new byte[332];
  int nosRead = reader.read(b);
  //
  reader.close();
  writer.close();
 } catch (UnknownHostException e) {
  // TODO Auto-generated catch block
  //e.printStackTrace();

 } catch (IOException e) {
  // TODO Auto-generated catch block
  //e.printStackTrace();
} finally
..
..

B.R.
Matej

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] New (?) market bug: most free games are GONE

2011-08-25 Thread Christopher Van Kirk
I would point out that it's not just the free games that suffer from 
this, all apps appear to be similarly limited.


On 8/25/2011 8:39 PM, String wrote:
Seems more likely that it's country-specific rather than 
carrier-specific, especially since Google is doing country-specific 
rankings now. Doesn't make any more /sense/, mind.


I'm in the UK, FWIW.

String

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


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

Re: [android-developers] Re: Apk file size limit / number of files limit

2011-08-25 Thread Raphael André Bauer
On Wed, Aug 24, 2011 at 6:54 PM, Chris Stratton cs07...@gmail.com wrote:
 On Wednesday, August 24, 2011 12:43:16 PM UTC-4, Drezden wrote:

 I would also suggest that you look into ways to pull your tiles from
 the web instead of storing them on the device.  You very rarely see
 apps in the wild that have a larger footprint than 20mb and some
 devices like the G1 only have 70mb of storage TOTAL for all apps.  So
 you're basically asking someone to remove everything from their device
 to load your app.

 Yes, traditional versions of android it would indeed be preferable to
 download the large dataset seperately and store it on the external storage
 (sdcard).

 However, for devices which permit installation to external storge or for
 honeycomb and later where it's all the same pool of flash blocks anyway, the
 difference would be a short initial download followed by a long data
 download within the app when it is first run.

 While it's tempting to think that data delivered in the apk is more secure,
 it's fairly trivial to extract.  However data placed in external storage can
 be modified more easily, so might need a fingerprint check.

  My observation is: When the asset folder contains around 80mb of
  files, the app works nicely both on the emulator and on my nexus one.
  When it's larger than 80mb it crashes on both devices. the devises are
  running 2.3.3 Api level 10 (but it happens on 3.2, too).

 Just to make sure the problem is on the running end and not the building
 end, it could be worth opening the apk (it's just a carefully constructed
 zip file with a funny name) on a pc and verifying that all the files are
 there.

Yea. Should be okay...

Thanks a lot for the advice - really helps to understand how things
are intended to work on android :)

Do you know any examples and code snipplets that show how to implement
such a download-at-start function best? I guess there is a lot to take
into account like storage available, where to store stuff and so on...


Thanks a lot again :)

Best,


Raphael





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



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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] Re: Reading byte to byte array from Socket - help

2011-08-25 Thread RichardC
You have not:
* said what your problem is.
* told us what your code does when you try to run it.
* said if there is an exception thrown.
* provided the LogCat output.
* told us what the server should do when it receives your command.

Fill in some of the above and try again.

On Aug 25, 2:47 pm, Matej755N matej...@gmail.com wrote:
 Hello,

 is anybody to help me with reading 332 bytes from Socket client when I
 send aswear 0xD9,0x30 to Server.
 I need to receive as byte Array type.

 my Client code:

 final byte comand_out_30[] = {(byte) 0xD9,0x30};
 ..
 try {
   s = new Socket(fadresa, fport);
   OutputStream writer = s.getOutputStream();
   InputStream reader = s.getInputStream();
   writer.write(comand_out_30);
   writer.flush();
   //reading
   byte [] b = new byte[332];
   int nosRead = reader.read(b);
   //
   reader.close();
   writer.close();
  } catch (UnknownHostException e) {
   // TODO Auto-generated catch block
   //e.printStackTrace();

  } catch (IOException e) {
   // TODO Auto-generated catch block
   //e.printStackTrace();} finally

 ..
 ..

 B.R.
 Matej

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

2011-08-25 Thread TreKing
On Thu, Aug 25, 2011 at 8:47 AM, Matej755N matej...@gmail.com wrote:

 is anybody to help me with reading 332 bytes from Socket client when I
 send aswear 0xD9,0x30 to Server.
 I need to receive as byte Array type.


Buddy, this has nothing to do with Android development. Try Googling for
samples, groups, or forums that focus on client / server communication.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: ViewFlipper animation and Gallery on the same activity

2011-08-25 Thread Tomas Prochazka
It is caused by child.setVisibility(View.GONE); in ViewAnimator class
it cause remeasure and redraw of whole activity screen :-(
I used source code put in on own package and modify it to
child.setVisibility(View.INVISIBLE);

On Aug 25, 10:33 am, Tomas Prochazka tomas.procha...@gmail.com
wrote:
 I found that it maybe doesn't cause animation but
 child.setVisibility(View.GONE) in ViewAnimator class. I tried to call
 setVisibility(View.GONE) on some my object during Gallery swype and it
 also cause stop animation of swiping.

 On Aug 24, 8:39 pm, Tomas Prochazka tomas.procha...@gmail.com wrote:



  Hi. I have ViewFlipper and the Gallery on the same activity.
  ViewFlipper periodically switch two view with simple fade animation.
  Problem is when I scrolling in Gallery at every switch start, Gallery
  stop animation and jump to nearest item. Is almost impossible to
  scroll if switch period is too short. I think that ViewFlipper start
  Animation which call invalidate() and this cause refresh Gallery, but
  why? Gallery is on the opposite side of screen, completely no reason
  to refresh gallery on every animation start,

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


Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 7:42 AM, String sterling.ud...@googlemail.com wrote:
 If your give the root of your appwidget's layout a width  height of
 match_parent, then it will expand to fill all available space that the OS
 gives it as the user resizes. Seems obvious in retrospect, but none of us
 mentioned it the first time around.

Agreed, it seems obvious. Sorry I didn't think of it, and thanks for
pointing it out!

 Anyway, what I was saying was that 360px square was as large as I could go
 before running into the dreaded !!! FAILED BINDER TRANSACTION !!! bug. I'd
 really hoped that would be fixed by now, but apparently not.

It's simply a question of too much memory. Can you tile the image to
send it over in smaller chunks in separate IPC updates?

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

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

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


Re: [android-developers] Re: java.lang.NoClassDefFoundError: android.os.AsyncTask

2011-08-25 Thread b0b
More on this Exception. I triggered it accidently by quitting and 
relaunching my app quickly and got the following logcat


Application.onCreate() is called
...
08-25 15:41:33.003: WARN/ActivityThread(16118): ClassLoader.loadClass: The 
class loader returned by Thread.getContextClassLoader() may fail for 
processes that host multiple applications. You should explicitly specify a 
context class loader. For example: 
Thread.setContextClassLoader(getClass().getClassLoader());
...
...soon after at init when the first AsyncTask is loaded:
08-25 15:41:39.179: WARN/dalvikvm(16118): Exception 
Ljava/lang/RuntimeException; thrown while initializing 
Landroid/os/AsyncTask;
...
...and boom a bit later:

08-25 15:41:46.152: ERROR/ACRA(16118): java.lang.NoClassDefFoundError: 
android.os.AsyncTask
 rest of backtrace

So the classloader failed to load android.os.AsyncTask from which we are 
warned it may happen from the initial warning.
 I could not find this message anywhere in Android source but I'm using 
CyaonogenMod7.

My app has a Service from another package that is run in the same process 
than the app package. To make the warning disappear about the classloader I 
had
to  add

Thread.currentThread().setContextClassLoader(getClass().getClassLoader());

as the first line of entry point functions of both packages running in the 
same process  (it would still appear if done in one package but not the 
other).

Has anyone a more detailed explanation of this behaviour and if the above 
actually fix 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: New or old release Java JDK

2011-08-25 Thread blake
I suggest you get your Java from Apple:

http://support.apple.com/kb/DL1421

I also, shamelessly, suggest this book:

http://oreilly.com/catalog/0636920010364

It was written, exactly, with guys like you in mind.  It will answer a
lot of questions just like this...

-blake

On Aug 23, 5:50 am, gates33ker mike7stew...@gmail.com wrote:
 Hello

 I am new to Android/Java development. The computer I will be using is
 my Macbook pro running OS X Lion. I plan to choose Eclipse IDE for
 Java Dev. I am gathering information on the tools I will need when
 downloading the SDK. There are a few Java JDK versions available. I
 could use some advise on which Java JDK 5 or 6 to run. I assume the
 following releases are the ones compatible with my set up but which
 should I choose? Thanks!

 Linux x86 - RPM Installer 76.94 MB    jdk-6u27-linux-i586-rpm.bin
  Linux x86 - Self Extracting Installer 81.20 MB    jdk-6u27-linux-
 i586.bin
  Linux x64 - RPM Installer 77.16 MB    jdk-6u27-linux-x64-rpm.bin
  Linux x64 - Self Extracting Installer 81.46 MB    jdk-6u27-linux-
 x64.bin

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

2011-08-25 Thread bob
Looks like it was this:

 table { width: 100%; }

It didn't like that.

On Aug 25, 4:20 am, Daniel Drozdzewski daniel.drozdzew...@gmail.com
wrote:
 On 25 August 2011 09:49, bob b...@coolgroups.com wrote:

  Anyone know why WebView doesn't like this?

 Any more details, on how WebView does not like it? Does it say
 anything, when you feed it?
 How are you feeding it? Do you specify the MIME type?

         String html = htmlheadstyle type=\text/css\tr { background-
  color: rgba(0, 0, 0, 0.8); } tbody.striped tr:nth-child(even)
  { background-color: rgba(20, 20, 20, 0.8); } tbody.striped tr:nth-
  child(odd) { background-color: rgba(10, 10, 10, 0.8); } table { width:
  100%; } td { padding: 4px; font-size: 13px; } body { color: white;
  font-family: \Helvetica Neue\; padding: 0; border: 0; margin: 0;
  background-color: transparent; } tr.graytd td { background-color:
  #000; } /style/headbodytable;

 Did you notice, that your your body and table are not closed?
 I did not try to parse CSS, but W3C validators should be of great help
 for both markup, and painting and decorating.

 --
 Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Disabling a set of 'reserved characters' from user Input?

2011-08-25 Thread Chris


On Thursday, August 25, 2011 4:35:33 AM UTC-4, bdk wrote:


 I'll go hunting for an 'official' list of locale-specific path 
 separators... 


There's a constant in java.io.File named 'separator' which gives you the 
localized, system-specific file separator string.

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

[android-developers] Re: how to handle click events for 3x3 image buttons arrays?

2011-08-25 Thread hoyski


On Aug 25, 8:34 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 There are 9 buttons in one box.I m repeating this box 9 times.There are 9
 different ids assign to 9 diff buttons.

 But how to determine button is clicked from which box as there are 9 same
 boxes?


There are a couple of different ways.

One approach is that you can encode the box number and the button
number in the ID. E.g. Assuming the box numbers and the button numbers
are both in the range 1 to 9, then set the ID of each button to
((box_number * 10) + button_number). Then in the OnClick the box
number is the ID / 10 and the button number is the ID % 10.

Another approach is to create a little object that contains the
button's box and button number. You can then attach an instance of
this object to each button using setTag(Object) and in the OnClick you
can retrieve the object with getTag(). This approach is much more
flexible than having smart IDs because the class you attach to the
views can easily be extended later to hold additional useful info, but
it's a bit heavier.

- Dave

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] New (?) market bug: most free games are GONE

2011-08-25 Thread Michael Banzon
On Thu, Aug 25, 2011 at 4:23 PM, Christopher Van Kirk
christopher.vank...@gmail.com wrote:
 I would point out that it's not just the free games that suffer from this,
 all apps appear to be similarly limited.

 On 8/25/2011 8:39 PM, String wrote:

 Seems more likely that it's country-specific rather than carrier-specific,
 especially since Google is doing country-specific rankings now. Doesn't make
 any more sense, mind.
 I'm in the UK, FWIW.
 String

A few weeks back I noticed that one of my apps had a few countries
turned of which made them unavailable to people there. Could this be
some adjustment happening on the market - making previous settings
mess up?

-- 
Michael Banzon
http://michaelbanzon.com/

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


Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread String
On Thursday, August 25, 2011 3:38:33 PM UTC+1, Mark Murphy (a Commons Guy) 
wrote:

  Anyway, what I was saying was that 360px square was as large as I could 
 go
  before running into the dreaded !!! FAILED BINDER TRANSACTION !!! bug. 
 I'd
  really hoped that would be fixed by now, but apparently not.

 It's simply a question of too much memory. Can you tile the image to
 send it over in smaller chunks in separate IPC updates?

The funny thing is, that doesn't actually help. The FAILED BINDER 
TRANSACTION seems to occur whenever you send too much data through IPC 
(where too much is on the order of 1MB), but it doesn't seem to matter if 
that 1MB is in a single transaction or split into several. As it is, if I 
have multiple appwidget instances, I need to wait a second between updates 
to avoid this problem - even though each instance uses a different 
RemoteViews object.

I've been seeing this issue since at least Donut, and I could've sworn that 
it was already in the bugtracker, but looking now I can't seem to find it. 
Anybody think of a reason why I shouldn't create an issue for it?

String

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

Re: [android-developers] New (?) market bug: most free games are GONE

2011-08-25 Thread Jim Graham
On Thu, Aug 25, 2011 at 10:23:02PM +0800, Christopher Van Kirk wrote:
 I would point out that it's not just the free games that suffer from
 this, all apps appear to be similarly limited.

Of that I am certain.  I only mentioned free games because I'm looking
for a bunch of new ones to keep me occupied while I'm back in the cancer
care center at the hospital (as, I'm depressed to have to say, a patient).
My laptop is no longer portable (monitor dead, needs an external
monitor), I can't afford a tablet, so it's my Motorola Bravo (MB520)
phone or nothing.

Later,
   --jim

-- 
73 DE N5IAL (/4)| This 'telephone' has too many
spooky1...@gmail.com| shortcomings to be seriously considered
 Running FreeBSD 7.0  | as a means of communication.  The device
ICBM / Hurricane:   | is inherently of no value to us.
   30.44406N 86.59909W  | (Western Union internal memo, 1876)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] OpenGL ES 2.0 Texture Atlas example

2011-08-25 Thread Muriako
I am trying to learn OpenGL ES 2.0 by creating a fairly simple app.  At this 
point it is nothing more than a square on the middle of the screen that I am 
able to apply a texture to.  The next step for my idea is to be able to 
apply multiple textures to that square, and I want to create the entire 
thing as efficiently as possible, so I would like to get these textures from 
a texture atlas.  The problem here is that I cannot find any examples that 
do something similar to study, so it's quite difficult for a beginner like 
myself to figure out what I have to do.

I am able to get the texture for the square from anywhere in an image 
without a problem, the issue for me is that I am not sure how to create more 
textures from that one image and apply all of them to a single object in a 
specific order.  I have searched around quite a bit, and posted in two 
different places, but I haven't been able to get any solid answers yet.  Any 
help is appreciated.

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

[android-developers] Re: Adding Views into layouts

2011-08-25 Thread Drezden
I have an app in the market right now that uses a custom designed tab
bar at the bottom of the screen and a relative layout at the top that
acts as an iframe, so this is very doable.  In my app I used the
LocalActivityManager to load the requested activity and then extract
it's main layout, like this:

[code]

LocalActivityManager manager = getLocalActivityManager();

Intent preloader = new Intent(com.pkg.Foo);
View childView = manager.startActivity(preloader.getAction(),
preloader.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView();

frame.removeAllViews();
frame.addView(childView);

[/code]

Each of the buttons in the tab bar calls to a loading function with
the requested Activity name and options like ViewFlipper index or
other startup options.  After you add the childView to the frame, you
can also do something like this to animate in the view.

[code]

childView.startAnimation(slideLeftAnimation);

[/code]

The only problem with this approach is that LocalActivityManager has
been deprecated as if this month in favor of Fragments and the
FragmentManager.  So you might want to look into both options and see
what works best for your users and app needs.  If you look at the
demos over at android.com there is a tab example using Fragments.


On Aug 25, 1:40 am, Damien Cooke cooke.dam...@gmail.com wrote:
 Hi all,
 I am sure what I want to do is possible I think I am going about it the wrong 
 way.

 I am building a kind-of tab controller.  I am attempting to define compound 
 views in XML layouts and I want to import them into my Activity.  The idea 
 being that each tab continues to function regardless whether it is visible 
 or not.  

 What I am attempting to do is create a View object and inflate the layout I 
 want into the View Object.  Is this the correct approach?  (by the way the 
 reason I can not use the tabhost is because the client needs a scrolling 
 tabbar so they can have 10 options on the tab bar, so I have implemented a 
 scrollview containing buttons for the tabbar)

 The structure will be an array of Views each attached to one of the buttons 
 in the scrollView.  When selected the View object (if not already populated) 
 will populate using inflate then become visible.

 Am I close? Is this the wrong approach? Thanks in advance for any assistance.

 Regards
 Damien

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


[android-developers] Active Installs Total Installs = Piracy?

2011-08-25 Thread Adam Ratana
I've heard this mentioned before on this list, is this indeed some piracy, 
or is there another explanation?  Looking at sales reports, the total of 
active installs is actually greater than the number I've sold of the app, 
cross-referenced with appmonger/google checkout.  It doesn't do daily volume 
to the point where it might be the difference of today's stats not being up 
to date.

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

2011-08-25 Thread Drezden
ICU4C is the C-language library, you need to use ICU4J.  I believe you
can download the jar here: http://site.icu-project.org/

You can also do most types of RegEx tests using the Pattern and
Matcher classes like so:

private boolean validEmail(String email)
{
String emailPattern = ^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$;
Pattern pattern =
Pattern.compile(emailPattern,Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(email);
return matcher.matches();
}

On Aug 25, 5:25 am, Mark Carter mjc1...@googlemail.com wrote:
 I have read that Android uses ICU4C to support regular expressions.

 Does this mean that the java.util.regex.Pattern class uses ICU4C under the
 hood? If so, why does \U0002A700-\U0002B73F (or similar \U expressions) not
 work?

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


Re: [android-developers] OpenGL ES 2.0 Texture Atlas example

2011-08-25 Thread Appaholics
The chapter nine project uses a texture atlas.
http://code.google.com/p/beginning-android-games/source/browse/

Thanks

On Thu, Aug 25, 2011 at 9:13 PM, Muriako ksmic...@gmail.com wrote:

 I am trying to learn OpenGL ES 2.0 by creating a fairly simple app.  At
 this point it is nothing more than a square on the middle of the screen that
 I am able to apply a texture to.  The next step for my idea is to be able to
 apply multiple textures to that square, and I want to create the entire
 thing as efficiently as possible, so I would like to get these textures from
 a texture atlas.  The problem here is that I cannot find any examples that
 do something similar to study, so it's quite difficult for a beginner like
 myself to figure out what I have to do.

 I am able to get the texture for the square from anywhere in an image
 without a problem, the issue for me is that I am not sure how to create more
 textures from that one image and apply all of them to a single object in a
 specific order.  I have searched around quite a bit, and posted in two
 different places, but I haven't been able to get any solid answers yet.  Any
 help is appreciated.

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

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

[android-developers] NullPointerException on displaying ImageView of a bitmap

2011-08-25 Thread Abhi
Hi

I have the following piece of code which is resulting in a
NullPointerException and I am not able to understand why. I am able to
get the correct size of the bitmap in the Log statement below before
displaying the image, so up to that point everything is good.

//result is a byte array which contains the jpeg image

ByteArrayInputStream inputStream = new ByteArrayInputStream(result);
b = BitmapFactory.decodeStream(inputStream);

Log.i(TAG, Size of bitmap is  + b.getWidth() +  x  +
b.getHeight());

ImageView imageview1 = (ImageView) findViewById(R.id.ImageV);
imageview1.setImageBitmap(b);

The exception I am getting is below :


08-25 11:46:25.578: ERROR/AndroidRuntime(12564): FATAL EXCEPTION: main
08-25 11:46:25.578: ERROR/AndroidRuntime(12564):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.databasetest/
com.android.databasetest.DatabaseTest}: java.lang.NullPointerException
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1821)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1842)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.access$1500(ActivityThread.java:132)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.os.Looper.loop(Looper.java:143)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.main(ActivityThread.java:4263)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
java.lang.reflect.Method.invokeNative(Native Method)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
java.lang.reflect.Method.invoke(Method.java:507)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
dalvik.system.NativeStart.main(Native Method)

08-25 11:46:25.578: ERROR/AndroidRuntime(12564): Caused by:
java.lang.NullPointerException
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
com.android.databasetest.DatabaseTest.onCreate(DatabaseTest.java:62)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1072)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1785)
08-25 11:46:25.578: ERROR/AndroidRuntime(12564): ... 11 more


Any help is appreciated.

Thanks,

AB

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

2011-08-25 Thread Drezden
What is specifically happening in your onCreate method at line 62?
That's where the null exception is coming from.

Also, you might want to use the BitmapFactory.Options to help in image
creation.  You can easily tweak the options to get image dimensions
without having to create the actual bitmap (see inJustDecodeBounds)
and you can adjust the sample size to put less memory strain on your
application.  Try this:

BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 2;
options.inTempStorage = new byte[16*1024];
options.inJustDecodeBounds = false;

Bitmap b = BitmapFactory.decodeStream(inputStream,null,options);

Then test b to make sure it isn't null before loading it into your
ImageView.



On Aug 25, 10:54 am, Abhi abhishek.r.sha...@gmail.com wrote:
 Hi

 I have the following piece of code which is resulting in a
 NullPointerException and I am not able to understand why. I am able to
 get the correct size of the bitmap in the Log statement below before
 displaying the image, so up to that point everything is good.

 //result is a byte array which contains the jpeg image

 ByteArrayInputStream inputStream = new ByteArrayInputStream(result);
 b = BitmapFactory.decodeStream(inputStream);

 Log.i(TAG, Size of bitmap is  + b.getWidth() +  x  +
 b.getHeight());

 ImageView imageview1 = (ImageView) findViewById(R.id.ImageV);
 imageview1.setImageBitmap(b);

 The exception I am getting is below :

 08-25 11:46:25.578: ERROR/AndroidRuntime(12564): FATAL EXCEPTION: main
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):
 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.android.databasetest/
 com.android.databasetest.DatabaseTest}: java.lang.NullPointerException
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 1821)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 1842)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread.access$1500(ActivityThread.java:132)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.os.Looper.loop(Looper.java:143)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread.main(ActivityThread.java:4263)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 java.lang.reflect.Method.invoke(Method.java:507)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:839)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 dalvik.system.NativeStart.main(Native Method)

 08-25 11:46:25.578: ERROR/AndroidRuntime(12564): Caused by:
 java.lang.NullPointerException
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 com.android.databasetest.DatabaseTest.onCreate(DatabaseTest.java:62)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1072)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 1785)
 08-25 11:46:25.578: ERROR/AndroidRuntime(12564):     ... 11 more

 Any help is appreciated.

 Thanks,

 AB

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


[android-developers] Recommendation for Android Training

2011-08-25 Thread Bsweet
Has anyone attended any in person Android development training?  If
so, I would love to hear any recommendations (or classes to avoid).
I'm in Seattle, but willing to travel.

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

2011-08-25 Thread rambabu mareedu
hi this is rambabu from hyderabad(india)..we will give android online
training...if u r intrested drop me a word to rambabu.mare...@gmail.com

On Thu, Aug 25, 2011 at 9:09 AM, Bsweet tony.sa...@gmail.com wrote:

 Has anyone attended any in person Android development training?  If
 so, I would love to hear any recommendations (or classes to avoid).
 I'm in Seattle, but willing to travel.

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

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

[android-developers] Re: Overlay text and live video in Android

2011-08-25 Thread Drezden
Hmm, it sounds like you want to do video encoding on the fly.  That's
a pretty intensive process for Android to try and do in real-time.

My suggestion would be to look into using FFMpeg and the NDK.  Other
than that I'm sure how you're going to handle that one.

On Aug 24, 6:01 pm, James (Wei-Jie) He james.r...@gmail.com wrote:
 The text data is pulling from Bluetooth and it needs to be saved (merged)
 into saved video file.  Can I save the TextView data into the video file?







 On Wed, Aug 24, 2011 at 11:29 AM, Drezden mmjohns...@gmail.com wrote:
  Can't you just use a RelativeLayout and place a TextView on top of the
  playback surface?

  On Aug 24, 8:54 am, James james.r...@gmail.com wrote:
   I need to develop an application that overlays text on the live video
   using Android phone camera.  Who may help, information or directions?

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

2011-08-25 Thread Appaholics
The market is in generally very broken. The numbers update at different
times, sometimes with a day or two between updates. Use a service like
Flurry or Google Analytics to track your installs and usage.

Also pirated versions will not be registered in the market console. It only
tracks installs that are done through the Android Market.

Thanks

On Thu, Aug 25, 2011 at 9:23 PM, Adam Ratana adam.rat...@gmail.com wrote:

 I've heard this mentioned before on this list, is this indeed some piracy,
 or is there another explanation?  Looking at sales reports, the total of
 active installs is actually greater than the number I've sold of the app,
 cross-referenced with appmonger/google checkout.  It doesn't do daily volume
 to the point where it might be the difference of today's stats not being up
 to date.

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




-- 
--
Raghav Sood
CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
required to have complete control)
http://www.raghavsood.com/
https://market.android.com/developer?pub=Appaholics
http://www.appaholics.in/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 handle click events for 3x3 image buttons arrays?

2011-08-25 Thread Drezden
Can you create a ListImageButton and add a reference onto it for
each of your buttons, then run a loop to assign the onClickListener?
Then within the onClick(View v) figure out which button was pressed
based on the v value and handle it accordingly?  I've done this before
when I only want one button selected at any given time out of a large
set using something like this:

private void setActiveBtn(ImageButton btn){

//deactivate all buttons then reactivate the selection
for(int i=0; i  buttonSet.size(); i++){
buttonSet.get(i).setSelected(false);
}
btn.setSelected(true);
}

On Aug 25, 6:47 am, Hitendrasinh Gohil hitendrasin...@gmail.com
wrote:
 Hi,

 I am having 3x3 array which contains 3x3 imagebuttons array.I am
 repeating 3x3 imagebuttons 9 times.
 how can i handle click events for that?

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


Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 11:11 AM, String sterling.ud...@googlemail.com wrote:
 The funny thing is, that doesn't actually help. The FAILED BINDER
 TRANSACTION seems to occur whenever you send too much data through IPC
 (where too much is on the order of 1MB), but it doesn't seem to matter if
 that 1MB is in a single transaction or split into several. As it is, if I
 have multiple appwidget instances, I need to wait a second between updates
 to avoid this problem - even though each instance uses a different
 RemoteViews object.

Now, that's interesting. They must batch those up or something.

 I've been seeing this issue since at least Donut, and I could've sworn that
 it was already in the bugtracker, but looking now I can't seem to find it.
 Anybody think of a reason why I shouldn't create an issue for it?

I doubt you're going to get tons o' love for a allow more than 1MB in
a binder transaction, though you can try.

Have you tried creating a ContentProvider that returns your images via
openFile() and then using setImageViewUri() in the RemoteViews to
point to that ContentProvider? Clearly the Uri/ContentProvider system
is designed to handle larger-than-1MB data sets, since it's used for
MP3 and MP4 files.

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

_Android Programming Tutorials_ Version 3.9 Available!

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


Re: [android-developers] Recommendation for Android Training

2011-08-25 Thread Mark Murphy
On Thu, Aug 25, 2011 at 12:09 PM, Bsweet tony.sa...@gmail.com wrote:
 Has anyone attended any in person Android development training?

Lots. Of course, usually I'm the instructor. :-)

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

_Android Programming Tutorials_ Version 3.9 Available!

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


[android-developers] Remote execution

2011-08-25 Thread kypriakos

Hi all,

I am able to access one of the development phones I have over the
network
and start activities using:

$ ./adb.exe shell am start -n package name/activity name

However I noticed that in such cases the activity does not connect to
a remote
host (via sockets). If I start the activity manually on the phone then
that works
fine. Is the above command running the activity isolated from the
phone's
services (network etc)?

Also, is there a way to reboot a phone remotely from the shell?

Thanks

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


Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-08-25 Thread Dianne Hackborn
I am continually glad for this limitation.  Shoving over a MB of memory that
the launcher needs to keep in its process for a widget is not desirable.
 Sorry.

On Thu, Aug 25, 2011 at 9:39 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Thu, Aug 25, 2011 at 11:11 AM, String sterling.ud...@googlemail.com
 wrote:
  The funny thing is, that doesn't actually help. The FAILED BINDER
  TRANSACTION seems to occur whenever you send too much data through IPC
  (where too much is on the order of 1MB), but it doesn't seem to matter
 if
  that 1MB is in a single transaction or split into several. As it is, if I
  have multiple appwidget instances, I need to wait a second between
 updates
  to avoid this problem - even though each instance uses a different
  RemoteViews object.

 Now, that's interesting. They must batch those up or something.

  I've been seeing this issue since at least Donut, and I could've sworn
 that
  it was already in the bugtracker, but looking now I can't seem to find
 it.
  Anybody think of a reason why I shouldn't create an issue for it?

 I doubt you're going to get tons o' love for a allow more than 1MB in
 a binder transaction, though you can try.

 Have you tried creating a ContentProvider that returns your images via
 openFile() and then using setImageViewUri() in the RemoteViews to
 point to that ContentProvider? Clearly the Uri/ContentProvider system
 is designed to handle larger-than-1MB data sets, since it's used for
 MP3 and MP4 files.

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

 _Android Programming Tutorials_ Version 3.9 Available!

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

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

  1   2   >