Showing posts with label android. Show all posts
Showing posts with label android. Show all posts
Wednesday, October 28, 2015
Thursday, November 22, 2012
Speed up virtual android
To run the android emulator fast and smooth - use an x86 image with hardware visualization enabled.
To enable the virtualization: on windows, simple just install the "Intel x86 Emulator Accelerator (HAZM)". The install package could be downloaded using the Android SDK Manager.
On Linux (Debian) make sure the following packages are installed:
qemu-kvm, libvirt-bin
To run the emulator as a kernel-based virtual machine, execute:
emulator-x86 -avd -kernel android-sdk-linux_x86/system-images/android-16/x86/kernel-qemu -qemu -m 512 -enable-kvm
To enable the virtualization: on windows, simple just install the "Intel x86 Emulator Accelerator (HAZM)". The install package could be downloaded using the Android SDK Manager.
On Linux (Debian) make sure the following packages are installed:
qemu-kvm, libvirt-bin
To run the emulator as a kernel-based virtual machine, execute:
emulator-x86 -avd
Wednesday, November 21, 2012
Crypted Jelly Bean fix
Android v4.2 changed default provider for
The solution is quite simple. Just add explicitly specified provider as the second parameter of the SecureRandom.getInstance() method:
SecureRandom sr = SecureRandom.getInstance( "SHA1PRNG", "Crypto" );
Read more here
SecureRandom. Because of that the Cipher throws this exception on v4.2: BadPaddingException: pad block corrupted.The solution is quite simple. Just add explicitly specified provider as the second parameter of the SecureRandom.getInstance() method:
SecureRandom sr = SecureRandom.getInstance( "SHA1PRNG", "Crypto" );
Read more here
Friday, October 26, 2012
Android application I recommend
RealCalc
Scientific Calc - very good calculator (does RPN too)
Bookmark
Tree Manager - organizes the
browser's bookmarks in to a hierarchy
Cool
Reader - very good e-books
reader
TuneIn Radio Pro - radio -
music and talks from all over the world
Google
Goggles - scans pictures,
labels, QR codes, BAR-codes, texts and gives the
digital result or links
Greed
- RSS reader. All favorite news and
digests in one place
2X
Client RDP - remote desktop
client. Works very well
My-Cast
Weather - best weather
application I've found
Ghost
Commander File Manager -
file manager (copy move organize files (music,
book, pictures, etc.)). FTP client
Photo
Slides (Photo Frame) photo
slide show. (If you practice a martial art or
similar you can have a set of photos of
positions and then exercise by following the
pictures the app shows in sequence)
Wifi
Analyzer - show
how strong the WiFi networks nearby. May
be it's a good idea to change the freq.
channel for your own network?
Screen
Filter - makes
the display even more dimmer
Pedometer
***NEW***
- counts your steps while you're
running or walking
Quick
System Info PRO - shows
comprehensive information
about your phone, processes,
services, applications and
network connections
Friday, October 5, 2012
PB new version
PlayBook has been updated to OS v2.1 !
Now all the Android apps are launched in each own separate windows.
That's a great achievement, no doubts.
PB is so picky and does not want to be charged via a data cable, but it seems it does charge via a "not-data" cable. I don't understand, what's the difference between cables?
Apparently, there are tow charging modes. When the battery icon has a power plug on it and when it has a lightning bolt. I think in the second case it charges faster.
Saturday, August 18, 2012
Making room space
Why i didn't do that long ago? Tired fighting for a free space on the /data partition i just have moved the most huge .apk files to the /system/app folder and restarted the phone. Now I have whole 40Mb free on /data part. Silly amount for a modern device, but quite valuable for me.
Wednesday, February 29, 2012
So, RIM made a gesture and sent me new BlackBerry PlayBook tablet for free. I really appreciate that, thank you, RIM.
Now, about the device. What's good:
1) It's well made. The display is superb, the case is sound.
2) It has 16Gb memory on it, no SD card slot though.
What's not so good:
1) It's pretty heavy. Bot since the case is covered with rubber plastic, there is no problem to keep it in hands.
2) Although it has on the most capacious battery in the class, it discharges very fast, even when the tablet just lays on the shelf doing nothing (and wifi is off). And there's no way to replace the battery.
3) It does not support regular android applications. Even if the application package is converted and signed, there's a high probability, the app will refuse to work properly. And I think it was a bad idea to let the recent application icons be shown in the android player after an android application has closed. It makes the android applications look like foreign pieces and not desirable when an user searches for an application in the AppWorld.
I wish RIM will review its vision and make the Android platform the primary, leaving the ability to run the AIR applications as well.
Now, about the device. What's good:
1) It's well made. The display is superb, the case is sound.
2) It has 16Gb memory on it, no SD card slot though.
What's not so good:
1) It's pretty heavy. Bot since the case is covered with rubber plastic, there is no problem to keep it in hands.
2) Although it has on the most capacious battery in the class, it discharges very fast, even when the tablet just lays on the shelf doing nothing (and wifi is off). And there's no way to replace the battery.
3) It does not support regular android applications. Even if the application package is converted and signed, there's a high probability, the app will refuse to work properly. And I think it was a bad idea to let the recent application icons be shown in the android player after an android application has closed. It makes the android applications look like foreign pieces and not desirable when an user searches for an application in the AppWorld.
I wish RIM will review its vision and make the Android platform the primary, leaving the ability to run the AIR applications as well.
Sunday, December 25, 2011
emulator's system partition
To put some extra files to android emulator's /system partition, do not run the emulator from eclipse or the AVD manager.
Instead, use the following command line:
emulator –avd youravdname –partition-size 128
http://www.cuteandroid.com/tips-for-android-developer-failed-to-copy-file-to-system
Instead, use the following command line:
emulator –avd youravdname –partition-size 128
http://www.cuteandroid.com/tips-for-android-developer-failed-to-copy-file-to-system
Friday, November 4, 2011
Thursday, November 3, 2011
Tuesday, March 22, 2011
Android versions we have
Android developer console has a new statistic feature.
In that we can see the current Android's version distribution:
Android 2.2 - 57.8%
Android 2.1 - 29.0%
Android 1.6 - 6.8%
Android 1.5 - 4.9%
Android 2.3.3 - 0.6%
Gingerbread already available for 5 month (from when it was first introduced), and still has a tiny share.
Will the other makers start to install it on their devices some day or it will never happen due the enormous Gingerbread ugliness?
In that we can see the current Android's version distribution:
Android 2.2 - 57.8%
Android 2.1 - 29.0%
Android 1.6 - 6.8%
Android 1.5 - 4.9%
Android 2.3.3 - 0.6%
Gingerbread already available for 5 month (from when it was first introduced), and still has a tiny share.
Will the other makers start to install it on their devices some day or it will never happen due the enormous Gingerbread ugliness?
Tuesday, December 28, 2010
G
The first impression of the new Android cookery called "Gingerbread" - definitely do not like it.
It slow as hell, ugly black, nice round corners of buttons now straight and sharp.
Why everything becomes worse???
It slow as hell, ugly black, nice round corners of buttons now straight and sharp.
Why everything becomes worse???
Thursday, August 12, 2010
a tweak
Android browser can be switched to adwanced settings mode, just type in the address bar: "about:debug".
In this mode you can change the UserAgent string to desktop or iphone in the browser's settings.
Some sites provide their mobile version only when they see the iphone UA string, not the one android sends.
In this mode you can change the UserAgent string to desktop or iphone in the browser's settings.
Some sites provide their mobile version only when they see the iphone UA string, not the one android sends.
Wednesday, August 11, 2010
map soft for Android
Out of two offline map competitors - the Rmaps and the Orux maps
I've choosed the second. Rmaps has been uninstalled, bye bye.
Here is why:
1. Tracks recording. In Orux it's a much more advanced feature.
2. Custom jpeg map creation ability. There is a program which lets you take any jpeg and use it as a map in Orux.
3. Orux has first little confusing, but much more advanced UI.
I've choosed the second. Rmaps has been uninstalled, bye bye.
Here is why:
1. Tracks recording. In Orux it's a much more advanced feature.
2. Custom jpeg map creation ability. There is a program which lets you take any jpeg and use it as a map in Orux.
3. Orux has first little confusing, but much more advanced UI.
Saturday, July 10, 2010
mime action sending
Found a bug in Android API. In the following code,
if the file name has a space character, the result mime is null.
File f = some_file;
String mime = null;
MimeTypeMap mime_map = MimeTypeMap.getSingleton();
mime = mime_map.getMimeTypeFromExtension( MimeTypeMap.getFileExtensionFromUrl( f.getAbsolutePath() ) );
Also, there is another problem. Even though I pass the correct mime type along the file stream calling the Intent.ACTION_SEND activity, the resulting email has the file section without any "content-type" field!
if the file name has a space character, the result mime is null.
File f = some_file;
String mime = null;
MimeTypeMap mime_map = MimeTypeMap.getSingleton();
mime = mime_map.getMimeTypeFromExtension( MimeTypeMap.getFileExtensionFromUrl( f.getAbsolutePath() ) );
Also, there is another problem. Even though I pass the correct mime type along the file stream calling the Intent.ACTION_SEND activity, the resulting email has the file section without any "content-type" field!
Monday, July 5, 2010
A taste of Froyo
Finally my N1 has been upgraded to version 2.2 "Froyo".
The download of 44Mb was completely stealthy - no idea when it took time to do that, at least I did not notice anything (WiFi is turned on only time to time). Hope it did not used the cell network, or else it will cost me a lot.
Here's what I like and what I don't about the new version:
1. + Like the phone button on every home page. It covers the lack of the hardware phone button a little (what a stupid idea - to remove the phone button from a phone?)
2. + Flash in browser is a cool addition! Expected it instantly, but it turned up I need to install the Adobe Flash application from the Market.
3. +/- The applications screen now autorotates in both directions - to the left and to the right. It'd be better if there be an option.
4. Number of last used application icons is increased to eight. Big achievement!
5. Autobrightness mode is added to the control bar. Not sure.
6. Moving apps to the SD card works, but I don't need it, at least now.
Now about the bad:
7. The Skype application stopped working properly. I had to remove the battery twice after the phone's completely freeze. Even if it's a Skype problem and has been already fixed, because the application is not on the Market anymore it's impossible to make the update.
The download of 44Mb was completely stealthy - no idea when it took time to do that, at least I did not notice anything (WiFi is turned on only time to time). Hope it did not used the cell network, or else it will cost me a lot.
Here's what I like and what I don't about the new version:
1. + Like the phone button on every home page. It covers the lack of the hardware phone button a little (what a stupid idea - to remove the phone button from a phone?)
2. + Flash in browser is a cool addition! Expected it instantly, but it turned up I need to install the Adobe Flash application from the Market.
3. +/- The applications screen now autorotates in both directions - to the left and to the right. It'd be better if there be an option.
4. Number of last used application icons is increased to eight. Big achievement!
5. Autobrightness mode is added to the control bar. Not sure.
6. Moving apps to the SD card works, but I don't need it, at least now.
Now about the bad:
7. The Skype application stopped working properly. I had to remove the battery twice after the phone's completely freeze. Even if it's a Skype problem and has been already fixed, because the application is not on the Market anymore it's impossible to make the update.
Sunday, May 30, 2010
The Dialog pain is to end!
Android API has one unpleasant feature which significantly spoils the pleasure of the development: No way to pass a not constant value to dialog after it recreates on a screen rotation.
Here is a workaround: disabling to stop the activity on orientation change.
It saves a day, thanks so much!
Here is a workaround: disabling to stop the activity on orientation change.
It saves a day, thanks so much!
Tuesday, May 18, 2010
Meanwhile
My Nexus One has retired. Again. Hopefully the HTC will send me another replicant soon.
While waiting it back I decided to change the system to a Tattoo on my old good Kaiser because I get tired of that blurry resized image and already get used to the sharp and crispy off the Nexus.
Tattoo system has the same resolution as Kaiser - 320x200, so it should fit.
The install process went smoothly (I took the source from here). Then I found the Wi-Fi does not work. I took an update from here, but standard /sdcard/andboot/androidupdate.tar update did not help. Comparing I found out the sysinit.rc is still different, and placed it manually. Then WiFi started working.
Current issue - the market client can not connect to the server, throws
DEBUG/vending(5478): com.android.vending.api.FatalCommunicationException: Sent a bad request.
Repair update: HTC sends the replacement phone overnight in the same day as they receive the broken one. Outstanding!
While waiting it back I decided to change the system to a Tattoo on my old good Kaiser because I get tired of that blurry resized image and already get used to the sharp and crispy off the Nexus.
Tattoo system has the same resolution as Kaiser - 320x200, so it should fit.
The install process went smoothly (I took the source from here). Then I found the Wi-Fi does not work. I took an update from here, but standard /sdcard/andboot/androidupdate.tar update did not help. Comparing I found out the sysinit.rc is still different, and placed it manually. Then WiFi started working.
Current issue - the market client can not connect to the server, throws
DEBUG/vending(5478): com.android.vending.api.FatalCommunicationException: Sent a bad request.
Repair update: HTC sends the replacement phone overnight in the same day as they receive the broken one. Outstanding!
Sunday, April 4, 2010
Exception fight
Yet again that java.lang.IllegalStateException occurs with "The content of the adapter has changed but ListView did not receive a notification".
Looking on the platform source, I see the following:
This is thrown in the ListView.layoutChildren() when adapter's getCount() is not equal to AdapterView<>.mItemCount.
AdapterDataSetObserver in an inner class of AdapterView<>, it assigns the AdapterView<>.mItemCount in own method onChanged() taking the value from the adapter (AdapterView.java:778).
An AdapterDataSetObserver instance is AbsListView.mDataSetObserver, created in ListView.setAdapter()
Where that onChanged() called from? It need to be called before the adapter starts reportn the new count number. I see it's called only on some header/footer adds and removes in the ListView class.
mDataSetObservable is created in BaseAdapter and notifyDataSetChanged() passed to it.
Assuming those objects are related, I just need to change the data in adapter in the UI thread on completion and then call notifyDataSetChanged()
Looking on the platform source, I see the following:
This is thrown in the ListView.layoutChildren() when adapter's getCount() is not equal to AdapterView<>.mItemCount.
AdapterDataSetObserver in an inner class of AdapterView<>, it assigns the AdapterView<>.mItemCount in own method onChanged() taking the value from the adapter (AdapterView.java:778).
An AdapterDataSetObserver instance is AbsListView.mDataSetObserver, created in ListView.setAdapter()
Where that onChanged() called from? It need to be called before the adapter starts reportn the new count number. I see it's called only on some header/footer adds and removes in the ListView class.
mDataSetObservable is created in BaseAdapter and notifyDataSetChanged() passed to it.
Assuming those objects are related, I just need to change the data in adapter in the UI thread on completion and then call notifyDataSetChanged()
Monday, March 29, 2010
Beware - Nexus One!
If you don't have unlimited wireless internet access, - BEWARE!
Nexus One's default installed widgets download more the 8Mb of data right after you turn the device on.
Nexus One's default installed widgets download more the 8Mb of data right after you turn the device on.
Subscribe to:
Posts (Atom)