-
Recent Posts
Recent Comments
- vidya on Toolbar overlapping listView
- wpadmin on SAX parser using AsyncTask to read xml file on net
- Free Stuff on SAX parser using AsyncTask to read xml file on net
- Crave Freebies on SAX parser using AsyncTask to read xml file on net
- wpadmin on Resources references from the manifest cannot vary by configuration
Archives
- September 2018
- July 2018
- June 2018
- October 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- December 2016
- June 2016
- March 2016
- February 2016
- November 2015
- May 2015
- January 2015
- April 2014
- March 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
Categories
Meta
Author Archives: wpadmin
dexDebug problem with WatchFace sample
Opened sample app WatchFace in Android Studio. When try to run build fails saying: Unexpected top-level exception … Multiple dex files Execution failed for task ‘:Application:dexDebug’ Found that in 2 build.gradle files (wearable & application modules) there were references to 2 versions … Continue reading
Posted in Android
Leave a comment
Connect Motorola 360 2nd gen to Android Studio
This procedure sometimes works for me and sometimes doesn’t; have not yet found a reason why it doesn’t work. 1. On phone start AndroidWear and start USB debugging. 2. On watch go to Settings, Developer options and start ADB debugging/Debug over … Continue reading
Posted in Android
Leave a comment
Resources references from the manifest cannot vary by configuration
Following a tutorial and yet getting an error entering data into AndroidManifest.xml. Code entered was <meta-data android:name=”com.google.android.wearable.watchface.preview” android:resource=”@mipmap/ic_launcher” /> Error was showing on ‘@mipmap/ic_launcher’. It appears to be a bug and the solution was to create a file called lint.xml … Continue reading
Posted in Android
2 Comments
Fatal signal 11 (SIGSEGV)
I was getting this error using bitmaps and found I could fix it by reducing the size of the bitmaps. Bitmap size reduced from >1000px high to 700px. Relevant code was: bmp = BitmapFactory.decodeResource(this.getResources(), R.drawable.myBitMap);
Posted in Android
Leave a comment
Make keyboard visible
Including requestFocus tag in the XML is supposed to work but doesn’t for me. It can be done programmatically but the simple answer for me was to include the following in the activity’s manifest. android:windowSoftInputMode=“stateVisible”
Posted in Android
Leave a comment
Waiting for SoundPool to load
While SoundPool is the best tool for handling short sound clips that are frequently used, it does have the problem that the sound is often not played first time. This is because the load into the pool has not finished. … Continue reading
Posted in Android
Leave a comment
Add button programatically
With the help of stackoverflow I managed to add a button programatically. (Previously my code just created myTimerPanel and as that as the content view. public class TimerActivity extends Activity implements OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); … Continue reading
Posted in Android
2 Comments
Animation set fill and listener
1. I’ve found so far that: android:setFillAfter=”true” is not accepted in xml android:fillAfter=”true” is accepted but does not work setFillAfter(true) in code does work, ie at the end of the animation the image does not revert to how it started … Continue reading
Posted in Android
Leave a comment
startActivityForResult
A. To start another activity and do something when it’s finished: Intent myIntent = new Intent(this, GameActivity.class); startActivityForResult(myIntent, 1); Then you also need to add: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { //your code here to do … Continue reading
Posted in Android
Leave a comment
adb and traces.txt
Open a command window and enter set directory to platform-tools folder in your sdk location (eg ‘cd c:\androidsdk\platform-tools’) to enable use of adb commands. adb -e logcat will write logcat messages. adb pull /data/anr/traces.txt will copy that file to the … Continue reading
Posted in Android
Leave a comment