• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

随笔分类 -  android

1 2 3 4 5 ··· 8 下一页

android
arcgis andriod GeometryEngine使用
摘要:intersectionMenuItem.setChecked(true); showGeometry(GeometryEngine.intersection(inputPolygon1, inputPolygon2)); return true; } else if (itemId == R.id.action_union) { union... 阅读全文

posted @ 2017-10-10 15:06 gisai 阅读(458) 评论(0) 推荐(0)

andriod arcgis createPolygons创建带空的面
摘要:private void createPolygons() { // create input polygon 1 PointCollection pointsPoly = new PointCollection(SpatialReferences.getWebMercator()); pointsPoly.add(new Point(-13160, 6710100)... 阅读全文

posted @ 2017-10-10 15:03 gisai 阅读(435) 评论(0) 推荐(0)

andriod获得应用程序的Context
摘要:getApplicationContext() getResources().getString(R.string.app_name) //获得程序名称 阅读全文

posted @ 2017-10-09 14:46 gisai 阅读(156) 评论(0) 推荐(0)

android应用名称设置的问题
摘要:<application android:label="@string/app_name1" <activity android:name=".MainActivity" android:label="@string/app_name1"> 都需要修改 阅读全文

posted @ 2017-10-08 11:36 gisai 阅读(195) 评论(0) 推荐(0)

Android Studio常见问题 -- AndroidManifest.xml 覆盖问题
摘要:问题如下 D:\source-code\AndroidStudio\MyApplication\app\src\main\AndroidManifest.xml Error:(14, 9) Attribute application@icon value=(@drawable/ic_launcher 阅读全文

posted @ 2017-10-08 10:10 gisai 阅读(3021) 评论(0) 推荐(0)

andriod 调用高德地图
摘要:Android Studio 配置工程 最后更新时间: 2017年08月29日 来自:http://lbs.amap.com/api/android-sdk/guide/create-project/android-studio-create-project#creat-project 新建一个An 阅读全文

posted @ 2017-10-06 22:41 gisai 阅读(498) 评论(0) 推荐(0)

andriod 浏览文件
摘要:protected void browse() { Intent it = new Intent(Intent.ACTION_GET_CONTENT); //创建动作为 "选取" 的 Intent it.setType("video/*"); //要选取所有视频类型 startActivityForResult(it, 101); ... 阅读全文

posted @ 2017-10-06 11:41 gisai 阅读(151) 评论(0) 推荐(0)

andriod 获得MP4时长
摘要://获得MP4时长 private int getTimeLong(String videoPath) { MediaMetadataRetriever retr = new MediaMetadataRetriever(); retr.setDataSource(videoPath); //String height = retr.e... 阅读全文

posted @ 2017-10-06 11:37 gisai 阅读(205) 评论(0) 推荐(0)

andriod 错误:Only the original thread that created a view hierarchy can touch its views——Handler的使用
摘要:package com.example.yanlei.myapplication; import android.media.MediaMetadataRetriever; import android.media.MediaPlayer; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; im... 阅读全文

posted @ 2017-10-06 11:31 gisai 阅读(243) 评论(0) 推荐(0)

andriod 播放mp4
摘要:activity_main.xml //gisoracle 版权所有 java //gisoracle 版权所有 阅读全文

posted @ 2017-10-05 21:35 gisai 阅读(334) 评论(0) 推荐(0)

ImageView 设置图片来自:http://blog.csdn.net/lincyang/article/details/6562163
摘要:android doc中是这样描述的: public void setImageResource (int resId) 这是其中的一个方法,参数resld是这样: ImageView.setImageResource(R.drawable.icon); 看下面这段话 Sets a drawable as the content of this ImageView. T... 阅读全文

posted @ 2017-10-05 11:58 gisai 阅读(359) 评论(0) 推荐(0)

extends和implements区别
摘要:来自:http://blog.csdn.net/tolcf/article/details/46135645 extends与implements的不同 1、在类的声明中,通过关键字extends来创建一个类的子类。 一个类通过关键字implements声明自己使用一个或者多个接口。 extends 阅读全文

posted @ 2017-10-04 09:26 gisai 阅读(223) 评论(0) 推荐(0)

Android中关于项目中对Thread的管理(不是线程池)
摘要:背景 项目中对于一些并不复杂的耗时操作,比如计算,不频繁操作数据库等,因为没必要使用线程池,所以之前项目会直接使用new Thread的方式,时间一长,回头再看,原来new Thread之处已经很多了,这样带来了一些问题: 分析 问题抛出了,就想办法解决吧。对于任务量小,操作不那么频繁的,我们只需要 阅读全文

posted @ 2017-10-03 10:24 gisai 阅读(920) 评论(0) 推荐(0)

Android跳转各种系统设置界面-总结
摘要:来自:http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2017/0921/8536.html 开发中总会有一种需求,需要我们跳转系统设置界面,引导用户打开所需的设置. 用法 用法很简单,一行代码搞定 但是这个参数是一直改变的.这样就可以跳转 阅读全文

posted @ 2017-10-03 09:07 gisai 阅读(7288) 评论(0) 推荐(0)

andriod 文本居中: android:gravity="center"
摘要:文本居中: android:gravity="center" 也可以在这样 阅读全文

posted @ 2017-09-30 15:18 gisai 阅读(987) 评论(0) 推荐(0)

andriod studio 获得程序名
摘要:getResources().getString(R.string.app_name) 阅读全文

posted @ 2017-09-13 16:58 gisai 阅读(170) 评论(0) 推荐(0)

解决小米手机不能运行Android Studio程序的问题
摘要:转载自: 解决小米手机不能运行Android Studio程序的问题 问题描述 Android Studio升级到2.3版本之后,小米手机MIUI8不能运行Android Studio程序,报如下错误: 解决方法 设置Android Studio 中Instant Run中的选项为不选中 将Enab 阅读全文

posted @ 2017-09-13 15:41 gisai 阅读(1639) 评论(0) 推荐(0)

android studio 引用aar
摘要:在:libs拷贝对应的文件 build.gradle repositories { flatDir { dirs 'libs' }}dependencies { // compile 'com.esri.arcgisruntime:arcgis-android:100.0.0' compile(na 阅读全文

posted @ 2017-09-01 21:36 gisai 阅读(220) 评论(0) 推荐(0)

arcgis runtime 100 Create geometries
摘要:1 /* Copyright 2016 EsriEsri 2 * 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a ... 阅读全文

posted @ 2017-08-23 21:46 gisai 阅读(401) 评论(0) 推荐(0)

Arcgis Runtime for andriod 100 Simple marker symbol
摘要://define a polyline for the boat tripPolyline boatRoute = getBoatTripGeometry();//define a line symbolSimpleLineSymbol lineSymbol = new SimpleLineSymb 阅读全文

posted @ 2017-08-22 22:09 gisai 阅读(320) 评论(0) 推荐(0)

1 2 3 4 5 ··· 8 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3