Monday, April 30, 2012

[android-developers] How to detect and connect Bluetooth headset using Android code

I would like to identify Bluetooth headset and connect it via my
android code can you help me
out ?

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

[android-developers] listSeparatorTextViewStyle weirdness between SDK versions 10 and 11

Howdy All,

I have come across some weird behavior while writing an app using ListView and I was hoping to solve and/or report.

The application in question is based on a ListActivity and employs section headers.  Each list item contains two TextViews (top == section header, bottom == text).  A custom CursorAdapter selectively hides (View.GONE) the section header.  Also, the section header TextView uses listSeparatorTextViewStyle.

In SDK 10, the section header is styled differently from the text and does not highlight when pressed.  In SDK 11 (Holo Dark theme), however, the header glows blue when the list item is pressed.  I've narrowed the differences in SDK down to the two 9patch images used by the two themes.  SDK 10 uses drawable/dark_header_dither (which is colored) and SDK 11 uses drawable/list_section_divider_holo_dark (which is transparent).

Can anyone tell me whether or not this behavior is intentional?  Is there a solution or workaround if one wishes to stay true to the Holo theme?  Is it possible that Honeycomb forward has a different approach to list section headers?

If Romain Guy is reading this, I'd love his input.

Very truly yours,
Arieh

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

[android-developers] How insert in android a web service client created using eclipse wizard and WSDL.

I am trying to create a web server client in my android application. I
created the web server client using eclipse wizard and I tested as
java application and worked just fine. But When I do same process in
my android project, and after add same jar files and J2SE1.5 just
below the Android 4.0.3 and Android dependencies, the application
compiles but during execution application crash.

Can somebody give me a light of what is possibly happening?

Below the LogCat:

04-30 14:48:33.953: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:33.983: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:34.433: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:34.483: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:34.953: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:34.983: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:35.506: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:35.524: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:36.064: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:36.095: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:36.553: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:36.583: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:37.113: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:37.143: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:37.664: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:37.694: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:38.183: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:38.203: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:38.693: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:38.713: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:39.263: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:39.294: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:39.753: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:39.783: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:40.253: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:40.283: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:40.833: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:40.863: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:41.393: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:41.423: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:41.905: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:41.924: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:42.464: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:42.484: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:43.003: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:43.023: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:43.574: I/dalvikvm(975): threadid=3: reacting to signal 3
04-30 14:48:43.604: I/dalvikvm(975): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:48:48.054: I/Process(975): Sending signal. PID: 975 SIG: 9
04-30 14:49:46.704: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:46.794: I/dalvikvm(1044): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:49:47.276: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:47.324: I/dalvikvm(1044): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:49:47.733: D/gralloc_goldfish(1044): Emulator without GPU
emulation detected.
04-30 14:49:47.753: I/dalvikvm(1044): threadid=3: reacting to signal 3
04-30 14:49:47.803: I/dalvikvm(1044): Wrote stack traces to '/data/anr/
traces.txt'
04-30 14:51:37.163: D/dalvikvm(1044): GC_CONCURRENT freed 242K, 4%
free 9262K/9607K, paused 9ms+8ms
04-30 14:51:37.243: D/dalvikvm(1044): GC_FOR_ALLOC freed 148K, 6% free
9300K/9799K, paused 65ms
04-30 14:51:37.243: I/dalvikvm-heap(1044): Grow heap (frag case) to
9.274MB for 131076-byte allocation
04-30 14:51:37.324: D/dalvikvm(1044): GC_FOR_ALLOC freed 4K, 6% free
9423K/9991K, paused 60ms

04-30 14:51:37.843: W/dalvikvm(1044): Unable to resolve superclass of
Lcom/caar/app/XXXXXXXXXXXXXXXX/interfaces/ws/BanServiceLocator; (154)

