User Profile
-
Brijesh Tanwar started a new conversation How to sort array ?? 6 years ago ago
I am trying to use this However that gives me error .
i am try to sort array having some problms tell me the right way.
-
Brijesh Tanwar started a new conversation How to set Animation on Fragment Transaction in android? 6 years ago ago
I am trying to use this However that gives me error .
I want to Animate Fragment on their Transaction I have tried this but not working.
How to set Animation on Fragment Transaction in Android?fragmentTransaction.setCustomAnimations(R.anim.fade_in, R.anim.fade_out);
-
Brijesh Tanwar started a new conversation SlickForm is an Android library where you define a custom array of EditText with the purpose of handling a form. 6 years ago ago
I am trying to use this However that gives me error .
SlickForm
Based on This awesome design from Josh Cummings. SlickForm is an Android library where you define a custom array of EditTexts with the purpose of handling a form in a cool animated way.
Table of Contents
Demo
Integration
To try this library into your build:
Step 1. Add the JitPack repository to your project build.gradle:
allprojects { repositories { ... maven { url "https://jitpack.io" } } }
Step 2. Add the dependency
dependencies { compile 'com.github.AlburIvan:SlickForm:v1.2' }
Usage
In XML:
<com.alburivan.slicksignform.SlickSignForm android:id="@+id/slick_form" android:layout_width="match_parent" android:layout_height="wrap_content" app:slick_tooltipEnabled="true" />
Extra attributes available:
<declare-styleable name="SlickSignForm"> <attr name="slick_buttonBgColor" format="color" /> <attr name="slick_buttonFgColor" format="color" /> <attr name="slick_tooltipEnabled" format="boolean" /> <attr name="slick_tooltipColor" format="color" /> </declare-styleable>
Default behavior (3 fields: email, user, & password):
SlickForm slickForm = (SlickForm) findViewById(R.id.slick_form); slickForm.withDefaultFields() .setOnProcessChangeListener(new IOnProcessChange() { @Override public boolean workInBackground(List<FormField> param) { final String message = String.format(Locale.ENGLISH, "This form is doing work in background and the values are: first field: %s - second field: %s - third field: %s", param.get(0).getInputFieldText(), param.get(1).getInputFieldText(), param.get(2).getInputFieldText() ); Log.d("TAG", message); // if all goes good, return true, if it failed return false return true; } @Override public void workFinished() { Log.d("TAG", "Done"); } }) .ready();
Thats it?
Yeah basically...
Only those fields?? Is it for signing in only??
Not really... You can extend it to your needs
- Create FormFields Objects
FormField userField = new FormField(getApplicationContext()) .withType(FieldsType.TEXT) .withHint("Username") .withLabel("Hit me"); // optional - default: Next FormField emailField = new FormField(getApplicationContext()) .withType(FieldsType.EMAIL) .withHint("Email"); FormField passField = new FormField(getApplicationContext()) .withType(FieldsType.PASSWORD) .withCustomValidation(new IOnCustomValidation() { // Add your own custom validation if neccesarry. @Override public boolean withCustomValidation(FormField field) { String password = field.getInputFieldText(); boolean hasUppercase = !password.equals(password.toLowerCase()); boolean hasLowercase = !password.equals(password.toUpperCase()); boolean isAtLeast8 = password.length() >= 8; // return true if validation is successful, otherwise false return (hasUppercase && hasLowercase) && isAtLeast8; } }) .withHint("Password");
- Add them your SlickForm Object
SlickForm slickForm = (SlickForm) findViewById(R.id.slick_form); slickForm .withField(userField) .withField(emailField) .withField(passField) // chain any number of fields in the order of appearance .setOnProcessChangeListener(new IOnProcessChange() { @Override public boolean workInBackground(List<FormField> param) { final String message = String.format(Locale.ENGLISH, "This form is doing work in background and the values are: first field: %s - second field: %s - third field: %s", param.get(0).getInputFieldText(), param.get(1).getInputFieldText(), param.get(2).getInputFieldText() ); Log.d("TAG", message); // if all goes good, return true, if it failed return false return true; } @Override public void workFinished() { Log.d("TAG", "Done"); } }) .withProcessingLabel("Sending") .ready();
Extras
FormField available methods
Method Description Usage withType Add this form field's type so it can get validated correctly FieldType withHint Add this form field's hint to let the user know what needs to be filled in. String withIcon Add this form field's icon for avisual cue of what needs to be filled in. Drawable/SVG withLabel Customize this form field's button label. Current default is "Next" String withProcessingLabel Changes the form's is label when its doing background work String withCustomValidation Assign this FormField an unique validation IOnCustomValidation -
Brijesh Tanwar started a new conversation how to set floating button icon programmatically? 6 years ago ago
I am trying to use this However that gives me error .
How to set android:src Icon through programmatically?
I have triedfab.setImageResource(getResources().getDrawable(R.drawable.ic_save));
-
Brijesh Tanwar started a new conversation I am using WelcomeCoordinatorLayout as Form WIzard but on swipe to next getting error Android? 6 years ago ago
I am trying to use this However that gives me error .
I am getting this error.
FATAL EXCEPTION: main
Process: com.example, PID: 8271
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.VelocityTracker.addMovement(android.view.MotionEvent)' on a null object reference
at com.redbooth.WelcomeCoordinatorTouchController.onTouchEvent(WelcomeCoordinatorTouchController.java:98)
at com.redbooth.WelcomeCoordinatorLayout.onTouchEvent(WelcomeCoordinatorLayout.java:244)
at android.view.View.dispatchTouchEvent(View.java:10023)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2626)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2307)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:413)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808)
at android.app.Activity.dispatchTouchEvent(Activity.java:3061)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:71)
at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:71)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:375)
at android.view.View.dispatchPointerEvent(View.java:10243)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4438)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4306)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3999)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4056)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6246)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6220)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6181)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6349)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6320)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6372)
07-28 12:33:08.035 8271-8271/com.Example E/AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
at android.view.Choreographer.doCallbacks(Choreographer.java:686)
at android.view.Choreographer.doFrame(Choreographer.java:615)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) -
Brijesh Tanwar started a new conversation how to create Multiple RadioButton like Grid in android? 6 years ago ago
-
Brijesh Tanwar started a new conversation How to add datepicker in android and Use it? 6 years ago ago
I am trying to use this However that gives me error .
I want to create a EditView on Click event of EditView Raise or Popup DatePicker in Android.
<EditText style="@style/textStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/divider_margin" android:background="@drawable/edittext_bg" android:hint="Email ID *" android:inputType="phone" android:padding="@dimen/divider_margin" android:textColor="@color/tabBack_Black"/>
-
Brijesh Tanwar started a new conversation How to use LIKE Query with Codeigniter ? 6 years ago ago
I am trying to use this However that gives me error .
How to use LIKE Query with Codeigniter ?
-
Brijesh Tanwar started a new conversation Like Query 6 years ago ago
I am trying to use this However that gives me error .
How to use LIKE query with Codeigniter
-
Brijesh Tanwar started a new conversation Google Releases Android Testing Support Library 1.0 Ahead of Android O 6 years ago ago
I am trying to use this However that gives me error .
To commence the week, Google declared what is likely the final Developer review refresh for Android O. We say likely in light of the fact that there aren't any extra updates arranged, however, Google could wind up revealing another on the off chance that they have to test something before the last build. While very little has changed from DP3 (other than the evacuation of the greater part of the known issues from DP3), they announced that another variant of Android Testing Support Library was being made accessible too.
Adaptation 1.0 of the Android Testing Support Library is portrayed as a noteworthy refresh to the stage's current trying APIs. Not exclusively are we getting various bug settles and enhanced dependability/execution, however, Google is likewise conveying some new testing API to the table with this refresh. Some of these elements, such as Multiprocess Espresso and the Android Test Orchestrator, were discussed at individual sessions back at Google I/O prior this year.
With this refresh, we get a refresh to Espresso that conveys it up to rendition 3.0.0. Multiprocess Espresso is another element for engineers that adds support for instrumenting tests outside of your application's default procedure. So you can test your application's UI communications that cross procedure limits all while having the capacity to maintain Espresso's synchronization ensures. Multiprocess Espresso matched with the new Idling Registry API lets you register lingering assets from any procedure inside your application code.
The last huge expansion to Espresso is the expansion of all the more Idling Resources so you can spare time from writing your own custom arrangements. Two new ones are being included (IdlingThreadPoolExecutor and IdlingScheduledThreadPoolExecutor) with all the more coming soon. Some other new components in v1.0 of the Android Testing Support Library are some ProviderTestRule APIs, an approach to mimic a client conceding an authorization to your app, achieve test segregation altogether on the gadget with Android Test Orchestrator, and some new elements for AndroidJUnitRunner.
Make sure to check the blog entry beneath for more nitty gritty depictions of these new testing highlights.
-
Brijesh Tanwar started a new conversation Google is experiencing difficulty pushing its Facebook-like news sustain to Android gadgets 6 years ago ago
I am trying to use this However that gives me error .
Google discharged a customized news nourish for telephones this week, demonstrating a surge of substance in light of individuals' area, seek histories and themes they've chosen to take after.
It's a huge new refresh that speaks to an altogether different task for Google. The encourage is intended to make the client mindful they're on Google, and to proactively give them data without them expressly looking for it. Customarily, the look has served clients data just when they search it out.
At first ridden, the element is valuable, particularly for the individuals who dislike wading through a messiness of online networking remarks. It additionally has the potential for all the more advertisement arrangements later on.
Be that as it may, — and here's the most recent rub — Google is having a little inconvenience moving it out on gadgets that run the organization's own one of a kind Android versatile working framework.
The explanation behind the hiccup needs to do with how the nourish chips away at Android home screens. The nourish is a piece of the Google application, which is gotten to as a home screen on numerous Android gadgets by swiping right. However, that swipe won't stack this new news at numerous Android gadgets at this time.
"The rollout to gadgets where the bolster is propelled from the home screen will take marginally longer because of specialized parts of the profound reconciliation to the framework," a Google representative stated, elucidating that this implies gadgets where you swipe right.
On iPhones, the Google application is gotten to by clicking its symbol, no swipe required.
This is amusing. A buzzy new component from Google is simpler to access on a contender's gadgets than Google's own particular telephones. (Despite the fact that Google's Pixel, which the organization produces itself, is by all accounts getting the refresh fine and dandy.)
The new encourage include was just reported for the current week, however, this little lull in rollout features a repeating issue for Google.
Android overwhelms the worldwide cell phone showcase, running on more than 85 percent of telephones all around, however, Google experiences difficulty guaranteeing updates and most recent components advance toward the greater part of gadgets in a convenient manner. This is on account of it's frequently up to the bearers and makers Google works with to overhaul Android telephones' frameworks — an issue Apple, which fabricates all its own particular telephones, does not have.
-
Brijesh Tanwar started a new conversation How to call Fragment From Activity in Android ? 6 years ago ago
I am trying to use this However that gives me error .
I am a beginner in Android and using first-time Fragment How to Call Fragment from Activity in Android ?
-
Brijesh Tanwar started a new conversation I am getting Error in app:srcCompat="@drawable/ic_adduser" while using FloatingActionButton How to resolve this? 6 years ago ago
I am trying to use this However that gives me error .
Hello Everybody,
I am Using FloatingActionButton and I want to change its inside Icon but it gives me ErrorTo use VectorDrawableCompat, you need to set android.defaultConfig.
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_marginRight="@dimen/fab_margin"
android:layout_marginBottom="@dimen/searchImageSize"
app:srcCompat="@drawable/ic_adduser"/> -
Brijesh Tanwar started a new conversation What is React Native App? 6 years ago ago
I am trying to use this However that gives me error .
I have heard a technology about Mobile App Development that is React Native App. I want to know what actually it is and what it does?
Please share if you know about it.
-
Brijesh Tanwar started a new conversation I am getting this error while try to using perl. How to resolve this error??? 6 years ago ago
I am trying to use this However that gives me error .
Software error:Can't locate Mail/Address.pm in @INC (@INC contains:
C:/xampp/htdocs/sideliff/lib/
C:/xampp/perl/site/lib
C:/xampp/perl/vendor/lib
C:/xampp/perl/lib .) at C:/xampp/htdocs/sideliff/lib//Email/Valid.pm line 11.
BEGIN failed--compilation aborted at C:/xampp/htdocs/sideliff/lib//Email/Valid.pm line 11.
Compilation failed in require at C:/xampp/htdocs/sideliff/lib//GenericUtils.pm line 6.
BEGIN failed--compilation aborted at C:/xampp/htdocs/sideliff/lib//GenericUtils.pm line 6.
Compilation failed in require at C:/xampp/htdocs/sideliff/index.pl line 12.
BEGIN failed--compilation aborted at C:/xampp/htdocs/sideliff/index.pl line 12.
For help, please send mail to the webmaster (postmaster@localhost), giving this error message and the time and date of the error.
-
Brijesh Tanwar started a new conversation java.lang.IllegalArgumentException: path must be convex 6 years ago ago
I am trying to use this However that gives me error .
How can I fix it
07-24 18:49:47.612 17247-17247/com.example E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.stayapt, PID: 17247
java.lang.IllegalArgumentException: path must be convex
at android.graphics.Outline.setConvexPath(Outline.java:264)
at com.github.florent37.diagonallayout.DiagonalLayout$1.getOutline(DiagonalLayout.java:203)
at android.view.View.rebuildOutline(View.java:13079)
at android.view.View.invalidateOutline(View.java:13052)
at android.view.View.setOutlineProvider(View.java:13033)
at com.github.florent37.diagonallayout.DiagonalLayout.calculateLayout(DiagonalLayout.java:76)
at com.github.florent37.diagonallayout.DiagonalLayout.onLayout(DiagonalLayout.java:238)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.support.v4.widget.NestedScrollView.onLayout(NestedScrollView.java:1622)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:131)
at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1391)
at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:870)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:726)
at android.view.View.layout(View.java:17637)
at android.view.ViewGroup.layout(ViewGroup.java:5575)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2346)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2068)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
at android.view.Choreographer.doCallbacks(Choreographer.java:686)
at android.view.Choreographer.doFrame(Choreographer.java:621)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
07-24 18:49:47.612 17247-17247/com.stayapt E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) -
Brijesh Tanwar started a new conversation What will Android O be called? 6 years ago ago
I am trying to use this However that gives me error .
Android O is coming — and with it a confectionary reckoning.
Android O is now available in Developer Preview, but Google isn't divulging its true name — and won't until much later in the summer.
But as hard as Google's job was finding a decent N-related dessert, that's nothing compared to the dilemma Android will face this year. There's a real shortage of desserts starting with the letter O, and that could lead to some unusual dishes emerging as candidates for the Android 8.0 nickname.
Let's take a look.
Android 8.0 Ox-tongue Pastry
Image credit: Ricky Lau, Wikimedia Commons
Don't let the name fool you: There are no actual ox tongues in this Chinese treat, also known as a "horse-ear pastry" (which frankly would've been much more fitting for the Honeycomb release.) It's named for its shape — either an ear or a tongue, depending on whether you spend your time primarily around horses or oxen. Wikipedia describes ox-tongue pastry as a breakfast dish, "chewy, with a soft interior and a crunchy crust."
Maybe this would be a fitting internal Google codename for the next version, a la Key Lime Pie, Lemon Merengue Pie or Macadamia Nut Cookie. (It could be "OTP" for short!) But conjuring up the visage of animal parts for an official Android nickname? Probably a bad idea.
Android Central Rating: 4/10
- Pro: Could help Google's push into China.
- Con: Constant reminder of ox entrails.
Android 8.0 Ontbijtkoek
Image credit: Takeaway, Wikimedia Commons
Pronounced, ont-beyt-kook, this Dutch cookie loaf is spiced and sweetened, and often served with butter at breakfast time. It's not a million miles away from Gingerbread — which you may remember was Android 2.3 — but it's also not the most visually appealing sweet treat, looking basically like sticky brown bread. That said, it'd be easy to transform into a loafy, Dutch Android figure for Google's statue garden.
Google could go with Ontbijtkoek to simultaneously win over fans in the Netherlands, while also masterfully trolling English-speaking journalists.
Android Central Rating: 3/10
- Pro: Basically just Dutch gingerbread.
- Con: Looks like it was typed by a cat walking across a keyboard.
Android 8.0 Oliebol
Image credit: Teunie on Wikimedia Commons
Literally "oil balls," oliebol-en are a type of Dutch donut made by dunking dough — often mixed with currants, sultanas or candied fruit — into a deep fat fryer. It's popular in the Netherlands and Belgium, particularly during the winter, while many other European countries have their own local interpretation of this sweet, doughy delight.
Oliebol earns a high score for deliciousness, while also being the right shape and size for hors-d'oeuvres, lawn statues, promotional graphics and Easter egg animations.
Android Central Rating: 5/10
- Pro: Fun to say. Oliebol!
- Con: Similarity to "volleyball" could lead to confusing/messy situations.
Android 8.0 Ozark Pudding
An accidental collision of other, lesser desserts.
The first truly American dessert on our list, Ozark pudding comes from the Ozarks region of Missouri — a dried fruit and nut custard often served with ice cream. It's not quite a cake or a pie, but there are countless variants of it that use different types of bases and coatings. (Like Android itself!)
Ozark has the look of an accidental collision of other, lesser desserts. It's also got patriotism going for it, with the pudding being a favorite of President Harry Truman. The only problem is how Google would fashion a statue of Bugdroid holding — well — a pile of nutty, fruity slop.
Android Central Rating: 5/10
- Pro: Warming southern dessert loved by the major historical figure.
- Con: Looks like vomit.
Android 8.0 Oatmeal Cookie
Image credit: Paul Martin on Wikimedia Commons
The thing you mistakenly point to at the coffee shop expecting a chocolate chip cookie, oatmeal cookie would be the safe choice for Android O for English speakers. It's like a regular cookie, except with added oats and sometimes raisins, with the end product often appearing vaguely congealed and malformed. (Perhaps an accurate metaphor for Android once certain manufacturers get their paws on it.)
Oatmeal Cookie would be less than the sum of its parts.
Though easy to spell and memorize, oatmeal cookie lacks both the sweetness of a cookie and the satisfying warmth of a bowl of oatmeal. Avoid at all costs.
Android Central Rating: 1/10
- Pro: Easy to say.
- Con: Fundamentally disappointing on every level.
Android 8.0 Orelletes
Image credit: Chixoy on Wikimedia Commons
Literally "little ears" — named after their shape — these sweet Catalan pastries are often eaten at weddings and other celebrations. They're made from flour, eggs, sugar, anisette and olive oil and fried, then dusted with icing sugar. Orelletes can come in all shapes and sizes, which lines up with Google's vision of Android powering a multitude of devices in various form factors. (No, we're not stretching that metaphor at all.)
Android Central Rating: 6/10
- Pro: Can be used as a humorous replacement for your own ears.
- Con: Thin and unsatisfying compared to heartier desserts on this list.
Android 8.0 Oreo
Finally, we reach the one "O" sweet treat that everybody instantly thinks of. If Google was to partner with Nabisco (as it did Nestle for Android 4.4 KitKat), we could have another commercial tie-in, with Oreo boxes promoting the next version of Google's OS, and possibly limited edition biscuits (with antennae!) in the shape of the Android mascot, Bugdroid.
It would be a perfect match was it not for the nature of the Oreo itself. As someone who lives in a part of the world that only got Oreos relatively recently, I can't help being underwhelmed whenever I eat one. It's not incorrect to call it a cookie, and there's some kind of sugary cream stuff going on too. Fine. But I'm left wondering where the flavor is each time I put one in my mouth. It's like you've eaten a cookie, but what's the point? Your taste buds are no better for it. Therein lies the Achilles heel of Android Oreo.
Android Central Rating:
/10
- Pro: Brand recognition. Novelty Bugdroid cookies.
- Con: Involves inking deal with tyrannical confectionery mega corporation. Cookie itself basically tastes of nothing.
What would you name Android O? Am I right about Oreos being totally overrated? Would you play volleyball with Olie-Bols? Shout out in the comments and let us know!
-
Brijesh Tanwar started a new conversation What is Android O ? 6 years ago ago
I am trying to use this However that gives me error .
Android O latest rumors - release date, new features, public beta & name
When is Android O coming out, and will it be called Oatmeal Cookie? -
Brijesh Tanwar started a new conversation How to set edittext to show search button on keyboard? 6 years ago ago
I am trying to use this However that gives me error .
How can we show search button on Keyboard raise on Edittext Focus Please help?
-
Brijesh Tanwar started a new conversation how to set country Code Pattern html 6 years ago ago
I am trying to use this However that gives me error .
I want to set Validation in country code in HTML how can we do this??
-
Brijesh Tanwar started a new conversation How to get PutExtra Value from Intent? 6 years ago ago
I am trying to use this However that gives me error .
How can I get putExtra's Value that I have set on previous Activity android?
Intent i = new Intent(FirstScreen.this, SecondScreen.class); String keyIdentifer = null; i.putExtra(strName, keyIdentifer );
-
Brijesh Tanwar started a new conversation how to set Phone number validation 6 years ago ago
I am trying to use this However that gives me error .
pattern="^\d+(?:\.\d{1,2})?$"
I have done this but its not working
-
Brijesh Tanwar started a new conversation How to show Text instant of menu item in android? 6 years ago ago
-
Brijesh Tanwar started a new conversation How to Use Helper Class In Codeigniter? 6 years ago ago
I am trying to use this However that gives me error .
I have seen helper folder in codeigniter Package. What is the Use of this folder and How to Use Helper?
-
Brijesh Tanwar started a new conversation Sending HTML Email results in Email displaying HTML source (Codeigniter Email Class) 6 years ago ago
I am trying to use this However that gives me error .
I am having problems with email sent via the email class in Codeigniter displaying the source HTML code in the email message instead of the rendered HTML view. For testing, I am currently having CI on XAMPP on Windows, and using Gmail SMTP to send to the same gmail address.
The function that sends the email is as follows:
$config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => 'myaccountname@gmail.com', 'smtp_pass' => 'mygmailpassword', ); $this->load->library('email', $config); $this->email->from($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth')); $this->email->reply_to($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth')); $this->email->to($email); $this->email->subject(sprintf($this->lang->line('auth_subject_'.$type), $this->config->item('website_name', 'tank_auth'))); $this->email->message($this->load->view('email/'.$type.'-html', $data, TRUE)); $this->email->set_alt_message($this->load->view('email/'.$type.'-txt', $data, TRUE)); $this->email->set_newline("\r\n"); // require this, otherwise sending via gmail times out $this->email->send();
There is no problem getting the text version sent. The view loaded is a html file that will be emailed out.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Welcome to <?php echo $site_name; ?>!</title></head> <body> <div style="max-width: 800px; margin: 0; padding: 30px 0;"> <table width="80%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="5%"></td> <td align="left" width="95%" style="font: 13px/18px Arial, Helvetica, sans-serif;"> <h2 style="font: normal 20px/23px Arial, Helvetica, sans-serif; margin: 0; padding: 0 0 18px; color: black;">Welcome to <?php echo $site_name; ?>!</h2> Thanks for joining <?php echo $site_name; ?>. We listed your sign in details below, make sure you keep them safe.<br /> To verify your email address, please follow this link:<br /> <br /> <big style="font: 16px/18px Arial, Helvetica, sans-serif;"><b><a href="<?php echo site_url('/auth/activate/'.$user_id.'/'.$new_email_key); ?>" style="color: #3366cc;">Finish your registration...</a></b></big><br /> <br /> Link doesn't work? Copy the following link to your browser address bar:<br /> <nobr><a href="<?php echo site_url('/auth/activate/'.$user_id.'/'.$new_email_key); ?>" style="color: #3366cc;"><?php echo site_url('/auth/activate/'.$user_id.'/'.$new_email_key); ?></a></nobr><br /> <br /> Please verify your email within <?php echo $activation_period; ?> hours, otherwise your registration will become invalid and you will have to register again.<br /> <br /> <br /> <?php if (strlen($username) > 0) { ?>Your username: <?php echo $username; ?><br /><?php } ?> Your email address: <?php echo $email; ?><br /> <?php if (isset($password)) { /* ?>Your password: <?php echo $password; ?><br /><?php */ } ?> <br /> <br /> Have fun!<br /> The <?php echo $site_name; ?> Team </td> </tr> </table> </div> </body> </html>
Any ideas how to get HTML emails sent to be rendered instead of displaying its source code?
-
Brijesh Tanwar started a new conversation How to change cardview background color Programmatically android? 6 years ago ago
I am trying to use this However that gives me error .
The CardView has an attribute
card_view:cardBackgroundColor
to define the background color. This attribute is working fine but i want this functionality dynamically.I've just tried solutions like:
mCardView.setBackgroundColor(...);
or using a Layout inside the cardView
<android.support.v7.widget.CardView> <LinearLayout android:id="@+id/cardView_ID"> </android.support.v7.widget.CardView> View view = mcardView.findViewById(R.id.cardView_ID); cardLayout.setBackgroundColor(XXXX);
These solutions don't work because the card has a cardCornerRadius.
-
Brijesh Tanwar started a new conversation How to make CodeIgniter file upload class accept all extensions? 6 years ago ago
I am trying to use this However that gives me error .
Currently if I supply no extensions to the class it allows no extensions. I would like to allow all extensions. Is there any way to do this without hacking the core?
-
Brijesh Tanwar started a new conversation Smoothly scroll to an element without a jQuery plugin 6 years ago ago
I am trying to use this However that gives me error .
I have this
input
element:<input type="text" class="textfield" id="texts" name="texts">
Then I have some other elements, like other text inputs, textareas, etc.
When the user clicks on that
input
with#texts
, the page should scroll to the last element of the page with a nice animation. It should be a scroll to bottom and not to top.The animation should not be too fast and should be fluid.
how can do this without any jquery if possible?
-
Brijesh Tanwar started a new conversation Activity restart on rotation Android 6 years ago ago
I am trying to use this However that gives me error .
When I rotate mobile my activity will restart from OnCreate Method How to Freeze My Activity's State only position will change Portrate to Landscape ?
how to do this?? -
Brijesh Tanwar started a new conversation How to get Regular expression to validate Addhar Card Number 6 years ago ago
I am trying to use this However that gives me error .
Need help on validating Addhar Card Number with the regular expression. It's 12 digit number. in the following format. It can contain 0 to 9 digits.
Eg. 0000 0000 0000
-
Brijesh Tanwar started a new conversation com.ogaclejapan.smarttablayout.SmartTabLayout center align 6 years ago ago
-
Brijesh Tanwar started a new conversation Instagram API to fetch pictures with specific hashtags 6 years ago ago
I am trying to use this However that gives me error .
I want to get all the pictures with a specific hashtag from Instagram using API in Android. How can I do that?
Is there any pre developed Example for this? -
Brijesh Tanwar started a new conversation How to get top 10 pay of employees table SQL 6 years ago ago
I am trying to use this However that gives me error .
I want to get details of top 10 paid employees from the Employee Table SQL table? what will be the query?
-
Brijesh Tanwar started a new conversation What is SSL Certificate ? How does SSL really work? 6 years ago ago
I am trying to use this However that gives me error .
Why we need SSL certificate for our Website? how SSL works?
what exactly it is ?? -
Brijesh Tanwar started a new conversation How to fetch only date from datetime field using php 6 years ago ago
I am trying to use this However that gives me error .
How to fetch only date from datetime field using php
-
Brijesh Tanwar started a new conversation How to fetch only date from date_time field using php 6 years ago ago
I am trying to use this However that gives me error .
How to fetch only date from date_time field using php
-
Brijesh Tanwar started a new conversation How we implemented a custom Folding Tab Bar in android ??? 6 years ago ago
I am trying to use this However that gives me error .
-
Brijesh Tanwar started a new conversation Get Screen width and height 6 years ago ago
I am trying to use this However that gives me error .
How I can get screen width and height for using this value in
@Override protected void onMeasure(int widthSpecId, int heightSpecId) { Log.e(TAG, "onMeasure" + widthSpecId); setMeasuredDimension(SCREEN_WIDTH, SCREEN_HEIGHT - game.findViewById(R.id.flag).getHeight()); }
-
Brijesh Tanwar started a new conversation How to set CardView Shadow and its customize shadow color?? 6 years ago ago
I am trying to use this However that gives me error .
I am using
android.support.v7.widget.CardView.
I want to add shadow for my CardView Please help how can i do this? card has default gray shadow how can change its color? -
Brijesh Tanwar started a new conversation Android layout diagonal cut 6 years ago ago
I am trying to use this However that gives me error .
How can I cut a layout (LinearLayout or RelativeLayout) diagonally with content inside?
The mockup looks like that:
I tried using diagonal layout libraries like https://github.com/florent37/DiagonalLayout but I can't seem to get this cut on the right of the image and on the left of the second layout with the library or with a custom View.
Any help would be appreciated.
-
Brijesh Tanwar started a new conversation How to activate 6 years ago ago
I am trying to use this However that gives me error .
i want to add "Share" button to my android app.
Like that
I added "Share" button, but button is not active. I click, but nothing happens.
My code in MainActivity.java:
private ShareActionProvider mShareActionProvider; @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.share_menu, menu); getMenuInflater().inflate(R.menu.main, menu); MenuItem item = menu.findItem(R.id.share_menu); mShareActionProvider = (ShareActionProvider) menu.findItem(R.id.share_menu).getActionProvider(); mShareActionProvider.setShareIntent(getDefaultShareIntent()); return true; } { Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/plain"); sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Text"); sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject"); startActivity(Intent.createChooser(sharingIntent, "Share using")); }
I want to share text in my first tab (first_tab.xml) or second tab (second_tab.xml).
Code in tab (xml) (If need):
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/background_color" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity$DummySectionFragment" > <TextView android:id="@+id/section_label1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="@string/text" android:textColor="@color/text_color" /> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:src="@drawable/sprite" />
Sorry my english
-
Brijesh Tanwar started a new conversation Stop EditText from gaining focus at Activity startup 6 years ago ago
I am trying to use this However that gives me error .
I have an Android
Activity
, with two elements:EditText
ListView
When
Activity
starts, theEditText
immediately has input focus (flashing cursor). I don't want any control to have input focus at startup. I tried:EditText.setSelected(false);
How can I convince the
EditText
to not select itself when theActivity
starts? -
Brijesh Tanwar started a new conversation How to make gradient background in android 6 years ago ago
I am trying to use this However that gives me error .
I want to create gradient background as in the picture. but it can't because of the centerColore was spread out to cover bottom and top.
How can I make a background like a picture below? or How can I make small ceterColor that not spread out? did you have any idea?
This is the background that I want.
This is the background that I made.
This is code in xml of background button above
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <gradient android:startColor="#6586F0" android:centerColor="#D6D6D6" android:endColor="#4B6CD6" android:angle="90"/> <corners android:radius="0dp"/> </shape>
-
Brijesh Tanwar started a new conversation How do I implement Gmail like swipe to delete list view in Android? 6 years ago ago
I am trying to use this However that gives me error .
I am developing an application with a shop list in a listview. I need that when I swipe the item of
listview
to the right(or left), this item should get deleted from the listview.I have my listview and only need the function to do it.
Thanks in advance.
-
Brijesh Tanwar started a new conversation RestSharp defaulting Content-Type to application/x-www-form-urlencoded on POST 6 years ago ago
I am trying to use this However that gives me error .
RestSharp seems to not allow me to override the Content-Type for a post request. I've followed the directions found here to no avail. I've also tried manually setting the header content type to application/json via request.AddHeaders("content-type", "application/json");
Examples of the request execution:
private IRestResponse ExecuteRequest<T>(string resource, Method method, T model) { var client = CreateRestClient(); var request = new RestRequest(resource, method) { RequestFormat = DataFormat.Json }; var json = JsonConvert.SerializeObject(model); request.AddHeader("Accept", "application/json"); request.AddHeader("User-Agent", "Fiddler"); request.Parameters.Clear(); request.AddParameter("auth_token", _apiKey); request.AddParameter("application/json", json, ParameteType.RequestBody); return client.Execute(request); }
The response error message:
{ "error": { "code": 400, "message": "The request requires a properly encoded body with the 'content-type' header set to '['application/json']", "type": "Bad Request" } }
Fiddler request raw data:
POST **omitted** HTTP/1.1 Accept: application/json, application/xml, text/json, text/x-json,text/javascript, text/xml User-Agent: RestSharp/105.0.1.0 Content-Type: application/x-www-form-urlencoded Host: **omitted** Content-Length: 51 Accept-Encoding: gzip, deflate Connection: Keep-Alive
As you can see, the request Content-Type is still application/x-www-form-urlencoded. Any ideas? (thanks in advance)
-
Brijesh Tanwar started a new conversation What is CodeIgniter 6 years ago ago
I am trying to use this However that gives me error .
What is CodeIgniter?