A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)



 
 
Thread Tools Display Modes
  #61  
Old November 10th 18, 12:36 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Sat, 10 Nov 2018 10:43:10 +0000, Bill wrote:

OK, call me stupid! I have only just sussed out that, in the text based
"official" first app, the words KOTLIN and JAVA above the code were
actually switches that select the code shown by the website.


Hi Bill,
I went through the exact _same_ process as you did!

When I first noticed the Kotlin stuff was different, I rooted around, and
then realized, belatedly, what looked like an image on the web page of the
code was actually an "active" image, where you can switch from Kotlin on
the left in the web page to Java on the right of the same web page (making
it a completely different web page).

The good news is that the tutorial "remembers" your selection, so you only
have to do it once (if your browser remembers stuff). I had forgotten that
I went through that, so I apologize for not warning you.

So I've
been trying to understand why code for Kotlin (which I suppose I'll have
to research) didn't work in Java.


Like you, I have absolutely no idea what "kotlin" is, nor do I want to
worry about it, for now. Aw heck, let's do a quick searchnsee:
https://en.wikipedia.org/wiki/Kotlin_(programming_language)

The name comes from Kotlin Island, near St. Petersburg. It's just another
language. I don't see any value in it, for we noobs, at this point in time.

I am still surprised that there appears to be no sort of forum catering
for Android Studio, and how I still haven't found any living java usenet
lists.


Probably XDA Developers and other sites are good for that.
For now, I'm content to do this here as the Butterfield tutorials are good.

I have now got through the text based button and message build, which
works, and am starting on the first Butterfield video.


Good for you, Bill.
Let me know if you have questions.

Since I had downloaded the videos, I skipped the YouTube web page, but I
just now realized that the YouTube page has LOTS of comments (like about
five hundred for each video), where skimming them might help.

I'm running the third video (I don't think I'll do the fourth as it covers
stuff that is too advanced, I think).

Just remember he is using an older version of Android Studio than we are
(I'm using version 3.2.1) where some of his selections are in slightly
different places (but it only took me an extra minute or two to find stuff
he used).

In the third video, he uses "containers" with "ListView" objects which,
apparently, are now in the "Legacy" location, where parent constraint
matching no longer exists ... so I'm working on that problem right now, but
you will have the benefit of my solution by the time you get to that 3rd
video.

Let me know if you have any questions on that first video while you're
running it.
Ads
  #62  
Old November 10th 18, 12:50 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Sat, 10 Nov 2018 11:36:08 -0000 (UTC), Arlen_Holder wrote:

In the third video, he uses "containers" with "ListView" objects which,
apparently, are now in the "Legacy" location, where parent constraint
matching no longer exists ... so I'm working on that problem right now, but
you will have the benefit of my solution by the time you get to that 3rd
video.


Hi Bill,
I _highly_ recommend you read the comments in the video (which I had
skipped until now!).

For example, in the first video, some one complains that they're on AMD and
that the emulator doesn't work (sound familiar?). That guy gave up,
concluding that it doesn't work (it doesn't), but he didn't know that the
Microsoft Emulator works perfectly instead.

In the third video, I just saw this which would have saved me a few minutes
"Ryan Lackie, 5 months ago
ListView is under Legacy instead of Containers"

One caveat is that 99 out of 100 of the comments are either
o Dead wrong, or,
o Written by a fifth grader

This is my first time reading YouTube comments, so it's an eye opener how
"dumb" most of those people are, where they mostly complain without adding
any additional value (1 out of 100 adds value).

I'm used to watching YouTube using the NewPipe freeware, which doesn't show
comments (at least the way my settings are don't) & which doesn't have ads.
https://newpipe.schabi.org/

I'll let you know when/if I have something to report that is of general use
to you and anyone following in our footsteps.
  #63  
Old November 12th 18, 07:04 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Sat, 10 Nov 2018 11:50:14 -0000 (UTC), Arlen_Holder wrote:

I'll let you know when/if I have something to report that is of general use
to you and anyone following in our footsteps.


Hi Bill,

Today I ran app06 successfully, after a few classic debugging issues:
o http://www.bild.me/bild.php?file=1682135androidstudio61.jpg

Android Studio For Beginners Part 1,2,3,4 by Bill Butterfield, Jun 13, 2017
o https://youtu.be/dFlPARW5IX8 (part 1) === app03 is this video
o https://youtu.be/6ow3L39Wxmg (part 2) === app05 is this video
o https://youtu.be/rdGpT1pIJlw (part 3) === app06 is this video
o https://youtu.be/bu5Y3uZ6LLM (part 4)

Download these three pictures first (which are shrunk to 640x480):
o garlic.jpg = http://www.bild.me/bild.php?file=1017694garlic.jpg
o tomato.jpg = http://www.bild.me/bild.php?file=2917965tomato.jpg
o banana.jpg = http://www.bild.me/bild.php?file=3954162banana.jpg
Note: He used peach, tomato, squash (I used garlic, tomato, banana).

He's using an older version (or maybe it's the Mac) but there is no Save:
o When he clicks the "Save" icon, we don't have that icon in 3.2.1 Windows

