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

Intermittent error

I created a complex game that works fine most of the time but once every 40 or so rounds it will mess up. I'm trying to see if there is a bug so I play the game in the same exact order to recreate the problem but sometimes there is a problem and sometimes there isn't a problem. I've never had a program do this before. Can anybody shed some light on what might be causing the problem? I can recreate the problem but its random. I checked out all the code that is involved but there isn't a problem. Just Most of the time the code works flawlessly and sometimes it doesn't. Weirdest thing I've ever seen.

--calmchess

Help Dual boot

Hello first off as I'm new to the forum.

So I'm a bit of a loss in trying to install windows 10 and android x86_64-8.1-r1, iv got windows installed but I'm struggling to get android installed

My system is uefi
Dell optiplex 390 i3
Bios A14
Hdd 1tb, 500gb and 250gb
4gb ram

Any one have any recommendations on whats going on please or any other ways of dual boot for android

Thanks

Android Dev Documentation

As I've been trying to learn Android development, I have been noticing that the documentation seems to be rather lacking. Specifically, I'm finding out of date or inaccurate information.

For example, at https://developer.android.com/training/basics/network-ops/connecting#HeadlessFragment they have this example code:
Code:
private class DownloadTask extends AsyncTask<String, Integer, DownloadTask.Result> {

