[Solved] Error in saving bitmap image in internal storage [closed]

Error shown bcz you makes function on onClickListener. Try below code:- save.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub saveToInternalStorage(); } }); saveToInternalStorage function:- public void saveToInternalStorage() { } 1 solved Error in saving bitmap image in internal storage [closed]

[Solved] Can’t referr to my get method

A simple answer is “statements are not allowed in class body”. The simplest fix for you program would be creating an instance list variable like. private class ScreenSlidePagerAdapter extends FragmentStatePagerAdapter { final SayingsHolder holder = (SayingsHolder).getApplication(); ArrayList<String> sayingsList = holder.getSayingsList(); } This is just one option. You can move this holder.getSayingsList(); to a method body … Read more

[Solved] passing data from service to fragment giving null point

Instead of passing data indirectly i used the direct way and i set like this in service Intent intent = new Intent(); intent.setAction(MY_ACTION); intent.putExtra(“DATAPASSED”, activeAudio.getTitle()); intent.putExtra(“ALBUM_DATA”,activeAudio.getAlbum()); sendBroadcast(intent); in my fragment @Override public void onStart() { super.onStart(); myReceiver = new MyReceiver(); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(MediaService.MY_ACTION); getActivity().registerReceiver(myReceiver, intentFilter); } private class MyReceiver extends BroadcastReceiver { … Read more

[Solved] My list view is lagging can anyone help me to fix this?

if you still happy with ListView then you can take idea from below code here i am using Cursor but you can use ArrayList in place of Cursor public class Custom_Adapter_Products extends BaseAdapter { Context context; Cursor mCursor; static int[] intArr; DatabaseAdapter db; public ImageLoader imageLoader; public Custom_Adapter_Products(Context context, Cursor mCursor){ this.context = context; this.mCursor … Read more