lazy-ninja / android-lockpattern

Automatically exported from code.google.com/p/android-lockpattern
Apache License 2.0
0 stars 0 forks source link

InflateException #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Hai,

How are you ?

I am getting a lot of crash reports coming from lock pattern lib, i am using 
latest version from the lib,

Here is the stacktrace,

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.lock.appslocker/com.lock.appslocker.activities.lock.LockPatter
nActivity}: android.view.InflateException: Binary XML file line #18: Error 
inflating class <unknown>
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2263)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2313)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5212)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #18: Error 
inflating class <unknown>
at android.view.LayoutInflater.createView(LayoutInflater.java:620)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:816)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:745)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:294
)
at android.app.Activity.setContentView(Activity.java:1929)
at 
android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.j
ava:216)
at 
android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActi
vityDelegateICS.java:110)
at 
android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:7
6)
at 
com.lock.appslocker.activities.lock.LockPatternActivity.initContentView(LockPatt
ernActivity.java:365)
at 
com.lock.appslocker.activities.lock.LockPatternActivity.onCreate(LockPatternActi
vity.java:288)
at android.app.Activity.performCreate(Activity.java:5240)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2227)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
... 27 more
Caused by: java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:445)
at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:475)
at 
group.pals.android.lib.ui.lockpattern.widget.LockPatternView.getBitmapFor(LockPa
tternView.java:319)
at 
group.pals.android.lib.ui.lockpattern.widget.LockPatternView.<init>(LockPatternV
iew.java:303)
at 
group.pals.android.lib.ui.lockpattern.widget.LockPatternView_v14.<init>(LockPatt
ernView_v14.java:42)
... 30 more

Could you help please ?

Regards

Original issue reported on code.google.com by Eng.Omar...@gmail.com on 15 Jan 2015 at 10:46

GoogleCodeExporter commented 9 years ago
I'm sorry for the bug.

Do you use custom bitmaps for the library? I have contacted you via e-mail. You 
can send me update here or via e-mail.

Sincerely,
Hai

Original comment by haibison...@gmail.com on 15 Jan 2015 at 1:30

GoogleCodeExporter commented 9 years ago
hi haibison
       i got lot of crashes while inflating patternView
could u please help??

Original comment by naramset...@gmail.com on 28 Jan 2015 at 5:52

GoogleCodeExporter commented 9 years ago
naramset...@gmail.com,

Hi,

I think QuickUse could help you start. And please attach logcat here, I'll try 
to help.

Original comment by haibison...@gmail.com on 28 Jan 2015 at 5:56

GoogleCodeExporter commented 9 years ago
hi,
 Thanks for your response.Here i am attaching log file

On Wed, Jan 28, 2015 at 11:26 AM, <android-lockpattern@googlecode.com>
wrote:

Original comment by naramset...@gmail.com on 28 Jan 2015 at 6:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
naramset...@gmail.com,

Please save our time (yours, mine, and the people's who starred this issue) by 
describing your issues in details.

http://mattgemmell.com/what-have-you-tried/

Original comment by haibison...@gmail.com on 28 Jan 2015 at 6:35

GoogleCodeExporter commented 9 years ago
for me upgrading to version 3.2 solved this problem, Thanks Hai for your 
continuous support.

Original comment by Eng.Omar...@gmail.com on 28 Jan 2015 at 8:01

GoogleCodeExporter commented 9 years ago
Omar,

Thanks for your update. I'm glad it solved the issue.

Have a nice day  :-)

Hai

Original comment by haibison...@gmail.com on 28 Jan 2015 at 8:05

GoogleCodeExporter commented 9 years ago
Thanks Hai,
You can check the new version in Google play.
Thanks for your fantastic library.

Original comment by Eng.Omar...@gmail.com on 28 Jan 2015 at 8:19