Tuesday, February 25, 2014

Data sharing between two apps.. Android



Moreover, making any file MODE_WORLD_READABLE or (worse) MODE_WORLD_WRITEABLE is a bad idea. You lose any hope of security.
If you wish to share data between two applications, there are a myriad of solutions, such as:
  • service with an API exposed by AIDL
  • service with an API exposed via commands sent via startService() and responses sent via aMessenger or createPendingResult() PendingIntent or something
  • content provider
  • broadcast Intents
All of those allow you to define permissions for integration and let you control the granularity of access.

Friday, February 21, 2014

Jboss 5.1.0 Startup Error-AttachmentStore MC bean (org.jboss.system.server.profileservice.repository.AbstractAttachmentStore) configuration does not specify the parameter type for constructor

Go to path - \server\default\conf\bootstrap  edit Profile.xml file as below:

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

Maven Eclipse Plugin(M2Eclipse)

Eclipse- Help-Install New Software- Add following Url for Eclipse Indigo

http://download.eclipse.org/technology/m2e/releases-for-indigo/1.4/

For lower versiong use following URL
http://download.eclipse.org/technology/m2e/releases

Wednesday, February 12, 2014

Add Java Docs Eclipse

To use offline Java API Documentation in Eclipse, you need to download it first. The link for Java docs are (last updated on 2013-10-21):
  1. Extract the zip file in your local directory.
  2. From ecliplse --> Window --> Preferences --> Java --> "Installed JREs" select available JRE (jre6 C:\Program Files (x86)\Java\jre6 for instance) and click Edit.
  3. Select all the "JRE System libraries" using CTRL key.
  4. Click "Javadoc Location"
  5. Change "Javadoc location path:" from "http://download.oracle.com/javase/6/docs/api/" to "file:/E:/Java/docs/api/".

Alternatively:

To view the standard Java JDK API documentation for all the classes that come with Java open up the tree in the "Package Explorer" for the JRE System Library, select rt.jar (the runtime library)
From the "Navigate" menu select "Open External Javadoc" and you will see the Java API documentation. The default location of the documentation is Sun's website so the URL in the browser will be something like
http://java.sun.com/j2se/1.7.0/docs/api/index.html
To use our own local version of the documentation in
file:/C:/Program Files/Java/jdk1.7.0_04/docs/api/
so that we don't need to connect to the internet each time we want to view the documentation.
To make the change right click on the rt.jar entry in the "Package Explorer" and select "Properties" to get the dialog box
We need to change the URL in the "Javadoc location path". You can either type in the local value directly or use its browse button to navigate to
Click "OK" and you should have the dialog box
showing the local URL
file:/C:/Program Files/Java/jdk1.5.0_04/docs/api/
Click "Apply" and then "OK".
Now to see the API documentation select rt.jar and choose "Open External Javadoc" from the "Navigate" menu (shortcut is Shift F2). Your local URL will now be shown in the browser address bar.

Wednesday, February 5, 2014

Tomcat Eclipse Configuration

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.stardust.docs.wst%2Fhtml%2Fwst-integration%2Fconfiguration.html...

http://stackoverflow.com/questions/1012378/eclipse-server-locations-section-disabled-and-need-to-change-to-use-tomcat-ins

Will be posting detail soon.....