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

Samsung Galaxy Note 10 Rumors

so it looks like more info is being "leaked" to the public. a bunch of sites are now showing images and theior analysis of these pictures.

here are a few articles you can read:
https://www.cnet.com/news/samsung-galaxy-note-10-and-note-10-plus-images-reportedly-leak/
https://www.cnet.com/news/samsung-galaxy-note-10-more-leaked-images-show-no-headphone-jack/
https://www.theverge.com/circuitbre...y-note-10-leaked-photos-huawei-color-gradient

no head phone jack according to the leaked photos. not sure if i care. i like my bluetooth headset anyways.

i'm not sure if i like a screen that has a screen size of 6.66"........that looks very ominous.....lol though some sites are saying 6.4" and a 6.75" screen size so who knows what the exact size will be.

anybody else excited? will you be the first in line to buy it? i could upgrade now, but i'm gonna wait for this to be released. depending on what kind of deals that might be included with the phone, i might get it on release day.

  • Poll Poll
Apps on a null object reference


Excuseme.. i hava promblem with my activity. how i fix on a null object reference. Thanks :)

Code:
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.yk.danaberkah, PID: 22728
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.yk.danaberkah/com.yk.danaberkah.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.yk.danaberkah._sliders.SliderView.setDurationScroll(int)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2363)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2426)
        at android.app.ActivityThread.access$800(ActivityThread.java:176)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1343)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.yk.danaberkah._sliders.SliderView.setDurationScroll(int)' on a null object reference
        at com.yk.danaberkah.MainActivity.setupSlider(MainActivity.java:162)
        at com.yk.danaberkah.MainActivity.onCreate(MainActivity.java:96)
        at android.app.Activity.performCreate(Activity.java:5990)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2426)
        at android.app.ActivityThread.access$800(ActivityThread.java:176)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1343)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
Application terminated.


This My MainActivity.java


Java:
public class MainActivity extends AppCompatActivity
        implements NavigationView.OnNavigationItemSelectedListener {
private SliderPagerAdapter mAdapter;
            private SliderIndicator mIndicator;
            private String TAG = MainActivity.class.getSimpleName();
            private SliderView sliderView;
            private LinearLayout mLinearLayout;

@Override
                protected void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.activity_main);
                    Toolbar toolbar = findViewById(R.id.toolbar);
                    setSupportActionBar(toolbar);
                    sliderView = (SliderView) findViewById(R.id.sliderView);
                    mLinearLayout = (LinearLayout) findViewById(R.id.pagesContainer);
                    setupSlider();

/*Slider Setup Example Use URLS*/
                private void setupSlider() {
                    sliderView.setDurationScroll(800);
                    List<Fragment> fragments = new ArrayList<>();
                    fragments.add(FragmentSlider.newInstance("https://jssorcdn7.azureedge.net/demos/img/gallery/980x380/001.jpg"));
                    fragments.add(FragmentSlider.newInstance("https://www.dnvgl.co.uk/Images/ISO2015-revisions-1134x350_tcm12-13061.jpg"));
                    fragments.add(FragmentSlider.newInstance("https://www.dnvgl.co.uk/Images/ISO2015-revisions-1134x350_tcm12-13061.jpg"));
                    fragments.add(FragmentSlider.newInstance("https://jssorcdn7.azureedge.net/demos/img/gallery/980x380/001.jpg"));

                    Log.e(TAG, "Response from fragment: " + sliderView);
                    mAdapter = new SliderPagerAdapter(getSupportFragmentManager(), fragments);
                    sliderView.setAdapter(mAdapter);
                    mIndicator = new SliderIndicator(this, mLinearLayout, sliderView, R.drawable.indicator_circle);
                    mIndicator.setPageCount(fragments.size());
                    mIndicator.show();
                }
      }
}

This FragmentSlider.java

Code:
public class FragmentSlider extends Fragment {

    private static final String ARG_PARAM1 = "params";

    private String imageUrls;

    public FragmentSlider() {
    }

    public static FragmentSlider newInstance(String params) {
        FragmentSlider fragment = new FragmentSlider();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, params);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        imageUrls = getArguments().getString(ARG_PARAM1);
        View view = inflater.inflate(R.layout.fragment_slider, container, false);
        ImageView img = (ImageView) view.findViewById(R.id.image_slider);
        Glide.with(getActivity())
                .load(imageUrls)
                .placeholder(R.drawable.beras_murah)
                .into(img);
        return view;
    }
}



This SliderIndicator.java

