ads

Affichage des articles dont le libellé est already. Afficher tous les articles
Affichage des articles dont le libellé est already. Afficher tous les articles

samedi 26 septembre 2015

already problems on new device



I got my zenfone 2 yestertday but i found out today it is a CN/TW device flashed to WW. The device has aleady been rooted however i recieved an notification to update to the latest firmware

What should i do to avoid the device from being bricked or reverting back to a CN/TW state?



vendredi 25 septembre 2015

The specified child already has a parent. You must call removeView() on the child's..



Please find my implementation of getView() in my adapter class which extends BaseAdapter().

public View getView(int position, View convertView, ViewGroup parent) {

View vi = convertView;
ViewHolder holder = null;
tempValues=null;

if(position <ArrayListObj.size()){
tempValues = (ObjectCLASS) ArrayListObj.get(position);

if (convertView == null) {
holder = new ViewHolder();
holder.position = position;
if(tempValues.getType()==EventListItem.Cond1 || tempValues.getType()==EventListItem.Cond2){
if(tempValues.getType()==EventListItem.Cond1)
vi = inflater.inflate(R.layoutM1, null);
else if(tempValues.getType()==EventListItem.Cond2)
vi = inflater.inflate(R.layoutM2, null);

//dynamic content is getting added here

middleContentTopRapperView = new LinearLayout(mContext);
middleContentTopRapperView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
middleContentTopRapperView.setOrientation(LinearLa yout.VERTICAL);

//static content from xml layout added here

holder.t1 = (TextView) vi.findViewById(R.id.t1);
holder.m1 = (TextView) vi.findViewById(R.id.m1);
holder.rightView = (View) vi.findViewById(R.id.rightView);//one of(right child view) child of parentRowItemRelativeLayout
holder.r1 = (TextView) vi.findViewById(R.id.r1);
holder.lh1 = (TextView) vi.findViewById(R.id.lh1);
holder.im1 = (ImageView) vi.findViewById(R.id.im1);
holder.li1 = (LinearLayout) vi.findViewById(R.id.li1);

// extracting the parent layouts from the xml to add the last child dynamically
holder.parentRowItemRelativeLayout = (RelativeLayout) vi.findViewById(R.id.parentRowItemRelativeLayout);// row item parent

holder.topRootLayout = (LinearLayout) vi.findViewById(R.id.topRootLayout); // root of the xml
holder.leftView = (RelativeLayout) vi.findViewById(R.id.leftView);// one of(left child view) child of parentRowItemRelativeLayout
holder.count=position;

} else if (tempValues.getType() == CondN2) {
vi = inflater.inflate(R.layout0, null);
holder.viewS1 = (TextView)vi.findViewById(R.id.S1);
} else if (tempValues.getType() == CondN3) {
vi = inflater.inflate(R.layout1, null);
// do get some view of layout1
// do some localization stuff here
//do some x1 stuff here
//do some x stuff here

} else if (tempValues.getType() == condN1) {
vi = inflater.inflate(R.layout2, null);
}
vi.setTag(holder);

} else {
holder = (ViewHolder) vi.getTag();
}
if(tempValues.getType()==Cond1 || tempValues.getType()==Cond2)
{
if (!holder.isYesAdded && tempValues.getValue().getValueType() == "Cond3")
{
addRow("String1", "String2", position,false,holder.topRootLayout,holder.parentR owItemRelativeLayout,holder.leftView,holder.rightV iew,tempValues.getType());
// above function does this --> middleContentTopRapperView.addView(row);
// where is row is a object of a class which extends LinearLayout and adds some component like text-view .
holder.parentRowItemRelativeLayout.addView(middleC ontentTopRapperView);
holder.isYesAdded = true;
}
}


}
return vi;
}


I got this Exception when i am trying to add more than 1 list items dynamically to holder.parentRowItemRelativeLayout.

Got the exception here on this line : holder.parentRowItemRelativeLayout.addView(middleC ontentTopRapperView);

Btw, the way this block will get added dynamically based on the condition, so if that condition fails it will not add, but if one item added based on the condition then if i scroll up or down 4/5 times it will give the same exception.

Say 5 items are there in listview and out of that 1 item is based on the above mentioned condition.

