When we type email address on input box we are getting error as follows:
Code:
java.lang.NullPointerException: Attempt to invoke direct method 'void android.widget.Editor$SelectionModifierCursorController.initDrawables()' on a null object reference
at android.widget.Editor$SelectionModifierCursorController.access$300(Editor.java:6726)
at android.widget.Editor.getEmailPopupWindow(Editor.java:1476)
at android.widget.Editor.showEmailPopupWindow(Editor.java:1484)
at android.widget.Editor.handleEmailPopup(Editor.java:1463)
at android.widget.Editor.updateCursorPosition(Editor.java:2106)
at android.widget.TextView.getUpdatedHighlightPath(TextView.java:7824)
at android.widget.TextView.onDraw(TextView.java:8009)
at android.view.View.draw(View.java:21628)
at android.view.View.updateDisplayListIfDirty(View.java:20497)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4409)
at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4382)
at android.view.View.updateDisplayListIfDirty(View.java:20457)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:575)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:581)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:654)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:3713)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3508)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2845)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1800)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7792)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1031)
at android.view.Choreographer.doCallbacks(Choreographer.java:854)
at android.view.Choreographer.doFrame(Choreographer.java:789)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1016)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7560)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
We tried to fix it by adding following code
Code:
import { Platform, TextInput } from 'react-native';
const { Version } = Platform;
const brandsNeedingWorkaround = ['redmi', 'xiaomi', 'poco', 'pocophone'];
const needsXiaomiWorkaround = brandsNeedingWorkaround.includes(RNInfo.getBrand().toLowerCase())
&& Version > 28;
const InputTextWrapper = forwardRef(({ onFocus, caretHidden, ...others }, ref) => {
const [hackCaretHidden, setHackCaretHidden] = useState(needsXiaomiWorkaround ? true : caretHidden);
const handleFocus = useCallback(() => {
if (needsXiaomiWorkaround) {
setHackCaretHidden(caretHidden);
}
if (onFocus) onFocus();
}, [onFocus, caretHidden]);
return (
<TextInput
ref={ref}
{...others}
onFocus={handleFocus}
caretHidden={hackCaretHidden}
/>
);
});
But still it is not working. Please provide us a solution to fix this issue.
Follow up
Anyone facing the same issue and found the solution can help me to solve it.
Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
... LG 4X HD Jelly Bean Rom ported on the Nexus S !
This is a ROM who is partially fonctionnal. You cannot use this rom as main rom (some bugs...). Made a BACKUP of your current Rom before try this.
WORKING
RIL
Touchscreen
Internal SDCard
Vibrator
Sensors
GPS
NFC
NOT WORKING
Bluetooth
External SD
Wifi
Sound
Camera
INSTALLATION
Download the ROM
Reboot to recovery
Do nandroid backup
Wipe ALL
Install the ZIP
Boot and after 5 min remove the battery, put the battery and boot again
Enjoy !!!
I need someone who can help me to fix sound... and others bugs. Please send me an MP if you can help me.
Please for help see third post and this thread.
Don't forget to "Thanks" or to donate to me...... Thanks !
CHANGELOG
Version 0.1
Initial release
Here i post some logcat with related issue, if you know how to help me please send me a MP, or post in thread....
LOGCAT
-------------------------------------------------------------------------------------------------------------
WIFI
Code:
E/WifiStateMachine( 270): Failed to start supplicant!
E/WifiStateMachine( 270): Couldn't get getWiFiOffloadingIfaceIface :[/B]
E/WifiStateMachine( 270): useWiFiOffloading() : false
E/WifiStateMachine( 270): CONFIG_LGE_WLAN_PATH : true
I/WifiServiceExt( 270): WIFI_STATE_CHANGED_ACTION [4]
E/WifiServiceExt( 270): WifiManager.WIFI_STATE_UNKNOWN
E/WifiWatchdogStateMachine( 270): setupNetworkReceiver action : android.net.w
ifi.WIFI_STATE_CHANGED mWifiState : 4
E/WifiWatchdogStateMachine( 270): setupNetworkReceiver action : android.net.w
ifi.WIFI_STATE_CHANGED mWifiState : 4
D/QuickSettingsReceiverStation( 1806): Received: android.net.wifi.WIFI_STATE_CHA
NGED
V/LGMDMManager( 531): gAW(NULL) ret:true
I/OSP ( 1536): [OSPInitReceiver] onReceive intent: android.net.wifi.WIFI_STA
TE_CHANGED
I/OSP ( 1536): ====== WIFI_STATE_CHANGED_ACTION =======
I/OSP ( 1536): =====================================================
I/OSP ( 1536): [OSPInitReceiver] isUMSConnected: true
I/OSP ( 1536): [OSPInitReceiver] isWIFIChecked: false
I/OSP ( 1536): [OSPInitReceiver] isWIFIOn: false
I/OSP ( 1536): [OSPInitReceiver] isHotspotOn: false
I/OSP ( 1536): [OSPInitReceiver] isOSPServiceStarted: false
I/OSP ( 1536): =====================================================
E/COMPANION( 1549): [LGSW]false, [WIFIUI]false, [WIFI]false, [HOTSPOT]false, [OB
EXSERVICE]false
I tried some kernel change, to replace libhardware_legacy.so, /system/bin/wpa_cli and wpa_supplicant with CM10 one but not working...
-------------------------------------------------------------------------------------------------------------
[*]BLUETOOTH
Code:
I/BluetoothService( 270): enable... saveSetting = true
D/BluetoothAdapterStateMachine( 270): PowerOff process message: 1
V/LGMDMManager( 531): gAB(NULL) ret:2
D/BluetoothAdapterStateMachine( 270): Bluetooth state 10 -> 11
I/bluedroid( 270): bt_enable...
D/QuickSettingsReceiverStation( 1806): Received: android.bluetooth.adapter.actio
n.STATE_CHANGED
D/bluedroid( 270): bt_enable_ex: bt_power_state:0
D/bluedroid( 270): bt_enable_ex() BT off -> BT power on ...
I/bluedroid( 270): bt_start_daemons:
I/bluedroid( 270): Starting btld...
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
D/OppReceiver( 1519): Received action: android.bluetooth.adapter.action.STATE_CH
ANGED
E/BluetoothEventManager( 531): [BTUI] onReceive()... android.bluetooth.adapter.
action.STATE_CHANGED==> STATE_TURNING_ON
V/BluetoothPbapReceiver( 1519): PbapReceiver onReceive: android.bluetooth.adapte
r.action.STATE_CHANGED
V/LGMDMManager( 531): gAB(NULL) ret:2
D/LGPhoneStatusBarPolicy( 1806): ACTION_SIGNAL_STRENGTH_CHANGED!!!
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
D/LGPhoneStatusBarPolicy( 1806): ACTION_SIGNAL_STRENGTH_CHANGED!!!
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
D/PowerManagerService( 270): _ABS_ BR|ON 4 mLightValue4ABS= 5 mLightSensorPendi
ngValue=5.0 mLightSensorValue=-1.0 limit= 226
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
D/LGPhoneStatusBarPolicy( 1806): ACTION_SIGNAL_STRENGTH_CHANGED!!!
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
D/KeyguardViewMediator( 270): handleTimeout
I/bluedroid( 270): dtun_property_is_active: service.brcm.bt.srv_active = 0
I/bluedroid( 270): BTLD start retry count 20/20
E/bluedroid( 270): btld start timed out
I/bluedroid( 270): PROFILE:bt_enable: Turnaround time: 9.524378 seconds
D/BluetoothEventLoop( 270): Starting Event Loop thread[B]
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)[/B]
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
E/BluetoothEventLoop.cpp( 270): get_adapter_path: D-Bus error: org.freedesktop.
DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service f
iles)
I tried some smali edit, to replace /system/bin/brcm_patchram plus and bluetoothd with CM10 one and to replace all libs with CM10 but not working. If i replace libbluedroid.so the phone does not want to boot
-------------------------------------------------------------------------------------------------------------
SDCARD
If think the rom need MTP kernel, but if i flash MTP kernel i have a blackscreen but the phone boot (I can see this in logcat)
-------------------------------------------------------------------------------------------------------------
CAMERA
Code:
V/MediaPlayer( 1772): decode(44, 508348, 9264)
E/SEC_OMX_CORE( 1786): SEC_OMX_Init : OMX_ErrorInsufficientResources
V/MPEG2TSExtractor( 1786): Unrecognised TS Content
I/NuCachedSource2( 1786): ERROR_END_OF_STREAM
E/WVMExtractor( 1786): Failed to open libwvm.so
V/SpeedControl( 1786): [SC] - original sample rate : << 44100 >>!!!
D/SurfaceFlinger( 94): createSurface for (1 x 1), name=slide.cameraZoom/slide.
cameraZoom.CameraZoomActivity
V/PhoneStatusBar( 517): setLightsOn(true)
D/SurfaceFlinger( 94): createSurface for (800 x 480), name=SurfaceView
I/ActivityManager( 285): Displayed slide.cameraZoom/.CameraZoomActivity: +3s535
ms
W/IInputConnectionWrapper( 663): showStatusIcon on inactive InputConnection
D/SurfaceFlinger( 94): createSurface for (960 x 800), name=BlackSurface
D/SurfaceFlinger( 94): createSurface for (480 x 1600), name=BlackSurface
D/SurfaceFlinger( 94): createSurface for (960 x 800), name=BlackSurface
D/SurfaceFlinger( 94): createSurface for (480 x 1600), name=BlackSurface
I tried to copy some libs files/edit smali but did not work...
excelent!
Nexus S will not die! :victory:
_hito_ said:
Nexus S will not die! :victory:
Click to expand...
Click to collapse
I love my Nexus S, so even if I do not use it anymore i'm kepping the work on !
Re: [PORT][ROM] LG 4X JB Rom for Nexus S (27/03/2013)
Thanks an extremely high amount for this
Me Gusta!
I have tried everything to make my NS look like something you just did :good:
I just had a sweet heart attack to see the port....keep up the good work man....i hope this turns out even more sweeter.... :laugh:
darkmentor25 said:
I have tried everything to make my NS look like something you just did :good:
I just had a sweet heart attack to see the port....keep up the good work man....i hope this turns out even more sweeter.... :laugh:
Click to expand...
Click to collapse
Hihi
The ROM is online you can download and test it !!!
EDIT: Please Tip it!! I need help to finish this port...
Great
---------- Post added at 08:58 AM ---------- Previous post was at 08:39 AM ----------
Hope this rom is cared and improved
Oh My GOD !!!
This ROM is awesome . . .
Please fix bugs .
Wish I had some knowledge on Roms..
Me Gusta!
I fixed auto-brightness for next build !
GalaxyUser said:
I fixed auto-brightness for next build !
Click to expand...
Click to collapse
fix the wi-fi and the camera and then may i have my new daily drive
Sensitivity said:
fix the wi-fi and the camera and then may i have my new daily drive
Click to expand...
Click to collapse
Please click on "Tip" button... I can not resolve theses issues it's so hard if i'm solo...
See this thread: http://forum.xda-developers.com/showthread.php?p=39681791
Nice job! Thanks for your work.
woorim98 said:
Nice job! Thanks for your work.
Click to expand...
Click to collapse
Woorim! You've got some porting experience! Maybe you could help
But I don't have nexus s anymore.
Sent from my HTC Sensation Z710e using xda app-developers app
woorim98 said:
But I don't have nexus s anymore.
Sent from my HTC Sensation Z710e using xda app-developers app
Click to expand...
Click to collapse
Well that sucks :$ haha
Me Gusta!
+1 :good:
Today, i will share the dark theme called "dark whoami"...Ofcourse this theme have a lot of bugs. so please report the bugs here and give me some suggestions
NB:
*Please forgive me if my theme has expired
**If you got error like can't install or fc please give me LOGCAT
Requirement :
Stock framework cm12/cm12.1
Latest build cm12/cm12.1
Changelog :
v1.0
initial release
v1.1
Improvement material dark
Fixed some background and text
Change some drawables
New font UI
etc
v1.2
Fixed issue can't install, reported by @Enoalife
Fixed QS tile in settings
Fixed music theme (eleven)
Themed sony apps (music, album, video)
Now you can't see material light
etc
Themed apps:
Almost all system apps
Root explorer
Greenify
Xperia Home
soon
Bug :
Greenify
tell me
Installation :
Just install as normal apk
Reboot after update
Enjoy
Screenshots and Download:
See second post
Credit:
@mikeioannina and @Mardon for cm12.1 build :good:
@nicholaschum for awesome guide and help :good:
@Ambor for xperia themes port :good:
@gamzekal for guide and help :good:
@gianton for awesome font :good:
all users for test and report the issue :good:
Please pm me if i forgot
Simply press thank's button :good:
Screenshots and Download
Screenshots
v1.0
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
v1.1
v1.2
Download
v1.0 Click Here
v1.1 Click Here
v1.2 Click Here
It's failing to install
Sent from my Nexus 6 using XDA Free mobile app
bigstunta101 said:
It's failing to install
Sent from my Nexus 6 using XDA Free mobile app
Click to expand...
Click to collapse
Give me a logcat...
Nice work:good:
Can't install...temasek build , LG G2.
Envoyé de mon LG-D802 en utilisant Tapatalk
Updated
V1.1 Updated
Changelog :
Improvement material dark
Fixed some background and text
Change some drawables
New font UI
etc
Important note !!!
You must read the first post before download
Failed to install cm-12.1-20150825-NIGHTLY (Nexus 5)
Code:
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
D/Finsky ( 4043): [1] DailyHygiene.goMakeHygieneIfDirty: No need to run daily h
ygiene.
I/ActivityManager( 687): Start proc 4079:com.google.android.gms:car/u0a22 for s
ervice com.google.android.gms/.car.CarService
W/Settings( 4043): Setting download_manager_max_bytes_over_mobile has moved from
android.provider.Settings.Secure to android.provider.Settings.Global.
W/Settings( 4043): Setting download_manager_recommended_max_bytes_over_mobile ha
s moved from android.provider.Settings.Secure to android.provider.Settings.Globa
l.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getCurrentAccount: No account configured on thi
s device.
W/Finsky ( 4043): [1] FinskyApp.getDfeApi: No account configured on this device
.
D/Finsky ( 4043): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 1
D/Finsky ( 4043): [1] WorkerTask.onPreExecute: Verification Requested for id =
1, data=file:///storage/emulated/0/DarkWhoamI_v1.1.apk flags=16 fromVerification
Activity=false
W/ResourcesManager( 4079): Asset path '/system/framework/com.android.media.remot
edisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 4079): Asset path '/system/framework/com.android.location.pr
ovider.jar' does not exist or contains no resources.
I/MultiDex( 4079): VM with version 2.1.0 has multidex support
I/MultiDex( 4079): install
I/MultiDex( 4079): VM has multidex support, MultiDex support library is disabled
.
V/JNIHelp ( 4079): Registering com/google/android/gms/org/conscrypt/NativeCrypto
's 227 native methods...
D/Finsky ( 4043): [1] GmsCoreHelper.cleanupNlp: result=false type=4
D/Finsky ( 4043): [1] RestoreTracker.stopServiceIfDone: Restore complete with 0
success and 0 failed.
I/ProviderInstaller( 4079): Installed default security provider GmsCore_OpenSSL
D/GCM ( 1477): GcmService start Intent { act=com.google.android.gms.INITIALI
ZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmServic
e } com.google.android.gms.INITIALIZE
D/AuthorizationBluetoothService( 1477): Received GmsCore event: Intent { act=com
.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.googl
e.android.gms/.auth.be.proximity.authorization.bt.AuthorizationBluetoothService$
AutoStarter }.
V/GmsCoreStatsServiceLauncher( 1835): Received broadcast intent Intent { act=com
.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.googl
e.android.gms/.common.stats.GmsCoreStatsServiceLauncher }
D/WearableService( 1933): callingUid 10022, callindPid: 1933
E/MDM ( 1413): [144] b.run: Couldn't connect to Google API client: Connectio
nResult{statusCode=API_UNAVAILABLE, resolution=null}
D/LocationInitializer( 1835): Restart initialization of location
I/Timeline( 687): Timeline: Activity_windows_visible id: ActivityRecord{160be2c
1 u0 com.android.packageinstaller/.InstallAppProgress t17} time:386239
V/Finsky ( 4043): [1] GearheadStateMonitor.onReady: sIsProjecting:false
I/qtaguid ( 4043): Failed write_ctrl(u 36) res=-1 errno=22
I/qtaguid ( 4043): Untagging socket 36 failed errno=-22
W/NetworkManagementSocketTagger( 4043): untagSocket(36) failed with errno -22
D/Finsky ( 4043): [1] 1.onResponse: Verification id=1 response=0
D/Finsky ( 4043): [1] PackageVerificationReceiver.onReceive: Verification reque
sted, id = 1
D/DefContainer( 3537): Copying /storage/emulated/0/DarkWhoamI_v1.1.apk to base.a
pk
I/auditd ( 4122): Starting up
E/auditd ( 4122): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4122): Exiting
D/audio_hw_primary( 197): disable_audio_route: reset and update mixer path: low
-latency-playback
D/audio_hw_primary( 197): disable_snd_device: snd_device(2: speaker)
D/PackageManager( 687): Renaming /data/app/vmdl500165273.tmp to /data/app/com.a
fah_me.dark.whoami-1
V/BackupManagerService( 687): restoreAtInstall pkg=com.afah_me.dark.whoami toke
n=2 restoreSet=0
V/BackupManagerService( 687): Finishing install immediately
W/Settings( 687): Setting install_non_market_apps has moved from android.provid
er.Settings.Global to android.provider.Settings.Secure, returning read-only valu
e.
I/InputReader( 687): Reconfiguring input devices. changes=0x00000020
D/BackupManagerService( 687): Received broadcast Intent { act=android.intent.ac
tion.PACKAGE_ADDED dat=package:com.afah_me.dark.whoami flg=0x4000010 (has extras
) }
W/BackupManagerService( 687): Removing schedule queue dupe of com.afah_me.dark.
whoami
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/icons/ out_restable=/data/resource-cache/com.afah_me.dark.w
hoami/icons uid=50070, pkgId=98, min_sdk_version=21, common_res_path=
D/Documents( 3712): Update found 6 roots in 63ms
E/cutils-trace( 4128): Error opening trace file: No such file or directory (2)
W/ResourcesManager( 1112): Asset path '/system/framework/com.google.android.medi
a.effects.jar' does not exist or contains no resources.
I/Launcher( 1112): Deferring update until onResume
I/art ( 687): Explicit concurrent mark sweep GC freed 122434(6MB) AllocSpac
e objects, 22(7MB) LOS objects, 32% free, 32MB/48MB, paused 79.554ms total 538.9
48ms
I/ActivityManager( 687): Start proc 4135:com.google.android.partnersetup/u0a25
for broadcast com.google.android.partnersetup/.RlzPingBroadcastReceiver
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.games from APK com
.google.android.gms
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.vision from APK co
m.google.android.gms
D/Vision ( 1835): Received broadcast Intent { act=android.intent.action.PACKAGE
_ADDED dat=package:com.afah_me.dark.whoami flg=0x4000010 cmp=com.google.android.
gms/.vision.DependencyBroadcastReceiverProxy (has extras) }
D/PackageBroadcastService( 1835): Received broadcast action=android.intent.actio
n.PACKAGE_ADDED and uri=com.afah_me.dark.whoami
D/Vision ( 1835): Failed to find package metadata for com.afah_me.dark.whoami
D/Vision ( 1835): No vision deps
I/ConfigService( 1477): onCreate
I/ConfigFetchService( 1835): onStartCommand Intent { act=android.intent.action.P
ACKAGE_ADDED dat=package:com.afah_me.dark.whoami cmp=com.google.android.gms/.con
fig.ConfigFetchService (has extras) }
I/ConfigFetchService( 1835): launchTask
I/ConfigFetchService( 1835): service connected
I/PeopleContactsSync( 1835): CP2 sync disabled
D/ConfigFetchService( 1835): ConfigApi connection successful.
V/ConfigFetchTask( 1835): ConfigFetchTask getDeviceDataVersionInfo(): ABFEt1XZ_s
LyAHRryZH2gS3VcNRc16ABP_sUsHwq2H_XUgOgq3hjuIiFHo9qgYEXHtGccGbpQLSdl4_OLMiSNUnylj
RlzvkqbxN7gpdRqCbNZzpw5jD-Ft8m-R4Pkc4B18LppXEEn7ByASg0oJbY6C6WVdCOCkmy8M79QL3_B9
GOso_g7TJvMZX-7ldsYEdcidxU0V1yjPXk6MdHduN8voL4D5p9qWQ4Y6fNNoPjgHwT1jynGWYzRRQ2B6
U8zb_b8sh_yS23ZLluCg8oRDywR8RXAoFt8f4ugnDwyveIkoH-d5Ixh9W6dUtltQqd0aZVX0ZxSSK4sx
wE8P_1YDAPINSnWKu1WK-sPKsVTGyMTMZ8G6KzHgUkK84
I/UpdateIcingCorporaServi( 2643): Updating corpora: APPS=com.afah_me.dark.whoami
, CONTACTS=MAYBE
I/GoogleURLConnFactory( 1835): Using platform SSLCertificateSocketFactory
I/UpdateIcingCorporaServi( 2643): UpdateCorporaTask done [took 26 ms] updated ap
ps [took 26 ms]
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/common/ out_restable=/data/resource-cache/com.afah
_me.dark.whoami/common uid=50070, pkgId=95, min_sdk_version=21, common_res_path=
E/cutils-trace( 4167): Error opening trace file: No such file or directory (2)
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.cellbroadcastreceiver/ out_restable=/d
ata/resource-cache/com.afah_me.dark.whoami/com.android.cellbroadcastreceiver uid
=50070, pkgId=97, min_sdk_version=21, common_res_path=/data/resource-cache/com.a
fah_me.dark.whoami/common/resources.apk
E/cutils-trace( 4168): Error opening trace file: No such file or directory (2)
D/installd( 198): idmap target_apk=/system/priv-app/CellBroadcastReceiver/CellB
roadcastReceiver.apk overlay_apk=/data/app/com.afah_me.dark.whoami-1/base.apk ca
che_path=/data/resource-cache/com.afah_me.dark.whoami/com.android.cellbroadcastr
eceiver uid=50005
I/ConfigFetchService( 1835): fetch service done; releasing wakelock
I/ConfigFetchService( 1835): stopping self
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.gallery3d/ out_restable=/data/resource
-cache/com.afah_me.dark.whoami/com.android.gallery3d uid=50070, pkgId=97, min_sd
k_version=21, common_res_path=/data/resource-cache/com.afah_me.dark.whoami/commo
n/resources.apk
E/cutils-trace( 4170): Error opening trace file: No such file or directory (2)
D/installd( 198): idmap target_apk=/system/app/Gallery2/Gallery2.apk overlay_ap
k=/data/app/com.afah_me.dark.whoami-1/base.apk cache_path=/data/resource-cache/c
om.afah_me.dark.whoami/com.android.gallery3d uid=50044
D/installd( 198): aapt source_apk=/data/app/com.afah_me.dark.whoami-1/base.apk
internal_path=assets/overlays/com.android.calendar/ out_restable=/data/resource-
cache/com.afah_me.dark.whoami/com.android.calendar uid=50070, pkgId=97, min_sdk_
version=21, common_res_path=/data/resource-cache/com.afah_me.dark.whoami/common/
resources.apk
E/cutils-trace( 4172): Error opening trace file: No such file or directory (2)
E/InstallTheme( 198): Failed to generate resource table for split ''
E/InstallTheme( 198): assets/overlays/com.android.calendar/res/values/drawables
.xml:4: error: Error: Resource is not public. (at 'list_primary_holo' with value
'@android:color/background_material_dark').
E/InstallTheme( 198):
E/installd( 198): aapt failed, status=0x0100
E/PackageManager( 687): Unable to process theme, uninstalling com.afah_me.dark.
whoami
E/PackageManager( 687): com.android.server.pm.PackageManagerService$AaptExcepti
on: Failed to run aapt
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesWithAapt(PackageManagerService.java:7071)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResources(PackageManagerService.java:6987)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesIfNeeded(PackageManagerService.java:6976)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.c
ompileResourcesAndIdmapIfNeeded(PackageManagerService.java:6959)
E/PackageManager( 687): at com.android.server.pm.PackageManagerService.p
rocessThemeResources(PackageManagerService.java:14691)
E/PackageManager( 687): at android.app.ApplicationPackageManager.process
ThemeResources(ApplicationPackageManager.java:1859)
E/PackageManager( 687): at com.android.server.ThemeService$ResourceProce
ssingHandler.handleMessage(ThemeService.java:197)
E/PackageManager( 687): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
E/PackageManager( 687): at android.os.Looper.loop(Looper.java:135)
E/PackageManager( 687): at android.os.HandlerThread.run(HandlerThread.ja
va:61)
I/ActivityManager( 687): Force stopping com.afah_me.dark.whoami appid=10070 use
r=-1: uninstall pkg
I/ActivityManager( 687): Force stopping com.afah_me.dark.whoami appid=10070 use
r=0: pkg removed
W/GeofencerStateMachine( 1413): Ignoring removeGeofence because network location
is disabled.
D/BackupManagerService( 687): Received broadcast Intent { act=android.intent.ac
tion.PACKAGE_REMOVED dat=package:com.afah_me.dark.whoami flg=0x4000010 (has extr
as) }
D/JobSchedulerService( 687): Receieved: android.intent.action.PACKAGE_REMOVED
I/InputReader( 687): Reconfiguring input devices. changes=0x00000020
I/art ( 3586): Explicit concurrent mark sweep GC freed 1563(112KB) AllocSpac
e objects, 0(0B) LOS objects, 24% free, 16MB/21MB, paused 212us total 18.477ms
I/Launcher( 1112): Deferring update until onResume
I/LatinIME:LogUtils( 965): Dictionary info: dictionary = ? ; version = 26 ; dat
e = 1351062238
D/Documents( 3712): Update found 6 roots in 48ms
D/VoicemailCleanupService( 2555): Cleaning up data for package: com.afah_me.dark
.whoami
I/Launcher( 1112): Deferring update until onResume
W/Launcher( 1112): setApplicationContext called twice! old=com.android.launcher3
[email protected] [email protected]
0c07
E/NetworkScheduler.SchedulerReceiver( 1477): Invalid parameter app
E/NetworkScheduler.SchedulerReceiver( 1477): Invalid package name : Perhaps you
didn't include a PendingIntent in the extras?
D/PackageBroadcastService( 1835): Received broadcast action=android.intent.actio
n.PACKAGE_REMOVED and uri=com.afah_me.dark.whoami
D/ChimeraCfgMgr( 1835): Loading module com.google.android.gms.games from APK com
.google.android.gms
D/AccountUtils( 1835): Clearing selected account for com.afah_me.dark.whoami
I/LocationSettingsChecker( 1835): Removing dialog suppression flag for package c
om.afah_me.dark.whoami
I/ConfigFetchService( 1835): onStartCommand Intent { act=android.intent.action.P
ACKAGE_REMOVED dat=package:com.afah_me.dark.whoami cmp=com.google.android.gms/.c
onfig.ConfigFetchService (has extras) }
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/metrics.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/metrics.db: 2
D/gH_MetricsDatabase( 1835): 0 metrics were deleted when clearing package com.af
ah_me.dark.whoami.
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/metrics.db: 1
I/ConfigFetchService( 1835): service connected
I/PeopleContactsSync( 1835): CP2 sync disabled
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/help_responses.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/help_responses.db: 2
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/help_responses.db: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Open SQLiteDatabase: /data/data/com.goog
le.android.gms/databases/auto_complete_suggestions.db, release reference: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Acquire reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/auto_complete_suggestions.db: 2
D/GOOGLEHELP_CompatibleDatabase( 1835): Release reference of SQLiteDatabase: /da
ta/data/com.google.android.gms/databases/auto_complete_suggestions.db: 1
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/metrics.db, release reference: 0
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/help_responses.db, release reference: 0
D/GOOGLEHELP_CompatibleDatabase( 1835): Close SQLiteDatabase: /data/data/com.goo
gle.android.gms/databases/auto_complete_suggestions.db, release reference: 0
I/Icing ( 1835): doRemovePackageData com.afah_me.dark.whoami
W/ContextImpl( 3686): Calling a method in the system process without a qualified
user: android.app.ContextImpl.startService:1721 android.content.ContextWrapper.
startService:522 android.content.ContextWrapper.startService:522 com.android.key
chain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleRe
ceiver:2641
I/UpdateIcingCorporaServi( 2643): Updating corpora: APPS=com.afah_me.dark.whoami
, CONTACTS=MAYBE
I/UpdateIcingCorporaServi( 2643): UpdateCorporaTask done [took 21 ms] updated ap
ps [took 21 ms]
I/art ( 687): Explicit concurrent mark sweep GC freed 17743(1297KB) AllocSp
ace objects, 14(5MB) LOS objects, 33% free, 27MB/41MB, paused 1.428ms total 173.
967ms
W/PackageManager( 687): Couldn't remove dex file for package: at location /dat
a/app/com.afah_me.dark.whoami-1/base.apk, retcode=-1
E/org.cyanogenmod.themes.provider.AppReceiver( 3586): Unable to update theme com
.afah_me.dark.whoami, result=-400
I/ActivityManager( 687): Killing 3733:com.android.externalstorage/u0a10 (adj 15
): empty #17
V/ActivityManager( 687): killProcessGroupAsync took 41 ms for PID 3733 on threa
d 17
I/auditd ( 4200): Starting up
E/auditd ( 4200): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4200): Exiting
I/ConfigService( 1477): onDestroy
I/auditd ( 4202): Starting up
E/auditd ( 4202): Failed on audit_set_pid with error: Protocol not supported
I/auditd ( 4202): Exiting
^C
E:\Nexus5\Stock>
Fast Update
Changelog:
v1.2
Fixed issue can't install by @Enoalife
Fixed QS tile in settings
Fixed music theme (eleven)
Themed sony apps (music, album, video)
Now you can't see material light
etc
NB:
If not themed all please reboot or soft reboot
If still failed to install please give me logcat
Hello there!
I'm building an app but whenever it comes to the AlertDialog .show() it chrashes. I've reserached but couldn't find any solution.
Most of them were got their problem fixed by changing Context on
AlertDialog.Builder example = new AlertDialog.Builder(Context)
to
AlertDialog.Builder example = new AlertDialog.Builder(MyActivity.this);
But that's not my case, I've beeing using MyActivity.this all long and still crashes.
Here's my code:
ublic class MainActivity extends AppCompatActivity {
Button btMudaTela;
final Funcoes funcao = new Funcoes();
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button btMudaTela = (Button) findViewById(R.id.btMudaTela);
//Ao clicar no botão outra activity será aberta (ActivityCadastro)
btMudaTela.setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View v) {
AlertDialog.Builder adb = new AlertDialog.Builder(MainActivity.this);
adb.setTitle("teste");
adb.setMessage("ok");
adb.show();
funcao.mudaActivity(MainActivity.this, ActivityCadastro.class);
finish();
}
});
}
}
And here's my Logcat:
06-23 07:41:42.113 3303 3303 E AndroidRuntime: Process: com.example.teste.projetofinal, PID: 3303
06-23 07:41:42.113 3303 3303 E AndroidRuntime: at com.example.teste.projetofinal.MainActivity$1.onClick(MainActivity.java:46)
06-23 07:41:42.123 954 1367 W ActivityManager: Force finishing activity com.example.teste.projetofinal/.MainActivity
06-23 07:41:43.334 954 1602 I ActivityManager: Process com.example.teste.projetofinal (pid 3303) (adj 9) has died.
06-23 07:41:43.334 954 1454 I WindowState: WIN DEATH: Window{444ca450 u0 com.example.teste.projetofinal/com.example.teste.projetofinal.MainActivity}
06-23 07:50:39.406 6806 6806 W InstallAppProgress: Replacing package:com.example.teste.projetofinal
06-23 07:50:42.219 5389 5389 I Finsky : [1] com.google.android.finsky.verifier.impl.br.c(104): Verification complete: id=0, package_name=com.example.teste.projetofinal
06-23 07:50:42.960 954 1046 I PackageManager: Package com.example.teste.projetofinal codePath changed from /data/app/com.example.teste.projetofinal-19.apk to /data/app/com.example.teste.projetofinal-20.apk; Retaining data and using new
06-23 07:50:43.921 954 1046 W PackageManager: Code path for pkg : com.example.teste.projetofinal changing from /data/app/com.example.teste.projetofinal-19.apk to /data/app/com.example.teste.projetofinal-20.apk
06-23 07:50:43.921 954 1046 W PackageManager: Resource path for pkg : com.example.teste.projetofinal changing from /data/app/com.example.teste.projetofinal-19.apk to /data/app/com.example.teste.projetofinal-20.apk
06-23 07:50:45.592 954 1036 I CrashAnrDetector: onPackageUpdateFinished : com.example.teste.projetofinal
06-23 07:50:46.073 6987 6987 E dalvikvm: >>>>> com.example.teste.projetofinal [ userId:0 | appId:10200 ]
06-23 07:50:47.444 6987 6987 E AndroidRuntime: Process: com.example.teste.projetofinal, PID: 6987
06-23 07:50:47.444 6987 6987 E AndroidRuntime: at com.example.teste.projetofinal.MainActivity$1.onClick(MainActivity.java:40)
06-23 07:50:47.444 954 1602 W ActivityManager: Force finishing activity com.example.teste.projetofinal/.MainActivity
06-23 07:50:48.806 954 1602 I WindowState: WIN DEATH: Window{433e3670 u0 com.example.teste.projetofinal/com.example.teste.projetofinal.MainActivity}
06-23 07:50:48.836 954 1545 I ActivityManager: Process com.example.teste.projetofinal (pid 6987) (adj 9) has died.
06-23 07:50:51.188 3939 3939 E SPPClientService: [PackageInfoChangeReceiver] [handlePkgRemovedEvent] PackageName : com.example.teste.projetofinal, true, false
06-23 07:50:54.531 5389 5389 I Finsky : [1] com.google.android.finsky.externalreferrer.d.run(9): Package state data is missing for com.example.teste.projetofinal
06-23 07:50:55.792 3498 7271 I FontsPackageChangeOp: Package com.example.teste.projetofinal has no metadata
I've found solution
Yeah!!!! After 2 days of digging on the Internet I finally found solution here:
https://stackoverflow.com/questions...der-when-android-suport-library-updated-to-24
You need to import this for your AlertDialog:
Code:
import android.app.AlertDialog;
instead of this:
Code:
import android.support.v7.app.AlertDialog;
I am pretty new to android and am trying to understand how to parse JSON data. How would I for example acces the data int the "age" key ?
This is the JSON:
Code:
{
"images": [
{
"status": "Complete",
"width": 475,
"height": 475,
"file": "content_5a28298675c96",
"faces": [
{
"topLeftX": 109,
"topLeftY": 107,
"height": 241,
"rightEyeCenterY": 167,
"rightEyeCenterX": 179,
"pitch": -11,
"quality": 0.75184,
"confidence": 0.99938,
"chinTipX": 229,
"yaw": -5,
"chinTipY": 369,
"eyeDistance": 109,
"width": 241,
"leftEyeCenterY": 167,
"leftEyeCenterX": 288,
"attributes": {
"lips": "Apart",
"asian": 0.00006,
"gender": {
"femaleConfidence": 0.00001,
"type": "M",
"maleConfidence": 0.99999
},
"age": 34,
"hispanic": 0.00023,
"other": 0.00034,
"black": 0.99936,
"white": 0,
"glasses": "Eye"
},
"face_id": 1,
"roll": 1
}
]
}
],
}
I want to make a request to a web page every 2 seconds. I found a tutorial on google about this and I tried to make an example code but unfortunately it doesn't work ....
When I try to make a simple request without loop then it works perfectly but when I try with loop then it already writes error ....
Here is the code I try to run:
public void run1(){
try {
while(true) {
Log.d(TAG, "test");
RequestQueue queue = Volley.newRequestQueue(this);
String url = "xxxx";
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@override
public void onResponse(String response) {
Log.d(TAG, "=============response=============");
//check response its is ok
if(response.length() > 0){
textView.setText( response);
}else{
Log.d(TAG, "NU am mesaj de trimis!");
}
}
}, new Response.ErrorListener() {
@override
public void onErrorResponse(VolleyError error) {
textView.setText("IMI PARE RAU CEVA NU A MERS!!");
}
});
queue.add(stringRequest);
Thread.sleep(2000); //1000 milliseconds is one second.
}
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
number = "0770162059";
message = "test";
send = findViewById(R.id.send);
final TextView textView = (TextView) findViewById(R.id.text);
send.setEnabled(false);
if(checkPermission(Manifest.permission.SEND_SMS)){
send.setEnabled(true);
}else{
ActivityCompat.requestPermissions(this,
new String[]{Manifest.permission.SEND_SMS}, SEND_SMS_PERMISSION_REQUEST_CODE);
}
if(checkPermission(Manifest.permission.INTERNET)){
Log.d(TAG, "======Internet permission ready=======");
}else{
ActivityCompat.requestPermissions(this,
new String[]{Manifest.permission.INTERNET}, INTERNET_PERMISSION_REQUEST_CODE);
}
run1();
}
And the error of what I think it shows in LogCat is:
02-02 11:09:26.763 6563-6563/com.example.send_sm_test D/MainActivity: test 02-02 11:09:26.763 6563-6590/com.example.send_sm_test I/qtaguid: Tagging socket 49 with tag 56062fc900000000(-704237623) for uid -1 failed errno=-2 02-02 11:09:26.763 6563-6590/com.example.send_sm_test I/NetworkManagementSocketTagger: tagSocketFd(49, -704237623, -1) failed with errno-2 02-02 11:09:26.763 6563-6590/com.example.send_sm_test I/qtaguid: Tagging socket 50 with tag 56062fc900000000(-704237623) for uid -1 failed errno=-2 02-02 11:09:26.763 6563-6590/com.example.send_sm_test I/NetworkManagementSocketTagger: tagSocketFd(50, -704237623, -1) failed with errno-2 02-02 11:09:26.793 6563-6567/com.example.send_sm_test D/dalvikvm: GC_CONCURRENT freed 361K, 4% free 18869K/19463K, paused 1ms+1ms 02-02 11:09:26.833 6563-6590/com.example.send_sm_test I/qtaguid: Untagging socket 50 failed errno=-2 02-02 11:09:26.833 6563-6590/com.example.send_sm_test W/NetworkManagementSocketTagger: untagSocket(50) failed with errno -2
UPDATE:
Code:
public void run1(){
try {
while(true) {
Log.d(TAG, "test");
RequestQueue queue = Volley.newRequestQueue(this);
String url = "xxx";
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
[user=439709]@override[/user]
public void onResponse(String response) {
Log.d(TAG, "=============response=============");
//check response its is ok
if(response.length() > 0){
textView.setText( response);
}else{
Log.d(TAG, "NU am mesaj de trimis!");
}
}
}, new Response.ErrorListener() {
[user=439709]@override[/user]
public void onErrorResponse(VolleyError error) {
textView.setText("IMI PARE RAU CEVA NU A MERS!!");
}
});
stringRequest.setTag(RequestTAG);
queue.add(stringRequest);
if(queue != null){
queue.cancelAll(RequestTAG);
}
Thread.sleep(9000); //1000 milliseconds is one second.
}
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
I introduced TAG to close each previous connection but it seems that this solved only the errors that were created but did not solve my request to the site. Next, the request submission does not work, but it does not cause any error ...