Java:
public class SliderIndicator implements ViewPager.OnPageChangeListener {
    private Context mContext;
    private LinearLayout mContainer;
    private int mDrawable;
    private int mSpacing;
    private int mSize;
    private ViewPager mViewPager;
    private int mPageCount;
    private int mInitialPage = 0;

    private int defaultSizeInDp = 12;
    private int defaultSpacingInDp = 12;

    public SliderIndicator(@NonNull Context context,
                           @NonNull LinearLayout containerView,
                           @NonNull ViewPager viewPager,
                           @DrawableRes int drawableRes) {
        if (context == null) {
            throw new IllegalArgumentException("context cannot be null");
        } else if (containerView == null) {
            throw new IllegalArgumentException("containerView cannot be null");
        } else if (viewPager == null) {
            throw new IllegalArgumentException("ViewPager cannot be null");
        } else if (viewPager.getAdapter() == null) {
            throw new IllegalArgumentException("ViewPager does not have an adapter set on it.");
        }
        mContext = context;
        mContainer = containerView;
        mDrawable = drawableRes;
        mViewPager = viewPager;

    }

    public void setPageCount(int pageCount) {
        mPageCount = pageCount;
    }

    public void setInitialPage(int page) {
        mInitialPage = page;
    }

    public void setDrawable(@DrawableRes int drawable) {
        mDrawable = drawable;
    }

    public void setSpacingRes(@DimenRes int spacingRes) {
        mSpacing = spacingRes;
    }

    public void setSize(@DimenRes int dimenRes) {
        mSize = dimenRes;
    }

    public void show() {
        initIndicators();
        setIndicatorAsSelected(mInitialPage);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                mViewPager.setCurrentItem(1);
            }
        }, 2500);
    }

    private void initIndicators() {
        if (mContainer == null || mPageCount <= 0) {
            return;
        }

        mViewPager.addOnPageChangeListener(this);
        Resources res = mContext.getResources();
        mContainer.removeAllViews();
        for (int i = 0; i < mPageCount; i++) {
            View view = new View(mContext);
            int dimen = mSize != 0 ? res.getDimensionPixelSize(mSize) : ((int) res.getDisplayMetrics().density * defaultSizeInDp);
            int margin = mSpacing != 0 ? res.getDimensionPixelSize(mSpacing) : ((int) res.getDisplayMetrics().density * defaultSpacingInDp);
            LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(dimen, dimen);
            lp.setMargins(i == 0 ? 0 : margin, 0, 0, 0);
            view.setLayoutParams(lp);
            view.setBackgroundResource(mDrawable);
            view.setSelected(i == 0);
            mContainer.addView(view);
        }
    }

    private void setIndicatorAsSelected(int index) {
        if (mContainer == null) {
            return;
        }
        for (int i = 0; i < mContainer.getChildCount(); i++) {
            View view = mContainer.getChildAt(i);
            view.setSelected(i == index);
        }
    }

    @Override
    public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

    }

    @Override
    public void onPageSelected(int position) {
        int index = position % mPageCount;
        setIndicatorAsSelected(index);
        final int moveTo = position + 1;
        try {
            new Handler().postDelayed(new Runnable() {
                @Override
                public void run() {
                    mViewPager.setCurrentItem(moveTo);
                }
            }, 2500);
        }catch (Exception e){
        }
    }

    @Override
    public void onPageScrollStateChanged(int state) {

    }

    public void cleanup() {
        mViewPager.clearOnPageChangeListeners();
    }
}

SliderPagerAdapter.java

Java:
public class SliderPagerAdapter extends FragmentStatePagerAdapter {

    private static final String TAG = "SliderPagerAdapter";

    List<Fragment> mFrags = new ArrayList<>();

    public SliderPagerAdapter(FragmentManager fm, List<Fragment> frags) {
        super(fm);
        mFrags = frags;
    }

    [USER=1021285]@override[/USER]
    public Fragment getItem(int position) {
        int index = position % mFrags.size();
        return FragmentSlider.newInstance(mFrags.get(index).getArguments().getString("params"));
    }

    [USER=1021285]@override[/USER]
    public int getCount() {
        return Integer.MAX_VALUE;
    }

}

SliderView.java

Java:
public class SliderView extends ViewPager {

    public static final int DEFAULT_SCROLL_DURATION = 250;
//    public static final int SLIDE_MODE_SCROLL_DURATION = 1000;

    public SliderView(Context context) {
        super(context);
        init();
    }

