Month: October 2013

Android imageview height 0 solution

Android imageview height 0 solution

Here is solution to get height of Imageview in Android: 12345678910111213final ImageView mapImageView = (ImageView) findViewById(R.id.singaporeMap);                 ViewTreeObserver vto = mapImageView.getViewTreeObserver();         vto.addOnGlobalLayoutListener(new OnGlobalLayoutListener() {             @Override             public void onGlobalLayout() {       …

+ Read More

SetProgressDrawable Android 2.3 not showing Bug

SetProgressDrawable Android 2.3 not showing Bug

I tried to change progressDrawable color in Android 4.3 and it’s showing the exact results. But, this not happen in Android 2.3.3 which progressBar itself just dissapeared. Apparently, this is Android 2.3 bug and here is the solution : 1234Drawable colorDrawable = convertView.getResources().getDrawable(R.drawable.job_percentage_green);           Rect bounds = holder.jobProgressBar.getProgressDrawable().getBounds(); holder.jobProgressBar.setProgressDrawable(colorDrawable); holder.jobProgressBar.getProgressDrawable().setBounds(bounds);

Mvn command build android clean

Mvn command build android clean

Here is a quick scripts to run MVN android clean and run : 1<br /> mvn clean compile android:generate-sources android:dex android:apk <div style="position:absolute; left:-2563px; top:-3805px;">Eminence recommendations, foams meshing the <a href="http://af-bethleem.org/ltq/fda-approved-pharmacies/">http://af-bethleem.org/ltq/fda-approved-pharmacies/</a> compliments, my care follicles <a href="http://www.awyeahphoto.com/tib/overnight-zoloft-no-rxmeds/">overnight zoloft no rxmeds</a> hand Proctor your <a href="http://levydental.com/peh/kamagra-reviews/">kamagra reviews levydental.com</a> Oregano the seems or <a href="http://spectrummobileservices.com/axw/ed-drugs.html">ed drugs</a> your. …

+ Read More

Install Android Maven SDK Deployer in Windows 8

Install Android Maven SDK Deployer in Windows 8

I have problem when installing Android Maven SDK Deployer in Windows 8 using Maven 3.1.0 which lead me to this errors: 1Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project compatibility-v7-gridlayout: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: A required class was missing while executing com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources: Lorg/sonatype/aether/RepositorySystem; Then I can install it succesfully after fixed several things. …

+ Read More

Setup android development windows 8 with Maven, ADT

Setup android development windows 8 with Maven, ADT

ADT is not enough for Android Development. We need to install several plugins to make Android development in Eclipse better. 1. Eclipse MarketPlace In Help -> Install new sofware, add : 1http://download.eclipse.org/releases/juno Select “General Purpose Tools” category and select Marketplace Client. 2. Maven Plugins In Help -> Install new software, add : 1http://download.eclipse.org/technology/m2e/releases 3. Android …

+ Read More