System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
| git archive --format zip --output /full/path/to/zipfile.zip master |
System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
| /* | |
| * Copyright (C) 2014 Steve Liles | |
| * Copyright (C) 2014 Glowworm Software | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
Вам отправили это сообщение по следующим возможным причинам:
Пожалуйста, не делайте так. Задавайте вопрос сразу, без прелюдий, без запросов авторизации (в том числе и в Jabber), и ждите ответа. Не повторяйте свой вопрос и не спрашивайте, на месте ли я.
Здесь комментарии не пишите, уведомление о них не приходит ни мне, ни вам.
Если вам интересно получить развернутый ответ и аргументы, почему не стоить здороваться и ожидать ответа при общении онлайн:
| ##1. Вопросы оптимизации и производительности | |
| ###1.1 Производительность и оптимизация | |
| #Сергей Куксенко, Oracle — Железные счётчики на страже производительности | |
| https://www.youtube.com/watch?v=RlX0f9pzhtc | |
| #Алексей Шипилёв, Oracle — Катехизис java.lang.String | |
| #о реализации строк в Java, способы оптимизации работы со строками и ошибки, которые часто допускают при оптимизации работы со строками, | |
| https://www.youtube.com/watch?v=SZFe3m1DV1A |
| ImageView imgview = (ImageView)findViewById(R.id.imageView_grayscale); | |
| imgview.setImageBitmap(bitmap); | |
| // Apply grayscale filter | |
| ColorMatrix matrix = new ColorMatrix(); | |
| matrix.setSaturation(0); | |
| ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix); | |
| imgview.setColorFilter(filter); |