He's using an older version so note that the "ListView" is NOT in:
o Containers ListView
But, instead, "ListView" is located, for us, in:
o Legacy ListView
But then there is also "RecyclerView" (which I didn't use):
o Containers RecyclerView

He's using an older version of Android Studio on the Mac so note that the "match_parent" doesn't exist as an option in the GUI but it is the default in the text file so just skip the GUI part when he matches that constraint.

When he creates the automatic "itemAdapter", our variables differ slightly:
o The 3.2.1 adapter automation uses "position" while he uses "i"
He's using an older version (or maybe it's the Mac) but there is no Save:
o When he clicks the "Save" icon, we don't have that icon in 3.2.1 Windows

He's using an older version so note that the "ListView" is NOT in:
o Containers ListView
But, instead, "ListView" is located in:
o Legacy ListView
But then there is "RecyclerView"
o Containers RecyclerView

He's using an older version so note that the "match_parent" doesn't exist
as an option in the GUI but it is the default in the text file so skip
the GUI part when he matches that constraint.

When he creates the automatic "itemAdapter", variables differ:
o The 3.2.1 adapter automation uses "position" while he uses "i"
So I did a global search & replace on "position" to convert to "i"
o The 3.2.1 adapter automation uses "parent" while he uses "viewGroup"
o The 3.2.1 adapter automation uses "convertView" while he uses "view"

Notice this line with two different variables!
public void onItemClick(AdapterView? parent, View view, int i, long l) {
public void onItemClick(AdapterView? parent, View view, int position, long id) {
I ended up manually editing to use his variables of "i" and "l".

When he creates an images view, the menus are slightly different:
o He uses Palette Images ImagesView
o We use Palette Widgets ImagesView
or
o We use Palette Common ImagesView

Here is the code if anyone is interested in following in our footsteps.
================================================== ==========================
java:
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\DetailActivity.java
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\ItemAdapter.java
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\MainActivity.java

res:
C:\tmp\android\app06\app\src\main\res\layout\activ ity_detail.xml
C:\tmp\android\app06\app\src\main\res\layout\activ ity_main.xml
C:\tmp\android\app06\app\src\main\res\layout\my_li stview_detail.xml

values:
C:\tmp\android\app06\app\src\main\res\values\color s.xml
C:\tmp\android\app06\app\src\main\res\values\strin gs.xml
C:\tmp\android\app06\app\src\main\res\values\style s.xml
================================================== ==========================
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\DetailActivity.java
package com.kiss.app06;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Display;
import android.widget.ImageView;

public class DetailActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail);

Intent in = getIntent();
int index = in.getIntExtra("com.kiss.app06.ITEM_INDEX", -1);

if (index -1) {
int pic = getImg(index);
ImageView img = (ImageView) findViewById(R.id.imageView);
scaleImg(img, pic);
}

}

private int getImg(int index) {
switch (index) {
case 0: return R.drawable.garlic;
case 1: return R.drawable.tomato;
case 2: return R.drawable.banana;
default: return -1;
}
}

private void scaleImg(ImageView img, int pic) {
Display screen = getWindowManager().getDefaultDisplay();
BitmapFactory .Options options = new BitmapFactory.Options();

options.inJustDecodeBounds = true;
BitmapFactory.decodeResource(getResources(), pic, options);

int imgWidth = options.outWidth;
int screenWidth = screen.getWidth();

if (imgWidth screenWidth) {
int ratio = Math.round( (float) imgWidth / (float)screenWidth);
options.inSampleSize = ratio;
}

options.inJustDecodeBounds = false;
Bitmap scaledImg = BitmapFactory.decodeResource(getResources(), pic, options);
img.setImageBitmap(scaledImg);
}
}
================================================== ==========================
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\ItemAdapter.java
package com.kiss.app06;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class ItemAdapter extends BaseAdapter {

LayoutInflater mInflator;
String[] items;
String[] prices;
String[] descriptions;

public ItemAdapter(Context c, String[] i, String[] p, String[] d) {
items = i;
prices = p;
descriptions = d;
mInflator = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE );
}

