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

Help Cerberus Anti-Theft flagged in Google Play ...

I received a notification from the Google Play Store several minutes ago stating some problem with the Cerberus Anti-Theft app, and removal was offered. Is this a legitimate notification or has the app been cracked somehow?

I could login to my Cerberus account at https://www.cerberusapp.com/dashboard via the web, but it was unable to communicate with the Nexus 6P device for the first time ever.

Your thoughts, please? Thank you.

Flutter connection issues to ASP.Net API

Hi all, I have been trying to get a few things working on a project I am look at currently, but as a beginner this isn't working out too well.

I have a database set up on a sqlexpress server, a single database with a single table with 4 fields.

ID: primary key, autoincrementing, INT
JobRef: nvarchar(10)
ScanDate: datetime
Dept: nvarchar(20)

Now, the api I have is running, I can get the values, I can post into the table. but when I try to connect the flutter app I keep getting an error:

Now for the life in me I cannot see where the issue is but if you could aim me in the right direction I would be most grateful.

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index'

My research says there's an issue with something been seen as a string and not an int, or the other way round but I don't know enough about the code below to figure it out and i'm following tutorials no end to get this working...

FIXED THIS BIT: I have also noticed that when using chrome to browse, the output seems to come in the form of xml even though I would reaaaally like this in json so other things can be done with it. Again, my lack of knowledge and experience means I'm not sure where to look to find the answer...

Code:
import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:convert';
import 'package:http/http.dart' as http;

//  This one works perfectly fine outputting to the console ------
//  String _apiUrl =
//    'https://newsapi.org/v2/everything?q=bitcoin&from=2019-07-13&sortBy=publishedAt&apiKey=44c492d13e1e4727987774a82beea8de';

//  This one doesn't -- website hidden for privacy
String _apiUrl = 'http://hidmywebpage:port/api/BarcodeScans';

List _provider1;

void main() async {
  _provider1 = await fetchData(_apiUrl);

  // outputs to the console log
  for (int i = 0; i < _provider1.length; i++) {
    print(_provider1['ID']); // --> 'title' or 'description'
  }

  runApp(new MaterialApp(
    home: new Categories(),
  ));
}

class Categories extends StatelessWidget {
  [USER=1021285]@override[/USER]
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("News"),
        centerTitle: true,
      ),
      body: new Center(
        child: new Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: <Widget>[
            new RaisedButton(
                padding: const EdgeInsets.all(12.0),
                color: Colors.red,
                onPressed: null,
                child: new Text("Get Headlines",
                    style: new TextStyle(
                      fontSize: 21.0,
                      color: Colors.white,
                    )))
          ],
        ),
      ),
    );
  }
}

Future<List> fetchData(String apiUrl) async {
  http.Response response = await http.get(apiUrl);
  return (json.decode(response.body))['ID'];
}

error log:

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Syncing files to device Android SDK built for x86...
E/flutter (17345): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = ***, port = 41535
E/flutter (17345): #0 IOClient.send (package:http/src/io_client.dart:33:23)
E/flutter (17345): <asynchronous suspension>
E/flutter (17345): #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:169:38)
E/flutter (17345): <asynchronous suspension>
E/flutter (17345): #2 BaseClient.get (package:http/src/base_client.dart:32:7)
E/flutter (17345): #3 get.<anonymous closure> (package:http/http.dart:46:36)
E/flutter (17345): #4 _withClient (package:http/http.dart:166:20)
E/flutter (17345): <asynchronous suspension>
E/flutter (17345): #5 get (package:http/http.dart:46:5)
E/flutter (17345): #6 fetchData (package:datavisually_jobscan/main.dart:57:34)
E/flutter (17345): <asynchronous suspension>
E/flutter (17345): #7 main (package:datavisually_jobscan/main.dart:16:22)
E/flutter (17345): <asynchronous suspension>
E/flutter (17345): #8 _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:199:25)
E/flutter (17345): #9 _rootRun (dart:async/zone.dart:1124:13)
E/flutter (17345): #10 _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (17345): #11 _runZoned (dart:async/zone.dart:1516:10)
E/flutter (17345): #12 runZoned (dart:async/zone.dart:1500:12)
E/flutter (17345): #13 _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:190:5)
E/flutter (17345): #14 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:300:19)
E/flutter (17345): #15 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)
E/flutter (17345):
D/EGL_emulation(17345): eglMakeCurrent: 0xb6185540: ver 3 1 (tinfo 0xb61832d0)
D/EGL_emulation(17345): eglMakeCurrent: 0xb6185420: ver 3 1 (tinfo 0x9597c310)
Lost connection to device.

2 phones volume refused to hold setting

