我正在尝试将深层链接与branch.io集成.但为了做到这一点.我需要提取SHA256证书指纹,将它们放在我的branch.io仪表板中.我该怎么做呢?我的证书是什么?关于如何完成这些工作的数据太少.
我写了一个名为"Bio View"的应用程序,如果我搜索我的应用程序Google Play,它没有显示,相反,如果我搜索BlueSkyBio(清单中的"appname"变量以这种方式命名),我可以找到我的应用程序.
<application
android:icon="@drawable/logo"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/AppTheme" >
<string name="app_name">BlueSkyBio</string>
Run Code Online (Sandbox Code Playgroud)
我的问题是,我怎么能添加标签到我的应用程序,如:bio,view,bioview等,所以,我一定会的人可以找到它?
我曾经使用过这个应用程序:https://play.google.com/store/apps/details?id = com.fakegps.mock&hl = en在此之前使用此应用程序: https: //play.google.com/商店/应用程序/详细信息?id = com.incorporateapps.fakegps.fre&hl = en 我正在使用LG G3和Nexus 5,但在过去的几天里,假位置无法正常工作.它并不总是修改我的位置并设置在我想要的位置.或者很多次,它将我的位置设置在我想要的几秒钟,然后重置到我的真实位置.我正在开发一个旅行应用程序,这使得模拟旅行和位置变得非常简单.有没有其他虚假的位置应用程序实际上应该如何工作?或者在应用程序运行时,还有其他方法可以设置手机的位置吗?
编辑:是的!MOCK LOCATIONS开启.就像我说的:它会改变我的位置,改变我想要的模拟位置,但它会在几秒后跳回我的真实位置.取决于,有时,它在模拟位置停留几分钟,但然后在我的真实位置跳转1秒,然后回去:)现在我知道这一点,因为我记录了我找到的所有位置,甚至更多,绘制了路径,我有线跳回我的真实位置,然后继续图片:粉红色=它应该如何.绿色=我得到的位置和路径.正如你所看到的,我得到的几个地点,它都会跳回我的位置 https://www.dropbox.com/s/sszzrvhnwlq2bxr/Screenshot%202015-09-10%2015.47.20.png?dl= 0
这是我得到的错误:
Error:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /Users/alinrosu/Workspace/passenger-android/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
Run Code Online (Sandbox Code Playgroud)
我在我的buildscript中使用它:
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha5'
}
Run Code Online (Sandbox Code Playgroud)
这是我的gradle-wrapper.properties文件:
#Tue Jan 05 13:28:23 CET 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
Run Code Online (Sandbox Code Playgroud)
如你看到的.我使用gradle版本2.10.我需要以某种方式刷新缓存吗?我试着干净,重建,但没有任何作用
我打电话给我的蓝牙适配器mBluetoothAdapter.startDiscovery();然后返回一个BluetoothDevices列表.当我按下其中一个设备时,我这样做:
mBluetoothGatt = bluetoothDevice.connectGatt(MainActivity.this, false, mGattCallback);
Run Code Online (Sandbox Code Playgroud)
我的回调是:
private final BluetoothGattCallback mGattCallback =
new BluetoothGattCallback() {
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status,
int newState) {
if (newState == BluetoothProfile.STATE_CONNECTED) {
mConnectionState = STATE_CONNECTED;
Log.i(TAG, "Connected to GATT server.");
Log.i(TAG, "Attempting to start service discovery:" +
mBluetoothGatt.discoverServices());
List<BluetoothGattService> listBGS = mBluetoothGatt.getServices();
Log.i("","list size: " + listBGS.size());
} else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
mConnectionState = STATE_DISCONNECTED;
Log.i(TAG, "Disconnected from GATT server.");
}
}
@Override
// New services discovered
public …Run Code Online (Sandbox Code Playgroud) android bluetooth service-discovery bluetooth-lowenergy bluetooth-gatt
我知道我们可以使用"polylineOptions.color(YOUR_COLOR);"来改变折线的颜色.可以在它上面设置一个形状吗?(如果路线需要完成,如果完成,将颜色设置为蓝色 - 没有更多边框,我希望它有一个蓝色边框并且内部为白色
这是我到目前为止,我称这个函数为2次,一次为完成的路径,然后为完成的路径:
public void createProgressRouteOnMap( ArrayList<LatLng> route, boolean done){
if(done) {
if(polyline != null){
polyline.remove();
}
}else{
if(polyline2 != null){
polyline2.remove();
}
}
PolylineOptions polyLineOptions = new PolylineOptions();
polyLineOptions.addAll(route);
polyLineOptions.width(10);
if(done){
polyLineOptions.color(getResources().getColor(R.color.background));
}else{
polyLineOptions.color(getResources().getColor(R.color.blue_route));
}
if(mMap == null){
setUpMapIfNeeded();
}
if(done) {
polyline = mMap.addPolyline(polyLineOptions);
}else{
polyline2 = mMap.addPolyline(polyLineOptions);
}
}
Run Code Online (Sandbox Code Playgroud) 已更新至Android Studio 1.4 Preview和新SDK,现在我获得了:
ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: null.
Run Code Online (Sandbox Code Playgroud)
我已经卸载了Fabric,再次安装了它,并从中更新了Crashlytics
任何想法我应该做什么?
这是我的build.gradle:http://pastebin.com/VPHpRJte
这是我的androidManifest:http://pastebin.com/Nmdeasx8
我在清单中的API密钥:
android:name="com.crashlytics.ApiKey"
android:value="c13e89xxxxxxxxxxxxx1054b4a
Run Code Online (Sandbox Code Playgroud)
在https://fabric.io/settings/organizations/中:
c13e89xxxxxxxxxxxxxxxxxbf1054b4a
Run Code Online (Sandbox Code Playgroud) 对于 Android Api 级别 23,您可以使用AudioRecord.setPreferredDevice();
您还可以使用:
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
AudioDeviceInfo[] adi = audioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
}
Run Code Online (Sandbox Code Playgroud)
但是是否可以获取 API 级别低于 23 的麦克风列表?(我需要 17 个)。
这是我的build.gradle文件:
buildscript {
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.google.com' }
maven { url 'http://dl.bintray.com/amulyakhare/maven' }
maven { url 'https://jcenter.bintray.com/' }
maven { url "https://jitpack.io" }
mavenCentral()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath "io.realm:realm-gradle-plugin:3.2.0"
classpath 'com.google.gms:google-services:3.1.0' // google-services plugin
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'realm-android'
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://dl.bintray.com/amulyakhare/maven' }
maven { url 'https://jcenter.bintray.com/' }
maven { url "https://jitpack.io" }
maven { …Run Code Online (Sandbox Code Playgroud) 是否有可能制作一个网格视图,而不是图片网格,每个网格下面都有一个小图像按钮的图片网格?
android ×10
build ×2
google-maps ×2
adaptor ×1
audio ×1
audio-device ×1
audiorecord ×1
bluetooth ×1
branch.io ×1
build-tools ×1
build.gradle ×1
colors ×1
crashlytics ×1
deep-linking ×1
deeplink ×1
dependencies ×1
google-play ×1
gps ×1
gradle ×1
gridview ×1
imagebutton ×1
layout ×1
manifest ×1
maven ×1
microphone ×1
mocking ×1
polyline ×1
shape ×1
tags ×1