Posts by Kayan Almeida • 303 points
7 posts
-
1
votes1
answer1897
viewsA: How to find the operator of a mobile number?
Following the documentation: TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String carrierName = manager.getNetworkOperatorName(); String…
androidanswered Kayan Almeida 303 -
0
votes1
answer216
viewsA: How to compare Drawables?
Jeiferson, a possible workaround would be to set a tag on the button, where the tag would be the drawable id. Example: meuLindoBotao.setTag(R.drawable.imagemAtual); int imagemDoMeuLindoBotao =…
androidanswered Kayan Almeida 303 -
0
votes1
answer431
viewsQ: Fragment within Viewpager calls no method
I have an activity (MainActivity) containing a PagerFragment who owns a ViewPager. On the pager I have 4 different tabs. Within each tab I own one Fragment 1 which can be replaced by using the…
-
3
votes2
answers17995
viewsA: What is a context on Android?
As the name suggests, it is the context of the object or application. It is a way to access in the code the current state of the application. On Android, Context is the base class for Activity,…
-
2
votes2
answers1061
viewsA: Take a Textbox value from each row within the table with Jquery
When you call the .val(), you always take the value of the first element returned by find(). The method find() returns a list of elements, to iterate you need to do: var $listaDeValores ={};…
-
7
votes2
answers3184
viewsA: block "erasing" the screen for downtime
Try putting this on onCreate of his Activity getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Or within your layout: <RelativeLayout…
-
4
votes1
answer174
viewsA: Error while displaying web images in android java
There are libraries that load images synchronously or asynchronously, save the image in cache and/or disk to save the band and abstract that part of the encoding. Take a look at this Project:…