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

Adding *Existing* html and js files to the assets folder in Android Studio 2019

I have an existing Android Studio project with an assests folder called www. It presently has an html file in it.

Outside Android Studio I have moved some other html/javascript files to the www directory on my hard drive using the standard windows file manager.

How do I get Anrdoid Studio 2019 to recognise those existing files are there?

Trouble syncing contacts with Microsoft Exchange

I've recently noticed that my S9+ is not syncing correctly with Microsoft Exchange. The phone indicates it is syncing and shows a current date & time of sync. However, my Microsoft Exchange account has 440 contacts and only 435 of them are showing up on my phone. I also noticed after updating a phone number with one contact on Exchange, that new number is not updating with that same contact on my phone.

Error occured on Android app

I have the below code which returns the FirstName, LastName and Class of student stored in database in json format. But when I run the app, data is not displayed
~~~~
package com.example.anitaa.student;

import android.app.DownloadManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.JsonRequest;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;

import org.json.JSONException;
import org.json.JSONObject;

public class MainActivity extends AppCompatActivity {
TextView FirstName;
TextView LastName;
TextView Class;
Button b1;
String url1="http://192.168.1.3/student/web/studentrecords";

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
FirstName=(TextView) findViewById(R.id.firstname1);
LastName=(TextView) findViewById(R.id.lastname1);
Class=(TextView) findViewById(R.id.class1);
b1=(Button) findViewById(R.id.btn3);
b1.setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View v) {
JsonObjectRequest jsonObjectRequest=new JsonObjectRequest(Request.Method.POST, url1, null, new Response.Listener<JSONObject>() {
@override
public void onResponse(JSONObject response) {
try {
FirstName.setText( response.getString ( "FirstName").toString ());
LastName.setText(response.getString("LastName").toString ());
Class.setText(response.getString("Class").toString());
} catch (JSONException e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@override
public void onErrorResponse(VolleyError error) {
Toast.makeText(MainActivity.this, error.getMessage(),Toast.LENGTH_SHORT).show();
error.printStackTrace();

}
});
MySingleton.getInstance(MainActivity.this).addToRequestque(jsonObjectRequest);
}

});
}
}
~~~~

Exception is displayed as

~~~~
org.json.JSONExcetion: Value null of type org.json.JSONObject$1 cannot be converted to JSONObject
~~~~

What should I do?

  • Poll Poll
Apps Plants Detection

It is interesting for you?

  • Yes

  • No


Results are only viewable after voting.

Hello everyone!
I know, that among you there are great app developers. So, I would like to create simple Android app (version 6+) to detect plant diseases. It would be capable to use both photoes and saved images in phone memory. Model now is saving in .tflite (.lite) format. It was pre-trained on 30 classes. All neccessary model files would be done.

If it is interesting for you, please inform me! :)

  • Poll Poll
[Free] Best secure messenger for your privacy!

Do you believe encrypted messengers?

  • Yes

  • No


Results are only viewable after voting.

24fddc586eb1d993c7530732a8580961.png

After BBM shut down, many BBM users have started to use Bat Messenger(BAT). It's end-to-end encrypted. Its features are designed to protect your privacy. Except the basic messaging tools, you can enable Screenshot alert, Destroy password, Confidential code and I add others only to protect your privacy.

It's free to download in Google play. Unlike other messengers, signing up for BAT is really simple and anonymous. It doesn't ask for your phone number or email and will never access to your phone contacts. BAT will never collect user data because it uses end-to-end encryption. Your messages will be only stored in your phone rather than BAT's server.

Set a password and nickname then you can start to use it. You will find the UI is simple and easy to use. There are four sections-- Chat, Contacts, Explore and Settings. BAT is not limited to chatting with your friends. You can connect with the world more secure by BAT. Feeds later will be added in Explore section, you can explore Feeds to know what's happening in other place and meet new friends.
ef4eb72542c640452789c48c40e4b175.png
3c9749d39d0808e27781c8903ccf47eb.png

What makes BAT different is the broadcast features. By using Broadcast, you can send messages to many people without being in a group chat. At present, you can select up to 500 contacts to broadcast messages. Signal doesn't support Broadcast. In WhatsApp, users can select up to 256 contacts to broadcast messages. In Telegram, broadcast is called “channel.” Users can first add up to 200 people to a channel. If the member count reaches 200, the channel will become an open channel and have a username.

BAT team listens to users. Bat messenger added Arabic for Arab users and will add new features like Ping and Feeds according to users' feedback. They will get back to you if you send feedback to support@batmessenger.com

Bat Messenger can be downloaded for free now in Google Play. Even though there is nothing you need to hide, but you still need to use encrypted messenger in your life, because your user ID, phone number, location are more worthy than your expection. If you think security and privacy is important, give it a try.
Scan to download:
47a6e97e31de3d551d4faf803487cbda.png

