Size: a a a

Android NDK (C++) — русскоговорящее сообщество

2020 April 29

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
ok
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Think of it as of a socket connection. You cannot perform a function invocation directly through a socket
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
if i where to just substitute the callback in my service as hardcoded would it be inefiecent to use Messenger to say accomplish this block of code

            @Override
           public void onTextChanged(TerminalSession changedSession) {
               if (!terminalController.mIsVisible) return;
               if (terminalController.mTerminalView.getCurrentSession() == changedSession) terminalController.mTerminalView.onScreenUpdated();
           }
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
We dont know what your terminal session is and what the guts of all this is
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
eg would it... be slow enough to lag the UI assuming the service dictates what the UI will look like
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
since it cannot be multi-threaded
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Matthew Good
eg would it... be slow enough to lag the UI assuming the service dictates what the UI will look like
Not really. But it is not recommended to send f.e. each frame for 60fps animation through an aidl connection
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Everything can be multithreaded with a proper engineering
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
and through a Messenger Handler connection?
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Matthew Good
and through a Messenger Handler connection?
If it is not ipc it is fine
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
Ivansuper
If it is not ipc it is fine
the service runs in a seperate process
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
And so what
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
It is was your choice to put in exactly this api and now struggle with it : )
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
so idk if that qualifies it as requiring ipc or not since the service is contained within the same application as its client
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Important
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
IF the process is in the same package AND in the same process
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
Then you can throw messenger and aidl off completely
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
i have it as
        <service
           android:name=".TerminalService"
           android:process=":TerminalService"
           android:exported="true" />
источник

I

Ivansuper in Android NDK (C++) — русскоговорящее сообщество
IPC is when you talk from Photoshop to Paint
источник

MG

Matthew Good in Android NDK (C++) — русскоговорящее сообщество
so that the terminal can survive app crashes
источник