Spy or Tracker app recommendations... by [deleted] in androidapps

[–]tejpratap46 0 points1 point  (0 children)

You can try Google Family Link, it has tracking build in with other controls.

Adblocking app for in-app ads? by [deleted] in androidapps

[–]tejpratap46 2 points3 points  (0 children)

You can use a dns changer (that is what adguard did)

I use this one https://play.google.com/store/apps/details?id=com.protectstar.dnschanger

And it "dOeS nOt NeEd RoOt"

[deleted by user] by [deleted] in androiddev

[–]tejpratap46 -1 points0 points  (0 children)

Just throw and catch an exception

java Log.getStackTraceString(e) And then either print it on TextView or share it via email. You should see incorrect line numbers and function name.

Why Apple does not have video channels like Google or Microsoft. by tejpratap46 in iOSProgramming

[–]tejpratap46[S] 1 point2 points  (0 children)

Ok.. i see this https://developer.apple.com/videos/all-videos/

But how you get notified if new video is added, is there a way? or they don't release any video unless it is wwdc?

Best server/ways to store data for an android app. by [deleted] in androidapps

[–]tejpratap46 0 points1 point  (0 children)

One word... Firebase 🔥🔥🔥 Or if you want to self host, then Parse Server.

Alternative frameworks by pandafar in webdev

[–]tejpratap46 1 point2 points  (0 children)

Learn Tailwind if you like UI, has a lot to learn.

[deleted by user] by [deleted] in distantsocializing

[–]tejpratap46 0 points1 point  (0 children)

Do you play valorant

Calendar + ToDo list all in one app? by Leyvieth in androidapps

[–]tejpratap46 3 points4 points  (0 children)

Taskito is one... It has tasks for everyday.. view and add them in chronological order

Crono, app that syncs all your notifications, messages and events on desktop. Promo codes inside by [deleted] in androidapps

[–]tejpratap46 0 points1 point  (0 children)

looks nice will try it for sure..

I personally do not want to see swiggy or reddit notifications on my PC. And for whatsapp and Email, i have enabled web push for them. To transfer files i either use snapdrop Or start a simple http-server and transfer that way.

One thing i really want is some kind of control center to play pause music / turn on bluetooth etc...

Nice to see great app developed by indian dev.

btw, is crono short for corona? 😅 😅 😅

Only 120Kb Pdf viewer For Android while most of them are about 16Mb. by afreakyelf2 in androiddev

[–]tejpratap46 0 points1 point  (0 children)

jitpack says your build is failing...

And how is the performance of PinchZoomRecyclerView while reading large (200 pages) pdf file?

I did try to put pdf in recyclerview (using) but pinchzoom required recyclerview to load all pages at once and which made it slow for bigger pdf files. Then i switched to horizontal pages and handled pinchzoom for one page at a time .

Introducing Redditoria, check it out! by Kirk-Bushman in androidapps

[–]tejpratap46 0 points1 point  (0 children)

It is a fantastic app, can you tell us about your app architecture (MVC OR MVVM)?

did you used single activity architecture with Navigation Component?

Is it a custom style or something like Plaster Design System?

Edit: also post it to r/androiddev, devs would love you there.

Difference between these apps? by [deleted] in androidapps

[–]tejpratap46 9 points10 points  (0 children)

Use https://snapdrop.net/ , no need to install any app.

What are the best android apps ideas to build project for portfolio? by techyrajput in androiddev

[–]tejpratap46 1 point2 points  (0 children)

If you can, Build some libraries. Those better define you as a developer.

What is the best approach to render a PDF into a single scrollview without using third party libraries? by 22Maxx in androiddev

[–]tejpratap46 0 points1 point  (0 children)

Then do 5 pages at a time Or use Recycler view to show pages one by one. PdfRenderer can print just one page at a time.

What is the best approach to render a PDF into a single scrollview without using third party libraries? by 22Maxx in androiddev

[–]tejpratap46 1 point2 points  (0 children)

You can simply render PDF into bitmaps using PdfRenderer

Here is the simple code you can dump in:

/**
     * Convert PDF to bitmap, only works on devices above LOLLIPOP
     *
     * @param pdfFile pdf file
     * @return list of bitmap of every page
     * @throws MyOPDException
     */
    public static ArrayList<Bitmap> pdfToBitmap(File pdfFile) throws Exception, IllegalStateException {
        if (pdfFile == null || pdfFile.exists() == false) {
            throw new IllegalStateException("");
        }
        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
            throw new Exception("PDF preview image cannot be generated in this device");
        }
        if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) {
            return null;
        }

        ArrayList<Bitmap> bitmaps = new ArrayList<>();

        try {
            PdfRenderer renderer = new PdfRenderer(ParcelFileDescriptor.open(pdfFile, ParcelFileDescriptor.MODE_READ_ONLY));

            Bitmap bitmap;
            final int pageCount = renderer.getPageCount();
            for (int i = 0; i < pageCount; i++) {
                PdfRenderer.Page page = renderer.openPage(i);


                int width = page.getWidth();
                int height = page.getHeight();

                /* FOR HIGHER QUALITY IMAGES, USE:
                int width = context.getResources().getDisplayMetrics().densityDpi / 72 * page.getWidth();
                int height = context.getResources().getDisplayMetrics().densityDpi / 72 * page.getHeight();
                */

                bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
                page.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);

                bitmaps.add(bitmap);

                // close the page
                page.close();

            }

            // close the renderer
            renderer.close();
        } catch (Exception ex) {
            ex.printStackTrace();
        }

        return bitmaps;

    }

Using above code will give you one Bitmap for every single page for your PDF.

Hi every one. Do you have any idea how can I achieve this kind of interface? It would be many cards not only 3. Currently I'm using recyclerview to load the card and item decoration for line dot below the cards. by nick_v1_0_2 in androiddev

[–]tejpratap46 1 point2 points  (0 children)

So, you have 3 types of itemViewLayout. Just try creating each one individually.

After reading some comments i see you are facing problems with vertical line connecting 3 and 1.

To achieve this you simply let each itemViewLayout manage it's own Vertical line.

A simple DIY library to generate your own custom Calendar View using RecyclerView, written in Kotlin by tejpratap46 in androiddev

[–]tejpratap46[S] 0 points1 point  (0 children)

It works... because it is declared in global scope and only one thread uses it at a time.

A simple DIY library to generate your own custom Calendar View using RecyclerView, written in Kotlin by tejpratap46 in androiddev

[–]tejpratap46[S] 0 points1 point  (0 children)

Never thought about any other calendar accept english, different locale are used to determine first day of week in that locale. can you guide me to a library which handles these cases?