@Override
public int getCount() {
return items.length;
}

@Override
public Object getItem(int i) {
return items[i];
}

@Override
public long getItemId(int i) {
return i;
}

@Override
public View getView(int i, View view, ViewGroup viewGroup) {

View v = mInflator.inflate(R.layout.my_listview_detail, null);
TextView nameTextView = (TextView) v.findViewById(R.id.nameTextView);
TextView descriptionTextView = (TextView) v.findViewById(R.id.descriptionTextView);
TextView priceTextView = (TextView) v.findViewById(R.id.priceTextView);

String name = items[i];
String desc = descriptions[i];
String cost = prices[i];

nameTextView.setText(name);
descriptionTextView.setText(desc);
priceTextView.setText(cost);

return v;
}
}
================================================== ==========================
C:\tmp\android\app06\app\src\main\java\com\kiss\ap p06\MainActivity.java
package com.kiss.app06;

import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

public class MainActivity extends AppCompatActivity {

ListView myListView;
String[] items;
String[] prices;
String[] descriptions;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Resources res = getResources();
myListView = (ListView) findViewById(R.id.myListView);
items = res.getStringArray(R.array.items);
prices = res.getStringArray(R.array.prices);
descriptions = res.getStringArray(R.array.descriptions);

ItemAdapter itemAdapter = new ItemAdapter(this, items, prices, descriptions);
myListView.setAdapter(itemAdapter);

myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView? parent, View view, int i, long l) {
Intent showDetailActivity = new Intent(getApplicationContext(), DetailActivity.class);
showDetailActivity.putExtra("com.kiss.app06.ITEM_I NDEX", i);
startActivity(showDetailActivity);
}
});


}
}
================================================== ==========================
C:\tmp\android\app06\app\src\main\res\layout\activ ity_detail.xml
?xml version="1.0" encoding="utf-8"?
android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DetailActivity"

ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@mipmap/ic_launcher" /
/android.support.constraint.ConstraintLayout
================================================== ==========================
C:\tmp\android\app06\app\src\main\res\layout\activ ity_main.xml
?xml version="1.0" encoding="utf-8"?
android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"

ListView
android:id="@+id/myListView"
android:layout_width="match_parent"
android:layout_height="495dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="8dp" /
/android.support.constraint.ConstraintLayout
================================================== ==========================
C:\tmp\android\app06\app\src\main\res\layout\my_li stview_detail.xml
?xml version="1.0" encoding="utf-8"?
RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"

TextView
android:id="@+id/nameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="48dp"
android:layout_marginTop="45dp"
android:text="Name"
android:textSize="24sp" /

TextView
android:id="@+id/descriptionTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/nameTextView"
android:layout_alignParentStart="true"
android:layout_marginStart="45dp"
android:layout_marginTop="1dp"
android:text="Description" /

TextView
android:id="@+id/priceTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/nameTextView"
android:layout_alignParentEnd="true"
android:layout_marginEnd="27dp"
android:text="Price"
android:textSize="24sp" /
/RelativeLayout
================================================== ==========================
C:\tmp\android\app06\app\src\main\res\values\color s.xml
?xml version="1.0" encoding="utf-8"?
resources
color name="colorPrimary"#008577/color
color name="colorPrimaryDark"#00574B/color
color name="colorAccent"#D81B60/color
/resources
================================================== ==========================
C:\tmp\android\app06\app\src\main\res\values\strin gs.xml
resources
string name="app_name"app06/string

string-array name="items"
itemgarlic/item
itemtomato/item
itembanana/item
/string-array

string-array name="prices"
item$0.99/item
item$1.49/item
item$0.89/item
/string-array

string-array name="descriptions"
itemFresh garlic/item
itemFresh tomato/item
itemFresh banana/item
/string-array
/resources

================================================== ==========================
C:\tmp\android\app06\app\src\main\res\values\style s.xml
resources

!-- Base application theme. --
style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"
!-- Customize your theme here. --
item name="colorPrimary"@color/colorPrimary/item
item name="colorPrimaryDark"@color/colorPrimaryDark/item
item name="colorAccent"@color/colorAccent/item
/style

