[android-developers] Re: Nested layouts in separate XML

2011-01-31 Thread MerlinBG
I am really surprised to see this thread! I have googled how to nest XML-based layouts, assuming it is possible, however found this. This is a basic functionality, guys. There are some threads around about why to use XML based layouts, MVC, etc... and I agree that extracting the view in XML is

[android-developers] Re: Should a service maintain a reference to a Broadcast Receiver

2011-01-31 Thread Doug
On Jan 31, 8:14 pm, AndroidDevTime androiddevd...@gmail.com wrote: Is it a bad practice to maintain a service level reference to a BroadcastReceiver?  I do see there is a service level method service.registerReceiver  Under what situations is it appropriate to register the

[android-developers] Re: Subclassing Android Application

2011-01-31 Thread gjs
Hi, This has been discussed fairly extensively eg http://groups.google.com/group/android-developers/browse_thread/thread/b48f0fa3784f8e27/f2c256026a0962cf?lnk=gstq=One+process,+two+live+Application+objects%3F#f2c256026a0962cf Regards On Feb 1, 3:50 pm, TreKing treking...@gmail.com wrote: On

[android-developers] Meaning of getMobileRxPackets and getTotalRxBytes in TrafficStats

2011-01-31 Thread Alex Munteanu
What exactly means getMobileRxBytes () ? Get the total number of bytes received through the mobile interface. Total number since when ? Device boot, phone unplug ? Also getTotalRxBytes ? Get the total number of bytes received through all network interfaces. What interfaces beside mobile and WI-FI

[android-developers] opengles 2.0 sdk issues on Droid X

2011-01-31 Thread mrmanuke
I'm having some problems with the froyo sdk implementation of gles20. My game is working without problems on two Snapdragon devices (Sharp Galapagos and HTC Desire). However, they will not work properly on a Droid X. So far, I have these two problems: 1. Shaders will not compile on the Droid X

[android-developers] Re: Problems storing images with Base64 encode into a row of a SQL DB

2011-01-31 Thread JAlexoid (Aleksandr Panzin)
Get the database from your device, or emulator, and check it with local tools. SQLite3 has a lot of GUIs BLOBs were designed specifically for usage as you need. On 31 янв, 20:02, saex elpablos...@gmail.com wrote: 0 down vote favorite Hi i'm encodding images with Base64 into Strings, and i

[android-developers] Re: Picking images from gallery (SD Card) on my app… ¿How to allow only max 500kb photos?

2011-01-31 Thread JAlexoid (Aleksandr Panzin)
new File(filePath).length(); // gets you size in bytes On 31 янв, 18:58, saex elpablos...@gmail.com wrote: Hi, **WHAT I HAVE DONE NOW:** i am picking images on my app with android, and showing them on a ImageView of my layout, and sometimes i got an exception `java.lang.OutOfMemoryError:

<    1   2