• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

XDA has gone all Switch'ed uP

With the recent news of an android port running on the Nintendo Switch; which in turn allows you to run Steam games XDA have dropped some support forums for all things Switch.

https://twitter.com/switchroot_org/status/1140278584638103554?s=09

https://forum.xda-developers.com/nintendo-switch

So if your into android/switch tweaking why not take a look around.. :cool:

Accessories Aukey 20000mAh Universal Power Bank

Greetings, Here is another awesome Aukey product for review. As usual, I'm not being paid for any of the reviews, nor do I receive any promotions other than the product itself for review.

The 20000mAh 15W output Universal Power Bank is slightly larger than my SGN8 on all sides, and only slightly thicker. It is a heavy device (almost 14 oz), so you're probably not going to want to walk around with this thing in your pocket, but it's slim design allows it to be done if you choose to (not recommended). I have tried this with my SGN8 and it charges really fast! I can get about 4 charges out of it starting when my note gets to about 40-50 percent remaining. I have not tried it from a completely depleated charge yet. It does have 3.0 "quick charge" adaptive charging capability.

The instructions says that it takes about 10 hours to charge. It seems a lot faster to me (maybe 8 hours). You will need your own charging cable as it only comes with a charging cable from the device to your other device. There is no USB cable included. That was a bit of a foul, but not completely a show stopper since most people have plenty of those cables around (use the one that you have for your phone). There are 4 mini LED lights on the side to give you an indication of the charging power remaining.

Overall, this is a very simple, yet extremely powerful device that works well with the SGN8 and other devices. I would highly recommend it if you are away from a charger (beach, traveling to another country, on a business trip, etc).

If you have any questions, let me know. I work out of town but I'll try to get back to you as soon as possible. I think you'll enjoy this little device.

https://www.aukey.com/products/20000mah-power-bank-with-usb-c-lightning-input-pb-y14
https://www.aukey.com

Attachments

  • 20190618_164336.jpg
    20190618_164336.jpg
    314.7 KB · Views: 322
  • 20190618_164424.jpg
    20190618_164424.jpg
    327.5 KB · Views: 339
  • 20190618_164508.jpg
    20190618_164508.jpg
    247.2 KB · Views: 287

App to backup EVERYTHING on phone

I just found this forum so please forgive me if this has been answered. I searched and could not find much of interest.

I just lost some files when doing a Verizon software update. I had to reset the phone and while the contacts and such were salvaged, the files were apparently not backed up. Of interest to me were some voice recording made with the voice recording app. It is probably way past too late to fix this problem, but can anyone point me to an app that will do a complete image of the phone? All apps, data, messages, contacts, documents, downloaded stuff, attachments, etc. I mean EVERYTHING in one swell foop.

If such an app exists I can envision writing a Tasker script to run it automagically on a schedule and avoid any future catastrophes.

Thoughts anyone?

Thanks for your help,
Mike

Help File/data security

Honor 10 lite - Android 9

Dear all, I am concerned about data security if I lose my phone.

Is it true that all Android phones now encrypt the data that you store by default ?
If so is it fair to say no one could recover data from my phone unless they could log in like I do ? ( Pattern Grid thing )

And as a follow up question. Is there an app to overwrite the free space in which the deleted files exist ? IE Bleachbit for Android.

cheers

aapt.exe Non-Zero Exit Value 1

I've been working on an Android app with various activities, and, only as of recently, I have not been able to build as I've been getting the build error

Process 'command 'C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe'' finished with non-zero exit value 1

This is what the log looks like:
Code:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'.
   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103)
   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
   at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
   at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
   at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
   at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
   at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
   at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
   at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
   at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
   at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
   at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
   at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
   at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
   at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
   at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249)
   at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238)
   at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
   at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
   at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
   at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
   at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663)
   at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:597)
   at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Failed to execute aapt
   at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:201)
   at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:82)
   at sun.reflect.GeneratedMethodAccessor330.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
   at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
   at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
   at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
   at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
   ... 33 more
Caused by: com.android.ide.common.process.ProcessException: Failed to execute aapt
   at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:867)
   at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:194)
   ... 48 more
Caused by: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe with arguments {package -f --no-crunch -I C:\Users\TA\AppData\Local\Android\Sdk\platforms\android-22\android.jar -M \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug -m -J \\?\C:\Users\TA\Documents\Android Full Test\app\build\generated\source\r\debug -F C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package androidfulltest -0 apk --output-text-symbols \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\symbols\debug --no-version-vectors}
   at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
   at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
   at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
   at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:865)
   ... 49 more