     ...
     /**
     * Wrapper class that serves as a union of a result value and an exception. When the download
     * task has completed, either the result value or exception can be a non-null value.
     * This allows you to pass exceptions to the UI thread that were thrown during doInBackground().
     */
    static class Result {
        public String mResultValue;
        public Exception mException;
        public Result(String resultValue) {
            mResultValue = resultValue;
        }
        public Result(Exception exception) {
            mException = exception;
        }
    }
- but this results in an error Inner classes cannot have static declaration

And the Volley overview at https://developer.android.com/training/volley/ has this:
Code:
dependencies {
    ...
    compile 'com.android.volley:volley:1.1.1'
}
- but compile is deprecated and was scheduled for removal end of 2018.

I ran into a similar issue at the very beginning, when the Create an Android project guide had information on the older Android Studio version, so it didn't match the latest version that I had installed. (This page has since been updated)

Almost everywhere I look, the information seems to be out of date, inaccurate, or incomplete. So I'm wondering what your suggestions are for where to look for accurate and up-to-date information and tutorials.

Thanks in advance!

HTTP vs localhost

I just learned that you can't use localhost on the emulator, since it's actually a separate device (so localhost from the emulator is the emulator). I found a suggestion to use 10.0.2.2:8080, but that didn't do any good, and I couldn't find much more.

So I'm wondering, how do you do HTTP requests against your dev system?

Android

My phone started freezing every 10-15 mins and everytime it does that I have to hold the home button to get into that menu where you can see all running apps (idk how it's called but you guys know what i'm talking about) and then get into the app again so it will unfreeze

It freezez in apps, games, or even on the 'desktop' when I open it. When it does that, it doesn't respond to any touuching, and if there are videos playing they are stopped

Did anyone have this issue before? How can I fix it? Thanks

Launcher pro plus apk market problem...

I for some reason, even though i PURCHASED it from the play store, it won't let me download it, but whats more, I cant even FIND it or the launcher, any more... i just installed it a couple months ago, and lost it on a reset, so i assume it got removed in one of those ban waves going around... if someone needs proof I bought it, I think I still have my receipt, if someone asks for it, and looking at a thread here, i found a post similar to this, from long ago I assume, and it was closed due to talk of piracy... i dont want to be a pirate, but would like to know how to get the product I purchased, downloaded... what a time to forget to backup my purchased apps... might have it on another phone, but all my other devices that may have it, need USB-C charging cables, which i dont currently have available...

Help SD files disappear after a while

I have a Samsung Galaxy Note 4 - going to get the Note 10 later this year, but until then, I want the SD card to work correctly in my Note 4. This issue only started a few weeks ago - otherwise it had been working fine for about a year. When I take the card out of the phone and put it in my computer, it works 100% - no issues. I did a chkdsk on it, no errors. It NEVER fails in the computer and all my files are there. With the SD card in the phone, once the files disappear, the only way to bring them back is to go to Settings, Storage, SD Card (which shows as being there), and tap Unmount. The card unmounts without issue, then I click SD card again and it mounts it - no issue. Then I tap Format and format the card - no issues. At that point for about the next 5 minutes or so I can access everything on my SD card - all the files are there, even though I just "formatted" the card. I can view the photos, share them, transfer them, everything - no problem. But after a few minutes, everything is "gone" again and I have to go through the entire process over again - very annoying. Obviously SOMETHING is causing a glitch with how the phone sees the mounted space - but only after several minutes have gone by. Has anyone had this issue and solved it?

Using Scrollview i cannot get the PROCEED button placed at bottom

I have an issue using scroll view below are the cases

**CASE 1**

when i don't use scrollview i get the layout like [ this][1] and this is the layout i need.
Problem with this approach is when the device resolution is low 412 x 732 or below i cant see the whole content of the layout for that reason **i need scrollview**

**CASE 2**

if i use scroll view i get the view like this [this][1] and [this][2] this which is perfect and what i need for 412 x 732 or below but the problem occur when i see the layout in higher resolution 1080x1920 i get [this][3]

what is need is in **CASE 2** for higher resolution device the PROCEED button should touch the bottom with bottomPadding=20dp just like **CASE 1** image

I Really appreciate if someone give me suggestion to acquire the layout that work for both the devices having high and low resolution



[1]: https://i.stack.imgur.com/OIkFd.png
[2]: https://i.stack.imgur.com/JPRHe.png
[3]: https://i.stack.imgur.com/21OMe.png

**Layout**

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="@color/backgroundColor">

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="USER AGREEMENT"
android:textColor="@android:color/white"
android:gravity="center"
android:id="@+id/userAgereement"
android:layout_marginTop="20dp"
android:textSize="@dimen/textSize"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Beijing Pinnacle Global &amp; Alex Edu\n(BPGE &amp; Alex Edu)"
android:textColor="@android:color/white"
android:gravity="center"
android:layout_marginEnd="5dp"
android:layout_marginStart="5dp"
android:id="@+id/belowHeadingText"
android:layout_marginTop="20dp"
android:textSize="@dimen/endSize"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Today's Date : 25th of August, 2019"
android:textColor="@android:color/white"
android:gravity="center"
android:layout_marginTop="20dp"
android:id="@+id/date"
android:textSize="@dimen/endSize"/>

<View
android:id="@+id/line"
android:layout_width="270dp"
android:layout_gravity="center"
android:layout_marginTop="4dp"
android:background="@android:color/white"
android:layout_height="1dp">

</View>

<ImageView
android:layout_marginTop="20dp"
android:layout_width="171dp"
android:layout_height="239dp"
android:layout_gravity="center"
android:clickable="true"
android:id="@+id/imageView"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:src="@drawable/useragreemnet"/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="You Are Going To Sign The User Agreement\nKindly, Provide Us Your Details"
android:textColor="@android:color/white"
android:gravity="center"
android:id="@+id/belowImageText"
android:layout_marginTop="20dp"
android:textSize="@dimen/endSize"/>

<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp">

<android.support.v7.widget.CardView
android:layout_width="230dp"
android:layout_height="@dimen/buttonHeight"

android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
app:cardBackgroundColor="@color/functionalityColor"
app:cardCornerRadius="@dimen/cornerRadiusForButtons"

app:cardElevation="@dimen/elevation">

<Button
android:id="@+id/proceed"
android:layout_width="match_parent"
android:layout_height="@dimen/buttonHeight"
android:layout_marginBottom="20dp"
android:background="@android:color/transparent"
android:clickable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:gravity="center"
android:onClick="onClick"
android:text="PROCEED"
android:textColor="@android:color/white"
android:textSize="@dimen/buttonTextSize" />
</android.support.v7.widget.CardView>

</RelativeLayout>

</LinearLayout>

in layout i removed the scrollview and i get the layout that is good for high resolution device but with the low resolution i do not get the whole content to see because i need to scroll down

dimens.xml


<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">

<dimen name="design_navigation_icon_size" tools:override = "true" >30dp</dimen>


// cornor radius for all button
<dimen name="cornerRadiusForButtons">5dp</dimen>

// cornor radius for all edit texts and text views and card views

<dimen name="cornerRadiusForEdittexts">5dp</dimen>

// elevation for cardView

<dimen name="elevation">15dp</dimen>

// this is the heading text size heading of all activities

<dimen name="textSize">35sp</dimen>

// used only once in userprofile below circleimageview

<dimen name="belowHeadingSize">23sp</dimen>

// this is the text that is present in the activity

<dimen name="endSize">17sp</dimen>

// button heights

<dimen name="buttonHeight">50dp</dimen>




// this is button text size

<dimen name="buttonTextSizeMain">25sp</dimen>

// donot know where does this use

<dimen name="buttonTextSize">30sp</dimen>





// width size of text view and edit texts

<dimen name="widthEditText">290dp</dimen>

// toolbar main title

<dimen name="toolbarTitle">18sp</dimen>

// toolbar subtitle

<dimen name="toolbarSubtitle">14sp</dimen>


// custom upper and lower cornors of the alert diloge etc


<dimen name="customUpperLowerCorners">5dp</dimen>



</resources>

Unable to use Gallery error

Using a Samsung Galaxy s7 and using the classic messaging app. When an image is sent and the image is tapped to be enlarged, this message loads....
"Unable to use Gallery. Tap SETTINGS, go to App info > Permissions, then allow the following permissions and try again:
SMS"

But, from everywhere I see SMS is enabled.
I have cleared cache in both the gallery and message app, but error is still there.

Any ideas?
Thanks in advance

Help Looking for a custom ROM

I have the same tablet and play final fantasy brave exvius. I just got the new Razor Phone 2 which runs the game better than the tablet. I bought them only 1 month apart. I assume its all the adware and unnecessary software. Has anyone created an image for this tablet with all the unnecessary software not on it? Thanks

Import from Passdroid

I'm looking for some help. I've been using Passdroid for a long time. I want to switch to a different password app, but I can not find one that will import the xml file. I have saved it unencrypted and it still won't import. I've tried to many apps to list and I have to many passwords to transfer manually.

Anyone have any ideas? Passdroid is driving me crazy. Every time I go to another screen, it locks. I have the option unchecked and it continues to do it. I'm tired if logging in everytime I move away from it.

Cubot P20 Fake Camera Spec

Hi I bought a Cubot P20 from amazon and all was well untill I started to take pictures I noticed that covering the second camera has no difference at all in picture quality. It also has no 4g and complete different spec camera then advertised. I'm going to receive a refund from Amazon but no response from Cubot over 4 working days very odd What do you think I will add pictures and a video sorry about the focus lol Thanks. :)
Pictures in comment sorry couldn't add here

Android forums privacy

Is browsing through the internet like I normally do on a daily basis and stumbled upon this that took me by surprise because I wasn't aware something like this had ever happened.

https://www.zdnet.com/article/android-forums-hacked-1-million-user-credentials-stolen/

Did anyone get down to the source of this and find out how it happened? , because I'm curious to find out how and why it happened and what steps was taken to prevent a privacy breach like this to happen again in the future?

[AD-FREE] CalcPP - The Beautiful Calculator You Will Love

Hi guys!

I had been looking for calculators that don't have ads, have many functions with clean and modern design, but most of them didn't meet my expectation. So, I decided to make my own, so I can implement any cool functions that I wish others have. This is the first project that I spend so much time on it, and I just want to know what do you think about it.

And after months of months of designing, implementing and testing, I released the first version of CalcPP (It is Calc++, but that term is not good to find on Play Store, so I changed it).

YOU CAN GET IT FROM HERE: CalcPP - Powerful Calculator With No Ads

What features it currently has:

- No Ads. I was annoyed by ads, so I decided not adding anything can affect your experience

- After checking other calculators on Play Store, I decided to implement first 9 calculators and converters. From standard/health/money mode for everyday uses to unit/time zone/currency converters. (I already had a to-do list of what are going to appear on the next updates, but if you have any ideas, please let me know)

- I love calculator with more customized interface, so I support color scheme and theme. You can choose from the collection, and more will be added or removed based on your feedback.

- Although I'm not a English native speaker, I prefer using English as my primary language. But I still support localization. If you request any language, please let me know. I will try to translate it to any language.

- And more features will appear in the future.

H0oxgFJ8bLccY6UnKmXt1K0t2UbqeHiZb6VfhgmTeafRG9TLHhVHkWOzoNdTgSD_SEQ=w1536-h754-rw
1ynixU__mohEmOuy-hLTDrV1epcjogbg1AhVwoP7n1cCQhlGgX7iT9h9dGIaiEcWFw=w1536-h754-rw


What is going to appear in the next releases:

- New themes
- More calculators and converters
- More languages and options
- Whatever you think should be added, just leave your feedback!

[APP][Ad Free] Shopping lists - Premium

Hi all,

I would like to introduce my second application, which is the Shopping lists app.

1500x500
listed-twitter.png


Having done it first of all for myself and my family, I put everything I expected from an "electronic" shopping list as a feature.

Download : https://play.google.com/store/apps/details?id=net.binsp.listed

Here are the features
- Unit price calculation (with history).
- Price calculation with discount (with history).
- Unlimited creation of lists (for organization by supermarket, event, type of shopping).
- Organize items by aisles and store.
- Estimate of the total (with taking into account the promotional offer type 1 purchased = 1 offered).
- Loyalty card management.
- Sharing via sms and other apps available on the device.
- Offline first synchronization of lists.
- For synchronization no mail / or other account is required, just a QR code to scan or the identifier to enter.
- Mark products purchased easily.
- Sort by date, alphabetical order, store (shelving), custom.
- Unsynchronized sorting between devices so that each one sorts in its own way.
- Entry of item by keyboard, selection from suggestion, barcode, history and voice.
- Add notes concerning the article (for future purchases).
- Add photo on item (when the spouse does not know which article to take: -)).
- Shopping mode which allows you to keep the phone awake during shopping time.
- Different colors, to customize the application a little bit, including two "dark" colors.

  • Application without ads, there is only the synchronization part that is not free (try 14 days free) because it requires me to have a decent server available 24 hours.

Thank you in advance for your feedback
If you like it, please share
smile.png

Filter

Back
Top Bottom