/resources
================================================== ==========================
I'm not sure what app07 will be as I think the 4th video is out of context
for what I'm planing on doing (ring an alarm as a 10-minute timer).
  #64  
Old November 12th 18, 08:08 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Diesel
external usenet poster
 
Posts: 937
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

Arlen_Holder
news alt.comp.freeware, wrote:

On Sat, 10 Nov 2018 07:04:22 -0000 (UTC), Diesel wrote:

You keep changing your position on that, Arlen.


Hi Diesel,
Thanks for all your kind and helpful advice.


You do alot of snipping, eh? I'm not surprised, Arlen. I'm really
not.

Thanks for that advice, where, based on your always on-target
help,


ROFL. Do you think being a smartass towards me is somehow going to
convince me to help you do anything?

For crying out loud, you're working with a script based language.
You aren't doing any serious 'coding' on your own here.


Nobody said there was _any_ coding being done yet.


Alas, there is. You *are* coding. I didn't say you weren't coding,
Arlen the stupid, I said you weren't doing any serious coding. ROFL.

What Bill and I are doing is "driving the car" with the passenger
being an experienced driver as the PIC (namely the passenger is
the tutorial).


HAAHAHAHA.. ****... You are without a ****in doubt, an idiot.

People like you did, but, people like you, thankfully, are not
everyone.


I agree with you that I'm 1 out of 1,000 in that my goal always,
is to help people, where I do it for free all the time,
and I collaborate when I can.


I don't know what there is to agree about, Arlen, I never stated any
such thing about you. I specifically meant and fully expected anyone
reading to know that yourself and some other people who tried to use
the emulation packages didn't know about a couple of hardware
settings they might have to invoke, depending on CPU base.

That's who I am.


I have no idea who you actually are. I can only go by how you choose
to represent yourself in this medium.

Most people are the opposite of me.


I wouldn't know, Arlen. I have nothing to go on.

That's why all my apps will be free, with no ads, & no
shenanigans.


Been there, done that. Many m00ns before you, I'm afraid. Still do,
infact.

Did you need the url to the old DOS stuff again?

As it is right now though, you aren't doing anything complicated
to anyone with a programming background. You're a n00bie taking
baby steps.


As I said, I'm a noob. I'm not afraid to admit that I'm a noob.


This is only a recent admission by you, Arlen. And, let's be frank,
it's because i've left you no possible way out of that.

If this thread gives other noobs a good starting point, then
that's good. If the resulting code benefits them, as it did for
Bill, then that's good. If we can get a simple 10-minute timer app
out of this, then that's good.


Which is your goal here right? Someone else, or someone other than
you primarily do the work, get that timer you want up and going?
That's the actual plan, isn't it Arlen?

Working them up, right? Gaining what you could be mistaking as trust?



--
To prevent yourself from being a victim of cyber
stalking, it's highly recommended you visit he
https://tekrider.net/pages/david-brooks-stalker.php
================================================== =
Useless Invention: Reversible garbage disposal.
  #65  
Old November 12th 18, 11:20 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Bill[_40_]
external usenet poster
 
Posts: 346
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

In message , Arlen_Holder
writes
http://www.bild.me/bild.php?file=5901351androidstudio55.jpg o When
you press the other button, it opens up an activity outside the app
(This OUTSIDE activity just goes to a web browser with a hard-coded
URL)
http://www.bild.me/bild.php?file=5790092androidstudio56.jpg

I am not sure why that web browser call failed, but I tried to run a
call from inside the web browser in the emulator, and it failed too, so
maybe we need to do something so that the emulator web browser can get
onto the Internet? I don't know, but it doesn't matter because it
worked just fine on the phone (which is what really matters).


In my Butterfield2 app, I seem to have hit a problem here in that the
app compiles without errors, and entering debug mode hasn't yet helped.

When I hit the Google button, nothing happens on either the emulator or
the phone. I don't get even the error message on either. The code checks
out against yours.

I haven't yet "stepped into" the code so maybe that will lead
somewhere.

I've now got the first Butterfield app behind me as well as the text
app. I am getting more at home with the IDE, which helps a lot.
--
Bill

---
This email has been checked for viruses by AVG.
https://www.avg.com

  #66  
Old November 12th 18, 01:37 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Bill[_40_]
external usenet poster
 
Posts: 346
Default Report: My first "hello world" using Android Studio freeware onWindows worked just fine (in about an hour)

On 12/11/2018 10:20, Bill wrote:
I haven't yet "stepped into" the code so maybe that will lead somewhere.


