[Solved] Unable to scrape data from Internet using Android intents

Have you considered using an http framework for Android instead? It’s a lot less code and also runs the requests in the background. This example uses the loopj async client build.gradle: compile ‘com.loopj.android:android-async-http:1.4.9’ compile ‘cz.msebera.android:httpclient:4.4.1.2’ Test code: @Test public void parseHttp() throws Exception { AsyncHttpClient client = new AsyncHttpClient(); final CountDownLatch latch = new CountDownLatch(1); … Read more

[Solved] Universal App development [closed]

There is a new responsibility for android, iOS and OSX in the new Delphi XE5. It’s based on a framework called Firemonkey. The advantage is that you have to code only once, disadvantage is that you can only use those parts of the SDK that are the same on every platform. There are also rumors … Read more

[Solved] Use same method for all option menu in whole Application Android

I have created following Class for openFile: public class OpenHelpFile { File cacheDir; Context context; /* Constructor */ public OpenHelpFile(Context context) { this.context = context; if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) cacheDir = new File(android.os.Environment.getExternalStorageDirectory(), “OOPS”); else cacheDir = context.getCacheDir(); if (!cacheDir.exists()) cacheDir.mkdirs(); try { File helpFile = new File(cacheDir, “OOPS.pdf”); if (!helpFile.exists()) { InputStream in = context.getAssets().open(“OOPS.pdf”); OutputStream … Read more

[Solved] if i run method in doinbackgroundand when it is running i am click any button then i got error…how to solve? [closed]

Here is my guess. Cannot be very specific unless you post the codes: In the doInBackground method, it calls MainActivity.addToListview method, which modifies UI and some object isn’t ready yet. The null object may depend on your async task finishing or you forgot to set it up? 1 solved if i run method in doinbackgroundand … Read more

[Solved] I am working with RecyclerView and CardView

Need more details for your question, but in general, if you want to go from one activity to different activity by selecting different images you can use Recycler View and set onClickListner on images in adapter class and set action startActivity(intent) according to image position. for more details about Recycler View and its implementation, check … Read more

[Solved] need help android Json Currency Converter

i tried an activity that converts the data and displays it in a textview import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.app.ProgressDialog; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class CurrencyActivity … Read more

[Solved] How to implement two OnClickListeners on RecyclerView item click?

Remove below code from RecyclerView.ViewHolder @Override public void onClick(View v) { listener.onItemClick(v, getAdapterPosition()); } And add listner event in “itemView” click as below: ((SelectedProjectItemHolder) holder).itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(listener != null){ listener.onItemClick(v, getAdapterPosition()); } dataSet.remove(listPosition); dataSet.add(listPosition, unselectedCards.get(listPosition)); notifyItemChanged(listPosition); } }); solved How to implement two OnClickListeners on RecyclerView item click?

[Solved] I want to make an android app that will access the image data stored on cloud. How can I do that? [closed]

You can try using Firebase. They allow you to store images up to 10MB, if they are larger than that you can chop it in 10MB chunks. Here’s a neat guide: http://technikyle.com/storing-images-in-firebase/ solved I want to make an android app that will access the image data stored on cloud. How can I do that? [closed]

[Solved] How can I showing checkbox when I choose the spinner data?

try this custom Class public class MultiSelectionSpinner extends Spinner implements OnMultiChoiceClickListener { String[] _items = null; boolean[] mSelection = null; boolean[] mSelectionAtStart = null; String _itemsAtStart = null; ArrayAdapter<String> simple_adapter; public MultiSelectionSpinner(Context context) { super(context); simple_adapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_item); super.setAdapter(simple_adapter); } public MultiSelectionSpinner(Context context, AttributeSet attrs) { super(context, attrs); simple_adapter = new ArrayAdapter<>(context, android.R.layout.simple_spinner_item); … Read more

[Solved] passing string data from onPostExecute method of AsyncTask to other activity

In my opinion two options are available on the table! 1.Create your AsyncTask class as an inner class inside your Activity class, and then you can gain access for all super class properties. public class MyActivity extends Activity { int property1; void method1() { } private class MyTask extents AsyncTask<Void, Void, Void> { @Override protected … Read more