Caused by: com.android.ide.common.process.ProcessException: Error while executing process C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe with arguments {package -f --no-crunch -I C:\Users\TA\AppData\Local\Android\Sdk\platforms\android-22\android.jar -M \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug -m -J \\?\C:\Users\TA\Documents\Android Full Test\app\build\generated\source\r\debug -F C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.zebratechnologies.androidfulltest -0 apk --output-text-symbols \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\symbols\debug --no-version-vectors}
   at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:74)
   at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:49)
   at com.android.builder.internal.aapt.AbstractProcessExecutionAapt$1.onSuccess(AbstractProcessExecutionAapt.java:78)
   at com.android.builder.internal.aapt.AbstractProcessExecutionAapt$1.onSuccess(AbstractProcessExecutionAapt.java:74)
   at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)
   at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:457)
   at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
   at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:145)
   at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:185)
   at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
   at com.android.build.gradle.internal.process.GradleProcessExecutor$1.run(GradleProcessExecutor.java:60)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe'' finished with non-zero exit value 1
   at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:389)
   at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:47)
   ... 9 more

This is what my gradle looks like (a side note: I am using Gradle plugin 2.3.3 with Gradle version 4.1 so compile is still used as opposed to implementation):

Java:
apply plugin: 'com.android.application'

android {

   defaultConfig {
       buildToolsVersion '25.0.2'
       compileSdkVersion 'Zebra Technologies Corp:EMDK APIs:22'
       applicationId "androidfulltest"
       minSdkVersion 22
       targetSdkVersion 27
   }

   buildTypes {
       release {
           minifyEnabled false
           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
           applicationVariants.all { variant ->
               variant.outputs.each { output ->
                  // def fileName = "${project.name}_${output.baseName}-${variant.versionName}.apk"
                   //outputFileName = new File(output.outputFile.parent, fileName).getName()
                     output.outputFile = new File(output.outputFile.parent,
                            output.outputFile.name.replace("app-release-unsigned", "AndroidFullTest"))
               }
           }
       }
       debug {
           applicationVariants.all { variant ->
               variant.outputs.each { output ->
                  // def fileName = "${project.name}_${output.baseName}-${variant.versionName}.apk"
                  // outputFileName = new File(output.outputFile.parent, fileName).getName()
                     output.outputFile = new File(output.outputFile.parent,
                        output.outputFile.name.replace("app-debug", "AndroidFullTest"))
               }
           }
       }
   }
   // productFlavors {
   //}
   compileOptions {
       sourceCompatibility JavaVersion.VERSION_1_7
       targetCompatibility JavaVersion.VERSION_1_7
   }
}

   dependencies {

       compile 'com.android.support.constraint:constraint-layout:2.0.0-beta2'
       compile 'com.google.android.things:androidthings:1.0'
       compile 'com.android.support:recyclerview-v7:22.1.1'
       compile "com.android.support:appcompat-v7:26.0.2"
       compile "com.android.support:support-v13:26.0.2"
   }
