Click here to Skip to main content
15,880,796 members
Home / Discussions / Android
   

Android

 
SuggestionRe: get request volley return normal null Pin
thatraja30-Oct-18 4:30
professionalthatraja30-Oct-18 4:30 
QuestionHow connect with IR camera, deep camera Pin
pablogvivo8-Oct-18 20:03
pablogvivo8-Oct-18 20:03 
Questionandroid Pin
Member 1399693125-Sep-18 2:14
Member 1399693125-Sep-18 2:14 
Questionandroid layout problem Pin
Member 1399693125-Sep-18 2:16
Member 1399693125-Sep-18 2:16 
AnswerRe: android layout problem Pin
OriginalGriff25-Sep-18 2:19
mveOriginalGriff25-Sep-18 2:19 
QuestionHow to measure a room using frustum in AR(Augmented Reality)? Pin
Member 139764627-Sep-18 0:54
Member 139764627-Sep-18 0:54 
AnswerRe: How to measure a room using frustum in AR(Augmented Reality)? Pin
Marco Bertschi7-Sep-18 0:56
protectorMarco Bertschi7-Sep-18 0:56 
QuestionNeed help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Member 1391233215-Jul-18 8:10
Member 1391233215-Jul-18 8:10 
AnswerRe: Need help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Afzaal Ahmad Zeeshan15-Jul-18 9:21
professionalAfzaal Ahmad Zeeshan15-Jul-18 9:21 
QuestionRe: Need help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Member 1391233215-Jul-18 11:49
Member 1391233215-Jul-18 11:49 
AnswerRe: Need help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Afzaal Ahmad Zeeshan15-Jul-18 12:31
professionalAfzaal Ahmad Zeeshan15-Jul-18 12:31 
I shared a link for a thread that talks about a common problem in Android programming. The function findViewById() tries to capture the View from the current context or the scope, which is mostly the Activity. When you try to find the view by the ID of, keywordlist, runtime will try to find the view inside the current context, most likely, Activity you are currently inside.

For example, you just inflated the activity_main layout, but you are having the ListView defined inside another layout file,
HTML
<ListView
    android:id="@+id/keywordlist" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent">
</ListView>
This is one of the problems that you might be facing, because your View is not even inflated — unless your activity_main tries to inflate this view internally, which I am not sure of as you did not show the code for that activity.

I did not run the code, or analyze it completely, but most likely there are two things that might go wrong here,
  1. The view does not get inflated, or it not found in the context you are trying to look under.
  2. You are not using the correct ID of the element.
Also check if the ID is being used correctly and for the view you are expecting to be there. Debug, debug, debug. Also try to listen on a click listener of the view and find the ID or parents of that to check the hierarchy of the elements.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Need help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Member 1391233215-Jul-18 12:39
Member 1391233215-Jul-18 12:39 
GeneralRe: Need help with android studio java. my app keeps crashing due to an null error but cant figure out why? Pin
Member 1391233215-Jul-18 20:51
Member 1391233215-Jul-18 20:51 
QuestionLooking for somebody to write app with in Android Studio Pin
Ramona_Android9-Jul-18 4:54
Ramona_Android9-Jul-18 4:54 
AnswerRe: Looking for somebody to write app with in Android Studio Pin
Richard MacCutchan9-Jul-18 5:29
mveRichard MacCutchan9-Jul-18 5:29 
GeneralRe: Looking for somebody to write app with in Android Studio Pin
Ramona_Android9-Jul-18 5:41
Ramona_Android9-Jul-18 5:41 
AnswerRe: Looking for somebody to write app with in Android Studio Pin
Kelly Ferguson19-May-19 22:53
Kelly Ferguson19-May-19 22:53 
QuestionAndroid- Accessing an asset folder using file browsing dialog window Pin
NiKHiLMS6-Jul-18 23:48
NiKHiLMS6-Jul-18 23:48 
SuggestionRe: Android- Accessing an asset folder using file browsing dialog window Pin
David Crow9-Jul-18 3:40
David Crow9-Jul-18 3:40 
GeneralRe: Android- Accessing an asset folder using file browsing dialog window Pin
NiKHiLMS9-Jul-18 19:18
NiKHiLMS9-Jul-18 19:18 
SuggestionRe: Android- Accessing an asset folder using file browsing dialog window Pin
David Crow10-Jul-18 1:56
David Crow10-Jul-18 1:56 
QuestionDialog with Landscape Orientation Pin
Django_Untaken4-Jul-18 20:16
Django_Untaken4-Jul-18 20:16 
Questionput orders from android and receive from PHP Pin
AndroidVH22-Jun-18 20:13
AndroidVH22-Jun-18 20:13 
SuggestionRe: put orders from android and receive from PHP Pin
Richard MacCutchan22-Jun-18 21:27
mveRichard MacCutchan22-Jun-18 21:27 
GeneralRe: put orders from android and receive from PHP Pin
AndroidVH22-Jun-18 21:58
AndroidVH22-Jun-18 21:58 

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.