• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

After renaming a button it no longer works

Hi forum.
I've a strange problem...
I was debugging my simple app and all it worked, after I renamed a button all button didn't work... So I tried to make a new app with only a button and this has the same problem

public class MainActivity extends WearableActivity {

Button test;

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
test = (Button) findViewById(R.id.buttons);
test.setText("•");
test.setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View view) {

test.setText("_");
}
});
// Enables Always-on
//setAmbientEnabled();
}
public void sendMessage(View view) {
test.setText("––––_");
}
}

In the logCat I see this info

2021-03-07 11:10:34.844 19294-19294/com.example.tennisgame W/ViewRootImpl[MainActivity]: Cancelling event due to no window focus: MotionEvent { action=ACTION_CANCEL, actionButton=0, id[0]=0, x[0]=62.996155, y[0]=75.99426, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=15866864, downTime=15866744, deviceId=0, source=0x1002 }
2021-03-07 11:10:40.400 2468-19241/com.google.android.wearable.app E/HOME: [ClockworkHome]Rescheduling failed periodic task StorePhoneSettingsCallable

Can somebody help me?

Help Keep losing mobile service

Diagnosing a system flaw is beyond my range, unfortunately.

Many times the people at a sales area know little more than the 'factory reset' mentality.

A factory reset will, as you have found, 'fix' most issues.
But thats just it.
It is a temporary band-aid on the problem, and without knowing the actual cause of the problem, it is almost sure to happen again- as you have also found.

At this point, I would back up all important personal data, and then in a separate storage make a backup of your user apps.

Do another factory reset.
You did say that his 'fixed' the problem for a short while before, correct?

Now start the device, but do not put your own personal apps onto it yet.
Wait for a day or two, only using the device with the built in apps that came with it.
{Wait at least as long as it took for the problem to happen again the last time.}

See if the probablem returns.

If it does not, then it is one of the apps that you are putting onto the device.
If it does, then it is the device.

After a good while without the issue, begin adding your own apps back to the device- one at a time- and then waiting some more.
This will be painstaking on your part.

Keep adding apps one at a time and then waiting, until the problem happens again.
Then you will know for sure which app it is, and you can get rid of it.

Name of this icon?

May I upload a better version on a new post?
no your last post is fine.

so unfortunately i do not recognize the icon.

we get this question every day, and the most simple answer is to just look at the phone's notifications to find out. but 9 times out of 10 the phone is inaccessible for one reason or the other. the second simple answer is to just ask the person who owns the phone, if the phone is not yours......i guess that is a much harder then it looks.

the problem is that there are millions upon millions of apps, each with their own notification icons....so unless it is an app that is a popular one,most of these questions goes unanswered.

but you never know.....you might get lucky....good luck

How to update the Kotlin Plugin in Android Studio

Hi . I am new to Android development.

My question is:
How can I update the Kotlin Plugin in Android Studio ?

It is not related to coding per se, but concerns Android Studio. If you know a better forum for this matter, please give me a suggestion.

Here a bit of context:
It seems I need to update the Kotlin plugin version that is bundled to the android flutter project.

I did so because the flutter plugin I try to use exploits some features that are not supported by the current kotlin version in Android 4.1.2.

So, in order to update the Kotlin plugin the way it is said in the kotlin doc:
in Android Studio: Tools → Kotlin → Configure Kotlin Plugin Updates,

but it does not open. Nothing happens.

What could cause that ? Is there another way to update the kotlin plugins ?

By the way, if I try to access settings with File →Settings, It's the same: nothing happens. Cannot figure it out why.

I dont know whether it could be more Flutter-related instead, but I ask people there too.

Many thanks by advance.

Is a forward button possible

That was 1988/1989 my memory doesn't go that far back. But I want to say it wouldn't spin backwards, no release, I may be wrong, I just remember having to take it out and rewind it, and I want to say we always bought the XXL size so it was longer than most. Again I could be wrong about it. lol

Well, for sure there had to be some sort of ratchet mechanism to move the ribbon the correct amount (one character) and then it would lock down to hold the ribbon in place.

Pretty sure we just jammed it in the unlocked position with an ink pen, and then just spun the ribbon backwards off of the take up reel.

Pretty good results, too, at least the first time.

Filter

Back
Top Bottom