This is what my manifest looks like:
XML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="testAct"
   android:installLocation="internalOnly"
   android:versionCode="1"
   android:versionName="1.0" >

   <!--uses-sdk
       android:minSdkVersion="23"
       android:targetSdkVersion="25" /-->
   <uses-permission android:name="android.permission.VIBRATE"/>
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.RECORD_AUDIO" />
   <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
   <uses-permission android:name="android.permission.WAKE_LOCK" />
   <uses-permission android:name="android.permission.CAMERA"/>
   <uses-permission android:name="android.permission.FLASHLIGHT"/>
   <uses-permission android:name="android.permission.BATTERY_STATS"/>
   <uses-permission android:name="android.permission.NFC" />
   <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
   <uses-permission android:name="android.permission.INTERNET"/>
   <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
   <uses-permission android:name="android.permission.BLUETOOTH"/>
   <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
   <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
   <uses-permission android:name="com.symbol.emdk.permission.EMDK"/>
   <uses-permission android:name="com.google.android.things.permission.MANAGE_INPUT_DRIVERS" />
   <uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO" />
   <uses-permission android:name="android.permission.GET_TASKS"/>
   <uses-feature android:name="android.hardware.camera" />

   <uses-feature android:name="android.hardware.camera.front" />
   <uses-feature android:name="android.hardware.camera.autofocus" />
   <uses-feature android:name="android.hardware.camera.flash" android:required="false" />
   <uses-feature android:name="android.hardware.usb.host" />

   <application android:name="testAct.GlobalVars"
       android:allowBackup="true"
       android:icon="@drawable/zebra_head"
       android:label="@string/app_name"
       android:theme="@style/AppTheme">
       <uses-library android:name="com.symbol.emdk" />
      <!-- <uses-library android:name="com.google.android.things.pio" /> -->
       <class android:name="testAct.GlobalVars" />
       <activity android:name="testAct.SplashMainActivity" android:label="@string/app_name" >
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>        
       </activity>
       <activity android:name="testAct.ConfigCheckTestActivity" android:label="@string/str_config_check_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.DisplayTestActivity" android:label="@string/str_display_test_title" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.TouchpanelTestActivity" android:label="@string/str_touchpanel_test_title" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>  
       <activity android:name="testAct.BacklightTestActivity" android:label="@string/str_backlight_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.ButtonsTestActivity" android:label="@string/str_buttons_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.SDCardTestActivity" android:label="@string/str_sdcard_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.FrontMicrophoneTestActivity" android:label="@string/str_front_microphone_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.RearMicTestActivity" android:label="@string/str_rear_microphone_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.SpeakerTestActivity" android:label="@string/str_speaker_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.MultiTouchTestActivity" android:label="Multi-Touch Test">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.HeadsetTestActivity" android:label="@string/str_headset_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.ScannerTestActivity" android:label="@string/str_scanner_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.CameraFrontTestActivity" android:label="@string/str_camera_front_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.NFCReadTestActivity" android:label="@string/str_nfc_read_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.WiFi2GTestActivity" android:label="@string/str_wifi2g_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.WiFi5GTestActivity" android:label="@string/str_wifi5g_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.BluetoothTestActivity" android:label="@string/str_bluetooth_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.EthernetTestActivity" android:label="@string/str_ethernet_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.USBHostTestActivity" android:label="@string/str_usb_host_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.FailedTestActivity" android:label="@string/str_failed_test_title">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.LightSensorTestActivity" android:label="@string/str_light_sensor_test_message">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.GSensorTestActivity" android:label="@string/str_g_sensor_test_message">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.CompassTestActivity" android:label="@string/str_compass_test_message">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.CameraBackTestActivity" android:label="**Rear Camera Test**">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
       <activity android:name="testAct.SerialPortTestActivity" android:label="**Serial Port Test**">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
           </intent-filter>
       </activity>
   </application>

</manifest>
This is what the build outputs once it hits aapt.exe:
Code:
Starting process 'command 'C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.0\aapt.exe''. Working directory: C:\Users\TA\Documents\Android Full Test\app Command: C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.0\aapt.exe package -f --no-crunch -I C:\Users\TA\AppData\Local\Android\Sdk\platforms\android-22\android.jar -M \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug -m -J \\?\C:\Users\TA\Documents\Android Full Test\app\build\generated\source\r\debug -F C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.zebratechnologies.androidfulltest -0 apk --output-text-symbols \\?\C:\Users\TA\Documents\Android Full Test\app\build\intermediates\symbols\debug --no-version-vectors
Successfully started process 'command 'C:\Users\TA\AppData\Local\Android\Sdk\build-tools\25.0.0\aapt.exe''
AGPBI: {"kind":"error","text":"Attribute \"android:alpha\" has already been defined","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":644}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"android:translationX\" has already been defined","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":687}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"android:translationY\" has already been defined","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":687}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Attribute \"android:translationZ\" has already been defined","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values\\values.xml","position":{"startLine":687}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Widget.Button.Inverse\u0027.","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values-v23\\values-v23.xml","position":{"startLine":3}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:Widget.Material.Button.Colored\u0027.","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values-v23\\values-v23.xml","position":{"startLine":33}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Widget.Button.Borderless.Colored\u0027.","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values-v24\\values-v24.xml","position":{"startLine":2}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Error retrieving parent for item: No resource found that matches the given name \u0027android:TextAppearance.Material.Widget.Button.Colored\u0027.","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values-v24\\values-v24.xml","position":{"startLine":3}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"No resource found that matches the given name: attr \u0027android:keyboardNavigationCluster\u0027.","sources":[{"file":"C:\\Users\\TA\\Documents\\Android Full Test\\app\\build\\intermediates\\res\\merged\\debug\\values-v26\\values-v26.xml","position":{"startLine":14,"startColumn":20,"startOffset":832,"endColumn":53,"endOffset":865}}],"original":"","tool":"AAPT"}
C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values\values.xml:645: error: Attribute "android:alpha" has already been defined
C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values\values.xml:688: error: Attribute "android:translationX" has already been defined
C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values\values.xml:688: error: Attribute "android:translationY" has already been defined
C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values\values.xml:688: error: Attribute "android:translationZ" has already been defined
C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

