Click here to Skip to main content
14,663,986 members
Home » Discussions » Android
   

Android

 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
The_Arcaniac1-Feb-20 23:13
MemberThe_Arcaniac1-Feb-20 23:13 
GeneralRe: Do you believe that Kotlin will become more popular than Java? Pin
Afzaal Ahmad Zeeshan2-Feb-20 7:14
mvaAfzaal Ahmad Zeeshan2-Feb-20 7:14 
Questionattach .jar file to already running apk in emulator Pin
Member 1457084310-Oct-19 6:41
MemberMember 1457084310-Oct-19 6:41 
AnswerRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan10-Oct-19 22:10
mveRichard MacCutchan10-Oct-19 22:10 
GeneralRe: attach .jar file to already running apk in emulator Pin
Member 1457084311-Oct-19 0:11
MemberMember 1457084311-Oct-19 0:11 
GeneralRe: attach .jar file to already running apk in emulator Pin
Richard MacCutchan11-Oct-19 0:53
mveRichard MacCutchan11-Oct-19 0:53 
AnswerRe: attach .jar file to already running apk in emulator Pin
Leanbridge Technologies21-Nov-19 19:48
professionalLeanbridge Technologies21-Nov-19 19:48 
QuestionNullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 0:52
MemberDjango_Untaken12-Sep-19 0:52 
Hello there. I am setting a click listener on a relative layout. It works fine. But today I got couple of crashes on this click listener from the user. I set this click listener in the onCreate() function of the activity. Here is what my code looks like

@Override
protected void onCreate(Bundle savedInstanceState) {
    layoutHomeButton = findViewById(R.id.layoutHomeButton);
    layoutHomeButton.setOnClickListener(new View.OnClickListener() {  //  <===exception here
                @Override
                public void onClick(View view) {
                   // my code goes here
                }
            });
}

And following is the exception I get
java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3021)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3156)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1864)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:205)
  at android.app.ActivityThread.main (ActivityThread.java:6991)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:884)
Caused by: java.lang.NullPointerException: 
  at com.hiclass.earthlivecam.publiccam.earthcam.webcamhd.ui.activities.ActivityPlayVideo.onCreate (ActivityPlayVideo.java:210)
  at android.app.Activity.performCreate (Activity.java:7159)
  at android.app.Activity.performCreate (Activity.java:7150)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1272)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3001)


what am I doing wrong? Thanks Smile | :)
AnswerRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 1:40
mveRichard MacCutchan12-Sep-19 1:40 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Django_Untaken12-Sep-19 1:44
MemberDjango_Untaken12-Sep-19 1:44 
GeneralRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
Richard MacCutchan12-Sep-19 2:24
mveRichard MacCutchan12-Sep-19 2:24 
SuggestionRe: NullPointerException When Setting ClickListener on a RelativeLayout Pin
David Crow12-Sep-19 9:22
MemberDavid Crow12-Sep-19 9:22 
QuestionUnRegister BroadcastReceiver Dynamically While Exiting App throws IllegalArgumentException Pin
Django_Untaken12-Sep-19 0:16
MemberDjango_Untaken12-Sep-19 0:16 
AnswerRe: UnRegister BroadcastReceiver Dynamically While Exiting App throws IllegalArgumentException Pin
Richard Deeming12-Sep-19 0:46
mveRichard Deeming12-Sep-19 0:46 
QuestionHow to get a email from gmail to Wordpress? Pin
Member 1456898626-Aug-19 5:42
MemberMember 1456898626-Aug-19 5:42 
AnswerRe: How to get a email from gmail to Wordpress? Pin
Richard Deeming27-Aug-19 3:09
mveRichard Deeming27-Aug-19 3:09 
AnswerRe: How to get a email from gmail to Wordpress? Pin
Leanbridge Technologies5-Nov-19 19:51
professionalLeanbridge Technologies5-Nov-19 19:51 
AnswerRe: How to get a email from gmail to Wordpress? Pin
CharlesRogers24-Dec-19 16:30
professionalCharlesRogers24-Dec-19 16:30 
QuestionImage Transfer from Raspberry Pi (in Python) to Android app (Java) Pin
Member 1453729921-Jul-19 19:57
MemberMember 1453729921-Jul-19 19:57 
AnswerRe: Image Transfer from Raspberry Pi (in Python) to Android app (Java) Pin
Richard MacCutchan21-Jul-19 21:29
mveRichard MacCutchan21-Jul-19 21:29 
Questionpython Pin
Member 1453431517-Jul-19 23:25
MemberMember 1453431517-Jul-19 23:25 
AnswerRe: python Pin
Richard MacCutchan18-Jul-19 0:37
mveRichard MacCutchan18-Jul-19 0:37 
AnswerRe: python Pin
Afzaal Ahmad Zeeshan18-Jul-19 0:56
mvaAfzaal Ahmad Zeeshan18-Jul-19 0:56 
QuestionQR camera scan with android phone using C# Pin
A.Shoman15-Jul-19 21:04
MemberA.Shoman15-Jul-19 21:04 
AnswerRe: QR camera scan with android phone using C# Pin
Richard MacCutchan15-Jul-19 21:15
mveRichard MacCutchan15-Jul-19 21:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.