Saturday, June 17, 2017
Dictionary on your mobile phone
Dictionary on your mobile phone
If someone told you that you are a walking dictionary, it only means that youre a genius person.
Well, you dont need to be a genius to know most of the meaning of each word that youre encountering.
With an smartphone on your hand, you can now search the meaning of the word with just a simple searching on your handy dictionary.
One of the earliest dictionary we have is Merriam Dictionary.
They conquer the internet when theyve launched their website Merriam-Webmaster.
Now, you can download a version of it that is applicable to your mobile phone.

Dictionary - Merriam-Webster
by Merriam-Webster Inc.
DOWNLOAD Dictionary - Merriam-Webster
Features:
* Synonyms & Antonyms
* Voice Search
* Example Sentences
* Audio Pronunciations
* Word of the Day
* Favorites - lets you keep a list of words that are particularly interesting to you
* For Tablets: Scrolling Index - lets you browse the entire dictionary
* For Phones: Reader View - lets you hide navigation buttons to see text in full screen
* Recent History - lets you keep track of the words youve looked up
Saturday, May 6, 2017
Detect phone type and network type
Detect phone type and network type
Android example to detect phone (CDMA, GSM, SIP or NONE) type and network type (CDMA, EDGE, GPRS, LTE...etc).

MainActivity.java
package com.blogspot.android_er.androidphone;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView textPhoneType = (TextView)findViewById(R.id.textphonetype);
TextView textNetworkType = (TextView)findViewById(R.id.textnetworktype);
TelephonyManager telephonyManager =
(TelephonyManager) getApplicationContext()
.getSystemService(Context.TELEPHONY_SERVICE);
if(telephonyManager == null){
textPhoneType.setText("not supported TELEPHONY_SERVICE");
}else{
int phoneType = telephonyManager.getPhoneType();
int networkType = telephonyManager.getNetworkType();
textPhoneType.setText(
"Phone Type: " + phoneType + " " + decPhoneType(phoneType));
textNetworkType.setText(
"Network Type: " + networkType + " " + decNetworkType(networkType));
}
}
private String decPhoneType(int type){
String result = "";
switch(type){
case TelephonyManager.PHONE_TYPE_CDMA:
result = "CDMA";
break;
case TelephonyManager.PHONE_TYPE_GSM:
result = "GSM";
break;
case TelephonyManager.PHONE_TYPE_NONE:
result = "NONE";
break;
case TelephonyManager.PHONE_TYPE_SIP:
result = "SLIP";
break;
default:
result = "unknown type";
}
return result;
}
private String decNetworkType(int type){
String result = "";
switch(type){
case TelephonyManager.NETWORK_TYPE_1xRTT:
result = "1xRTT";
break;
case TelephonyManager.NETWORK_TYPE_CDMA:
result = "CDMA";
break;
case TelephonyManager.NETWORK_TYPE_EDGE:
result = "EDGE";
break;
case TelephonyManager.NETWORK_TYPE_EHRPD:
result = "EHRPD";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_0:
result = "EVDO_0";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_A:
result = "EVDO_A";
break;
case TelephonyManager.NETWORK_TYPE_EVDO_B:
result = "EVDO_B";
break;
case TelephonyManager.NETWORK_TYPE_GPRS:
result = "GPRS";
break;
case TelephonyManager.NETWORK_TYPE_HSDPA:
result = "HSDPA";
break;
case TelephonyManager.NETWORK_TYPE_HSPA:
result = "HSPA";
break;
case TelephonyManager.NETWORK_TYPE_HSPAP:
result = "HSPAP";
break;
case TelephonyManager.NETWORK_TYPE_HSUPA:
result = "HSUPA";
break;
case TelephonyManager.NETWORK_TYPE_IDEN:
result = "IDEN";
break;
case TelephonyManager.NETWORK_TYPE_LTE:
result = "LTE";
break;
case TelephonyManager.NETWORK_TYPE_UMTS:
result = "UMTS";
break;
case TelephonyManager.NETWORK_TYPE_UNKNOWN:
result = "UNKNOWN";
break;
default:
result = "unknown type";
}
return result;
}
}
layout/activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_layout_width="match_parent"
android_layout_height="match_parent"
android_padding="16dp"
android_orientation="vertical"
tools_context="com.blogspot.android_er.androidphone.MainActivity">
<TextView
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_layout_gravity="center_horizontal"
android_autoLink="web"
android_text="http://android-er.blogspot.com/"
android_textStyle="bold" />
<TextView
android_id="@+id/textphonetype"
android_layout_width="match_parent"
android_layout_height="wrap_content" />
<TextView
android_id="@+id/textnetworktype"
android_layout_width="match_parent"
android_layout_height="wrap_content" />
</LinearLayout>
Wednesday, April 5, 2017
Discounted airtime for your cell phone – where’s the best price
Discounted airtime for your cell phone – where’s the best price
It�s been a while since I updated my �Buying Airtime Calculator� calculator (Feb 2009), so I decided to do another Bing search (anyone noticed that I�m avoiding Google?). Truth-be-told, I was spurred to update the calculator after I saw a Tweet from @HifiCorp: �Now you can talk for more while paying less with our discount prepaid airtime offers! http://bit.ly/l2Q3Zz�. The link takes you to a very large pdf file � I�ve snipped the great pricing:
Or in tabular form from the calculator here:
| Vendor | CreditCard | Date | Airtime Value | Actual Cost | Discount | |
| Vodacom | HiFiCorp | Yes | Jun-11 | 5.00 | 4.70 | 6.00% |
| Vodacom | HiFiCorp | Yes | Jun-11 | 12.00 | 10.90 | 9.17% |
| Vodacom | HiFiCorp | Yes | Jun-11 | 29.00 | 26.90 | 7.24% |
| Vodacom | HiFiCorp | Yes | Jun-11 | 55.00 | 49.90 | 9.27% |
| Vodacom | HiFiCorp | Yes | Jun-11 | 110.00 | 99.90 | 9.18% |
| MTN | HiFiCorp | Yes | Jun-11 | 5.00 | 4.60 | 8.00% |
| MTN | HiFiCorp | Yes | Jun-11 | 10.00 | 9.30 | 7.00% |
| MTN | HiFiCorp | Yes | Jun-11 | 15.00 | 13.90 | 7.33% |
| MTN | HiFiCorp | Yes | Jun-11 | 30.00 | 28.50 | 5.00% |
| CellC | HiFiCorp | Yes | Jun-11 | 5.00 | 4.60 | 8.00% |
| CellC | HiFiCorp | Yes | Jun-11 | 10.00 | 9.30 | 7.00% |
| CellC | HiFiCorp | Yes | Jun-11 | 25.00 | 22.70 | 9.20% |
| CellC | HiFiCorp | Yes | Jun-11 | 35.00 | 30.80 | 12.00% |
| CellC | HiFiCorp | Yes | Jun-11 | 50.00 | 45.50 | 9.00% |
Download the updated calculator which also lists the outlets that I could find here: http://www.mediafire.com/file/l6bq6ioa44wwl7q/BuyingAirtimeCalculatorJune2011.xls
Anyone notice that they don�t list the new provider 8ta? Do they even sell 8ta airtime?
That�s not just a question �out of the blue�� I�m getting suspicious about why GoogleAdsense suspended my account almost immediately after I posted this article on 8ta�s �special�: �I knew there had to be a catch with that 8ta deal for a Blackberry for R90 per month.... with free calls to a landline number�.
8ta was an advertiser on my blog � in fact the questions that I received were from readers asking about �my ad� on �my blog site�.
Since Google Adsense will not tell me the reason(s) for the suspension I will continue to speculate � and believe that this is the reason.