C:\Users\TA\Documents\Android Full Test\app\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.


:app:processDebugResources FAILED
:app:processDebugResources (Thread[Task worker for ':',5,main]) completed. Took 0.576 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
So far I've:

-Uninstalled and reinstalled all plugins
-Cleaned and built the project
-Invalidated caches and restarted Android Studio
-Changed the minSdkVersion and targetSdkVersions to match, for each version that
currently exists, none have worked
-Changed the buildToolsVersion to each version that currently exists, none have
worked

Would anyone have any other ideas of what I should do to fix this? Thank you for any help.

Galaxy S8+ playing notification noise when replying to messages in the top down menu

Whenever I reply to a message that's in the notification area, it plays a noise like I've just received another message, even though all that's happening is that I'm replying to a message that I've already gotten. Is there some setting to turn this off that I'm not aware of? I've looked online and can't find anything about it. Any recommendations would be appreciated. Thank you all.
I've attatched a link to a youtube video that I recorded demonstrating this phenomenon.

Lost most audible notifications

Samsung S8 - ver 9

In the last few days I've lost audible notification on a number of apps. Still get vibrations. Still get popups. Still get notifications on my S3 watch.

Interestingly, to me, is the selectivity. No longer get notifications on Gmail, but get them in TypeApp.
Don't get notifications in 'Messages' or 'Reminder,' but get them in "to do List."
Get messages in the Ring app and Wemo, but not from Lifmaster.
Get phone rings.
AFAIK, I've changed nothing. Any way to troubleshoot this?

SMS blocking for Z2 Play Verizon?

A friend has a Motorola Z2 Play (Verizon) and he's being overwhelmed with SMS spam. The Verizon version isn't rootable so I'm wondering if there is there a call blocker app that can block text messaging without root. I've been rooted so long I've lost track of the limitations on non-root but I seem to remember that earlier Androids (4 and before, IIRC) couldn't block SMS without root, but my recollection is hazy.

And if all he needs is the right app, what do you recommend?

Help stop em dead call blocker

I am looking for a call blocker that will prevent a blacklisted number from ringing through.

I have a Samsung S6. I have tried other call blockers and have been dissatisfied for a number of reasons--either too many ads or 'blocked' numbers still ringing three or four times.

searching on the Internet I came across several that seemed acceptable, such as Safest Call Blocker, but further interest gives me a window that says "the app is not found on Google Play."

Any one have a recommendation for a call blocker that will actually block calls...stop them dead, no rings. I don't mind buying the app to be shut of ads but I don't want a yearly subscription. Free would be best and simple welcome--set it and forget it.

Nickname Wi-Fi Connections

Without resorting to an app is there a way to change a wi-fi name on my cell phone. I know how to change my own SSID but I am talking about the numerous wi-fi names on my cell. Most of time when I am at a friends or a business I trust it automatically connects if I have entered the password before. I would like to nickname them to something I can easily identify as one I trust.

MainActivity setup creates different code on startup

Hi just setting out need a little pointer please...

One I go though all the setup in android studio 3.1.2 I get:

package com.example.simplelogin

...
class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
}



Where as all the tutorials I open start something like below:

is this the equivalent? why is it different? Thanks -Hagen



package com.example.sairamkrishna.myapplication;

...


public class MainActivity extends Activity {


@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

}

[GAME] Crypto Treasures

CRYPTO TREAURES
What if all the cryptocurrency in the world was locked in a Treasure Chest with one single key?​


Be a part of Crypto Treasures with challenging quests that leave you on your toes. Unlock Treasure Chests with Daily and Weekly Quests, all while earning and learning about crypto and blockchain. Perfect for beginners too.

Challenge and entertain yourself with Treasure Chests on the go! Watch Crypto evolve into relevancy while playing fun, interactive, and challenging games. We provide a platform for other apps to tie into our blockchain, thus increasing our ecosystem.

