Postagens

Mostrando postagens de janeiro, 2023

Fizemos o ChatGPT Conversar de Programador para "Programador" 🤖

Imagem
  Recent ement e , lan ç am os o Chat G PT , a prime ira pl ata form a de chat bot que perm ite a os program ad ores convers ar com out ros program ad ores . Est a pl ata form a fo i des en vol v ida para permit ir a os program ad ores comp art il hare m m ais fac il ment e con he c iment o e comp re end ere m mel hor as necess id ades de c ada um . O Chat G PT fo i c ri ado com base em intel ig ê nc ia artificial ( IA ), permit ind o que os program ad ores inter aj am de form a m ais natural . Os program ad ores pod em tro car m ens ag ens , real iz ar pes qu is as e disc ut ir sol u ç õ es . Al é m dis so , al guns rec urs os av an ç ados , com o a bus ca por rec urs os , a jud am os program ad ores a enc ont rar inform a ç õ es rapid ament e . N oss a pl ata form a t amb é m of ere ce u ma com un id ade de es pe cial istas em program a ç ão que pod em a jud ar os program ad ores a...

Como adicionar o botão Voltar no Android na Activity ActionBar

  1 . Add the parent activity in your manifest file In your   Android Man ifest . xml , add the parent Activity Name attribute to the activity you want to add the back button to . example :   < activity android : name =" com . your . package . Child Activity " android : parent Activity Name =" com . your . package . Parent Activity " android : label =" @ string / title _ activity _ child " >     </ activity >   2 . Add a back button to your toolbar In your activity 's on Create () method , add the following code to add a back button to your action bar : // Show the Up button in the action bar . get Support Action Bar (). set Display Home As Up Enabled ( true );     3 . Handle the back button click Override the on Options Item Se lected () method in your activity , and add the following code to handle the user 's click on the ...