Stepping into didn't help at the level I have currently clambered up to,
but I've got it working.

I had repeatedly failed to see that I had missed my typo where, in the
url "http://www.google.com, I had no :

Now on to lesson 3!

--
Bill

---
This email has been checked for viruses by AVG.
https://www.avg.com

  #67  
Old November 12th 18, 09:27 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Mon, 12 Nov 2018 12:37:36 +0000, Bill wrote:

Stepping into didn't help at the level I have currently clambered up to,
but I've got it working.

I had repeatedly failed to see that I had missed my typo where, in the
url "http://www.google.com, I had no :

Now on to lesson 3!


Hi Bill,
Yup. I went through that exact process of having a few typos before it
finally worked for me too.

Of course, the DIYs always *skip* those typos and tracking them down!

So it always *sounds* easier than it really is.

Good that you're on to lesson 3 where I wrote about it over he
https://groups.google.com/d/msg/comp.mobile.android/aW64zYeBtF0/kTkz1xIABwAJ

There were about a half dozen "differences" between my code and the
tutorial, but they turned out to be non issues, but do be advised that the
"comments" of the Youtube page show a _lot_ of people had problems that I
did not have.

Like you, I'm starting to get used to this Android Studio IDE, where, for
example, I'm learning that the Android Studio IDI does _not_ like when you
move things around in the Windows file system!

For example, see these half dozen screenshots, where I clearly have a
"stale signature" of some sort. You and I both know that we never touched
anything called a "signature" so it must have been done by Android Studio.

All I want to do is re-do the app01 "hello world" that works:
o http://www.bild.me/bild.php?file=7758838androidstudio60a.jpg
The first problem to overcome is that .gradle files need to be wiped out!
o http://www.bild.me/bild.php?file=7693773androidstudio60b.jpg
But worse, there is some kind of "stale certificate" that I don't know
about!
o http://www.bild.me/bild.php?file=9796091androidstudio60c.jpg
Due to that state certificate, the emulation works but not the real phone!
o http://www.bild.me/bild.php?file=3263646androidstudio60d.jpg
IMHO, if the IDe created this "signature", then the IDE should fix it!
o http://www.bild.me/bild.php?file=2938664androidstudio60e.jpg
It may be something I need to do on the phone, but it's not USB debugging:
o http://www.bild.me/bild.php?file=4015964androidstudio60f.jpg
And yet, app01 still has a stale signature (certificate?) on the phone!
o http://www.bild.me/bild.php?file=6803968androidstudio60g.jpg

Clearly Android Studio doesn't like when you move things around in Windows
with respect to this "stale signature" (whatever that is). In fact, Android
Studio won't even run the "hello world" (app01) on my phone anymore!

That's how much Android Studio hates that I moved things around in Windows!
I'm sure the solution will be "do this and don't do that", but I'm not
going to bother right now as I'll learn about 'stale signatures' when I
need to figure out what a "signature" is.

Anyway, I'm going to skip that last Butterfield video, which I listened to
in its entirety, where it creates a list based on Oracle SQL database
files.

If I need to, I'll go back to that fourth tutorial, but for now I'll stop
at the penultimate tutorial and move on to writing code that creates an
alarm clock of some sort.

I'm working on that now, but since I'm going off road, I may not be able to
help you if you attack that last Bill Butterfield tutorial.

But if you have questions about the penultimate tutorial, let me know.
  #68  
Old November 12th 18, 10:19 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Mon, 12 Nov 2018 07:08:47 -0000 (UTC), Diesel wrote:

You do alot of snipping, eh? I'm not surprised...


Hi Diesel,

Thank you for recognizing that I follow the common courtesy of Usenet
snipping protocol which is to only quote that which I respond to.

Most people wouldn't be as astute as you are in noticing that I follow well
established Usenet protocols since most people just lazily quote
everything.

Alas, there is. You *are* coding. I didn't say you weren't coding,
Arlen the stupid, I said you weren't doing any serious coding. ROFL.


Actually, I'm not doing _any_ coding (yet) so I'm not baking my own cake.
All I'm doing is following directions (which is like following a recipe).

The main issues are when the directions differ from reality.
Which happens when I make a typo or when (as seems to always be the case),
the people making the tutorials don't mention what version of the IDE they
are on, where their version is different from mine.

HAAHAHAHA.. ****... You are without a ****in doubt, an idiot.