04-30 14:51:37.853: W/dalvikvm(1044): Link of class 'Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/BanServiceLocator;' failed
04-30 14:51:37.853: E/dalvikvm(1044): Could not find class
'com.caar.app.apisoapconnections.XXXXXXXXXXXXXXXXXX.sessions.interfaces.ws.BanServiceLocator',
referenced from method
com.caar.app.apisoapconnections.ConnectToAPI.<init>
04-30 14:51:37.853: W/dalvikvm(1044): VFY: unable to resolve new-
instance 99 (Lcom/caar/app/XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/
BanServiceLocator;) in Lcom/caar/app/apisoapconnections/ConnectToAPI;
04-30 14:51:37.863: D/dalvikvm(1044): VFY: replacing opcode 0x22 at
0x0003
04-30 14:51:37.863: W/dalvikvm(1044): Unable to resolve superclass of
Lcom/caar/app/XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/
BanServiceLocator; (154)
04-30 14:51:37.863: W/dalvikvm(1044): Link of class 'Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/BanServiceLocator;' failed
04-30 14:51:37.863: D/dalvikvm(1044): DexOpt: unable to opt direct
call 0x0537 at 0x05 in Lcom/caar/app/apisoapconnections/
ConnectToAPI;.<init>
04-30 14:51:37.875: I/dalvikvm(1044): Failed resolving Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/Ban; interface 133 'Ljava/
rmi/Remote;'
04-30 14:51:37.883: W/dalvikvm(1044): Link of class 'Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/Ban;' failed
04-30 14:51:37.883: I/dalvikvm(1044): Failed resolving Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/BanProxy; interface 96 'Lcom/
caar/app/XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/Ban;'
04-30 14:51:37.883: W/dalvikvm(1044): Link of class 'Lcom/caar/app/
XXXXXXXXXXXXXXXXXX/sessions/interfaces/ws/BanProxy;' failed
04-30 14:51:37.893: D/dalvikvm(1044): DexOpt: unable to opt direct
call 0x0517 at 0x0e in Lcom/caar/app/apisoapconnections/
ConnectToAPI;.<init>
04-30 14:51:37.903: D/AndroidRuntime(1044): Shutting down VM
04-30 14:51:37.903: W/dalvikvm(1044): threadid=1: thread exiting with
uncaught exception (group=0x409c01f8)
04-30 14:51:37.933: E/AndroidRuntime(1044): FATAL EXCEPTION: main
04-30 14:51:37.933: E/AndroidRuntime(1044):
java.lang.NoClassDefFoundError:
com.caar.app.apisoapconnections.XXXXXXXXXXXXXXXXXX.sessions.interfaces.ws.BanServiceLocator
04-30 14:51:37.933: E/AndroidRuntime(1044): at
com.caar.app.apisoapconnections.ConnectToAPI.<init>(ConnectToAPI.java:
26)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
com.caar.app.apisoapconnections.ApiSoapConnectionsActivity
$1.onClick(ApiSoapConnectionsActivity.java:104)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
android.view.View.performClick(View.java:3511)
04-30 14:51:37.933: E/AndroidRuntime(1044): at android.view.View
$PerformClick.run(View.java:14105)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
android.os.Handler.handleCallback(Handler.java:605)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
android.os.Handler.dispatchMessage(Handler.java:92)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
android.os.Looper.loop(Looper.java:137)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
android.app.ActivityThread.main(ActivityThread.java:4424)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
java.lang.reflect.Method.invokeNative(Native Method)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
java.lang.reflect.Method.invoke(Method.java:511)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-30 14:51:37.933: E/AndroidRuntime(1044): at
dalvik.system.NativeStart.main(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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Strange force close on Froyo phone, works fine on ICS tablet

30.44406N 86.59909W

在 2012-4-30 上午3:14,"Jim Graham" <spooky130u@gmail.com>写道:
On Sun, Apr 29, 2012 at 12:04:01PM -0700, Jonathan S wrote:
> java.lang.NoSuchFieldError: android.graphics.PorterDuff$Mode.ADD
>
> it is telling Mode.ADD is not exists in 2.2

Hmmmmm, according to the developers guide, it's existed since API
Level 1....  2.2 is API Level 8 .... Yeah, it exists in 2.2.

Besides, like I said, it's working perfectly happily in another part
of the code.  The mystery continues....  :-(

Later,
  --jim

--
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)        | DMR: So fsck was originally called
spooky130u@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fitting image to a screen

What exactly are you trying to accomplish?  You said "the returned image is stretched and doesn't fit the mobile screen size" but I don't see anywhere in your code where you are doing anything with the screen size of the device...  What exactly are you expecting and what exactly are you seeing?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 30, 2012 at 1:04 PM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:
No.


On Mon, Apr 30, 2012 at 10:53 PM, Justin Anderson <magouyaware@gmail.com> wrote:
Are you putting the Bitmap in an ImageView? 

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 30, 2012 at 12:44 PM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:


 Code:
 I have this code in the Activity result, when the user hits load, it will open the gallery allow him to choose a picture. The selected pictured is passed to another activity, here is where i'm facing the problem. The picture doesn't fit the screen.
     
                        
                Uri selectedimage= data.getData();

         Uri contentUri = data.getData();          

             String[] proj = { MediaStore.Images.Media.DATA };         

             Cursor cursor = managedQuery(contentUri, proj, null, null, null);         

             int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);         

             cursor.moveToFirst();         

             String tmppath = cursor.getString(column_index);

             

         Intent intent= new Intent(this,NasalProjectionActivity.class);

         intent.putExtra("imagePath",tmppath);

           startActivity(intent);  


 Receiving Activity,

 Thats what i have on the receiving activity.

    

     Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra("imagePath"));

        int newHe=750;

        int newWe=750;

       


        int width=b.getWidth();

        int height = b.getHeight();

        float scaleWidth = ((float) newWe) / width;

        float scaleHeight = ((float) newHe) / height;

        Matrix matrix = new Matrix();

        matrix.postScale(scaleWidth, scaleHeight);

        Bitmap resizedBitmap = Bitmap.createBitmap(b, 0, 0, width, height, matrix, false);         