Ready for Adventure?

The Treasure Chests randomly give a collectible Patch Badge, claim all ten to see what’s in store!
Enter the Cave to see your Patch Badge collection & Cryptocurrencies you have earned.

A few features:

Minigames and Quests embedded in Crypto Treasures as stand-alone games
These blockchain games tie back into the platform to earn more points
Accumulate Treasure Chests, Gold and other Items quickly with our in-app shop
A built-in wallet that provides real-time data
Improve the gaming experience with items, such as; a Shovel, Magnet or Crypto Key.

Download: https://play.google.com/store/apps/details?id=com.cryptotreasures

Attachments

  • 1.png
    1.png
    1.7 MB · Views: 234
  • 2.png
    2.png
    1.7 MB · Views: 207
  • 3.png
    3.png
    1.6 MB · Views: 295
  • 4.png
    4.png
    1.8 MB · Views: 321
  • 5.png
    5.png
    1.6 MB · Views: 235
  • 6.png
    6.png
    1.5 MB · Views: 211

App not connecting to Internet on certain phones

Hello,

I am very new when it comes to Android development and I'm having some really frustrating issues. I'm basically trying to access MySQL database through my app (developed in Unity) and while pretty much everything works on my computer, when .apk is installed on my phone (Mi A2) or my collegue's Huawei, it seems to be unable to access the Internet. I have searched for threads of similar issues and have already set Internet access to "Require" in Player Settings. Manifest file also seems to contain the required line
<uses-permission android:name="android.permission.INTERNET"/>
. What's even more frustrating is that if I test the app on Bluestacks it manages to establish the connection, and it also works on Samsung S8. As far as I can tell there are no settings which would block internet access on first two phones.

I really can't find what could be the problem so I'm hopeful some of you might have more clue.

I'm not sure if it's common to post .apks here, but on this link: https://www.mediafire.com/file/rusr76y170anc5s/database.apk/file is the .apk of a test application which checks if internet access is available, if anyone wants to try it out. It's not used to access my database but rather to test which phones are unable to connect to Internet.

Problem with Selected value in a Spinner

Hello,

I have a big problem: When I fill a spinner dynamically with data from a table in a database and want to select a value, this value does not remain displayed, it disappears immediately. (and I only have the little arrow of the Spinner that remains displayed!). I use Android Studio 3.4.1
Thank you for your answer that I hope very fast because I am stuck on this point for several days!

(When the spinner is filled by a static list, there is no problem!)

Best wishes

android project organisation

Hi,
I am doing a project with firestore...so my app have model classes.
I need to import data to preload firestore (reference data, test data and so on) so I used admin SDK but the preload code needs models classes too.

My question :

How organize my project :

1) Should I put admin classes (that do import with a main function) in the app module and tell gradle to not put it in the app when building ?

2) Should I put my admin classes in another module (android library, ..) but in this case where should be my models classes ? in the app module, in the library module, .. ?

Please advice
Ty for your help...

Back camera and flash is not working.

Hi can any one help me with camera.
Am trying to create custom camera with three buttons capture, switch camera , and flash .
when i capture image the image should display in Display.class and save to phone.
but when i use back camera blank page is diaplaying and when i use front camera image is displaying in display activity. Please check my code and tell me what is the problem. Logcat is not showing any error.

Custom_camera_activity.java
Code:
  @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_custom__camera );

        //Flash
        hasFlash = getApplicationContext().getPackageManager()
                .hasSystemFeature( PackageManager.FEATURE_CAMERA_FLASH);
        if (!hasFlash) {
            // device doesn't support flash
            // Show alert message and close the application
            AlertDialog alert = new AlertDialog.Builder(Custom_CameraActivity.this)
                    .create();
            alert.setTitle("Error");
            alert.setMessage("Sorry, your device doesn't support flash light!");
            alert.setButton("OK", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    // closing the application
                    finish();
                }
            });
            alert.show();
            return;
        }


        getWindow().addFlags( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON );
        context = this;

        mCamera = Camera.open();
        mCamera.setDisplayOrientation( 90 );
        camerapreview = (LinearLayout) findViewById( R.id.camera_preview );
        mCameraPreview = new CameraPreview( context, mCamera );
        camerapreview.addView( mCameraPreview );

        capture = (ImageButton) findViewById( R.id.button_capture );
        capture.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                    mCamera.takePicture( null, null, mPicture );
            }
        } );

        switchCamera = (ImageButton) findViewById(R.id.btnSwitch);
        switchCamera.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //get the number of cameras
                int camerasNumber = Camera.getNumberOfCameras();
                if (camerasNumber > 1) {
                    //release the old camera instance
                    //switch camera, from the front and the back and vice versa

                    releaseCamera();
                    chooseCamera();
                } else {


                }
            }
        });

        flash= (ImageButton)findViewById( R.id.bulb ) ;
        flash.setOnClickListener( new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(isFlashOn){
                    turnOffFlash();
                }else{
                    turnOnFlash();
                }
            }
        } );

        mCamera.startPreview();
        //initializeCamera();
    }

    private void turnOnFlash() {
        if (isFlashOn) {
            if (mCamera != null || params != null) {
                return;
            }
            params = mCamera.getParameters();
            params.setFlashMode( Camera.Parameters.FLASH_MODE_OFF);
            mCamera.setParameters(params);
            mCamera.stopPreview();
            isFlashOn = false;
        }
    }

    private void turnOffFlash() {

       if(!isFlashOn) {
            if (mCamera == null || params == null) {
                return;
            }
            params = mCamera.getParameters();
            ((Camera.Parameters) params).setFlashMode( Camera.Parameters.FLASH_MODE_TORCH);
           mCamera.setParameters(params);
           mCamera.startPreview();
            isFlashOn = true;

        }

    }

    private void initializeCamera() {
        int cameraId= findBackFacingCamera();
        if(cameraId >= 0){
            mCamera= Camera.open(cameraId);
            mCamera.setDisplayOrientation( 180 );
            mPicture=getPictureCallBack();
            mCameraPreview.refreshCamera( mCamera );
        }
    }


    private int findFrontFacingCamera() {
        int cameraId = -1;
        // Search for the front facing camera
        int numberOfCameras = Camera.getNumberOfCameras();

        for (int i = 0; i < numberOfCameras; i++) {
            Camera.CameraInfo info = new Camera.CameraInfo();
            Camera.getCameraInfo(i, info);
            if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {
                cameraId = i;
                cameraBack = false;
                break;
            }
        }
        return cameraId;

    }

    private int findBackFacingCamera() {
        int cameraId = -1;
        //Search for the back facing camera
        //get the number of cameras
        int numberOfCameras = Camera.getNumberOfCameras();
        //for every camera check
        for (int i = 0; i < numberOfCameras; i++) {
            Camera.CameraInfo info = new Camera.CameraInfo();
            Camera.getCameraInfo(i, info);
            if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {
                cameraId = i;
                cameraBack = true;
                break;

            }

        }
        return cameraId;
    }

    @Override
    protected void onResume() {
        super.onResume();
        if(mCamera== null){
            mCamera = Camera.open();
            mCamera.setDisplayOrientation( 90 );
            mPicture= getPictureCallBack();
            mCameraPreview.refreshCamera(mCamera);
            Log.d("nu","null");
        }else{
            Log.d("nu","no null");
        }
    }

    public void chooseCamera() {
        //if the camera preview is the front
        if (cameraBack) {
            int cameraId = findFrontFacingCamera();
            if (cameraId >= 0) {
                //open the backFacingCamera
                //set a picture callback
                //refresh the preview

                mCamera = Camera.open(cameraId);
                mCamera.setDisplayOrientation(90);
                mPicture = getPictureCallBack();
                mCameraPreview.refreshCamera(mCamera);
            }
        } else {
            int cameraId = findBackFacingCamera();
            if (cameraId >= 0) {
                //open the backFacingCamera
                //set a picture callback
                //refresh the preview
                mCamera = Camera.open(cameraId);
                mCamera.setDisplayOrientation(90);
                mPicture = getPictureCallBack();
                mCameraPreview.refreshCamera(mCamera);
            }
        }
    }

    @Override
    protected void onPause() {
        super.onPause();
        releaseCamera();
    }

    private void releaseCamera() {
        if(mCamera != null){
            mCamera.stopPreview();
            mCamera.setPreviewCallback( null );
            mCamera.release();
            mCamera= null;
        }
    }
    private Camera.PictureCallback getPictureCallBack() {
        Camera.PictureCallback picture = new Camera.PictureCallback() {
            @Override
            public void onPictureTaken(byte[] data, Camera camera) {
                bitmap = BitmapFactory.decodeByteArray( data,0,data.length );
                Intent intent= new Intent(Custom_CameraActivity.this,Display.class);
                startActivity( intent );
            }
        };
        return  picture;
    }

}
CameraPreview.java
Code:
public class CameraPreview extends SurfaceView implements
        SurfaceHolder.Callback {
    private SurfaceHolder mHolder;
    private Camera mCamera;


    // Constructor that obtains context and camera
    @SuppressWarnings("deprecation")
    public CameraPreview(Context context, Camera camera) {
        super(context);
        this.mCamera = camera;
        this.mHolder = this.getHolder();
        this.mHolder.addCallback(this);
        this.mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    }

    @Override
    public void surfaceCreated(SurfaceHolder holder) {
        try {
            // create the surface and start camera preview
            if (mCamera == null) {
                mCamera.setPreviewDisplay(holder);
                mCamera.startPreview();
            }
        } catch (IOException e) {
            Log.d(VIEW_LOG_TAG, "Error setting camera preview: " + e.getMessage());
        }
    }

    public void refreshCamera(Camera camera){
        if(mHolder.getSurface()== null){
            return;
        }
        try{
            mCamera.stopPreview();
        }catch (Exception e){

        }
        setCamera(camera);
        try{
            mCamera.setPreviewDisplay( mHolder );
            mCamera.startPreview();
        }catch (Exception e){
            Log.d(VIEW_LOG_TAG,"Error Starting camera preview: " +e.getMessage());

        }
    }

    private void setCamera(Camera camera) {
        mCamera = camera;
    }

    @Override
    public void surfaceDestroyed(SurfaceHolder surfaceHolder) {

    }

    @Override
    public void surfaceChanged(SurfaceHolder Holder, int format,
                               int width, int height) {
        // start preview with new settings
       refreshCamera( mCamera );

    }


}

Display.java
Code:
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate( savedInstanceState );
    setContentView( R.layout.activity_display );

    image = findViewById( R.id.imageView );
    scancode=findViewById( R.id.scan );
    scancode.setOnClickListener( this );

    image.setImageBitmap( Custom_CameraActivity.bitmap);
    saveImage(Custom_CameraActivity.bitmap);


private String  saveImage(Bitmap mybitmap) {
    ByteArrayOutputStream bytes = new ByteArrayOutputStream(  );
    mybitmap.compress( Bitmap.CompressFormat.JPEG,90,bytes );
    File file= new File( Environment.getExternalStorageDirectory() + IMAGE_DIRECTORY );
    if(!file.exists() ){
        Log.d("dirrrrrr","" + file.mkdirs());
        file.mkdirs();
    }
    try{
        File f = new File( file, Calendar.getInstance().getTimeInMillis() + ".jpg");
        f.createNewFile();
        FileOutputStream fo = new FileOutputStream( f );
        fo.write( bytes.toByteArray() );
        MediaScannerConnection.scanFile( this,new String[]{f.getPath()} ,
                new String[]{"image/jpeg"},null);
        fo.close();
        Log.d( "TAG","File Saved:: ---- " + f.getAbsolutePath() );
        return f.getAbsolutePath();
    }catch(IOException e1){
        e1.printStackTrace();
    }
    return "";
}

Please check this code and help me to trace the issue.

RR 7.1.2 no finger print reader at all.

Done know why this is. I can install another ROM and get the finger print reader I've purchased another reader and it isn't that. The ROM will not detect it or even give the option to use it. Also the flashlight for this ROM doesn't work. I've found a flashlight fix made by some one else but it works fine. It took me a min but I have this ROM running fine outside the small problems with met Magisk man 7.3.1 and magisk 19.3 really I've done nothing but proper install and I can't figure out if I did something wrong with flashing this ROM so hit me back with some ideas on what is up with this. If these two small details can be fixed this is by far the best ROM. It will be perfect.

RCS messaging available now!

Want RCS messaging now? See post #5 for instructions and, "How to", video


Good news for those that have converted their T-Mobile (USA) phones to the global model.

Google are taking RCS, (Rich Communication Suite), out of the hands of the carriers, some of whom were insisting on their own faux, ersatz, versions of RCS, (no names mentioned... (T-Mobile/AT&T/Verizon/Bell/SK Telecom)), and are rolling it out themselves on their own Universal Profile...

GOOGLE IS FINALLY TAKING CHARGE OF THE RCS ROLLOUT


See, also...

Google will let Android users in the UK and France use RCS regardless of carrier support

Filter

Back
Top Bottom