I agree with you Diesel that I'm a noob.
In fact, today I had a devil of a time getting the original hello-world
app01 to work due to the errors listed below...where the IDE must have
"created" a "certificate" or "signature" automatically, that it no longer
likes...

All I wanted to do was re-do the app01 "hello world" that worked befo
o http://www.bild.me/bild.php?file=7758838androidstudio60a.jpg
The first problem is that .gradle files need to be manually wiped out!
o http://www.bild.me/bild.php?file=7693773androidstudio60b.jpg
But worse, there is some kind of "stale certificate" going on?
o http://www.bild.me/bild.php?file=9796091androidstudio60c.jpg
Due to that state certificate, the emulation works but not the real phone!
o http://www.bild.me/bild.php?file=3263646androidstudio60d.jpg
IMHO, if the IDE created this "signature", then the IDE should fix it!
o http://www.bild.me/bild.php?file=2938664androidstudio60e.jpg
It may be something I need to do on the phone, but it's not USB debugging:
o http://www.bild.me/bild.php?file=4015964androidstudio60f.jpg
And yet, app01 still has a stale signature? (certificate?) on the phone!
o http://www.bild.me/bild.php?file=6803968androidstudio60g.jpg

I'm sure you already know exactly how to resolve that problem.
But me being a noob - I don't yet know what you inherently already know.
  #69  
Old November 13th 18, 12:55 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Bill[_40_]
external usenet poster
 
Posts: 346
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

In message , Arlen_Holder
writes

after large snip of useful info

Clearly Android Studio doesn't like when you move things around in Windows
with respect to this "stale signature" (whatever that is). In fact, Android
Studio won't even run the "hello world" (app01) on my phone anymore!

That's how much Android Studio hates that I moved things around in Windows!
I'm sure the solution will be "do this and don't do that", but I'm not
going to bother right now as I'll learn about 'stale signatures' when I
need to figure out what a "signature" is.

Anyway, I'm going to skip that last Butterfield video, which I listened to
in its entirety, where it creates a list based on Oracle SQL database
files.

If I need to, I'll go back to that fourth tutorial, but for now I'll stop
at the penultimate tutorial and move on to writing code that creates an
alarm clock of some sort.

I'm working on that now, but since I'm going off road, I may not be able to
help you if you attack that last Bill Butterfield tutorial.


But if you have questions about the penultimate tutorial, let me know.


Thanks, Arlen. I'll look at your other posting again when I hit problems
on Butterfield 3!

I discovered early on that a simple rename of something I thought was
innocuous caused great problems, and that rewriting elements from
scratch again was the only way to move on quickly.

I know I had problems with the emulator at one stage, and that closing
it down completely (i.e. stopping it and then "powering it off") let it
restart in a clean condition on a rebuild of the app.

I am sure you will have tried closing the app on the real phone, then
removing it and doing a proper restart of the phone before re-trying the
latest build.

I'll watch with great interest how you get along with your timer alarm.
--
Bill

---
This email has been checked for viruses by AVG.
https://www.avg.com

  #70  
Old November 13th 18, 12:58 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Diesel
external usenet poster
 
Posts: 937
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

Arlen_Holder
news alt.comp.freeware, wrote:

On Mon, 12 Nov 2018 07:08:47 -0000 (UTC), Diesel wrote:

You do alot of snipping, eh? I'm not surprised...


Hi Diesel,

Thank you for recognizing that I follow the common courtesy of
Usenet snipping protocol which is to only quote that which I
respond to.


You shouldn't be thanking me, Arlen. Once again, You're doing a bit
of, let's call it for what it is, lying your ass off. Again.

I wrote nothing of you following ANY common courtesy, usenet, or
elsewhere. I commented about your strong desire to snip and
misconstrue what the other poster wrote, intentionally.

Most people wouldn't be as astute as you are in noticing that I
follow well established Usenet protocols since most people just
lazily quote everything.


No, Arlen, infact, you don't. You duck and dodge questions. You
partially snip so as to bring what you've left out of context and
write a completely different response to it, giving a n00bie reader
the very false impression that what you wrote had much/anything to do
with what the other poster wrote.

Alas, there is. You *are* coding. I didn't say you weren't
coding, Arlen the stupid, I said you weren't doing any serious
coding. ROFL.


Actually, I'm not doing _any_ coding (yet) so I'm not baking my
own cake. All I'm doing is following directions (which is like
following a recipe).


Wow. You uhh, really don't get it, eh? I mean, you aren't playing
games with me. You really DON'T UNDERSTAND what you're doing...And
you seem to have no interest whatsoever in understanding it.