Thanks alot

On Mon, Apr 30, 2012 at 7:51 PM, Justin Anderson <magouyaware@gmail.com> wrote:
What have you tried so far?  How are you loading the image?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Mon, Apr 30, 2012 at 1:55 AM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:
Hi!!

 I'm trying to load a picture from the gallery and display, everything
works fine except that the returned image is stretched and doesn't fit
the mobile screen size? I need help, thanks alot :)

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

Re: [android-developers] Fitting image to a screen

No.

On Mon, Apr 30, 2012 at 10:53 PM, Justin Anderson <magouyaware@gmail.com> wrote:
Are you putting the Bitmap in an ImageView? 

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 30, 2012 at 12:44 PM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:


 Code:
 I have this code in the Activity result, when the user hits load, it will open the gallery allow him to choose a picture. The selected pictured is passed to another activity, here is where i'm facing the problem. The picture doesn't fit the screen.
     
                        
                Uri selectedimage= data.getData();

         Uri contentUri = data.getData();          

             String[] proj = { MediaStore.Images.Media.DATA };         

             Cursor cursor = managedQuery(contentUri, proj, null, null, null);         

             int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);         

             cursor.moveToFirst();         

             String tmppath = cursor.getString(column_index);

             

         Intent intent= new Intent(this,NasalProjectionActivity.class);

         intent.putExtra("imagePath",tmppath);

           startActivity(intent);  


 Receiving Activity,

 Thats what i have on the receiving activity.

    

     Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra("imagePath"));

        int newHe=750;

        int newWe=750;

       


        int width=b.getWidth();

        int height = b.getHeight();

        float scaleWidth = ((float) newWe) / width;

        float scaleHeight = ((float) newHe) / height;

        Matrix matrix = new Matrix();

        matrix.postScale(scaleWidth, scaleHeight);

        Bitmap resizedBitmap = Bitmap.createBitmap(b, 0, 0, width, height, matrix, false);         


Thanks alot

On Mon, Apr 30, 2012 at 7:51 PM, Justin Anderson <magouyaware@gmail.com> wrote:
What have you tried so far?  How are you loading the image?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Mon, Apr 30, 2012 at 1:55 AM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:
Hi!!

 I'm trying to load a picture from the gallery and display, everything
works fine except that the returned image is stretched and doesn't fit
the mobile screen size? I need help, thanks alot :)

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

Re: [android-developers] Re: Bluetooth devices is pairing but not connecting

(@Kristopher: The OP doesn't have access to the other device's application
space - it's not a phone or tablet.)


>electronic frame is supporting bluetooth. So do you know for example
>how to send file any phone.my program giving error therefore uuid

It seems you need to use something called the Object Push Profile, so hit
your favourite search engine and start looking for information.

This Q/A post may help:

http://stackoverflow.com/questions/5577481/sending-a-file-using-bluetooth-obex-object-push-profile-opp


Fair warning, I have read a lot of flak about Bluetooth file sending not
working from [certain] phones so be prepared for a struggle.

This has now become more of a question about coding Bluetooth Profiles
rather than Android specifically, so perhaps this is no longer the place to
ask. *Your* turn to do some research.


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

Re: [android-developers] Fitting image to a screen

Are you putting the Bitmap in an ImageView? 

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Apr 30, 2012 at 12:44 PM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:


 Code:
 I have this code in the Activity result, when the user hits load, it will open the gallery allow him to choose a picture. The selected pictured is passed to another activity, here is where i'm facing the problem. The picture doesn't fit the screen.
     
                        
                Uri selectedimage= data.getData();

         Uri contentUri = data.getData();          

             String[] proj = { MediaStore.Images.Media.DATA };         

             Cursor cursor = managedQuery(contentUri, proj, null, null, null);         

             int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);         

             cursor.moveToFirst();         

             String tmppath = cursor.getString(column_index);

             

         Intent intent= new Intent(this,NasalProjectionActivity.class);

         intent.putExtra("imagePath",tmppath);

           startActivity(intent);  


 Receiving Activity,

 Thats what i have on the receiving activity.

    

     Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra("imagePath"));

        int newHe=750;

        int newWe=750;

       


        int width=b.getWidth();

        int height = b.getHeight();

        float scaleWidth = ((float) newWe) / width;

        float scaleHeight = ((float) newHe) / height;

        Matrix matrix = new Matrix();

        matrix.postScale(scaleWidth, scaleHeight);

        Bitmap resizedBitmap = Bitmap.createBitmap(b, 0, 0, width, height, matrix, false);         


