Monthly Archives: September 2018

Search starts when Edittext has at least 3 letters

Questions: I am working in an Android studio project. Here I want to implement one searching system. I have an edittext and an imagebutton. When user writers something in edittext and press imagebutton, system shows the relevant data from some database. This much I have covered. Moreover, I want to implement a system where while… Read More »

My app is not working on a Real device using LG brand [on hold]

Questions: Error while executing: am start -n “com.calculator.usmanghanimughal087_.allinone/com.calculator.usmanghanimughal087_calculator.allinone.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.calculator.usmanghanimughal087_.allinone/com.calculator.usmanghanimughal087_calculator.allinone.MainActivity } Error type 3 Error: Activity class {com.calculator.usmanghanimughal087_.allinone/com.calculator.usmanghanimughal087_calculator.allinone.MainActivity} does not exist. Error while Launching activity Answers:

Unable to run commands as admin

Questions: I’m currently trying to run some commands within my C# program but get an “access denied” error when I try to cd. I read that changing UseShellExecute to be true would give me admin access but whenever I do that I get the following error: Exception thrown: ‘System.PlatformNotSupportedException’ in System.Diagnostics.Process.dll I’ve tried setting cmd.UserName… Read More »

Category: C#

Authentication form with a XML file

Questions: I need help with this authentication form. This is the xml file: <USER_LIST> <user> <name>giulio</name> <password>prova</password> </user> <user> <name>giulia</name> <password>prova1</password> </user> <user> <name>renato</name> <password>zero</password> </user> </USER_LIST> and this is the code i wrote: private void button4_Click(object sender, EventArgs e) { XmlDocument doc = new XmlDocument(); doc.Load(“dati.txt”); foreach (XmlNode node in doc.SelectNodes(“//user”)) { String User… Read More »

Livedata observer onChanged() is only triggered once?

Questions: I am following the LiveData samples online, somehow the LiveData is only triggered once, when the activity is created. If I open another activity to update the Oppo Object, then back to the Activity, the onChanged() is not called. I am not sure what goes wrong. Since when I check the LiveData has active… Read More »

Can't type in an edittext (android.support.v7.widget.AppCompatEditText)

Questions: I can’t figure out why I can’t type in my EditText boxes! <android.support.v7.widget.AppCompatEditText android:id=”@+id/password” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_marginTop=”15dp” android:background=”@drawable/edit_text” android:fontFamily=”@font/open_sans” android:gravity=”center_vertical” android:hint=”@string/hint_password” android:inputType=”textPassword” android:singleLine=”true” android:textSize=”18sp” android:text=””/> It needs to be v7 because the fonts don’t work otherwise… (If it is not v7 I can type in it). Answers: