Menu
Date

2014

Sending Parameters to URL or web service in POST Method

Below code snippet explains how to send parameters to a web url in the POST method. URL url = new URL(“http://testulr/searchuser”); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod(“POST”); urlConnection.setDoOutput(true); String params=”userid=”+userid+”&username=”+name; OutputStream out = new BufferedOutputStream(urlConnection.getOutputStream()); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(out)); writer.write(params); writer.flush(); out.close(); InputStream in = new BufferedInputStream(urlConnection.getInputStream()); BufferedReader reader = new BufferedReader(new InputStreamReader(in)); StringBuilder st = new StringBuilder();…

android.content.ActivityNotFoundException: Unable to find explicit activity class

I am developing an android application. On the home screen, it has a button, on click of this an activity should be displayed. While testing the app, on click of the button, the app is giving the below error and the app got terminated.E/AndroidRuntime(Number): java.lang.RuntimeException: Unable to resume activity {app package}: android.content.ActivityNotFoundException: Unable to find explicit activity class {activity class};…

Error: oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer

I am developing a REST web service. While deploying the web service to the application server, I got the below error.Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer) The error occurred because my web service has two methods with the same path name. After changing the path names, the issue got resolved and the web service was deployed successfully to the server.

Convert an image to Base64

This post is to show how to generate base64 string to an image file.Below is the method which will return the base64 string to the given image file. The input for this method is the full path of the image. public String getBase64ForFile(String inFile) throws Exception { String base64 = “”; System.out.println(“inFile: ” + inFile); URL url = new URL(inFile);…

ERROR: Plugin ‘Camera’ not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist

I am developing a MAF application in which I need to collect images from the user for which I provided a button. On click of the button, photo library supposed to be opened, so that the user can select the images. But on click of the button, I am getting the below error. Error: Plugin ‘Camera’ not found, or is…

How to enable Contribution Folders in Webcenter Content

If the “Contribution Folders” under Browse Content is not visible, please follow the below procedure to enable it. Login to webcenter content Under Administration menu, go to Admin Server and select “Component Manager” option Select “advanced component manager” option   Under disabled components, select “Folders_g” and click on enable button Please note that, while enabling “Folders_g”, if “FrameworkFolders” is enabled,…

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.