d3d2ef2103a0f0d97634d1d542199243.png
2ab89fd4fa4add4ed6f39c21c00a8e8e.png
3c9956ad87d62bdc2e93f6f071560133.png
adb921876891462ae9d606cfe963c53e.png

Action needed! DirecTV, AT&T U-Verse, DirecTV Now customers please read

I just found out that AT&T has failed to renew its contract with CBS and as a result, on the 20th, DirecTV, AT&T U-Verse, and DirecTV Now will cease airing CBS and CW (which it owns) in many major markets.

If you're a customer--or even if you're not, but just want to help--please read about it and use the contact methods on this page. Quickly! :)

ETA I just found out about Locast, which is available as an Android app and as a new DirecTV app. The latter method lets you watch your local channels on TV, the way I like!

Help SOLVED!!! I need help, please help me. im desperate

So a few days ago i rooted my phone and i decided to get lineage OS. So i didnt really like it so i tried to get back to stock. I tried flashing my stock firmare, but that didnt help. i can only access download mode (not TWRP) and if i try and exit out of download mode i am greeted with an error saying that i nned to go to smart switch mobile for pc and emergency recover. tried that and it says that my device cannot be reconized. i really need help getting back to stock. thank you very much

Help Nokia 1 & 3310 3G read only language capability

I contacted Nokia by email and they told me that the Nokia 1 TA-1056 DS is the right Latam model for me as I want to use it in the EMEA and LATAM regions. I was wondering whether all Nokia 1's can read Arabic and Spanish sms as well as the standard reading and writing of English?

I've identified the correct Nokia 3310 3G model I am looking for with quad band 2G and 3G as TA-1036, or at least that's what Nokia told me.... I would like to know if this model can also at least read Arabic and Spanish sms as well as read and write English?

I have had no straight answer from Nokia for these additional questions. I have an old Nokia 106.1 which was bought in the UK and that can also read Arabic and Spanish but that does not mean that all Nokia's can do this...

If there is no straight answer to this is there a free third party app I can use to flash the Nokia 3310 3G or add a language that won't completely wreck it? I may try to see if it can receive Arabic and Spanish sms first before doing this...

Many thanks for any advice.

Cell is hacked. Life is Hacked. Is there a way out?

About 6 years ago my Wi-Fi network, and all the devices connected, were hacked. My identity was stolen. My social media accounts were copied. Got locked out of them. My wife as well. All of my apps are wrong. Very good copies. But wrong. A ton of my setting options either don't appear or are "greyed" or "light blued" out (can't change them). The more I dig the worse it gets. I can't take it anymore. Is there any way to lose them? I've tried it all. Yet even the note 9 I got steadily gets worse. My search options on my browser are old or useless. My app store even seems off. There is now THREE "phone" apps in my phone and FOUR "driving" apps (2 or 3 Andriod Auto and "2 car mode app". My Google maps is different every time I use it.
Is there a book (or something that can't be rerouted) that can help me? The image is just one of the many things (I haven't changed anything but I have apps and sites now telling me I have keyboard overlays, I'm using an unidentified version of Android, my IP address is incorrect).

Attachments

  • Screenshot_20190716-093041_Samsung Internet.jpg
    Screenshot_20190716-093041_Samsung Internet.jpg
    232.4 KB · Views: 382

Firefox video blocker

hi, I installed the firefox addon video blocker on my android device. purpose is to block certain youtube channels due to my child's access.. Btw, i access youtube via the browser, not via the youtube app...
somehow, the block button just doesnt appear on the address bar like it did on a desktop. Anyone has a way resolve it? thanks

software update zonked my phone..

I have a Galaxy Ace GT-S5830i, inherited from a family member, about 5 years ago.

it had Android 2.3.6,
Baseband GT-S5830iXXLD2
Kernel 2.6.35.7 dpi@DELL134#1
Build Gingerbread XXLD3

for 5 years to be honest I've barely used it. I started playing with it about 2 months ago.

it was generally running ok for about a month. the first time I connected it to WiFi (3 weeks ago), it kept white screening when I tried to download any apps.

I connected it to the kies software 2 weeks ago, and kies updated the phone, I *BELIEVE*, to MD2 version.
(I'll explain why I 'believe' that in a second).

The phone appeared to update, and has ran slightly worse for about 2 weeks. battery life had gone down by about a third, and it still kept white screening when I tried to use google play, or samsung apps. also on the LD2 software, the touch screen icons responded immediately. on the MD2 software, there were often small delays in opening the icon, and often small delays when anything onscreen was pressed

yesterday I woke up to find the phone was stuck looping on the swirling blue stars animation, and samsung logo. it just keeps looping round and round. only way out is removing battery. I turned it off overnight to see if anything would 'reset'. (it didn't, still keeps looping)

I've tried connecting to kies, and it says "SIM card not inserted", and doesn't see the phone

I believe the new software version was MD2, because I had a look at the info page 2 weeks ago, but didn't make a note of it. now the phone is looping on it's start screen and I can't check the version.

any info would be appreciated...

Filter

Back
Top Bottom