Pages

Monday, June 29, 2015

8-core Lenovo phone for 135 Euros!

Forget the huge modern mobile phones. I think my next phone will be something like this:
Lenovo A806

List of custom ROMs for Lenovo phones - here

There are also Xiaomi models available and those could be an even better deal.

Sunday, June 28, 2015

Updating Amazon country settings

Purchasing e-books from Amazon can be confusing if you have accounts in multiple countries. Apparently, there can be only one country active and it defines which Kindle store can be used to purchase e-books. Below is the link to the country settings where the country can be selected:
http://www.amazon.com/myx

Sunday, June 14, 2015

DriveDroid

Mount drives to a PC directly from an Android device

https://play.google.com/store/apps/details?id=com.softwarebakery.drivedroid&hl=en&referrer=utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_term%3Ddrivedroid&pcampaignid=APPU_1_Mi59Ve6EG8H1UsOigJAK

Saturday, June 13, 2015

What is Code? A perspective of the other side

http://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/

Friday, June 05, 2015

Wickr - a safe messenger

Wickr is one of the better solutions in the wave of safe messaging platforms appearing as of late.
Link
 

Thursday, June 04, 2015

Adding a dropdown (spinner) to toolbar in Android app

Here is a very elegant and simple solution on how to add a Spinner (a dropdown) to a toolbar in an Android app.
Add a Spinner as menu item and set the action view class

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:yourapp="http://schemas.android.com/apk/res-auto" >

  <item android:id="@+id/spinner"
    yourapp:showAsAction="ifRoom"
    yourapp:actionViewClass="android.widget.Spinner" />
</menu>

Then handle the contents in onCreateMenuItem, as usual.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.menu_layout, menu);
    MenuItem item = menu.findItem(R.id.spinner);
    Spinner spinner = (Spinner) MenuItemCompat.getActionView(item);
    spinner.setAdapter(adapter); // set the adapter to provide layout of rows and content
    s.setOnItemSelectedListener(onItemSelectedListener); // set the listener, to perform actions based on item selection
} 

Source