Thanks alot

On Mon, Apr 30, 2012 at 7:51 PM, Justin Anderson <magouyaware@gmail.com> wrote:
What have you tried so far?  How are you loading the image?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Mon, Apr 30, 2012 at 1:55 AM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:
Hi!!

 I'm trying to load a picture from the gallery and display, everything
works fine except that the returned image is stretched and doesn't fit
the mobile screen size? I need help, thanks alot :)

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

Re: [android-developers] Re: Bluetooth devices is pairing but not connecting

You aren't understanding... This might not work unless the phone has
the proper service to grab it. Why don't you try using the similar
client / server implementation for transferring files?

kris

On Mon, Apr 30, 2012 at 2:39 PM, hüseyin toplu <hsynnt@gmail.com> wrote:
> electronic frame is supporting bluetooth. So do you know for example
> how to send file any phone.my program giving error therefore uuid
>
> On Apr 30, 8:56 pm, "Jason Teagle" <teagle.ja...@gmail.com> wrote:
>> >So i will use it send piture to electronic frame any ideas :S
>>
>> That may not be possible. From what I have seen through Googling, the target
>> device needs to have
>>
>> "File Transfer Profile" (OBEX FTP) and/or the "Object Push Profile" (OBEX
>> OPP) Bluetooth services
>>
>> enabled. For a phone, this may be possible - but assuming you mean some
>> non-phone device (Android or otherwise), it's unlikely that they would
>> support something like that unless they are specifically *designed* to
>> support Bluetooth transfer of files.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fitting image to a screen



 Code:
 I have this code in the Activity result, when the user hits load, it will open the gallery allow him to choose a picture. The selected pictured is passed to another activity, here is where i'm facing the problem. The picture doesn't fit the screen.
     
                        
                Uri selectedimage= data.getData();

         Uri contentUri = data.getData();          

             String[] proj = { MediaStore.Images.Media.DATA };         

             Cursor cursor = managedQuery(contentUri, proj, null, null, null);         

             int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);         

             cursor.moveToFirst();         

             String tmppath = cursor.getString(column_index);

             

         Intent intent= new Intent(this,NasalProjectionActivity.class);

         intent.putExtra("imagePath",tmppath);

           startActivity(intent);  


 Receiving Activity,

 Thats what i have on the receiving activity.

    

     Bitmap b = BitmapFactory.decodeFile(getIntent().getStringExtra("imagePath"));

        int newHe=750;

        int newWe=750;

       


        int width=b.getWidth();

        int height = b.getHeight();

        float scaleWidth = ((float) newWe) / width;

        float scaleHeight = ((float) newHe) / height;

        Matrix matrix = new Matrix();

        matrix.postScale(scaleWidth, scaleHeight);

        Bitmap resizedBitmap = Bitmap.createBitmap(b, 0, 0, width, height, matrix, false);         


Thanks alot

On Mon, Apr 30, 2012 at 7:51 PM, Justin Anderson <magouyaware@gmail.com> wrote:
What have you tried so far?  How are you loading the image?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware



On Mon, Apr 30, 2012 at 1:55 AM, Mohamed ElSanousi <mmurtada57@gmail.com> wrote:
Hi!!

 I'm trying to load a picture from the gallery and display, everything
works fine except that the returned image is stretched and doesn't fit
the mobile screen size? I need help, thanks alot :)

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

[android-developers] Re: Bluetooth devices is pairing but not connecting

electronic frame is supporting bluetooth. So do you know for example
how to send file any phone.my program giving error therefore uuid

On Apr 30, 8:56 pm, "Jason Teagle" <teagle.ja...@gmail.com> wrote:
> >So i will use it send piture to electronic frame any ideas :S
>
> That may not be possible. From what I have seen through Googling, the target
> device needs to have
>
> "File Transfer Profile" (OBEX FTP) and/or the "Object Push Profile" (OBEX
> OPP) Bluetooth services
>
> enabled. For a phone, this may be possible - but assuming you mean some
> non-phone device (Android or otherwise), it's unlikely that they would
> support something like that unless they are specifically *designed* to
> support Bluetooth transfer of files.

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

Re: [id-android] WTA: Gtab 7.0 2

Nulis di doc juga bisa loh
Coba deh

hTC One X
Android Revolution HD
@ocumudo
gtalk ocu.mudo@gmail.com
pm ocu@robotijo.org

On Apr 30, 2012 9:13 PM, "Andi - leo5354" <leo5354@se-ven.net> wrote:
Kalo hasilnya bukan dokumen ga kepake di gue
Live a dreaming life not a dream world

From: Ocu Mudo <ocu.mudo@gmail.com>
Date: Mon, 30 Apr 2012 21:06:43 +0700
Subject: Re: [id-android] WTA: Gtab 7.0 2

Stylus berguna utk nulis :)

hTC One X
Android Revolution HD
@ocumudo
gtalk ocu.mudo@gmail.com
pm ocu@robotijo.org

On Apr 30, 2012 2:32 PM, "Andi - leo5354" <leo5354@se-ven.net> wrote:
Stylus tp savenya gambar bukan dokumen kan ?
Useless kalo gue bilang
Live a dreaming life not a dream world

From: "Ocky Yonathan" <robot-ijo@tasgadget.web.id>
Date: Mon, 30 Apr 2012 02:45:54 +0000
To: Milis ID-Android<id-android@googlegroups.com>
Subject: Re: [id-android] WTA: Gtab 7.0 2

Tapi flyer isa stylus lho...

Regards,
@ockyyonathan

From: "Tony Piter" <liveturn@gmail.com>
Date: Mon, 30 Apr 2012 01:49:33 +0000
Subject: Re: [id-android] WTA: Gtab 7.0 2

Saya pernah pake evo view aka flyer cdma
Imo, jauhhh menang gtab2
Ga tau kalo flyer..

Yang paling mencolok yah beratnya, ics, dan tab2 bisa telpon
Apalagi dengan harga promo yang hampir sama :)

Jm2c
From: andy rianton <zeguym@gmail.com>
Date: Sun, 29 Apr 2012 19:22:47 +0700
Subject: Re: [id-android] WTA: Gtab 7.0 2

Tab 7 2.0 dibanding flyer/evo lebih worth mana yah?

On Apr 29, 2012 10:52 AM, "M Taufiq Akbari" <taufiq.akbari@gmail.com> wrote:

He....he...
tapi kagak banyak kepake ni IRnya

Tx Best Regards,

M. Taufiq Akbari

Sent using Samsung Galaxy S2

