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

Apps How to include two prebuilt interdependent shared libraries into Android application using cmake

I want to include two shared libraries liba.so and libb.so into my android application. Where function of libb.so is called from function in liba.so.

I have a Java class which calls native JNI Function as,

package com.test.myapplication;

public class MainActivity extends AppCompatActivity {

static{
System.loadLibrary(a);
System.loadLibrary(b);
}
public native void testSample();

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
testSample();
}
}
My JNI file is

#include"a.h"

extern "C" void JNICALL Java_com_test_myapplication_MainActivity_testSample( JNIEnv* env, jobject thiz) {
a_foo();
}
a.cpp file which is part of my library liba.so is

#include"b.h"
void a_foo()
{
/* ..... code .....*/
b_foo();
/* ..... code .....*/
}
My b.cpp which is part of libb.so is

void b_foo()
{
/* ..... code .....*/
}
I want to include liba.so and libb.so as librares and not as source into my application. Both the libraries are built using android-ndk independently.

Line System.loadLibrary(a); gives a runtime exception
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "b_foo" referenced by "/data/app/com.test.myapplication-yyA38UEBmsXvaqOY-hm_HQ==/lib/arm64/liba.so" when loading

Discover app doesn't open when notifications are pressed

Really, none of that applies here, Eye In The Sky, but I appreciate your input. :)

The app in question is the official app for the Discover Card, installed directly from Play. I think its odds of containing malware/trojans/etc. are slim to none. :D

At any rate, since posting this thread in June, the problem has disappeared. It most likely was due to a buggy update, then corrected with a later one.

tablet gone haywire.

Understand your frustration but keep in mind the RCA 7 Voyager II is a low-spec, low cost device commonly sold in places like Walmart. By design its long-term stability is a challenge so it's not surprising that while looking online most references for maintenance tasks aren't very definitive to the problems you've described. This online manual wasn't very helpful:
https://www.manualslib.com/manual/988638/Rca-Rct6773w22-B-7-Voyager-Ii.html?page=27#manual
or you this guide on doing a Factory Reset might apply:
https://www.unlockandreset.com/rca-tablets-all-models-hard-reset-instructions/
(follow the instructions carefully, back up any data you want to keep).
But again, this is a low-end tablet so set your expectations accordingly. Try to keep it maintained and use it for what it is as long as you can, but if you're really dependent on a good tablet I would give some serious thought into upgrading to something new or at least more appropriate.

Can one replace Odin root with Magisk root?

You might find more relevant info online looking to replace SuperSU with Magisk, as opposed to replacing Odin. The Odin utility is what you should be using to flash your device, but its SuperSU that's running on your device as the root management service.
https://www.androidexplained.com/switch-supersu-magisk/
https://forum.xda-developers.com/s7-edge/how-to/guide-install-magisk-galaxy-s7-exynos-t3726314

Clear recent apps

Maybe you're not scrolling far enough? It's always the last entry and I've never not seen it.

Why do you want to clear the apps list?

Sometimes it's placebo and sometimes it's frustration. I've done it, but not to increase performance, which it wouldn't do anyway. It goes something like this ... Sunday afternoon I'm working in the yard or out with the wife and I want to check the football scores. Rather than drill down through the drawer for the NFL app, I'll just sweep up to get to recents. It should be pretty close to the front of the list on Sunday's, but no ... I've already looked up weed killer, got three emails, a text from my sister-in-law who reset here router AGAIN ... an amazon notification, the weather app ... you get the picture. I don't know if this is just me not used to the Pixel 4 yet, but I almost always tap on the wrong app, either because the recents scroll too fast or my eye-hand coordination just isn't what it used to be. After the second or third time, I say f%$ it and scroll all the way to the end with one big satisfying swipe and "clear all". I still have to go into the app drawer, but, at least for the next few minutes, the app that I'll most likely want is top of the list.

Old Tabs Showing

Hi there! I have a question... I've been seeing this guy for awhile, and this popped up in a youtube video he made. I screenshot it and sent it to him asking him to explain and his excuse was "those are old", saying he never closes his tabs. The first two tabs are obvious dating sites. I have a very hard time believing that. Wouldn't those tabs be listed in sequential order? The page right above the dating sites was the page he last referenced. Also, anytime your phone restarted, wouldn't you lose those tabs? I need an honest opinion.

Attachments

  • Screenshot_20191118-012647.png
    Screenshot_20191118-012647.png
    348.9 KB · Views: 155

Android (pumpkin) Head unit.

Hi

Not sure if this is the right place to post.

Im a bit tech savy but not great and sorry if this has already been asked. I have a Pumpkin (see below) I have the aux lead that goes in the back, I understand Ipods have an issue connecting to Android 8.0 or newer, I just wondered if anyone has come up with an app that works with it or anyway it can work? Or if Ipod doesent work anymore is there a way of connecting an old Android phone through Aux so I can just keep all my music inside it in the glovebox. I know you can connect via bluetooth and I also know I can run spotify through the unit, just would really like all my music just sat in the car without having to rely on data or the internet for music to run.

Also is it easy to upgrade to Android 9.0?

Pumpkin Android 8.0 Car Stereo Head Unit for Ford Focus Mondeo Galaxy S-max 4GB RAM with Sat Nav Bluetooth Support CD DVD DAB+ GPS WIFI AUX Android Auto 128GB USB SD Fast-boot (Sorry I cant post links yet)

Thanks in advance

Music all the sudden started playing in background?

I had my phone on my desk and was voice chatting with a friend on an app called discord. All the sudden I heard music in the background, I thought it was my friend that had music on but decided to check for myself anyway. I was shocked to see the music playing in the background from the "play music" app. Did someone hack into my phone? I'm scared now. I downloaded antivirus and ran a full scan, it didn't find anything but I'm still worried. How could it have launched without me touching a thing. By the way it was an mp3 file that was being played. I've never had this happen before. If anyone has some info I'd really appreciated it thank you.

Filter

Back
Top Bottom