Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to put Interfaces in a library for android App
    primarykey
    data
    text
    <p>to the point, i am working in a library for android app's, all programing part is almost finish, i am testing a idea.</p> <p>the idea is put some interfaces in the librery that i am working, and this GUI can be loaded in the main app.</p> <p>i try to do it but i get to error the first was i did not declare the activity in the AndroidManifest in the main app, the second one is the one a i cant solve, the autogenerated Class R don't capture the GUI that it is in the librery. </p> <p>it is anyway i can do this or it is imposible.</p> <p>code to see what i am trying todo </p> <p>in my librery (movilsecure)</p> <pre><code>EmisionActivity.java (have the activity_emision.xml in the res of my librery) </code></pre> <p>in the Main Android App (</p> <pre><code>import ve.com.idyseg.movilsecure.EmisionActivity; import ve.com.idyseg.movilsecure.MSMasterControllerTEST; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } public void captureEvent (View v){ Intent intento = new Intent(this,EmisionActivity.class); startIntent(intento); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload