Nothing fancy, just a personal log with a built in search function so I can recall what is easily forgotten.
Wednesday, July 19, 2017
Malicious PHP code
Wednesday, July 12, 2017
Android Fragment Not Replacing Main Activity on Marshmallow
I am writing a calendar app that will listen for clicks on dates and drive the remainder of the app's functions by date and user.
The reason I am posting this is that my fragments replaced the main activity okay on a Lollipop device, but not on Marshmallow
After many hours of frustration, I happened to tilt the Marshmallow phone just enough to have the external light source reveal that the fragment was indeed present on the main activity, but BEHIND IT. This was not readily detected because the backgrounds are the same color and size while the main activity layout was 100% opaque. It was my elevation shadow that showed another layer beneath the main activity
Shazam!!! This fixed that problem:
This may not be proper form, but I don't care as I must push on and build the server application to the mobile. Meanwhile, here are some screen shots of the actual source code that I built and compiled directly on a Samsung Tablet with AIDE.
Aha...the all important build.gradle file
Saturday, July 8, 2017
Amazon Web Services Story - AWS, EC2 and the WIMP
I started by reading the AWS documentation.
Get AWS account and create and Windows Server Instance - Already plenty of on-line documentation.
Connect to the instance through Remote Desktop.
Click the Windows Start icon and locate Server Manager Dashboard to install Windows IIS. - Also plenty of documentation on-line.
This is what you should see as you run through the process:
Open a browser from inside the
Remote Desktop Connection
and type localhost in the address bar.
Now in order to download and install programs from the internet, you will
need to turn off Internet Enhanced Security.
Finally, you can download the Microsoft Web Platform
installer and go to town. (Remember to turn Internet Enhanced Security back on.)
One last thing ...You may need to play around with HTTP and port 80 and other such nuances.
Saturday, July 1, 2017
Problem with Android Lollipop ( 5.1.1) Action Bar and Tool Bar
RESOLUTION: Use the CORRECT constructor for ActionBarDrawerToggle:
ActionBarDrawerToggle (Activity activity,
DrawerLayout drawerLayout,
Toolbar toolbar, ◄ - THIS IS THE KEY. Previously missing.
int openDrawerContentDescRes,
int closeDrawerContentDescRes)
The main activity should extend AppCompatActivity.
and create an instance of android.support.v7.widget.Toolbar
There are plenty of full code examples online but remember to setSupportActionBar(toolbar); and that is it!
BTW
Here is what my build.gradle looks like:...
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
...
minSdkVersion 11
targetSdkVersion 21
...