- alt + insert -->to insert test function in tests
- crlt + alt + l---> reformat code
- crlt + alt +t --> add folding of heighted code
- alt + rightarrow or left arrow --> to switch betwee classes you recently working
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
//..fragement stuff and import | |
/// dependency itextg implementation 'com.itextpdf:itextg:5.5.10' | |
fun generatePdf() { | |
val id = System.currentTimeMillis() | |
val dest = Utils.getPath(activity!!) + id + ".pdf" | |
if (File(dest).exists()) { | |
File(dest).delete() | |
} | |
try { |
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
val reqj= Gson().toJson(req) | |
val json = Gson().fromJson(reqj, JsonObject::class.java) | |
val tmp = | |
(json.get("body") as JsonObject) | |
.getAsJsonArray("countries") |
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
fun getLocationPermission() { | |
if (ContextCompat.checkSelfPermission( | |
this@NearbyRestaurantActivity, | |
android.Manifest.permission.ACCESS_FINE_LOCATION | |
) == PackageManager.PERMISSION_GRANTED | |
) { | |
mLocationPermissionGranted = 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
package com.reactivelogix.nefsy.nearby | |
import android.location.Location | |
import android.os.Bundle | |
import android.support.v4.app.Fragment | |
import android.util.Log | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup |
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.squadtechs.markhor.foodapp.trader.fragments.trader_fragment_add_non_food_item | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.os.Bundle | |
import android.util.Base64 | |
import android.util.Log | |
import android.util.TypedValue |
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 test extends AppCompatActivity { | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
doWork("paremter", new ServiceListener<String>() { | |
@Override | |
public void success(String obj) { |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/ProjectName | |
docker: | |
- image: circleci/android:api-28-alpha | |
environment: | |
JVM_OPTS: -Xmx3200m | |
steps: | |
- checkout |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
<output url="file://$PROJECT_DIR$/out" /> | |
</component> | |
<component name="masterDetails"> | |
<states> | |
<state key="ProjectJDKs.UI"> | |
<settings> | |
<last-edited>1.8</last-edited> |
NewerOlder