    public SliderView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        setDurationScroll(DEFAULT_SCROLL_DURATION);
        this.setOnTouchListener(new OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                return true;
            }
        });
    }
    public void setDurationScroll(int millis) {
        try {
            Class<?> viewpager = ViewPager.class;
            Field scroller = viewpager.getDeclaredField("mScroller");
            scroller.setAccessible(true);
            scroller.set(this, new OwnScroller(getContext(), millis));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public class OwnScroller extends Scroller {

        private int durationScrollMillis = 1;

        public OwnScroller(Context context, int durationScroll) {
            super(context, new DecelerateInterpolator());
            this.durationScrollMillis = durationScroll;
        }

        @Override
        public void startScroll(int startX, int startY, int dx, int dy, int duration) {
            super.startScroll(startX, startY, dx, dy, durationScrollMillis);
        }
    }
}

All of a sudden my recorded videos shake badly

I have a Galaxy S8+ and I went to my gallery to watch a short video of my dogs I shot a few days ago. To my surprise, when I hit play the video shakes. I tried playing another video I shot the same day and it has the same problem. I decided to test the camera by recording a quick video of my room. As soon as I hit record the video begins to shake. It's hard to explain it other than just by saying it's shaking. In some videos it shakes very violently. It completely ruins the video. I have gone back and played some previous videos. All my recent videos shake. Anything older than maybe 2 weeks, maybe less is fine. That timing leads me to believe it may have started after the last update. It was a pretty big update that changed quite a bit of stuff.

I navigated to"last update" in settings but it just says "There is no information about this update.", but when I navigate to "about phone" and then "software information" it says I'm running version 9.

The forum is giving me an error when I try to attach a video demonstrating the issue.

Any help appreciated! Really want to be able to use my camera to shoot video again.

webView | Native App | Open Website in Anderiod App |

Hi There

I am stuck at following piece of code.

when i write this piece of code
myWebView = (WebView)findViewById(R.id.WebView);
i get error "cannot resolve symbol 'webView'.

Please anyone can help me how to fix this error.
-------------------------
==for your reference i am copying MainActivity.Java code below ===

package com.irex.lingo_6;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends AppCompatActivity {
private WebView myWebView;
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
myWebView = (WebView)findViewById(R.id.WebView);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
myWebView.loadUrl("http://irex.pk/lingo-school/signin/index");
myWebView.setWebViewClient(new WebViewClient());
}

@override
public void onBackPressed() {
if(myWebView.canGoBack()) {
myWebView.goBack();
}else {
super.onBackPressed();
}

}
}
=====activity_main.xml===

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp" />
</androidx.constraintlayout.widget.ConstraintLayout>

============ android manifest.xml====

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.irex.lingo_6">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application
android:allowBackup="true"
android:icon="@Mipmap/ic_launcher"
android:label="@String/app_name"
android:roundIcon="@Mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@Style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

Help Recover Wireless

So I was really dumb and accidentally uninstalled WAP Service (as root) and my WiFi stopped working.
I made no backups (shame on me).
Is there any way to restore the system app? I tried taking some components from the previously posted O.D. mod and sticking them in priv-apps, apps, etc; but it still refuses to work.
Thanks in advance for any advice.

Person in a circle notification

my s8 is almost dead but I use it for work now and some notifications are driving me crazy...is this some contact information icon? When I open the notifications there’s nothing there anymore no even for text they don’t work..but I always get the icon so I know what apps to check. This one I don’t get it, I opened ‘contacts’ and it didn’t go away. Any idea what else can it be?

Attachments

  • 6CC4480F-64A8-4ACD-B829-8CA8EC2790DA.jpeg
    6CC4480F-64A8-4ACD-B829-8CA8EC2790DA.jpeg
    36 KB · Views: 386

Themes [Javascript] Need some help.

So I developed a theme for a website on the Hugo framework. It has a light and dark mode. The theme is done, except for this one piece of the the puzzle...

There is a comments widget served up from a CDN which comes with a bunch of initial themes you can set (ie. light, dark, etc).

Here is the code for the widget that is inserted into your html page...

HTML:
<script src="https://utteranc.es/client.js"
        repo="{{ site.Params.comments }}"
        issue-term="title"
        theme="github-light"
        crossorigin="anonymous"
        async>
</script>

Now when I click a toggle the website theme switches from light to dark. What I need is to be able to change the "theme" element in the widget above to "github-dark" so that it matches the theme. I need to be able to go from light to dark and dark to light.

Is there any way to do this with some javascript or perhaps some golang?

Google maps won't play sound in car

