sdk

The markers on the map change position when map is rotated

*爱你&永不变心* 提交于 2019-12-25 17:21:51
问题 I added markers on my map : ClusterLayer markersClusterLayer = new ClusterLayer(); Collection<MapMarker> markers = new ArrayList<>(); for (GeoCoordinate geoCoordinate : list.get(0).getRoute().getWaypoints()) { MapMarker marker = new MapMarker(); marker.setCoordinate(geoCoordinate); markers.add(marker); } markersClusterLayer.addMarkers(markers); map.addClusterLayer(markersClusterLayer); When I rotate my map using my fingers on the device, the marker position changes slightly, going from one

Linux编译安卓代码的基本环境

依然范特西╮ 提交于 2019-12-25 15:51:20
Linux服务器编译安卓代码的基本环境 开发安卓最主要的开发工具就是Android Studio,而AndroidStudio的编译工具就是Gradle,因此Gradle是必不可少的;另外Android开发所依赖的开发工具包也是必不可少的。现在就开始准备这两个东西。 SDK sdk:软件开发工具包(缩写:SDK、外语全称:Software Development Kit)一般都是一些软件工程师为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时的开发工具的集合。 下载 cd /opt wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip unzip sdk-tools-linux-3859397.zip mkdir sdk mv tools/ sdk/ 环境变量 vim /etc/profile export ANDROID_HOME=/opt/sdk export PATH=${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}:${PATH} source /etc/profile sdkmanager --list 如果报错是因为没有jdk Gradle 关于gradle的选择:

How to publish image and URL on Facebook using latest facebook SDK for Android?

时光怂恿深爱的人放手 提交于 2019-12-25 14:12:01
问题 I want to create a Facebook dialog as shown in the last image of this link. But I am not able to see the default message and also not able to see the image. I wrote this code with help of this link. Here is the code for the same: public void postToWall(String message) { Bundle parameters = new Bundle(); parameters.putString("method", "stream.publish"); JSONObject attachment = new JSONObject(); try { attachment.put("app_id", APP_ID); attachment.put("href", MY_URL); attachment.put("picture", MY

Yammer API issue - get groups showing error

微笑、不失礼 提交于 2019-12-25 11:50:23
问题 I am integrating yammer features in our app (web-front-end stack and using Yammer JS SDK). So, I want get all the groups of a login-ed user. Inorder to get all the groups , I have tried to call the end points in two ways, /groups.json=mine using SDK - resposne showing method not authorised and www.yammer.com/api/v1/groups.json=mine=1 using normal ajax GET request- throwing access control origin issue. API is perfectly working, while tested using google chrome browser - by disabling web

warning: local declaration of 'mapView' hides instance variable

拈花ヽ惹草 提交于 2019-12-25 09:27:35
问题 please, can anybody explain and help me how to fix that warning?? thx in advance. -(void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated { mapRegion=mapView.region; //first warning } -(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated { newRegion=mapView.region; //second warning if(mapRegion.span.latitudeDelta>newRegion.span.latitudeDelta||mapRegion.span.longitudeDelta>newRegion.span.longitudeDelta) shouldAdjustZoom=NO; } 回答1: you have an instance

Android app working perfect in marshmallow and lollipop or nougat but it does not work in kitkat

淺唱寂寞╮ 提交于 2019-12-25 08:25:02
问题 In my android app, It's worked on marshmallow or higher version but not in kitkat. I already set minSdkVersion 15 targetSdkVersion 25. When I test in kitkat version API 19 App is unfortunately stopped.I got error. I attache error log. Help me. Thank you in advance. 回答1: It looks like that this problem is caused by the Multidex compiler. You may need to configure your App properly for Android Phones with a version <21. You have to create your own application class and register this class at

Load a text file when UITableView is tapped

喜欢而已 提交于 2019-12-25 08:14:18
问题 So, I've got an UITableView showing the contents of the app Documents folder. In that folder I have 9 text files called 1.txt, 2.txt, 3.txt and so. I've managed to get the selected row, but now I need to load the txt wich corresponds to the selected file. By example if I touch the 2.txt, the detail view should open what is on 2.txt file. That's the part I don't manage to get working. Thanks in advance :) 回答1: When you select the row the table view delegate method is called: - (void)tableView:

Uber SDK in android

点点圈 提交于 2019-12-25 07:15:30
问题 I am trying to add an Uber 'request a ride' button in my android application. In my gradle build file I have added the following line: compile 'com.uber.sdk:rides-android:0.5.0' Automatically Android studio asks to sync the gradle files as they have changed. After this I get 500+ errors with my project but when I remove the dependency it all goes back to normal. Could anyone please help me solve this issue? The module gradle script: apply plugin: 'com.android.application' android {

How to check cpu usage of my application?

给你一囗甜甜゛ 提交于 2019-12-25 07:06:17
问题 How can I check cpu usage of my application with Corona SDK? the only thing i found on google is how to check memory usage collectgarbage() print( "MemUsage: " .. collectgarbage("count") ) local textMem = system.getInfo( "textureMemoryUsed" ) / 1000000 print( "TexMem: " .. textMem ) 回答1: Sorry, there is currently no way to check the cpu usage of your application in Corona SDK. 来源: https://stackoverflow.com/questions/17632091/how-to-check-cpu-usage-of-my-application

HERE SDK Navigation sound is not playing

末鹿安然 提交于 2019-12-25 07:01:32
问题 I have been trying to resolve this issue but it seems the QCMediaPlayer is not present on my phone. I can here the warning tone's of the speed limit, but i cannot hear the turn by turn info. Is there anyone who has its own implementation? Should I implement my own TTS for the maneuvers. Error in MediaPlayer : 03-23 10:21:28.205 31213-31509/com.maps.navi E/ExtMediaPlayer-JNI: QCMediaPlayer could not be located.... 03-23 10:21:28.205 31213-31509/com.maps.navi E/MediaPlayer-JNI: QCMediaPlayer