AlaskaLinuxUser's Scratchpad

Commit thy works unto the LORD, and thy thoughts shall be established. - Proverbs 16:3

Searching an Array List

Searching an array list:

// When we click the search button.
public void searchACity (View searchView) {

    // Set our boolean to false.
    searchYes = false;

    // Defining an array of titles and urls.
    searchCityList = new ArrayList<String>();
    searchCityUrl = new ArrayList<String>();

    // Clear the lists, so we don't get duplicates.
    searchCityList.clear();
    searchCityUrl.clear …

Getting photos with intents on Android

During my class for app development, the instructor showed us how to get a photo from the phone's gallery with intents. I wanted to take that one step farther, so I did. I also added getting a photo from the camera. To keep things small, I set the camera still …

AOKP Nougat on my Verizon Samsung Galaxy S5!

To God be the glory! My AOKP Nougat project for the Verizon Samsung Galaxy S5 finally works! Be sure to check it out under my home made ROMs link in the menu bar!

The super cool background is supplied by the Quiet Learner, you can find more of his great …

fatal error: 'liblights/samsung_lights_helper.h' file not found

Moving on from the S4, I began work on the Note Edge, only to be greeted with this error:

[CODE]
target thumb C: lights.APQ8084 \<= hardware/samsung/liblights/lights.c
hardware/samsung/liblights/lights.c:34:10: fatal error: 'liblights/samsung_lights_helper.h' file not found
#include \<liblights/samsung_lights_helper.h>
^
1 …

Yet again, error: package com.android.okhttp does not exist

By now, I think I would remember this one by heart, yet every time, this error throws me for a loop....

[CODE]
external/apache-http/../../frameworks/base/core/java/android/net/http/SslCertificate.java:19: error: cannot find symbol
import com.android.internal.util.HexDump;
^
symbol: class HexDump
location: package com …

SyntaxError: invalid syntax

As I was wrapping up my work on the upgrade to 7.1.2 on the S4, I ran into this error, which prevented the compiler from building the userdata.img file. Here's the output:

[CODE]
get/product/jfltetmo/userdata.img
File "./build/tools/releasetools/build_image.py", line 157
print …

Healthd problems with pointers to fonts....

In the continuing saga of updating to 7.1.2, I've run into an interesting error about gr_text and gr_measure that are used to set the fonts properly when you are charging your phone while it is off. In 7.1.1, this worked just fine:

AOKP711/system/core/healthd …

CID_PATH not defined!

In an attempt to update the AOKP 7.1.1 rom for the Samsung Galaxy S4 to 7.1.2, I received an error about AOKP712/hardware/libhardware_legacy/wifi/wifi.c:179.18. The error complained that the CID_PATH was not defined, declared, or was not known.

Obviously, it was …

WebViews for dummies like me.

In my Android Developer Course, the instructor showed us how to create webviews and dataviews. I wanted to take that one step farther, so I made this app, which can switch between a dataview and a webview. You can download it here, just click on the floating button to switch …