Tuesday, June 4, 2013

[General] Where does this Evernote thing on my HTC One S saves its voice recordings?


Open the note, in the bottom corner, click the menu overflow (3 dots), tap "save attachment"

It will go to your download folder. You can open in google music or whatever other media player will handle the format.

From there, the choice is yours for where you send it for storage or whatever.

Just a heads up... Evernote is pretty much the most well done app ever, the utilities are endless. Odds are that if you are having a problem, there is a fix.

Posted via Android Central App



.

forum.xda-developers.com

[General] How do I transfer apps to a micro sd card on the Galaxy Tab 2?




Quote Originally Posted by Reasunach View Post

Or if this is no longer possible as I suspect it may not be. Is there a way for me to switch external memory with eternal memory



No you cannot place apps onto the SD card without rooting and finding an appropriate app. I would highly advise against it anyway. When you separate app data like that (Not all data would be moved to the SD card anyway) it slows the app loading because the OS has to look in two different places for it anyway.

I am guessing that eternal is a typo? Again, you would have to be rooted to do this, but I am not sure if you can. You can change the default directory that images, video, music and documents go to. Open My Files, hit menu at top right hand corner, hit Settings. You will see a bunch of check boxes. click show categories. This opens the options toward the bottom. Hopefully, this is kind of what you were looking for.


.

forum.xda-developers.com

[General] Manually sequencing Chrome bookmarks on Nexus 7?


"Desktop Bookmarks" are synced with your desktop Chrome, and won't show up on your N7 unless you have Auto sync turned on. You can edit these bookmarks on your desktop, and I believe you can order them there as well. You can edit the bookmark name on your N7, but can't order them manually.

"Mobile Bookmarks" are stored on your device. I don't think you can order them manually.

Sent from my Nexus 7 using Android Central Forums



.

forum.xda-developers.com

[General] does animations on really affect battery life?


It takes more processing power to move graphics around then to just display a static image. Think of it like a videogame....graphics/animation/framerates take more power than just kicking out a picture.



.

forum.xda-developers.com

[General] App data backup/restore? Please help!


The only way i know of to truely backup & restore ALL your data, is to be rooted and use an app such as titanium backup. It shouldn't be too hard to root your phones, download titanium, run the backup to the sdcard, and then restore it to your new phone. I've had to do that for my wifes new phone.

But you do have to be rooted to get ALL your data and saves, atleast as far i know, i may be wrong. But goodluck, keep posting if you need help with anything.

And if you do decide to root, you won't lose any data i promise, and once you restore you can really quickly flash back to stock. So you don't have stay rooted if you don't want to.



.

forum.xda-developers.com

[android help] Overlaying images over camera. Augmented reality

android - Overlaying images over camera. Augmented reality - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















So, I'm trying to create a Augmented reality app on android (client/server). My question is if i can overlay images and text boxes over the camera in real time or only if i have the capture to display it on the screen and add the extra information


If the first version can be implemented can someone help me with some starting code or links with suggestions





























I did something similar for one of my apps, And the way i did it is by placing an empty View on top of camera surfaceView using FrameLayout, then used onDraw method in the View class, to play with canvas and put anything i wanted on top of the camera view, you can practically do everything with Canvas, and since literally your view is overlaying the camera surfaceView, will do exactly the trick you are trying to accomplish here...


Regards!




















default






.

stackoverflow.comm

[android help] JAVA_HOME not pointed at JDK


I know that this question has been asked several times, but none of the answers seem to have worked.


Short version: I need to get Ant to point to my JDK rather than my JRE.


Long version:


My issue is that I'm trying to do some Android automation, and I am using a Powershell script to kick this off. Once the Powershell script runs, JUnit tests are run via an Ant build. But when I build I get this error:



BUILD FAILED
C:\Android\adt-bundle-windows\sdk\tools\ant\build.xml:598: The following error occurred while executing this line:
C:\Android\adt-bundle-windows\sdk\tools\ant\build.xml:713: The following error occurred while executing this line:
C:\Android\adt-bundle-windows\sdk\tools\ant\build.xml:727: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Android\Jre7"


I thought the problem might be that I didn't set the JAVA_HOME variable correctly, so I checked:


Here is the output of my JAVA_HOME run from my command line:



C:\Android\JDK


Here is the output when I run set in command line:



C:\Android\JDK


Here is the output when I run $env:$JAVA_HOME from the Powershell command line



C:\Android\JDK


Everywhere I look, it seems that the JAVA_HOME path is set to:



C:\Android\JDK


I have also tried to update the build.xml file in Android, but that didn't work. I looked at the ant.bat file, but that didn't help. I'm really at a loss on this.


Here is my PATH:



PATH=C:\Android\adt-bundle-windows\sdk\platform-tools;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Fil
es\Microsoft Shared\Microsoft Online Services;C:\windows\system32;C:\windows;C:\
windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Android\JDK\bin;C:\Android\apache-ant-1.9.1\bin;C:\Android\android-ndk-r8e;C:\Android\adt-bundle-windows\sdk\tools;C\perl\x86\bin;C:\Android\JDK\bin;


Here is a list of the links I have looked at and tried:


Java ant Eclipse run error


Ant build not working: unable to find a javac compiler


Java ant Eclipse run error


Why does ANT tell me that JAVA_HOME is wrong when it is not?


I'm sure there are a couple more, but I can't remember everything I've tried, but I've spent a couple hours on this now.


I am running Windows 8, on a Dell PC. I have JDK 7 installed, along with the Android Eclipse and SDK. I am using Ant 1.9.1


If I left anything out, I'm sorry.


Any help would be appreciated.



.

stackoverflow.comm

[android help] How to call an a overridden super class method in Java through JNI?


I'm attempting to override an activity callback method with a native implementation (to hook Lua into an activity). However I've hit a snag trying to call the superclass method within JNI code, as is required for the callback.


For example, I have a class like this:



class TestActivity extends Activity {

@Override
protected native void onCreate(Bundle bundle);

static {
System.loadLibrary("test-jni")
}
}


And I'm trying to implement TestActivity.onCreate() in C it like this:



void Java_test_TestActivity_onCreate(JNIEnv* env, jobject obj, jobject bundle)
{
// Get class, super class, and super class method ID...
jclass objcls = (*env)->GetObjectClass(env, obj);
jclass sprcls = (*env)->GetSuperclass(env, objcls);
jmethodID methid = (*env)->GetMethodID(env, sprcls, "onCreate", "(Landroid/os/Bundle;)V");

// Call super class method...
(*env)->CallVoidMethod(env, obj, methid, bundle);
}


However, when I try this code, TestActivity.onCreate() is called within itself instead of Activity.onCreate(), Producing this error:


JNI ERROR (app bug): local reference table overflow (max=512)


I thought a jmethodID was specific to a class and would identify the super method, however this wasn't the case.


So my question is, how do you implement this...



@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
}


In JNI?



.

stackoverflow.comm

[android help] Android: Items in lists not turning orange when clicked?


I have a ListView in my app's code, which when clicked uses an AdapterView.OnItemClickListener to detect clicks. The problem is, when I click on an item , that item's background turns to white, instead of the default orange. Like this:enter image description here


Also, when I dont use AdapterView, the clicked items turn orange without any problem. How do I make the clicked item's background orange again?


EDIT:


layout of list: main.xml




xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity"
android:background="#00000000">




android:layout_height="fill_parent"
android:textSize="15px"
android:layout_width="fill_parent"
android:background="#00000000">





onCreate():



public void onCreate(Bundle savedInstanceState) {try{
super.onCreate(savedInstanceState);


setContentView(R.layout.main);
lv= (ListView)findViewById(R.id.listview);
lv.setBackgroundColor(Color.TRANSPARENT);
lv.setCacheColorHint(Color.TRANSPARENT);
//......calculations
for(int q = 0; q HashMap map = new HashMap();
map.put("col_1", array[q]);
fillMaps.add(map);
lv.setOnItemClickListener(onListClick);
}
//......calculations
}


AdapterView:



private AdapterView.OnItemClickListener onListClick=new AdapterView.OnItemClickListener(){

public void onItemClick(AdapterView parent,View view, int position, long id)
{

lv.setBackgroundColor(Color.TRANSPARENT);
lv.setCacheColorHint(Color.TRANSPARENT);
//.....calculations
}


Custom theme being used:











.

stackoverflow.comm

[android help] Why can Java apps/applets be decompiled?


I have been working on some Android apps recently and am slightly frustrated that my apps can be reverse engineered. I do obsfucate my code but that can only go so far, a talented developer can easily get around the obsfucation.


Anyway, my question is this, why can Java app's be decompiled ? What part of Java's design allows its app's to be decompiled?


My understanding is that Java apps deploy JIT compilation, so they are only compiled before they are used for efficiency purposes, is this correct ? I would love to know the reason,


thanks!



.

stackoverflow.comm

[android help] How to retrieve selected time zones in android 4.2 world clock?

How to retrieve selected time zones in android 4.2 world clock? - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















Android 4.2 introduced a new world clock.


The world clock lets you check the time in different cities right from the Clock app or your lock screen.


There is a way, or API to retrieve the selected time zones?


enter image description here


























Alas, there is no way. The cities are stored as shared preferences of the Clock app.


See the Cities class that deals with reading and writing the prefs. The file is MODE_PRIVATE.


The only way to use this is by using reflection - which I cannot recommend!


What's a bit annoying: There is an update event broadcast (see the onPause() method of CitiesActivity) - but it doesn't contain any data.























default






.

stackoverflow.comm

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...