Last night, both of my phones kept changing the volume by themselves. Yes they both had good charge. The first sign was the Media volume for listening to the radio in bed. Looking at the settings for Sound, I could pull the slider louder but it would bounce back to near zero. Inside my radio app the same thing happened but took longer to bounce to zero, like 2 minutes instead of 2 secs.This was also true of the Ringer volume. So I shut down that phone and went to my second phone. Same exact symptoms! Shut down for night too. The fact that this never happened before argues against it being some setting for silence between say 12am and 6am.

This morning after startup the volumes are holding steady on both phones. For now. Is this unHeard of? Is there a system tweak? Losing the radio is bad but tolerable, losing the ringer is intolerable. Except when desired. :goofydroid:

If you owned a business

What theme would it be and what would you call it ? Mine would be First Responder themed and have police/ems/fire and Power Plant feel. I would call it The 3rd Watch and it would be opened from 7am - 2pm for overnight workers to wet their whistle after work. Always good to have a bar where cops frequent. No Riff-Raff...

At the Dreaded Garage

Hmmmm, that would be a good name for a bar. Anyway, my chariot has been making awful grinding noises from the front ends wheel areas while turning and I know it isn't the brakes. Could be the wheel bearing/hubs worn away. Going to get it looked at and po$$ibly repaired too while I wait. 220,000+ miles on it so the old ones went the distance. How are you all today ?

Nullifying an action in ADB

Hello people, I'm a new user. I'm a beginner/apprentice in developing Android apps. Preliminarily, I have a little trouble.

if I gave the command

Code:
adb shell settings put global enable_freeform_support 1

how can I now reactivate the previous state (in the recent app, at the top bars, there persist the icons for resizing forms)? Maybe putting the 0 value instead of 1 in the above command line may solve the problem? Thanks

Wallpaper Change, Failed to Load Bitmap

Hi guys, I just downloaded Tasker like 10 mins ago and trying to set up my wallpaper change.
I want a certain wallpaper changed when I arrived at the office (as soon as its connected to the office wifi), and a different wallpaper when at home.

However, I chose a local image I had in my phone, but somehow it said failed to load bitmap...
Please help me... Here's the log...

I am sorry, I am really new, so simple words or screenshots are appreciated...Thanks in advance

17.53.20/E checkSDPath: /storage/emulated/0/Pictures/Twitter/IMG_20190813_001557.jpg useRoot: false there: true file: true dir: false
17.53.20/FileUtil Set Wallpaper/checkSDPath: wudf: no write needed
17.53.20/E Set Wallpaper: checkSDPath: /storage/emulated/0/Pictures/Twitter/IMG_20190813_001557.jpg useDocFile: false
17.53.20/E Set Wallpaper: checkSDPath: /storage/emulated/0/Pictures/Twitter/IMG_20190813_001557.jpg ok true
17.53.20/E Set Wallpaper: failed to load bitmap.
17.53.20/E result: stop task (error)
17.53.20/E Error: 1
17.53.20/MacroEdit action finished exeID 1 action no 0 code 109 status: Err next 0

How old is too old when looking at older models of smartphones to buy??

My best friend, who is at the other end of the spectrum from me in terms of his philosophy regarding his smartphones, is considering moving from iPhone to android. He has no desire to have the latest, most advanced models and is unwilling to pay anymore than he has to when looking at moving to a different model as he is now. He told me yesterday that's he's been looking on Craigslist for phones and is willing to pay no more than $150-$200 total for one but is hoping to pay around $75. Both of those comments made me cringe. Keep in mind that he apparently can't get a phone through a cell phone provider because of his bad credit so he has to pay completely out of pocket for any new phones. He has also asked me to help him pick an android model as he hasn't used one before which has lead me to post this question here. I've always been someone who has never had a model of android that is more than 2 generations back from the most current model but he has been asking me about models such as the LG Optimus L9 which came out in 2012! Yikes, that's ancient in tech years! imho at least.

What do you consider too old?



Secondary question for any of you who have used both android & iPhone smartphones,

Do you think I'm off-base in thinking someone, like my buddy, who is not very tech savvy is better off with an iPhone considering that they seem to be easier to use for non-tech savvy people? I'm a die-hard android guy but most of the things I love about them over iPhones are things I think would mostly cause him frustration over time.

I appreciate anyone who takes the time to read this and offer your opinion.

Thank you!

Mark in San Diego

Need Suggestions on Music Player App Please

I'm looking for a music player app (paid or free), but must have these two features...

-Music player widget that includes the current playlist (like Stock samsung music app widget)

-Dark mode for app and widget (changing themes with the tracks is okay)

I would assume this is easy to find. But I have tried many (free)apps now, with no luck. I did find one, but the widget crashes when you close the app or reboot the phone. :thumbsdowndroid:

Any suggestions?

Thanks in advance.

Filter

Back
Top Bottom