Skip to content

Instantly share code, notes, and snippets.

View askarsyzdykov's full-sized avatar
🐜

Askar Syzdykov askarsyzdykov

🐜
View GitHub Profile
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Stack;
class App2 {
@askarsyzdykov
askarsyzdykov / release-android-debuggable.md
Last active January 22, 2020 09:40 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackage ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
package kz.team.library
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import io.flutter.facade.Flutter
class LibraryActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Color;
extension String {
var html2AttributedString: NSAttributedString? {
guard let data = data(using: .utf8) else {
return nil
}
do {
return try NSAttributedString(data: data, options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: String.Encoding.utf8.rawValue], documentAttributes: nil)
} catch let error as NSError {
print(error.localizedDescription)
return nil
private void init() {
mClusteringSettings = new ClusteringSettings();
mClusteringSettings.addMarkersDynamically(true);
mClusteringSettings.clusterOptionsProvider(new DemoClusterOptionsProvider(getResources()));
mClusteringSettings.clusterSize(144);
mGoogleMap.setClustering(mClusteringSettings);
}
private void addMarkers(List<Place> places) {
for (Place place : places) {