ava.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.addViewInner(ViewGroup.java :4187)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.addView(ViewGroup.java:4040 )
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.addView(ViewGroup.java:3985 )
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.addView(ViewGroup.java:3961 )
09-24 00:49:22.187: E/AndroidRuntime(15204): at com.bayer.onyx.MyBaseAdapter.getView(MyBaseAdapter .java:538)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.obtainView(AbsListView. java:2842)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.ListView.makeAndAddView(ListView.ja va:1884)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.ListView.fillDown(ListView.java:713 )
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.ListView.fillGap(ListView.java:677)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.trackMotionScroll(AbsLi stView.java:7030)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.scrollIfNeeded(AbsListV iew.java:4179)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.onTouchMove(AbsListView .java:5541)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.onTouchEvent(AbsListVie w.java:5376)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.View.dispatchTouchEvent(View.java:892 0)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2673)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2385)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.widget.AbsListView.dispatchTouchEvent(AbsL istView.java:5318)
09-24 00:49:22.187: E/AndroidRuntime(15204): at com.bayer.onyx.MyListView.dispatchTouchEvent(MyLis tView.java:283)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTransformedTouchEve nt(ViewGroup.java:2684)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:2400)
09-24 00:49:22.187: E/AndroidRuntime(15204): at com.android.internal.policy.impl.PhoneWindow$Decor View.superDispatchTouchEvent(PhoneWindow.java:2552 )
09-24 00:49:22.187: E/AndroidRuntime(15204): at com.android.internal.policy.impl.PhoneWindow.super DispatchTouchEvent(PhoneWindow.java:1767)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.app.Activity.dispatchTouchEvent(Activity.j ava:2840)
09-24 00:49:22.187: E/AndroidRuntime(15204): at com.android.internal.policy.impl.PhoneWindow$Decor View.dispatchTouchEvent(PhoneWindow.java:2513)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.View.dispatchPointerEvent(View.java:9 125)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$ViewPostImeInputStage.pr ocessPointerEvent(ViewRootImpl.java:4632)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$ViewPostImeInputStage.on Process(ViewRootImpl.java:4470)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.deliver(ViewR ootImpl.java:4020)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.onDeliverToNe xt(ViewRootImpl.java:4073)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.forward(ViewR ootImpl.java:4039)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$AsyncInputStage.forward( ViewRootImpl.java:4153)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.apply(ViewRoo tImpl.java:4047)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$AsyncInputStage.apply(Vi ewRootImpl.java:4210)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.deliver(ViewR ootImpl.java:4020)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.onDeliverToNe xt(ViewRootImpl.java:4073)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.forward(ViewR ootImpl.java:4039)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.apply(ViewRoo tImpl.java:4047)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl$InputStage.deliver(ViewR ootImpl.java:4020)
09-24 00:49:22.187: E/AndroidRuntime(15204): at android.view.ViewRootImpl.deliverInputEvent(ViewRo otImpl.java:6480)



mercredi 23 septembre 2015

In case you guys haven't noticed already, Lollipop is here. What else? IT'S ROOTABLE!



Major credits again to @zachariahpope for the Lollipop build earlier tonight. Unfortunately getting it rooted from stock won't work. Which is why I proceeded to try the same method from my rooting guide to attempt root. And I am proud to say...I HAVE THE ROOTED LOLLIPOP SONY XPERIA Z3V!!!

And also, I have recovery as well.
If you're going to follow in the same footsteps, please PLEASE remember when you get the supersu file, grab the v2.49 as that is for LOLLIPOP.








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2015-09-23-23-40-12[1].jpg<br/>Views:	N/A<br/>Size:	104.5 KB<br/>ID:	3484273
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-09-23-23-39-27[1].jpg<br/>Views:	N/A<br/>Size:	249.2 KB<br/>ID:	3484274
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-09-23-23-38-56[1].jpg<br/>Views:	N/A<br/>Size:	116.9 KB<br/>ID:	3484275
 

Click image for larger version<br/><br/>Name:	Screenshot_2015-09-23-23-38-32[1].jpg<br/>Views:	N/A<br/>Size:	141.7 KB<br/>ID:	3484276