我尝试在Linux Ubuntu上用Eclipse构建项目.Eclipse显示错误消息:
**** Build of configuration Default for project FFVideo ****
/home/art/android-ndk-r7b/ndk-build V=1
Cannot run program "/home/art/android-ndk-r7b/ndk-build": Unknown reason
Error: Program "/home/art/android-ndk-r7b/ndk-build" is not found in PATH
PATH=[/home/art/android-ndk-r7b:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]
**** Build Finished ****
Run Code Online (Sandbox Code Playgroud)
为什么会这样?
我在那里看过很多帖子?但我找不到正确答案.
我尝试做一些事情:
@Override
public void onPictureTaken(byte[] paramArrayOfByte, Camera paramCamera) {
try {
Bitmap bitmap = BitmapFactory.decodeByteArray(paramArrayOfByte, 0,
paramArrayOfByte.length);
int width = bitmap.getWidth();
int height = bitmap.getHeight();
FileOutputStream os = new ileOutputStream(Singleton.mPushFilePath);
Matrix matrix = new Matrix();
matrix.postRotate(90);
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, width,
height, matrix, false);
resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 95, os);
os.close();
...
Run Code Online (Sandbox Code Playgroud)
有没有办法旋转图片,而不使用BitmapFactory?我想要旋转图片而不会损失质量!
我尝试以下方式打开相机:
...
private void runCamera() {
String storageState = Environment.getExternalStorageState();
if (storageState.equals(Environment.MEDIA_MOUNTED)) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File imageFile = new File(Singleton.instanse.mPushFilePath);
mImageFileUri = Uri.fromFile(imageFile);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,
mImageFileUri);
startActivityForResult(intent, CAMERA_RESULT);
}
...
Run Code Online (Sandbox Code Playgroud)
如果我运行此方法运行下一个方法:
07-16 19:46:22.264: I/System.out(6875): -onPause
07-16 19:46:26.104: I/System.out(6875): -onStop
Run Code Online (Sandbox Code Playgroud)
我制作照片,结束下一步的方法:
07-16 19:46:41.217: I/System.out(6875): -onDestroy
07-16 19:46:41.284: I/System.out(6875): -onCreate
07-16 19:46:41.291: I/System.out(6875): -onStart
07-16 19:46:41.295: I/System.out(6875): -onActivityResult
07-16 19:46:41.295: I/System.out(6875): -onResume
07-16 19:46:41.295: I/System.out(6875): -onPostResume
07-16 19:46:41.522: I/System.out(6875): -onPause
07-16 19:46:41.522: I/System.out(6875): -onStop
07-16 19:46:41.522: I/System.out(6875): -onDestroy
07-16 19:46:41.604: …Run Code Online (Sandbox Code Playgroud) 每次我尝试使用 Google API 登录时,都会收到以下错误。我的清单具有适当的权限,并且我确实相应地创建了我的凭据。所以我不知道问题是什么。同意屏幕也不会显示。
\n\ncom.omer.notetoself D/NTS:\xef\xb9\x95 ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{3678d5c: android.os.BinderProxy@19bcbe30}, message=null}\nRun Code Online (Sandbox Code Playgroud)\n\n package com.omer.notetoself;\n\n import android.app.Activity;\n import android.content.Intent;\n import android.content.IntentSender;\n import android.os.Bundle;\n import android.util.Log;\n import android.view.Menu;\n import android.view.MenuItem;\n import android.view.View;\n import android.widget.Button;\n import android.widget.EditText;\n\n import com.google.android.gms.common.ConnectionResult;\n import com.google.android.gms.common.Scopes;\n import com.google.android.gms.common.api.GoogleApiClient;\n import com.google.android.gms.common.api.Scope;\n import com.google.android.gms.plus.Plus;\n\n\n `public class Activity_Login extends Activity implements View.OnClickListener,GoogleApiClient.ConnectionCallbacks,\n GoogleApiClient.OnConnectionFailedListener{` \n\n\n private static final int RC_SIGN_IN = 0;\n private GoogleApiClient mGoogleApiClient;\n /* Is there a ConnectionResult resolution in progress? */\n private boolean mIsResolving = false;\n\n /* Should …Run Code Online (Sandbox Code Playgroud) 在获取json数组时遇到问题.
我的json数据是:
[
{
"TSCard_id": 100,
"TSCardBackend_id": "TSu1t1",
"TSCard_date": "10/11/2013",
"TSCard_resource_id": "",
"TSCard_resource_name": "",
"TSCard_job_id": "JOB_M2156 ",
"TSCard_job_desc": "BAGARIA MILLIPORE - BOM ",
"TSCard_activity_id": "B03",
"TSCard_activity_desc": "Closing",
"TSCard_hours": "4.0",
"TSCard_chargeableflag": "0",
"TSCard_desc": "Description:",
"TSCard_syncflag": "0",
"TSCard_flag": "",
"user_id": "1"
},
{
"TSCard_id": 101,
"TSCardBackend_id": "TSu1t2",
"TSCard_date": "12/11/2013",
"TSCard_resource_id": "",
"TSCard_resource_name": "",
"TSCard_job_id": "JOB_B0002",
"TSCard_job_desc": "ABB LIMITED - BLR ",
"TSCard_activity_id": "NB01",
"TSCard_activity_desc": "Admin ",
"TSCard_hours": "5.0",
"TSCard_chargeableflag": "1",
"TSCard_desc": "Description:",
"TSCard_syncflag": "0",
"TSCard_flag": "",
"user_id": "1"
}
] …Run Code Online (Sandbox Code Playgroud) 想知道我是否获取到区分这个通知指纹的用户,以及Apple获取的!
[self evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
localizedReason:@"" reply:^(BOOL success, NSError *authenticationError){
if (success) {
//Code Here
else {
//Code Here
}
}];
Run Code Online (Sandbox Code Playgroud)
我有一个 GPSTracker 文件,但在 android M iam 的位置上得到了一个零......我请求你的帮助来解决这个问题......请参阅下面的代码
带有位置的片段和谷歌地图的网络视图
public class ComoChegar extends Fragment {
EmpresaID item;
public ComoChegar() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View tela = inflater.inflate(R.layout.fragment_como_chegar, container, false);
Bundle id = getActivity().getIntent().getExtras();
String Filial = id.getString("filial");
if (isOnline()) {
item = new EmpresaID(Filial);
Autenticado(item);
}
else
{
android.app.AlertDialog.Builder alerta = new android.app.AlertDialog.Builder(getActivity());
alerta.setMessage("Você está sem Acesso a Internet por favor …Run Code Online (Sandbox Code Playgroud) 使用touch 2.2.1和Cmd 3.1.2.342我尝试使用以下命令行创建.apk文件:
sencha build native
Run Code Online (Sandbox Code Playgroud)
我也试过了
sencha build native app
Run Code Online (Sandbox Code Playgroud)
和
sencha android native build
Run Code Online (Sandbox Code Playgroud)
以及
sencha app build native
Run Code Online (Sandbox Code Playgroud)
不幸的是它失败并返回此代码
[ERR] null
at com.sencha.util.Version.<init>(Version.java:36)
at com.sencha.tools.pkg.Model$Package.<init>(Model.java:640)
at com.sencha.tools.pkg.Model$Package.load(Model.java:627)
at com.sencha.command.environment.WorkspaceRepository.scanPackages(Workspac eRepository.java:210)
at com.sencha.command.environment.WorkspaceRepository.scanWorkspacePackages (WorkspaceRepository.java:184)
at com.sencha.command.environment.WorkspaceRepository.getWorkspaceCatalog(W orkspaceRepository.java:228)
at com.sencha.command.environment.WorkspaceRepository.getWorkspaceCatalog(W orkspaceRepository.java:223)
at com.sencha.command.environment.WorkspaceRepository.getPackage(WorkspaceR epository.java:142)
at com.sencha.command.environment.AppOrPackageEnvironment$1.matches(AppOrPa ckageEnvironment.java:87)
at com.sencha.command.environment.AppOrPackageEnvironment$1.matches(AppOrPa ckageEnvironment.java:83)
at com.sencha.util.CollectionUtil.filter(CollectionUtil.java:65)
at com.sencha.util.CollectionUtil$MonadicList.filter(CollectionUtil.java:25 2)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequires(AppOr PackageEnvironment.java:83)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag eEnvironments(AppOrPackageEnvironment.java:165)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag esNoThemes(AppOrPackageEnvironment.java:212)
at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackag eNamesNoThemes(AppOrPackageEnvironment.java:203)
at com.sencha.command.environment.AppEnvironment.<init>(AppEnvironment.java :66)
at com.sencha.command.environment.BuildEnvironment.load(BuildEnvironment.ja va:193)
at com.sencha.command.Sencha.loadBuildEnvironment(Sencha.java:374)
at com.sencha.command.Sencha.main(Sencha.java:127)
Run Code Online (Sandbox Code Playgroud)
我的packager文件packagerAndroid.json位于包文件夹中
我在app.json中使用了以下代码 …
android ×7
ios ×2
iphone ×2
xcode ×2
android-ndk ×1
bitmap ×1
cocoa-touch ×1
eclipse ×1
extjs ×1
geolocation ×1
google-api ×1
google-play ×1
google-plus ×1
json ×1
jsonmodel ×1
textview ×1
touch-id ×1