Pages

Tuesday, June 28, 2011

Icons and Icon Decorations in Eclipse

I saw an unfamiliar icon decoration today and wanted to know what it meant. I found this answer on StackOverflow and wanted to link to it in case anyone else wanted to know about Eclipse icons and Eclipse icon decorations in the Package Explorer.

Thanks to Lord Torgamus for the excellent answer on StackOverflow!

His answer (as found on StackOverflow)

This is a fairly comprehensive list from the Eclipse documentation. If anyone knows of another list — maybe with more details, or just the most common icons — feel free to add it. 
Helios: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm 
Galileo: http://help.eclipse.org/galileo/topic/org.eclipse.jdt.doc.user/reference/ref-icons.htm?resultof=%22icon%22 
There are also some CDT icons at the bottom of this help page
If you're a Subversion user, the icons you're looking for may actually belong to Subclipse; see this excellent answer for more on those.

Monday, June 27, 2011

New Update and New Donate Version!!!

I'm excited to announce the release of SMS Text Auto Responder FREE v0.5.8 and SMS Text Auto Responder DONATE v1.0!!!

Lots of fun stuff to announce...
  • There are many code enhancements...
  • Added the crash reporting library: ACRA (Application Crash Report for Android)
  • Enable showing the outgoing auto response in the stock SMS application.
    Note: This may not work on all devices. If you experience any issues with this feature go to Settings and disable it then send me an email letting me know what type of device you are using. I will see if there is a fix that I may be able to implement.
  • Added Donate feature to the settings menu
  • Added a Donate version to the Android Marketplace which can be purchased for $1.99USD
  • Updated graphical elements
  • Various major & minor bug fixes
  • Fixed a low memory error on SOME devices
  • Many other nifty things!!!
I have also been re-factoring a lot of the code to bring it in line with the new standards that I have implemented. I am doing this as it will allow me to work on future upgrades more quickly and efficiently.

As always, if you happen to experience any issues please contact me and I will do my best to fix whatever issue you are experiencing with my application. 

You can download the main app here: SMS Text Auto Responder FREE
You can contribute to the cause here: SMS Text Auto Responder DONATE

Enjoy!
Rich

Here are some screenshots of the the final FREE release...









Screenshots from the DONATE release...






Wednesday, June 22, 2011

Simple communication between two different applications

Recently, I faced a problem where I needed two different applications to communicate a simple message between each other. I searched around and found many questions regarding this problem. However, there were a lot of vague answers as well.

I figured I would write this in case someone else faced a similar issue and needed a starting point to work from.

Here was the issue I faced:

  1. The user opens TestAppOne and there is a check to see if TestAppTwo exists.
  2. For this example we will say that TRUE is returned.
  3. Since TestAppTwo exists we open it using startActivityForResult(Intent, int).
  4. When the user is done with TestAppTwo they click a button which sends them back to TestAppOne with the resultCode
  5. Call finish() on TestAppTwo.

 


class TestAppOne extends Activity { 
 //... 
 
 private final void startOtherApp() { 
  //... 
  
  // Here we pass "1" to TestAppTwo 
  this.startActivityForResult(intent, 1); 
  
  //... 
 } 
 
 @Override protected void onActivityResult(int pRequestCode, int pResultCode, Intent pData) { 
  super.onActivityResult(pRequestCode, pResultCode, pData); 
  
  // Check the result code that was sent from the calling activity 
  if( pResultCode == 1 ) { 
   // The result was successfully sent and received 
  } else { 
   // There is something wrong 
  } 
 } 
} 

class TestAppTwo extends Activity { 
 //... 
 
 private void someMethod() { 
  //... 
  
  // Set the result here to be passed back to TestAppOne 
  this.setResult(1); 
  this.finish();
 } 
} 

 

Credits go to:
Android Developer Reference
Let's Share Some Thoughts
Android Forums