Skip to content

Instantly share code, notes, and snippets.

View gohilbhagirath90's full-sized avatar

Bhagirathsinh Gohil gohilbhagirath90

  • eInfochips
  • Ahmedabad, Gujarat, India
View GitHub Profile
@gohilbhagirath90
gohilbhagirath90 / gist:cbf865df3316040a3c64
Last active August 29, 2015 14:05
Broadcast Receiver for start android app after booting
Well you can have a BroadcastReceiver declared in your manifest to receive the BOOT_COMPLETED broadcast and then respond to that in your BroadcastReceiver and do what you like.
<receiver android:name="MyBootReceiver"
android:enabled="true"
android:exported="true"
android:label="BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
@gohilbhagirath90
gohilbhagirath90 / gist:d51e2268d6ab97527c27
Created March 10, 2015 05:03
support for all android screen
<supports-screens
android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"
/>
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files
@gohilbhagirath90
gohilbhagirath90 / scrollbar.xml
Last active September 17, 2019 10:43
change color of scrollbar in scrollview android
Create a scroll bar in drawable(scrollbar.xml) using this
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:centerColor="#669C79E7"
android:endColor="#66C0C0C0"
android:startColor="#669C70E2" />
@gohilbhagirath90
gohilbhagirath90 / ffmpeg
Last active May 27, 2017 09:49
ffmpeg decode command
==> ffmpeg decode video
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -f rawvideo -pix_fmt yuv420p Untitled_Project-Apple_ProRes_422.yuv
==> ffmpeg slicing video
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -pix_fmt yuv420p -ss 00:00:00 -t 00:00:15 part1_420p.mov
==> adding into container format
@gohilbhagirath90
gohilbhagirath90 / build cts command
Last active September 4, 2015 06:48
build cts command
make cts -j8 TARGET_PRODUCT=msm8960
@gohilbhagirath90
gohilbhagirath90 / Remove hardware & software fetures from aosp android
Last active June 16, 2024 20:17
Remove hardware & software fetures from aosp android
For Remove Hardware features check following files in android source :
1. Check the device.mk file for your device(Like : device/<vendor>/<device>.mk)
2. Check the common.mk file for your device(Like : device/<vendor>/common/common.mk)
There both files is probably a line like the following:
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \