This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //ACTIVITY | |
| RefreshClick refreshClick; | |
| public interface RefreshClick | |
| { | |
| void RefreshM(); | |
| } | |
| ///onclick event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | |
| setSupportActionBar(toolbar); | |
| assert getSupportActionBar() != null; | |
| // getSupportActionBar().setDisplayHomeAsUpEnabled(true); | |
| getSupportActionBar().setDisplayShowHomeEnabled(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LoadImageTask extends AsyncTask<String, Void, Bitmap> { | |
| public LoadImageTask(Listener listener) { | |
| mListener = listener; | |
| } | |
| public interface Listener{ | |
| void onImageLoaded(Bitmap bitmap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package upload.work.com.work_uploadjins.Service; | |
| /** | |
| * Created by hp on 5/19/2017. | |
| */ | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.net.Uri; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| must want:---> | |
| angular.module('starter',['ionic','starter.controllers','ngCordova','starter.services','spalshscreen']) | |
| .constant() | |
| .services() | |
| .run(AppRun) | |
| .config(AppConfig) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class YourActivity implements FragmentA.TextClicked{ | |
| @Override | |
| public void sendText(String text){ | |
| // Get Fragment B | |
| FraB frag = (FragB) | |
| getSupportFragmentManager().findFragmentById(R.id.fragment_b); | |
| frag.updateText(text); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.aries.ifc.RealPath; | |
| /** | |
| * Created by hp on 5/19/2017. | |
| */ | |
| import android.content.ContentUris; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.net.Uri; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.aries.indywood; | |
| import android.util.Log; | |
| import com.google.firebase.iid.FirebaseInstanceId; | |
| import com.google.firebase.iid.FirebaseInstanceIdService; | |
| /** | |
| * Created by saas on 3/15/2017. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JSONObject jsonObject = new JSONObject(NAME); | |
| JSONObject jsonObjectcode = new JSONObject(CODE); | |
| Log.e("len", jsonObject.length() + ""); | |
| Iterator<?> keys = jsonObject.keys(); | |
| Iterator<?> keyscode = jsonObjectcode.keys(); | |
| final JSONArray jsonArray = new JSONArray(); |