On Apr 29, 2012 10:36 AM, "Yoshwar S" <perangbintang@gmail.com> wrote:
setelah googling, ternyata ada 2 versi p6200, with and without IR. punya temen saya itu p6200 tanpa IR.
dan banyak juga yg ngomel2 karena gak dapet yg pake ir port (http://forum.xda-developers.com/showthread.php?t=1483586&page=2).

makin aneh nih samsung...

Salam,
Yoshwar

On Sun, Apr 29, 2012 at 1:36 AM, rudi android <rudiandroid09@gmail.com> wrote:

Kalo seri p 6200 pasti ada infra red nya.setahu saya seperti itu

On Apr 29, 2012 1:26 AM, "Yoshwar S" <perangbintang@gmail.com> wrote:
lho kok beda2 ya?
itu seri berapa bro? p6200 kah?

Salam,
Yoshwar

On Sat, Apr 28, 2012 at 1:45 PM, M Taufiq Akbari <taufiq.akbari@gmail.com> wrote:

Ada bro... Punya ana beli waktu launching.. Apa bisa beda seri??

Tx Best Regards,

M. Taufiq Akbari

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

[android-developers] Re: Debugging code that cause's a hardware restart of the phone :?

Ok, that seemed to help. Installing the Platform-tools seemed to put
the adb.exe where It should be.
Dumping the log to a file the last entries I see are:

D/dalvikvm( 1241): GC_FOR_MALLOC freed 10098 objects / 483816 bytes in
152ms
W/System.err( 1241): java.security.KeyStoreException: KeyStore jks
implementation not found
W/System.err( 1241): at
java.security.KeyStore.getInstance(KeyStore.java:134)
W/System.err( 1241): at
org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:
70)
W/System.err( 1241): at
org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:
824)
W/System.err( 1241): at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:
267)
W/System.err( 1241): at org.jivesoftware.smack.PacketReader.access
$000(PacketReader.java:43)
W/System.err( 1241): at org.jivesoftware.smack.PacketReader
$1.run(PacketReader.java:70)
V/libgps ( 104): DeferredActionThread pthread_cond_wait returned
D/RPC ( 104): written RPC packet size: [24]
D/RPC ( 104): read RPC packet
D/RPC ( 104): read RPC packet size: [284]
V/libgps ( 104): DeferredActionThread pthread_cond_wait returned
D/RPC ( 104): written RPC packet size: [24]
D/RPC ( 104): read RPC packet
D/RPC ( 104): read RPC packet size: [284]
V/libgps ( 104): DeferredActionThread pthread_cond_wait returned
D/RPC ( 104): written RPC packet size: [24]
D/RPC ( 104): read RPC packet
D/RPC ( 104): read RPC packet size: [284]
V/libgps ( 104): DeferredActionThread pthread_cond_wait returned
D/RPC ( 104): written RPC packet size: [24]


I am going to try cross referencing this with the Dalvik Debug Monitor
a few times too see if I really am getting more out of the saving too
file method VS just looking in the GUI.
I am a little skeptical I am seeing the real reason, as I would
expect the very last messages to be the ones causing the crash, rather
then a few more debug/normal stuff and then a hardware restart.

On Apr 30, 7:46 pm, Thomas Wrobel <darkfl...@gmail.com> wrote:
>  I am using XP/eclipse. I see all the normal logs coming from the
> device just fine, including many,many I put in my apps code.
>
> On searching for adb on my system it seems all I found is a polite
> note from google saying its been moved too
> "platform-tools/" in my android sdk directory.
> As that directory is not in my sdk directory, it tells me too install
> "Android SDK Platform-tools" which I will try now and post back in a
> bit.
>
> This is really odd to me though, as I thought adb was an essential
> part not a optional addon. Apparently ddsm.bat and logcat seem to be
> able to run without it though.
>
> On 30 April 2012 18:41, Robert Greenwalt <rgreenw...@google.com> wrote:
>
>
>
>
>
>
>
> > I don't know your environment, but you should have access to adb.
>
> > adb logcat
>
> > starts capturing some of the available debug streams.  To write it to a
> > file:
> > adb logcat > mylog.txt
> > or to log to file and to screen (on linux):
> > adb lgocat | tee mylog.txt
>
> > This will only record stuff from some of the log streams, but it defaults to
> > the common ones.  If you think your app is strictly to blame you can put in
> > log statements there too, but crashes should be logged for you.
>
> > adb bugreport > mybugreport.txt will capture the last buffers from all the
> > streams and much much more.
>
> > R
> > On Mon, Apr 30, 2012 at 8:34 AM, ThomasWrobel <darkfl...@gmail.com> wrote:
>
> >> Thanks for the replys. I am afraid I am ignorant of how to do that.
> >> So far I have just been using the Dalvik Debug Monitor, I can see
> >> options to save to a file, but not to log to a file continuously.
> >> Googleing around seems to infer I need to put code in my app to send
> >> the log to a file on the SD card, or use a Debugging library. Is this
> >> correct?
> >> Also, where is the bugreport located?
>
> >> Poly - I have nothing in my own code that effects the wifi manager
> >> API. However, I am using aSmack lib for XMPP communications that could
> >> do that. It doesn't seem too consistent though, as the crashes happen
> >> sometimes before I logon to a server.
> >> I suspect it might be ram related in some way, as the crashs are very
> >> inconsistent. Sometimes it crashes as soon as it loads, other times I
> >> can use it for a few minutes before crashing.
> >> I also use the JPCT 3D library in my app, as well as using the camera
> >> preview as a background, so the app is pretty heavy overall.
>
> >> Thanks again,
> >> Thomas
>
> >> On Apr 30, 5:00 pm, Robert Greenwalt <rgreenw...@google.com> wrote:
> >> > You can do a logcat before the crash, logging to a file.  Perhaps then
> >> > you'll get a better view of what happened before.
>
> >> > A post-crash bugreport may also have a copy of the previous kernel log
> >> > if
> >> > it's a kernel issue.
>
> >> > R
>
> >> > On Mon, Apr 30, 2012 at 7:52 AM, Pent <supp...@apps.dinglisch.net>
> >> > wrote:
> >> > > I've only ever (in over two years) seen reboots caused by changes made
> >> > > via the wifi manager API. If you're using it, I would start there.
>
> >> > > Pent
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups "Android Developers" group.
> >> > > To post to this group, send email to
> >> > > android-developers@googlegroups.com
> >> > > To unsubscribe from this group, send email to
> >> > > android-developers+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Debugging code that cause's a hardware restart of the phone :?

On Apr 30, 11:34 am, ThomasWrobel <darkfl...@gmail.com> wrote:
> I also use the JPCT 3D library in my app, as well as using the camera
> preview as a background, so the app is pretty heavy overall.

My first hunch would be issues in the platform openGL implementation
that probably uses.

It would be worth doing some web searching on the phone model - it's
possible others have found the same issue.

Also you may want to figure out if you are getting a kernel reboot, or
an android runtime framework crash & restart while the kernel
continues running. Once you get adb working, look in /proc/uptime
shortly after a crash - if it's a low number of seconds, your kernel
rebooted, if it's a high number likely just the framework crashed and
restarted. (You'll probably also see a bootloader splash screen after
a power-on or kernel reboot, before the more lengthy startup animation
that runs while the android runtime framework gets itself going.)

It goes without saying, that if the platform is working as intended,
there is nothing an app can do to cause a reboot, so the fact that it
is happening means something is broken with the device/android build.

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

Re: [android-developers] Re: Strange force close on Froyo phone, works fine on ICS tablet

On Mon, Apr 30, 2012 at 06:11:02PM +0100, Jason Teagle wrote:

> How does what you expect ADD to do differ from a combination such
> as, say, SRC_OVER (in the images shown at
> http://softwyer.wordpress.com/2012/01/21/1009/, 'SrcOver' looks like
> we're seeing the yellow circle through the grey square as it it were
> tinted glass, which was my understanding of what you wanted - how is
> ADD different)?

It would appear that ADD (Saturate(S+D)) and SRC_OVER
([Sa + (1 - Sa)*Da,Rc=Sc+(1-Sa)*Dc]) are, in fact, identical (for my
purposes, anyways), despite the differences in the math. I must have
missed this one before (that happens...cancer #1 blah blah blah). Why
they use different math, I don't know (or care). But it works. No
exclusion like the modes I tried (though I thought for sure I'd tried
SRC_OVER ... guess not).

And with that, I'm heading back to the code...I'm happy to be finished
wasting time on this bit. :-)

Thanks,
--jim

--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4) | Tux (E Cat): DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky130u@gmail.com | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
< Running FreeBSD 7.0 > |
ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L W C+++/C+
30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [id-android] HTML Composer v0.1.1 (alpha)

Jenis face font

1. Sans 32 | font biasa bawaan gmail
2. Serif 32 | font biasa bawaan gmail

#Resopa temmangingi malomo naletei pammase dewata#
Meisys Power MP 200/201
kWh prabayar karya anak bangsa

On May 1, 2012 1:08 AM, "Muh Fitrah" <fitrahmuh@gmail.com> wrote:

Kalau bisa untuk custom font Warna prinsipnya sama dengan bold italic underline tidak perlu select word coz agak ribet :)


#Resopa temmangingi malomo naletei pammase dewata#
Meisys Power MP 200/201
kWh prabayar karya anak bangsa

On May 1, 2012 1:02 AM, "Muh Fitrah" <fitrahmuh@gmail.com> wrote:

Cek replay email dari Desire Z
Biru serif 27 ini font biasa
Pink highlight abu-abu




#Resopa temmangingi malomo naletei pammase dewata#
Meisys Power MP 200/201
kWh prabayar karya anak bangsa

On May 1, 2012 12:59 AM, "Muh Fitrah" <fitrahmuh@gmail.com> wrote:

Cek replay email dari Desire Z
Biru serif 27
Pink highlight abu-abu




#Resopa temmangingi malomo naletei pammase dewata#
Meisys Power MP 200/201
kWh prabayar karya anak bangsa

On Apr 30, 2012 9:24 PM, "Sony Noorwant Yulianto" <sony.ny@gmail.com> wrote:
Met malem RR, 