HAAHAHAHA.. ****... You are without a ****in doubt, an idiot.


I agree with you Diesel that I'm a noob.


Yes, you are that too. But, I specifically and rightfully at this
point I feel, called you an idiot. Are you agreeing with me that
you're an idiot, or do you confuse n00b as meaning one and the same
thing? Cluebyfour (here's an aspirin), they aren't.

I'm sure you already know exactly how to resolve that problem.


I wouldn't be able to give you an answer, I snipped your problem
report, unread.



--
To prevent yourself from being a victim of cyber
stalking, it's highly recommended you visit he
https://tekrider.net/pages/david-brooks-stalker.php
================================================== =
If you feel like you've got to lead, at least get out of my way.
  #71  
Old November 13th 18, 02:25 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
nospam
external usenet poster
 
Posts: 4,718
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

In article , Arlen_Holder
wrote:

Thank you for recognizing that I follow the common courtesy of Usenet
snipping protocol which is to only quote that which I respond to.


no, you quote a tiny sliver of the original post, snipping nearly
everything else to intentionally alter context.
  #72  
Old November 13th 18, 02:05 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Diesel
external usenet poster
 
Posts: 937
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

nospam
Tue, 13 Nov 2018
01:25:19 GMT in alt.comp.freeware, wrote:

In article , Arlen_Holder
wrote:

Thank you for recognizing that I follow the common courtesy of
Usenet snipping protocol which is to only quote that which I
respond to.


no, you quote a tiny sliver of the original post, snipping nearly
everything else to intentionally alter context.


Sometimes, less is more. Well stated, nospam.


--
To prevent yourself from being a victim of cyber
stalking, it's highly recommended you visit he
https://tekrider.net/pages/david-brooks-stalker.php
================================================== =
Experience is somthing you don't get until just after you need it.
  #73  
Old November 14th 18, 02:52 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Mon, 12 Nov 2018 20:25:19 -0500, nospam wrote:

no, you quote a tiny sliver of the original post, snipping nearly
everything else to intentionally alter context.


Hehhehhehhhh...

That's funny, coming from you nospam, where you habitually _fabricate_
quoted content, just so that you can sound witty in your response.

I only speak facts.

Here's proof...
Why does nospam always FABRICATE conversations... just so he can sound "witty" in response?
https://groups.google.com/d/msg/misc.phone.mobile.iphone/GExRc1qrFGo/JBzdCKSSAwAJ

At least I do two things, both of which are honorable:
o I quote that which I respond to (and nothing more), and,
o I don't _fabricate_ that quoted content like you, nospam, constantly do.

You, nospam, continually fabricate quoted content just so you can respond
to it.
  #74  
Old November 14th 18, 06:55 PM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Bill[_40_]
external usenet poster
 
Posts: 346
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

Here's an interesting thing.

Last night I did quite a bit on my current project in Android Studio on
the Windows 10 laptop. At just after midnight, it was more or less
complete, but wouldn't compile without errors for some reason.
I closed the laptop lid putting it into sleep mode, as I had to be up at
5.30 today.
Opening the lid at 05.40, the machine rebooted from scratch. Presumably
the W10 update had either installed a W10 update silently last night, or
had woken the machine during the night to do the install.
Most of the work done last night in Android Studio was no longer there,
so I'll have to do it all over again tonight.

I know I should have done a "save all" before shutting the lid, and
should be taking backups very frequently, but it still doesn't stop me
being mad at Microsoft.

The machine is the only one here on W10 - all the main machines have
stayed with or reverted to 7 or earlier. I keep this W10 machine in the
default state to be more or less in sync with the people I "support".
--
Bill

---
This email has been checked for viruses by AVG.
https://www.avg.com

  #75  
Old November 15th 18, 02:55 AM posted to comp.mobile.android,alt.comp.freeware,microsoft.public.windowsxp.general
Arlen_Holder
external usenet poster
 
Posts: 96
Default Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)

On Mon, 12 Nov 2018 23:58:37 -0000 (UTC), Diesel wrote:

I wrote nothing of you following ANY common courtesy, usenet, or
elsewhere.


Hi Diesel,
Thanks for your kind clarification of my incorrect assumptions.

It's well established Usenet protocol for quoting that I follow,
where I deplore those who quote the entire previous post, out of
either laziness or ineptness or inexperience, or whatever.

