編輯:高級開發
For example, if you have a IntentReceiver class name MyReceiver..
In androidManifest.XML
Error: MyReceiver does not extend android.context.BroadcastReceiver
In MyReceiver class defination
Error: Cannot resolve type IntentReceiver
Solution:
replace
import android.content.IntentReceiver;
public class MyReceiver extends IntentReceiver
{
@Override
public void onReceiveIntent(Context context, Intent intent)
{
}
}
Notes:
Detailed Problem Description:
replace@Overridewith
protected void onFreeze(Bundle outState) {
super.onFreeze(outState);
}
Solution:
@OverrideNotes:
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
}
Detailed Problem Description:
replacewith
Solution:
Notes:
Detailed Problem Description:
Error: Resource is not public..Solution:
Check the public resources @ docs/reference/android/package-summary.HtmlNotes:
Detailed Problem Description:
Some XML attributes are renamed, removed..and new attributes are added.Solution:
Use the new auto-complete feature in Eclipse for yourlayout.XML filesNotes:
Detailed Problem Description:
It is required to specify the unit of measurement for layout attributes.Solution:
Specify unit..Notes:
Detailed Problem Description:
You will notice the following errors while using MapVIEw:
1) ClassNotFound exceptions while using MapVIEw.
2) Java.lang.IllegalArgumentException: You need to specify an API Key for each MapVIEw
Solution:
For one, Maps API have now been moved into their own separate shared library.
Add the following tag to your androidManifest.XML to fix this issue:
<uses-library android:name="com.google.android.maps" />
Notes:
See ApiDemos -> view/MapVIEwDemo sample code.
Detailed Problem Description:
You will notice a signing error when you try to re-install ApiDemos for the first time.Solution:
Refer to:Notes:
Detailed Problem Description:
The LocationManager class does not fire Location update Intents. TheSolution:
The LocationManager class now notifIEs LocationListener objects of
location and status changes, rather than firing Intents. The
requestUpdates method has been renamed to requestLocationUpdates and
now takes a LocationListener object rather than an Intent. A new
requestStatusUpdates method has been added, also taking a
LocationListener object. The removeUpdates method now takes a
LocationListener object.
Notes:
For more information refer to:
http://code.google.com/android/toolbox/apis/lbs.Html
A sample app for using Location Apis can be found in the files section in
android-developer forums.
Detailed Problem Description:
You will notice that the Cursor.putXxx() methods and the Activity.managedCommitUpdates() are deprecated.Solution:
replace with calls to ContentResolver:
Notes:
See NoteEditor.Java in the NotePad sample for an example of usage.
Detailed Problem Description:
Solution:
with:
Notes:
Also, menu.add() methods now take new parameter "order"
Detailed Problem Description:
Solution:
with:
1) Bundle bundle = new Bundle();
bundle.putString(TEST_STRING, "Corky!");
Intent mIntent = new Intent();
mIntent.putExtras(bundle);
setResult(RESULT_OK, mIntent);
開發人員可以為特定的運營商創建專屬游戲、日程表和其他手機應用時,android 平台已經得到中國手機產業鏈的廣泛關注和支持,當然這一切都不是android機型所能實現。
在做android游戲MagicBubble開發的時候,在連通兩個Bubbles的時候,Bubble會以水泡爆破的情形消失。筆者的思路是這樣的:在FrameLayout
android 2.0系統在國內推出面臨諸多問題,最大的問題就是支付問題。易聯致遠CTO姚尚朗表示,開發者和用戶都期待多樣化的支付平台,希望大家可以得到自己想要的信息。
Stericson和Kastro是兩位知名軟件研發人員,他們研發的MetaMorph工具受到了很多軟件開發者的喜愛,近日,Stericson研發推出了一款新的工具,名字