Setelah kutak-kutik sana-sini diwaktu yang sempit, bener-bener lg overload :)
untuk mewujudkan request Om Renner di millis tempo hari :)
akhirnya baru kali ini ber-kesempetan untuk share HTML Composer v0.1.1 alpha, 
  
Feature v0.1.1:
- Update New UI
- Create/Edit/Delete Note (apabila ingin mengirimkan email untuk lain waktu, kepikiran waktu ngetes nulis berkali-kali... xixixi)
- Add Button Style for insert Tag HTML
- Support font style Bold, italic, underline
- Support font face Sans, Serif
- Support font color Red, GreenBlue, and Many others
- Support highlight color
- Support font size
- Share to Native Gmail and other applications 

Tadinya mau nunggu komplit dulu, tp mungkin ada tambahan ide dari RR, yg bisa ditambahkan sekalian :)

Saat ini baru bisa di share (Compose New Email) include Native Gmail smoga dalam waktu dekat bisa segera copast (menurut sy ini feature terpentingnya :))
untuk share ke native Gmail baru bisa font style, font face, dan font color.

Sementara ini dulu, mohon reviewnya ... :)

--
Salam,
Sony NY

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

--
"Indonesian Android Community" Join: http://forum.android.or.id
 
===============
Download Aplikasi Kompas versi Digital dan Keren
https://play.google.com/store/apps/details?id=com.kompas.android.kec
--------------------------
Follow Official Twitter Indosat:
http://twitter.com/indosatmania
---------------------
Lex-ON http://www.Lex-ON.com - Plaza Semanggi
E-mail: sales@Lex-ON.com Tlp: 021-70952539
---------------------
GSM-AKU http://www.gsmaku.com - BEC Bandung
E-mail: syafrul@gsmaku.com Hp: 0881-1515151
---------------------
EceranShop http://eceranshop.com - BEC Bandung
E-mail: willy@eceranshop.com Hp: 0815-56599888
===============
 
Aturan Umum dan Jualan/Kloteran ID-Android http://goo.gl/arJ5x

[android-developers] removing image data from memory

I have to believe there's a way to clear image data from memory once it's no longer required, but despite exhaustive searching I can't find a solution.  Both this list and stack are full of questions regarding OOM errors, specifically "bitmap size exceeds VM budget", but I still don't see a clear answer.

I understand there are hard memory limits on devices, and I understand it's not realistic to load up and display or cache large amounts of image data, but there should be away to discard data that's no longer required.

For example, imagine this very basic hypothetical app, that emulates a lot of the behavior of the native gallery app:

1. An image gallery that allows the user to peruse images from a remote server.
2. There might be any number of images on that server.
3. The app displays 1 image at a time, and allows a user to go back or forward 1 image at a time through button presses or swiping.
4. There'd be a maximum of 3 images rendered at any one time (so the user can see the one immediately to the left or right of the current image when swiping).  All other image data should be discarded.
5. Images are loaded using URL.openStream and Drawable.createFromStream or BitmapFactory.decodeStream.  Streams are closed appropriately.
6. Images are sized appropriately *on the server* before being fetched.
7. Loading happens in AsyncTasks.  Tasks that are no longer needed (due to moving away from an image with an incomplete task) are cancelled.  Any references in the AyncTask are WeaklyReferenced.
8. When any image is no longer required, it's "cleared" via:
  A) getBackground().setCallback(null)
  B) Listeners are set to null
  C) setImageDrawable/Bitmap(null)
  D) removeView

This simple construct, that takes into account all the suggest practices I'm aware of, will inevitably crash with an OOM error at some point.  Using BitmapFactory.Options inSampleSize and inPreferredConfig will delay the inevitable, but not forever, and at the cost of image quality.  In this example, I've used remote images, but the issue exists with images stored in /assets/ or in internal memory, etc.

My feeling is that if we can display X amount of image data at one point, and we take all steps to remove that image data from memory, we should be able to display that same amount of data later, without having to compensate for what has happened before.

With the sheer quantity of questions about this very issue, I'd hope to have a standard solution documented, but if there is one, I can't find it.  I've seen answers posted by Romain Guy, who otherwise seems very generous with his knowledge and active in the community, that say something like "Simple.  Don't use so much memory".  OK.  Tell me how.

Am I missing something fundamental?  Is there a way to discard image data once it's no longer being used?  What is missing from the above to create a simple photo gallery?  Assuming the built-in gallery app uses the FW, I imagine there has to be a way...

TYIA.


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