At least I don't *fabricate* quoted content, which nospam has
been doing for years, as is noted in this proven thread below:
https://groups.google.com/d/msg/misc.phone.mobile.iphone/GExRc1qrFGo/9fJ7cqTIBAAJ

You duck and dodge questions.


This is a technical thread where I'm attempting to *add value*
so that other innocent noobs to Android coding, can follow in our
footsteps.

You have immense knowledge, Diesel, that could help us all write
any Android app we wish to write that is
o Always free, and open source
o Contains zero adds or other shenanigans, and, which
o Performs a very simple useful function for the user

That's what I'm all about, Diesel. Helping others do what I can do,
and asking questions of experts when I can't do what I need to do.

Then I summarize the answers, such that anyone can follow in our
footsteps (as I decry the plethora of 'imaginary' solutions on Usenet).

Yes, you are that too. But, I specifically and rightfully at this
point I feel, called you an idiot.


Hi Diesel,
I agree I'm an idiot, and that you're smarter than I am.
I apologize if I implied otherwise.

Meanwhile, I need to move forward on writing Android apps for noobs.
To that end, below is hard-won information for those of us on the
older Windows AMD CPUs.
================================================== ==========================
o AndroidStudio321 x86 emulators don't work with old Windows AMD CPUs.
o You can use the ARM EABI v7a System Image (but it's super slow).
o Most people suggest Genymotion: https://www.genymotion.com/desktop/
But you have to create an account to get the freeware (so I didn't).
o Or Microsoft https://visualstudio.microsoft.com/vs/msft-android-emulator/
o Or Andyroid: https://www.andyroid.net/
https://andydownload.azureedge.net/downloads/installer/v47/Andy_47.260_1096_26_x64.exe
o Or Blue Stacks: https://www.bluestacks.com/
https://www.bluestacks.com/download.html?utm_campaign=homepage-dl-button-en
https://cdn3.bluestacks.com/download... 964b9b92e.exe

REFERENCES:
https://stackoverflow.com/questions/31815847/external-emulator-for-android-studio
https://www.android-examples.com/manually-install-external-apk-files-android-emulator-android-studioeclipse/
https://developer.android.com/studio/run/emulator
https://developer.android.com/studio/run/managing-avds
https://blogs.msdn.microsoft.com/devops/2015/07/20/using-the-visual-studio-emulator-for-android-from-android-studio-or-eclipse-with-adt/
================================================== ==========================
You have to run this command to get the necessary info for the AVD setup!

C:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatorcmd.exe
Which is put in your path already by the Visual Studio installer.

o C:\emulatorcmd.exe /sku:Android list /type:device
Identifier | Name | Version
-------------------------------------+------------------------------+------------
226C76AC-9E9A-4EBD-A495-79E8C5C5292F | 7" KitKat (4.4) XHDPI Tablet | 1.0.60404.1
363F7AED-462C-46BD-9FEC-F1DD3B79916C | 5" KitKat (4.4) XXHDPI Phone | 1.0.60404.1

That output enables construction of the following commands in Android Studio.
These commands show up later in "AndroidStudio321:Tools External Tools".
AndroidStudio321:File Settings External Tools (+)
Note they show up in the order created, first on top, last on bottom.

Name: MS 7" KitKat (4.4) XHDPI Tablet (SDK version 19)
Description: (I don't know where this matters, if at all)
Description: Emulates the Asus Google Nexus 7 tablet
Program: C:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatorcmd.exe
Arguments: /sku:Android launch /id:226C76AC-9E9A-4EBD-A495-79E8C5C5292F
Working directory: $ProjectFileDir$

Name: MS 5" KitKat (4.4) XXHDPI Phone (SDK version 19)
Description: (I don't know where this matters, if at all)
Description: Emulates the Samsung Galaxy S5 & Sony Xperia Z
Program: C:\Program Files (x86)\Microsoft Emulator Manager\1.0\emulatorcmd.exe
Arguments: /sku:Android launch /id:363F7AED-462C-46BD-9FEC-F1DD3B79916C
Working directory: $ProjectFileDir$
================================================== ==========================
You can add Google x86 emulators all you want, but they don't seem to work.
(At least not on the older AMD Windows CPUs (they are said to work on Linux).
================================================== ==========================

As always, if anyone knows more than I do, or if I say an incorrect fact,
please advise, correct, and clarify where needed.

The goal, always, is to enable everyone who wants to, to follow in our
footsteps, which, in this case, is to write their own Android apps.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 12:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.