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

  • Poll Poll
App Inventor Google developers website issue

Please Post a solution for that

  • Corrected code

    Votes: 0 0.0%
  • Any changes in code segments

    Votes: 0 0.0%

Error in google official website for learning Basics of Android Studio.I saw your previous solution but the solution you have provided is same as my code. Here is my code where I am getting error

1.This is my DisplayMessageActivity code

package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;



public class DisplayMessageActivity extends AppCompatActivity {

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_display_message);

Intent intent = getIntent();
String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
TextView textView = findViewById(R.id.textView);
textView.setText(message);
}
}








2.This is my Main activity code





package com.example.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import static android.provider.AlarmClock.EXTRA_MESSAGE;




public class MainActivity extends AppCompatActivity {


@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void sendMessage(View view) {
Intent intent = new Intent(this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.editText);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
}

LG G4 - Forgot Backup PIN

Hello all,

Kindly requesting your assistance on the below.

I have an LG G4 which is requesting for back up pin. I don't seem to remember inputting one and I'm looking for a way to gain access to the phone. I've used the below methods with no success:

1. Manual Method
I've tried all the number combinations that I have in my head with no success. (Can anyone confirm the number of characters the backup pin has? All my combinations are four digit codes)

2. Find My Device
I've tried to use "Find My Device" to unlock it but I only get the following functions
  • I can locate the phone on the maps
  • I can make the phone ring
  • I can lock the phone and put any phrase I want on it (Why is there no option available for unlocking?)
  • I see the option to erase the device but I don't want try that because I will lose the data on the phone.

3. Dr.Fone
I've tried dr.phone which although it matches my phone model successfully, it gives me an error that "Install model failed"

Is there any other way possible to regain access to the phone. Appreciate your assistance.

Images attached below.
LG G4 - Backup PIN.jpg LG G4.jpg dr.fone.jpg dr.fone2.jpg
Regards.

LG G4 - Backup PIN.jpg

LG G4.jpg
dr.fone.jpg
dr.fone2.jpg
LG G4 - Backup PIN.jpg
LG G4.jpg
dr.fone.jpg
dr.fone2.jpg

LG G4 - Backup PIN.jpg LG G4.jpg dr.fone.jpg dr.fone2.jpg

WiFi Calling

Sometimes in my house, when I'm on a call, people tell me I'm breaking up or sound like a robot. However, I can always hear them fine. So I decided to turn on my WiFi calling but have a few questions.

1. Is it a good idea to use WiFi calling?
2. By doing so, does this mean "all" my calls and texts will use WiFi instead of my cellular network when at home and connected?
3. If WiFi is weak or drops, does cellular network automatically kick in?
4. Most important, why do I need to set up an address for? Is it just for 911 calls? What happens if I go to my friends house and I have their WiFi already saved on my phone? If I ever had to call 911, wouldn't it just show my home address, instead of theirs?

I've been searching for the answer to these questions and I'm actually more confused. Can anyone help me out?

Email Integration through API

I am trying to develop a small application for sending and receiving emails on the Android platform. Currently i have been using the Java-mail API trying to send an email. However i thought that if i implement my app using java-mail how am i going to receive an email and get a notification from my app that i have received it? Is this having to do with Service and Provider classes found on Android? I am a complete beginner on android.

Apps are not giving notifications

So lately while installing new apps on my OnePlus 6 I do not get any notifications from those apps. I have checked all settings but cannot find anything.

It is quite annoying since I want to install a habit tracker that reminds me of habbits. The notifications I am setting up are not coming to the phone.

Does anyone have any idea what this could be?

Thanks!

Location Updates not received when app enters doze mode (Android O)

My application uses OnNmeaMessageListener to receive NMEA sentences and these messages are write to a file. The code works fine till Android 6. In Android Oreo, after screen is off, we receive the sentences continuously for ~1hr and then only few messages per hour. I tried using Foreground Service. But when app enters doze mode updates are not received continuously. How can I ensure that location updates are received every minute even when app is in doze mode?

Help MyRound Pro on Gear S3

I've been using MyRound pro on my Gear S3 regularly with no issues up until this weekend and yesterday all of a sudden started having an issue.

I was able to start a round okay, but after a couple of holes all the distances showed up as 999 yards so I thought I'd try exiting out and coming back in. So now when I start the ap on my watch it says "login validation" and opens the ap on my phone. When I hit "new round" it finds the GPS satellite and brings up nearby courses. When I select one it says loading course data, then says "Please log in from myRoundPro mobile app before using Gear app" then closes. Does anyone have a fix for this?

(MOD) - OpenGL Vulkan & 64-bit Support Recovery Flashable For All Android Devices!

Welcome to the 1st ever:

OpenGL Vulkan & 64-bit Support Mod!

So you think your the only guy making crazy experiments, NO I'M THE CRAZIEST MAN who's bringing you a mod that will help users increase their support for 64-bit based applications but run applications using OpenGL Vulkan v3.2 to render graphics at a high calculation speeds and as well increase system performance by tricking the OS it's a 64-bit OS while treating the 32-bit as its primary OS think of this mod to use 64-bit OpenGL and graphic and performance as if your OS is completely OVERDOSED on steroids.

We took months to work on this and worked on each file to ensure a 100% mod and kept it away from the public to leak out my project, however their are some drawbacks witch are the following:

  • Android build MUST NOT be on the stock OS & it has to be on a Custom ROM Lineage OS based in order to work.

  • Android Version must be v8.0.0 or higher for this mod to work doing this below could brick your device but hasn't been tested!