Apparently Google Maps on my phone is just far too polite to interrupt anyone. I don't hear the directions, I have to watch it more than I want to see where I need to turn off. However when I get out of my car, the phone tells me how to get back onto the road.

Bottom line, I think the verbal portion won't override the radio, it's allowing the music to override it. I'm not going to spend long rides listening to nothing, and I wouldn't mind an interruption of "turn right in 2 miles" from time to time. Bluetooth off would mean no way to answer calls.

So what settings do I need to change so Google Maps and SiriusXM happily share the speakers?

Excel read only

I have a couple of Excel files on my Galaxy S9. I open them up, manipulate a few cells, then close it. I wanted to have it so that whatever I did while I had it open doesn't save, so I went into both files and turned off the autosave. Now when I open those files, they open as "read only" files, and of course I can't manipulate them. How do I make it so they open normally as opposed to "read only"?

TIA

Privacy Policy and Terms and Conditions

Hi everyone!

My question is about the content of the Privacy Policy Document and Terms and Conditions.

Can I include some terms and information that are not active at this time but will be?

For example: at this moment in the application there is no option of payments in the application, but in a short period of time it will be. So can I include now in the Privacy Policy, information about payments and financial data, in order to not generate another document in the future.

Thanks :)

2 sim setup isn't working

Hi
I have 2 sims in my Motorola One and I have it set up for "always ask" when calling. But the problem is... it doesn't. It used to but now it just just chooses at random which sim to use and doesn't even show which SIM I am using. It is extremely irritating.
I am using the default Phone app but I am open to switching if anyone knows an app that always asks for which SIM to use.
Thanks
Jay

How to make new photo albums

I have a moto E5 play. I take pictures with it. In my advancing years many of the pictures are of unattractive parts of my body which I store for showing doctors, chiropodists etc, or document healing of scars. Wgafa? if it was porn it wouldn’t be any different.

On a moto G you can create albums to store embarrassing pictures in. How do you do it on a moto E?

I can create an album in DCIM with a file manager, but it doesn’t show in the Google photos app. I even just did this to put a bunch of medical photos in the phone before an appointment just now. I created an album: medical. In the file manager programme it is there, but in the phot app they are scattered all among the photos according to date.

The albums in the photo app are Camera, Whatsapp, Whatsapp vidoes, Downloads and Screenshots.

But in the file manager under images is the medical album I created too. Why doesn’t it show in “photos”?

I could manage by not using the google app and only viewing photos through the files app, but I still can't make new albums from the phone, and what is the Google phot app there for if it doesn't have this function?

Android launcher(Android Studio) : prevent access to some package

Hi,



I 'm actually programming an Android launcher for children. I've successed to create a database and only show app I have authorized. The problem is in Navigation bar when you swipe down, you can acess to the setting app ( see picture below).



579x362




Is there is a way to override this button ? Or maybe to filter every packages sent from my launcher and check if there are authorized. I've tried Services, Broadcast receiver, onUserInteraction().



Can you please help me ?

Thanks.

Problem with SwiftKey clipboard

SwiftKey keyboard - the *best* keyboard in the world - apart from one thing that doesn't work

Sometime ago they added a clipboard catcher (I think that's what it's called).

It just keeps a record of what you have copied from the clipboard so you can access later.

It worked when it came out. Yipee!

But then 9 months or so (actually, I can't remember the exact time) it stopped working. It works like 5% of the time.

Something I copied 3 copies ago... I need to access. It's not there. The functionality is SUPPOSED TO be there!

I've tried sending tweets. But they don't listen.

Anyone else suffering?
I've tried other clipboard managers - they all suck. To have in the keyboard is a natural place for it to be. I don't want another program.

Thanks.

Notification Panel Resets to Default on its own

After moving the 5 notifications I prefer into the top active row, the panel resets itself to the default spontaneously (usually within 5-10 minutes). klingelton kostenlos
I prefer to add Airplane Mode and Do Not Disturb to the top 5 rows, but again my Sprint Note Edge keeps resetting to default.... Frustrating but not a major problem. I cleared the cache partition several times. Anyone else having this issue?
samsung klingeltone

Help

Ok i dont never do this pls forgive me if i **** up and not spell something right or put a period inthe the right place. But this isn't about how i write itsvwhat i write about ... Look pls help me this shit is crazy somehow my wife can find out everything i text or call on my phone but anything i text sms and Facebook messenger can someone tell me what the **** is going on and how the **** do i stop it????

Filter

Back
Top Bottom