  • your devices GPU must be a Adreno GPU it will prevent your OS to boot if you install on a device other then adreno it can be any variant of Adreno as long as it is Adreno!


  • Device must be a 32-bit (armeabi-v7a) device do not whatsoever install this on a device that already 64-bit unless the OS itelf is 32-bit (armeabi-v7a) and not 64bit (armeabi-v8a)


NOTICE:This Mod was carefully developed in an environment that was fully safe to test and was tested & improved overtime due to trial & error, we HIGHLY RECOMMEND that you backup your OS before attempting to install this because even if this was fully tested before release and confirmed working anything can happen if anything does go wrong your fully responsible for any damages to your device once you install this mod. This mod will not modify your system hardware this is software based and will only be active as long as the /system partition was not formatted via the recovery for a ROM update, ensure after each ROM update or ROM you install you must reinstall this mod again in order to keep using it, furthermore keep in mind that adding 64-bit support was very hard but doesn't officially mean application with requirements of a armeabi-v8a OS/Device will run, this will utilize any application with armeabi-v8a to render it and load up the os and apps faster!

DOWNLOAD: https://mega.nz/#!gZAgHAIK!lIeRCrX8bYikOHXMi25KSTxlmLjXqQqft296GvV1aPU

If you enjoy our project you can donate to support us & if not that's okay we appreciate your donations & support: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TCJKHJH9FG9SJ&source=url

Bixby no whatsapp support, no 3rd apps support

I am checking lots of websites where people explain how to send a whatsapp message directly to a contact through Bixby, but my Bixby just doesn't do that. it just opens WhatsApp.

I am trying: Open Whatsapp and send message to Contact Name
In some variations it will just open the messaging app (SMS).. seriously, who is using SMS nowadays..

Also, I don't see Bixby Labs possibility.

Version: 2.1.12.4

Why does the J3 take three steps to power down?

J3, Android version 7.0

Two questions:

• 1. Why must one do three tasks to power down the phone?

a) side button press
b) screen confirm off
c) drawn dot pattern

Why the complexity and precaution for a simple power off? The S5 powers down immediately when pressing power off. (Android V 6.0.1)


• 2. How to make the screen dot pattern always appear on startup? Now one must swipe the screen to have the pattern appear, then draw the pattern?

"Invalid Destination Address"

Can't send pictures to any device via text messages, not even to myself. I always get the same error "Invalid Destination Address". I'm not sure if the latest update is responsible but it seem to have started when I let the phone do a system update. Here's a list of what I've done so far with no help.

1. Emptied the cache for messages+ and forced stop and restarted the phone.
2. Tried 2 other messaging apps.
3. Sent to iphones.
4. Sent to other android devices.
5. Sent to myself.
6. Made sure recipient numbers were correct. (even my own)

By the way, no other device can send pics to me via text. Can anyone help?

App Inventor How to use USBManager without always asking the user permissions?

Hello,

I'm developing an application that use a USB device. Each time the device is reconnected, i must ask the user permission to connect to it.
The problem is that the smartphone and the device should work without an user intervention. Sometimes, the USB connector move a little bit and all my application is blocked because the permission are not granted anymore...

I found some tips for older versions of Android (...) but nothing for API 27...

Someone have a solution or a workaround to use a USB device without the user permission ?

Thx

Help Google Play Store Not Showing My SD Card Storage?

I bought an Archos 70b Helium tablet for gaming use. Its only an 8GB tablet but i bought a 64GB Sandisk Micro SD card.

When i put the card in the tablet and booted up it promoted me with "Expand Internal Storage Activate Archos Fusion Storage". So i clicked yes and under the Settings, Storage it shows just internal storage free space 59.51GB. (Think the tablet activated the SD card as internal storage?)

Now the problem begins. When i go to Google Play Store and try and download an app. Say Armed Heists, it opens a popup screen that says i must delete some apps to free up some storage! If i go to Google Play Store and click My Apps & Games, then Installed it shows that i have just 722mb of free storage space and my storage is 84% used? Despite me having over 59GB of storage available on my SD card that has been activated as Archos Fusion Storage for use as internal storage space?

Please help... I've tried everything... Under settings i don't even have an option to move apps to SD card or anything like that. So can not even free up some internal storage space.

Information known by a cellular network provider while using and not using internet

I am trying to guess what a cellular network provider (or just network provider) would know while using and not using internet.

I am using the term static content for details that don't change often and dynamic content for details that change often. The content in red is which I am not sure whether it is known by the network provider.

1. While I am not using the internet:
The network provider would know Non-internet based static content such as:
personal information including address, occupation, proof of identity, etc (if given/required during purchase)
sensitive personal information including as bank account details, etc,
device details such as IMEI number?, operating system?, type of device (smartphone, tablet etc.)?, MAC address of the device? etc.

[Note: I am not sure whether content such as IMEI number, operating system, type of device (smartphone, tablet etc.), MAC address of the device would come under non-internet based content or internet-based content]

The network provider would know Non-internet based dynamic content such as network-based location (which cell towers I use), call detail records (who you called and when), text message details (who you texted and when), text message content, payment history, etc.

2. While I am using the internet:
The network provider would know Internet-based dynamic content such as IP address, bandwidth consumption, location via GPS (if GPS is turned on), browsing content and history (including the date, time and duration of the internet session)?, the apps running on the device?, data sent and received by the apps?.

3. While I am using the internet via a VPN:
The network provider would know Internet-based dynamic content such as the VPN's IP address, bandwidth consumption, location via GPS?.

(Feel free to comment for any modifications if required for the above details)

Filter

Back
Top Bottom